OZE_Main.list 4.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258
  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 0002c9a0 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00004d4c 0802cc40 0802cc40 0002dc40 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 0803198c 0803198c 0003298c 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 08031994 08031994 00032994 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 08031998 08031998 00032998 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000224 24000000 0803199c 00033000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 0002b034 24000224 08031bc0 00033224 2**2
  19. ALLOC
  20. 8 ._user_heap_stack 00000600 2402b258 08031bc0 00033258 2**0
  21. ALLOC
  22. 9 .lwip_sec 0001932b 2402b858 08031bc0 00033858 2**2
  23. ALLOC
  24. 10 .ARM.attributes 0000002e 00000000 00000000 00033224 2**0
  25. CONTENTS, READONLY
  26. 11 .debug_info 000519ac 00000000 00000000 00033252 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_abbrev 0000b6de 00000000 00000000 00084bfe 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_aranges 00003838 00000000 00000000 000902e0 2**3
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_rnglists 00002cec 00000000 00000000 00093b18 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_macro 0004f343 00000000 00000000 00096804 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_line 00057c31 00000000 00000000 000e5b47 2**0
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_str 0018e90f 00000000 00000000 0013d778 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .comment 00000043 00000000 00000000 002cc087 2**0
  41. CONTENTS, READONLY
  42. 19 .debug_frame 0000fbf0 00000000 00000000 002cc0cc 2**2
  43. CONTENTS, READONLY, DEBUGGING, OCTETS
  44. 20 .debug_line_str 00000064 00000000 00000000 002dbcbc 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: 0802cc28 .word 0x0802cc28
  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: 0802cc28 .word 0x0802cc28
  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: 080315d0 .word 0x080315d0
  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 fcaf bl 802a4e0 <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 fd3c bl 80297b4 <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: f029 f893 bl 802a4f0 <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: 0802cc78 .word 0x0802cc78
  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 ff9e bl 802a4f0 <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 ff7d bl 802a4f0 <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 ff5c bl 802a4f0 <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: 0802cc4c .word 0x0802cc4c
  2780. 8001740: 0802cc7c .word 0x0802cc7c
  2781. 8001744: 0802cc84 .word 0x0802cc84
  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 <__io_putchar>:
  3762. //{
  3763. // printf("DMA callback\n");
  3764. //}
  3765. int __io_putchar(int ch)
  3766. {
  3767. 8001cb8: b580 push {r7, lr}
  3768. 8001cba: b082 sub sp, #8
  3769. 8001cbc: af00 add r7, sp, #0
  3770. 8001cbe: 6078 str r0, [r7, #4]
  3771. HAL_UART_Transmit(&huart8, (uint8_t *)&ch, 1, 0xFFFF); // Use UART8 as debug interface
  3772. 8001cc0: 1d39 adds r1, r7, #4
  3773. 8001cc2: f64f 73ff movw r3, #65535 @ 0xffff
  3774. 8001cc6: 2201 movs r2, #1
  3775. 8001cc8: 4803 ldr r0, [pc, #12] @ (8001cd8 <__io_putchar+0x20>)
  3776. 8001cca: f00b fb0b bl 800d2e4 <HAL_UART_Transmit>
  3777. // ITM_SendChar(ch); // Use SWV as debug interface
  3778. return ch;
  3779. 8001cce: 687b ldr r3, [r7, #4]
  3780. }
  3781. 8001cd0: 4618 mov r0, r3
  3782. 8001cd2: 3708 adds r7, #8
  3783. 8001cd4: 46bd mov sp, r7
  3784. 8001cd6: bd80 pop {r7, pc}
  3785. 8001cd8: 24000280 .word 0x24000280
  3786. 08001cdc <main>:
  3787. /**
  3788. * @brief The application entry point.
  3789. * @retval int
  3790. */
  3791. int main(void)
  3792. {
  3793. 8001cdc: b580 push {r7, lr}
  3794. 8001cde: b084 sub sp, #16
  3795. 8001ce0: af00 add r7, sp, #0
  3796. /* USER CODE BEGIN 1 */
  3797. /* USER CODE END 1 */
  3798. /* MPU Configuration--------------------------------------------------------*/
  3799. MPU_Config();
  3800. 8001ce2: f000 fc41 bl 8002568 <MPU_Config>
  3801. \details Turns on I-Cache
  3802. */
  3803. __STATIC_FORCEINLINE void SCB_EnableICache (void)
  3804. {
  3805. #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
  3806. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  3807. 8001ce6: 4b5e ldr r3, [pc, #376] @ (8001e60 <main+0x184>)
  3808. 8001ce8: 695b ldr r3, [r3, #20]
  3809. 8001cea: f403 3300 and.w r3, r3, #131072 @ 0x20000
  3810. 8001cee: 2b00 cmp r3, #0
  3811. 8001cf0: d11b bne.n 8001d2a <main+0x4e>
  3812. \details Acts as a special kind of Data Memory Barrier.
  3813. It completes when all explicit memory accesses before this instruction complete.
  3814. */
  3815. __STATIC_FORCEINLINE void __DSB(void)
  3816. {
  3817. __ASM volatile ("dsb 0xF":::"memory");
  3818. 8001cf2: f3bf 8f4f dsb sy
  3819. }
  3820. 8001cf6: bf00 nop
  3821. __ASM volatile ("isb 0xF":::"memory");
  3822. 8001cf8: f3bf 8f6f isb sy
  3823. }
  3824. 8001cfc: bf00 nop
  3825. __DSB();
  3826. __ISB();
  3827. SCB->ICIALLU = 0UL; /* invalidate I-Cache */
  3828. 8001cfe: 4b58 ldr r3, [pc, #352] @ (8001e60 <main+0x184>)
  3829. 8001d00: 2200 movs r2, #0
  3830. 8001d02: f8c3 2250 str.w r2, [r3, #592] @ 0x250
  3831. __ASM volatile ("dsb 0xF":::"memory");
  3832. 8001d06: f3bf 8f4f dsb sy
  3833. }
  3834. 8001d0a: bf00 nop
  3835. __ASM volatile ("isb 0xF":::"memory");
  3836. 8001d0c: f3bf 8f6f isb sy
  3837. }
  3838. 8001d10: bf00 nop
  3839. __DSB();
  3840. __ISB();
  3841. SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */
  3842. 8001d12: 4b53 ldr r3, [pc, #332] @ (8001e60 <main+0x184>)
  3843. 8001d14: 695b ldr r3, [r3, #20]
  3844. 8001d16: 4a52 ldr r2, [pc, #328] @ (8001e60 <main+0x184>)
  3845. 8001d18: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  3846. 8001d1c: 6153 str r3, [r2, #20]
  3847. __ASM volatile ("dsb 0xF":::"memory");
  3848. 8001d1e: f3bf 8f4f dsb sy
  3849. }
  3850. 8001d22: bf00 nop
  3851. __ASM volatile ("isb 0xF":::"memory");
  3852. 8001d24: f3bf 8f6f isb sy
  3853. }
  3854. 8001d28: e000 b.n 8001d2c <main+0x50>
  3855. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  3856. 8001d2a: bf00 nop
  3857. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  3858. uint32_t ccsidr;
  3859. uint32_t sets;
  3860. uint32_t ways;
  3861. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  3862. 8001d2c: 4b4c ldr r3, [pc, #304] @ (8001e60 <main+0x184>)
  3863. 8001d2e: 695b ldr r3, [r3, #20]
  3864. 8001d30: f403 3380 and.w r3, r3, #65536 @ 0x10000
  3865. 8001d34: 2b00 cmp r3, #0
  3866. 8001d36: d138 bne.n 8001daa <main+0xce>
  3867. SCB->CSSELR = 0U; /* select Level 1 data cache */
  3868. 8001d38: 4b49 ldr r3, [pc, #292] @ (8001e60 <main+0x184>)
  3869. 8001d3a: 2200 movs r2, #0
  3870. 8001d3c: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  3871. __ASM volatile ("dsb 0xF":::"memory");
  3872. 8001d40: f3bf 8f4f dsb sy
  3873. }
  3874. 8001d44: bf00 nop
  3875. __DSB();
  3876. ccsidr = SCB->CCSIDR;
  3877. 8001d46: 4b46 ldr r3, [pc, #280] @ (8001e60 <main+0x184>)
  3878. 8001d48: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  3879. 8001d4c: 60fb str r3, [r7, #12]
  3880. /* invalidate D-Cache */
  3881. sets = (uint32_t)(CCSIDR_SETS(ccsidr));
  3882. 8001d4e: 68fb ldr r3, [r7, #12]
  3883. 8001d50: 0b5b lsrs r3, r3, #13
  3884. 8001d52: f3c3 030e ubfx r3, r3, #0, #15
  3885. 8001d56: 60bb str r3, [r7, #8]
  3886. do {
  3887. ways = (uint32_t)(CCSIDR_WAYS(ccsidr));
  3888. 8001d58: 68fb ldr r3, [r7, #12]
  3889. 8001d5a: 08db lsrs r3, r3, #3
  3890. 8001d5c: f3c3 0309 ubfx r3, r3, #0, #10
  3891. 8001d60: 607b str r3, [r7, #4]
  3892. do {
  3893. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  3894. 8001d62: 68bb ldr r3, [r7, #8]
  3895. 8001d64: 015a lsls r2, r3, #5
  3896. 8001d66: f643 73e0 movw r3, #16352 @ 0x3fe0
  3897. 8001d6a: 4013 ands r3, r2
  3898. ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) );
  3899. 8001d6c: 687a ldr r2, [r7, #4]
  3900. 8001d6e: 0792 lsls r2, r2, #30
  3901. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  3902. 8001d70: 493b ldr r1, [pc, #236] @ (8001e60 <main+0x184>)
  3903. 8001d72: 4313 orrs r3, r2
  3904. 8001d74: f8c1 3260 str.w r3, [r1, #608] @ 0x260
  3905. #if defined ( __CC_ARM )
  3906. __schedule_barrier();
  3907. #endif
  3908. } while (ways-- != 0U);
  3909. 8001d78: 687b ldr r3, [r7, #4]
  3910. 8001d7a: 1e5a subs r2, r3, #1
  3911. 8001d7c: 607a str r2, [r7, #4]
  3912. 8001d7e: 2b00 cmp r3, #0
  3913. 8001d80: d1ef bne.n 8001d62 <main+0x86>
  3914. } while(sets-- != 0U);
  3915. 8001d82: 68bb ldr r3, [r7, #8]
  3916. 8001d84: 1e5a subs r2, r3, #1
  3917. 8001d86: 60ba str r2, [r7, #8]
  3918. 8001d88: 2b00 cmp r3, #0
  3919. 8001d8a: d1e5 bne.n 8001d58 <main+0x7c>
  3920. __ASM volatile ("dsb 0xF":::"memory");
  3921. 8001d8c: f3bf 8f4f dsb sy
  3922. }
  3923. 8001d90: bf00 nop
  3924. __DSB();
  3925. SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */
  3926. 8001d92: 4b33 ldr r3, [pc, #204] @ (8001e60 <main+0x184>)
  3927. 8001d94: 695b ldr r3, [r3, #20]
  3928. 8001d96: 4a32 ldr r2, [pc, #200] @ (8001e60 <main+0x184>)
  3929. 8001d98: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  3930. 8001d9c: 6153 str r3, [r2, #20]
  3931. __ASM volatile ("dsb 0xF":::"memory");
  3932. 8001d9e: f3bf 8f4f dsb sy
  3933. }
  3934. 8001da2: bf00 nop
  3935. __ASM volatile ("isb 0xF":::"memory");
  3936. 8001da4: f3bf 8f6f isb sy
  3937. }
  3938. 8001da8: e000 b.n 8001dac <main+0xd0>
  3939. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  3940. 8001daa: bf00 nop
  3941. SCB_EnableDCache();
  3942. /* MCU Configuration--------------------------------------------------------*/
  3943. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  3944. HAL_Init();
  3945. 8001dac: f003 f9f8 bl 80051a0 <HAL_Init>
  3946. /* USER CODE BEGIN Init */
  3947. /* USER CODE END Init */
  3948. /* Configure the system clock */
  3949. SystemClock_Config();
  3950. 8001db0: f000 f878 bl 8001ea4 <SystemClock_Config>
  3951. /* USER CODE BEGIN SysInit */
  3952. /* USER CODE END SysInit */
  3953. /* Initialize all configured peripherals */
  3954. MX_GPIO_Init();
  3955. 8001db4: f000 fae6 bl 8002384 <MX_GPIO_Init>
  3956. MX_DMA_Init();
  3957. 8001db8: f000 fabc bl 8002334 <MX_DMA_Init>
  3958. MX_UART8_Init();
  3959. 8001dbc: f000 f92e bl 800201c <MX_UART8_Init>
  3960. MX_CRC_Init();
  3961. 8001dc0: f000 f8ec bl 8001f9c <MX_CRC_Init>
  3962. MX_RNG_Init();
  3963. 8001dc4: f000 f914 bl 8001ff0 <MX_RNG_Init>
  3964. MX_USART1_UART_Init();
  3965. 8001dc8: f000 f974 bl 80020b4 <MX_USART1_UART_Init>
  3966. MX_USART2_UART_Init();
  3967. 8001dcc: f000 f9c2 bl 8002154 <MX_USART2_UART_Init>
  3968. MX_USART3_UART_Init();
  3969. 8001dd0: f000 fa10 bl 80021f4 <MX_USART3_UART_Init>
  3970. MX_USART6_UART_Init();
  3971. 8001dd4: f000 fa5e bl 8002294 <MX_USART6_UART_Init>
  3972. // HAL_DMA_RegisterCallback(&hdma_uart8_rx, HAL_DMA_XFER_CPLT_CB_ID, dmaCallback);
  3973. /* USER CODE END 2 */
  3974. /* Init scheduler */
  3975. osKernelInitialize();
  3976. 8001dd8: f00e ff7c bl 8010cd4 <osKernelInitialize>
  3977. /* USER CODE BEGIN RTOS_MUTEX */
  3978. /* add mutexes, ... */
  3979. resMeasurementsMutex = osMutexNew (NULL);
  3980. 8001ddc: 2000 movs r0, #0
  3981. 8001dde: f00f f923 bl 8011028 <osMutexNew>
  3982. 8001de2: 4603 mov r3, r0
  3983. 8001de4: 4a1f ldr r2, [pc, #124] @ (8001e64 <main+0x188>)
  3984. 8001de6: 6013 str r3, [r2, #0]
  3985. sensorsInfoMutex = osMutexNew (NULL);
  3986. 8001de8: 2000 movs r0, #0
  3987. 8001dea: f00f f91d bl 8011028 <osMutexNew>
  3988. 8001dee: 4603 mov r3, r0
  3989. 8001df0: 4a1d ldr r2, [pc, #116] @ (8001e68 <main+0x18c>)
  3990. 8001df2: 6013 str r3, [r2, #0]
  3991. /* add semaphores, ... */
  3992. /* USER CODE END RTOS_SEMAPHORES */
  3993. /* Create the timer(s) */
  3994. /* creation of relay1Timer */
  3995. relay1TimerHandle = osTimerNew(relay1TimerCallback, osTimerOnce, NULL, &relay1Timer_attributes);
  3996. 8001df4: 4b1d ldr r3, [pc, #116] @ (8001e6c <main+0x190>)
  3997. 8001df6: 2200 movs r2, #0
  3998. 8001df8: 2100 movs r1, #0
  3999. 8001dfa: 481d ldr r0, [pc, #116] @ (8001e70 <main+0x194>)
  4000. 8001dfc: f00f f898 bl 8010f30 <osTimerNew>
  4001. 8001e00: 4603 mov r3, r0
  4002. 8001e02: 4a1c ldr r2, [pc, #112] @ (8001e74 <main+0x198>)
  4003. 8001e04: 6013 str r3, [r2, #0]
  4004. /* creation of relay2Timer */
  4005. relay2TimerHandle = osTimerNew(relay2TimerCallback, osTimerOnce, NULL, &relay2Timer_attributes);
  4006. 8001e06: 4b1c ldr r3, [pc, #112] @ (8001e78 <main+0x19c>)
  4007. 8001e08: 2200 movs r2, #0
  4008. 8001e0a: 2100 movs r1, #0
  4009. 8001e0c: 481b ldr r0, [pc, #108] @ (8001e7c <main+0x1a0>)
  4010. 8001e0e: f00f f88f bl 8010f30 <osTimerNew>
  4011. 8001e12: 4603 mov r3, r0
  4012. 8001e14: 4a1a ldr r2, [pc, #104] @ (8001e80 <main+0x1a4>)
  4013. 8001e16: 6013 str r3, [r2, #0]
  4014. /* creation of relay3Timer */
  4015. relay3TimerHandle = osTimerNew(relay3TimerCallback, osTimerOnce, NULL, &relay3Timer_attributes);
  4016. 8001e18: 4b1a ldr r3, [pc, #104] @ (8001e84 <main+0x1a8>)
  4017. 8001e1a: 2200 movs r2, #0
  4018. 8001e1c: 2100 movs r1, #0
  4019. 8001e1e: 481a ldr r0, [pc, #104] @ (8001e88 <main+0x1ac>)
  4020. 8001e20: f00f f886 bl 8010f30 <osTimerNew>
  4021. 8001e24: 4603 mov r3, r0
  4022. 8001e26: 4a19 ldr r2, [pc, #100] @ (8001e8c <main+0x1b0>)
  4023. 8001e28: 6013 str r3, [r2, #0]
  4024. /* creation of relay4Timer */
  4025. relay4TimerHandle = osTimerNew(relay1TimerCallback, osTimerOnce, NULL, &relay4Timer_attributes);
  4026. 8001e2a: 4b19 ldr r3, [pc, #100] @ (8001e90 <main+0x1b4>)
  4027. 8001e2c: 2200 movs r2, #0
  4028. 8001e2e: 2100 movs r1, #0
  4029. 8001e30: 480f ldr r0, [pc, #60] @ (8001e70 <main+0x194>)
  4030. 8001e32: f00f f87d bl 8010f30 <osTimerNew>
  4031. 8001e36: 4603 mov r3, r0
  4032. 8001e38: 4a16 ldr r2, [pc, #88] @ (8001e94 <main+0x1b8>)
  4033. 8001e3a: 6013 str r3, [r2, #0]
  4034. /* add queues, ... */
  4035. /* USER CODE END RTOS_QUEUES */
  4036. /* Create the thread(s) */
  4037. /* creation of defaultTask */
  4038. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  4039. 8001e3c: 4a16 ldr r2, [pc, #88] @ (8001e98 <main+0x1bc>)
  4040. 8001e3e: 2100 movs r1, #0
  4041. 8001e40: 4816 ldr r0, [pc, #88] @ (8001e9c <main+0x1c0>)
  4042. 8001e42: f00e ffa6 bl 8010d92 <osThreadNew>
  4043. 8001e46: 4603 mov r3, r0
  4044. 8001e48: 4a15 ldr r2, [pc, #84] @ (8001ea0 <main+0x1c4>)
  4045. 8001e4a: 6013 str r3, [r2, #0]
  4046. /* USER CODE BEGIN RTOS_THREADS */
  4047. /* add threads, ... */
  4048. mqtt_cli_init();
  4049. 8001e4c: f001 f962 bl 8003114 <mqtt_cli_init>
  4050. // Uart8TasksInit();
  4051. UartTasksInit();
  4052. 8001e50: f002 f888 bl 8003f64 <UartTasksInit>
  4053. #ifdef USER_MOCKS
  4054. MockMeasurmetsTaskInit();
  4055. #else
  4056. MeasurmentsReqSchedulerTaskInit();
  4057. 8001e54: f002 fff2 bl 8004e3c <MeasurmentsReqSchedulerTaskInit>
  4058. /* USER CODE BEGIN RTOS_EVENTS */
  4059. /* add events, ... */
  4060. /* USER CODE END RTOS_EVENTS */
  4061. /* Start scheduler */
  4062. osKernelStart();
  4063. 8001e58: f00e ff60 bl 8010d1c <osKernelStart>
  4064. /* We should never get here as control is now taken by the scheduler */
  4065. /* Infinite loop */
  4066. /* USER CODE BEGIN WHILE */
  4067. while (1)
  4068. 8001e5c: bf00 nop
  4069. 8001e5e: e7fd b.n 8001e5c <main+0x180>
  4070. 8001e60: e000ed00 .word 0xe000ed00
  4071. 8001e64: 24002238 .word 0x24002238
  4072. 8001e68: 2400223c .word 0x2400223c
  4073. 8001e6c: 08031248 .word 0x08031248
  4074. 8001e70: 0800252b .word 0x0800252b
  4075. 8001e74: 24000658 .word 0x24000658
  4076. 8001e78: 08031258 .word 0x08031258
  4077. 8001e7c: 0800253f .word 0x0800253f
  4078. 8001e80: 24000688 .word 0x24000688
  4079. 8001e84: 08031268 .word 0x08031268
  4080. 8001e88: 08002553 .word 0x08002553
  4081. 8001e8c: 240006b8 .word 0x240006b8
  4082. 8001e90: 08031278 .word 0x08031278
  4083. 8001e94: 240006e8 .word 0x240006e8
  4084. 8001e98: 08031224 .word 0x08031224
  4085. 8001e9c: 08002515 .word 0x08002515
  4086. 8001ea0: 24000654 .word 0x24000654
  4087. 08001ea4 <SystemClock_Config>:
  4088. /**
  4089. * @brief System Clock Configuration
  4090. * @retval None
  4091. */
  4092. void SystemClock_Config(void)
  4093. {
  4094. 8001ea4: b580 push {r7, lr}
  4095. 8001ea6: b09c sub sp, #112 @ 0x70
  4096. 8001ea8: af00 add r7, sp, #0
  4097. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  4098. 8001eaa: f107 0324 add.w r3, r7, #36 @ 0x24
  4099. 8001eae: 224c movs r2, #76 @ 0x4c
  4100. 8001eb0: 2100 movs r1, #0
  4101. 8001eb2: 4618 mov r0, r3
  4102. 8001eb4: f028 fb14 bl 802a4e0 <memset>
  4103. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  4104. 8001eb8: 1d3b adds r3, r7, #4
  4105. 8001eba: 2220 movs r2, #32
  4106. 8001ebc: 2100 movs r1, #0
  4107. 8001ebe: 4618 mov r0, r3
  4108. 8001ec0: f028 fb0e bl 802a4e0 <memset>
  4109. /** Supply configuration update enable
  4110. */
  4111. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  4112. 8001ec4: 2002 movs r0, #2
  4113. 8001ec6: f007 ff3f bl 8009d48 <HAL_PWREx_ConfigSupply>
  4114. /** Configure the main internal regulator output voltage
  4115. */
  4116. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  4117. 8001eca: 2300 movs r3, #0
  4118. 8001ecc: 603b str r3, [r7, #0]
  4119. 8001ece: 4b31 ldr r3, [pc, #196] @ (8001f94 <SystemClock_Config+0xf0>)
  4120. 8001ed0: 6adb ldr r3, [r3, #44] @ 0x2c
  4121. 8001ed2: 4a30 ldr r2, [pc, #192] @ (8001f94 <SystemClock_Config+0xf0>)
  4122. 8001ed4: f023 0301 bic.w r3, r3, #1
  4123. 8001ed8: 62d3 str r3, [r2, #44] @ 0x2c
  4124. 8001eda: 4b2e ldr r3, [pc, #184] @ (8001f94 <SystemClock_Config+0xf0>)
  4125. 8001edc: 6adb ldr r3, [r3, #44] @ 0x2c
  4126. 8001ede: f003 0301 and.w r3, r3, #1
  4127. 8001ee2: 603b str r3, [r7, #0]
  4128. 8001ee4: 4b2c ldr r3, [pc, #176] @ (8001f98 <SystemClock_Config+0xf4>)
  4129. 8001ee6: 699b ldr r3, [r3, #24]
  4130. 8001ee8: 4a2b ldr r2, [pc, #172] @ (8001f98 <SystemClock_Config+0xf4>)
  4131. 8001eea: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  4132. 8001eee: 6193 str r3, [r2, #24]
  4133. 8001ef0: 4b29 ldr r3, [pc, #164] @ (8001f98 <SystemClock_Config+0xf4>)
  4134. 8001ef2: 699b ldr r3, [r3, #24]
  4135. 8001ef4: f403 4340 and.w r3, r3, #49152 @ 0xc000
  4136. 8001ef8: 603b str r3, [r7, #0]
  4137. 8001efa: 683b ldr r3, [r7, #0]
  4138. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  4139. 8001efc: bf00 nop
  4140. 8001efe: 4b26 ldr r3, [pc, #152] @ (8001f98 <SystemClock_Config+0xf4>)
  4141. 8001f00: 699b ldr r3, [r3, #24]
  4142. 8001f02: f403 5300 and.w r3, r3, #8192 @ 0x2000
  4143. 8001f06: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  4144. 8001f0a: d1f8 bne.n 8001efe <SystemClock_Config+0x5a>
  4145. /** Initializes the RCC Oscillators according to the specified parameters
  4146. * in the RCC_OscInitTypeDef structure.
  4147. */
  4148. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSE;
  4149. 8001f0c: 2321 movs r3, #33 @ 0x21
  4150. 8001f0e: 627b str r3, [r7, #36] @ 0x24
  4151. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  4152. 8001f10: f44f 3380 mov.w r3, #65536 @ 0x10000
  4153. 8001f14: 62bb str r3, [r7, #40] @ 0x28
  4154. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  4155. 8001f16: 2301 movs r3, #1
  4156. 8001f18: 63fb str r3, [r7, #60] @ 0x3c
  4157. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  4158. 8001f1a: 2302 movs r3, #2
  4159. 8001f1c: 64bb str r3, [r7, #72] @ 0x48
  4160. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  4161. 8001f1e: 2302 movs r3, #2
  4162. 8001f20: 64fb str r3, [r7, #76] @ 0x4c
  4163. RCC_OscInitStruct.PLL.PLLM = 5;
  4164. 8001f22: 2305 movs r3, #5
  4165. 8001f24: 653b str r3, [r7, #80] @ 0x50
  4166. RCC_OscInitStruct.PLL.PLLN = 160;
  4167. 8001f26: 23a0 movs r3, #160 @ 0xa0
  4168. 8001f28: 657b str r3, [r7, #84] @ 0x54
  4169. RCC_OscInitStruct.PLL.PLLP = 2;
  4170. 8001f2a: 2302 movs r3, #2
  4171. 8001f2c: 65bb str r3, [r7, #88] @ 0x58
  4172. RCC_OscInitStruct.PLL.PLLQ = 2;
  4173. 8001f2e: 2302 movs r3, #2
  4174. 8001f30: 65fb str r3, [r7, #92] @ 0x5c
  4175. RCC_OscInitStruct.PLL.PLLR = 2;
  4176. 8001f32: 2302 movs r3, #2
  4177. 8001f34: 663b str r3, [r7, #96] @ 0x60
  4178. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  4179. 8001f36: 2308 movs r3, #8
  4180. 8001f38: 667b str r3, [r7, #100] @ 0x64
  4181. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  4182. 8001f3a: 2300 movs r3, #0
  4183. 8001f3c: 66bb str r3, [r7, #104] @ 0x68
  4184. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  4185. 8001f3e: 2300 movs r3, #0
  4186. 8001f40: 66fb str r3, [r7, #108] @ 0x6c
  4187. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  4188. 8001f42: f107 0324 add.w r3, r7, #36 @ 0x24
  4189. 8001f46: 4618 mov r0, r3
  4190. 8001f48: f007 ffbe bl 8009ec8 <HAL_RCC_OscConfig>
  4191. 8001f4c: 4603 mov r3, r0
  4192. 8001f4e: 2b00 cmp r3, #0
  4193. 8001f50: d001 beq.n 8001f56 <SystemClock_Config+0xb2>
  4194. {
  4195. Error_Handler();
  4196. 8001f52: f000 fb79 bl 8002648 <Error_Handler>
  4197. }
  4198. /** Initializes the CPU, AHB and APB buses clocks
  4199. */
  4200. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  4201. 8001f56: 233f movs r3, #63 @ 0x3f
  4202. 8001f58: 607b str r3, [r7, #4]
  4203. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  4204. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  4205. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  4206. 8001f5a: 2303 movs r3, #3
  4207. 8001f5c: 60bb str r3, [r7, #8]
  4208. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  4209. 8001f5e: 2300 movs r3, #0
  4210. 8001f60: 60fb str r3, [r7, #12]
  4211. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  4212. 8001f62: 2308 movs r3, #8
  4213. 8001f64: 613b str r3, [r7, #16]
  4214. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  4215. 8001f66: 2340 movs r3, #64 @ 0x40
  4216. 8001f68: 617b str r3, [r7, #20]
  4217. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  4218. 8001f6a: 2340 movs r3, #64 @ 0x40
  4219. 8001f6c: 61bb str r3, [r7, #24]
  4220. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  4221. 8001f6e: f44f 6380 mov.w r3, #1024 @ 0x400
  4222. 8001f72: 61fb str r3, [r7, #28]
  4223. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  4224. 8001f74: 2340 movs r3, #64 @ 0x40
  4225. 8001f76: 623b str r3, [r7, #32]
  4226. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  4227. 8001f78: 1d3b adds r3, r7, #4
  4228. 8001f7a: 2102 movs r1, #2
  4229. 8001f7c: 4618 mov r0, r3
  4230. 8001f7e: f008 fbfd bl 800a77c <HAL_RCC_ClockConfig>
  4231. 8001f82: 4603 mov r3, r0
  4232. 8001f84: 2b00 cmp r3, #0
  4233. 8001f86: d001 beq.n 8001f8c <SystemClock_Config+0xe8>
  4234. {
  4235. Error_Handler();
  4236. 8001f88: f000 fb5e bl 8002648 <Error_Handler>
  4237. }
  4238. }
  4239. 8001f8c: bf00 nop
  4240. 8001f8e: 3770 adds r7, #112 @ 0x70
  4241. 8001f90: 46bd mov sp, r7
  4242. 8001f92: bd80 pop {r7, pc}
  4243. 8001f94: 58000400 .word 0x58000400
  4244. 8001f98: 58024800 .word 0x58024800
  4245. 08001f9c <MX_CRC_Init>:
  4246. * @brief CRC Initialization Function
  4247. * @param None
  4248. * @retval None
  4249. */
  4250. static void MX_CRC_Init(void)
  4251. {
  4252. 8001f9c: b580 push {r7, lr}
  4253. 8001f9e: af00 add r7, sp, #0
  4254. /* USER CODE END CRC_Init 0 */
  4255. /* USER CODE BEGIN CRC_Init 1 */
  4256. /* USER CODE END CRC_Init 1 */
  4257. hcrc.Instance = CRC;
  4258. 8001fa0: 4b11 ldr r3, [pc, #68] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4259. 8001fa2: 4a12 ldr r2, [pc, #72] @ (8001fec <MX_CRC_Init+0x50>)
  4260. 8001fa4: 601a str r2, [r3, #0]
  4261. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  4262. 8001fa6: 4b10 ldr r3, [pc, #64] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4263. 8001fa8: 2201 movs r2, #1
  4264. 8001faa: 711a strb r2, [r3, #4]
  4265. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  4266. 8001fac: 4b0e ldr r3, [pc, #56] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4267. 8001fae: 2200 movs r2, #0
  4268. 8001fb0: 715a strb r2, [r3, #5]
  4269. hcrc.Init.GeneratingPolynomial = 4129;
  4270. 8001fb2: 4b0d ldr r3, [pc, #52] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4271. 8001fb4: f241 0221 movw r2, #4129 @ 0x1021
  4272. 8001fb8: 609a str r2, [r3, #8]
  4273. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  4274. 8001fba: 4b0b ldr r3, [pc, #44] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4275. 8001fbc: 2208 movs r2, #8
  4276. 8001fbe: 60da str r2, [r3, #12]
  4277. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  4278. 8001fc0: 4b09 ldr r3, [pc, #36] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4279. 8001fc2: 2200 movs r2, #0
  4280. 8001fc4: 615a str r2, [r3, #20]
  4281. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  4282. 8001fc6: 4b08 ldr r3, [pc, #32] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4283. 8001fc8: 2200 movs r2, #0
  4284. 8001fca: 619a str r2, [r3, #24]
  4285. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  4286. 8001fcc: 4b06 ldr r3, [pc, #24] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4287. 8001fce: 2201 movs r2, #1
  4288. 8001fd0: 621a str r2, [r3, #32]
  4289. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  4290. 8001fd2: 4805 ldr r0, [pc, #20] @ (8001fe8 <MX_CRC_Init+0x4c>)
  4291. 8001fd4: f003 fadc bl 8005590 <HAL_CRC_Init>
  4292. 8001fd8: 4603 mov r3, r0
  4293. 8001fda: 2b00 cmp r3, #0
  4294. 8001fdc: d001 beq.n 8001fe2 <MX_CRC_Init+0x46>
  4295. {
  4296. Error_Handler();
  4297. 8001fde: f000 fb33 bl 8002648 <Error_Handler>
  4298. }
  4299. /* USER CODE BEGIN CRC_Init 2 */
  4300. /* USER CODE END CRC_Init 2 */
  4301. }
  4302. 8001fe2: bf00 nop
  4303. 8001fe4: bd80 pop {r7, pc}
  4304. 8001fe6: bf00 nop
  4305. 8001fe8: 24000248 .word 0x24000248
  4306. 8001fec: 58024c00 .word 0x58024c00
  4307. 08001ff0 <MX_RNG_Init>:
  4308. * @brief RNG Initialization Function
  4309. * @param None
  4310. * @retval None
  4311. */
  4312. static void MX_RNG_Init(void)
  4313. {
  4314. 8001ff0: b580 push {r7, lr}
  4315. 8001ff2: af00 add r7, sp, #0
  4316. /* USER CODE END RNG_Init 0 */
  4317. /* USER CODE BEGIN RNG_Init 1 */
  4318. /* USER CODE END RNG_Init 1 */
  4319. hrng.Instance = RNG;
  4320. 8001ff4: 4b07 ldr r3, [pc, #28] @ (8002014 <MX_RNG_Init+0x24>)
  4321. 8001ff6: 4a08 ldr r2, [pc, #32] @ (8002018 <MX_RNG_Init+0x28>)
  4322. 8001ff8: 601a str r2, [r3, #0]
  4323. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  4324. 8001ffa: 4b06 ldr r3, [pc, #24] @ (8002014 <MX_RNG_Init+0x24>)
  4325. 8001ffc: 2200 movs r2, #0
  4326. 8001ffe: 605a str r2, [r3, #4]
  4327. if (HAL_RNG_Init(&hrng) != HAL_OK)
  4328. 8002000: 4804 ldr r0, [pc, #16] @ (8002014 <MX_RNG_Init+0x24>)
  4329. 8002002: f00a fd99 bl 800cb38 <HAL_RNG_Init>
  4330. 8002006: 4603 mov r3, r0
  4331. 8002008: 2b00 cmp r3, #0
  4332. 800200a: d001 beq.n 8002010 <MX_RNG_Init+0x20>
  4333. {
  4334. Error_Handler();
  4335. 800200c: f000 fb1c bl 8002648 <Error_Handler>
  4336. }
  4337. /* USER CODE BEGIN RNG_Init 2 */
  4338. /* USER CODE END RNG_Init 2 */
  4339. }
  4340. 8002010: bf00 nop
  4341. 8002012: bd80 pop {r7, pc}
  4342. 8002014: 2400026c .word 0x2400026c
  4343. 8002018: 48021800 .word 0x48021800
  4344. 0800201c <MX_UART8_Init>:
  4345. * @brief UART8 Initialization Function
  4346. * @param None
  4347. * @retval None
  4348. */
  4349. static void MX_UART8_Init(void)
  4350. {
  4351. 800201c: b580 push {r7, lr}
  4352. 800201e: af00 add r7, sp, #0
  4353. /* USER CODE END UART8_Init 0 */
  4354. /* USER CODE BEGIN UART8_Init 1 */
  4355. /* USER CODE END UART8_Init 1 */
  4356. huart8.Instance = UART8;
  4357. 8002020: 4b22 ldr r3, [pc, #136] @ (80020ac <MX_UART8_Init+0x90>)
  4358. 8002022: 4a23 ldr r2, [pc, #140] @ (80020b0 <MX_UART8_Init+0x94>)
  4359. 8002024: 601a str r2, [r3, #0]
  4360. huart8.Init.BaudRate = 115200;
  4361. 8002026: 4b21 ldr r3, [pc, #132] @ (80020ac <MX_UART8_Init+0x90>)
  4362. 8002028: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4363. 800202c: 605a str r2, [r3, #4]
  4364. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  4365. 800202e: 4b1f ldr r3, [pc, #124] @ (80020ac <MX_UART8_Init+0x90>)
  4366. 8002030: 2200 movs r2, #0
  4367. 8002032: 609a str r2, [r3, #8]
  4368. huart8.Init.StopBits = UART_STOPBITS_1;
  4369. 8002034: 4b1d ldr r3, [pc, #116] @ (80020ac <MX_UART8_Init+0x90>)
  4370. 8002036: 2200 movs r2, #0
  4371. 8002038: 60da str r2, [r3, #12]
  4372. huart8.Init.Parity = UART_PARITY_NONE;
  4373. 800203a: 4b1c ldr r3, [pc, #112] @ (80020ac <MX_UART8_Init+0x90>)
  4374. 800203c: 2200 movs r2, #0
  4375. 800203e: 611a str r2, [r3, #16]
  4376. huart8.Init.Mode = UART_MODE_TX_RX;
  4377. 8002040: 4b1a ldr r3, [pc, #104] @ (80020ac <MX_UART8_Init+0x90>)
  4378. 8002042: 220c movs r2, #12
  4379. 8002044: 615a str r2, [r3, #20]
  4380. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4381. 8002046: 4b19 ldr r3, [pc, #100] @ (80020ac <MX_UART8_Init+0x90>)
  4382. 8002048: 2200 movs r2, #0
  4383. 800204a: 619a str r2, [r3, #24]
  4384. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  4385. 800204c: 4b17 ldr r3, [pc, #92] @ (80020ac <MX_UART8_Init+0x90>)
  4386. 800204e: 2200 movs r2, #0
  4387. 8002050: 61da str r2, [r3, #28]
  4388. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4389. 8002052: 4b16 ldr r3, [pc, #88] @ (80020ac <MX_UART8_Init+0x90>)
  4390. 8002054: 2200 movs r2, #0
  4391. 8002056: 621a str r2, [r3, #32]
  4392. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4393. 8002058: 4b14 ldr r3, [pc, #80] @ (80020ac <MX_UART8_Init+0x90>)
  4394. 800205a: 2200 movs r2, #0
  4395. 800205c: 625a str r2, [r3, #36] @ 0x24
  4396. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  4397. 800205e: 4b13 ldr r3, [pc, #76] @ (80020ac <MX_UART8_Init+0x90>)
  4398. 8002060: 2200 movs r2, #0
  4399. 8002062: 629a str r2, [r3, #40] @ 0x28
  4400. if (HAL_UART_Init(&huart8) != HAL_OK)
  4401. 8002064: 4811 ldr r0, [pc, #68] @ (80020ac <MX_UART8_Init+0x90>)
  4402. 8002066: f00b f8ed bl 800d244 <HAL_UART_Init>
  4403. 800206a: 4603 mov r3, r0
  4404. 800206c: 2b00 cmp r3, #0
  4405. 800206e: d001 beq.n 8002074 <MX_UART8_Init+0x58>
  4406. {
  4407. Error_Handler();
  4408. 8002070: f000 faea bl 8002648 <Error_Handler>
  4409. }
  4410. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4411. 8002074: 2100 movs r1, #0
  4412. 8002076: 480d ldr r0, [pc, #52] @ (80020ac <MX_UART8_Init+0x90>)
  4413. 8002078: f00d fe1b bl 800fcb2 <HAL_UARTEx_SetTxFifoThreshold>
  4414. 800207c: 4603 mov r3, r0
  4415. 800207e: 2b00 cmp r3, #0
  4416. 8002080: d001 beq.n 8002086 <MX_UART8_Init+0x6a>
  4417. {
  4418. Error_Handler();
  4419. 8002082: f000 fae1 bl 8002648 <Error_Handler>
  4420. }
  4421. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4422. 8002086: 2100 movs r1, #0
  4423. 8002088: 4808 ldr r0, [pc, #32] @ (80020ac <MX_UART8_Init+0x90>)
  4424. 800208a: f00d fe50 bl 800fd2e <HAL_UARTEx_SetRxFifoThreshold>
  4425. 800208e: 4603 mov r3, r0
  4426. 8002090: 2b00 cmp r3, #0
  4427. 8002092: d001 beq.n 8002098 <MX_UART8_Init+0x7c>
  4428. {
  4429. Error_Handler();
  4430. 8002094: f000 fad8 bl 8002648 <Error_Handler>
  4431. }
  4432. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  4433. 8002098: 4804 ldr r0, [pc, #16] @ (80020ac <MX_UART8_Init+0x90>)
  4434. 800209a: f00d fdd1 bl 800fc40 <HAL_UARTEx_DisableFifoMode>
  4435. 800209e: 4603 mov r3, r0
  4436. 80020a0: 2b00 cmp r3, #0
  4437. 80020a2: d001 beq.n 80020a8 <MX_UART8_Init+0x8c>
  4438. {
  4439. Error_Handler();
  4440. 80020a4: f000 fad0 bl 8002648 <Error_Handler>
  4441. }
  4442. /* USER CODE BEGIN UART8_Init 2 */
  4443. /* USER CODE END UART8_Init 2 */
  4444. }
  4445. 80020a8: bf00 nop
  4446. 80020aa: bd80 pop {r7, pc}
  4447. 80020ac: 24000280 .word 0x24000280
  4448. 80020b0: 40007c00 .word 0x40007c00
  4449. 080020b4 <MX_USART1_UART_Init>:
  4450. * @brief USART1 Initialization Function
  4451. * @param None
  4452. * @retval None
  4453. */
  4454. static void MX_USART1_UART_Init(void)
  4455. {
  4456. 80020b4: b580 push {r7, lr}
  4457. 80020b6: af00 add r7, sp, #0
  4458. /* USER CODE END USART1_Init 0 */
  4459. /* USER CODE BEGIN USART1_Init 1 */
  4460. /* USER CODE END USART1_Init 1 */
  4461. huart1.Instance = USART1;
  4462. 80020b8: 4b24 ldr r3, [pc, #144] @ (800214c <MX_USART1_UART_Init+0x98>)
  4463. 80020ba: 4a25 ldr r2, [pc, #148] @ (8002150 <MX_USART1_UART_Init+0x9c>)
  4464. 80020bc: 601a str r2, [r3, #0]
  4465. huart1.Init.BaudRate = 115200;
  4466. 80020be: 4b23 ldr r3, [pc, #140] @ (800214c <MX_USART1_UART_Init+0x98>)
  4467. 80020c0: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4468. 80020c4: 605a str r2, [r3, #4]
  4469. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  4470. 80020c6: 4b21 ldr r3, [pc, #132] @ (800214c <MX_USART1_UART_Init+0x98>)
  4471. 80020c8: 2200 movs r2, #0
  4472. 80020ca: 609a str r2, [r3, #8]
  4473. huart1.Init.StopBits = UART_STOPBITS_1;
  4474. 80020cc: 4b1f ldr r3, [pc, #124] @ (800214c <MX_USART1_UART_Init+0x98>)
  4475. 80020ce: 2200 movs r2, #0
  4476. 80020d0: 60da str r2, [r3, #12]
  4477. huart1.Init.Parity = UART_PARITY_NONE;
  4478. 80020d2: 4b1e ldr r3, [pc, #120] @ (800214c <MX_USART1_UART_Init+0x98>)
  4479. 80020d4: 2200 movs r2, #0
  4480. 80020d6: 611a str r2, [r3, #16]
  4481. huart1.Init.Mode = UART_MODE_TX_RX;
  4482. 80020d8: 4b1c ldr r3, [pc, #112] @ (800214c <MX_USART1_UART_Init+0x98>)
  4483. 80020da: 220c movs r2, #12
  4484. 80020dc: 615a str r2, [r3, #20]
  4485. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4486. 80020de: 4b1b ldr r3, [pc, #108] @ (800214c <MX_USART1_UART_Init+0x98>)
  4487. 80020e0: 2200 movs r2, #0
  4488. 80020e2: 619a str r2, [r3, #24]
  4489. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  4490. 80020e4: 4b19 ldr r3, [pc, #100] @ (800214c <MX_USART1_UART_Init+0x98>)
  4491. 80020e6: 2200 movs r2, #0
  4492. 80020e8: 61da str r2, [r3, #28]
  4493. huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4494. 80020ea: 4b18 ldr r3, [pc, #96] @ (800214c <MX_USART1_UART_Init+0x98>)
  4495. 80020ec: 2200 movs r2, #0
  4496. 80020ee: 621a str r2, [r3, #32]
  4497. huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4498. 80020f0: 4b16 ldr r3, [pc, #88] @ (800214c <MX_USART1_UART_Init+0x98>)
  4499. 80020f2: 2200 movs r2, #0
  4500. 80020f4: 625a str r2, [r3, #36] @ 0x24
  4501. huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4502. 80020f6: 4b15 ldr r3, [pc, #84] @ (800214c <MX_USART1_UART_Init+0x98>)
  4503. 80020f8: 2201 movs r2, #1
  4504. 80020fa: 629a str r2, [r3, #40] @ 0x28
  4505. huart1.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4506. 80020fc: 4b13 ldr r3, [pc, #76] @ (800214c <MX_USART1_UART_Init+0x98>)
  4507. 80020fe: f44f 3200 mov.w r2, #131072 @ 0x20000
  4508. 8002102: 62da str r2, [r3, #44] @ 0x2c
  4509. if (HAL_UART_Init(&huart1) != HAL_OK)
  4510. 8002104: 4811 ldr r0, [pc, #68] @ (800214c <MX_USART1_UART_Init+0x98>)
  4511. 8002106: f00b f89d bl 800d244 <HAL_UART_Init>
  4512. 800210a: 4603 mov r3, r0
  4513. 800210c: 2b00 cmp r3, #0
  4514. 800210e: d001 beq.n 8002114 <MX_USART1_UART_Init+0x60>
  4515. {
  4516. Error_Handler();
  4517. 8002110: f000 fa9a bl 8002648 <Error_Handler>
  4518. }
  4519. if (HAL_UARTEx_SetTxFifoThreshold(&huart1, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4520. 8002114: 2100 movs r1, #0
  4521. 8002116: 480d ldr r0, [pc, #52] @ (800214c <MX_USART1_UART_Init+0x98>)
  4522. 8002118: f00d fdcb bl 800fcb2 <HAL_UARTEx_SetTxFifoThreshold>
  4523. 800211c: 4603 mov r3, r0
  4524. 800211e: 2b00 cmp r3, #0
  4525. 8002120: d001 beq.n 8002126 <MX_USART1_UART_Init+0x72>
  4526. {
  4527. Error_Handler();
  4528. 8002122: f000 fa91 bl 8002648 <Error_Handler>
  4529. }
  4530. if (HAL_UARTEx_SetRxFifoThreshold(&huart1, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4531. 8002126: 2100 movs r1, #0
  4532. 8002128: 4808 ldr r0, [pc, #32] @ (800214c <MX_USART1_UART_Init+0x98>)
  4533. 800212a: f00d fe00 bl 800fd2e <HAL_UARTEx_SetRxFifoThreshold>
  4534. 800212e: 4603 mov r3, r0
  4535. 8002130: 2b00 cmp r3, #0
  4536. 8002132: d001 beq.n 8002138 <MX_USART1_UART_Init+0x84>
  4537. {
  4538. Error_Handler();
  4539. 8002134: f000 fa88 bl 8002648 <Error_Handler>
  4540. }
  4541. if (HAL_UARTEx_DisableFifoMode(&huart1) != HAL_OK)
  4542. 8002138: 4804 ldr r0, [pc, #16] @ (800214c <MX_USART1_UART_Init+0x98>)
  4543. 800213a: f00d fd81 bl 800fc40 <HAL_UARTEx_DisableFifoMode>
  4544. 800213e: 4603 mov r3, r0
  4545. 8002140: 2b00 cmp r3, #0
  4546. 8002142: d001 beq.n 8002148 <MX_USART1_UART_Init+0x94>
  4547. {
  4548. Error_Handler();
  4549. 8002144: f000 fa80 bl 8002648 <Error_Handler>
  4550. }
  4551. /* USER CODE BEGIN USART1_Init 2 */
  4552. /* USER CODE END USART1_Init 2 */
  4553. }
  4554. 8002148: bf00 nop
  4555. 800214a: bd80 pop {r7, pc}
  4556. 800214c: 24000314 .word 0x24000314
  4557. 8002150: 40011000 .word 0x40011000
  4558. 08002154 <MX_USART2_UART_Init>:
  4559. * @brief USART2 Initialization Function
  4560. * @param None
  4561. * @retval None
  4562. */
  4563. static void MX_USART2_UART_Init(void)
  4564. {
  4565. 8002154: b580 push {r7, lr}
  4566. 8002156: af00 add r7, sp, #0
  4567. /* USER CODE END USART2_Init 0 */
  4568. /* USER CODE BEGIN USART2_Init 1 */
  4569. /* USER CODE END USART2_Init 1 */
  4570. huart2.Instance = USART2;
  4571. 8002158: 4b24 ldr r3, [pc, #144] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4572. 800215a: 4a25 ldr r2, [pc, #148] @ (80021f0 <MX_USART2_UART_Init+0x9c>)
  4573. 800215c: 601a str r2, [r3, #0]
  4574. huart2.Init.BaudRate = 115200;
  4575. 800215e: 4b23 ldr r3, [pc, #140] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4576. 8002160: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4577. 8002164: 605a str r2, [r3, #4]
  4578. huart2.Init.WordLength = UART_WORDLENGTH_8B;
  4579. 8002166: 4b21 ldr r3, [pc, #132] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4580. 8002168: 2200 movs r2, #0
  4581. 800216a: 609a str r2, [r3, #8]
  4582. huart2.Init.StopBits = UART_STOPBITS_1;
  4583. 800216c: 4b1f ldr r3, [pc, #124] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4584. 800216e: 2200 movs r2, #0
  4585. 8002170: 60da str r2, [r3, #12]
  4586. huart2.Init.Parity = UART_PARITY_NONE;
  4587. 8002172: 4b1e ldr r3, [pc, #120] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4588. 8002174: 2200 movs r2, #0
  4589. 8002176: 611a str r2, [r3, #16]
  4590. huart2.Init.Mode = UART_MODE_TX_RX;
  4591. 8002178: 4b1c ldr r3, [pc, #112] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4592. 800217a: 220c movs r2, #12
  4593. 800217c: 615a str r2, [r3, #20]
  4594. huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4595. 800217e: 4b1b ldr r3, [pc, #108] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4596. 8002180: 2200 movs r2, #0
  4597. 8002182: 619a str r2, [r3, #24]
  4598. huart2.Init.OverSampling = UART_OVERSAMPLING_16;
  4599. 8002184: 4b19 ldr r3, [pc, #100] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4600. 8002186: 2200 movs r2, #0
  4601. 8002188: 61da str r2, [r3, #28]
  4602. huart2.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4603. 800218a: 4b18 ldr r3, [pc, #96] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4604. 800218c: 2200 movs r2, #0
  4605. 800218e: 621a str r2, [r3, #32]
  4606. huart2.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4607. 8002190: 4b16 ldr r3, [pc, #88] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4608. 8002192: 2200 movs r2, #0
  4609. 8002194: 625a str r2, [r3, #36] @ 0x24
  4610. huart2.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4611. 8002196: 4b15 ldr r3, [pc, #84] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4612. 8002198: 2201 movs r2, #1
  4613. 800219a: 629a str r2, [r3, #40] @ 0x28
  4614. huart2.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4615. 800219c: 4b13 ldr r3, [pc, #76] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4616. 800219e: f44f 3200 mov.w r2, #131072 @ 0x20000
  4617. 80021a2: 62da str r2, [r3, #44] @ 0x2c
  4618. if (HAL_UART_Init(&huart2) != HAL_OK)
  4619. 80021a4: 4811 ldr r0, [pc, #68] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4620. 80021a6: f00b f84d bl 800d244 <HAL_UART_Init>
  4621. 80021aa: 4603 mov r3, r0
  4622. 80021ac: 2b00 cmp r3, #0
  4623. 80021ae: d001 beq.n 80021b4 <MX_USART2_UART_Init+0x60>
  4624. {
  4625. Error_Handler();
  4626. 80021b0: f000 fa4a bl 8002648 <Error_Handler>
  4627. }
  4628. if (HAL_UARTEx_SetTxFifoThreshold(&huart2, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4629. 80021b4: 2100 movs r1, #0
  4630. 80021b6: 480d ldr r0, [pc, #52] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4631. 80021b8: f00d fd7b bl 800fcb2 <HAL_UARTEx_SetTxFifoThreshold>
  4632. 80021bc: 4603 mov r3, r0
  4633. 80021be: 2b00 cmp r3, #0
  4634. 80021c0: d001 beq.n 80021c6 <MX_USART2_UART_Init+0x72>
  4635. {
  4636. Error_Handler();
  4637. 80021c2: f000 fa41 bl 8002648 <Error_Handler>
  4638. }
  4639. if (HAL_UARTEx_SetRxFifoThreshold(&huart2, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4640. 80021c6: 2100 movs r1, #0
  4641. 80021c8: 4808 ldr r0, [pc, #32] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4642. 80021ca: f00d fdb0 bl 800fd2e <HAL_UARTEx_SetRxFifoThreshold>
  4643. 80021ce: 4603 mov r3, r0
  4644. 80021d0: 2b00 cmp r3, #0
  4645. 80021d2: d001 beq.n 80021d8 <MX_USART2_UART_Init+0x84>
  4646. {
  4647. Error_Handler();
  4648. 80021d4: f000 fa38 bl 8002648 <Error_Handler>
  4649. }
  4650. if (HAL_UARTEx_DisableFifoMode(&huart2) != HAL_OK)
  4651. 80021d8: 4804 ldr r0, [pc, #16] @ (80021ec <MX_USART2_UART_Init+0x98>)
  4652. 80021da: f00d fd31 bl 800fc40 <HAL_UARTEx_DisableFifoMode>
  4653. 80021de: 4603 mov r3, r0
  4654. 80021e0: 2b00 cmp r3, #0
  4655. 80021e2: d001 beq.n 80021e8 <MX_USART2_UART_Init+0x94>
  4656. {
  4657. Error_Handler();
  4658. 80021e4: f000 fa30 bl 8002648 <Error_Handler>
  4659. }
  4660. /* USER CODE BEGIN USART2_Init 2 */
  4661. /* USER CODE END USART2_Init 2 */
  4662. }
  4663. 80021e8: bf00 nop
  4664. 80021ea: bd80 pop {r7, pc}
  4665. 80021ec: 240003a8 .word 0x240003a8
  4666. 80021f0: 40004400 .word 0x40004400
  4667. 080021f4 <MX_USART3_UART_Init>:
  4668. * @brief USART3 Initialization Function
  4669. * @param None
  4670. * @retval None
  4671. */
  4672. static void MX_USART3_UART_Init(void)
  4673. {
  4674. 80021f4: b580 push {r7, lr}
  4675. 80021f6: af00 add r7, sp, #0
  4676. /* USER CODE END USART3_Init 0 */
  4677. /* USER CODE BEGIN USART3_Init 1 */
  4678. /* USER CODE END USART3_Init 1 */
  4679. huart3.Instance = USART3;
  4680. 80021f8: 4b24 ldr r3, [pc, #144] @ (800228c <MX_USART3_UART_Init+0x98>)
  4681. 80021fa: 4a25 ldr r2, [pc, #148] @ (8002290 <MX_USART3_UART_Init+0x9c>)
  4682. 80021fc: 601a str r2, [r3, #0]
  4683. huart3.Init.BaudRate = 115200;
  4684. 80021fe: 4b23 ldr r3, [pc, #140] @ (800228c <MX_USART3_UART_Init+0x98>)
  4685. 8002200: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4686. 8002204: 605a str r2, [r3, #4]
  4687. huart3.Init.WordLength = UART_WORDLENGTH_8B;
  4688. 8002206: 4b21 ldr r3, [pc, #132] @ (800228c <MX_USART3_UART_Init+0x98>)
  4689. 8002208: 2200 movs r2, #0
  4690. 800220a: 609a str r2, [r3, #8]
  4691. huart3.Init.StopBits = UART_STOPBITS_1;
  4692. 800220c: 4b1f ldr r3, [pc, #124] @ (800228c <MX_USART3_UART_Init+0x98>)
  4693. 800220e: 2200 movs r2, #0
  4694. 8002210: 60da str r2, [r3, #12]
  4695. huart3.Init.Parity = UART_PARITY_NONE;
  4696. 8002212: 4b1e ldr r3, [pc, #120] @ (800228c <MX_USART3_UART_Init+0x98>)
  4697. 8002214: 2200 movs r2, #0
  4698. 8002216: 611a str r2, [r3, #16]
  4699. huart3.Init.Mode = UART_MODE_TX_RX;
  4700. 8002218: 4b1c ldr r3, [pc, #112] @ (800228c <MX_USART3_UART_Init+0x98>)
  4701. 800221a: 220c movs r2, #12
  4702. 800221c: 615a str r2, [r3, #20]
  4703. huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4704. 800221e: 4b1b ldr r3, [pc, #108] @ (800228c <MX_USART3_UART_Init+0x98>)
  4705. 8002220: 2200 movs r2, #0
  4706. 8002222: 619a str r2, [r3, #24]
  4707. huart3.Init.OverSampling = UART_OVERSAMPLING_16;
  4708. 8002224: 4b19 ldr r3, [pc, #100] @ (800228c <MX_USART3_UART_Init+0x98>)
  4709. 8002226: 2200 movs r2, #0
  4710. 8002228: 61da str r2, [r3, #28]
  4711. huart3.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4712. 800222a: 4b18 ldr r3, [pc, #96] @ (800228c <MX_USART3_UART_Init+0x98>)
  4713. 800222c: 2200 movs r2, #0
  4714. 800222e: 621a str r2, [r3, #32]
  4715. huart3.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4716. 8002230: 4b16 ldr r3, [pc, #88] @ (800228c <MX_USART3_UART_Init+0x98>)
  4717. 8002232: 2200 movs r2, #0
  4718. 8002234: 625a str r2, [r3, #36] @ 0x24
  4719. huart3.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4720. 8002236: 4b15 ldr r3, [pc, #84] @ (800228c <MX_USART3_UART_Init+0x98>)
  4721. 8002238: 2201 movs r2, #1
  4722. 800223a: 629a str r2, [r3, #40] @ 0x28
  4723. huart3.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4724. 800223c: 4b13 ldr r3, [pc, #76] @ (800228c <MX_USART3_UART_Init+0x98>)
  4725. 800223e: f44f 3200 mov.w r2, #131072 @ 0x20000
  4726. 8002242: 62da str r2, [r3, #44] @ 0x2c
  4727. if (HAL_UART_Init(&huart3) != HAL_OK)
  4728. 8002244: 4811 ldr r0, [pc, #68] @ (800228c <MX_USART3_UART_Init+0x98>)
  4729. 8002246: f00a fffd bl 800d244 <HAL_UART_Init>
  4730. 800224a: 4603 mov r3, r0
  4731. 800224c: 2b00 cmp r3, #0
  4732. 800224e: d001 beq.n 8002254 <MX_USART3_UART_Init+0x60>
  4733. {
  4734. Error_Handler();
  4735. 8002250: f000 f9fa bl 8002648 <Error_Handler>
  4736. }
  4737. if (HAL_UARTEx_SetTxFifoThreshold(&huart3, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4738. 8002254: 2100 movs r1, #0
  4739. 8002256: 480d ldr r0, [pc, #52] @ (800228c <MX_USART3_UART_Init+0x98>)
  4740. 8002258: f00d fd2b bl 800fcb2 <HAL_UARTEx_SetTxFifoThreshold>
  4741. 800225c: 4603 mov r3, r0
  4742. 800225e: 2b00 cmp r3, #0
  4743. 8002260: d001 beq.n 8002266 <MX_USART3_UART_Init+0x72>
  4744. {
  4745. Error_Handler();
  4746. 8002262: f000 f9f1 bl 8002648 <Error_Handler>
  4747. }
  4748. if (HAL_UARTEx_SetRxFifoThreshold(&huart3, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4749. 8002266: 2100 movs r1, #0
  4750. 8002268: 4808 ldr r0, [pc, #32] @ (800228c <MX_USART3_UART_Init+0x98>)
  4751. 800226a: f00d fd60 bl 800fd2e <HAL_UARTEx_SetRxFifoThreshold>
  4752. 800226e: 4603 mov r3, r0
  4753. 8002270: 2b00 cmp r3, #0
  4754. 8002272: d001 beq.n 8002278 <MX_USART3_UART_Init+0x84>
  4755. {
  4756. Error_Handler();
  4757. 8002274: f000 f9e8 bl 8002648 <Error_Handler>
  4758. }
  4759. if (HAL_UARTEx_DisableFifoMode(&huart3) != HAL_OK)
  4760. 8002278: 4804 ldr r0, [pc, #16] @ (800228c <MX_USART3_UART_Init+0x98>)
  4761. 800227a: f00d fce1 bl 800fc40 <HAL_UARTEx_DisableFifoMode>
  4762. 800227e: 4603 mov r3, r0
  4763. 8002280: 2b00 cmp r3, #0
  4764. 8002282: d001 beq.n 8002288 <MX_USART3_UART_Init+0x94>
  4765. {
  4766. Error_Handler();
  4767. 8002284: f000 f9e0 bl 8002648 <Error_Handler>
  4768. }
  4769. /* USER CODE BEGIN USART3_Init 2 */
  4770. /* USER CODE END USART3_Init 2 */
  4771. }
  4772. 8002288: bf00 nop
  4773. 800228a: bd80 pop {r7, pc}
  4774. 800228c: 2400043c .word 0x2400043c
  4775. 8002290: 40004800 .word 0x40004800
  4776. 08002294 <MX_USART6_UART_Init>:
  4777. * @brief USART6 Initialization Function
  4778. * @param None
  4779. * @retval None
  4780. */
  4781. static void MX_USART6_UART_Init(void)
  4782. {
  4783. 8002294: b580 push {r7, lr}
  4784. 8002296: af00 add r7, sp, #0
  4785. /* USER CODE END USART6_Init 0 */
  4786. /* USER CODE BEGIN USART6_Init 1 */
  4787. /* USER CODE END USART6_Init 1 */
  4788. huart6.Instance = USART6;
  4789. 8002298: 4b24 ldr r3, [pc, #144] @ (800232c <MX_USART6_UART_Init+0x98>)
  4790. 800229a: 4a25 ldr r2, [pc, #148] @ (8002330 <MX_USART6_UART_Init+0x9c>)
  4791. 800229c: 601a str r2, [r3, #0]
  4792. huart6.Init.BaudRate = 115200;
  4793. 800229e: 4b23 ldr r3, [pc, #140] @ (800232c <MX_USART6_UART_Init+0x98>)
  4794. 80022a0: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  4795. 80022a4: 605a str r2, [r3, #4]
  4796. huart6.Init.WordLength = UART_WORDLENGTH_8B;
  4797. 80022a6: 4b21 ldr r3, [pc, #132] @ (800232c <MX_USART6_UART_Init+0x98>)
  4798. 80022a8: 2200 movs r2, #0
  4799. 80022aa: 609a str r2, [r3, #8]
  4800. huart6.Init.StopBits = UART_STOPBITS_1;
  4801. 80022ac: 4b1f ldr r3, [pc, #124] @ (800232c <MX_USART6_UART_Init+0x98>)
  4802. 80022ae: 2200 movs r2, #0
  4803. 80022b0: 60da str r2, [r3, #12]
  4804. huart6.Init.Parity = UART_PARITY_NONE;
  4805. 80022b2: 4b1e ldr r3, [pc, #120] @ (800232c <MX_USART6_UART_Init+0x98>)
  4806. 80022b4: 2200 movs r2, #0
  4807. 80022b6: 611a str r2, [r3, #16]
  4808. huart6.Init.Mode = UART_MODE_TX_RX;
  4809. 80022b8: 4b1c ldr r3, [pc, #112] @ (800232c <MX_USART6_UART_Init+0x98>)
  4810. 80022ba: 220c movs r2, #12
  4811. 80022bc: 615a str r2, [r3, #20]
  4812. huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  4813. 80022be: 4b1b ldr r3, [pc, #108] @ (800232c <MX_USART6_UART_Init+0x98>)
  4814. 80022c0: 2200 movs r2, #0
  4815. 80022c2: 619a str r2, [r3, #24]
  4816. huart6.Init.OverSampling = UART_OVERSAMPLING_16;
  4817. 80022c4: 4b19 ldr r3, [pc, #100] @ (800232c <MX_USART6_UART_Init+0x98>)
  4818. 80022c6: 2200 movs r2, #0
  4819. 80022c8: 61da str r2, [r3, #28]
  4820. huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  4821. 80022ca: 4b18 ldr r3, [pc, #96] @ (800232c <MX_USART6_UART_Init+0x98>)
  4822. 80022cc: 2200 movs r2, #0
  4823. 80022ce: 621a str r2, [r3, #32]
  4824. huart6.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  4825. 80022d0: 4b16 ldr r3, [pc, #88] @ (800232c <MX_USART6_UART_Init+0x98>)
  4826. 80022d2: 2200 movs r2, #0
  4827. 80022d4: 625a str r2, [r3, #36] @ 0x24
  4828. huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  4829. 80022d6: 4b15 ldr r3, [pc, #84] @ (800232c <MX_USART6_UART_Init+0x98>)
  4830. 80022d8: 2201 movs r2, #1
  4831. 80022da: 629a str r2, [r3, #40] @ 0x28
  4832. huart6.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  4833. 80022dc: 4b13 ldr r3, [pc, #76] @ (800232c <MX_USART6_UART_Init+0x98>)
  4834. 80022de: f44f 3200 mov.w r2, #131072 @ 0x20000
  4835. 80022e2: 62da str r2, [r3, #44] @ 0x2c
  4836. if (HAL_UART_Init(&huart6) != HAL_OK)
  4837. 80022e4: 4811 ldr r0, [pc, #68] @ (800232c <MX_USART6_UART_Init+0x98>)
  4838. 80022e6: f00a ffad bl 800d244 <HAL_UART_Init>
  4839. 80022ea: 4603 mov r3, r0
  4840. 80022ec: 2b00 cmp r3, #0
  4841. 80022ee: d001 beq.n 80022f4 <MX_USART6_UART_Init+0x60>
  4842. {
  4843. Error_Handler();
  4844. 80022f0: f000 f9aa bl 8002648 <Error_Handler>
  4845. }
  4846. if (HAL_UARTEx_SetTxFifoThreshold(&huart6, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  4847. 80022f4: 2100 movs r1, #0
  4848. 80022f6: 480d ldr r0, [pc, #52] @ (800232c <MX_USART6_UART_Init+0x98>)
  4849. 80022f8: f00d fcdb bl 800fcb2 <HAL_UARTEx_SetTxFifoThreshold>
  4850. 80022fc: 4603 mov r3, r0
  4851. 80022fe: 2b00 cmp r3, #0
  4852. 8002300: d001 beq.n 8002306 <MX_USART6_UART_Init+0x72>
  4853. {
  4854. Error_Handler();
  4855. 8002302: f000 f9a1 bl 8002648 <Error_Handler>
  4856. }
  4857. if (HAL_UARTEx_SetRxFifoThreshold(&huart6, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  4858. 8002306: 2100 movs r1, #0
  4859. 8002308: 4808 ldr r0, [pc, #32] @ (800232c <MX_USART6_UART_Init+0x98>)
  4860. 800230a: f00d fd10 bl 800fd2e <HAL_UARTEx_SetRxFifoThreshold>
  4861. 800230e: 4603 mov r3, r0
  4862. 8002310: 2b00 cmp r3, #0
  4863. 8002312: d001 beq.n 8002318 <MX_USART6_UART_Init+0x84>
  4864. {
  4865. Error_Handler();
  4866. 8002314: f000 f998 bl 8002648 <Error_Handler>
  4867. }
  4868. if (HAL_UARTEx_DisableFifoMode(&huart6) != HAL_OK)
  4869. 8002318: 4804 ldr r0, [pc, #16] @ (800232c <MX_USART6_UART_Init+0x98>)
  4870. 800231a: f00d fc91 bl 800fc40 <HAL_UARTEx_DisableFifoMode>
  4871. 800231e: 4603 mov r3, r0
  4872. 8002320: 2b00 cmp r3, #0
  4873. 8002322: d001 beq.n 8002328 <MX_USART6_UART_Init+0x94>
  4874. {
  4875. Error_Handler();
  4876. 8002324: f000 f990 bl 8002648 <Error_Handler>
  4877. }
  4878. /* USER CODE BEGIN USART6_Init 2 */
  4879. /* USER CODE END USART6_Init 2 */
  4880. }
  4881. 8002328: bf00 nop
  4882. 800232a: bd80 pop {r7, pc}
  4883. 800232c: 240004d0 .word 0x240004d0
  4884. 8002330: 40011400 .word 0x40011400
  4885. 08002334 <MX_DMA_Init>:
  4886. /**
  4887. * Enable DMA controller clock
  4888. */
  4889. static void MX_DMA_Init(void)
  4890. {
  4891. 8002334: b580 push {r7, lr}
  4892. 8002336: b082 sub sp, #8
  4893. 8002338: af00 add r7, sp, #0
  4894. /* DMA controller clock enable */
  4895. __HAL_RCC_DMA2_CLK_ENABLE();
  4896. 800233a: 4b11 ldr r3, [pc, #68] @ (8002380 <MX_DMA_Init+0x4c>)
  4897. 800233c: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4898. 8002340: 4a0f ldr r2, [pc, #60] @ (8002380 <MX_DMA_Init+0x4c>)
  4899. 8002342: f043 0302 orr.w r3, r3, #2
  4900. 8002346: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  4901. 800234a: 4b0d ldr r3, [pc, #52] @ (8002380 <MX_DMA_Init+0x4c>)
  4902. 800234c: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  4903. 8002350: f003 0302 and.w r3, r3, #2
  4904. 8002354: 607b str r3, [r7, #4]
  4905. 8002356: 687b ldr r3, [r7, #4]
  4906. /* DMA interrupt init */
  4907. /* DMA2_Stream6_IRQn interrupt configuration */
  4908. HAL_NVIC_SetPriority(DMA2_Stream6_IRQn, 5, 0);
  4909. 8002358: 2200 movs r2, #0
  4910. 800235a: 2105 movs r1, #5
  4911. 800235c: 2045 movs r0, #69 @ 0x45
  4912. 800235e: f003 f877 bl 8005450 <HAL_NVIC_SetPriority>
  4913. HAL_NVIC_EnableIRQ(DMA2_Stream6_IRQn);
  4914. 8002362: 2045 movs r0, #69 @ 0x45
  4915. 8002364: f003 f88e bl 8005484 <HAL_NVIC_EnableIRQ>
  4916. /* DMA2_Stream7_IRQn interrupt configuration */
  4917. HAL_NVIC_SetPriority(DMA2_Stream7_IRQn, 5, 0);
  4918. 8002368: 2200 movs r2, #0
  4919. 800236a: 2105 movs r1, #5
  4920. 800236c: 2046 movs r0, #70 @ 0x46
  4921. 800236e: f003 f86f bl 8005450 <HAL_NVIC_SetPriority>
  4922. HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn);
  4923. 8002372: 2046 movs r0, #70 @ 0x46
  4924. 8002374: f003 f886 bl 8005484 <HAL_NVIC_EnableIRQ>
  4925. }
  4926. 8002378: bf00 nop
  4927. 800237a: 3708 adds r7, #8
  4928. 800237c: 46bd mov sp, r7
  4929. 800237e: bd80 pop {r7, pc}
  4930. 8002380: 58024400 .word 0x58024400
  4931. 08002384 <MX_GPIO_Init>:
  4932. * @brief GPIO Initialization Function
  4933. * @param None
  4934. * @retval None
  4935. */
  4936. static void MX_GPIO_Init(void)
  4937. {
  4938. 8002384: b580 push {r7, lr}
  4939. 8002386: b08c sub sp, #48 @ 0x30
  4940. 8002388: af00 add r7, sp, #0
  4941. GPIO_InitTypeDef GPIO_InitStruct = {0};
  4942. 800238a: f107 031c add.w r3, r7, #28
  4943. 800238e: 2200 movs r2, #0
  4944. 8002390: 601a str r2, [r3, #0]
  4945. 8002392: 605a str r2, [r3, #4]
  4946. 8002394: 609a str r2, [r3, #8]
  4947. 8002396: 60da str r2, [r3, #12]
  4948. 8002398: 611a str r2, [r3, #16]
  4949. /* USER CODE BEGIN MX_GPIO_Init_1 */
  4950. /* USER CODE END MX_GPIO_Init_1 */
  4951. /* GPIO Ports Clock Enable */
  4952. __HAL_RCC_GPIOE_CLK_ENABLE();
  4953. 800239a: 4b5b ldr r3, [pc, #364] @ (8002508 <MX_GPIO_Init+0x184>)
  4954. 800239c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4955. 80023a0: 4a59 ldr r2, [pc, #356] @ (8002508 <MX_GPIO_Init+0x184>)
  4956. 80023a2: f043 0310 orr.w r3, r3, #16
  4957. 80023a6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4958. 80023aa: 4b57 ldr r3, [pc, #348] @ (8002508 <MX_GPIO_Init+0x184>)
  4959. 80023ac: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4960. 80023b0: f003 0310 and.w r3, r3, #16
  4961. 80023b4: 61bb str r3, [r7, #24]
  4962. 80023b6: 69bb ldr r3, [r7, #24]
  4963. __HAL_RCC_GPIOH_CLK_ENABLE();
  4964. 80023b8: 4b53 ldr r3, [pc, #332] @ (8002508 <MX_GPIO_Init+0x184>)
  4965. 80023ba: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4966. 80023be: 4a52 ldr r2, [pc, #328] @ (8002508 <MX_GPIO_Init+0x184>)
  4967. 80023c0: f043 0380 orr.w r3, r3, #128 @ 0x80
  4968. 80023c4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4969. 80023c8: 4b4f ldr r3, [pc, #316] @ (8002508 <MX_GPIO_Init+0x184>)
  4970. 80023ca: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4971. 80023ce: f003 0380 and.w r3, r3, #128 @ 0x80
  4972. 80023d2: 617b str r3, [r7, #20]
  4973. 80023d4: 697b ldr r3, [r7, #20]
  4974. __HAL_RCC_GPIOC_CLK_ENABLE();
  4975. 80023d6: 4b4c ldr r3, [pc, #304] @ (8002508 <MX_GPIO_Init+0x184>)
  4976. 80023d8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4977. 80023dc: 4a4a ldr r2, [pc, #296] @ (8002508 <MX_GPIO_Init+0x184>)
  4978. 80023de: f043 0304 orr.w r3, r3, #4
  4979. 80023e2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4980. 80023e6: 4b48 ldr r3, [pc, #288] @ (8002508 <MX_GPIO_Init+0x184>)
  4981. 80023e8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4982. 80023ec: f003 0304 and.w r3, r3, #4
  4983. 80023f0: 613b str r3, [r7, #16]
  4984. 80023f2: 693b ldr r3, [r7, #16]
  4985. __HAL_RCC_GPIOA_CLK_ENABLE();
  4986. 80023f4: 4b44 ldr r3, [pc, #272] @ (8002508 <MX_GPIO_Init+0x184>)
  4987. 80023f6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4988. 80023fa: 4a43 ldr r2, [pc, #268] @ (8002508 <MX_GPIO_Init+0x184>)
  4989. 80023fc: f043 0301 orr.w r3, r3, #1
  4990. 8002400: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  4991. 8002404: 4b40 ldr r3, [pc, #256] @ (8002508 <MX_GPIO_Init+0x184>)
  4992. 8002406: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4993. 800240a: f003 0301 and.w r3, r3, #1
  4994. 800240e: 60fb str r3, [r7, #12]
  4995. 8002410: 68fb ldr r3, [r7, #12]
  4996. __HAL_RCC_GPIOB_CLK_ENABLE();
  4997. 8002412: 4b3d ldr r3, [pc, #244] @ (8002508 <MX_GPIO_Init+0x184>)
  4998. 8002414: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  4999. 8002418: 4a3b ldr r2, [pc, #236] @ (8002508 <MX_GPIO_Init+0x184>)
  5000. 800241a: f043 0302 orr.w r3, r3, #2
  5001. 800241e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  5002. 8002422: 4b39 ldr r3, [pc, #228] @ (8002508 <MX_GPIO_Init+0x184>)
  5003. 8002424: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  5004. 8002428: f003 0302 and.w r3, r3, #2
  5005. 800242c: 60bb str r3, [r7, #8]
  5006. 800242e: 68bb ldr r3, [r7, #8]
  5007. __HAL_RCC_GPIOD_CLK_ENABLE();
  5008. 8002430: 4b35 ldr r3, [pc, #212] @ (8002508 <MX_GPIO_Init+0x184>)
  5009. 8002432: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  5010. 8002436: 4a34 ldr r2, [pc, #208] @ (8002508 <MX_GPIO_Init+0x184>)
  5011. 8002438: f043 0308 orr.w r3, r3, #8
  5012. 800243c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  5013. 8002440: 4b31 ldr r3, [pc, #196] @ (8002508 <MX_GPIO_Init+0x184>)
  5014. 8002442: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  5015. 8002446: f003 0308 and.w r3, r3, #8
  5016. 800244a: 607b str r3, [r7, #4]
  5017. 800244c: 687b ldr r3, [r7, #4]
  5018. /*Configure GPIO pin Output Level */
  5019. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5, GPIO_PIN_RESET);
  5020. 800244e: 2200 movs r2, #0
  5021. 8002450: 213c movs r1, #60 @ 0x3c
  5022. 8002452: 482e ldr r0, [pc, #184] @ (800250c <MX_GPIO_Init+0x188>)
  5023. 8002454: f007 fbd4 bl 8009c00 <HAL_GPIO_WritePin>
  5024. /*Configure GPIO pin Output Level */
  5025. HAL_GPIO_WritePin(GPIOD, GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14, GPIO_PIN_RESET);
  5026. 8002458: 2200 movs r2, #0
  5027. 800245a: f44f 41f0 mov.w r1, #30720 @ 0x7800
  5028. 800245e: 482c ldr r0, [pc, #176] @ (8002510 <MX_GPIO_Init+0x18c>)
  5029. 8002460: f007 fbce bl 8009c00 <HAL_GPIO_WritePin>
  5030. /*Configure GPIO pins : PE2 PE3 PE4 PE5 */
  5031. GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5;
  5032. 8002464: 233c movs r3, #60 @ 0x3c
  5033. 8002466: 61fb str r3, [r7, #28]
  5034. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  5035. 8002468: 2301 movs r3, #1
  5036. 800246a: 623b str r3, [r7, #32]
  5037. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5038. 800246c: 2300 movs r3, #0
  5039. 800246e: 627b str r3, [r7, #36] @ 0x24
  5040. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  5041. 8002470: 2300 movs r3, #0
  5042. 8002472: 62bb str r3, [r7, #40] @ 0x28
  5043. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  5044. 8002474: f107 031c add.w r3, r7, #28
  5045. 8002478: 4619 mov r1, r3
  5046. 800247a: 4824 ldr r0, [pc, #144] @ (800250c <MX_GPIO_Init+0x188>)
  5047. 800247c: f007 fa10 bl 80098a0 <HAL_GPIO_Init>
  5048. /*Configure GPIO pins : PD11 PD12 PD13 PD14 */
  5049. GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14;
  5050. 8002480: f44f 43f0 mov.w r3, #30720 @ 0x7800
  5051. 8002484: 61fb str r3, [r7, #28]
  5052. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  5053. 8002486: 2301 movs r3, #1
  5054. 8002488: 623b str r3, [r7, #32]
  5055. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5056. 800248a: 2300 movs r3, #0
  5057. 800248c: 627b str r3, [r7, #36] @ 0x24
  5058. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  5059. 800248e: 2300 movs r3, #0
  5060. 8002490: 62bb str r3, [r7, #40] @ 0x28
  5061. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  5062. 8002492: f107 031c add.w r3, r7, #28
  5063. 8002496: 4619 mov r1, r3
  5064. 8002498: 481d ldr r0, [pc, #116] @ (8002510 <MX_GPIO_Init+0x18c>)
  5065. 800249a: f007 fa01 bl 80098a0 <HAL_GPIO_Init>
  5066. /*Configure GPIO pins : PD1 PD2 PD4 */
  5067. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_4;
  5068. 800249e: 2316 movs r3, #22
  5069. 80024a0: 61fb str r3, [r7, #28]
  5070. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  5071. 80024a2: 2300 movs r3, #0
  5072. 80024a4: 623b str r3, [r7, #32]
  5073. GPIO_InitStruct.Pull = GPIO_NOPULL;
  5074. 80024a6: 2300 movs r3, #0
  5075. 80024a8: 627b str r3, [r7, #36] @ 0x24
  5076. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  5077. 80024aa: f107 031c add.w r3, r7, #28
  5078. 80024ae: 4619 mov r1, r3
  5079. 80024b0: 4817 ldr r0, [pc, #92] @ (8002510 <MX_GPIO_Init+0x18c>)
  5080. 80024b2: f007 f9f5 bl 80098a0 <HAL_GPIO_Init>
  5081. /* USER CODE BEGIN MX_GPIO_Init_2 */
  5082. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  5083. 80024b6: f44f 4340 mov.w r3, #49152 @ 0xc000
  5084. 80024ba: 61fb str r3, [r7, #28]
  5085. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  5086. 80024bc: 2301 movs r3, #1
  5087. 80024be: 623b str r3, [r7, #32]
  5088. GPIO_InitStruct.Pull = GPIO_PULLUP;
  5089. 80024c0: 2301 movs r3, #1
  5090. 80024c2: 627b str r3, [r7, #36] @ 0x24
  5091. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  5092. 80024c4: 2300 movs r3, #0
  5093. 80024c6: 62bb str r3, [r7, #40] @ 0x28
  5094. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  5095. 80024c8: f107 031c add.w r3, r7, #28
  5096. 80024cc: 4619 mov r1, r3
  5097. 80024ce: 480f ldr r0, [pc, #60] @ (800250c <MX_GPIO_Init+0x188>)
  5098. 80024d0: f007 f9e6 bl 80098a0 <HAL_GPIO_Init>
  5099. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_RESET);
  5100. 80024d4: 2200 movs r2, #0
  5101. 80024d6: f44f 4180 mov.w r1, #16384 @ 0x4000
  5102. 80024da: 480c ldr r0, [pc, #48] @ (800250c <MX_GPIO_Init+0x188>)
  5103. 80024dc: f007 fb90 bl 8009c00 <HAL_GPIO_WritePin>
  5104. HAL_Delay(100);
  5105. 80024e0: 2064 movs r0, #100 @ 0x64
  5106. 80024e2: f002 feb9 bl 8005258 <HAL_Delay>
  5107. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_14, GPIO_PIN_SET);
  5108. 80024e6: 2201 movs r2, #1
  5109. 80024e8: f44f 4180 mov.w r1, #16384 @ 0x4000
  5110. 80024ec: 4807 ldr r0, [pc, #28] @ (800250c <MX_GPIO_Init+0x188>)
  5111. 80024ee: f007 fb87 bl 8009c00 <HAL_GPIO_WritePin>
  5112. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_15, GPIO_PIN_SET);
  5113. 80024f2: 2201 movs r2, #1
  5114. 80024f4: f44f 4100 mov.w r1, #32768 @ 0x8000
  5115. 80024f8: 4804 ldr r0, [pc, #16] @ (800250c <MX_GPIO_Init+0x188>)
  5116. 80024fa: f007 fb81 bl 8009c00 <HAL_GPIO_WritePin>
  5117. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET);
  5118. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET);
  5119. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET);
  5120. // HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET);
  5121. /* USER CODE END MX_GPIO_Init_2 */
  5122. }
  5123. 80024fe: bf00 nop
  5124. 8002500: 3730 adds r7, #48 @ 0x30
  5125. 8002502: 46bd mov sp, r7
  5126. 8002504: bd80 pop {r7, pc}
  5127. 8002506: bf00 nop
  5128. 8002508: 58024400 .word 0x58024400
  5129. 800250c: 58021000 .word 0x58021000
  5130. 8002510: 58020c00 .word 0x58020c00
  5131. 08002514 <StartDefaultTask>:
  5132. * @param argument: Not used
  5133. * @retval None
  5134. */
  5135. /* USER CODE END Header_StartDefaultTask */
  5136. void StartDefaultTask(void *argument)
  5137. {
  5138. 8002514: b580 push {r7, lr}
  5139. 8002516: b082 sub sp, #8
  5140. 8002518: af00 add r7, sp, #0
  5141. 800251a: 6078 str r0, [r7, #4]
  5142. /* init code for LWIP */
  5143. MX_LWIP_Init();
  5144. 800251c: f00d fd04 bl 800ff28 <MX_LWIP_Init>
  5145. /* USER CODE BEGIN 5 */
  5146. /* Infinite loop */
  5147. for(;;)
  5148. {
  5149. osDelay(pdMS_TO_TICKS(1000));
  5150. 8002520: f44f 707a mov.w r0, #1000 @ 0x3e8
  5151. 8002524: f00e fcd3 bl 8010ece <osDelay>
  5152. 8002528: e7fa b.n 8002520 <StartDefaultTask+0xc>
  5153. 0800252a <relay1TimerCallback>:
  5154. /* USER CODE END 5 */
  5155. }
  5156. /* relay1TimerCallback function */
  5157. void relay1TimerCallback(void *argument)
  5158. {
  5159. 800252a: b480 push {r7}
  5160. 800252c: b083 sub sp, #12
  5161. 800252e: af00 add r7, sp, #0
  5162. 8002530: 6078 str r0, [r7, #4]
  5163. /* USER CODE BEGIN relay1TimerCallback */
  5164. /* USER CODE END relay1TimerCallback */
  5165. }
  5166. 8002532: bf00 nop
  5167. 8002534: 370c adds r7, #12
  5168. 8002536: 46bd mov sp, r7
  5169. 8002538: f85d 7b04 ldr.w r7, [sp], #4
  5170. 800253c: 4770 bx lr
  5171. 0800253e <relay2TimerCallback>:
  5172. /* relay2TimerCallback function */
  5173. void relay2TimerCallback(void *argument)
  5174. {
  5175. 800253e: b480 push {r7}
  5176. 8002540: b083 sub sp, #12
  5177. 8002542: af00 add r7, sp, #0
  5178. 8002544: 6078 str r0, [r7, #4]
  5179. /* USER CODE BEGIN relay2TimerCallback */
  5180. /* USER CODE END relay2TimerCallback */
  5181. }
  5182. 8002546: bf00 nop
  5183. 8002548: 370c adds r7, #12
  5184. 800254a: 46bd mov sp, r7
  5185. 800254c: f85d 7b04 ldr.w r7, [sp], #4
  5186. 8002550: 4770 bx lr
  5187. 08002552 <relay3TimerCallback>:
  5188. /* relay3TimerCallback function */
  5189. void relay3TimerCallback(void *argument)
  5190. {
  5191. 8002552: b480 push {r7}
  5192. 8002554: b083 sub sp, #12
  5193. 8002556: af00 add r7, sp, #0
  5194. 8002558: 6078 str r0, [r7, #4]
  5195. /* USER CODE BEGIN relay3TimerCallback */
  5196. /* USER CODE END relay3TimerCallback */
  5197. }
  5198. 800255a: bf00 nop
  5199. 800255c: 370c adds r7, #12
  5200. 800255e: 46bd mov sp, r7
  5201. 8002560: f85d 7b04 ldr.w r7, [sp], #4
  5202. 8002564: 4770 bx lr
  5203. ...
  5204. 08002568 <MPU_Config>:
  5205. /* MPU Configuration */
  5206. void MPU_Config(void)
  5207. {
  5208. 8002568: b580 push {r7, lr}
  5209. 800256a: b084 sub sp, #16
  5210. 800256c: af00 add r7, sp, #0
  5211. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  5212. 800256e: 463b mov r3, r7
  5213. 8002570: 2200 movs r2, #0
  5214. 8002572: 601a str r2, [r3, #0]
  5215. 8002574: 605a str r2, [r3, #4]
  5216. 8002576: 609a str r2, [r3, #8]
  5217. 8002578: 60da str r2, [r3, #12]
  5218. /* Disables the MPU */
  5219. HAL_MPU_Disable();
  5220. 800257a: f002 ff91 bl 80054a0 <HAL_MPU_Disable>
  5221. /** Initializes and configures the Region and the memory to be protected
  5222. */
  5223. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  5224. 800257e: 2301 movs r3, #1
  5225. 8002580: 703b strb r3, [r7, #0]
  5226. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  5227. 8002582: 2300 movs r3, #0
  5228. 8002584: 707b strb r3, [r7, #1]
  5229. MPU_InitStruct.BaseAddress = 0x0;
  5230. 8002586: 2300 movs r3, #0
  5231. 8002588: 607b str r3, [r7, #4]
  5232. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  5233. 800258a: 231f movs r3, #31
  5234. 800258c: 723b strb r3, [r7, #8]
  5235. MPU_InitStruct.SubRegionDisable = 0x87;
  5236. 800258e: 2387 movs r3, #135 @ 0x87
  5237. 8002590: 727b strb r3, [r7, #9]
  5238. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  5239. 8002592: 2300 movs r3, #0
  5240. 8002594: 72bb strb r3, [r7, #10]
  5241. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  5242. 8002596: 2300 movs r3, #0
  5243. 8002598: 72fb strb r3, [r7, #11]
  5244. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  5245. 800259a: 2301 movs r3, #1
  5246. 800259c: 733b strb r3, [r7, #12]
  5247. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  5248. 800259e: 2301 movs r3, #1
  5249. 80025a0: 737b strb r3, [r7, #13]
  5250. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  5251. 80025a2: 2300 movs r3, #0
  5252. 80025a4: 73bb strb r3, [r7, #14]
  5253. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  5254. 80025a6: 2300 movs r3, #0
  5255. 80025a8: 73fb strb r3, [r7, #15]
  5256. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5257. 80025aa: 463b mov r3, r7
  5258. 80025ac: 4618 mov r0, r3
  5259. 80025ae: f002 ffaf bl 8005510 <HAL_MPU_ConfigRegion>
  5260. /** Initializes and configures the Region and the memory to be protected
  5261. */
  5262. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  5263. 80025b2: 2301 movs r3, #1
  5264. 80025b4: 707b strb r3, [r7, #1]
  5265. MPU_InitStruct.BaseAddress = 0x24020000;
  5266. 80025b6: 4b13 ldr r3, [pc, #76] @ (8002604 <MPU_Config+0x9c>)
  5267. 80025b8: 607b str r3, [r7, #4]
  5268. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  5269. 80025ba: 2310 movs r3, #16
  5270. 80025bc: 723b strb r3, [r7, #8]
  5271. MPU_InitStruct.SubRegionDisable = 0x0;
  5272. 80025be: 2300 movs r3, #0
  5273. 80025c0: 727b strb r3, [r7, #9]
  5274. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  5275. 80025c2: 2301 movs r3, #1
  5276. 80025c4: 72bb strb r3, [r7, #10]
  5277. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  5278. 80025c6: 2303 movs r3, #3
  5279. 80025c8: 72fb strb r3, [r7, #11]
  5280. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  5281. 80025ca: 2300 movs r3, #0
  5282. 80025cc: 737b strb r3, [r7, #13]
  5283. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5284. 80025ce: 463b mov r3, r7
  5285. 80025d0: 4618 mov r0, r3
  5286. 80025d2: f002 ff9d bl 8005510 <HAL_MPU_ConfigRegion>
  5287. /** Initializes and configures the Region and the memory to be protected
  5288. */
  5289. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  5290. 80025d6: 2302 movs r3, #2
  5291. 80025d8: 707b strb r3, [r7, #1]
  5292. MPU_InitStruct.BaseAddress = 0x24040000;
  5293. 80025da: 4b0b ldr r3, [pc, #44] @ (8002608 <MPU_Config+0xa0>)
  5294. 80025dc: 607b str r3, [r7, #4]
  5295. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  5296. 80025de: 2308 movs r3, #8
  5297. 80025e0: 723b strb r3, [r7, #8]
  5298. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  5299. 80025e2: 2300 movs r3, #0
  5300. 80025e4: 72bb strb r3, [r7, #10]
  5301. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  5302. 80025e6: 2301 movs r3, #1
  5303. 80025e8: 737b strb r3, [r7, #13]
  5304. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  5305. 80025ea: 2301 movs r3, #1
  5306. 80025ec: 73fb strb r3, [r7, #15]
  5307. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  5308. 80025ee: 463b mov r3, r7
  5309. 80025f0: 4618 mov r0, r3
  5310. 80025f2: f002 ff8d bl 8005510 <HAL_MPU_ConfigRegion>
  5311. /* Enables the MPU */
  5312. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  5313. 80025f6: 2004 movs r0, #4
  5314. 80025f8: f002 ff6a bl 80054d0 <HAL_MPU_Enable>
  5315. }
  5316. 80025fc: bf00 nop
  5317. 80025fe: 3710 adds r7, #16
  5318. 8002600: 46bd mov sp, r7
  5319. 8002602: bd80 pop {r7, pc}
  5320. 8002604: 24020000 .word 0x24020000
  5321. 8002608: 24040000 .word 0x24040000
  5322. 0800260c <HAL_TIM_PeriodElapsedCallback>:
  5323. * a global variable "uwTick" used as application time base.
  5324. * @param htim : TIM handle
  5325. * @retval None
  5326. */
  5327. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  5328. {
  5329. 800260c: b580 push {r7, lr}
  5330. 800260e: b082 sub sp, #8
  5331. 8002610: af00 add r7, sp, #0
  5332. 8002612: 6078 str r0, [r7, #4]
  5333. /* USER CODE BEGIN Callback 0 */
  5334. /* USER CODE END Callback 0 */
  5335. if (htim->Instance == TIM6) {
  5336. 8002614: 687b ldr r3, [r7, #4]
  5337. 8002616: 681b ldr r3, [r3, #0]
  5338. 8002618: 4a09 ldr r2, [pc, #36] @ (8002640 <HAL_TIM_PeriodElapsedCallback+0x34>)
  5339. 800261a: 4293 cmp r3, r2
  5340. 800261c: d101 bne.n 8002622 <HAL_TIM_PeriodElapsedCallback+0x16>
  5341. HAL_IncTick();
  5342. 800261e: f002 fdfb bl 8005218 <HAL_IncTick>
  5343. }
  5344. /* USER CODE BEGIN Callback 1 */
  5345. if (htim->Instance == TIM6) {
  5346. 8002622: 687b ldr r3, [r7, #4]
  5347. 8002624: 681b ldr r3, [r3, #0]
  5348. 8002626: 4a06 ldr r2, [pc, #24] @ (8002640 <HAL_TIM_PeriodElapsedCallback+0x34>)
  5349. 8002628: 4293 cmp r3, r2
  5350. 800262a: d104 bne.n 8002636 <HAL_TIM_PeriodElapsedCallback+0x2a>
  5351. MilliTimer++;
  5352. 800262c: 4b05 ldr r3, [pc, #20] @ (8002644 <HAL_TIM_PeriodElapsedCallback+0x38>)
  5353. 800262e: 681b ldr r3, [r3, #0]
  5354. 8002630: 3301 adds r3, #1
  5355. 8002632: 4a04 ldr r2, [pc, #16] @ (8002644 <HAL_TIM_PeriodElapsedCallback+0x38>)
  5356. 8002634: 6013 str r3, [r2, #0]
  5357. }
  5358. /* USER CODE END Callback 1 */
  5359. }
  5360. 8002636: bf00 nop
  5361. 8002638: 3708 adds r7, #8
  5362. 800263a: 46bd mov sp, r7
  5363. 800263c: bd80 pop {r7, pc}
  5364. 800263e: bf00 nop
  5365. 8002640: 40001000 .word 0x40001000
  5366. 8002644: 2402b104 .word 0x2402b104
  5367. 08002648 <Error_Handler>:
  5368. /**
  5369. * @brief This function is executed in case of error occurrence.
  5370. * @retval None
  5371. */
  5372. void Error_Handler(void)
  5373. {
  5374. 8002648: b480 push {r7}
  5375. 800264a: af00 add r7, sp, #0
  5376. __ASM volatile ("cpsid i" : : : "memory");
  5377. 800264c: b672 cpsid i
  5378. }
  5379. 800264e: bf00 nop
  5380. /* USER CODE BEGIN Error_Handler_Debug */
  5381. /* User can add his own implementation to report the HAL error return state */
  5382. __disable_irq();
  5383. while (1)
  5384. 8002650: bf00 nop
  5385. 8002652: e7fd b.n 8002650 <Error_Handler+0x8>
  5386. 08002654 <MqttClientSubTask>:
  5387. void MqttClientSubTask(void *argument); //mqtt client subscribe task function
  5388. void MqttClientPubTask(void *argument); //mqtt client publish task function
  5389. int MqttConnectBroker(void); //mqtt broker connect function
  5390. void MqttMessageArrived(MessageData *msg); //mqtt message callback function
  5391. void MqttClientSubTask (void* argument) {
  5392. 8002654: b580 push {r7, lr}
  5393. 8002656: b082 sub sp, #8
  5394. 8002658: af00 add r7, sp, #0
  5395. 800265a: 6078 str r0, [r7, #4]
  5396. while (1) {
  5397. // waiting for valid ip address
  5398. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5399. 800265c: 4b16 ldr r3, [pc, #88] @ (80026b8 <MqttClientSubTask+0x64>)
  5400. 800265e: 685b ldr r3, [r3, #4]
  5401. 8002660: 2b00 cmp r3, #0
  5402. 8002662: d007 beq.n 8002674 <MqttClientSubTask+0x20>
  5403. 8002664: 4b14 ldr r3, [pc, #80] @ (80026b8 <MqttClientSubTask+0x64>)
  5404. 8002666: 689b ldr r3, [r3, #8]
  5405. 8002668: 2b00 cmp r3, #0
  5406. 800266a: d003 beq.n 8002674 <MqttClientSubTask+0x20>
  5407. 800266c: 4b12 ldr r3, [pc, #72] @ (80026b8 <MqttClientSubTask+0x64>)
  5408. 800266e: 68db ldr r3, [r3, #12]
  5409. 8002670: 2b00 cmp r3, #0
  5410. 8002672: d104 bne.n 800267e <MqttClientSubTask+0x2a>
  5411. {
  5412. osDelay (pdMS_TO_TICKS (1000));
  5413. 8002674: f44f 707a mov.w r0, #1000 @ 0x3e8
  5414. 8002678: f00e fc29 bl 8010ece <osDelay>
  5415. continue;
  5416. 800267c: e003 b.n 8002686 <MqttClientSubTask+0x32>
  5417. } else {
  5418. printf ("DHCP/Static IP O.K.\n");
  5419. 800267e: 480f ldr r0, [pc, #60] @ (80026bc <MqttClientSubTask+0x68>)
  5420. 8002680: f027 fe04 bl 802a28c <puts>
  5421. break;
  5422. 8002684: e000 b.n 8002688 <MqttClientSubTask+0x34>
  5423. if (gnetif.ip_addr.addr == 0 || gnetif.netmask.addr == 0 || gnetif.gw.addr == 0) // system has no valid ip address
  5424. 8002686: e7e9 b.n 800265c <MqttClientSubTask+0x8>
  5425. }
  5426. }
  5427. while (1) {
  5428. if (!mqttClient.isconnected) {
  5429. 8002688: 4b0d ldr r3, [pc, #52] @ (80026c0 <MqttClientSubTask+0x6c>)
  5430. 800268a: 6a1b ldr r3, [r3, #32]
  5431. 800268c: 2b00 cmp r3, #0
  5432. 800268e: d109 bne.n 80026a4 <MqttClientSubTask+0x50>
  5433. // try to connect to the broker
  5434. if (MqttConnectBroker () != MQTT_SUCCESS) {
  5435. 8002690: f000 fb44 bl 8002d1c <MqttConnectBroker>
  5436. 8002694: 4603 mov r3, r0
  5437. 8002696: 2b00 cmp r3, #0
  5438. 8002698: d0f6 beq.n 8002688 <MqttClientSubTask+0x34>
  5439. osDelay (pdMS_TO_TICKS (1000));
  5440. 800269a: f44f 707a mov.w r0, #1000 @ 0x3e8
  5441. 800269e: f00e fc16 bl 8010ece <osDelay>
  5442. 80026a2: e7f1 b.n 8002688 <MqttClientSubTask+0x34>
  5443. }
  5444. } else {
  5445. MQTTYield (&mqttClient, 500); // handle timer
  5446. 80026a4: f44f 71fa mov.w r1, #500 @ 0x1f4
  5447. 80026a8: 4805 ldr r0, [pc, #20] @ (80026c0 <MqttClientSubTask+0x6c>)
  5448. 80026aa: f024 fef1 bl 8027490 <MQTTYield>
  5449. osDelay (pdMS_TO_TICKS (100));
  5450. 80026ae: 2064 movs r0, #100 @ 0x64
  5451. 80026b0: f00e fc0d bl 8010ece <osDelay>
  5452. if (!mqttClient.isconnected) {
  5453. 80026b4: e7e8 b.n 8002688 <MqttClientSubTask+0x34>
  5454. 80026b6: bf00 nop
  5455. 80026b8: 24002244 .word 0x24002244
  5456. 80026bc: 0802cd9c .word 0x0802cd9c
  5457. 80026c0: 24000730 .word 0x24000730
  5458. 080026c4 <MqttClientPubTask>:
  5459. }
  5460. }
  5461. }
  5462. void MqttClientPubTask (void* argument) {
  5463. 80026c4: b580 push {r7, lr}
  5464. 80026c6: f5ad 7d16 sub.w sp, sp, #600 @ 0x258
  5465. 80026ca: af04 add r7, sp, #16
  5466. 80026cc: f507 7312 add.w r3, r7, #584 @ 0x248
  5467. 80026d0: f5a3 7311 sub.w r3, r3, #580 @ 0x244
  5468. 80026d4: 6018 str r0, [r3, #0]
  5469. char messageBuffer[512] = { 0x00 };
  5470. 80026d6: f507 7312 add.w r3, r7, #584 @ 0x248
  5471. 80026da: f5a3 7304 sub.w r3, r3, #528 @ 0x210
  5472. 80026de: 2200 movs r2, #0
  5473. 80026e0: 601a str r2, [r3, #0]
  5474. 80026e2: 3304 adds r3, #4
  5475. 80026e4: f44f 72fe mov.w r2, #508 @ 0x1fc
  5476. 80026e8: 2100 movs r1, #0
  5477. 80026ea: 4618 mov r0, r3
  5478. 80026ec: f027 fef8 bl 802a4e0 <memset>
  5479. char topicTextBuffer[32] = { 0x00 };
  5480. 80026f0: f507 7312 add.w r3, r7, #584 @ 0x248
  5481. 80026f4: f5a3 730c sub.w r3, r3, #560 @ 0x230
  5482. 80026f8: 2200 movs r2, #0
  5483. 80026fa: 601a str r2, [r3, #0]
  5484. 80026fc: 3304 adds r3, #4
  5485. 80026fe: 2200 movs r2, #0
  5486. 8002700: 601a str r2, [r3, #0]
  5487. 8002702: 605a str r2, [r3, #4]
  5488. 8002704: 609a str r2, [r3, #8]
  5489. 8002706: 60da str r2, [r3, #12]
  5490. 8002708: 611a str r2, [r3, #16]
  5491. 800270a: 615a str r2, [r3, #20]
  5492. 800270c: 619a str r2, [r3, #24]
  5493. uint32_t bytesInBuffer = 0;
  5494. 800270e: 2300 movs r3, #0
  5495. 8002710: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5496. uint8_t boardNumber = 0;
  5497. 8002714: 2300 movs r3, #0
  5498. 8002716: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5499. MQTTMessage message;
  5500. while (1) {
  5501. if (mqttClient.isconnected) {
  5502. 800271a: 4b93 ldr r3, [pc, #588] @ (8002968 <MqttClientPubTask+0x2a4>)
  5503. 800271c: 6a1b ldr r3, [r3, #32]
  5504. 800271e: 2b00 cmp r3, #0
  5505. 8002720: f000 82ce beq.w 8002cc0 <MqttClientPubTask+0x5fc>
  5506. if (is_link_up ()) {
  5507. 8002724: f00d fbf0 bl 800ff08 <is_link_up>
  5508. 8002728: 4603 mov r3, r0
  5509. 800272a: 2b00 cmp r3, #0
  5510. 800272c: f000 82c8 beq.w 8002cc0 <MqttClientPubTask+0x5fc>
  5511. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5512. 8002730: 2300 movs r3, #0
  5513. 8002732: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5514. 8002736: e10e b.n 8002956 <MqttClientPubTask+0x292>
  5515. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  5516. 8002738: 4b8c ldr r3, [pc, #560] @ (800296c <MqttClientPubTask+0x2a8>)
  5517. 800273a: 681b ldr r3, [r3, #0]
  5518. 800273c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5519. 8002740: 4618 mov r0, r3
  5520. 8002742: f00e fcf7 bl 8011134 <osMutexAcquire>
  5521. RESMeasurements* resMeas = &resMeasurements[boardNumber];
  5522. 8002746: f897 2247 ldrb.w r2, [r7, #583] @ 0x247
  5523. 800274a: 4613 mov r3, r2
  5524. 800274c: 011b lsls r3, r3, #4
  5525. 800274e: 1a9b subs r3, r3, r2
  5526. 8002750: 009b lsls r3, r3, #2
  5527. 8002752: 4a87 ldr r2, [pc, #540] @ (8002970 <MqttClientPubTask+0x2ac>)
  5528. 8002754: 4413 add r3, r2
  5529. 8002756: f8c7 3238 str.w r3, [r7, #568] @ 0x238
  5530. sprintf (topicTextBuffer, "RESmeasurments/%d", boardNumber + 1);
  5531. 800275a: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5532. 800275e: 1c5a adds r2, r3, #1
  5533. 8002760: f107 0318 add.w r3, r7, #24
  5534. 8002764: 4983 ldr r1, [pc, #524] @ (8002974 <MqttClientPubTask+0x2b0>)
  5535. 8002766: 4618 mov r0, r3
  5536. 8002768: f027 fd98 bl 802a29c <siprintf>
  5537. bytesInBuffer = sprintf (messageBuffer, "{\"voltageRMS\":[%.2f, %.2f, %.2f], ", resMeas->voltageRMS[0], resMeas->voltageRMS[1], resMeas->voltageRMS[2]);
  5538. 800276c: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5539. 8002770: edd3 7a00 vldr s15, [r3]
  5540. 8002774: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5541. 8002778: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5542. 800277c: edd3 7a01 vldr s15, [r3, #4]
  5543. 8002780: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5544. 8002784: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5545. 8002788: edd3 6a02 vldr s13, [r3, #8]
  5546. 800278c: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5547. 8002790: f107 0038 add.w r0, r7, #56 @ 0x38
  5548. 8002794: ed8d 6b02 vstr d6, [sp, #8]
  5549. 8002798: ed8d 7b00 vstr d7, [sp]
  5550. 800279c: ec53 2b15 vmov r2, r3, d5
  5551. 80027a0: 4975 ldr r1, [pc, #468] @ (8002978 <MqttClientPubTask+0x2b4>)
  5552. 80027a2: f027 fd7b bl 802a29c <siprintf>
  5553. 80027a6: 4603 mov r3, r0
  5554. 80027a8: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5555. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"voltagePeak\":[%.2f, %.2f, %.2f], ", resMeas->voltagePeak[0], resMeas->voltagePeak[1], resMeas->voltagePeak[2]);
  5556. 80027ac: f107 0238 add.w r2, r7, #56 @ 0x38
  5557. 80027b0: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5558. 80027b4: 18d0 adds r0, r2, r3
  5559. 80027b6: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5560. 80027ba: edd3 7a03 vldr s15, [r3, #12]
  5561. 80027be: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5562. 80027c2: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5563. 80027c6: edd3 7a04 vldr s15, [r3, #16]
  5564. 80027ca: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5565. 80027ce: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5566. 80027d2: edd3 6a05 vldr s13, [r3, #20]
  5567. 80027d6: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5568. 80027da: ed8d 6b02 vstr d6, [sp, #8]
  5569. 80027de: ed8d 7b00 vstr d7, [sp]
  5570. 80027e2: ec53 2b15 vmov r2, r3, d5
  5571. 80027e6: 4965 ldr r1, [pc, #404] @ (800297c <MqttClientPubTask+0x2b8>)
  5572. 80027e8: f027 fd58 bl 802a29c <siprintf>
  5573. 80027ec: 4603 mov r3, r0
  5574. 80027ee: 461a mov r2, r3
  5575. 80027f0: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5576. 80027f4: 4413 add r3, r2
  5577. 80027f6: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5578. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentRMS\":[%.3f, %.3f, %.3f], ", resMeas->currentRMS[0], resMeas->currentRMS[1], resMeas->currentRMS[2]);
  5579. 80027fa: f107 0238 add.w r2, r7, #56 @ 0x38
  5580. 80027fe: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5581. 8002802: 18d0 adds r0, r2, r3
  5582. 8002804: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5583. 8002808: edd3 7a06 vldr s15, [r3, #24]
  5584. 800280c: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5585. 8002810: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5586. 8002814: edd3 7a07 vldr s15, [r3, #28]
  5587. 8002818: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5588. 800281c: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5589. 8002820: edd3 6a08 vldr s13, [r3, #32]
  5590. 8002824: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5591. 8002828: ed8d 6b02 vstr d6, [sp, #8]
  5592. 800282c: ed8d 7b00 vstr d7, [sp]
  5593. 8002830: ec53 2b15 vmov r2, r3, d5
  5594. 8002834: 4952 ldr r1, [pc, #328] @ (8002980 <MqttClientPubTask+0x2bc>)
  5595. 8002836: f027 fd31 bl 802a29c <siprintf>
  5596. 800283a: 4603 mov r3, r0
  5597. 800283c: 461a mov r2, r3
  5598. 800283e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5599. 8002842: 4413 add r3, r2
  5600. 8002844: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5601. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"currentPeak\":[%.3f, %.3f, %.3f], ", resMeas->currentPeak[0], resMeas->currentPeak[1], resMeas->currentPeak[2]);
  5602. 8002848: f107 0238 add.w r2, r7, #56 @ 0x38
  5603. 800284c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5604. 8002850: 18d0 adds r0, r2, r3
  5605. 8002852: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5606. 8002856: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  5607. 800285a: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5608. 800285e: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5609. 8002862: edd3 7a0a vldr s15, [r3, #40] @ 0x28
  5610. 8002866: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5611. 800286a: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5612. 800286e: edd3 6a0b vldr s13, [r3, #44] @ 0x2c
  5613. 8002872: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5614. 8002876: ed8d 6b02 vstr d6, [sp, #8]
  5615. 800287a: ed8d 7b00 vstr d7, [sp]
  5616. 800287e: ec53 2b15 vmov r2, r3, d5
  5617. 8002882: 4940 ldr r1, [pc, #256] @ (8002984 <MqttClientPubTask+0x2c0>)
  5618. 8002884: f027 fd0a bl 802a29c <siprintf>
  5619. 8002888: 4603 mov r3, r0
  5620. 800288a: 461a mov r2, r3
  5621. 800288c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5622. 8002890: 4413 add r3, r2
  5623. 8002892: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5624. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"power\":[%.2f, %.2f, %.2f], ", resMeas->power[0], resMeas->power[1], resMeas->power[2]);
  5625. 8002896: f107 0238 add.w r2, r7, #56 @ 0x38
  5626. 800289a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5627. 800289e: 18d0 adds r0, r2, r3
  5628. 80028a0: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5629. 80028a4: edd3 7a0c vldr s15, [r3, #48] @ 0x30
  5630. 80028a8: eeb7 5ae7 vcvt.f64.f32 d5, s15
  5631. 80028ac: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5632. 80028b0: edd3 7a0d vldr s15, [r3, #52] @ 0x34
  5633. 80028b4: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5634. 80028b8: f8d7 3238 ldr.w r3, [r7, #568] @ 0x238
  5635. 80028bc: edd3 6a0e vldr s13, [r3, #56] @ 0x38
  5636. 80028c0: eeb7 6ae6 vcvt.f64.f32 d6, s13
  5637. 80028c4: ed8d 6b02 vstr d6, [sp, #8]
  5638. 80028c8: ed8d 7b00 vstr d7, [sp]
  5639. 80028cc: ec53 2b15 vmov r2, r3, d5
  5640. 80028d0: 492d ldr r1, [pc, #180] @ (8002988 <MqttClientPubTask+0x2c4>)
  5641. 80028d2: f027 fce3 bl 802a29c <siprintf>
  5642. 80028d6: 4603 mov r3, r0
  5643. 80028d8: 461a mov r2, r3
  5644. 80028da: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5645. 80028de: 4413 add r3, r2
  5646. 80028e0: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5647. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"lastSeen\": %ld}", slaveLastSeen[boardNumber]);
  5648. 80028e4: f107 0238 add.w r2, r7, #56 @ 0x38
  5649. 80028e8: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5650. 80028ec: 18d0 adds r0, r2, r3
  5651. 80028ee: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5652. 80028f2: 4a26 ldr r2, [pc, #152] @ (800298c <MqttClientPubTask+0x2c8>)
  5653. 80028f4: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  5654. 80028f8: 461a mov r2, r3
  5655. 80028fa: 4925 ldr r1, [pc, #148] @ (8002990 <MqttClientPubTask+0x2cc>)
  5656. 80028fc: f027 fcce bl 802a29c <siprintf>
  5657. 8002900: 4603 mov r3, r0
  5658. 8002902: 461a mov r2, r3
  5659. 8002904: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5660. 8002908: 4413 add r3, r2
  5661. 800290a: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5662. osMutexRelease (resMeasurementsMutex);
  5663. 800290e: 4b17 ldr r3, [pc, #92] @ (800296c <MqttClientPubTask+0x2a8>)
  5664. 8002910: 681b ldr r3, [r3, #0]
  5665. 8002912: 4618 mov r0, r3
  5666. 8002914: f00e fc59 bl 80111ca <osMutexRelease>
  5667. message.payload = (void*)messageBuffer;
  5668. 8002918: f507 7312 add.w r3, r7, #584 @ 0x248
  5669. 800291c: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5670. 8002920: f107 0238 add.w r2, r7, #56 @ 0x38
  5671. 8002924: 609a str r2, [r3, #8]
  5672. message.payloadlen = strlen (messageBuffer);
  5673. 8002926: f107 0338 add.w r3, r7, #56 @ 0x38
  5674. 800292a: 4618 mov r0, r3
  5675. 800292c: f7fd fd38 bl 80003a0 <strlen>
  5676. 8002930: 4602 mov r2, r0
  5677. 8002932: f507 7312 add.w r3, r7, #584 @ 0x248
  5678. 8002936: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5679. 800293a: 60da str r2, [r3, #12]
  5680. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  5681. 800293c: f107 0208 add.w r2, r7, #8
  5682. 8002940: f107 0318 add.w r3, r7, #24
  5683. 8002944: 4619 mov r1, r3
  5684. 8002946: 4808 ldr r0, [pc, #32] @ (8002968 <MqttClientPubTask+0x2a4>)
  5685. 8002948: f024 ffc1 bl 80278ce <MQTTPublish>
  5686. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5687. 800294c: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5688. 8002950: 3301 adds r3, #1
  5689. 8002952: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5690. 8002956: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5691. 800295a: 2b03 cmp r3, #3
  5692. 800295c: f67f aeec bls.w 8002738 <MqttClientPubTask+0x74>
  5693. }
  5694. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5695. 8002960: 2300 movs r3, #0
  5696. 8002962: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5697. 8002966: e1a6 b.n 8002cb6 <MqttClientPubTask+0x5f2>
  5698. 8002968: 24000730 .word 0x24000730
  5699. 800296c: 24002238 .word 0x24002238
  5700. 8002970: 24002088 .word 0x24002088
  5701. 8002974: 0802cdb0 .word 0x0802cdb0
  5702. 8002978: 0802cdc4 .word 0x0802cdc4
  5703. 800297c: 0802cde8 .word 0x0802cde8
  5704. 8002980: 0802ce0c .word 0x0802ce0c
  5705. 8002984: 0802ce30 .word 0x0802ce30
  5706. 8002988: 0802ce54 .word 0x0802ce54
  5707. 800298c: 24002228 .word 0x24002228
  5708. 8002990: 0802ce74 .word 0x0802ce74
  5709. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  5710. 8002994: 4bcd ldr r3, [pc, #820] @ (8002ccc <MqttClientPubTask+0x608>)
  5711. 8002996: 681b ldr r3, [r3, #0]
  5712. 8002998: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5713. 800299c: 4618 mov r0, r3
  5714. 800299e: f00e fbc9 bl 8011134 <osMutexAcquire>
  5715. SesnorsInfo* sensors = &sensorsInfo[boardNumber];
  5716. 80029a2: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5717. 80029a6: 222c movs r2, #44 @ 0x2c
  5718. 80029a8: fb02 f303 mul.w r3, r2, r3
  5719. 80029ac: 4ac8 ldr r2, [pc, #800] @ (8002cd0 <MqttClientPubTask+0x60c>)
  5720. 80029ae: 4413 add r3, r2
  5721. 80029b0: f8c7 323c str.w r3, [r7, #572] @ 0x23c
  5722. sprintf (topicTextBuffer, "Sensors/%d", boardNumber + 1);
  5723. 80029b4: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5724. 80029b8: 1c5a adds r2, r3, #1
  5725. 80029ba: f107 0318 add.w r3, r7, #24
  5726. 80029be: 49c5 ldr r1, [pc, #788] @ (8002cd4 <MqttClientPubTask+0x610>)
  5727. 80029c0: 4618 mov r0, r3
  5728. 80029c2: f027 fc6b bl 802a29c <siprintf>
  5729. bytesInBuffer = sprintf (messageBuffer, "{\"pvTemperature\":[%.1f, %.1f], ", sensors->pvTemperature[0], sensors->pvTemperature[1]);
  5730. 80029c6: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5731. 80029ca: edd3 7a00 vldr s15, [r3]
  5732. 80029ce: eeb7 6ae7 vcvt.f64.f32 d6, s15
  5733. 80029d2: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5734. 80029d6: edd3 7a01 vldr s15, [r3, #4]
  5735. 80029da: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5736. 80029de: f107 0038 add.w r0, r7, #56 @ 0x38
  5737. 80029e2: ed8d 7b00 vstr d7, [sp]
  5738. 80029e6: ec53 2b16 vmov r2, r3, d6
  5739. 80029ea: 49bb ldr r1, [pc, #748] @ (8002cd8 <MqttClientPubTask+0x614>)
  5740. 80029ec: f027 fc56 bl 802a29c <siprintf>
  5741. 80029f0: 4603 mov r3, r0
  5742. 80029f2: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5743. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"fanVoltage\":%.2f, ", sensors->fanVoltage);
  5744. 80029f6: f107 0238 add.w r2, r7, #56 @ 0x38
  5745. 80029fa: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5746. 80029fe: 18d0 adds r0, r2, r3
  5747. 8002a00: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5748. 8002a04: edd3 7a02 vldr s15, [r3, #8]
  5749. 8002a08: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5750. 8002a0c: ec53 2b17 vmov r2, r3, d7
  5751. 8002a10: 49b2 ldr r1, [pc, #712] @ (8002cdc <MqttClientPubTask+0x618>)
  5752. 8002a12: f027 fc43 bl 802a29c <siprintf>
  5753. 8002a16: 4603 mov r3, r0
  5754. 8002a18: 461a mov r2, r3
  5755. 8002a1a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5756. 8002a1e: 4413 add r3, r2
  5757. 8002a20: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5758. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"pvEncoder\":%.2f, ", sensors->pvEncoder);
  5759. 8002a24: f107 0238 add.w r2, r7, #56 @ 0x38
  5760. 8002a28: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5761. 8002a2c: 18d0 adds r0, r2, r3
  5762. 8002a2e: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5763. 8002a32: edd3 7a03 vldr s15, [r3, #12]
  5764. 8002a36: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5765. 8002a3a: ec53 2b17 vmov r2, r3, d7
  5766. 8002a3e: 49a8 ldr r1, [pc, #672] @ (8002ce0 <MqttClientPubTask+0x61c>)
  5767. 8002a40: f027 fc2c bl 802a29c <siprintf>
  5768. 8002a44: 4603 mov r3, r0
  5769. 8002a46: 461a mov r2, r3
  5770. 8002a48: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5771. 8002a4c: 4413 add r3, r2
  5772. 8002a4e: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5773. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXStatus\":%d, ", sensors->motorXStatus);
  5774. 8002a52: f107 0238 add.w r2, r7, #56 @ 0x38
  5775. 8002a56: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5776. 8002a5a: 18d0 adds r0, r2, r3
  5777. 8002a5c: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5778. 8002a60: 7c1b ldrb r3, [r3, #16]
  5779. 8002a62: 461a mov r2, r3
  5780. 8002a64: 499f ldr r1, [pc, #636] @ (8002ce4 <MqttClientPubTask+0x620>)
  5781. 8002a66: f027 fc19 bl 802a29c <siprintf>
  5782. 8002a6a: 4603 mov r3, r0
  5783. 8002a6c: 461a mov r2, r3
  5784. 8002a6e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5785. 8002a72: 4413 add r3, r2
  5786. 8002a74: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5787. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYStatus\":%d, ", sensors->motorYStatus);
  5788. 8002a78: f107 0238 add.w r2, r7, #56 @ 0x38
  5789. 8002a7c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5790. 8002a80: 18d0 adds r0, r2, r3
  5791. 8002a82: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5792. 8002a86: 7c5b ldrb r3, [r3, #17]
  5793. 8002a88: 461a mov r2, r3
  5794. 8002a8a: 4997 ldr r1, [pc, #604] @ (8002ce8 <MqttClientPubTask+0x624>)
  5795. 8002a8c: f027 fc06 bl 802a29c <siprintf>
  5796. 8002a90: 4603 mov r3, r0
  5797. 8002a92: 461a mov r2, r3
  5798. 8002a94: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5799. 8002a98: 4413 add r3, r2
  5800. 8002a9a: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5801. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXAveCurrent\":%.3f, ", sensors->motorXAveCurrent);
  5802. 8002a9e: f107 0238 add.w r2, r7, #56 @ 0x38
  5803. 8002aa2: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5804. 8002aa6: 18d0 adds r0, r2, r3
  5805. 8002aa8: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5806. 8002aac: edd3 7a05 vldr s15, [r3, #20]
  5807. 8002ab0: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5808. 8002ab4: ec53 2b17 vmov r2, r3, d7
  5809. 8002ab8: 498c ldr r1, [pc, #560] @ (8002cec <MqttClientPubTask+0x628>)
  5810. 8002aba: f027 fbef bl 802a29c <siprintf>
  5811. 8002abe: 4603 mov r3, r0
  5812. 8002ac0: 461a mov r2, r3
  5813. 8002ac2: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5814. 8002ac6: 4413 add r3, r2
  5815. 8002ac8: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5816. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYAveCurrent\":%.3f, ", sensors->motorYAveCurrent);
  5817. 8002acc: f107 0238 add.w r2, r7, #56 @ 0x38
  5818. 8002ad0: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5819. 8002ad4: 18d0 adds r0, r2, r3
  5820. 8002ad6: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5821. 8002ada: edd3 7a06 vldr s15, [r3, #24]
  5822. 8002ade: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5823. 8002ae2: ec53 2b17 vmov r2, r3, d7
  5824. 8002ae6: 4982 ldr r1, [pc, #520] @ (8002cf0 <MqttClientPubTask+0x62c>)
  5825. 8002ae8: f027 fbd8 bl 802a29c <siprintf>
  5826. 8002aec: 4603 mov r3, r0
  5827. 8002aee: 461a mov r2, r3
  5828. 8002af0: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5829. 8002af4: 4413 add r3, r2
  5830. 8002af6: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5831. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorXPeakCurrent\":%.3f, ", sensors->motorXPeakCurrent);
  5832. 8002afa: f107 0238 add.w r2, r7, #56 @ 0x38
  5833. 8002afe: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5834. 8002b02: 18d0 adds r0, r2, r3
  5835. 8002b04: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5836. 8002b08: edd3 7a07 vldr s15, [r3, #28]
  5837. 8002b0c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5838. 8002b10: ec53 2b17 vmov r2, r3, d7
  5839. 8002b14: 4977 ldr r1, [pc, #476] @ (8002cf4 <MqttClientPubTask+0x630>)
  5840. 8002b16: f027 fbc1 bl 802a29c <siprintf>
  5841. 8002b1a: 4603 mov r3, r0
  5842. 8002b1c: 461a mov r2, r3
  5843. 8002b1e: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5844. 8002b22: 4413 add r3, r2
  5845. 8002b24: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5846. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"motorYPeakCurrent\":%.3f, ", sensors->motorYPeakCurrent);
  5847. 8002b28: f107 0238 add.w r2, r7, #56 @ 0x38
  5848. 8002b2c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5849. 8002b30: 18d0 adds r0, r2, r3
  5850. 8002b32: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5851. 8002b36: edd3 7a08 vldr s15, [r3, #32]
  5852. 8002b3a: eeb7 7ae7 vcvt.f64.f32 d7, s15
  5853. 8002b3e: ec53 2b17 vmov r2, r3, d7
  5854. 8002b42: 496d ldr r1, [pc, #436] @ (8002cf8 <MqttClientPubTask+0x634>)
  5855. 8002b44: f027 fbaa bl 802a29c <siprintf>
  5856. 8002b48: 4603 mov r3, r0
  5857. 8002b4a: 461a mov r2, r3
  5858. 8002b4c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5859. 8002b50: 4413 add r3, r2
  5860. 8002b52: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5861. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitXSwitchUp\":%d, ", sensors->limitXSwitchUp);
  5862. 8002b56: f107 0238 add.w r2, r7, #56 @ 0x38
  5863. 8002b5a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5864. 8002b5e: 18d0 adds r0, r2, r3
  5865. 8002b60: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5866. 8002b64: f893 3024 ldrb.w r3, [r3, #36] @ 0x24
  5867. 8002b68: 461a mov r2, r3
  5868. 8002b6a: 4964 ldr r1, [pc, #400] @ (8002cfc <MqttClientPubTask+0x638>)
  5869. 8002b6c: f027 fb96 bl 802a29c <siprintf>
  5870. 8002b70: 4603 mov r3, r0
  5871. 8002b72: 461a mov r2, r3
  5872. 8002b74: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5873. 8002b78: 4413 add r3, r2
  5874. 8002b7a: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5875. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitXSwitchDown\":%d, ", sensors->limitXSwitchDown);
  5876. 8002b7e: f107 0238 add.w r2, r7, #56 @ 0x38
  5877. 8002b82: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5878. 8002b86: 18d0 adds r0, r2, r3
  5879. 8002b88: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5880. 8002b8c: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  5881. 8002b90: 461a mov r2, r3
  5882. 8002b92: 495b ldr r1, [pc, #364] @ (8002d00 <MqttClientPubTask+0x63c>)
  5883. 8002b94: f027 fb82 bl 802a29c <siprintf>
  5884. 8002b98: 4603 mov r3, r0
  5885. 8002b9a: 461a mov r2, r3
  5886. 8002b9c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5887. 8002ba0: 4413 add r3, r2
  5888. 8002ba2: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5889. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitXSwitchCenter\":%d, ", sensors->limitXSwitchCenter);
  5890. 8002ba6: f107 0238 add.w r2, r7, #56 @ 0x38
  5891. 8002baa: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5892. 8002bae: 18d0 adds r0, r2, r3
  5893. 8002bb0: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5894. 8002bb4: f893 3026 ldrb.w r3, [r3, #38] @ 0x26
  5895. 8002bb8: 461a mov r2, r3
  5896. 8002bba: 4952 ldr r1, [pc, #328] @ (8002d04 <MqttClientPubTask+0x640>)
  5897. 8002bbc: f027 fb6e bl 802a29c <siprintf>
  5898. 8002bc0: 4603 mov r3, r0
  5899. 8002bc2: 461a mov r2, r3
  5900. 8002bc4: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5901. 8002bc8: 4413 add r3, r2
  5902. 8002bca: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5903. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitYSwitchUp\":%d, ", sensors->limitYSwitchUp);
  5904. 8002bce: f107 0238 add.w r2, r7, #56 @ 0x38
  5905. 8002bd2: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5906. 8002bd6: 18d0 adds r0, r2, r3
  5907. 8002bd8: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5908. 8002bdc: f893 3027 ldrb.w r3, [r3, #39] @ 0x27
  5909. 8002be0: 461a mov r2, r3
  5910. 8002be2: 4949 ldr r1, [pc, #292] @ (8002d08 <MqttClientPubTask+0x644>)
  5911. 8002be4: f027 fb5a bl 802a29c <siprintf>
  5912. 8002be8: 4603 mov r3, r0
  5913. 8002bea: 461a mov r2, r3
  5914. 8002bec: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5915. 8002bf0: 4413 add r3, r2
  5916. 8002bf2: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5917. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitYSwitchDown\":%d, ", sensors->limitYSwitchDown);
  5918. 8002bf6: f107 0238 add.w r2, r7, #56 @ 0x38
  5919. 8002bfa: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5920. 8002bfe: 18d0 adds r0, r2, r3
  5921. 8002c00: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5922. 8002c04: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5923. 8002c08: 461a mov r2, r3
  5924. 8002c0a: 4940 ldr r1, [pc, #256] @ (8002d0c <MqttClientPubTask+0x648>)
  5925. 8002c0c: f027 fb46 bl 802a29c <siprintf>
  5926. 8002c10: 4603 mov r3, r0
  5927. 8002c12: 461a mov r2, r3
  5928. 8002c14: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5929. 8002c18: 4413 add r3, r2
  5930. 8002c1a: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5931. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"limitYSwitchCenter\":%d, ", sensors->limitYSwitchCenter);
  5932. 8002c1e: f107 0238 add.w r2, r7, #56 @ 0x38
  5933. 8002c22: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5934. 8002c26: 18d0 adds r0, r2, r3
  5935. 8002c28: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5936. 8002c2c: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5937. 8002c30: 461a mov r2, r3
  5938. 8002c32: 4937 ldr r1, [pc, #220] @ (8002d10 <MqttClientPubTask+0x64c>)
  5939. 8002c34: f027 fb32 bl 802a29c <siprintf>
  5940. 8002c38: 4603 mov r3, r0
  5941. 8002c3a: 461a mov r2, r3
  5942. 8002c3c: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5943. 8002c40: 4413 add r3, r2
  5944. 8002c42: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5945. bytesInBuffer += sprintf (&messageBuffer[bytesInBuffer], "\"powerSupplyFailMask\":%d}", sensors->powerSupplyFailMask);
  5946. 8002c46: f107 0238 add.w r2, r7, #56 @ 0x38
  5947. 8002c4a: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5948. 8002c4e: 18d0 adds r0, r2, r3
  5949. 8002c50: f8d7 323c ldr.w r3, [r7, #572] @ 0x23c
  5950. 8002c54: f893 302a ldrb.w r3, [r3, #42] @ 0x2a
  5951. 8002c58: 461a mov r2, r3
  5952. 8002c5a: 492e ldr r1, [pc, #184] @ (8002d14 <MqttClientPubTask+0x650>)
  5953. 8002c5c: f027 fb1e bl 802a29c <siprintf>
  5954. 8002c60: 4603 mov r3, r0
  5955. 8002c62: 461a mov r2, r3
  5956. 8002c64: f8d7 3240 ldr.w r3, [r7, #576] @ 0x240
  5957. 8002c68: 4413 add r3, r2
  5958. 8002c6a: f8c7 3240 str.w r3, [r7, #576] @ 0x240
  5959. osMutexRelease (sensorsInfoMutex);
  5960. 8002c6e: 4b17 ldr r3, [pc, #92] @ (8002ccc <MqttClientPubTask+0x608>)
  5961. 8002c70: 681b ldr r3, [r3, #0]
  5962. 8002c72: 4618 mov r0, r3
  5963. 8002c74: f00e faa9 bl 80111ca <osMutexRelease>
  5964. message.payload = (void*)messageBuffer;
  5965. 8002c78: f507 7312 add.w r3, r7, #584 @ 0x248
  5966. 8002c7c: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5967. 8002c80: f107 0238 add.w r2, r7, #56 @ 0x38
  5968. 8002c84: 609a str r2, [r3, #8]
  5969. message.payloadlen = strlen (messageBuffer);
  5970. 8002c86: f107 0338 add.w r3, r7, #56 @ 0x38
  5971. 8002c8a: 4618 mov r0, r3
  5972. 8002c8c: f7fd fb88 bl 80003a0 <strlen>
  5973. 8002c90: 4602 mov r2, r0
  5974. 8002c92: f507 7312 add.w r3, r7, #584 @ 0x248
  5975. 8002c96: f5a3 7310 sub.w r3, r3, #576 @ 0x240
  5976. 8002c9a: 60da str r2, [r3, #12]
  5977. MQTTPublish (&mqttClient, topicTextBuffer, &message); // publish a message
  5978. 8002c9c: f107 0208 add.w r2, r7, #8
  5979. 8002ca0: f107 0318 add.w r3, r7, #24
  5980. 8002ca4: 4619 mov r1, r3
  5981. 8002ca6: 481c ldr r0, [pc, #112] @ (8002d18 <MqttClientPubTask+0x654>)
  5982. 8002ca8: f024 fe11 bl 80278ce <MQTTPublish>
  5983. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  5984. 8002cac: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5985. 8002cb0: 3301 adds r3, #1
  5986. 8002cb2: f887 3247 strb.w r3, [r7, #583] @ 0x247
  5987. 8002cb6: f897 3247 ldrb.w r3, [r7, #583] @ 0x247
  5988. 8002cba: 2b03 cmp r3, #3
  5989. 8002cbc: f67f ae6a bls.w 8002994 <MqttClientPubTask+0x2d0>
  5990. }
  5991. }
  5992. }
  5993. osDelay (pdMS_TO_TICKS (1000));
  5994. 8002cc0: f44f 707a mov.w r0, #1000 @ 0x3e8
  5995. 8002cc4: f00e f903 bl 8010ece <osDelay>
  5996. if (mqttClient.isconnected) {
  5997. 8002cc8: e527 b.n 800271a <MqttClientPubTask+0x56>
  5998. 8002cca: bf00 nop
  5999. 8002ccc: 2400223c .word 0x2400223c
  6000. 8002cd0: 24002178 .word 0x24002178
  6001. 8002cd4: 0802ce88 .word 0x0802ce88
  6002. 8002cd8: 0802ce94 .word 0x0802ce94
  6003. 8002cdc: 0802ceb4 .word 0x0802ceb4
  6004. 8002ce0: 0802cec8 .word 0x0802cec8
  6005. 8002ce4: 0802cedc .word 0x0802cedc
  6006. 8002ce8: 0802cef0 .word 0x0802cef0
  6007. 8002cec: 0802cf04 .word 0x0802cf04
  6008. 8002cf0: 0802cf20 .word 0x0802cf20
  6009. 8002cf4: 0802cf3c .word 0x0802cf3c
  6010. 8002cf8: 0802cf58 .word 0x0802cf58
  6011. 8002cfc: 0802cf74 .word 0x0802cf74
  6012. 8002d00: 0802cf8c .word 0x0802cf8c
  6013. 8002d04: 0802cfa4 .word 0x0802cfa4
  6014. 8002d08: 0802cfc0 .word 0x0802cfc0
  6015. 8002d0c: 0802cfd8 .word 0x0802cfd8
  6016. 8002d10: 0802cff0 .word 0x0802cff0
  6017. 8002d14: 0802d00c .word 0x0802d00c
  6018. 8002d18: 24000730 .word 0x24000730
  6019. 08002d1c <MqttConnectBroker>:
  6020. }
  6021. }
  6022. int MqttConnectBroker () {
  6023. 8002d1c: b580 push {r7, lr}
  6024. 8002d1e: b09c sub sp, #112 @ 0x70
  6025. 8002d20: af04 add r7, sp, #16
  6026. uint8_t boardNumber = 0;
  6027. 8002d22: 2300 movs r3, #0
  6028. 8002d24: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6029. int ret;
  6030. NewNetwork (&net);
  6031. 8002d28: 4839 ldr r0, [pc, #228] @ (8002e10 <MqttConnectBroker+0xf4>)
  6032. 8002d2a: f024 ff09 bl 8027b40 <NewNetwork>
  6033. ret = ConnectNetwork (&net, BROKER_IP, MQTT_PORT);
  6034. 8002d2e: f240 725b movw r2, #1883 @ 0x75b
  6035. 8002d32: 4938 ldr r1, [pc, #224] @ (8002e14 <MqttConnectBroker+0xf8>)
  6036. 8002d34: 4836 ldr r0, [pc, #216] @ (8002e10 <MqttConnectBroker+0xf4>)
  6037. 8002d36: f024 ff1f bl 8027b78 <ConnectNetwork>
  6038. 8002d3a: 65b8 str r0, [r7, #88] @ 0x58
  6039. if (ret != MQTT_SUCCESS) {
  6040. 8002d3c: 6dbb ldr r3, [r7, #88] @ 0x58
  6041. 8002d3e: 2b00 cmp r3, #0
  6042. 8002d40: d005 beq.n 8002d4e <MqttConnectBroker+0x32>
  6043. printf ("ConnectNetwork failed.\n");
  6044. 8002d42: 4835 ldr r0, [pc, #212] @ (8002e18 <MqttConnectBroker+0xfc>)
  6045. 8002d44: f027 faa2 bl 802a28c <puts>
  6046. return -1;
  6047. 8002d48: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  6048. 8002d4c: e05c b.n 8002e08 <MqttConnectBroker+0xec>
  6049. }
  6050. MQTTClientInit (&mqttClient, &net, 1000, sndBuffer, sizeof (sndBuffer), rcvBuffer, sizeof (rcvBuffer));
  6051. 8002d4e: f44f 6380 mov.w r3, #1024 @ 0x400
  6052. 8002d52: 9302 str r3, [sp, #8]
  6053. 8002d54: 4b31 ldr r3, [pc, #196] @ (8002e1c <MqttConnectBroker+0x100>)
  6054. 8002d56: 9301 str r3, [sp, #4]
  6055. 8002d58: f44f 6380 mov.w r3, #1024 @ 0x400
  6056. 8002d5c: 9300 str r3, [sp, #0]
  6057. 8002d5e: 4b30 ldr r3, [pc, #192] @ (8002e20 <MqttConnectBroker+0x104>)
  6058. 8002d60: f44f 727a mov.w r2, #1000 @ 0x3e8
  6059. 8002d64: 492a ldr r1, [pc, #168] @ (8002e10 <MqttConnectBroker+0xf4>)
  6060. 8002d66: 482f ldr r0, [pc, #188] @ (8002e24 <MqttConnectBroker+0x108>)
  6061. 8002d68: f024 f824 bl 8026db4 <MQTTClientInit>
  6062. MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
  6063. 8002d6c: 4a2e ldr r2, [pc, #184] @ (8002e28 <MqttConnectBroker+0x10c>)
  6064. 8002d6e: 463b mov r3, r7
  6065. 8002d70: 4611 mov r1, r2
  6066. 8002d72: 2258 movs r2, #88 @ 0x58
  6067. 8002d74: 4618 mov r0, r3
  6068. 8002d76: f027 fcaa bl 802a6ce <memcpy>
  6069. data.willFlag = 0;
  6070. 8002d7a: 2300 movs r3, #0
  6071. 8002d7c: 76fb strb r3, [r7, #27]
  6072. data.MQTTVersion = 3;
  6073. 8002d7e: 2303 movs r3, #3
  6074. 8002d80: 723b strb r3, [r7, #8]
  6075. data.clientID.cstring = "test_user1";
  6076. 8002d82: 4b2a ldr r3, [pc, #168] @ (8002e2c <MqttConnectBroker+0x110>)
  6077. 8002d84: 60fb str r3, [r7, #12]
  6078. data.username.cstring = "test_user1";
  6079. 8002d86: 4b29 ldr r3, [pc, #164] @ (8002e2c <MqttConnectBroker+0x110>)
  6080. 8002d88: 643b str r3, [r7, #64] @ 0x40
  6081. data.password.cstring = "1234";
  6082. 8002d8a: 4b29 ldr r3, [pc, #164] @ (8002e30 <MqttConnectBroker+0x114>)
  6083. 8002d8c: 64fb str r3, [r7, #76] @ 0x4c
  6084. data.keepAliveInterval = 100;
  6085. 8002d8e: 2364 movs r3, #100 @ 0x64
  6086. 8002d90: 833b strh r3, [r7, #24]
  6087. data.cleansession = 1;
  6088. 8002d92: 2301 movs r3, #1
  6089. 8002d94: 76bb strb r3, [r7, #26]
  6090. ret = MQTTConnect (&mqttClient, &data);
  6091. 8002d96: 463b mov r3, r7
  6092. 8002d98: 4619 mov r1, r3
  6093. 8002d9a: 4822 ldr r0, [pc, #136] @ (8002e24 <MqttConnectBroker+0x108>)
  6094. 8002d9c: f024 fc66 bl 802766c <MQTTConnect>
  6095. 8002da0: 65b8 str r0, [r7, #88] @ 0x58
  6096. if (ret != MQTT_SUCCESS) {
  6097. 8002da2: 6dbb ldr r3, [r7, #88] @ 0x58
  6098. 8002da4: 2b00 cmp r3, #0
  6099. 8002da6: d008 beq.n 8002dba <MqttConnectBroker+0x9e>
  6100. net_disconnect (&net);
  6101. 8002da8: 4819 ldr r0, [pc, #100] @ (8002e10 <MqttConnectBroker+0xf4>)
  6102. 8002daa: f024 ff6e bl 8027c8a <net_disconnect>
  6103. printf ("MQTTConnect failed. Code %d\n", ret);
  6104. 8002dae: 6db9 ldr r1, [r7, #88] @ 0x58
  6105. 8002db0: 4820 ldr r0, [pc, #128] @ (8002e34 <MqttConnectBroker+0x118>)
  6106. 8002db2: f027 fa03 bl 802a1bc <iprintf>
  6107. return ret;
  6108. 8002db6: 6dbb ldr r3, [r7, #88] @ 0x58
  6109. 8002db8: e026 b.n 8002e08 <MqttConnectBroker+0xec>
  6110. }
  6111. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6112. 8002dba: 2300 movs r3, #0
  6113. 8002dbc: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6114. 8002dc0: e01a b.n 8002df8 <MqttConnectBroker+0xdc>
  6115. ret = MQTTSubscribe (&mqttClient, subscribeTopicNames[boardNumber], QOS0, MqttMessageArrived);
  6116. 8002dc2: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6117. 8002dc6: 4a1c ldr r2, [pc, #112] @ (8002e38 <MqttConnectBroker+0x11c>)
  6118. 8002dc8: f852 1023 ldr.w r1, [r2, r3, lsl #2]
  6119. 8002dcc: 4b1b ldr r3, [pc, #108] @ (8002e3c <MqttConnectBroker+0x120>)
  6120. 8002dce: 2200 movs r2, #0
  6121. 8002dd0: 4814 ldr r0, [pc, #80] @ (8002e24 <MqttConnectBroker+0x108>)
  6122. 8002dd2: f024 fd66 bl 80278a2 <MQTTSubscribe>
  6123. 8002dd6: 65b8 str r0, [r7, #88] @ 0x58
  6124. if (ret != MQTT_SUCCESS) {
  6125. 8002dd8: 6dbb ldr r3, [r7, #88] @ 0x58
  6126. 8002dda: 2b00 cmp r3, #0
  6127. 8002ddc: d007 beq.n 8002dee <MqttConnectBroker+0xd2>
  6128. net_disconnect (&net);
  6129. 8002dde: 480c ldr r0, [pc, #48] @ (8002e10 <MqttConnectBroker+0xf4>)
  6130. 8002de0: f024 ff53 bl 8027c8a <net_disconnect>
  6131. printf ("MQTTSubscribe failed.\n");
  6132. 8002de4: 4816 ldr r0, [pc, #88] @ (8002e40 <MqttConnectBroker+0x124>)
  6133. 8002de6: f027 fa51 bl 802a28c <puts>
  6134. return ret;
  6135. 8002dea: 6dbb ldr r3, [r7, #88] @ 0x58
  6136. 8002dec: e00c b.n 8002e08 <MqttConnectBroker+0xec>
  6137. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6138. 8002dee: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6139. 8002df2: 3301 adds r3, #1
  6140. 8002df4: f887 305f strb.w r3, [r7, #95] @ 0x5f
  6141. 8002df8: f897 305f ldrb.w r3, [r7, #95] @ 0x5f
  6142. 8002dfc: 2b03 cmp r3, #3
  6143. 8002dfe: d9e0 bls.n 8002dc2 <MqttConnectBroker+0xa6>
  6144. }
  6145. }
  6146. printf ("MQTT_ConnectBroker O.K.\n");
  6147. 8002e00: 4810 ldr r0, [pc, #64] @ (8002e44 <MqttConnectBroker+0x128>)
  6148. 8002e02: f027 fa43 bl 802a28c <puts>
  6149. return MQTT_SUCCESS;
  6150. 8002e06: 2300 movs r3, #0
  6151. }
  6152. 8002e08: 4618 mov r0, r3
  6153. 8002e0a: 3760 adds r7, #96 @ 0x60
  6154. 8002e0c: 46bd mov sp, r7
  6155. 8002e0e: bd80 pop {r7, pc}
  6156. 8002e10: 24000720 .word 0x24000720
  6157. 8002e14: 0802d028 .word 0x0802d028
  6158. 8002e18: 0802d038 .word 0x0802d038
  6159. 8002e1c: 24000b9c .word 0x24000b9c
  6160. 8002e20: 2400079c .word 0x2400079c
  6161. 8002e24: 24000730 .word 0x24000730
  6162. 8002e28: 0802d0b4 .word 0x0802d0b4
  6163. 8002e2c: 0802d050 .word 0x0802d050
  6164. 8002e30: 0802d05c .word 0x0802d05c
  6165. 8002e34: 0802d064 .word 0x0802d064
  6166. 8002e38: 08031288 .word 0x08031288
  6167. 8002e3c: 08002e49 .word 0x08002e49
  6168. 8002e40: 0802d084 .word 0x0802d084
  6169. 8002e44: 0802d09c .word 0x0802d09c
  6170. 08002e48 <MqttMessageArrived>:
  6171. void MqttMessageArrived (MessageData* msg) {
  6172. 8002e48: b580 push {r7, lr}
  6173. 8002e4a: b096 sub sp, #88 @ 0x58
  6174. 8002e4c: af00 add r7, sp, #0
  6175. 8002e4e: 6078 str r0, [r7, #4]
  6176. SerialProtocolCommands spCommand = spUnknown;
  6177. 8002e50: 2309 movs r3, #9
  6178. 8002e52: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6179. BoardNoOverTopic topicForBoard = unknownBoard;
  6180. 8002e56: 2305 movs r3, #5
  6181. 8002e58: f887 3056 strb.w r3, [r7, #86] @ 0x56
  6182. uint8_t boardNumber = 0;
  6183. 8002e5c: 2300 movs r3, #0
  6184. 8002e5e: f887 3055 strb.w r3, [r7, #85] @ 0x55
  6185. MQTTMessage* message = msg->message;
  6186. 8002e62: 687b ldr r3, [r7, #4]
  6187. 8002e64: 681b ldr r3, [r3, #0]
  6188. 8002e66: 64bb str r3, [r7, #72] @ 0x48
  6189. char topicName[32] = { 0 };
  6190. 8002e68: 2300 movs r3, #0
  6191. 8002e6a: 61bb str r3, [r7, #24]
  6192. 8002e6c: f107 031c add.w r3, r7, #28
  6193. 8002e70: 2200 movs r2, #0
  6194. 8002e72: 601a str r2, [r3, #0]
  6195. 8002e74: 605a str r2, [r3, #4]
  6196. 8002e76: 609a str r2, [r3, #8]
  6197. 8002e78: 60da str r2, [r3, #12]
  6198. 8002e7a: 611a str r2, [r3, #16]
  6199. 8002e7c: 615a str r2, [r3, #20]
  6200. 8002e7e: 619a str r2, [r3, #24]
  6201. memcpy (topicName, msg->topicName->lenstring.data, msg->topicName->lenstring.len);
  6202. 8002e80: 687b ldr r3, [r7, #4]
  6203. 8002e82: 685b ldr r3, [r3, #4]
  6204. 8002e84: 6899 ldr r1, [r3, #8]
  6205. 8002e86: 687b ldr r3, [r7, #4]
  6206. 8002e88: 685b ldr r3, [r3, #4]
  6207. 8002e8a: 685b ldr r3, [r3, #4]
  6208. 8002e8c: 461a mov r2, r3
  6209. 8002e8e: f107 0318 add.w r3, r7, #24
  6210. 8002e92: 4618 mov r0, r3
  6211. 8002e94: f027 fc1b bl 802a6ce <memcpy>
  6212. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6213. 8002e98: 2300 movs r3, #0
  6214. 8002e9a: f887 3055 strb.w r3, [r7, #85] @ 0x55
  6215. 8002e9e: e017 b.n 8002ed0 <MqttMessageArrived+0x88>
  6216. if (strcmp (topicName, subscribeTopicNames[boardNumber]) == 0) {
  6217. 8002ea0: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6218. 8002ea4: 4a90 ldr r2, [pc, #576] @ (80030e8 <MqttMessageArrived+0x2a0>)
  6219. 8002ea6: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  6220. 8002eaa: f107 0318 add.w r3, r7, #24
  6221. 8002eae: 4611 mov r1, r2
  6222. 8002eb0: 4618 mov r0, r3
  6223. 8002eb2: f7fd fa15 bl 80002e0 <strcmp>
  6224. 8002eb6: 4603 mov r3, r0
  6225. 8002eb8: 2b00 cmp r3, #0
  6226. 8002eba: d104 bne.n 8002ec6 <MqttMessageArrived+0x7e>
  6227. topicForBoard = (BoardNoOverTopic)(boardNumber);
  6228. 8002ebc: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6229. 8002ec0: f887 3056 strb.w r3, [r7, #86] @ 0x56
  6230. break;
  6231. 8002ec4: e008 b.n 8002ed8 <MqttMessageArrived+0x90>
  6232. for (boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++) {
  6233. 8002ec6: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6234. 8002eca: 3301 adds r3, #1
  6235. 8002ecc: f887 3055 strb.w r3, [r7, #85] @ 0x55
  6236. 8002ed0: f897 3055 ldrb.w r3, [r7, #85] @ 0x55
  6237. 8002ed4: 2b03 cmp r3, #3
  6238. 8002ed6: d9e3 bls.n 8002ea0 <MqttMessageArrived+0x58>
  6239. }
  6240. }
  6241. cJSON* json = cJSON_Parse (message->payload);
  6242. 8002ed8: 6cbb ldr r3, [r7, #72] @ 0x48
  6243. 8002eda: 689b ldr r3, [r3, #8]
  6244. 8002edc: 4618 mov r0, r3
  6245. 8002ede: f7fe fb39 bl 8001554 <cJSON_Parse>
  6246. 8002ee2: 6478 str r0, [r7, #68] @ 0x44
  6247. const cJSON* objectItem = NULL;
  6248. 8002ee4: 2300 movs r3, #0
  6249. 8002ee6: 643b str r3, [r7, #64] @ 0x40
  6250. InterProcessData data = { 0 };
  6251. 8002ee8: f107 030c add.w r3, r7, #12
  6252. 8002eec: 2200 movs r2, #0
  6253. 8002eee: 601a str r2, [r3, #0]
  6254. 8002ef0: 605a str r2, [r3, #4]
  6255. 8002ef2: 609a str r2, [r3, #8]
  6256. for (int topicCmdNumber = 0; topicCmdNumber < MAX_COMMANDS_IN_MQTT_PAYLOAD; topicCmdNumber++) {
  6257. 8002ef4: 2300 movs r3, #0
  6258. 8002ef6: 653b str r3, [r7, #80] @ 0x50
  6259. 8002ef8: e0e0 b.n 80030bc <MqttMessageArrived+0x274>
  6260. spCommand = spUnknown;
  6261. 8002efa: 2309 movs r3, #9
  6262. 8002efc: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6263. objectItem = cJSON_GetObjectItemCaseSensitive (json, topicCommands[topicCmdNumber]);
  6264. 8002f00: 4a7a ldr r2, [pc, #488] @ (80030ec <MqttMessageArrived+0x2a4>)
  6265. 8002f02: 6d3b ldr r3, [r7, #80] @ 0x50
  6266. 8002f04: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  6267. 8002f08: 4619 mov r1, r3
  6268. 8002f0a: 6c78 ldr r0, [r7, #68] @ 0x44
  6269. 8002f0c: f7fe fe8c bl 8001c28 <cJSON_GetObjectItemCaseSensitive>
  6270. 8002f10: 6438 str r0, [r7, #64] @ 0x40
  6271. if (objectItem != NULL) {
  6272. 8002f12: 6c3b ldr r3, [r7, #64] @ 0x40
  6273. 8002f14: 2b00 cmp r3, #0
  6274. 8002f16: f000 80ce beq.w 80030b6 <MqttMessageArrived+0x26e>
  6275. switch (topicCmdNumber) {
  6276. 8002f1a: 6d3b ldr r3, [r7, #80] @ 0x50
  6277. 8002f1c: 2b07 cmp r3, #7
  6278. 8002f1e: d875 bhi.n 800300c <MqttMessageArrived+0x1c4>
  6279. 8002f20: a201 add r2, pc, #4 @ (adr r2, 8002f28 <MqttMessageArrived+0xe0>)
  6280. 8002f22: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6281. 8002f26: bf00 nop
  6282. 8002f28: 08002f49 .word 0x08002f49
  6283. 8002f2c: 08002f4f .word 0x08002f4f
  6284. 8002f30: 08002f5d .word 0x08002f5d
  6285. 8002f34: 08002fc7 .word 0x08002fc7
  6286. 8002f38: 08002fd7 .word 0x08002fd7
  6287. 8002f3c: 08002fdd .word 0x08002fdd
  6288. 8002f40: 08003007 .word 0x08003007
  6289. 8002f44: 0800300d .word 0x0800300d
  6290. case 0: spCommand = spSetFanSpeed;
  6291. 8002f48: 2302 movs r3, #2
  6292. 8002f4a: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6293. case 1:
  6294. if (spCommand == spUnknown) {
  6295. 8002f4e: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6296. 8002f52: 2b09 cmp r3, #9
  6297. 8002f54: d102 bne.n 8002f5c <MqttMessageArrived+0x114>
  6298. spCommand = spSetMotorXOn;
  6299. 8002f56: 2303 movs r3, #3
  6300. 8002f58: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6301. }
  6302. case 2:
  6303. if (spCommand == spUnknown) {
  6304. 8002f5c: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6305. 8002f60: 2b09 cmp r3, #9
  6306. 8002f62: d102 bne.n 8002f6a <MqttMessageArrived+0x122>
  6307. spCommand = spSetMotorYOn;
  6308. 8002f64: 2304 movs r3, #4
  6309. 8002f66: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6310. }
  6311. if (cJSON_IsArray (objectItem)) {
  6312. 8002f6a: 6c38 ldr r0, [r7, #64] @ 0x40
  6313. 8002f6c: f7fe fe82 bl 8001c74 <cJSON_IsArray>
  6314. 8002f70: 4603 mov r3, r0
  6315. 8002f72: 2b00 cmp r3, #0
  6316. 8002f74: d04c beq.n 8003010 <MqttMessageArrived+0x1c8>
  6317. data.spCommand = spCommand;
  6318. 8002f76: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6319. 8002f7a: 733b strb r3, [r7, #12]
  6320. int arraySize = cJSON_GetArraySize (objectItem);
  6321. 8002f7c: 6c38 ldr r0, [r7, #64] @ 0x40
  6322. 8002f7e: f7fe fdb3 bl 8001ae8 <cJSON_GetArraySize>
  6323. 8002f82: 63f8 str r0, [r7, #60] @ 0x3c
  6324. if (arraySize == 2) {
  6325. 8002f84: 6bfb ldr r3, [r7, #60] @ 0x3c
  6326. 8002f86: 2b02 cmp r3, #2
  6327. 8002f88: d142 bne.n 8003010 <MqttMessageArrived+0x1c8>
  6328. for (int i = 0; i < arraySize; i++) {
  6329. 8002f8a: 2300 movs r3, #0
  6330. 8002f8c: 64fb str r3, [r7, #76] @ 0x4c
  6331. 8002f8e: e015 b.n 8002fbc <MqttMessageArrived+0x174>
  6332. cJSON* item = cJSON_GetArrayItem (objectItem, i);
  6333. 8002f90: 6cf9 ldr r1, [r7, #76] @ 0x4c
  6334. 8002f92: 6c38 ldr r0, [r7, #64] @ 0x40
  6335. 8002f94: f7fe fdec bl 8001b70 <cJSON_GetArrayItem>
  6336. 8002f98: 63b8 str r0, [r7, #56] @ 0x38
  6337. if (cJSON_IsNumber (item)) {
  6338. 8002f9a: 6bb8 ldr r0, [r7, #56] @ 0x38
  6339. 8002f9c: f7fe fe53 bl 8001c46 <cJSON_IsNumber>
  6340. 8002fa0: 4603 mov r3, r0
  6341. 8002fa2: 2b00 cmp r3, #0
  6342. 8002fa4: d007 beq.n 8002fb6 <MqttMessageArrived+0x16e>
  6343. data.values.integerValues.value[i] = item->valueint;
  6344. 8002fa6: 6bbb ldr r3, [r7, #56] @ 0x38
  6345. 8002fa8: 695a ldr r2, [r3, #20]
  6346. 8002faa: 6cfb ldr r3, [r7, #76] @ 0x4c
  6347. 8002fac: 009b lsls r3, r3, #2
  6348. 8002fae: 3358 adds r3, #88 @ 0x58
  6349. 8002fb0: 443b add r3, r7
  6350. 8002fb2: f843 2c48 str.w r2, [r3, #-72]
  6351. for (int i = 0; i < arraySize; i++) {
  6352. 8002fb6: 6cfb ldr r3, [r7, #76] @ 0x4c
  6353. 8002fb8: 3301 adds r3, #1
  6354. 8002fba: 64fb str r3, [r7, #76] @ 0x4c
  6355. 8002fbc: 6cfa ldr r2, [r7, #76] @ 0x4c
  6356. 8002fbe: 6bfb ldr r3, [r7, #60] @ 0x3c
  6357. 8002fc0: 429a cmp r2, r3
  6358. 8002fc2: dbe5 blt.n 8002f90 <MqttMessageArrived+0x148>
  6359. }
  6360. }
  6361. }
  6362. }
  6363. break;
  6364. 8002fc4: e024 b.n 8003010 <MqttMessageArrived+0x1c8>
  6365. case 3:
  6366. data.spCommand = spSetDiodeOn;
  6367. 8002fc6: 2307 movs r3, #7
  6368. 8002fc8: 733b strb r3, [r7, #12]
  6369. data.values.integerValues.value[0] = objectItem->valueint;
  6370. 8002fca: 6c3b ldr r3, [r7, #64] @ 0x40
  6371. 8002fcc: 695b ldr r3, [r3, #20]
  6372. 8002fce: 613b str r3, [r7, #16]
  6373. data.values.integerValues.value[1] = 0;
  6374. 8002fd0: 2300 movs r3, #0
  6375. 8002fd2: 617b str r3, [r7, #20]
  6376. break;
  6377. 8002fd4: e01d b.n 8003012 <MqttMessageArrived+0x1ca>
  6378. case 4: spCommand = spSetmotorXMaxCurrent;
  6379. 8002fd6: 2305 movs r3, #5
  6380. 8002fd8: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6381. case 5:
  6382. if (spCommand == spUnknown) {
  6383. 8002fdc: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6384. 8002fe0: 2b09 cmp r3, #9
  6385. 8002fe2: d102 bne.n 8002fea <MqttMessageArrived+0x1a2>
  6386. spCommand = spSetmotorYMaxCurrent;
  6387. 8002fe4: 2306 movs r3, #6
  6388. 8002fe6: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6389. }
  6390. data.spCommand = spCommand;
  6391. 8002fea: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6392. 8002fee: 733b strb r3, [r7, #12]
  6393. data.values.flaotValues.value[0] = objectItem->valuedouble;
  6394. 8002ff0: 6c3b ldr r3, [r7, #64] @ 0x40
  6395. 8002ff2: ed93 7b06 vldr d7, [r3, #24]
  6396. 8002ff6: eef7 7bc7 vcvt.f32.f64 s15, d7
  6397. 8002ffa: edc7 7a04 vstr s15, [r7, #16]
  6398. data.values.flaotValues.value[1] = 0.0;
  6399. 8002ffe: f04f 0300 mov.w r3, #0
  6400. 8003002: 617b str r3, [r7, #20]
  6401. break;
  6402. 8003004: e005 b.n 8003012 <MqttMessageArrived+0x1ca>
  6403. case 6:
  6404. data.spCommand = spClearPeakMeasurments;
  6405. 8003006: 2308 movs r3, #8
  6406. 8003008: 733b strb r3, [r7, #12]
  6407. break;
  6408. 800300a: e002 b.n 8003012 <MqttMessageArrived+0x1ca>
  6409. case 7:
  6410. break;
  6411. default: break;
  6412. 800300c: bf00 nop
  6413. 800300e: e000 b.n 8003012 <MqttMessageArrived+0x1ca>
  6414. break;
  6415. 8003010: bf00 nop
  6416. }
  6417. switch (topicForBoard) {
  6418. 8003012: f897 3056 ldrb.w r3, [r7, #86] @ 0x56
  6419. 8003016: 2b04 cmp r3, #4
  6420. 8003018: d84c bhi.n 80030b4 <MqttMessageArrived+0x26c>
  6421. 800301a: a201 add r2, pc, #4 @ (adr r2, 8003020 <MqttMessageArrived+0x1d8>)
  6422. 800301c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6423. 8003020: 080030b5 .word 0x080030b5
  6424. 8003024: 08003035 .word 0x08003035
  6425. 8003028: 08003055 .word 0x08003055
  6426. 800302c: 08003075 .word 0x08003075
  6427. 8003030: 08003095 .word 0x08003095
  6428. case main_board:
  6429. break;
  6430. case board_1:
  6431. #if 1
  6432. if (uart1TaskData.sendCmdToSlaveQueue != NULL) {
  6433. 8003034: 4b2e ldr r3, [pc, #184] @ (80030f0 <MqttMessageArrived+0x2a8>)
  6434. 8003036: 6adb ldr r3, [r3, #44] @ 0x2c
  6435. 8003038: 2b00 cmp r3, #0
  6436. 800303a: d007 beq.n 800304c <MqttMessageArrived+0x204>
  6437. osMessageQueuePut (uart1TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6438. 800303c: 4b2c ldr r3, [pc, #176] @ (80030f0 <MqttMessageArrived+0x2a8>)
  6439. 800303e: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6440. 8003040: f107 010c add.w r1, r7, #12
  6441. 8003044: 2364 movs r3, #100 @ 0x64
  6442. 8003046: 2200 movs r2, #0
  6443. 8003048: f00e fab4 bl 80115b4 <osMessageQueuePut>
  6444. #else
  6445. if (uart8TaskData.sendCmdToSlaveQueue != NULL) {
  6446. osMessageQueuePut (uart8TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6447. }
  6448. #endif
  6449. printf ("Send cmd to board 1\n");
  6450. 800304c: 4829 ldr r0, [pc, #164] @ (80030f4 <MqttMessageArrived+0x2ac>)
  6451. 800304e: f027 f91d bl 802a28c <puts>
  6452. break;
  6453. 8003052: e030 b.n 80030b6 <MqttMessageArrived+0x26e>
  6454. case board_2:
  6455. if (uart3TaskData.sendCmdToSlaveQueue != NULL) {
  6456. 8003054: 4b28 ldr r3, [pc, #160] @ (80030f8 <MqttMessageArrived+0x2b0>)
  6457. 8003056: 6adb ldr r3, [r3, #44] @ 0x2c
  6458. 8003058: 2b00 cmp r3, #0
  6459. 800305a: d007 beq.n 800306c <MqttMessageArrived+0x224>
  6460. osMessageQueuePut (uart3TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6461. 800305c: 4b26 ldr r3, [pc, #152] @ (80030f8 <MqttMessageArrived+0x2b0>)
  6462. 800305e: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6463. 8003060: f107 010c add.w r1, r7, #12
  6464. 8003064: 2364 movs r3, #100 @ 0x64
  6465. 8003066: 2200 movs r2, #0
  6466. 8003068: f00e faa4 bl 80115b4 <osMessageQueuePut>
  6467. }
  6468. printf ("Send cmd to board 2\n");
  6469. 800306c: 4823 ldr r0, [pc, #140] @ (80030fc <MqttMessageArrived+0x2b4>)
  6470. 800306e: f027 f90d bl 802a28c <puts>
  6471. break;
  6472. 8003072: e020 b.n 80030b6 <MqttMessageArrived+0x26e>
  6473. case board_3:
  6474. if (uart6TaskData.sendCmdToSlaveQueue != NULL) {
  6475. 8003074: 4b22 ldr r3, [pc, #136] @ (8003100 <MqttMessageArrived+0x2b8>)
  6476. 8003076: 6adb ldr r3, [r3, #44] @ 0x2c
  6477. 8003078: 2b00 cmp r3, #0
  6478. 800307a: d007 beq.n 800308c <MqttMessageArrived+0x244>
  6479. osMessageQueuePut (uart6TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6480. 800307c: 4b20 ldr r3, [pc, #128] @ (8003100 <MqttMessageArrived+0x2b8>)
  6481. 800307e: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6482. 8003080: f107 010c add.w r1, r7, #12
  6483. 8003084: 2364 movs r3, #100 @ 0x64
  6484. 8003086: 2200 movs r2, #0
  6485. 8003088: f00e fa94 bl 80115b4 <osMessageQueuePut>
  6486. }
  6487. printf ("Send cmd to board 3\n");
  6488. 800308c: 481d ldr r0, [pc, #116] @ (8003104 <MqttMessageArrived+0x2bc>)
  6489. 800308e: f027 f8fd bl 802a28c <puts>
  6490. break;
  6491. 8003092: e010 b.n 80030b6 <MqttMessageArrived+0x26e>
  6492. case board_4:
  6493. if (uart2TaskData.sendCmdToSlaveQueue != NULL) {
  6494. 8003094: 4b1c ldr r3, [pc, #112] @ (8003108 <MqttMessageArrived+0x2c0>)
  6495. 8003096: 6adb ldr r3, [r3, #44] @ 0x2c
  6496. 8003098: 2b00 cmp r3, #0
  6497. 800309a: d007 beq.n 80030ac <MqttMessageArrived+0x264>
  6498. osMessageQueuePut (uart2TaskData.sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  6499. 800309c: 4b1a ldr r3, [pc, #104] @ (8003108 <MqttMessageArrived+0x2c0>)
  6500. 800309e: 6ad8 ldr r0, [r3, #44] @ 0x2c
  6501. 80030a0: f107 010c add.w r1, r7, #12
  6502. 80030a4: 2364 movs r3, #100 @ 0x64
  6503. 80030a6: 2200 movs r2, #0
  6504. 80030a8: f00e fa84 bl 80115b4 <osMessageQueuePut>
  6505. }
  6506. printf ("Send cmd to board 4\n");
  6507. 80030ac: 4817 ldr r0, [pc, #92] @ (800310c <MqttMessageArrived+0x2c4>)
  6508. 80030ae: f027 f8ed bl 802a28c <puts>
  6509. break;
  6510. 80030b2: e000 b.n 80030b6 <MqttMessageArrived+0x26e>
  6511. default: break;
  6512. 80030b4: bf00 nop
  6513. for (int topicCmdNumber = 0; topicCmdNumber < MAX_COMMANDS_IN_MQTT_PAYLOAD; topicCmdNumber++) {
  6514. 80030b6: 6d3b ldr r3, [r7, #80] @ 0x50
  6515. 80030b8: 3301 adds r3, #1
  6516. 80030ba: 653b str r3, [r7, #80] @ 0x50
  6517. 80030bc: 6d3b ldr r3, [r7, #80] @ 0x50
  6518. 80030be: 2b08 cmp r3, #8
  6519. 80030c0: f77f af1b ble.w 8002efa <MqttMessageArrived+0xb2>
  6520. }
  6521. }
  6522. }
  6523. cJSON_Delete (json);
  6524. 80030c4: 6c78 ldr r0, [r7, #68] @ 0x44
  6525. 80030c6: f7fd fd61 bl 8000b8c <cJSON_Delete>
  6526. printf ("MQTT Topic:%s, MSG[%d]:%s\n", topicName, (int)message->payloadlen, (char*)message->payload);
  6527. 80030ca: 6cbb ldr r3, [r7, #72] @ 0x48
  6528. 80030cc: 68db ldr r3, [r3, #12]
  6529. 80030ce: 461a mov r2, r3
  6530. 80030d0: 6cbb ldr r3, [r7, #72] @ 0x48
  6531. 80030d2: 689b ldr r3, [r3, #8]
  6532. 80030d4: f107 0118 add.w r1, r7, #24
  6533. 80030d8: 480d ldr r0, [pc, #52] @ (8003110 <MqttMessageArrived+0x2c8>)
  6534. 80030da: f027 f86f bl 802a1bc <iprintf>
  6535. }
  6536. 80030de: bf00 nop
  6537. 80030e0: 3758 adds r7, #88 @ 0x58
  6538. 80030e2: 46bd mov sp, r7
  6539. 80030e4: bd80 pop {r7, pc}
  6540. 80030e6: bf00 nop
  6541. 80030e8: 08031288 .word 0x08031288
  6542. 80030ec: 0803129c .word 0x0803129c
  6543. 80030f0: 24001eec .word 0x24001eec
  6544. 80030f4: 0802d10c .word 0x0802d10c
  6545. 80030f8: 24001f24 .word 0x24001f24
  6546. 80030fc: 0802d120 .word 0x0802d120
  6547. 8003100: 24001f5c .word 0x24001f5c
  6548. 8003104: 0802d134 .word 0x0802d134
  6549. 8003108: 24001f94 .word 0x24001f94
  6550. 800310c: 0802d148 .word 0x0802d148
  6551. 8003110: 0802d15c .word 0x0802d15c
  6552. 08003114 <mqtt_cli_init>:
  6553. void mqtt_cli_init (void) {
  6554. 8003114: b580 push {r7, lr}
  6555. 8003116: af00 add r7, sp, #0
  6556. mqttClientSubTaskHandle = osThreadNew (MqttClientSubTask, NULL, &mqttClientSubTaskAttr); // subscribe task
  6557. 8003118: 4a08 ldr r2, [pc, #32] @ (800313c <mqtt_cli_init+0x28>)
  6558. 800311a: 2100 movs r1, #0
  6559. 800311c: 4808 ldr r0, [pc, #32] @ (8003140 <mqtt_cli_init+0x2c>)
  6560. 800311e: f00d fe38 bl 8010d92 <osThreadNew>
  6561. 8003122: 4603 mov r3, r0
  6562. 8003124: 4a07 ldr r2, [pc, #28] @ (8003144 <mqtt_cli_init+0x30>)
  6563. 8003126: 6013 str r3, [r2, #0]
  6564. mqttClientPubTaskHandle = osThreadNew (MqttClientPubTask, NULL, &mqttClientPubTaskAttr); // publish task
  6565. 8003128: 4a07 ldr r2, [pc, #28] @ (8003148 <mqtt_cli_init+0x34>)
  6566. 800312a: 2100 movs r1, #0
  6567. 800312c: 4807 ldr r0, [pc, #28] @ (800314c <mqtt_cli_init+0x38>)
  6568. 800312e: f00d fe30 bl 8010d92 <osThreadNew>
  6569. 8003132: 4603 mov r3, r0
  6570. 8003134: 4a06 ldr r2, [pc, #24] @ (8003150 <mqtt_cli_init+0x3c>)
  6571. 8003136: 6013 str r3, [r2, #0]
  6572. }
  6573. 8003138: bf00 nop
  6574. 800313a: bd80 pop {r7, pc}
  6575. 800313c: 080312c0 .word 0x080312c0
  6576. 8003140: 08002655 .word 0x08002655
  6577. 8003144: 24000718 .word 0x24000718
  6578. 8003148: 080312e4 .word 0x080312e4
  6579. 800314c: 080026c5 .word 0x080026c5
  6580. 8003150: 2400071c .word 0x2400071c
  6581. 08003154 <WriteDataToBuffer>:
  6582. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6583. }
  6584. *buffPos = newBuffPos;
  6585. }
  6586. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  6587. 8003154: b480 push {r7}
  6588. 8003156: b089 sub sp, #36 @ 0x24
  6589. 8003158: af00 add r7, sp, #0
  6590. 800315a: 60f8 str r0, [r7, #12]
  6591. 800315c: 60b9 str r1, [r7, #8]
  6592. 800315e: 607a str r2, [r7, #4]
  6593. 8003160: 70fb strb r3, [r7, #3]
  6594. uint32_t* uDataPtr = data;
  6595. 8003162: 687b ldr r3, [r7, #4]
  6596. 8003164: 61bb str r3, [r7, #24]
  6597. uint32_t uData = *uDataPtr;
  6598. 8003166: 69bb ldr r3, [r7, #24]
  6599. 8003168: 681b ldr r3, [r3, #0]
  6600. 800316a: 617b str r3, [r7, #20]
  6601. uint8_t i = 0;
  6602. 800316c: 2300 movs r3, #0
  6603. 800316e: 77fb strb r3, [r7, #31]
  6604. uint8_t newBuffPos = *buffPos;
  6605. 8003170: 68bb ldr r3, [r7, #8]
  6606. 8003172: 881b ldrh r3, [r3, #0]
  6607. 8003174: 77bb strb r3, [r7, #30]
  6608. for (i = 0; i < dataSize; i++) {
  6609. 8003176: 2300 movs r3, #0
  6610. 8003178: 77fb strb r3, [r7, #31]
  6611. 800317a: e00e b.n 800319a <WriteDataToBuffer+0x46>
  6612. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6613. 800317c: 7ffb ldrb r3, [r7, #31]
  6614. 800317e: 00db lsls r3, r3, #3
  6615. 8003180: 697a ldr r2, [r7, #20]
  6616. 8003182: 40da lsrs r2, r3
  6617. 8003184: 7fbb ldrb r3, [r7, #30]
  6618. 8003186: 1c59 adds r1, r3, #1
  6619. 8003188: 77b9 strb r1, [r7, #30]
  6620. 800318a: 4619 mov r1, r3
  6621. 800318c: 68fb ldr r3, [r7, #12]
  6622. 800318e: 440b add r3, r1
  6623. 8003190: b2d2 uxtb r2, r2
  6624. 8003192: 701a strb r2, [r3, #0]
  6625. for (i = 0; i < dataSize; i++) {
  6626. 8003194: 7ffb ldrb r3, [r7, #31]
  6627. 8003196: 3301 adds r3, #1
  6628. 8003198: 77fb strb r3, [r7, #31]
  6629. 800319a: 7ffa ldrb r2, [r7, #31]
  6630. 800319c: 78fb ldrb r3, [r7, #3]
  6631. 800319e: 429a cmp r2, r3
  6632. 80031a0: d3ec bcc.n 800317c <WriteDataToBuffer+0x28>
  6633. }
  6634. *buffPos = newBuffPos;
  6635. 80031a2: 7fbb ldrb r3, [r7, #30]
  6636. 80031a4: b29a uxth r2, r3
  6637. 80031a6: 68bb ldr r3, [r7, #8]
  6638. 80031a8: 801a strh r2, [r3, #0]
  6639. }
  6640. 80031aa: bf00 nop
  6641. 80031ac: 3724 adds r7, #36 @ 0x24
  6642. 80031ae: 46bd mov sp, r7
  6643. 80031b0: f85d 7b04 ldr.w r7, [sp], #4
  6644. 80031b4: 4770 bx lr
  6645. 080031b6 <ReadFloatFromBuffer>:
  6646. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  6647. {
  6648. 80031b6: b480 push {r7}
  6649. 80031b8: b087 sub sp, #28
  6650. 80031ba: af00 add r7, sp, #0
  6651. 80031bc: 60f8 str r0, [r7, #12]
  6652. 80031be: 60b9 str r1, [r7, #8]
  6653. 80031c0: 607a str r2, [r7, #4]
  6654. uint32_t* word = (uint32_t *)data;
  6655. 80031c2: 687b ldr r3, [r7, #4]
  6656. 80031c4: 617b str r3, [r7, #20]
  6657. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  6658. 80031c6: 68bb ldr r3, [r7, #8]
  6659. 80031c8: 881b ldrh r3, [r3, #0]
  6660. 80031ca: 3303 adds r3, #3
  6661. 80031cc: 68fa ldr r2, [r7, #12]
  6662. 80031ce: 4413 add r3, r2
  6663. 80031d0: 781b ldrb r3, [r3, #0]
  6664. 80031d2: 061a lsls r2, r3, #24
  6665. 80031d4: 68bb ldr r3, [r7, #8]
  6666. 80031d6: 881b ldrh r3, [r3, #0]
  6667. 80031d8: 3302 adds r3, #2
  6668. 80031da: 68f9 ldr r1, [r7, #12]
  6669. 80031dc: 440b add r3, r1
  6670. 80031de: 781b ldrb r3, [r3, #0]
  6671. 80031e0: 041b lsls r3, r3, #16
  6672. 80031e2: 431a orrs r2, r3
  6673. 80031e4: 68bb ldr r3, [r7, #8]
  6674. 80031e6: 881b ldrh r3, [r3, #0]
  6675. 80031e8: 3301 adds r3, #1
  6676. 80031ea: 68f9 ldr r1, [r7, #12]
  6677. 80031ec: 440b add r3, r1
  6678. 80031ee: 781b ldrb r3, [r3, #0]
  6679. 80031f0: 021b lsls r3, r3, #8
  6680. 80031f2: 4313 orrs r3, r2
  6681. 80031f4: 68ba ldr r2, [r7, #8]
  6682. 80031f6: 8812 ldrh r2, [r2, #0]
  6683. 80031f8: 4611 mov r1, r2
  6684. 80031fa: 68fa ldr r2, [r7, #12]
  6685. 80031fc: 440a add r2, r1
  6686. 80031fe: 7812 ldrb r2, [r2, #0]
  6687. 8003200: 4313 orrs r3, r2
  6688. 8003202: 461a mov r2, r3
  6689. 8003204: 697b ldr r3, [r7, #20]
  6690. 8003206: 601a str r2, [r3, #0]
  6691. *buffPos += sizeof(float);
  6692. 8003208: 68bb ldr r3, [r7, #8]
  6693. 800320a: 881b ldrh r3, [r3, #0]
  6694. 800320c: 3304 adds r3, #4
  6695. 800320e: b29a uxth r2, r3
  6696. 8003210: 68bb ldr r3, [r7, #8]
  6697. 8003212: 801a strh r2, [r3, #0]
  6698. }
  6699. 8003214: bf00 nop
  6700. 8003216: 371c adds r7, #28
  6701. 8003218: 46bd mov sp, r7
  6702. 800321a: f85d 7b04 ldr.w r7, [sp], #4
  6703. 800321e: 4770 bx lr
  6704. 08003220 <ReadByteFromBufer>:
  6705. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  6706. *buffPos += sizeof(uint32_t);
  6707. }
  6708. void ReadByteFromBufer(uint8_t* buff, uint16_t* buffPos, uint8_t* data)
  6709. {
  6710. 8003220: b480 push {r7}
  6711. 8003222: b085 sub sp, #20
  6712. 8003224: af00 add r7, sp, #0
  6713. 8003226: 60f8 str r0, [r7, #12]
  6714. 8003228: 60b9 str r1, [r7, #8]
  6715. 800322a: 607a str r2, [r7, #4]
  6716. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  6717. 800322c: 68bb ldr r3, [r7, #8]
  6718. 800322e: 881b ldrh r3, [r3, #0]
  6719. 8003230: 3301 adds r3, #1
  6720. 8003232: 68fa ldr r2, [r7, #12]
  6721. 8003234: 4413 add r3, r2
  6722. 8003236: 781b ldrb r3, [r3, #0]
  6723. 8003238: 021b lsls r3, r3, #8
  6724. 800323a: b25a sxtb r2, r3
  6725. 800323c: 68bb ldr r3, [r7, #8]
  6726. 800323e: 881b ldrh r3, [r3, #0]
  6727. 8003240: 4619 mov r1, r3
  6728. 8003242: 68fb ldr r3, [r7, #12]
  6729. 8003244: 440b add r3, r1
  6730. 8003246: 781b ldrb r3, [r3, #0]
  6731. 8003248: b25b sxtb r3, r3
  6732. 800324a: 4313 orrs r3, r2
  6733. 800324c: b25b sxtb r3, r3
  6734. 800324e: b2da uxtb r2, r3
  6735. 8003250: 687b ldr r3, [r7, #4]
  6736. 8003252: 701a strb r2, [r3, #0]
  6737. *buffPos += sizeof(uint8_t);
  6738. 8003254: 68bb ldr r3, [r7, #8]
  6739. 8003256: 881b ldrh r3, [r3, #0]
  6740. 8003258: 3301 adds r3, #1
  6741. 800325a: b29a uxth r2, r3
  6742. 800325c: 68bb ldr r3, [r7, #8]
  6743. 800325e: 801a strh r2, [r3, #0]
  6744. }
  6745. 8003260: bf00 nop
  6746. 8003262: 3714 adds r7, #20
  6747. 8003264: 46bd mov sp, r7
  6748. 8003266: f85d 7b04 ldr.w r7, [sp], #4
  6749. 800326a: 4770 bx lr
  6750. 0800326c <PrepareReqFrame>:
  6751. uint16_t PrepareReqFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, uint8_t* dataBuffer, uint16_t dataLength) {
  6752. 800326c: b580 push {r7, lr}
  6753. 800326e: b086 sub sp, #24
  6754. 8003270: af00 add r7, sp, #0
  6755. 8003272: 60f8 str r0, [r7, #12]
  6756. 8003274: 607b str r3, [r7, #4]
  6757. 8003276: 460b mov r3, r1
  6758. 8003278: 817b strh r3, [r7, #10]
  6759. 800327a: 4613 mov r3, r2
  6760. 800327c: 727b strb r3, [r7, #9]
  6761. uint16_t crc = 0;
  6762. 800327e: 2300 movs r3, #0
  6763. 8003280: 82bb strh r3, [r7, #20]
  6764. uint16_t txBufferPos = 0;
  6765. 8003282: 2300 movs r3, #0
  6766. 8003284: 82fb strh r3, [r7, #22]
  6767. uint16_t frameCmd = ((uint16_t)frameCommand);
  6768. 8003286: 7a7b ldrb r3, [r7, #9]
  6769. 8003288: 827b strh r3, [r7, #18]
  6770. memset (txBuffer, 0x00, dataLength);
  6771. 800328a: 8c3b ldrh r3, [r7, #32]
  6772. 800328c: 461a mov r2, r3
  6773. 800328e: 2100 movs r1, #0
  6774. 8003290: 68f8 ldr r0, [r7, #12]
  6775. 8003292: f027 f925 bl 802a4e0 <memset>
  6776. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6777. 8003296: 8afb ldrh r3, [r7, #22]
  6778. 8003298: 1c5a adds r2, r3, #1
  6779. 800329a: 82fa strh r2, [r7, #22]
  6780. 800329c: 461a mov r2, r3
  6781. 800329e: 68fb ldr r3, [r7, #12]
  6782. 80032a0: 4413 add r3, r2
  6783. 80032a2: 22aa movs r2, #170 @ 0xaa
  6784. 80032a4: 701a strb r2, [r3, #0]
  6785. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6786. 80032a6: 8afb ldrh r3, [r7, #22]
  6787. 80032a8: 1c5a adds r2, r3, #1
  6788. 80032aa: 82fa strh r2, [r7, #22]
  6789. 80032ac: 461a mov r2, r3
  6790. 80032ae: 68fb ldr r3, [r7, #12]
  6791. 80032b0: 4413 add r3, r2
  6792. 80032b2: 897a ldrh r2, [r7, #10]
  6793. 80032b4: b2d2 uxtb r2, r2
  6794. 80032b6: 701a strb r2, [r3, #0]
  6795. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6796. 80032b8: 897b ldrh r3, [r7, #10]
  6797. 80032ba: 0a1b lsrs r3, r3, #8
  6798. 80032bc: b29a uxth r2, r3
  6799. 80032be: 8afb ldrh r3, [r7, #22]
  6800. 80032c0: 1c59 adds r1, r3, #1
  6801. 80032c2: 82f9 strh r1, [r7, #22]
  6802. 80032c4: 4619 mov r1, r3
  6803. 80032c6: 68fb ldr r3, [r7, #12]
  6804. 80032c8: 440b add r3, r1
  6805. 80032ca: b2d2 uxtb r2, r2
  6806. 80032cc: 701a strb r2, [r3, #0]
  6807. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6808. 80032ce: 8afb ldrh r3, [r7, #22]
  6809. 80032d0: 1c5a adds r2, r3, #1
  6810. 80032d2: 82fa strh r2, [r7, #22]
  6811. 80032d4: 461a mov r2, r3
  6812. 80032d6: 68fb ldr r3, [r7, #12]
  6813. 80032d8: 4413 add r3, r2
  6814. 80032da: 8a7a ldrh r2, [r7, #18]
  6815. 80032dc: b2d2 uxtb r2, r2
  6816. 80032de: 701a strb r2, [r3, #0]
  6817. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6818. 80032e0: 8a7b ldrh r3, [r7, #18]
  6819. 80032e2: 0a1b lsrs r3, r3, #8
  6820. 80032e4: b29a uxth r2, r3
  6821. 80032e6: 8afb ldrh r3, [r7, #22]
  6822. 80032e8: 1c59 adds r1, r3, #1
  6823. 80032ea: 82f9 strh r1, [r7, #22]
  6824. 80032ec: 4619 mov r1, r3
  6825. 80032ee: 68fb ldr r3, [r7, #12]
  6826. 80032f0: 440b add r3, r1
  6827. 80032f2: b2d2 uxtb r2, r2
  6828. 80032f4: 701a strb r2, [r3, #0]
  6829. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  6830. 80032f6: 8afb ldrh r3, [r7, #22]
  6831. 80032f8: 1c5a adds r2, r3, #1
  6832. 80032fa: 82fa strh r2, [r7, #22]
  6833. 80032fc: 461a mov r2, r3
  6834. 80032fe: 68fb ldr r3, [r7, #12]
  6835. 8003300: 4413 add r3, r2
  6836. 8003302: 8c3a ldrh r2, [r7, #32]
  6837. 8003304: b2d2 uxtb r2, r2
  6838. 8003306: 701a strb r2, [r3, #0]
  6839. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  6840. 8003308: 8c3b ldrh r3, [r7, #32]
  6841. 800330a: 0a1b lsrs r3, r3, #8
  6842. 800330c: b29a uxth r2, r3
  6843. 800330e: 8afb ldrh r3, [r7, #22]
  6844. 8003310: 1c59 adds r1, r3, #1
  6845. 8003312: 82f9 strh r1, [r7, #22]
  6846. 8003314: 4619 mov r1, r3
  6847. 8003316: 68fb ldr r3, [r7, #12]
  6848. 8003318: 440b add r3, r1
  6849. 800331a: b2d2 uxtb r2, r2
  6850. 800331c: 701a strb r2, [r3, #0]
  6851. txBuffer[txBufferPos++] = 0x00;
  6852. 800331e: 8afb ldrh r3, [r7, #22]
  6853. 8003320: 1c5a adds r2, r3, #1
  6854. 8003322: 82fa strh r2, [r7, #22]
  6855. 8003324: 461a mov r2, r3
  6856. 8003326: 68fb ldr r3, [r7, #12]
  6857. 8003328: 4413 add r3, r2
  6858. 800332a: 2200 movs r2, #0
  6859. 800332c: 701a strb r2, [r3, #0]
  6860. if (dataLength > 0) {
  6861. 800332e: 8c3b ldrh r3, [r7, #32]
  6862. 8003330: 2b00 cmp r3, #0
  6863. 8003332: d00b beq.n 800334c <PrepareReqFrame+0xe0>
  6864. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  6865. 8003334: 8afb ldrh r3, [r7, #22]
  6866. 8003336: 68fa ldr r2, [r7, #12]
  6867. 8003338: 4413 add r3, r2
  6868. 800333a: 8c3a ldrh r2, [r7, #32]
  6869. 800333c: 6879 ldr r1, [r7, #4]
  6870. 800333e: 4618 mov r0, r3
  6871. 8003340: f027 f9c5 bl 802a6ce <memcpy>
  6872. txBufferPos += dataLength;
  6873. 8003344: 8afa ldrh r2, [r7, #22]
  6874. 8003346: 8c3b ldrh r3, [r7, #32]
  6875. 8003348: 4413 add r3, r2
  6876. 800334a: 82fb strh r3, [r7, #22]
  6877. }
  6878. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  6879. 800334c: 8afb ldrh r3, [r7, #22]
  6880. 800334e: 461a mov r2, r3
  6881. 8003350: 68f9 ldr r1, [r7, #12]
  6882. 8003352: 480f ldr r0, [pc, #60] @ (8003390 <PrepareReqFrame+0x124>)
  6883. 8003354: f002 f980 bl 8005658 <HAL_CRC_Calculate>
  6884. 8003358: 4603 mov r3, r0
  6885. 800335a: 82bb strh r3, [r7, #20]
  6886. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  6887. 800335c: 8afb ldrh r3, [r7, #22]
  6888. 800335e: 1c5a adds r2, r3, #1
  6889. 8003360: 82fa strh r2, [r7, #22]
  6890. 8003362: 461a mov r2, r3
  6891. 8003364: 68fb ldr r3, [r7, #12]
  6892. 8003366: 4413 add r3, r2
  6893. 8003368: 8aba ldrh r2, [r7, #20]
  6894. 800336a: b2d2 uxtb r2, r2
  6895. 800336c: 701a strb r2, [r3, #0]
  6896. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  6897. 800336e: 8abb ldrh r3, [r7, #20]
  6898. 8003370: 0a1b lsrs r3, r3, #8
  6899. 8003372: b29a uxth r2, r3
  6900. 8003374: 8afb ldrh r3, [r7, #22]
  6901. 8003376: 1c59 adds r1, r3, #1
  6902. 8003378: 82f9 strh r1, [r7, #22]
  6903. 800337a: 4619 mov r1, r3
  6904. 800337c: 68fb ldr r3, [r7, #12]
  6905. 800337e: 440b add r3, r1
  6906. 8003380: b2d2 uxtb r2, r2
  6907. 8003382: 701a strb r2, [r3, #0]
  6908. return txBufferPos;
  6909. 8003384: 8afb ldrh r3, [r7, #22]
  6910. }
  6911. 8003386: 4618 mov r0, r3
  6912. 8003388: 3718 adds r7, #24
  6913. 800338a: 46bd mov sp, r7
  6914. 800338c: bd80 pop {r7, pc}
  6915. 800338e: bf00 nop
  6916. 8003390: 24000248 .word 0x24000248
  6917. 08003394 <PrepareRespFrame>:
  6918. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  6919. 8003394: b580 push {r7, lr}
  6920. 8003396: b084 sub sp, #16
  6921. 8003398: af00 add r7, sp, #0
  6922. 800339a: 6078 str r0, [r7, #4]
  6923. 800339c: 4608 mov r0, r1
  6924. 800339e: 4611 mov r1, r2
  6925. 80033a0: 461a mov r2, r3
  6926. 80033a2: 4603 mov r3, r0
  6927. 80033a4: 807b strh r3, [r7, #2]
  6928. 80033a6: 460b mov r3, r1
  6929. 80033a8: 707b strb r3, [r7, #1]
  6930. 80033aa: 4613 mov r3, r2
  6931. 80033ac: 703b strb r3, [r7, #0]
  6932. uint16_t crc = 0;
  6933. 80033ae: 2300 movs r3, #0
  6934. 80033b0: 81bb strh r3, [r7, #12]
  6935. uint16_t txBufferPos = 0;
  6936. 80033b2: 2300 movs r3, #0
  6937. 80033b4: 81fb strh r3, [r7, #14]
  6938. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  6939. 80033b6: 787b ldrb r3, [r7, #1]
  6940. 80033b8: b21a sxth r2, r3
  6941. 80033ba: 4b43 ldr r3, [pc, #268] @ (80034c8 <PrepareRespFrame+0x134>)
  6942. 80033bc: 4313 orrs r3, r2
  6943. 80033be: b21b sxth r3, r3
  6944. 80033c0: 817b strh r3, [r7, #10]
  6945. memset (txBuffer, 0x00, dataLength);
  6946. 80033c2: 8bbb ldrh r3, [r7, #28]
  6947. 80033c4: 461a mov r2, r3
  6948. 80033c6: 2100 movs r1, #0
  6949. 80033c8: 6878 ldr r0, [r7, #4]
  6950. 80033ca: f027 f889 bl 802a4e0 <memset>
  6951. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  6952. 80033ce: 89fb ldrh r3, [r7, #14]
  6953. 80033d0: 1c5a adds r2, r3, #1
  6954. 80033d2: 81fa strh r2, [r7, #14]
  6955. 80033d4: 461a mov r2, r3
  6956. 80033d6: 687b ldr r3, [r7, #4]
  6957. 80033d8: 4413 add r3, r2
  6958. 80033da: 22aa movs r2, #170 @ 0xaa
  6959. 80033dc: 701a strb r2, [r3, #0]
  6960. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  6961. 80033de: 89fb ldrh r3, [r7, #14]
  6962. 80033e0: 1c5a adds r2, r3, #1
  6963. 80033e2: 81fa strh r2, [r7, #14]
  6964. 80033e4: 461a mov r2, r3
  6965. 80033e6: 687b ldr r3, [r7, #4]
  6966. 80033e8: 4413 add r3, r2
  6967. 80033ea: 887a ldrh r2, [r7, #2]
  6968. 80033ec: b2d2 uxtb r2, r2
  6969. 80033ee: 701a strb r2, [r3, #0]
  6970. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  6971. 80033f0: 887b ldrh r3, [r7, #2]
  6972. 80033f2: 0a1b lsrs r3, r3, #8
  6973. 80033f4: b29a uxth r2, r3
  6974. 80033f6: 89fb ldrh r3, [r7, #14]
  6975. 80033f8: 1c59 adds r1, r3, #1
  6976. 80033fa: 81f9 strh r1, [r7, #14]
  6977. 80033fc: 4619 mov r1, r3
  6978. 80033fe: 687b ldr r3, [r7, #4]
  6979. 8003400: 440b add r3, r1
  6980. 8003402: b2d2 uxtb r2, r2
  6981. 8003404: 701a strb r2, [r3, #0]
  6982. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  6983. 8003406: 89fb ldrh r3, [r7, #14]
  6984. 8003408: 1c5a adds r2, r3, #1
  6985. 800340a: 81fa strh r2, [r7, #14]
  6986. 800340c: 461a mov r2, r3
  6987. 800340e: 687b ldr r3, [r7, #4]
  6988. 8003410: 4413 add r3, r2
  6989. 8003412: 897a ldrh r2, [r7, #10]
  6990. 8003414: b2d2 uxtb r2, r2
  6991. 8003416: 701a strb r2, [r3, #0]
  6992. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  6993. 8003418: 897b ldrh r3, [r7, #10]
  6994. 800341a: 0a1b lsrs r3, r3, #8
  6995. 800341c: b29a uxth r2, r3
  6996. 800341e: 89fb ldrh r3, [r7, #14]
  6997. 8003420: 1c59 adds r1, r3, #1
  6998. 8003422: 81f9 strh r1, [r7, #14]
  6999. 8003424: 4619 mov r1, r3
  7000. 8003426: 687b ldr r3, [r7, #4]
  7001. 8003428: 440b add r3, r1
  7002. 800342a: b2d2 uxtb r2, r2
  7003. 800342c: 701a strb r2, [r3, #0]
  7004. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  7005. 800342e: 89fb ldrh r3, [r7, #14]
  7006. 8003430: 1c5a adds r2, r3, #1
  7007. 8003432: 81fa strh r2, [r7, #14]
  7008. 8003434: 461a mov r2, r3
  7009. 8003436: 687b ldr r3, [r7, #4]
  7010. 8003438: 4413 add r3, r2
  7011. 800343a: 8bba ldrh r2, [r7, #28]
  7012. 800343c: b2d2 uxtb r2, r2
  7013. 800343e: 701a strb r2, [r3, #0]
  7014. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  7015. 8003440: 8bbb ldrh r3, [r7, #28]
  7016. 8003442: 0a1b lsrs r3, r3, #8
  7017. 8003444: b29a uxth r2, r3
  7018. 8003446: 89fb ldrh r3, [r7, #14]
  7019. 8003448: 1c59 adds r1, r3, #1
  7020. 800344a: 81f9 strh r1, [r7, #14]
  7021. 800344c: 4619 mov r1, r3
  7022. 800344e: 687b ldr r3, [r7, #4]
  7023. 8003450: 440b add r3, r1
  7024. 8003452: b2d2 uxtb r2, r2
  7025. 8003454: 701a strb r2, [r3, #0]
  7026. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  7027. 8003456: 89fb ldrh r3, [r7, #14]
  7028. 8003458: 1c5a adds r2, r3, #1
  7029. 800345a: 81fa strh r2, [r7, #14]
  7030. 800345c: 461a mov r2, r3
  7031. 800345e: 687b ldr r3, [r7, #4]
  7032. 8003460: 4413 add r3, r2
  7033. 8003462: 783a ldrb r2, [r7, #0]
  7034. 8003464: 701a strb r2, [r3, #0]
  7035. if (dataLength > 0) {
  7036. 8003466: 8bbb ldrh r3, [r7, #28]
  7037. 8003468: 2b00 cmp r3, #0
  7038. 800346a: d00b beq.n 8003484 <PrepareRespFrame+0xf0>
  7039. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  7040. 800346c: 89fb ldrh r3, [r7, #14]
  7041. 800346e: 687a ldr r2, [r7, #4]
  7042. 8003470: 4413 add r3, r2
  7043. 8003472: 8bba ldrh r2, [r7, #28]
  7044. 8003474: 69b9 ldr r1, [r7, #24]
  7045. 8003476: 4618 mov r0, r3
  7046. 8003478: f027 f929 bl 802a6ce <memcpy>
  7047. txBufferPos += dataLength;
  7048. 800347c: 89fa ldrh r2, [r7, #14]
  7049. 800347e: 8bbb ldrh r3, [r7, #28]
  7050. 8003480: 4413 add r3, r2
  7051. 8003482: 81fb strh r3, [r7, #14]
  7052. }
  7053. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  7054. 8003484: 89fb ldrh r3, [r7, #14]
  7055. 8003486: 461a mov r2, r3
  7056. 8003488: 6879 ldr r1, [r7, #4]
  7057. 800348a: 4810 ldr r0, [pc, #64] @ (80034cc <PrepareRespFrame+0x138>)
  7058. 800348c: f002 f8e4 bl 8005658 <HAL_CRC_Calculate>
  7059. 8003490: 4603 mov r3, r0
  7060. 8003492: 81bb strh r3, [r7, #12]
  7061. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  7062. 8003494: 89fb ldrh r3, [r7, #14]
  7063. 8003496: 1c5a adds r2, r3, #1
  7064. 8003498: 81fa strh r2, [r7, #14]
  7065. 800349a: 461a mov r2, r3
  7066. 800349c: 687b ldr r3, [r7, #4]
  7067. 800349e: 4413 add r3, r2
  7068. 80034a0: 89ba ldrh r2, [r7, #12]
  7069. 80034a2: b2d2 uxtb r2, r2
  7070. 80034a4: 701a strb r2, [r3, #0]
  7071. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7072. 80034a6: 89bb ldrh r3, [r7, #12]
  7073. 80034a8: 0a1b lsrs r3, r3, #8
  7074. 80034aa: b29a uxth r2, r3
  7075. 80034ac: 89fb ldrh r3, [r7, #14]
  7076. 80034ae: 1c59 adds r1, r3, #1
  7077. 80034b0: 81f9 strh r1, [r7, #14]
  7078. 80034b2: 4619 mov r1, r3
  7079. 80034b4: 687b ldr r3, [r7, #4]
  7080. 80034b6: 440b add r3, r1
  7081. 80034b8: b2d2 uxtb r2, r2
  7082. 80034ba: 701a strb r2, [r3, #0]
  7083. return txBufferPos;
  7084. 80034bc: 89fb ldrh r3, [r7, #14]
  7085. }
  7086. 80034be: 4618 mov r0, r3
  7087. 80034c0: 3710 adds r7, #16
  7088. 80034c2: 46bd mov sp, r7
  7089. 80034c4: bd80 pop {r7, pc}
  7090. 80034c6: bf00 nop
  7091. 80034c8: ffff8000 .word 0xffff8000
  7092. 80034cc: 24000248 .word 0x24000248
  7093. 080034d0 <HAL_MspInit>:
  7094. /* USER CODE END 0 */
  7095. /**
  7096. * Initializes the Global MSP.
  7097. */
  7098. void HAL_MspInit(void)
  7099. {
  7100. 80034d0: b580 push {r7, lr}
  7101. 80034d2: b086 sub sp, #24
  7102. 80034d4: af00 add r7, sp, #0
  7103. /* USER CODE BEGIN MspInit 0 */
  7104. /* USER CODE END MspInit 0 */
  7105. PWREx_AVDTypeDef sConfigAVD = {0};
  7106. 80034d6: f107 0310 add.w r3, r7, #16
  7107. 80034da: 2200 movs r2, #0
  7108. 80034dc: 601a str r2, [r3, #0]
  7109. 80034de: 605a str r2, [r3, #4]
  7110. PWR_PVDTypeDef sConfigPVD = {0};
  7111. 80034e0: f107 0308 add.w r3, r7, #8
  7112. 80034e4: 2200 movs r2, #0
  7113. 80034e6: 601a str r2, [r3, #0]
  7114. 80034e8: 605a str r2, [r3, #4]
  7115. __HAL_RCC_SYSCFG_CLK_ENABLE();
  7116. 80034ea: 4b1c ldr r3, [pc, #112] @ (800355c <HAL_MspInit+0x8c>)
  7117. 80034ec: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7118. 80034f0: 4a1a ldr r2, [pc, #104] @ (800355c <HAL_MspInit+0x8c>)
  7119. 80034f2: f043 0302 orr.w r3, r3, #2
  7120. 80034f6: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7121. 80034fa: 4b18 ldr r3, [pc, #96] @ (800355c <HAL_MspInit+0x8c>)
  7122. 80034fc: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7123. 8003500: f003 0302 and.w r3, r3, #2
  7124. 8003504: 607b str r3, [r7, #4]
  7125. 8003506: 687b ldr r3, [r7, #4]
  7126. /* System interrupt init*/
  7127. /* PendSV_IRQn interrupt configuration */
  7128. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  7129. 8003508: 2200 movs r2, #0
  7130. 800350a: 210f movs r1, #15
  7131. 800350c: f06f 0001 mvn.w r0, #1
  7132. 8003510: f001 ff9e bl 8005450 <HAL_NVIC_SetPriority>
  7133. /* Peripheral interrupt init */
  7134. /* RCC_IRQn interrupt configuration */
  7135. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  7136. 8003514: 2200 movs r2, #0
  7137. 8003516: 2105 movs r1, #5
  7138. 8003518: 2005 movs r0, #5
  7139. 800351a: f001 ff99 bl 8005450 <HAL_NVIC_SetPriority>
  7140. HAL_NVIC_EnableIRQ(RCC_IRQn);
  7141. 800351e: 2005 movs r0, #5
  7142. 8003520: f001 ffb0 bl 8005484 <HAL_NVIC_EnableIRQ>
  7143. /** AVD Configuration
  7144. */
  7145. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  7146. 8003524: f44f 23c0 mov.w r3, #393216 @ 0x60000
  7147. 8003528: 613b str r3, [r7, #16]
  7148. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  7149. 800352a: 2300 movs r3, #0
  7150. 800352c: 617b str r3, [r7, #20]
  7151. HAL_PWREx_ConfigAVD(&sConfigAVD);
  7152. 800352e: f107 0310 add.w r3, r7, #16
  7153. 8003532: 4618 mov r0, r3
  7154. 8003534: f006 fc42 bl 8009dbc <HAL_PWREx_ConfigAVD>
  7155. /** Enable the AVD Output
  7156. */
  7157. HAL_PWREx_EnableAVD();
  7158. 8003538: f006 fcb6 bl 8009ea8 <HAL_PWREx_EnableAVD>
  7159. /** PVD Configuration
  7160. */
  7161. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  7162. 800353c: 23c0 movs r3, #192 @ 0xc0
  7163. 800353e: 60bb str r3, [r7, #8]
  7164. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  7165. 8003540: 2300 movs r3, #0
  7166. 8003542: 60fb str r3, [r7, #12]
  7167. HAL_PWR_ConfigPVD(&sConfigPVD);
  7168. 8003544: f107 0308 add.w r3, r7, #8
  7169. 8003548: 4618 mov r0, r3
  7170. 800354a: f006 fb73 bl 8009c34 <HAL_PWR_ConfigPVD>
  7171. /** Enable the PVD Output
  7172. */
  7173. HAL_PWR_EnablePVD();
  7174. 800354e: f006 fbeb bl 8009d28 <HAL_PWR_EnablePVD>
  7175. /* USER CODE BEGIN MspInit 1 */
  7176. /* USER CODE END MspInit 1 */
  7177. }
  7178. 8003552: bf00 nop
  7179. 8003554: 3718 adds r7, #24
  7180. 8003556: 46bd mov sp, r7
  7181. 8003558: bd80 pop {r7, pc}
  7182. 800355a: bf00 nop
  7183. 800355c: 58024400 .word 0x58024400
  7184. 08003560 <HAL_CRC_MspInit>:
  7185. * This function configures the hardware resources used in this example
  7186. * @param hcrc: CRC handle pointer
  7187. * @retval None
  7188. */
  7189. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  7190. {
  7191. 8003560: b480 push {r7}
  7192. 8003562: b085 sub sp, #20
  7193. 8003564: af00 add r7, sp, #0
  7194. 8003566: 6078 str r0, [r7, #4]
  7195. if(hcrc->Instance==CRC)
  7196. 8003568: 687b ldr r3, [r7, #4]
  7197. 800356a: 681b ldr r3, [r3, #0]
  7198. 800356c: 4a0b ldr r2, [pc, #44] @ (800359c <HAL_CRC_MspInit+0x3c>)
  7199. 800356e: 4293 cmp r3, r2
  7200. 8003570: d10e bne.n 8003590 <HAL_CRC_MspInit+0x30>
  7201. {
  7202. /* USER CODE BEGIN CRC_MspInit 0 */
  7203. /* USER CODE END CRC_MspInit 0 */
  7204. /* Peripheral clock enable */
  7205. __HAL_RCC_CRC_CLK_ENABLE();
  7206. 8003572: 4b0b ldr r3, [pc, #44] @ (80035a0 <HAL_CRC_MspInit+0x40>)
  7207. 8003574: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7208. 8003578: 4a09 ldr r2, [pc, #36] @ (80035a0 <HAL_CRC_MspInit+0x40>)
  7209. 800357a: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  7210. 800357e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7211. 8003582: 4b07 ldr r3, [pc, #28] @ (80035a0 <HAL_CRC_MspInit+0x40>)
  7212. 8003584: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7213. 8003588: f403 2300 and.w r3, r3, #524288 @ 0x80000
  7214. 800358c: 60fb str r3, [r7, #12]
  7215. 800358e: 68fb ldr r3, [r7, #12]
  7216. /* USER CODE BEGIN CRC_MspInit 1 */
  7217. /* USER CODE END CRC_MspInit 1 */
  7218. }
  7219. }
  7220. 8003590: bf00 nop
  7221. 8003592: 3714 adds r7, #20
  7222. 8003594: 46bd mov sp, r7
  7223. 8003596: f85d 7b04 ldr.w r7, [sp], #4
  7224. 800359a: 4770 bx lr
  7225. 800359c: 58024c00 .word 0x58024c00
  7226. 80035a0: 58024400 .word 0x58024400
  7227. 080035a4 <HAL_RNG_MspInit>:
  7228. * This function configures the hardware resources used in this example
  7229. * @param hrng: RNG handle pointer
  7230. * @retval None
  7231. */
  7232. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  7233. {
  7234. 80035a4: b580 push {r7, lr}
  7235. 80035a6: b0b4 sub sp, #208 @ 0xd0
  7236. 80035a8: af00 add r7, sp, #0
  7237. 80035aa: 6078 str r0, [r7, #4]
  7238. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7239. 80035ac: f107 0310 add.w r3, r7, #16
  7240. 80035b0: 22c0 movs r2, #192 @ 0xc0
  7241. 80035b2: 2100 movs r1, #0
  7242. 80035b4: 4618 mov r0, r3
  7243. 80035b6: f026 ff93 bl 802a4e0 <memset>
  7244. if(hrng->Instance==RNG)
  7245. 80035ba: 687b ldr r3, [r7, #4]
  7246. 80035bc: 681b ldr r3, [r3, #0]
  7247. 80035be: 4a14 ldr r2, [pc, #80] @ (8003610 <HAL_RNG_MspInit+0x6c>)
  7248. 80035c0: 4293 cmp r3, r2
  7249. 80035c2: d121 bne.n 8003608 <HAL_RNG_MspInit+0x64>
  7250. /* USER CODE END RNG_MspInit 0 */
  7251. /** Initializes the peripherals clock
  7252. */
  7253. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  7254. 80035c4: f44f 3200 mov.w r2, #131072 @ 0x20000
  7255. 80035c8: f04f 0300 mov.w r3, #0
  7256. 80035cc: e9c7 2304 strd r2, r3, [r7, #16]
  7257. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  7258. 80035d0: 2300 movs r3, #0
  7259. 80035d2: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  7260. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7261. 80035d6: f107 0310 add.w r3, r7, #16
  7262. 80035da: 4618 mov r0, r3
  7263. 80035dc: f007 fc9c bl 800af18 <HAL_RCCEx_PeriphCLKConfig>
  7264. 80035e0: 4603 mov r3, r0
  7265. 80035e2: 2b00 cmp r3, #0
  7266. 80035e4: d001 beq.n 80035ea <HAL_RNG_MspInit+0x46>
  7267. {
  7268. Error_Handler();
  7269. 80035e6: f7ff f82f bl 8002648 <Error_Handler>
  7270. }
  7271. /* Peripheral clock enable */
  7272. __HAL_RCC_RNG_CLK_ENABLE();
  7273. 80035ea: 4b0a ldr r3, [pc, #40] @ (8003614 <HAL_RNG_MspInit+0x70>)
  7274. 80035ec: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7275. 80035f0: 4a08 ldr r2, [pc, #32] @ (8003614 <HAL_RNG_MspInit+0x70>)
  7276. 80035f2: f043 0340 orr.w r3, r3, #64 @ 0x40
  7277. 80035f6: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  7278. 80035fa: 4b06 ldr r3, [pc, #24] @ (8003614 <HAL_RNG_MspInit+0x70>)
  7279. 80035fc: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  7280. 8003600: f003 0340 and.w r3, r3, #64 @ 0x40
  7281. 8003604: 60fb str r3, [r7, #12]
  7282. 8003606: 68fb ldr r3, [r7, #12]
  7283. /* USER CODE BEGIN RNG_MspInit 1 */
  7284. /* USER CODE END RNG_MspInit 1 */
  7285. }
  7286. }
  7287. 8003608: bf00 nop
  7288. 800360a: 37d0 adds r7, #208 @ 0xd0
  7289. 800360c: 46bd mov sp, r7
  7290. 800360e: bd80 pop {r7, pc}
  7291. 8003610: 48021800 .word 0x48021800
  7292. 8003614: 58024400 .word 0x58024400
  7293. 08003618 <HAL_UART_MspInit>:
  7294. * This function configures the hardware resources used in this example
  7295. * @param huart: UART handle pointer
  7296. * @retval None
  7297. */
  7298. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  7299. {
  7300. 8003618: b580 push {r7, lr}
  7301. 800361a: b0c2 sub sp, #264 @ 0x108
  7302. 800361c: af00 add r7, sp, #0
  7303. 800361e: f507 7384 add.w r3, r7, #264 @ 0x108
  7304. 8003622: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7305. 8003626: 6018 str r0, [r3, #0]
  7306. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7307. 8003628: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7308. 800362c: 2200 movs r2, #0
  7309. 800362e: 601a str r2, [r3, #0]
  7310. 8003630: 605a str r2, [r3, #4]
  7311. 8003632: 609a str r2, [r3, #8]
  7312. 8003634: 60da str r2, [r3, #12]
  7313. 8003636: 611a str r2, [r3, #16]
  7314. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  7315. 8003638: f107 0330 add.w r3, r7, #48 @ 0x30
  7316. 800363c: 22c0 movs r2, #192 @ 0xc0
  7317. 800363e: 2100 movs r1, #0
  7318. 8003640: 4618 mov r0, r3
  7319. 8003642: f026 ff4d bl 802a4e0 <memset>
  7320. if(huart->Instance==UART8)
  7321. 8003646: f507 7384 add.w r3, r7, #264 @ 0x108
  7322. 800364a: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7323. 800364e: 681b ldr r3, [r3, #0]
  7324. 8003650: 681b ldr r3, [r3, #0]
  7325. 8003652: 4ab8 ldr r2, [pc, #736] @ (8003934 <HAL_UART_MspInit+0x31c>)
  7326. 8003654: 4293 cmp r3, r2
  7327. 8003656: f040 80bc bne.w 80037d2 <HAL_UART_MspInit+0x1ba>
  7328. /* USER CODE END UART8_MspInit 0 */
  7329. /** Initializes the peripherals clock
  7330. */
  7331. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  7332. 800365a: f04f 0202 mov.w r2, #2
  7333. 800365e: f04f 0300 mov.w r3, #0
  7334. 8003662: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7335. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7336. 8003666: 2300 movs r3, #0
  7337. 8003668: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  7338. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7339. 800366c: f107 0330 add.w r3, r7, #48 @ 0x30
  7340. 8003670: 4618 mov r0, r3
  7341. 8003672: f007 fc51 bl 800af18 <HAL_RCCEx_PeriphCLKConfig>
  7342. 8003676: 4603 mov r3, r0
  7343. 8003678: 2b00 cmp r3, #0
  7344. 800367a: d001 beq.n 8003680 <HAL_UART_MspInit+0x68>
  7345. {
  7346. Error_Handler();
  7347. 800367c: f7fe ffe4 bl 8002648 <Error_Handler>
  7348. }
  7349. /* Peripheral clock enable */
  7350. __HAL_RCC_UART8_CLK_ENABLE();
  7351. 8003680: 4bad ldr r3, [pc, #692] @ (8003938 <HAL_UART_MspInit+0x320>)
  7352. 8003682: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7353. 8003686: 4aac ldr r2, [pc, #688] @ (8003938 <HAL_UART_MspInit+0x320>)
  7354. 8003688: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  7355. 800368c: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7356. 8003690: 4ba9 ldr r3, [pc, #676] @ (8003938 <HAL_UART_MspInit+0x320>)
  7357. 8003692: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7358. 8003696: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  7359. 800369a: 62fb str r3, [r7, #44] @ 0x2c
  7360. 800369c: 6afb ldr r3, [r7, #44] @ 0x2c
  7361. __HAL_RCC_GPIOE_CLK_ENABLE();
  7362. 800369e: 4ba6 ldr r3, [pc, #664] @ (8003938 <HAL_UART_MspInit+0x320>)
  7363. 80036a0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7364. 80036a4: 4aa4 ldr r2, [pc, #656] @ (8003938 <HAL_UART_MspInit+0x320>)
  7365. 80036a6: f043 0310 orr.w r3, r3, #16
  7366. 80036aa: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7367. 80036ae: 4ba2 ldr r3, [pc, #648] @ (8003938 <HAL_UART_MspInit+0x320>)
  7368. 80036b0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7369. 80036b4: f003 0310 and.w r3, r3, #16
  7370. 80036b8: 62bb str r3, [r7, #40] @ 0x28
  7371. 80036ba: 6abb ldr r3, [r7, #40] @ 0x28
  7372. /**UART8 GPIO Configuration
  7373. PE0 ------> UART8_RX
  7374. PE1 ------> UART8_TX
  7375. */
  7376. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7377. 80036bc: 2303 movs r3, #3
  7378. 80036be: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7379. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7380. 80036c2: 2302 movs r3, #2
  7381. 80036c4: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7382. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7383. 80036c8: 2300 movs r3, #0
  7384. 80036ca: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7385. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  7386. 80036ce: 2300 movs r3, #0
  7387. 80036d0: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7388. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  7389. 80036d4: 2308 movs r3, #8
  7390. 80036d6: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7391. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  7392. 80036da: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7393. 80036de: 4619 mov r1, r3
  7394. 80036e0: 4896 ldr r0, [pc, #600] @ (800393c <HAL_UART_MspInit+0x324>)
  7395. 80036e2: f006 f8dd bl 80098a0 <HAL_GPIO_Init>
  7396. /* UART8 DMA Init */
  7397. /* UART8_RX Init */
  7398. hdma_uart8_rx.Instance = DMA2_Stream7;
  7399. 80036e6: 4b96 ldr r3, [pc, #600] @ (8003940 <HAL_UART_MspInit+0x328>)
  7400. 80036e8: 4a96 ldr r2, [pc, #600] @ (8003944 <HAL_UART_MspInit+0x32c>)
  7401. 80036ea: 601a str r2, [r3, #0]
  7402. hdma_uart8_rx.Init.Request = DMA_REQUEST_UART8_RX;
  7403. 80036ec: 4b94 ldr r3, [pc, #592] @ (8003940 <HAL_UART_MspInit+0x328>)
  7404. 80036ee: 2251 movs r2, #81 @ 0x51
  7405. 80036f0: 605a str r2, [r3, #4]
  7406. hdma_uart8_rx.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7407. 80036f2: 4b93 ldr r3, [pc, #588] @ (8003940 <HAL_UART_MspInit+0x328>)
  7408. 80036f4: 2200 movs r2, #0
  7409. 80036f6: 609a str r2, [r3, #8]
  7410. hdma_uart8_rx.Init.PeriphInc = DMA_PINC_DISABLE;
  7411. 80036f8: 4b91 ldr r3, [pc, #580] @ (8003940 <HAL_UART_MspInit+0x328>)
  7412. 80036fa: 2200 movs r2, #0
  7413. 80036fc: 60da str r2, [r3, #12]
  7414. hdma_uart8_rx.Init.MemInc = DMA_MINC_ENABLE;
  7415. 80036fe: 4b90 ldr r3, [pc, #576] @ (8003940 <HAL_UART_MspInit+0x328>)
  7416. 8003700: f44f 6280 mov.w r2, #1024 @ 0x400
  7417. 8003704: 611a str r2, [r3, #16]
  7418. hdma_uart8_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7419. 8003706: 4b8e ldr r3, [pc, #568] @ (8003940 <HAL_UART_MspInit+0x328>)
  7420. 8003708: 2200 movs r2, #0
  7421. 800370a: 615a str r2, [r3, #20]
  7422. hdma_uart8_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7423. 800370c: 4b8c ldr r3, [pc, #560] @ (8003940 <HAL_UART_MspInit+0x328>)
  7424. 800370e: 2200 movs r2, #0
  7425. 8003710: 619a str r2, [r3, #24]
  7426. hdma_uart8_rx.Init.Mode = DMA_NORMAL;
  7427. 8003712: 4b8b ldr r3, [pc, #556] @ (8003940 <HAL_UART_MspInit+0x328>)
  7428. 8003714: 2200 movs r2, #0
  7429. 8003716: 61da str r2, [r3, #28]
  7430. hdma_uart8_rx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7431. 8003718: 4b89 ldr r3, [pc, #548] @ (8003940 <HAL_UART_MspInit+0x328>)
  7432. 800371a: f44f 3240 mov.w r2, #196608 @ 0x30000
  7433. 800371e: 621a str r2, [r3, #32]
  7434. hdma_uart8_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7435. 8003720: 4b87 ldr r3, [pc, #540] @ (8003940 <HAL_UART_MspInit+0x328>)
  7436. 8003722: 2200 movs r2, #0
  7437. 8003724: 625a str r2, [r3, #36] @ 0x24
  7438. if (HAL_DMA_Init(&hdma_uart8_rx) != HAL_OK)
  7439. 8003726: 4886 ldr r0, [pc, #536] @ (8003940 <HAL_UART_MspInit+0x328>)
  7440. 8003728: f002 f938 bl 800599c <HAL_DMA_Init>
  7441. 800372c: 4603 mov r3, r0
  7442. 800372e: 2b00 cmp r3, #0
  7443. 8003730: d001 beq.n 8003736 <HAL_UART_MspInit+0x11e>
  7444. {
  7445. Error_Handler();
  7446. 8003732: f7fe ff89 bl 8002648 <Error_Handler>
  7447. }
  7448. __HAL_LINKDMA(huart,hdmarx,hdma_uart8_rx);
  7449. 8003736: f507 7384 add.w r3, r7, #264 @ 0x108
  7450. 800373a: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7451. 800373e: 681b ldr r3, [r3, #0]
  7452. 8003740: 4a7f ldr r2, [pc, #508] @ (8003940 <HAL_UART_MspInit+0x328>)
  7453. 8003742: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  7454. 8003746: 4a7e ldr r2, [pc, #504] @ (8003940 <HAL_UART_MspInit+0x328>)
  7455. 8003748: f507 7384 add.w r3, r7, #264 @ 0x108
  7456. 800374c: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7457. 8003750: 681b ldr r3, [r3, #0]
  7458. 8003752: 6393 str r3, [r2, #56] @ 0x38
  7459. /* UART8_TX Init */
  7460. hdma_uart8_tx.Instance = DMA2_Stream6;
  7461. 8003754: 4b7c ldr r3, [pc, #496] @ (8003948 <HAL_UART_MspInit+0x330>)
  7462. 8003756: 4a7d ldr r2, [pc, #500] @ (800394c <HAL_UART_MspInit+0x334>)
  7463. 8003758: 601a str r2, [r3, #0]
  7464. hdma_uart8_tx.Init.Request = DMA_REQUEST_UART8_TX;
  7465. 800375a: 4b7b ldr r3, [pc, #492] @ (8003948 <HAL_UART_MspInit+0x330>)
  7466. 800375c: 2252 movs r2, #82 @ 0x52
  7467. 800375e: 605a str r2, [r3, #4]
  7468. hdma_uart8_tx.Init.Direction = DMA_MEMORY_TO_PERIPH;
  7469. 8003760: 4b79 ldr r3, [pc, #484] @ (8003948 <HAL_UART_MspInit+0x330>)
  7470. 8003762: 2240 movs r2, #64 @ 0x40
  7471. 8003764: 609a str r2, [r3, #8]
  7472. hdma_uart8_tx.Init.PeriphInc = DMA_PINC_DISABLE;
  7473. 8003766: 4b78 ldr r3, [pc, #480] @ (8003948 <HAL_UART_MspInit+0x330>)
  7474. 8003768: 2200 movs r2, #0
  7475. 800376a: 60da str r2, [r3, #12]
  7476. hdma_uart8_tx.Init.MemInc = DMA_MINC_ENABLE;
  7477. 800376c: 4b76 ldr r3, [pc, #472] @ (8003948 <HAL_UART_MspInit+0x330>)
  7478. 800376e: f44f 6280 mov.w r2, #1024 @ 0x400
  7479. 8003772: 611a str r2, [r3, #16]
  7480. hdma_uart8_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;
  7481. 8003774: 4b74 ldr r3, [pc, #464] @ (8003948 <HAL_UART_MspInit+0x330>)
  7482. 8003776: 2200 movs r2, #0
  7483. 8003778: 615a str r2, [r3, #20]
  7484. hdma_uart8_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;
  7485. 800377a: 4b73 ldr r3, [pc, #460] @ (8003948 <HAL_UART_MspInit+0x330>)
  7486. 800377c: 2200 movs r2, #0
  7487. 800377e: 619a str r2, [r3, #24]
  7488. hdma_uart8_tx.Init.Mode = DMA_NORMAL;
  7489. 8003780: 4b71 ldr r3, [pc, #452] @ (8003948 <HAL_UART_MspInit+0x330>)
  7490. 8003782: 2200 movs r2, #0
  7491. 8003784: 61da str r2, [r3, #28]
  7492. hdma_uart8_tx.Init.Priority = DMA_PRIORITY_VERY_HIGH;
  7493. 8003786: 4b70 ldr r3, [pc, #448] @ (8003948 <HAL_UART_MspInit+0x330>)
  7494. 8003788: f44f 3240 mov.w r2, #196608 @ 0x30000
  7495. 800378c: 621a str r2, [r3, #32]
  7496. hdma_uart8_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7497. 800378e: 4b6e ldr r3, [pc, #440] @ (8003948 <HAL_UART_MspInit+0x330>)
  7498. 8003790: 2200 movs r2, #0
  7499. 8003792: 625a str r2, [r3, #36] @ 0x24
  7500. if (HAL_DMA_Init(&hdma_uart8_tx) != HAL_OK)
  7501. 8003794: 486c ldr r0, [pc, #432] @ (8003948 <HAL_UART_MspInit+0x330>)
  7502. 8003796: f002 f901 bl 800599c <HAL_DMA_Init>
  7503. 800379a: 4603 mov r3, r0
  7504. 800379c: 2b00 cmp r3, #0
  7505. 800379e: d001 beq.n 80037a4 <HAL_UART_MspInit+0x18c>
  7506. {
  7507. Error_Handler();
  7508. 80037a0: f7fe ff52 bl 8002648 <Error_Handler>
  7509. }
  7510. __HAL_LINKDMA(huart,hdmatx,hdma_uart8_tx);
  7511. 80037a4: f507 7384 add.w r3, r7, #264 @ 0x108
  7512. 80037a8: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7513. 80037ac: 681b ldr r3, [r3, #0]
  7514. 80037ae: 4a66 ldr r2, [pc, #408] @ (8003948 <HAL_UART_MspInit+0x330>)
  7515. 80037b0: 67da str r2, [r3, #124] @ 0x7c
  7516. 80037b2: 4a65 ldr r2, [pc, #404] @ (8003948 <HAL_UART_MspInit+0x330>)
  7517. 80037b4: f507 7384 add.w r3, r7, #264 @ 0x108
  7518. 80037b8: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7519. 80037bc: 681b ldr r3, [r3, #0]
  7520. 80037be: 6393 str r3, [r2, #56] @ 0x38
  7521. /* UART8 interrupt Init */
  7522. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  7523. 80037c0: 2200 movs r2, #0
  7524. 80037c2: 2105 movs r1, #5
  7525. 80037c4: 2053 movs r0, #83 @ 0x53
  7526. 80037c6: f001 fe43 bl 8005450 <HAL_NVIC_SetPriority>
  7527. HAL_NVIC_EnableIRQ(UART8_IRQn);
  7528. 80037ca: 2053 movs r0, #83 @ 0x53
  7529. 80037cc: f001 fe5a bl 8005484 <HAL_NVIC_EnableIRQ>
  7530. /* USER CODE BEGIN USART6_MspInit 1 */
  7531. /* USER CODE END USART6_MspInit 1 */
  7532. }
  7533. }
  7534. 80037d0: e17e b.n 8003ad0 <HAL_UART_MspInit+0x4b8>
  7535. else if(huart->Instance==USART1)
  7536. 80037d2: f507 7384 add.w r3, r7, #264 @ 0x108
  7537. 80037d6: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7538. 80037da: 681b ldr r3, [r3, #0]
  7539. 80037dc: 681b ldr r3, [r3, #0]
  7540. 80037de: 4a5c ldr r2, [pc, #368] @ (8003950 <HAL_UART_MspInit+0x338>)
  7541. 80037e0: 4293 cmp r3, r2
  7542. 80037e2: d14f bne.n 8003884 <HAL_UART_MspInit+0x26c>
  7543. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  7544. 80037e4: f04f 0201 mov.w r2, #1
  7545. 80037e8: f04f 0300 mov.w r3, #0
  7546. 80037ec: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7547. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  7548. 80037f0: 2300 movs r3, #0
  7549. 80037f2: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  7550. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7551. 80037f6: f107 0330 add.w r3, r7, #48 @ 0x30
  7552. 80037fa: 4618 mov r0, r3
  7553. 80037fc: f007 fb8c bl 800af18 <HAL_RCCEx_PeriphCLKConfig>
  7554. 8003800: 4603 mov r3, r0
  7555. 8003802: 2b00 cmp r3, #0
  7556. 8003804: d001 beq.n 800380a <HAL_UART_MspInit+0x1f2>
  7557. Error_Handler();
  7558. 8003806: f7fe ff1f bl 8002648 <Error_Handler>
  7559. __HAL_RCC_USART1_CLK_ENABLE();
  7560. 800380a: 4b4b ldr r3, [pc, #300] @ (8003938 <HAL_UART_MspInit+0x320>)
  7561. 800380c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7562. 8003810: 4a49 ldr r2, [pc, #292] @ (8003938 <HAL_UART_MspInit+0x320>)
  7563. 8003812: f043 0310 orr.w r3, r3, #16
  7564. 8003816: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  7565. 800381a: 4b47 ldr r3, [pc, #284] @ (8003938 <HAL_UART_MspInit+0x320>)
  7566. 800381c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7567. 8003820: f003 0310 and.w r3, r3, #16
  7568. 8003824: 627b str r3, [r7, #36] @ 0x24
  7569. 8003826: 6a7b ldr r3, [r7, #36] @ 0x24
  7570. __HAL_RCC_GPIOB_CLK_ENABLE();
  7571. 8003828: 4b43 ldr r3, [pc, #268] @ (8003938 <HAL_UART_MspInit+0x320>)
  7572. 800382a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7573. 800382e: 4a42 ldr r2, [pc, #264] @ (8003938 <HAL_UART_MspInit+0x320>)
  7574. 8003830: f043 0302 orr.w r3, r3, #2
  7575. 8003834: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7576. 8003838: 4b3f ldr r3, [pc, #252] @ (8003938 <HAL_UART_MspInit+0x320>)
  7577. 800383a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7578. 800383e: f003 0302 and.w r3, r3, #2
  7579. 8003842: 623b str r3, [r7, #32]
  7580. 8003844: 6a3b ldr r3, [r7, #32]
  7581. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  7582. 8003846: f44f 4340 mov.w r3, #49152 @ 0xc000
  7583. 800384a: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7584. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7585. 800384e: 2302 movs r3, #2
  7586. 8003850: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7587. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7588. 8003854: 2300 movs r3, #0
  7589. 8003856: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7590. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7591. 800385a: 2302 movs r3, #2
  7592. 800385c: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7593. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  7594. 8003860: 2304 movs r3, #4
  7595. 8003862: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7596. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7597. 8003866: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7598. 800386a: 4619 mov r1, r3
  7599. 800386c: 4839 ldr r0, [pc, #228] @ (8003954 <HAL_UART_MspInit+0x33c>)
  7600. 800386e: f006 f817 bl 80098a0 <HAL_GPIO_Init>
  7601. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  7602. 8003872: 2200 movs r2, #0
  7603. 8003874: 2105 movs r1, #5
  7604. 8003876: 2025 movs r0, #37 @ 0x25
  7605. 8003878: f001 fdea bl 8005450 <HAL_NVIC_SetPriority>
  7606. HAL_NVIC_EnableIRQ(USART1_IRQn);
  7607. 800387c: 2025 movs r0, #37 @ 0x25
  7608. 800387e: f001 fe01 bl 8005484 <HAL_NVIC_EnableIRQ>
  7609. }
  7610. 8003882: e125 b.n 8003ad0 <HAL_UART_MspInit+0x4b8>
  7611. else if(huart->Instance==USART2)
  7612. 8003884: f507 7384 add.w r3, r7, #264 @ 0x108
  7613. 8003888: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7614. 800388c: 681b ldr r3, [r3, #0]
  7615. 800388e: 681b ldr r3, [r3, #0]
  7616. 8003890: 4a31 ldr r2, [pc, #196] @ (8003958 <HAL_UART_MspInit+0x340>)
  7617. 8003892: 4293 cmp r3, r2
  7618. 8003894: d164 bne.n 8003960 <HAL_UART_MspInit+0x348>
  7619. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART2;
  7620. 8003896: f04f 0202 mov.w r2, #2
  7621. 800389a: f04f 0300 mov.w r3, #0
  7622. 800389e: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7623. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7624. 80038a2: 2300 movs r3, #0
  7625. 80038a4: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  7626. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7627. 80038a8: f107 0330 add.w r3, r7, #48 @ 0x30
  7628. 80038ac: 4618 mov r0, r3
  7629. 80038ae: f007 fb33 bl 800af18 <HAL_RCCEx_PeriphCLKConfig>
  7630. 80038b2: 4603 mov r3, r0
  7631. 80038b4: 2b00 cmp r3, #0
  7632. 80038b6: d001 beq.n 80038bc <HAL_UART_MspInit+0x2a4>
  7633. Error_Handler();
  7634. 80038b8: f7fe fec6 bl 8002648 <Error_Handler>
  7635. __HAL_RCC_USART2_CLK_ENABLE();
  7636. 80038bc: 4b1e ldr r3, [pc, #120] @ (8003938 <HAL_UART_MspInit+0x320>)
  7637. 80038be: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7638. 80038c2: 4a1d ldr r2, [pc, #116] @ (8003938 <HAL_UART_MspInit+0x320>)
  7639. 80038c4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  7640. 80038c8: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7641. 80038cc: 4b1a ldr r3, [pc, #104] @ (8003938 <HAL_UART_MspInit+0x320>)
  7642. 80038ce: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7643. 80038d2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  7644. 80038d6: 61fb str r3, [r7, #28]
  7645. 80038d8: 69fb ldr r3, [r7, #28]
  7646. __HAL_RCC_GPIOD_CLK_ENABLE();
  7647. 80038da: 4b17 ldr r3, [pc, #92] @ (8003938 <HAL_UART_MspInit+0x320>)
  7648. 80038dc: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7649. 80038e0: 4a15 ldr r2, [pc, #84] @ (8003938 <HAL_UART_MspInit+0x320>)
  7650. 80038e2: f043 0308 orr.w r3, r3, #8
  7651. 80038e6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7652. 80038ea: 4b13 ldr r3, [pc, #76] @ (8003938 <HAL_UART_MspInit+0x320>)
  7653. 80038ec: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7654. 80038f0: f003 0308 and.w r3, r3, #8
  7655. 80038f4: 61bb str r3, [r7, #24]
  7656. 80038f6: 69bb ldr r3, [r7, #24]
  7657. GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6;
  7658. 80038f8: 2360 movs r3, #96 @ 0x60
  7659. 80038fa: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7660. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7661. 80038fe: 2302 movs r3, #2
  7662. 8003900: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7663. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7664. 8003904: 2300 movs r3, #0
  7665. 8003906: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7666. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7667. 800390a: 2302 movs r3, #2
  7668. 800390c: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7669. GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
  7670. 8003910: 2307 movs r3, #7
  7671. 8003912: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7672. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  7673. 8003916: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7674. 800391a: 4619 mov r1, r3
  7675. 800391c: 480f ldr r0, [pc, #60] @ (800395c <HAL_UART_MspInit+0x344>)
  7676. 800391e: f005 ffbf bl 80098a0 <HAL_GPIO_Init>
  7677. HAL_NVIC_SetPriority(USART2_IRQn, 5, 0);
  7678. 8003922: 2200 movs r2, #0
  7679. 8003924: 2105 movs r1, #5
  7680. 8003926: 2026 movs r0, #38 @ 0x26
  7681. 8003928: f001 fd92 bl 8005450 <HAL_NVIC_SetPriority>
  7682. HAL_NVIC_EnableIRQ(USART2_IRQn);
  7683. 800392c: 2026 movs r0, #38 @ 0x26
  7684. 800392e: f001 fda9 bl 8005484 <HAL_NVIC_EnableIRQ>
  7685. }
  7686. 8003932: e0cd b.n 8003ad0 <HAL_UART_MspInit+0x4b8>
  7687. 8003934: 40007c00 .word 0x40007c00
  7688. 8003938: 58024400 .word 0x58024400
  7689. 800393c: 58021000 .word 0x58021000
  7690. 8003940: 24000564 .word 0x24000564
  7691. 8003944: 400204b8 .word 0x400204b8
  7692. 8003948: 240005dc .word 0x240005dc
  7693. 800394c: 400204a0 .word 0x400204a0
  7694. 8003950: 40011000 .word 0x40011000
  7695. 8003954: 58020400 .word 0x58020400
  7696. 8003958: 40004400 .word 0x40004400
  7697. 800395c: 58020c00 .word 0x58020c00
  7698. else if(huart->Instance==USART3)
  7699. 8003960: f507 7384 add.w r3, r7, #264 @ 0x108
  7700. 8003964: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7701. 8003968: 681b ldr r3, [r3, #0]
  7702. 800396a: 681b ldr r3, [r3, #0]
  7703. 800396c: 4a5b ldr r2, [pc, #364] @ (8003adc <HAL_UART_MspInit+0x4c4>)
  7704. 800396e: 4293 cmp r3, r2
  7705. 8003970: d14f bne.n 8003a12 <HAL_UART_MspInit+0x3fa>
  7706. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART3;
  7707. 8003972: f04f 0202 mov.w r2, #2
  7708. 8003976: f04f 0300 mov.w r3, #0
  7709. 800397a: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7710. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  7711. 800397e: 2300 movs r3, #0
  7712. 8003980: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  7713. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7714. 8003984: f107 0330 add.w r3, r7, #48 @ 0x30
  7715. 8003988: 4618 mov r0, r3
  7716. 800398a: f007 fac5 bl 800af18 <HAL_RCCEx_PeriphCLKConfig>
  7717. 800398e: 4603 mov r3, r0
  7718. 8003990: 2b00 cmp r3, #0
  7719. 8003992: d001 beq.n 8003998 <HAL_UART_MspInit+0x380>
  7720. Error_Handler();
  7721. 8003994: f7fe fe58 bl 8002648 <Error_Handler>
  7722. __HAL_RCC_USART3_CLK_ENABLE();
  7723. 8003998: 4b51 ldr r3, [pc, #324] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7724. 800399a: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7725. 800399e: 4a50 ldr r2, [pc, #320] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7726. 80039a0: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  7727. 80039a4: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7728. 80039a8: 4b4d ldr r3, [pc, #308] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7729. 80039aa: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7730. 80039ae: f403 2380 and.w r3, r3, #262144 @ 0x40000
  7731. 80039b2: 617b str r3, [r7, #20]
  7732. 80039b4: 697b ldr r3, [r7, #20]
  7733. __HAL_RCC_GPIOD_CLK_ENABLE();
  7734. 80039b6: 4b4a ldr r3, [pc, #296] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7735. 80039b8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7736. 80039bc: 4a48 ldr r2, [pc, #288] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7737. 80039be: f043 0308 orr.w r3, r3, #8
  7738. 80039c2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7739. 80039c6: 4b46 ldr r3, [pc, #280] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7740. 80039c8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7741. 80039cc: f003 0308 and.w r3, r3, #8
  7742. 80039d0: 613b str r3, [r7, #16]
  7743. 80039d2: 693b ldr r3, [r7, #16]
  7744. GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9;
  7745. 80039d4: f44f 7340 mov.w r3, #768 @ 0x300
  7746. 80039d8: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7747. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7748. 80039dc: 2302 movs r3, #2
  7749. 80039de: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7750. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7751. 80039e2: 2300 movs r3, #0
  7752. 80039e4: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7753. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7754. 80039e8: 2302 movs r3, #2
  7755. 80039ea: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7756. GPIO_InitStruct.Alternate = GPIO_AF7_USART3;
  7757. 80039ee: 2307 movs r3, #7
  7758. 80039f0: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7759. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  7760. 80039f4: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7761. 80039f8: 4619 mov r1, r3
  7762. 80039fa: 483a ldr r0, [pc, #232] @ (8003ae4 <HAL_UART_MspInit+0x4cc>)
  7763. 80039fc: f005 ff50 bl 80098a0 <HAL_GPIO_Init>
  7764. HAL_NVIC_SetPriority(USART3_IRQn, 5, 0);
  7765. 8003a00: 2200 movs r2, #0
  7766. 8003a02: 2105 movs r1, #5
  7767. 8003a04: 2027 movs r0, #39 @ 0x27
  7768. 8003a06: f001 fd23 bl 8005450 <HAL_NVIC_SetPriority>
  7769. HAL_NVIC_EnableIRQ(USART3_IRQn);
  7770. 8003a0a: 2027 movs r0, #39 @ 0x27
  7771. 8003a0c: f001 fd3a bl 8005484 <HAL_NVIC_EnableIRQ>
  7772. }
  7773. 8003a10: e05e b.n 8003ad0 <HAL_UART_MspInit+0x4b8>
  7774. else if(huart->Instance==USART6)
  7775. 8003a12: f507 7384 add.w r3, r7, #264 @ 0x108
  7776. 8003a16: f5a3 7382 sub.w r3, r3, #260 @ 0x104
  7777. 8003a1a: 681b ldr r3, [r3, #0]
  7778. 8003a1c: 681b ldr r3, [r3, #0]
  7779. 8003a1e: 4a32 ldr r2, [pc, #200] @ (8003ae8 <HAL_UART_MspInit+0x4d0>)
  7780. 8003a20: 4293 cmp r3, r2
  7781. 8003a22: d155 bne.n 8003ad0 <HAL_UART_MspInit+0x4b8>
  7782. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART6;
  7783. 8003a24: f04f 0201 mov.w r2, #1
  7784. 8003a28: f04f 0300 mov.w r3, #0
  7785. 8003a2c: e9c7 230c strd r2, r3, [r7, #48] @ 0x30
  7786. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  7787. 8003a30: 2300 movs r3, #0
  7788. 8003a32: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  7789. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  7790. 8003a36: f107 0330 add.w r3, r7, #48 @ 0x30
  7791. 8003a3a: 4618 mov r0, r3
  7792. 8003a3c: f007 fa6c bl 800af18 <HAL_RCCEx_PeriphCLKConfig>
  7793. 8003a40: 4603 mov r3, r0
  7794. 8003a42: 2b00 cmp r3, #0
  7795. 8003a44: d001 beq.n 8003a4a <HAL_UART_MspInit+0x432>
  7796. Error_Handler();
  7797. 8003a46: f7fe fdff bl 8002648 <Error_Handler>
  7798. __HAL_RCC_USART6_CLK_ENABLE();
  7799. 8003a4a: 4b25 ldr r3, [pc, #148] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7800. 8003a4c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7801. 8003a50: 4a23 ldr r2, [pc, #140] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7802. 8003a52: f043 0320 orr.w r3, r3, #32
  7803. 8003a56: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  7804. 8003a5a: 4b21 ldr r3, [pc, #132] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7805. 8003a5c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  7806. 8003a60: f003 0320 and.w r3, r3, #32
  7807. 8003a64: 60fb str r3, [r7, #12]
  7808. 8003a66: 68fb ldr r3, [r7, #12]
  7809. __HAL_RCC_GPIOC_CLK_ENABLE();
  7810. 8003a68: 4b1d ldr r3, [pc, #116] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7811. 8003a6a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7812. 8003a6e: 4a1c ldr r2, [pc, #112] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7813. 8003a70: f043 0304 orr.w r3, r3, #4
  7814. 8003a74: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7815. 8003a78: 4b19 ldr r3, [pc, #100] @ (8003ae0 <HAL_UART_MspInit+0x4c8>)
  7816. 8003a7a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7817. 8003a7e: f003 0204 and.w r2, r3, #4
  7818. 8003a82: f507 7384 add.w r3, r7, #264 @ 0x108
  7819. 8003a86: f5a3 7380 sub.w r3, r3, #256 @ 0x100
  7820. 8003a8a: 601a str r2, [r3, #0]
  7821. 8003a8c: f507 7384 add.w r3, r7, #264 @ 0x108
  7822. 8003a90: f5a3 7380 sub.w r3, r3, #256 @ 0x100
  7823. 8003a94: 681b ldr r3, [r3, #0]
  7824. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
  7825. 8003a96: 23c0 movs r3, #192 @ 0xc0
  7826. 8003a98: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  7827. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  7828. 8003a9c: 2302 movs r3, #2
  7829. 8003a9e: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  7830. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7831. 8003aa2: 2300 movs r3, #0
  7832. 8003aa4: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  7833. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
  7834. 8003aa8: 2302 movs r3, #2
  7835. 8003aaa: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  7836. GPIO_InitStruct.Alternate = GPIO_AF7_USART6;
  7837. 8003aae: 2307 movs r3, #7
  7838. 8003ab0: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  7839. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7840. 8003ab4: f107 03f4 add.w r3, r7, #244 @ 0xf4
  7841. 8003ab8: 4619 mov r1, r3
  7842. 8003aba: 480c ldr r0, [pc, #48] @ (8003aec <HAL_UART_MspInit+0x4d4>)
  7843. 8003abc: f005 fef0 bl 80098a0 <HAL_GPIO_Init>
  7844. HAL_NVIC_SetPriority(USART6_IRQn, 5, 0);
  7845. 8003ac0: 2200 movs r2, #0
  7846. 8003ac2: 2105 movs r1, #5
  7847. 8003ac4: 2047 movs r0, #71 @ 0x47
  7848. 8003ac6: f001 fcc3 bl 8005450 <HAL_NVIC_SetPriority>
  7849. HAL_NVIC_EnableIRQ(USART6_IRQn);
  7850. 8003aca: 2047 movs r0, #71 @ 0x47
  7851. 8003acc: f001 fcda bl 8005484 <HAL_NVIC_EnableIRQ>
  7852. }
  7853. 8003ad0: bf00 nop
  7854. 8003ad2: f507 7784 add.w r7, r7, #264 @ 0x108
  7855. 8003ad6: 46bd mov sp, r7
  7856. 8003ad8: bd80 pop {r7, pc}
  7857. 8003ada: bf00 nop
  7858. 8003adc: 40004800 .word 0x40004800
  7859. 8003ae0: 58024400 .word 0x58024400
  7860. 8003ae4: 58020c00 .word 0x58020c00
  7861. 8003ae8: 40011400 .word 0x40011400
  7862. 8003aec: 58020800 .word 0x58020800
  7863. 08003af0 <HAL_InitTick>:
  7864. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  7865. * @param TickPriority: Tick interrupt priority.
  7866. * @retval HAL status
  7867. */
  7868. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  7869. {
  7870. 8003af0: b580 push {r7, lr}
  7871. 8003af2: b090 sub sp, #64 @ 0x40
  7872. 8003af4: af00 add r7, sp, #0
  7873. 8003af6: 6078 str r0, [r7, #4]
  7874. uint32_t uwTimclock, uwAPB1Prescaler;
  7875. uint32_t uwPrescalerValue;
  7876. uint32_t pFLatency;
  7877. /*Configure the TIM6 IRQ priority */
  7878. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  7879. 8003af8: 687b ldr r3, [r7, #4]
  7880. 8003afa: 2b0f cmp r3, #15
  7881. 8003afc: d827 bhi.n 8003b4e <HAL_InitTick+0x5e>
  7882. {
  7883. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  7884. 8003afe: 2200 movs r2, #0
  7885. 8003b00: 6879 ldr r1, [r7, #4]
  7886. 8003b02: 2036 movs r0, #54 @ 0x36
  7887. 8003b04: f001 fca4 bl 8005450 <HAL_NVIC_SetPriority>
  7888. /* Enable the TIM6 global Interrupt */
  7889. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  7890. 8003b08: 2036 movs r0, #54 @ 0x36
  7891. 8003b0a: f001 fcbb bl 8005484 <HAL_NVIC_EnableIRQ>
  7892. uwTickPrio = TickPriority;
  7893. 8003b0e: 4a29 ldr r2, [pc, #164] @ (8003bb4 <HAL_InitTick+0xc4>)
  7894. 8003b10: 687b ldr r3, [r7, #4]
  7895. 8003b12: 6013 str r3, [r2, #0]
  7896. {
  7897. return HAL_ERROR;
  7898. }
  7899. /* Enable TIM6 clock */
  7900. __HAL_RCC_TIM6_CLK_ENABLE();
  7901. 8003b14: 4b28 ldr r3, [pc, #160] @ (8003bb8 <HAL_InitTick+0xc8>)
  7902. 8003b16: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7903. 8003b1a: 4a27 ldr r2, [pc, #156] @ (8003bb8 <HAL_InitTick+0xc8>)
  7904. 8003b1c: f043 0310 orr.w r3, r3, #16
  7905. 8003b20: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  7906. 8003b24: 4b24 ldr r3, [pc, #144] @ (8003bb8 <HAL_InitTick+0xc8>)
  7907. 8003b26: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  7908. 8003b2a: f003 0310 and.w r3, r3, #16
  7909. 8003b2e: 60fb str r3, [r7, #12]
  7910. 8003b30: 68fb ldr r3, [r7, #12]
  7911. /* Get clock configuration */
  7912. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  7913. 8003b32: f107 0210 add.w r2, r7, #16
  7914. 8003b36: f107 0314 add.w r3, r7, #20
  7915. 8003b3a: 4611 mov r1, r2
  7916. 8003b3c: 4618 mov r0, r3
  7917. 8003b3e: f007 f9a9 bl 800ae94 <HAL_RCC_GetClockConfig>
  7918. /* Get APB1 prescaler */
  7919. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  7920. 8003b42: 6abb ldr r3, [r7, #40] @ 0x28
  7921. 8003b44: 63bb str r3, [r7, #56] @ 0x38
  7922. /* Compute TIM6 clock */
  7923. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  7924. 8003b46: 6bbb ldr r3, [r7, #56] @ 0x38
  7925. 8003b48: 2b00 cmp r3, #0
  7926. 8003b4a: d106 bne.n 8003b5a <HAL_InitTick+0x6a>
  7927. 8003b4c: e001 b.n 8003b52 <HAL_InitTick+0x62>
  7928. return HAL_ERROR;
  7929. 8003b4e: 2301 movs r3, #1
  7930. 8003b50: e02b b.n 8003baa <HAL_InitTick+0xba>
  7931. {
  7932. uwTimclock = HAL_RCC_GetPCLK1Freq();
  7933. 8003b52: f007 f973 bl 800ae3c <HAL_RCC_GetPCLK1Freq>
  7934. 8003b56: 63f8 str r0, [r7, #60] @ 0x3c
  7935. 8003b58: e004 b.n 8003b64 <HAL_InitTick+0x74>
  7936. }
  7937. else
  7938. {
  7939. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  7940. 8003b5a: f007 f96f bl 800ae3c <HAL_RCC_GetPCLK1Freq>
  7941. 8003b5e: 4603 mov r3, r0
  7942. 8003b60: 005b lsls r3, r3, #1
  7943. 8003b62: 63fb str r3, [r7, #60] @ 0x3c
  7944. }
  7945. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  7946. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  7947. 8003b64: 6bfb ldr r3, [r7, #60] @ 0x3c
  7948. 8003b66: 4a15 ldr r2, [pc, #84] @ (8003bbc <HAL_InitTick+0xcc>)
  7949. 8003b68: fba2 2303 umull r2, r3, r2, r3
  7950. 8003b6c: 0c9b lsrs r3, r3, #18
  7951. 8003b6e: 3b01 subs r3, #1
  7952. 8003b70: 637b str r3, [r7, #52] @ 0x34
  7953. /* Initialize TIM6 */
  7954. htim6.Instance = TIM6;
  7955. 8003b72: 4b13 ldr r3, [pc, #76] @ (8003bc0 <HAL_InitTick+0xd0>)
  7956. 8003b74: 4a13 ldr r2, [pc, #76] @ (8003bc4 <HAL_InitTick+0xd4>)
  7957. 8003b76: 601a str r2, [r3, #0]
  7958. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  7959. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  7960. + ClockDivision = 0
  7961. + Counter direction = Up
  7962. */
  7963. htim6.Init.Period = (1000000U / 1000U) - 1U;
  7964. 8003b78: 4b11 ldr r3, [pc, #68] @ (8003bc0 <HAL_InitTick+0xd0>)
  7965. 8003b7a: f240 32e7 movw r2, #999 @ 0x3e7
  7966. 8003b7e: 60da str r2, [r3, #12]
  7967. htim6.Init.Prescaler = uwPrescalerValue;
  7968. 8003b80: 4a0f ldr r2, [pc, #60] @ (8003bc0 <HAL_InitTick+0xd0>)
  7969. 8003b82: 6b7b ldr r3, [r7, #52] @ 0x34
  7970. 8003b84: 6053 str r3, [r2, #4]
  7971. htim6.Init.ClockDivision = 0;
  7972. 8003b86: 4b0e ldr r3, [pc, #56] @ (8003bc0 <HAL_InitTick+0xd0>)
  7973. 8003b88: 2200 movs r2, #0
  7974. 8003b8a: 611a str r2, [r3, #16]
  7975. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  7976. 8003b8c: 4b0c ldr r3, [pc, #48] @ (8003bc0 <HAL_InitTick+0xd0>)
  7977. 8003b8e: 2200 movs r2, #0
  7978. 8003b90: 609a str r2, [r3, #8]
  7979. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  7980. 8003b92: 480b ldr r0, [pc, #44] @ (8003bc0 <HAL_InitTick+0xd0>)
  7981. 8003b94: f009 f888 bl 800cca8 <HAL_TIM_Base_Init>
  7982. 8003b98: 4603 mov r3, r0
  7983. 8003b9a: 2b00 cmp r3, #0
  7984. 8003b9c: d104 bne.n 8003ba8 <HAL_InitTick+0xb8>
  7985. {
  7986. /* Start the TIM time Base generation in interrupt mode */
  7987. return HAL_TIM_Base_Start_IT(&htim6);
  7988. 8003b9e: 4808 ldr r0, [pc, #32] @ (8003bc0 <HAL_InitTick+0xd0>)
  7989. 8003ba0: f009 f8e4 bl 800cd6c <HAL_TIM_Base_Start_IT>
  7990. 8003ba4: 4603 mov r3, r0
  7991. 8003ba6: e000 b.n 8003baa <HAL_InitTick+0xba>
  7992. }
  7993. /* Return function status */
  7994. return HAL_ERROR;
  7995. 8003ba8: 2301 movs r3, #1
  7996. }
  7997. 8003baa: 4618 mov r0, r3
  7998. 8003bac: 3740 adds r7, #64 @ 0x40
  7999. 8003bae: 46bd mov sp, r7
  8000. 8003bb0: bd80 pop {r7, pc}
  8001. 8003bb2: bf00 nop
  8002. 8003bb4: 2400002c .word 0x2400002c
  8003. 8003bb8: 58024400 .word 0x58024400
  8004. 8003bbc: 431bde83 .word 0x431bde83
  8005. 8003bc0: 24000f9c .word 0x24000f9c
  8006. 8003bc4: 40001000 .word 0x40001000
  8007. 08003bc8 <NMI_Handler>:
  8008. /******************************************************************************/
  8009. /**
  8010. * @brief This function handles Non maskable interrupt.
  8011. */
  8012. void NMI_Handler(void)
  8013. {
  8014. 8003bc8: b480 push {r7}
  8015. 8003bca: af00 add r7, sp, #0
  8016. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  8017. /* USER CODE END NonMaskableInt_IRQn 0 */
  8018. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  8019. while (1)
  8020. 8003bcc: bf00 nop
  8021. 8003bce: e7fd b.n 8003bcc <NMI_Handler+0x4>
  8022. 08003bd0 <HardFault_Handler>:
  8023. /**
  8024. * @brief This function handles Hard fault interrupt.
  8025. */
  8026. void HardFault_Handler(void)
  8027. {
  8028. 8003bd0: b480 push {r7}
  8029. 8003bd2: af00 add r7, sp, #0
  8030. /* USER CODE BEGIN HardFault_IRQn 0 */
  8031. /* USER CODE END HardFault_IRQn 0 */
  8032. while (1)
  8033. 8003bd4: bf00 nop
  8034. 8003bd6: e7fd b.n 8003bd4 <HardFault_Handler+0x4>
  8035. 08003bd8 <MemManage_Handler>:
  8036. /**
  8037. * @brief This function handles Memory management fault.
  8038. */
  8039. void MemManage_Handler(void)
  8040. {
  8041. 8003bd8: b480 push {r7}
  8042. 8003bda: af00 add r7, sp, #0
  8043. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  8044. /* USER CODE END MemoryManagement_IRQn 0 */
  8045. while (1)
  8046. 8003bdc: bf00 nop
  8047. 8003bde: e7fd b.n 8003bdc <MemManage_Handler+0x4>
  8048. 08003be0 <BusFault_Handler>:
  8049. /**
  8050. * @brief This function handles Pre-fetch fault, memory access fault.
  8051. */
  8052. void BusFault_Handler(void)
  8053. {
  8054. 8003be0: b480 push {r7}
  8055. 8003be2: af00 add r7, sp, #0
  8056. /* USER CODE BEGIN BusFault_IRQn 0 */
  8057. /* USER CODE END BusFault_IRQn 0 */
  8058. while (1)
  8059. 8003be4: bf00 nop
  8060. 8003be6: e7fd b.n 8003be4 <BusFault_Handler+0x4>
  8061. 08003be8 <UsageFault_Handler>:
  8062. /**
  8063. * @brief This function handles Undefined instruction or illegal state.
  8064. */
  8065. void UsageFault_Handler(void)
  8066. {
  8067. 8003be8: b480 push {r7}
  8068. 8003bea: af00 add r7, sp, #0
  8069. /* USER CODE BEGIN UsageFault_IRQn 0 */
  8070. /* USER CODE END UsageFault_IRQn 0 */
  8071. while (1)
  8072. 8003bec: bf00 nop
  8073. 8003bee: e7fd b.n 8003bec <UsageFault_Handler+0x4>
  8074. 08003bf0 <DebugMon_Handler>:
  8075. /**
  8076. * @brief This function handles Debug monitor.
  8077. */
  8078. void DebugMon_Handler(void)
  8079. {
  8080. 8003bf0: b480 push {r7}
  8081. 8003bf2: af00 add r7, sp, #0
  8082. /* USER CODE END DebugMonitor_IRQn 0 */
  8083. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  8084. /* USER CODE END DebugMonitor_IRQn 1 */
  8085. }
  8086. 8003bf4: bf00 nop
  8087. 8003bf6: 46bd mov sp, r7
  8088. 8003bf8: f85d 7b04 ldr.w r7, [sp], #4
  8089. 8003bfc: 4770 bx lr
  8090. 08003bfe <RCC_IRQHandler>:
  8091. /**
  8092. * @brief This function handles RCC global interrupt.
  8093. */
  8094. void RCC_IRQHandler(void)
  8095. {
  8096. 8003bfe: b480 push {r7}
  8097. 8003c00: af00 add r7, sp, #0
  8098. /* USER CODE END RCC_IRQn 0 */
  8099. /* USER CODE BEGIN RCC_IRQn 1 */
  8100. /* USER CODE END RCC_IRQn 1 */
  8101. }
  8102. 8003c02: bf00 nop
  8103. 8003c04: 46bd mov sp, r7
  8104. 8003c06: f85d 7b04 ldr.w r7, [sp], #4
  8105. 8003c0a: 4770 bx lr
  8106. 08003c0c <USART1_IRQHandler>:
  8107. /**
  8108. * @brief This function handles USART1 global interrupt.
  8109. */
  8110. void USART1_IRQHandler(void)
  8111. {
  8112. 8003c0c: b580 push {r7, lr}
  8113. 8003c0e: af00 add r7, sp, #0
  8114. /* USER CODE BEGIN USART1_IRQn 0 */
  8115. /* USER CODE END USART1_IRQn 0 */
  8116. HAL_UART_IRQHandler(&huart1);
  8117. 8003c10: 4802 ldr r0, [pc, #8] @ (8003c1c <USART1_IRQHandler+0x10>)
  8118. 8003c12: f009 fc89 bl 800d528 <HAL_UART_IRQHandler>
  8119. /* USER CODE BEGIN USART1_IRQn 1 */
  8120. /* USER CODE END USART1_IRQn 1 */
  8121. }
  8122. 8003c16: bf00 nop
  8123. 8003c18: bd80 pop {r7, pc}
  8124. 8003c1a: bf00 nop
  8125. 8003c1c: 24000314 .word 0x24000314
  8126. 08003c20 <USART2_IRQHandler>:
  8127. /**
  8128. * @brief This function handles USART2 global interrupt.
  8129. */
  8130. void USART2_IRQHandler(void)
  8131. {
  8132. 8003c20: b580 push {r7, lr}
  8133. 8003c22: af00 add r7, sp, #0
  8134. /* USER CODE BEGIN USART2_IRQn 0 */
  8135. /* USER CODE END USART2_IRQn 0 */
  8136. HAL_UART_IRQHandler(&huart2);
  8137. 8003c24: 4802 ldr r0, [pc, #8] @ (8003c30 <USART2_IRQHandler+0x10>)
  8138. 8003c26: f009 fc7f bl 800d528 <HAL_UART_IRQHandler>
  8139. /* USER CODE BEGIN USART2_IRQn 1 */
  8140. /* USER CODE END USART2_IRQn 1 */
  8141. }
  8142. 8003c2a: bf00 nop
  8143. 8003c2c: bd80 pop {r7, pc}
  8144. 8003c2e: bf00 nop
  8145. 8003c30: 240003a8 .word 0x240003a8
  8146. 08003c34 <USART3_IRQHandler>:
  8147. /**
  8148. * @brief This function handles USART3 global interrupt.
  8149. */
  8150. void USART3_IRQHandler(void)
  8151. {
  8152. 8003c34: b580 push {r7, lr}
  8153. 8003c36: af00 add r7, sp, #0
  8154. /* USER CODE BEGIN USART3_IRQn 0 */
  8155. /* USER CODE END USART3_IRQn 0 */
  8156. HAL_UART_IRQHandler(&huart3);
  8157. 8003c38: 4802 ldr r0, [pc, #8] @ (8003c44 <USART3_IRQHandler+0x10>)
  8158. 8003c3a: f009 fc75 bl 800d528 <HAL_UART_IRQHandler>
  8159. /* USER CODE BEGIN USART3_IRQn 1 */
  8160. /* USER CODE END USART3_IRQn 1 */
  8161. }
  8162. 8003c3e: bf00 nop
  8163. 8003c40: bd80 pop {r7, pc}
  8164. 8003c42: bf00 nop
  8165. 8003c44: 2400043c .word 0x2400043c
  8166. 08003c48 <TIM6_DAC_IRQHandler>:
  8167. /**
  8168. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  8169. */
  8170. void TIM6_DAC_IRQHandler(void)
  8171. {
  8172. 8003c48: b580 push {r7, lr}
  8173. 8003c4a: af00 add r7, sp, #0
  8174. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  8175. /* USER CODE END TIM6_DAC_IRQn 0 */
  8176. HAL_TIM_IRQHandler(&htim6);
  8177. 8003c4c: 4802 ldr r0, [pc, #8] @ (8003c58 <TIM6_DAC_IRQHandler+0x10>)
  8178. 8003c4e: f009 f905 bl 800ce5c <HAL_TIM_IRQHandler>
  8179. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  8180. /* USER CODE END TIM6_DAC_IRQn 1 */
  8181. }
  8182. 8003c52: bf00 nop
  8183. 8003c54: bd80 pop {r7, pc}
  8184. 8003c56: bf00 nop
  8185. 8003c58: 24000f9c .word 0x24000f9c
  8186. 08003c5c <ETH_IRQHandler>:
  8187. /**
  8188. * @brief This function handles Ethernet global interrupt.
  8189. */
  8190. void ETH_IRQHandler(void)
  8191. {
  8192. 8003c5c: b580 push {r7, lr}
  8193. 8003c5e: af00 add r7, sp, #0
  8194. /* USER CODE BEGIN ETH_IRQn 0 */
  8195. /* USER CODE END ETH_IRQn 0 */
  8196. HAL_ETH_IRQHandler(&heth);
  8197. 8003c60: 4802 ldr r0, [pc, #8] @ (8003c6c <ETH_IRQHandler+0x10>)
  8198. 8003c62: f004 fc95 bl 8008590 <HAL_ETH_IRQHandler>
  8199. /* USER CODE BEGIN ETH_IRQn 1 */
  8200. /* USER CODE END ETH_IRQn 1 */
  8201. }
  8202. 8003c66: bf00 nop
  8203. 8003c68: bd80 pop {r7, pc}
  8204. 8003c6a: bf00 nop
  8205. 8003c6c: 240022bc .word 0x240022bc
  8206. 08003c70 <DMA2_Stream6_IRQHandler>:
  8207. /**
  8208. * @brief This function handles DMA2 stream6 global interrupt.
  8209. */
  8210. void DMA2_Stream6_IRQHandler(void)
  8211. {
  8212. 8003c70: b580 push {r7, lr}
  8213. 8003c72: af00 add r7, sp, #0
  8214. /* USER CODE BEGIN DMA2_Stream6_IRQn 0 */
  8215. /* USER CODE END DMA2_Stream6_IRQn 0 */
  8216. HAL_DMA_IRQHandler(&hdma_uart8_tx);
  8217. 8003c74: 4802 ldr r0, [pc, #8] @ (8003c80 <DMA2_Stream6_IRQHandler+0x10>)
  8218. 8003c76: f002 ff51 bl 8006b1c <HAL_DMA_IRQHandler>
  8219. /* USER CODE BEGIN DMA2_Stream6_IRQn 1 */
  8220. /* USER CODE END DMA2_Stream6_IRQn 1 */
  8221. }
  8222. 8003c7a: bf00 nop
  8223. 8003c7c: bd80 pop {r7, pc}
  8224. 8003c7e: bf00 nop
  8225. 8003c80: 240005dc .word 0x240005dc
  8226. 08003c84 <DMA2_Stream7_IRQHandler>:
  8227. /**
  8228. * @brief This function handles DMA2 stream7 global interrupt.
  8229. */
  8230. void DMA2_Stream7_IRQHandler(void)
  8231. {
  8232. 8003c84: b580 push {r7, lr}
  8233. 8003c86: af00 add r7, sp, #0
  8234. /* USER CODE BEGIN DMA2_Stream7_IRQn 0 */
  8235. /* USER CODE END DMA2_Stream7_IRQn 0 */
  8236. HAL_DMA_IRQHandler(&hdma_uart8_rx);
  8237. 8003c88: 4802 ldr r0, [pc, #8] @ (8003c94 <DMA2_Stream7_IRQHandler+0x10>)
  8238. 8003c8a: f002 ff47 bl 8006b1c <HAL_DMA_IRQHandler>
  8239. /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */
  8240. /* USER CODE END DMA2_Stream7_IRQn 1 */
  8241. }
  8242. 8003c8e: bf00 nop
  8243. 8003c90: bd80 pop {r7, pc}
  8244. 8003c92: bf00 nop
  8245. 8003c94: 24000564 .word 0x24000564
  8246. 08003c98 <USART6_IRQHandler>:
  8247. /**
  8248. * @brief This function handles USART6 global interrupt.
  8249. */
  8250. void USART6_IRQHandler(void)
  8251. {
  8252. 8003c98: b580 push {r7, lr}
  8253. 8003c9a: af00 add r7, sp, #0
  8254. /* USER CODE BEGIN USART6_IRQn 0 */
  8255. /* USER CODE END USART6_IRQn 0 */
  8256. HAL_UART_IRQHandler(&huart6);
  8257. 8003c9c: 4802 ldr r0, [pc, #8] @ (8003ca8 <USART6_IRQHandler+0x10>)
  8258. 8003c9e: f009 fc43 bl 800d528 <HAL_UART_IRQHandler>
  8259. /* USER CODE BEGIN USART6_IRQn 1 */
  8260. /* USER CODE END USART6_IRQn 1 */
  8261. }
  8262. 8003ca2: bf00 nop
  8263. 8003ca4: bd80 pop {r7, pc}
  8264. 8003ca6: bf00 nop
  8265. 8003ca8: 240004d0 .word 0x240004d0
  8266. 08003cac <UART8_IRQHandler>:
  8267. /**
  8268. * @brief This function handles UART8 global interrupt.
  8269. */
  8270. void UART8_IRQHandler(void)
  8271. {
  8272. 8003cac: b580 push {r7, lr}
  8273. 8003cae: af00 add r7, sp, #0
  8274. /* USER CODE BEGIN UART8_IRQn 0 */
  8275. /* USER CODE END UART8_IRQn 0 */
  8276. HAL_UART_IRQHandler(&huart8);
  8277. 8003cb0: 4802 ldr r0, [pc, #8] @ (8003cbc <UART8_IRQHandler+0x10>)
  8278. 8003cb2: f009 fc39 bl 800d528 <HAL_UART_IRQHandler>
  8279. /* USER CODE BEGIN UART8_IRQn 1 */
  8280. /* USER CODE END UART8_IRQn 1 */
  8281. }
  8282. 8003cb6: bf00 nop
  8283. 8003cb8: bd80 pop {r7, pc}
  8284. 8003cba: bf00 nop
  8285. 8003cbc: 24000280 .word 0x24000280
  8286. 08003cc0 <_getpid>:
  8287. void initialise_monitor_handles()
  8288. {
  8289. }
  8290. int _getpid(void)
  8291. {
  8292. 8003cc0: b480 push {r7}
  8293. 8003cc2: af00 add r7, sp, #0
  8294. return 1;
  8295. 8003cc4: 2301 movs r3, #1
  8296. }
  8297. 8003cc6: 4618 mov r0, r3
  8298. 8003cc8: 46bd mov sp, r7
  8299. 8003cca: f85d 7b04 ldr.w r7, [sp], #4
  8300. 8003cce: 4770 bx lr
  8301. 08003cd0 <_kill>:
  8302. int _kill(int pid, int sig)
  8303. {
  8304. 8003cd0: b480 push {r7}
  8305. 8003cd2: b083 sub sp, #12
  8306. 8003cd4: af00 add r7, sp, #0
  8307. 8003cd6: 6078 str r0, [r7, #4]
  8308. 8003cd8: 6039 str r1, [r7, #0]
  8309. (void)pid;
  8310. (void)sig;
  8311. errno = EINVAL;
  8312. 8003cda: 4b05 ldr r3, [pc, #20] @ (8003cf0 <_kill+0x20>)
  8313. 8003cdc: 2216 movs r2, #22
  8314. 8003cde: 601a str r2, [r3, #0]
  8315. return -1;
  8316. 8003ce0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8317. }
  8318. 8003ce4: 4618 mov r0, r3
  8319. 8003ce6: 370c adds r7, #12
  8320. 8003ce8: 46bd mov sp, r7
  8321. 8003cea: f85d 7b04 ldr.w r7, [sp], #4
  8322. 8003cee: 4770 bx lr
  8323. 8003cf0: 2402b250 .word 0x2402b250
  8324. 08003cf4 <_exit>:
  8325. void _exit (int status)
  8326. {
  8327. 8003cf4: b580 push {r7, lr}
  8328. 8003cf6: b082 sub sp, #8
  8329. 8003cf8: af00 add r7, sp, #0
  8330. 8003cfa: 6078 str r0, [r7, #4]
  8331. _kill(status, -1);
  8332. 8003cfc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  8333. 8003d00: 6878 ldr r0, [r7, #4]
  8334. 8003d02: f7ff ffe5 bl 8003cd0 <_kill>
  8335. while (1) {} /* Make sure we hang here */
  8336. 8003d06: bf00 nop
  8337. 8003d08: e7fd b.n 8003d06 <_exit+0x12>
  8338. 08003d0a <_read>:
  8339. }
  8340. __attribute__((weak)) int _read(int file, char *ptr, int len)
  8341. {
  8342. 8003d0a: b580 push {r7, lr}
  8343. 8003d0c: b086 sub sp, #24
  8344. 8003d0e: af00 add r7, sp, #0
  8345. 8003d10: 60f8 str r0, [r7, #12]
  8346. 8003d12: 60b9 str r1, [r7, #8]
  8347. 8003d14: 607a str r2, [r7, #4]
  8348. (void)file;
  8349. int DataIdx;
  8350. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8351. 8003d16: 2300 movs r3, #0
  8352. 8003d18: 617b str r3, [r7, #20]
  8353. 8003d1a: e00a b.n 8003d32 <_read+0x28>
  8354. {
  8355. *ptr++ = __io_getchar();
  8356. 8003d1c: f3af 8000 nop.w
  8357. 8003d20: 4601 mov r1, r0
  8358. 8003d22: 68bb ldr r3, [r7, #8]
  8359. 8003d24: 1c5a adds r2, r3, #1
  8360. 8003d26: 60ba str r2, [r7, #8]
  8361. 8003d28: b2ca uxtb r2, r1
  8362. 8003d2a: 701a strb r2, [r3, #0]
  8363. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8364. 8003d2c: 697b ldr r3, [r7, #20]
  8365. 8003d2e: 3301 adds r3, #1
  8366. 8003d30: 617b str r3, [r7, #20]
  8367. 8003d32: 697a ldr r2, [r7, #20]
  8368. 8003d34: 687b ldr r3, [r7, #4]
  8369. 8003d36: 429a cmp r2, r3
  8370. 8003d38: dbf0 blt.n 8003d1c <_read+0x12>
  8371. }
  8372. return len;
  8373. 8003d3a: 687b ldr r3, [r7, #4]
  8374. }
  8375. 8003d3c: 4618 mov r0, r3
  8376. 8003d3e: 3718 adds r7, #24
  8377. 8003d40: 46bd mov sp, r7
  8378. 8003d42: bd80 pop {r7, pc}
  8379. 08003d44 <_write>:
  8380. __attribute__((weak)) int _write(int file, char *ptr, int len)
  8381. {
  8382. 8003d44: b580 push {r7, lr}
  8383. 8003d46: b086 sub sp, #24
  8384. 8003d48: af00 add r7, sp, #0
  8385. 8003d4a: 60f8 str r0, [r7, #12]
  8386. 8003d4c: 60b9 str r1, [r7, #8]
  8387. 8003d4e: 607a str r2, [r7, #4]
  8388. (void)file;
  8389. int DataIdx;
  8390. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8391. 8003d50: 2300 movs r3, #0
  8392. 8003d52: 617b str r3, [r7, #20]
  8393. 8003d54: e009 b.n 8003d6a <_write+0x26>
  8394. {
  8395. __io_putchar(*ptr++);
  8396. 8003d56: 68bb ldr r3, [r7, #8]
  8397. 8003d58: 1c5a adds r2, r3, #1
  8398. 8003d5a: 60ba str r2, [r7, #8]
  8399. 8003d5c: 781b ldrb r3, [r3, #0]
  8400. 8003d5e: 4618 mov r0, r3
  8401. 8003d60: f7fd ffaa bl 8001cb8 <__io_putchar>
  8402. for (DataIdx = 0; DataIdx < len; DataIdx++)
  8403. 8003d64: 697b ldr r3, [r7, #20]
  8404. 8003d66: 3301 adds r3, #1
  8405. 8003d68: 617b str r3, [r7, #20]
  8406. 8003d6a: 697a ldr r2, [r7, #20]
  8407. 8003d6c: 687b ldr r3, [r7, #4]
  8408. 8003d6e: 429a cmp r2, r3
  8409. 8003d70: dbf1 blt.n 8003d56 <_write+0x12>
  8410. // ITM_SendChar(*ptr++);
  8411. }
  8412. return len;
  8413. 8003d72: 687b ldr r3, [r7, #4]
  8414. }
  8415. 8003d74: 4618 mov r0, r3
  8416. 8003d76: 3718 adds r7, #24
  8417. 8003d78: 46bd mov sp, r7
  8418. 8003d7a: bd80 pop {r7, pc}
  8419. 08003d7c <_close>:
  8420. int _close(int file)
  8421. {
  8422. 8003d7c: b480 push {r7}
  8423. 8003d7e: b083 sub sp, #12
  8424. 8003d80: af00 add r7, sp, #0
  8425. 8003d82: 6078 str r0, [r7, #4]
  8426. (void)file;
  8427. return -1;
  8428. 8003d84: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8429. }
  8430. 8003d88: 4618 mov r0, r3
  8431. 8003d8a: 370c adds r7, #12
  8432. 8003d8c: 46bd mov sp, r7
  8433. 8003d8e: f85d 7b04 ldr.w r7, [sp], #4
  8434. 8003d92: 4770 bx lr
  8435. 08003d94 <_fstat>:
  8436. int _fstat(int file, struct stat *st)
  8437. {
  8438. 8003d94: b480 push {r7}
  8439. 8003d96: b083 sub sp, #12
  8440. 8003d98: af00 add r7, sp, #0
  8441. 8003d9a: 6078 str r0, [r7, #4]
  8442. 8003d9c: 6039 str r1, [r7, #0]
  8443. (void)file;
  8444. st->st_mode = S_IFCHR;
  8445. 8003d9e: 683b ldr r3, [r7, #0]
  8446. 8003da0: f44f 5200 mov.w r2, #8192 @ 0x2000
  8447. 8003da4: 605a str r2, [r3, #4]
  8448. return 0;
  8449. 8003da6: 2300 movs r3, #0
  8450. }
  8451. 8003da8: 4618 mov r0, r3
  8452. 8003daa: 370c adds r7, #12
  8453. 8003dac: 46bd mov sp, r7
  8454. 8003dae: f85d 7b04 ldr.w r7, [sp], #4
  8455. 8003db2: 4770 bx lr
  8456. 08003db4 <_isatty>:
  8457. int _isatty(int file)
  8458. {
  8459. 8003db4: b480 push {r7}
  8460. 8003db6: b083 sub sp, #12
  8461. 8003db8: af00 add r7, sp, #0
  8462. 8003dba: 6078 str r0, [r7, #4]
  8463. (void)file;
  8464. return 1;
  8465. 8003dbc: 2301 movs r3, #1
  8466. }
  8467. 8003dbe: 4618 mov r0, r3
  8468. 8003dc0: 370c adds r7, #12
  8469. 8003dc2: 46bd mov sp, r7
  8470. 8003dc4: f85d 7b04 ldr.w r7, [sp], #4
  8471. 8003dc8: 4770 bx lr
  8472. 08003dca <_lseek>:
  8473. int _lseek(int file, int ptr, int dir)
  8474. {
  8475. 8003dca: b480 push {r7}
  8476. 8003dcc: b085 sub sp, #20
  8477. 8003dce: af00 add r7, sp, #0
  8478. 8003dd0: 60f8 str r0, [r7, #12]
  8479. 8003dd2: 60b9 str r1, [r7, #8]
  8480. 8003dd4: 607a str r2, [r7, #4]
  8481. (void)file;
  8482. (void)ptr;
  8483. (void)dir;
  8484. return 0;
  8485. 8003dd6: 2300 movs r3, #0
  8486. }
  8487. 8003dd8: 4618 mov r0, r3
  8488. 8003dda: 3714 adds r7, #20
  8489. 8003ddc: 46bd mov sp, r7
  8490. 8003dde: f85d 7b04 ldr.w r7, [sp], #4
  8491. 8003de2: 4770 bx lr
  8492. 08003de4 <_sbrk>:
  8493. *
  8494. * @param incr Memory size
  8495. * @return Pointer to allocated memory
  8496. */
  8497. void *_sbrk(ptrdiff_t incr)
  8498. {
  8499. 8003de4: b480 push {r7}
  8500. 8003de6: b087 sub sp, #28
  8501. 8003de8: af00 add r7, sp, #0
  8502. 8003dea: 6078 str r0, [r7, #4]
  8503. extern uint8_t _end; /* Symbol defined in the linker script */
  8504. extern uint8_t _estack; /* Symbol defined in the linker script */
  8505. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  8506. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  8507. 8003dec: 4a14 ldr r2, [pc, #80] @ (8003e40 <_sbrk+0x5c>)
  8508. 8003dee: 4b15 ldr r3, [pc, #84] @ (8003e44 <_sbrk+0x60>)
  8509. 8003df0: 1ad3 subs r3, r2, r3
  8510. 8003df2: 617b str r3, [r7, #20]
  8511. const uint8_t *max_heap = (uint8_t *)stack_limit;
  8512. 8003df4: 697b ldr r3, [r7, #20]
  8513. 8003df6: 613b str r3, [r7, #16]
  8514. uint8_t *prev_heap_end;
  8515. /* Initialize heap end at first call */
  8516. if (NULL == __sbrk_heap_end)
  8517. 8003df8: 4b13 ldr r3, [pc, #76] @ (8003e48 <_sbrk+0x64>)
  8518. 8003dfa: 681b ldr r3, [r3, #0]
  8519. 8003dfc: 2b00 cmp r3, #0
  8520. 8003dfe: d102 bne.n 8003e06 <_sbrk+0x22>
  8521. {
  8522. __sbrk_heap_end = &_end;
  8523. 8003e00: 4b11 ldr r3, [pc, #68] @ (8003e48 <_sbrk+0x64>)
  8524. 8003e02: 4a12 ldr r2, [pc, #72] @ (8003e4c <_sbrk+0x68>)
  8525. 8003e04: 601a str r2, [r3, #0]
  8526. }
  8527. /* Protect heap from growing into the reserved MSP stack */
  8528. if (__sbrk_heap_end + incr > max_heap)
  8529. 8003e06: 4b10 ldr r3, [pc, #64] @ (8003e48 <_sbrk+0x64>)
  8530. 8003e08: 681a ldr r2, [r3, #0]
  8531. 8003e0a: 687b ldr r3, [r7, #4]
  8532. 8003e0c: 4413 add r3, r2
  8533. 8003e0e: 693a ldr r2, [r7, #16]
  8534. 8003e10: 429a cmp r2, r3
  8535. 8003e12: d205 bcs.n 8003e20 <_sbrk+0x3c>
  8536. {
  8537. errno = ENOMEM;
  8538. 8003e14: 4b0e ldr r3, [pc, #56] @ (8003e50 <_sbrk+0x6c>)
  8539. 8003e16: 220c movs r2, #12
  8540. 8003e18: 601a str r2, [r3, #0]
  8541. return (void *)-1;
  8542. 8003e1a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  8543. 8003e1e: e009 b.n 8003e34 <_sbrk+0x50>
  8544. }
  8545. prev_heap_end = __sbrk_heap_end;
  8546. 8003e20: 4b09 ldr r3, [pc, #36] @ (8003e48 <_sbrk+0x64>)
  8547. 8003e22: 681b ldr r3, [r3, #0]
  8548. 8003e24: 60fb str r3, [r7, #12]
  8549. __sbrk_heap_end += incr;
  8550. 8003e26: 4b08 ldr r3, [pc, #32] @ (8003e48 <_sbrk+0x64>)
  8551. 8003e28: 681a ldr r2, [r3, #0]
  8552. 8003e2a: 687b ldr r3, [r7, #4]
  8553. 8003e2c: 4413 add r3, r2
  8554. 8003e2e: 4a06 ldr r2, [pc, #24] @ (8003e48 <_sbrk+0x64>)
  8555. 8003e30: 6013 str r3, [r2, #0]
  8556. return (void *)prev_heap_end;
  8557. 8003e32: 68fb ldr r3, [r7, #12]
  8558. }
  8559. 8003e34: 4618 mov r0, r3
  8560. 8003e36: 371c adds r7, #28
  8561. 8003e38: 46bd mov sp, r7
  8562. 8003e3a: f85d 7b04 ldr.w r7, [sp], #4
  8563. 8003e3e: 4770 bx lr
  8564. 8003e40: 24060000 .word 0x24060000
  8565. 8003e44: 00000400 .word 0x00000400
  8566. 8003e48: 24000fe8 .word 0x24000fe8
  8567. 8003e4c: 2402b258 .word 0x2402b258
  8568. 8003e50: 2402b250 .word 0x2402b250
  8569. 08003e54 <SystemInit>:
  8570. * configuration.
  8571. * @param None
  8572. * @retval None
  8573. */
  8574. void SystemInit (void)
  8575. {
  8576. 8003e54: b480 push {r7}
  8577. 8003e56: af00 add r7, sp, #0
  8578. __IO uint32_t tmpreg;
  8579. #endif /* DATA_IN_D2_SRAM */
  8580. /* FPU settings ------------------------------------------------------------*/
  8581. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  8582. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  8583. 8003e58: 4b37 ldr r3, [pc, #220] @ (8003f38 <SystemInit+0xe4>)
  8584. 8003e5a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  8585. 8003e5e: 4a36 ldr r2, [pc, #216] @ (8003f38 <SystemInit+0xe4>)
  8586. 8003e60: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  8587. 8003e64: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  8588. #endif
  8589. /* Reset the RCC clock configuration to the default reset state ------------*/
  8590. /* Increasing the CPU frequency */
  8591. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8592. 8003e68: 4b34 ldr r3, [pc, #208] @ (8003f3c <SystemInit+0xe8>)
  8593. 8003e6a: 681b ldr r3, [r3, #0]
  8594. 8003e6c: f003 030f and.w r3, r3, #15
  8595. 8003e70: 2b06 cmp r3, #6
  8596. 8003e72: d807 bhi.n 8003e84 <SystemInit+0x30>
  8597. {
  8598. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8599. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8600. 8003e74: 4b31 ldr r3, [pc, #196] @ (8003f3c <SystemInit+0xe8>)
  8601. 8003e76: 681b ldr r3, [r3, #0]
  8602. 8003e78: f023 030f bic.w r3, r3, #15
  8603. 8003e7c: 4a2f ldr r2, [pc, #188] @ (8003f3c <SystemInit+0xe8>)
  8604. 8003e7e: f043 0307 orr.w r3, r3, #7
  8605. 8003e82: 6013 str r3, [r2, #0]
  8606. }
  8607. /* Set HSION bit */
  8608. RCC->CR |= RCC_CR_HSION;
  8609. 8003e84: 4b2e ldr r3, [pc, #184] @ (8003f40 <SystemInit+0xec>)
  8610. 8003e86: 681b ldr r3, [r3, #0]
  8611. 8003e88: 4a2d ldr r2, [pc, #180] @ (8003f40 <SystemInit+0xec>)
  8612. 8003e8a: f043 0301 orr.w r3, r3, #1
  8613. 8003e8e: 6013 str r3, [r2, #0]
  8614. /* Reset CFGR register */
  8615. RCC->CFGR = 0x00000000;
  8616. 8003e90: 4b2b ldr r3, [pc, #172] @ (8003f40 <SystemInit+0xec>)
  8617. 8003e92: 2200 movs r2, #0
  8618. 8003e94: 611a str r2, [r3, #16]
  8619. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  8620. RCC->CR &= 0xEAF6ED7FU;
  8621. 8003e96: 4b2a ldr r3, [pc, #168] @ (8003f40 <SystemInit+0xec>)
  8622. 8003e98: 681a ldr r2, [r3, #0]
  8623. 8003e9a: 4929 ldr r1, [pc, #164] @ (8003f40 <SystemInit+0xec>)
  8624. 8003e9c: 4b29 ldr r3, [pc, #164] @ (8003f44 <SystemInit+0xf0>)
  8625. 8003e9e: 4013 ands r3, r2
  8626. 8003ea0: 600b str r3, [r1, #0]
  8627. /* Decreasing the number of wait states because of lower CPU frequency */
  8628. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  8629. 8003ea2: 4b26 ldr r3, [pc, #152] @ (8003f3c <SystemInit+0xe8>)
  8630. 8003ea4: 681b ldr r3, [r3, #0]
  8631. 8003ea6: f003 0308 and.w r3, r3, #8
  8632. 8003eaa: 2b00 cmp r3, #0
  8633. 8003eac: d007 beq.n 8003ebe <SystemInit+0x6a>
  8634. {
  8635. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  8636. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  8637. 8003eae: 4b23 ldr r3, [pc, #140] @ (8003f3c <SystemInit+0xe8>)
  8638. 8003eb0: 681b ldr r3, [r3, #0]
  8639. 8003eb2: f023 030f bic.w r3, r3, #15
  8640. 8003eb6: 4a21 ldr r2, [pc, #132] @ (8003f3c <SystemInit+0xe8>)
  8641. 8003eb8: f043 0307 orr.w r3, r3, #7
  8642. 8003ebc: 6013 str r3, [r2, #0]
  8643. }
  8644. #if defined(D3_SRAM_BASE)
  8645. /* Reset D1CFGR register */
  8646. RCC->D1CFGR = 0x00000000;
  8647. 8003ebe: 4b20 ldr r3, [pc, #128] @ (8003f40 <SystemInit+0xec>)
  8648. 8003ec0: 2200 movs r2, #0
  8649. 8003ec2: 619a str r2, [r3, #24]
  8650. /* Reset D2CFGR register */
  8651. RCC->D2CFGR = 0x00000000;
  8652. 8003ec4: 4b1e ldr r3, [pc, #120] @ (8003f40 <SystemInit+0xec>)
  8653. 8003ec6: 2200 movs r2, #0
  8654. 8003ec8: 61da str r2, [r3, #28]
  8655. /* Reset D3CFGR register */
  8656. RCC->D3CFGR = 0x00000000;
  8657. 8003eca: 4b1d ldr r3, [pc, #116] @ (8003f40 <SystemInit+0xec>)
  8658. 8003ecc: 2200 movs r2, #0
  8659. 8003ece: 621a str r2, [r3, #32]
  8660. /* Reset SRDCFGR register */
  8661. RCC->SRDCFGR = 0x00000000;
  8662. #endif
  8663. /* Reset PLLCKSELR register */
  8664. RCC->PLLCKSELR = 0x02020200;
  8665. 8003ed0: 4b1b ldr r3, [pc, #108] @ (8003f40 <SystemInit+0xec>)
  8666. 8003ed2: 4a1d ldr r2, [pc, #116] @ (8003f48 <SystemInit+0xf4>)
  8667. 8003ed4: 629a str r2, [r3, #40] @ 0x28
  8668. /* Reset PLLCFGR register */
  8669. RCC->PLLCFGR = 0x01FF0000;
  8670. 8003ed6: 4b1a ldr r3, [pc, #104] @ (8003f40 <SystemInit+0xec>)
  8671. 8003ed8: 4a1c ldr r2, [pc, #112] @ (8003f4c <SystemInit+0xf8>)
  8672. 8003eda: 62da str r2, [r3, #44] @ 0x2c
  8673. /* Reset PLL1DIVR register */
  8674. RCC->PLL1DIVR = 0x01010280;
  8675. 8003edc: 4b18 ldr r3, [pc, #96] @ (8003f40 <SystemInit+0xec>)
  8676. 8003ede: 4a1c ldr r2, [pc, #112] @ (8003f50 <SystemInit+0xfc>)
  8677. 8003ee0: 631a str r2, [r3, #48] @ 0x30
  8678. /* Reset PLL1FRACR register */
  8679. RCC->PLL1FRACR = 0x00000000;
  8680. 8003ee2: 4b17 ldr r3, [pc, #92] @ (8003f40 <SystemInit+0xec>)
  8681. 8003ee4: 2200 movs r2, #0
  8682. 8003ee6: 635a str r2, [r3, #52] @ 0x34
  8683. /* Reset PLL2DIVR register */
  8684. RCC->PLL2DIVR = 0x01010280;
  8685. 8003ee8: 4b15 ldr r3, [pc, #84] @ (8003f40 <SystemInit+0xec>)
  8686. 8003eea: 4a19 ldr r2, [pc, #100] @ (8003f50 <SystemInit+0xfc>)
  8687. 8003eec: 639a str r2, [r3, #56] @ 0x38
  8688. /* Reset PLL2FRACR register */
  8689. RCC->PLL2FRACR = 0x00000000;
  8690. 8003eee: 4b14 ldr r3, [pc, #80] @ (8003f40 <SystemInit+0xec>)
  8691. 8003ef0: 2200 movs r2, #0
  8692. 8003ef2: 63da str r2, [r3, #60] @ 0x3c
  8693. /* Reset PLL3DIVR register */
  8694. RCC->PLL3DIVR = 0x01010280;
  8695. 8003ef4: 4b12 ldr r3, [pc, #72] @ (8003f40 <SystemInit+0xec>)
  8696. 8003ef6: 4a16 ldr r2, [pc, #88] @ (8003f50 <SystemInit+0xfc>)
  8697. 8003ef8: 641a str r2, [r3, #64] @ 0x40
  8698. /* Reset PLL3FRACR register */
  8699. RCC->PLL3FRACR = 0x00000000;
  8700. 8003efa: 4b11 ldr r3, [pc, #68] @ (8003f40 <SystemInit+0xec>)
  8701. 8003efc: 2200 movs r2, #0
  8702. 8003efe: 645a str r2, [r3, #68] @ 0x44
  8703. /* Reset HSEBYP bit */
  8704. RCC->CR &= 0xFFFBFFFFU;
  8705. 8003f00: 4b0f ldr r3, [pc, #60] @ (8003f40 <SystemInit+0xec>)
  8706. 8003f02: 681b ldr r3, [r3, #0]
  8707. 8003f04: 4a0e ldr r2, [pc, #56] @ (8003f40 <SystemInit+0xec>)
  8708. 8003f06: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  8709. 8003f0a: 6013 str r3, [r2, #0]
  8710. /* Disable all interrupts */
  8711. RCC->CIER = 0x00000000;
  8712. 8003f0c: 4b0c ldr r3, [pc, #48] @ (8003f40 <SystemInit+0xec>)
  8713. 8003f0e: 2200 movs r2, #0
  8714. 8003f10: 661a str r2, [r3, #96] @ 0x60
  8715. #if (STM32H7_DEV_ID == 0x450UL)
  8716. /* dual core CM7 or single core line */
  8717. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  8718. 8003f12: 4b10 ldr r3, [pc, #64] @ (8003f54 <SystemInit+0x100>)
  8719. 8003f14: 681a ldr r2, [r3, #0]
  8720. 8003f16: 4b10 ldr r3, [pc, #64] @ (8003f58 <SystemInit+0x104>)
  8721. 8003f18: 4013 ands r3, r2
  8722. 8003f1a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  8723. 8003f1e: d202 bcs.n 8003f26 <SystemInit+0xd2>
  8724. {
  8725. /* if stm32h7 revY*/
  8726. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  8727. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  8728. 8003f20: 4b0e ldr r3, [pc, #56] @ (8003f5c <SystemInit+0x108>)
  8729. 8003f22: 2201 movs r2, #1
  8730. 8003f24: 601a str r2, [r3, #0]
  8731. /*
  8732. * Disable the FMC bank1 (enabled after reset).
  8733. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  8734. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  8735. */
  8736. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  8737. 8003f26: 4b0e ldr r3, [pc, #56] @ (8003f60 <SystemInit+0x10c>)
  8738. 8003f28: f243 02d2 movw r2, #12498 @ 0x30d2
  8739. 8003f2c: 601a str r2, [r3, #0]
  8740. #if defined(USER_VECT_TAB_ADDRESS)
  8741. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  8742. #endif /* USER_VECT_TAB_ADDRESS */
  8743. #endif /*DUAL_CORE && CORE_CM4*/
  8744. }
  8745. 8003f2e: bf00 nop
  8746. 8003f30: 46bd mov sp, r7
  8747. 8003f32: f85d 7b04 ldr.w r7, [sp], #4
  8748. 8003f36: 4770 bx lr
  8749. 8003f38: e000ed00 .word 0xe000ed00
  8750. 8003f3c: 52002000 .word 0x52002000
  8751. 8003f40: 58024400 .word 0x58024400
  8752. 8003f44: eaf6ed7f .word 0xeaf6ed7f
  8753. 8003f48: 02020200 .word 0x02020200
  8754. 8003f4c: 01ff0000 .word 0x01ff0000
  8755. 8003f50: 01010280 .word 0x01010280
  8756. 8003f54: 5c001000 .word 0x5c001000
  8757. 8003f58: ffff0000 .word 0xffff0000
  8758. 8003f5c: 51008108 .word 0x51008108
  8759. 8003f60: 52004000 .word 0x52004000
  8760. 08003f64 <UartTasksInit>:
  8761. osMutexId_t resMeasurementsMutex;
  8762. osMutexId_t sensorsInfoMutex;
  8763. extern RNG_HandleTypeDef hrng;
  8764. void UartTasksInit (void) {
  8765. 8003f64: b580 push {r7, lr}
  8766. 8003f66: af00 add r7, sp, #0
  8767. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  8768. 8003f68: 4b4e ldr r3, [pc, #312] @ (80040a4 <UartTasksInit+0x140>)
  8769. 8003f6a: 4a4f ldr r2, [pc, #316] @ (80040a8 <UartTasksInit+0x144>)
  8770. 8003f6c: 601a str r2, [r3, #0]
  8771. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  8772. 8003f6e: 4b4d ldr r3, [pc, #308] @ (80040a4 <UartTasksInit+0x140>)
  8773. 8003f70: f44f 7280 mov.w r2, #256 @ 0x100
  8774. 8003f74: 809a strh r2, [r3, #4]
  8775. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  8776. 8003f76: 4b4b ldr r3, [pc, #300] @ (80040a4 <UartTasksInit+0x140>)
  8777. 8003f78: 4a4c ldr r2, [pc, #304] @ (80040ac <UartTasksInit+0x148>)
  8778. 8003f7a: 609a str r2, [r3, #8]
  8779. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  8780. 8003f7c: 4b49 ldr r3, [pc, #292] @ (80040a4 <UartTasksInit+0x140>)
  8781. 8003f7e: f44f 7280 mov.w r2, #256 @ 0x100
  8782. 8003f82: 809a strh r2, [r3, #4]
  8783. uart1TaskData.frameData = uart1TaskFrameData;
  8784. 8003f84: 4b47 ldr r3, [pc, #284] @ (80040a4 <UartTasksInit+0x140>)
  8785. 8003f86: 4a4a ldr r2, [pc, #296] @ (80040b0 <UartTasksInit+0x14c>)
  8786. 8003f88: 611a str r2, [r3, #16]
  8787. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  8788. 8003f8a: 4b46 ldr r3, [pc, #280] @ (80040a4 <UartTasksInit+0x140>)
  8789. 8003f8c: f44f 7280 mov.w r2, #256 @ 0x100
  8790. 8003f90: 829a strh r2, [r3, #20]
  8791. uart1TaskData.huart = &huart1;
  8792. 8003f92: 4b44 ldr r3, [pc, #272] @ (80040a4 <UartTasksInit+0x140>)
  8793. 8003f94: 4a47 ldr r2, [pc, #284] @ (80040b4 <UartTasksInit+0x150>)
  8794. 8003f96: 631a str r2, [r3, #48] @ 0x30
  8795. uart1TaskData.uartNumber = 1;
  8796. 8003f98: 4b42 ldr r3, [pc, #264] @ (80040a4 <UartTasksInit+0x140>)
  8797. 8003f9a: 2201 movs r2, #1
  8798. 8003f9c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8799. uart2TaskData.uartRxBuffer = uart2RxBuffer;
  8800. 8003fa0: 4b45 ldr r3, [pc, #276] @ (80040b8 <UartTasksInit+0x154>)
  8801. 8003fa2: 4a46 ldr r2, [pc, #280] @ (80040bc <UartTasksInit+0x158>)
  8802. 8003fa4: 601a str r2, [r3, #0]
  8803. uart2TaskData.uartRxBufferLen = UART2_RX_BUFF_SIZE;
  8804. 8003fa6: 4b44 ldr r3, [pc, #272] @ (80040b8 <UartTasksInit+0x154>)
  8805. 8003fa8: f44f 7280 mov.w r2, #256 @ 0x100
  8806. 8003fac: 809a strh r2, [r3, #4]
  8807. uart2TaskData.uartTxBuffer = uart2TxBuffer;
  8808. 8003fae: 4b42 ldr r3, [pc, #264] @ (80040b8 <UartTasksInit+0x154>)
  8809. 8003fb0: 4a43 ldr r2, [pc, #268] @ (80040c0 <UartTasksInit+0x15c>)
  8810. 8003fb2: 609a str r2, [r3, #8]
  8811. uart2TaskData.uartRxBufferLen = UART2_TX_BUFF_SIZE;
  8812. 8003fb4: 4b40 ldr r3, [pc, #256] @ (80040b8 <UartTasksInit+0x154>)
  8813. 8003fb6: f44f 7280 mov.w r2, #256 @ 0x100
  8814. 8003fba: 809a strh r2, [r3, #4]
  8815. uart2TaskData.frameData = uart2TaskFrameData;
  8816. 8003fbc: 4b3e ldr r3, [pc, #248] @ (80040b8 <UartTasksInit+0x154>)
  8817. 8003fbe: 4a41 ldr r2, [pc, #260] @ (80040c4 <UartTasksInit+0x160>)
  8818. 8003fc0: 611a str r2, [r3, #16]
  8819. uart2TaskData.frameDataLen = UART2_RX_BUFF_SIZE;
  8820. 8003fc2: 4b3d ldr r3, [pc, #244] @ (80040b8 <UartTasksInit+0x154>)
  8821. 8003fc4: f44f 7280 mov.w r2, #256 @ 0x100
  8822. 8003fc8: 829a strh r2, [r3, #20]
  8823. uart2TaskData.huart = &huart2;
  8824. 8003fca: 4b3b ldr r3, [pc, #236] @ (80040b8 <UartTasksInit+0x154>)
  8825. 8003fcc: 4a3e ldr r2, [pc, #248] @ (80040c8 <UartTasksInit+0x164>)
  8826. 8003fce: 631a str r2, [r3, #48] @ 0x30
  8827. uart2TaskData.uartNumber = 2;
  8828. 8003fd0: 4b39 ldr r3, [pc, #228] @ (80040b8 <UartTasksInit+0x154>)
  8829. 8003fd2: 2202 movs r2, #2
  8830. 8003fd4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8831. uart3TaskData.uartRxBuffer = uart3RxBuffer;
  8832. 8003fd8: 4b3c ldr r3, [pc, #240] @ (80040cc <UartTasksInit+0x168>)
  8833. 8003fda: 4a3d ldr r2, [pc, #244] @ (80040d0 <UartTasksInit+0x16c>)
  8834. 8003fdc: 601a str r2, [r3, #0]
  8835. uart3TaskData.uartRxBufferLen = UART3_RX_BUFF_SIZE;
  8836. 8003fde: 4b3b ldr r3, [pc, #236] @ (80040cc <UartTasksInit+0x168>)
  8837. 8003fe0: f44f 7280 mov.w r2, #256 @ 0x100
  8838. 8003fe4: 809a strh r2, [r3, #4]
  8839. uart3TaskData.uartTxBuffer = uart3TxBuffer;
  8840. 8003fe6: 4b39 ldr r3, [pc, #228] @ (80040cc <UartTasksInit+0x168>)
  8841. 8003fe8: 4a3a ldr r2, [pc, #232] @ (80040d4 <UartTasksInit+0x170>)
  8842. 8003fea: 609a str r2, [r3, #8]
  8843. uart3TaskData.uartRxBufferLen = UART3_TX_BUFF_SIZE;
  8844. 8003fec: 4b37 ldr r3, [pc, #220] @ (80040cc <UartTasksInit+0x168>)
  8845. 8003fee: f44f 7280 mov.w r2, #256 @ 0x100
  8846. 8003ff2: 809a strh r2, [r3, #4]
  8847. uart3TaskData.frameData = uart3TaskFrameData;
  8848. 8003ff4: 4b35 ldr r3, [pc, #212] @ (80040cc <UartTasksInit+0x168>)
  8849. 8003ff6: 4a38 ldr r2, [pc, #224] @ (80040d8 <UartTasksInit+0x174>)
  8850. 8003ff8: 611a str r2, [r3, #16]
  8851. uart3TaskData.frameDataLen = UART3_RX_BUFF_SIZE;
  8852. 8003ffa: 4b34 ldr r3, [pc, #208] @ (80040cc <UartTasksInit+0x168>)
  8853. 8003ffc: f44f 7280 mov.w r2, #256 @ 0x100
  8854. 8004000: 829a strh r2, [r3, #20]
  8855. uart3TaskData.huart = &huart3;
  8856. 8004002: 4b32 ldr r3, [pc, #200] @ (80040cc <UartTasksInit+0x168>)
  8857. 8004004: 4a35 ldr r2, [pc, #212] @ (80040dc <UartTasksInit+0x178>)
  8858. 8004006: 631a str r2, [r3, #48] @ 0x30
  8859. uart3TaskData.uartNumber = 3;
  8860. 8004008: 4b30 ldr r3, [pc, #192] @ (80040cc <UartTasksInit+0x168>)
  8861. 800400a: 2203 movs r2, #3
  8862. 800400c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8863. uart6TaskData.uartRxBuffer = uart6RxBuffer;
  8864. 8004010: 4b33 ldr r3, [pc, #204] @ (80040e0 <UartTasksInit+0x17c>)
  8865. 8004012: 4a34 ldr r2, [pc, #208] @ (80040e4 <UartTasksInit+0x180>)
  8866. 8004014: 601a str r2, [r3, #0]
  8867. uart6TaskData.uartRxBufferLen = UART6_RX_BUFF_SIZE;
  8868. 8004016: 4b32 ldr r3, [pc, #200] @ (80040e0 <UartTasksInit+0x17c>)
  8869. 8004018: f44f 7280 mov.w r2, #256 @ 0x100
  8870. 800401c: 809a strh r2, [r3, #4]
  8871. uart6TaskData.uartTxBuffer = uart6TxBuffer;
  8872. 800401e: 4b30 ldr r3, [pc, #192] @ (80040e0 <UartTasksInit+0x17c>)
  8873. 8004020: 4a31 ldr r2, [pc, #196] @ (80040e8 <UartTasksInit+0x184>)
  8874. 8004022: 609a str r2, [r3, #8]
  8875. uart6TaskData.uartRxBufferLen = UART6_TX_BUFF_SIZE;
  8876. 8004024: 4b2e ldr r3, [pc, #184] @ (80040e0 <UartTasksInit+0x17c>)
  8877. 8004026: f44f 7280 mov.w r2, #256 @ 0x100
  8878. 800402a: 809a strh r2, [r3, #4]
  8879. uart6TaskData.frameData = uart6TaskFrameData;
  8880. 800402c: 4b2c ldr r3, [pc, #176] @ (80040e0 <UartTasksInit+0x17c>)
  8881. 800402e: 4a2f ldr r2, [pc, #188] @ (80040ec <UartTasksInit+0x188>)
  8882. 8004030: 611a str r2, [r3, #16]
  8883. uart6TaskData.frameDataLen = UART6_RX_BUFF_SIZE;
  8884. 8004032: 4b2b ldr r3, [pc, #172] @ (80040e0 <UartTasksInit+0x17c>)
  8885. 8004034: f44f 7280 mov.w r2, #256 @ 0x100
  8886. 8004038: 829a strh r2, [r3, #20]
  8887. uart6TaskData.huart = &huart6;
  8888. 800403a: 4b29 ldr r3, [pc, #164] @ (80040e0 <UartTasksInit+0x17c>)
  8889. 800403c: 4a2c ldr r2, [pc, #176] @ (80040f0 <UartTasksInit+0x18c>)
  8890. 800403e: 631a str r2, [r3, #48] @ 0x30
  8891. uart6TaskData.uartNumber = 6;
  8892. 8004040: 4b27 ldr r3, [pc, #156] @ (80040e0 <UartTasksInit+0x17c>)
  8893. 8004042: 2206 movs r2, #6
  8894. 8004044: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8895. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  8896. 8004048: 4b2a ldr r3, [pc, #168] @ (80040f4 <UartTasksInit+0x190>)
  8897. 800404a: 4a2b ldr r2, [pc, #172] @ (80040f8 <UartTasksInit+0x194>)
  8898. 800404c: 601a str r2, [r3, #0]
  8899. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  8900. 800404e: 4b29 ldr r3, [pc, #164] @ (80040f4 <UartTasksInit+0x190>)
  8901. 8004050: f44f 7280 mov.w r2, #256 @ 0x100
  8902. 8004054: 809a strh r2, [r3, #4]
  8903. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  8904. 8004056: 4b27 ldr r3, [pc, #156] @ (80040f4 <UartTasksInit+0x190>)
  8905. 8004058: 4a28 ldr r2, [pc, #160] @ (80040fc <UartTasksInit+0x198>)
  8906. 800405a: 609a str r2, [r3, #8]
  8907. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  8908. 800405c: 4b25 ldr r3, [pc, #148] @ (80040f4 <UartTasksInit+0x190>)
  8909. 800405e: f44f 7280 mov.w r2, #256 @ 0x100
  8910. 8004062: 809a strh r2, [r3, #4]
  8911. uart8TaskData.frameData = uart8TaskFrameData;
  8912. 8004064: 4b23 ldr r3, [pc, #140] @ (80040f4 <UartTasksInit+0x190>)
  8913. 8004066: 4a26 ldr r2, [pc, #152] @ (8004100 <UartTasksInit+0x19c>)
  8914. 8004068: 611a str r2, [r3, #16]
  8915. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  8916. 800406a: 4b22 ldr r3, [pc, #136] @ (80040f4 <UartTasksInit+0x190>)
  8917. 800406c: f44f 7280 mov.w r2, #256 @ 0x100
  8918. 8004070: 829a strh r2, [r3, #20]
  8919. uart8TaskData.huart = &huart8;
  8920. 8004072: 4b20 ldr r3, [pc, #128] @ (80040f4 <UartTasksInit+0x190>)
  8921. 8004074: 4a23 ldr r2, [pc, #140] @ (8004104 <UartTasksInit+0x1a0>)
  8922. 8004076: 631a str r2, [r3, #48] @ 0x30
  8923. uart8TaskData.uartNumber = 8;
  8924. 8004078: 4b1e ldr r3, [pc, #120] @ (80040f4 <UartTasksInit+0x190>)
  8925. 800407a: 2208 movs r2, #8
  8926. 800407c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  8927. UartTaskCreate (&uart1TaskData);
  8928. 8004080: 4808 ldr r0, [pc, #32] @ (80040a4 <UartTasksInit+0x140>)
  8929. 8004082: f000 f841 bl 8004108 <UartTaskCreate>
  8930. UartTaskCreate (&uart2TaskData);
  8931. 8004086: 480c ldr r0, [pc, #48] @ (80040b8 <UartTasksInit+0x154>)
  8932. 8004088: f000 f83e bl 8004108 <UartTaskCreate>
  8933. UartTaskCreate (&uart3TaskData);
  8934. 800408c: 480f ldr r0, [pc, #60] @ (80040cc <UartTasksInit+0x168>)
  8935. 800408e: f000 f83b bl 8004108 <UartTaskCreate>
  8936. UartTaskCreate (&uart6TaskData);
  8937. 8004092: 4813 ldr r0, [pc, #76] @ (80040e0 <UartTasksInit+0x17c>)
  8938. 8004094: f000 f838 bl 8004108 <UartTaskCreate>
  8939. UartTaskCreate (&uart8TaskData);
  8940. 8004098: 4816 ldr r0, [pc, #88] @ (80040f4 <UartTasksInit+0x190>)
  8941. 800409a: f000 f835 bl 8004108 <UartTaskCreate>
  8942. }
  8943. 800409e: bf00 nop
  8944. 80040a0: bd80 pop {r7, pc}
  8945. 80040a2: bf00 nop
  8946. 80040a4: 24001eec .word 0x24001eec
  8947. 80040a8: 24000fec .word 0x24000fec
  8948. 80040ac: 240010ec .word 0x240010ec
  8949. 80040b0: 240011ec .word 0x240011ec
  8950. 80040b4: 24000314 .word 0x24000314
  8951. 80040b8: 24001f94 .word 0x24001f94
  8952. 80040bc: 240012ec .word 0x240012ec
  8953. 80040c0: 240013ec .word 0x240013ec
  8954. 80040c4: 240014ec .word 0x240014ec
  8955. 80040c8: 240003a8 .word 0x240003a8
  8956. 80040cc: 24001f24 .word 0x24001f24
  8957. 80040d0: 240015ec .word 0x240015ec
  8958. 80040d4: 240016ec .word 0x240016ec
  8959. 80040d8: 240017ec .word 0x240017ec
  8960. 80040dc: 2400043c .word 0x2400043c
  8961. 80040e0: 24001f5c .word 0x24001f5c
  8962. 80040e4: 240018ec .word 0x240018ec
  8963. 80040e8: 240019ec .word 0x240019ec
  8964. 80040ec: 24001aec .word 0x24001aec
  8965. 80040f0: 240004d0 .word 0x240004d0
  8966. 80040f4: 24001fcc .word 0x24001fcc
  8967. 80040f8: 24001bec .word 0x24001bec
  8968. 80040fc: 24001cec .word 0x24001cec
  8969. 8004100: 24001dec .word 0x24001dec
  8970. 8004104: 24000280 .word 0x24000280
  8971. 08004108 <UartTaskCreate>:
  8972. void UartTaskCreate (UartTaskData* uartTaskData) {
  8973. 8004108: b580 push {r7, lr}
  8974. 800410a: b09a sub sp, #104 @ 0x68
  8975. 800410c: af00 add r7, sp, #0
  8976. 800410e: 6078 str r0, [r7, #4]
  8977. osThreadAttr_t osThreadAttrRxUart = { 0 };
  8978. 8004110: f107 0344 add.w r3, r7, #68 @ 0x44
  8979. 8004114: 2224 movs r2, #36 @ 0x24
  8980. 8004116: 2100 movs r1, #0
  8981. 8004118: 4618 mov r0, r3
  8982. 800411a: f026 f9e1 bl 802a4e0 <memset>
  8983. osThreadAttr_t osThreadAttrTxUart = { 0 };
  8984. 800411e: f107 0320 add.w r3, r7, #32
  8985. 8004122: 2224 movs r2, #36 @ 0x24
  8986. 8004124: 2100 movs r1, #0
  8987. 8004126: 4618 mov r0, r3
  8988. 8004128: f026 f9da bl 802a4e0 <memset>
  8989. uartTaskData->processRxDataMsgBuffer = xMessageBufferCreate (INPUT_DATA_BUFF_SIZE);
  8990. 800412c: 2201 movs r2, #1
  8991. 800412e: 2100 movs r1, #0
  8992. 8004130: f44f 7080 mov.w r0, #256 @ 0x100
  8993. 8004134: f00e fd4a bl 8012bcc <xStreamBufferGenericCreate>
  8994. 8004138: 4602 mov r2, r0
  8995. 800413a: 687b ldr r3, [r7, #4]
  8996. 800413c: 625a str r2, [r3, #36] @ 0x24
  8997. uartTaskData->processDataCb = NULL;
  8998. 800413e: 687b ldr r3, [r7, #4]
  8999. 8004140: 2200 movs r2, #0
  9000. 8004142: 629a str r2, [r3, #40] @ 0x28
  9001. // osThreadAttrRxUart.name = "os_thread_uart1_rx";
  9002. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  9003. 8004144: f44f 6380 mov.w r3, #1024 @ 0x400
  9004. 8004148: 65bb str r3, [r7, #88] @ 0x58
  9005. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  9006. 800414a: 2328 movs r3, #40 @ 0x28
  9007. 800414c: 65fb str r3, [r7, #92] @ 0x5c
  9008. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  9009. 800414e: f107 0344 add.w r3, r7, #68 @ 0x44
  9010. 8004152: 461a mov r2, r3
  9011. 8004154: 6879 ldr r1, [r7, #4]
  9012. 8004156: 4816 ldr r0, [pc, #88] @ (80041b0 <UartTaskCreate+0xa8>)
  9013. 8004158: f00c fe1b bl 8010d92 <osThreadNew>
  9014. 800415c: 4602 mov r2, r0
  9015. 800415e: 687b ldr r3, [r7, #4]
  9016. 8004160: 619a str r2, [r3, #24]
  9017. osMessageQueueAttr_t uartTxMsgQueueAttr = { 0 };
  9018. 8004162: f107 0308 add.w r3, r7, #8
  9019. 8004166: 2200 movs r2, #0
  9020. 8004168: 601a str r2, [r3, #0]
  9021. 800416a: 605a str r2, [r3, #4]
  9022. 800416c: 609a str r2, [r3, #8]
  9023. 800416e: 60da str r2, [r3, #12]
  9024. 8004170: 611a str r2, [r3, #16]
  9025. 8004172: 615a str r2, [r3, #20]
  9026. // uartTxMsgQueueAttr.name = "uart1TxMsgQueue";
  9027. uartTaskData->sendCmdToSlaveQueue = osMessageQueueNew (16, sizeof (InterProcessData), &uartTxMsgQueueAttr);
  9028. 8004174: f107 0308 add.w r3, r7, #8
  9029. 8004178: 461a mov r2, r3
  9030. 800417a: 210c movs r1, #12
  9031. 800417c: 2010 movs r0, #16
  9032. 800417e: f00d f9a5 bl 80114cc <osMessageQueueNew>
  9033. 8004182: 4602 mov r2, r0
  9034. 8004184: 687b ldr r3, [r7, #4]
  9035. 8004186: 62da str r2, [r3, #44] @ 0x2c
  9036. // osThreadAttrTxUart.name = "os_thread_uart1_tx";
  9037. osThreadAttrTxUart.stack_size = configMINIMAL_STACK_SIZE * 4;
  9038. 8004188: f44f 6300 mov.w r3, #2048 @ 0x800
  9039. 800418c: 637b str r3, [r7, #52] @ 0x34
  9040. osThreadAttrTxUart.priority = (osPriority_t)osPriorityNormal;
  9041. 800418e: 2318 movs r3, #24
  9042. 8004190: 63bb str r3, [r7, #56] @ 0x38
  9043. uartTaskData->uartTransmitTaskHandle = osThreadNew (UartTxTask, uartTaskData, &osThreadAttrTxUart);
  9044. 8004192: f107 0320 add.w r3, r7, #32
  9045. 8004196: 461a mov r2, r3
  9046. 8004198: 6879 ldr r1, [r7, #4]
  9047. 800419a: 4806 ldr r0, [pc, #24] @ (80041b4 <UartTaskCreate+0xac>)
  9048. 800419c: f00c fdf9 bl 8010d92 <osThreadNew>
  9049. 80041a0: 4602 mov r2, r0
  9050. 80041a2: 687b ldr r3, [r7, #4]
  9051. 80041a4: 61da str r2, [r3, #28]
  9052. }
  9053. 80041a6: bf00 nop
  9054. 80041a8: 3768 adds r7, #104 @ 0x68
  9055. 80041aa: 46bd mov sp, r7
  9056. 80041ac: bd80 pop {r7, pc}
  9057. 80041ae: bf00 nop
  9058. 80041b0: 0800432d .word 0x0800432d
  9059. 80041b4: 08004919 .word 0x08004919
  9060. 080041b8 <HAL_UART_RxCpltCallback>:
  9061. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  9062. 80041b8: b480 push {r7}
  9063. 80041ba: b083 sub sp, #12
  9064. 80041bc: af00 add r7, sp, #0
  9065. 80041be: 6078 str r0, [r7, #4]
  9066. // osSemaphoreRelease(uart8RxSemaphore);
  9067. }
  9068. 80041c0: bf00 nop
  9069. 80041c2: 370c adds r7, #12
  9070. 80041c4: 46bd mov sp, r7
  9071. 80041c6: f85d 7b04 ldr.w r7, [sp], #4
  9072. 80041ca: 4770 bx lr
  9073. 080041cc <HAL_UARTEx_RxEventCallback>:
  9074. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  9075. 80041cc: b580 push {r7, lr}
  9076. 80041ce: b082 sub sp, #8
  9077. 80041d0: af00 add r7, sp, #0
  9078. 80041d2: 6078 str r0, [r7, #4]
  9079. 80041d4: 460b mov r3, r1
  9080. 80041d6: 807b strh r3, [r7, #2]
  9081. if (huart->Instance == USART1) {
  9082. 80041d8: 687b ldr r3, [r7, #4]
  9083. 80041da: 681b ldr r3, [r3, #0]
  9084. 80041dc: 4a1e ldr r2, [pc, #120] @ (8004258 <HAL_UARTEx_RxEventCallback+0x8c>)
  9085. 80041de: 4293 cmp r3, r2
  9086. 80041e0: d106 bne.n 80041f0 <HAL_UARTEx_RxEventCallback+0x24>
  9087. HandleUartRxCallback (&uart1TaskData, huart, Size);
  9088. 80041e2: 887b ldrh r3, [r7, #2]
  9089. 80041e4: 461a mov r2, r3
  9090. 80041e6: 6879 ldr r1, [r7, #4]
  9091. 80041e8: 481c ldr r0, [pc, #112] @ (800425c <HAL_UARTEx_RxEventCallback+0x90>)
  9092. 80041ea: f000 f853 bl 8004294 <HandleUartRxCallback>
  9093. } else if (huart->Instance == USART6) {
  9094. HandleUartRxCallback (&uart6TaskData, huart, Size);
  9095. } else if (huart->Instance == UART8) {
  9096. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9097. }
  9098. }
  9099. 80041ee: e02e b.n 800424e <HAL_UARTEx_RxEventCallback+0x82>
  9100. } else if (huart->Instance == USART2) {
  9101. 80041f0: 687b ldr r3, [r7, #4]
  9102. 80041f2: 681b ldr r3, [r3, #0]
  9103. 80041f4: 4a1a ldr r2, [pc, #104] @ (8004260 <HAL_UARTEx_RxEventCallback+0x94>)
  9104. 80041f6: 4293 cmp r3, r2
  9105. 80041f8: d106 bne.n 8004208 <HAL_UARTEx_RxEventCallback+0x3c>
  9106. HandleUartRxCallback (&uart2TaskData, huart, Size);
  9107. 80041fa: 887b ldrh r3, [r7, #2]
  9108. 80041fc: 461a mov r2, r3
  9109. 80041fe: 6879 ldr r1, [r7, #4]
  9110. 8004200: 4818 ldr r0, [pc, #96] @ (8004264 <HAL_UARTEx_RxEventCallback+0x98>)
  9111. 8004202: f000 f847 bl 8004294 <HandleUartRxCallback>
  9112. }
  9113. 8004206: e022 b.n 800424e <HAL_UARTEx_RxEventCallback+0x82>
  9114. } else if (huart->Instance == USART3) {
  9115. 8004208: 687b ldr r3, [r7, #4]
  9116. 800420a: 681b ldr r3, [r3, #0]
  9117. 800420c: 4a16 ldr r2, [pc, #88] @ (8004268 <HAL_UARTEx_RxEventCallback+0x9c>)
  9118. 800420e: 4293 cmp r3, r2
  9119. 8004210: d106 bne.n 8004220 <HAL_UARTEx_RxEventCallback+0x54>
  9120. HandleUartRxCallback (&uart3TaskData, huart, Size);
  9121. 8004212: 887b ldrh r3, [r7, #2]
  9122. 8004214: 461a mov r2, r3
  9123. 8004216: 6879 ldr r1, [r7, #4]
  9124. 8004218: 4814 ldr r0, [pc, #80] @ (800426c <HAL_UARTEx_RxEventCallback+0xa0>)
  9125. 800421a: f000 f83b bl 8004294 <HandleUartRxCallback>
  9126. }
  9127. 800421e: e016 b.n 800424e <HAL_UARTEx_RxEventCallback+0x82>
  9128. } else if (huart->Instance == USART6) {
  9129. 8004220: 687b ldr r3, [r7, #4]
  9130. 8004222: 681b ldr r3, [r3, #0]
  9131. 8004224: 4a12 ldr r2, [pc, #72] @ (8004270 <HAL_UARTEx_RxEventCallback+0xa4>)
  9132. 8004226: 4293 cmp r3, r2
  9133. 8004228: d106 bne.n 8004238 <HAL_UARTEx_RxEventCallback+0x6c>
  9134. HandleUartRxCallback (&uart6TaskData, huart, Size);
  9135. 800422a: 887b ldrh r3, [r7, #2]
  9136. 800422c: 461a mov r2, r3
  9137. 800422e: 6879 ldr r1, [r7, #4]
  9138. 8004230: 4810 ldr r0, [pc, #64] @ (8004274 <HAL_UARTEx_RxEventCallback+0xa8>)
  9139. 8004232: f000 f82f bl 8004294 <HandleUartRxCallback>
  9140. }
  9141. 8004236: e00a b.n 800424e <HAL_UARTEx_RxEventCallback+0x82>
  9142. } else if (huart->Instance == UART8) {
  9143. 8004238: 687b ldr r3, [r7, #4]
  9144. 800423a: 681b ldr r3, [r3, #0]
  9145. 800423c: 4a0e ldr r2, [pc, #56] @ (8004278 <HAL_UARTEx_RxEventCallback+0xac>)
  9146. 800423e: 4293 cmp r3, r2
  9147. 8004240: d105 bne.n 800424e <HAL_UARTEx_RxEventCallback+0x82>
  9148. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9149. 8004242: 887b ldrh r3, [r7, #2]
  9150. 8004244: 461a mov r2, r3
  9151. 8004246: 6879 ldr r1, [r7, #4]
  9152. 8004248: 480c ldr r0, [pc, #48] @ (800427c <HAL_UARTEx_RxEventCallback+0xb0>)
  9153. 800424a: f000 f823 bl 8004294 <HandleUartRxCallback>
  9154. }
  9155. 800424e: bf00 nop
  9156. 8004250: 3708 adds r7, #8
  9157. 8004252: 46bd mov sp, r7
  9158. 8004254: bd80 pop {r7, pc}
  9159. 8004256: bf00 nop
  9160. 8004258: 40011000 .word 0x40011000
  9161. 800425c: 24001eec .word 0x24001eec
  9162. 8004260: 40004400 .word 0x40004400
  9163. 8004264: 24001f94 .word 0x24001f94
  9164. 8004268: 40004800 .word 0x40004800
  9165. 800426c: 24001f24 .word 0x24001f24
  9166. 8004270: 40011400 .word 0x40011400
  9167. 8004274: 24001f5c .word 0x24001f5c
  9168. 8004278: 40007c00 .word 0x40007c00
  9169. 800427c: 24001fcc .word 0x24001fcc
  9170. 08004280 <HAL_UART_TxCpltCallback>:
  9171. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  9172. 8004280: b480 push {r7}
  9173. 8004282: b083 sub sp, #12
  9174. 8004284: af00 add r7, sp, #0
  9175. 8004286: 6078 str r0, [r7, #4]
  9176. if (huart->Instance == UART8) {
  9177. }
  9178. }
  9179. 8004288: bf00 nop
  9180. 800428a: 370c adds r7, #12
  9181. 800428c: 46bd mov sp, r7
  9182. 800428e: f85d 7b04 ldr.w r7, [sp], #4
  9183. 8004292: 4770 bx lr
  9184. 08004294 <HandleUartRxCallback>:
  9185. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  9186. 8004294: b580 push {r7, lr}
  9187. 8004296: b088 sub sp, #32
  9188. 8004298: af02 add r7, sp, #8
  9189. 800429a: 60f8 str r0, [r7, #12]
  9190. 800429c: 60b9 str r1, [r7, #8]
  9191. 800429e: 4613 mov r3, r2
  9192. 80042a0: 80fb strh r3, [r7, #6]
  9193. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  9194. 80042a2: 2300 movs r3, #0
  9195. 80042a4: 617b str r3, [r7, #20]
  9196. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9197. 80042a6: 68fb ldr r3, [r7, #12]
  9198. 80042a8: 6a1b ldr r3, [r3, #32]
  9199. 80042aa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9200. 80042ae: 4618 mov r0, r3
  9201. 80042b0: f00c ff40 bl 8011134 <osMutexAcquire>
  9202. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  9203. 80042b4: 68fb ldr r3, [r7, #12]
  9204. 80042b6: 691b ldr r3, [r3, #16]
  9205. 80042b8: 68fa ldr r2, [r7, #12]
  9206. 80042ba: 8ad2 ldrh r2, [r2, #22]
  9207. 80042bc: 1898 adds r0, r3, r2
  9208. 80042be: 68fb ldr r3, [r7, #12]
  9209. 80042c0: 681b ldr r3, [r3, #0]
  9210. 80042c2: 88fa ldrh r2, [r7, #6]
  9211. 80042c4: 4619 mov r1, r3
  9212. 80042c6: f026 fa02 bl 802a6ce <memcpy>
  9213. uartTaskData->frameBytesCount += Size;
  9214. 80042ca: 68fb ldr r3, [r7, #12]
  9215. 80042cc: 8ada ldrh r2, [r3, #22]
  9216. 80042ce: 88fb ldrh r3, [r7, #6]
  9217. 80042d0: 4413 add r3, r2
  9218. 80042d2: b29a uxth r2, r3
  9219. 80042d4: 68fb ldr r3, [r7, #12]
  9220. 80042d6: 82da strh r2, [r3, #22]
  9221. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9222. 80042d8: 68fb ldr r3, [r7, #12]
  9223. 80042da: 6a1b ldr r3, [r3, #32]
  9224. 80042dc: 4618 mov r0, r3
  9225. 80042de: f00c ff74 bl 80111ca <osMutexRelease>
  9226. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  9227. 80042e2: 68fb ldr r3, [r7, #12]
  9228. 80042e4: 6998 ldr r0, [r3, #24]
  9229. 80042e6: 88f9 ldrh r1, [r7, #6]
  9230. 80042e8: f107 0314 add.w r3, r7, #20
  9231. 80042ec: 9300 str r3, [sp, #0]
  9232. 80042ee: 2300 movs r3, #0
  9233. 80042f0: 2203 movs r2, #3
  9234. 80042f2: f010 f963 bl 80145bc <xTaskGenericNotifyFromISR>
  9235. // HAL_UARTEx_ReceiveToIdle_DMA(huart, uart8RxBuffer, UART8_RX_BUFF_SIZE);
  9236. // __HAL_DMA_DISABLE_IT(&hdma_uart8_rx, DMA_IT_HT);
  9237. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9238. 80042f6: 68fb ldr r3, [r7, #12]
  9239. 80042f8: 6b18 ldr r0, [r3, #48] @ 0x30
  9240. 80042fa: 68fb ldr r3, [r7, #12]
  9241. 80042fc: 6819 ldr r1, [r3, #0]
  9242. 80042fe: 68fb ldr r3, [r7, #12]
  9243. 8004300: 889b ldrh r3, [r3, #4]
  9244. 8004302: 461a mov r2, r3
  9245. 8004304: f00b fd51 bl 800fdaa <HAL_UARTEx_ReceiveToIdle_IT>
  9246. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  9247. 8004308: 697b ldr r3, [r7, #20]
  9248. 800430a: 2b00 cmp r3, #0
  9249. 800430c: d007 beq.n 800431e <HandleUartRxCallback+0x8a>
  9250. 800430e: 4b06 ldr r3, [pc, #24] @ (8004328 <HandleUartRxCallback+0x94>)
  9251. 8004310: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  9252. 8004314: 601a str r2, [r3, #0]
  9253. 8004316: f3bf 8f4f dsb sy
  9254. 800431a: f3bf 8f6f isb sy
  9255. }
  9256. 800431e: bf00 nop
  9257. 8004320: 3718 adds r7, #24
  9258. 8004322: 46bd mov sp, r7
  9259. 8004324: bd80 pop {r7, pc}
  9260. 8004326: bf00 nop
  9261. 8004328: e000ed04 .word 0xe000ed04
  9262. 0800432c <UartRxTask>:
  9263. void UartRxTask (void* argument) {
  9264. 800432c: b580 push {r7, lr}
  9265. 800432e: b0d2 sub sp, #328 @ 0x148
  9266. 8004330: af02 add r7, sp, #8
  9267. 8004332: f507 73a0 add.w r3, r7, #320 @ 0x140
  9268. 8004336: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9269. 800433a: 6018 str r0, [r3, #0]
  9270. UartTaskData* uartTaskData = (UartTaskData*)argument;
  9271. 800433c: f507 73a0 add.w r3, r7, #320 @ 0x140
  9272. 8004340: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9273. 8004344: 681b ldr r3, [r3, #0]
  9274. 8004346: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  9275. SerialProtocolFrameData spFrameData = { 0 };
  9276. 800434a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9277. 800434e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9278. 8004352: 4618 mov r0, r3
  9279. 8004354: f44f 7386 mov.w r3, #268 @ 0x10c
  9280. 8004358: 461a mov r2, r3
  9281. 800435a: 2100 movs r1, #0
  9282. 800435c: f026 f8c0 bl 802a4e0 <memset>
  9283. uint32_t bytesRec = 0;
  9284. 8004360: f507 73a0 add.w r3, r7, #320 @ 0x140
  9285. 8004364: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9286. 8004368: 2200 movs r2, #0
  9287. 800436a: 601a str r2, [r3, #0]
  9288. uint32_t crc = 0;
  9289. 800436c: 2300 movs r3, #0
  9290. 800436e: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9291. uint16_t frameCommandRaw = 0x0000;
  9292. 8004372: 2300 movs r3, #0
  9293. 8004374: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9294. uint16_t frameBytesCount = 0;
  9295. 8004378: 2300 movs r3, #0
  9296. 800437a: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9297. uint16_t frameCrc = 0;
  9298. 800437e: 2300 movs r3, #0
  9299. 8004380: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9300. uint16_t frameTotalLength = 0;
  9301. 8004384: 2300 movs r3, #0
  9302. 8004386: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9303. uint16_t dataToSend = 0;
  9304. 800438a: 2300 movs r3, #0
  9305. 800438c: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9306. portBASE_TYPE crcPass = pdFAIL;
  9307. 8004390: 2300 movs r3, #0
  9308. 8004392: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9309. portBASE_TYPE proceed = pdFALSE;
  9310. 8004396: 2300 movs r3, #0
  9311. 8004398: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9312. portBASE_TYPE frameTimeout = pdFAIL;
  9313. 800439c: 2300 movs r3, #0
  9314. 800439e: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9315. enum SerialReceiverStates receverState = srWaitForHeader;
  9316. 80043a2: 2300 movs r3, #0
  9317. 80043a4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9318. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  9319. 80043a8: 2000 movs r0, #0
  9320. 80043aa: f00c fe3d bl 8011028 <osMutexNew>
  9321. 80043ae: 4602 mov r2, r0
  9322. 80043b0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9323. 80043b4: 621a str r2, [r3, #32]
  9324. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9325. 80043b6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9326. 80043ba: 6b18 ldr r0, [r3, #48] @ 0x30
  9327. 80043bc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9328. 80043c0: 6819 ldr r1, [r3, #0]
  9329. 80043c2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9330. 80043c6: 889b ldrh r3, [r3, #4]
  9331. 80043c8: 461a mov r2, r3
  9332. 80043ca: f00b fcee bl 800fdaa <HAL_UARTEx_ReceiveToIdle_IT>
  9333. // HAL_UARTEx_ReceiveToIdle_DMA(&huart8, uart8RxBuffer, 32);
  9334. while (pdTRUE) {
  9335. // HAL_UART_Receive_IT(&huart8, uart8RxBuffer, 1);
  9336. // if(osSemaphoreAcquire(uart8RxSemaphore, pdMS_TO_TICKS(1000)) !=
  9337. // osOK) if(xTaskNotifyWait(0, 0, &bytesRec, portMAX_DELAY) == pdTrue)
  9338. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9339. 80043ce: f107 020c add.w r2, r7, #12
  9340. 80043d2: f44f 63fa mov.w r3, #2000 @ 0x7d0
  9341. 80043d6: 2100 movs r1, #0
  9342. 80043d8: 2000 movs r0, #0
  9343. 80043da: f00f ffcd bl 8014378 <xTaskNotifyWait>
  9344. 80043de: 4603 mov r3, r0
  9345. 80043e0: 2b00 cmp r3, #0
  9346. 80043e2: bf0c ite eq
  9347. 80043e4: 2301 moveq r3, #1
  9348. 80043e6: 2300 movne r3, #0
  9349. 80043e8: b2db uxtb r3, r3
  9350. 80043ea: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9351. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9352. 80043ee: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9353. 80043f2: 6a1b ldr r3, [r3, #32]
  9354. 80043f4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9355. 80043f8: 4618 mov r0, r3
  9356. 80043fa: f00c fe9b bl 8011134 <osMutexAcquire>
  9357. frameBytesCount = uartTaskData->frameBytesCount;
  9358. 80043fe: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9359. 8004402: 8adb ldrh r3, [r3, #22]
  9360. 8004404: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9361. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9362. 8004408: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9363. 800440c: 6a1b ldr r3, [r3, #32]
  9364. 800440e: 4618 mov r0, r3
  9365. 8004410: f00c fedb bl 80111ca <osMutexRelease>
  9366. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  9367. 8004414: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9368. 8004418: 2b01 cmp r3, #1
  9369. 800441a: d10a bne.n 8004432 <UartRxTask+0x106>
  9370. 800441c: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9371. 8004420: 2b00 cmp r3, #0
  9372. 8004422: d006 beq.n 8004432 <UartRxTask+0x106>
  9373. receverState = srFail;
  9374. 8004424: 2304 movs r3, #4
  9375. 8004426: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9376. proceed = pdTRUE;
  9377. 800442a: 2301 movs r3, #1
  9378. 800442c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9379. 8004430: e029 b.n 8004486 <UartRxTask+0x15a>
  9380. } else {
  9381. if (frameTimeout == pdFALSE) {
  9382. 8004432: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9383. 8004436: 2b00 cmp r3, #0
  9384. 8004438: d111 bne.n 800445e <UartRxTask+0x132>
  9385. proceed = pdTRUE;
  9386. 800443a: 2301 movs r3, #1
  9387. 800443c: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9388. #if UART_TASK_LOGS
  9389. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  9390. 8004440: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9391. 8004444: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9392. 8004448: 4619 mov r1, r3
  9393. 800444a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9394. 800444e: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9395. 8004452: 681b ldr r3, [r3, #0]
  9396. 8004454: 461a mov r2, r3
  9397. 8004456: 48c1 ldr r0, [pc, #772] @ (800475c <UartRxTask+0x430>)
  9398. 8004458: f025 feb0 bl 802a1bc <iprintf>
  9399. 800445c: e22f b.n 80048be <UartRxTask+0x592>
  9400. #endif
  9401. } else {
  9402. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  9403. 800445e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9404. 8004462: 6b1b ldr r3, [r3, #48] @ 0x30
  9405. 8004464: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  9406. 8004468: 2b20 cmp r3, #32
  9407. 800446a: f040 8228 bne.w 80048be <UartRxTask+0x592>
  9408. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9409. 800446e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9410. 8004472: 6b18 ldr r0, [r3, #48] @ 0x30
  9411. 8004474: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9412. 8004478: 6819 ldr r1, [r3, #0]
  9413. 800447a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9414. 800447e: 889b ldrh r3, [r3, #4]
  9415. 8004480: 461a mov r2, r3
  9416. 8004482: f00b fc92 bl 800fdaa <HAL_UARTEx_ReceiveToIdle_IT>
  9417. }
  9418. }
  9419. }
  9420. while (proceed) {
  9421. 8004486: e21a b.n 80048be <UartRxTask+0x592>
  9422. switch (receverState) {
  9423. 8004488: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9424. 800448c: 2b04 cmp r3, #4
  9425. 800448e: f200 81f1 bhi.w 8004874 <UartRxTask+0x548>
  9426. 8004492: a201 add r2, pc, #4 @ (adr r2, 8004498 <UartRxTask+0x16c>)
  9427. 8004494: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9428. 8004498: 080044ad .word 0x080044ad
  9429. 800449c: 0800460f .word 0x0800460f
  9430. 80044a0: 080045f3 .word 0x080045f3
  9431. 80044a4: 080046af .word 0x080046af
  9432. 80044a8: 08004769 .word 0x08004769
  9433. case srWaitForHeader:
  9434. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9435. 80044ac: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9436. 80044b0: 6a1b ldr r3, [r3, #32]
  9437. 80044b2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9438. 80044b6: 4618 mov r0, r3
  9439. 80044b8: f00c fe3c bl 8011134 <osMutexAcquire>
  9440. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  9441. 80044bc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9442. 80044c0: 691b ldr r3, [r3, #16]
  9443. 80044c2: 781b ldrb r3, [r3, #0]
  9444. 80044c4: 2baa cmp r3, #170 @ 0xaa
  9445. 80044c6: f040 8082 bne.w 80045ce <UartRxTask+0x2a2>
  9446. if (frameBytesCount > FRAME_ID_LENGTH) {
  9447. 80044ca: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9448. 80044ce: 2b02 cmp r3, #2
  9449. 80044d0: d914 bls.n 80044fc <UartRxTask+0x1d0>
  9450. spFrameData.frameHeader.frameId =
  9451. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  9452. 80044d2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9453. 80044d6: 691b ldr r3, [r3, #16]
  9454. 80044d8: 3302 adds r3, #2
  9455. 80044da: 781b ldrb r3, [r3, #0]
  9456. 80044dc: 021b lsls r3, r3, #8
  9457. 80044de: b21a sxth r2, r3
  9458. 80044e0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9459. 80044e4: 691b ldr r3, [r3, #16]
  9460. 80044e6: 3301 adds r3, #1
  9461. 80044e8: 781b ldrb r3, [r3, #0]
  9462. 80044ea: b21b sxth r3, r3
  9463. 80044ec: 4313 orrs r3, r2
  9464. 80044ee: b21b sxth r3, r3
  9465. 80044f0: b29a uxth r2, r3
  9466. spFrameData.frameHeader.frameId =
  9467. 80044f2: f507 73a0 add.w r3, r7, #320 @ 0x140
  9468. 80044f6: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9469. 80044fa: 801a strh r2, [r3, #0]
  9470. }
  9471. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  9472. 80044fc: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9473. 8004500: 2b04 cmp r3, #4
  9474. 8004502: d923 bls.n 800454c <UartRxTask+0x220>
  9475. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  9476. 8004504: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9477. 8004508: 691b ldr r3, [r3, #16]
  9478. 800450a: 3304 adds r3, #4
  9479. 800450c: 781b ldrb r3, [r3, #0]
  9480. 800450e: 021b lsls r3, r3, #8
  9481. 8004510: b21a sxth r2, r3
  9482. 8004512: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9483. 8004516: 691b ldr r3, [r3, #16]
  9484. 8004518: 3303 adds r3, #3
  9485. 800451a: 781b ldrb r3, [r3, #0]
  9486. 800451c: b21b sxth r3, r3
  9487. 800451e: 4313 orrs r3, r2
  9488. 8004520: b21b sxth r3, r3
  9489. 8004522: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9490. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  9491. 8004526: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  9492. 800452a: b2da uxtb r2, r3
  9493. 800452c: f507 73a0 add.w r3, r7, #320 @ 0x140
  9494. 8004530: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9495. 8004534: 709a strb r2, [r3, #2]
  9496. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  9497. 8004536: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  9498. 800453a: 13db asrs r3, r3, #15
  9499. 800453c: b21b sxth r3, r3
  9500. 800453e: f003 0201 and.w r2, r3, #1
  9501. 8004542: f507 73a0 add.w r3, r7, #320 @ 0x140
  9502. 8004546: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9503. 800454a: 609a str r2, [r3, #8]
  9504. }
  9505. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  9506. 800454c: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9507. 8004550: 2b05 cmp r3, #5
  9508. 8004552: d913 bls.n 800457c <UartRxTask+0x250>
  9509. 8004554: f507 73a0 add.w r3, r7, #320 @ 0x140
  9510. 8004558: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9511. 800455c: 789b ldrb r3, [r3, #2]
  9512. 800455e: f403 4300 and.w r3, r3, #32768 @ 0x8000
  9513. 8004562: 2b00 cmp r3, #0
  9514. 8004564: d00a beq.n 800457c <UartRxTask+0x250>
  9515. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  9516. 8004566: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9517. 800456a: 691b ldr r3, [r3, #16]
  9518. 800456c: 3305 adds r3, #5
  9519. 800456e: 781b ldrb r3, [r3, #0]
  9520. 8004570: b25a sxtb r2, r3
  9521. 8004572: f507 73a0 add.w r3, r7, #320 @ 0x140
  9522. 8004576: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9523. 800457a: 70da strb r2, [r3, #3]
  9524. }
  9525. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  9526. 800457c: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9527. 8004580: 2b07 cmp r3, #7
  9528. 8004582: d920 bls.n 80045c6 <UartRxTask+0x29a>
  9529. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  9530. 8004584: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9531. 8004588: 691b ldr r3, [r3, #16]
  9532. 800458a: 3306 adds r3, #6
  9533. 800458c: 781b ldrb r3, [r3, #0]
  9534. 800458e: 021b lsls r3, r3, #8
  9535. 8004590: b21a sxth r2, r3
  9536. 8004592: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9537. 8004596: 691b ldr r3, [r3, #16]
  9538. 8004598: 3305 adds r3, #5
  9539. 800459a: 781b ldrb r3, [r3, #0]
  9540. 800459c: b21b sxth r3, r3
  9541. 800459e: 4313 orrs r3, r2
  9542. 80045a0: b21b sxth r3, r3
  9543. 80045a2: b29a uxth r2, r3
  9544. 80045a4: f507 73a0 add.w r3, r7, #320 @ 0x140
  9545. 80045a8: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9546. 80045ac: 809a strh r2, [r3, #4]
  9547. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  9548. 80045ae: f507 73a0 add.w r3, r7, #320 @ 0x140
  9549. 80045b2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9550. 80045b6: 889b ldrh r3, [r3, #4]
  9551. 80045b8: 330a adds r3, #10
  9552. 80045ba: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9553. receverState = srRecieveData;
  9554. 80045be: 2302 movs r3, #2
  9555. 80045c0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9556. 80045c4: e00e b.n 80045e4 <UartRxTask+0x2b8>
  9557. } else {
  9558. proceed = pdFALSE;
  9559. 80045c6: 2300 movs r3, #0
  9560. 80045c8: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9561. 80045cc: e00a b.n 80045e4 <UartRxTask+0x2b8>
  9562. }
  9563. } else {
  9564. if (frameBytesCount > 0) {
  9565. 80045ce: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9566. 80045d2: 2b00 cmp r3, #0
  9567. 80045d4: d003 beq.n 80045de <UartRxTask+0x2b2>
  9568. receverState = srFail;
  9569. 80045d6: 2304 movs r3, #4
  9570. 80045d8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9571. 80045dc: e002 b.n 80045e4 <UartRxTask+0x2b8>
  9572. } else {
  9573. proceed = pdFALSE;
  9574. 80045de: 2300 movs r3, #0
  9575. 80045e0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9576. }
  9577. }
  9578. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9579. 80045e4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9580. 80045e8: 6a1b ldr r3, [r3, #32]
  9581. 80045ea: 4618 mov r0, r3
  9582. 80045ec: f00c fded bl 80111ca <osMutexRelease>
  9583. break;
  9584. 80045f0: e165 b.n 80048be <UartRxTask+0x592>
  9585. case srRecieveData:
  9586. if (frameBytesCount >= frameTotalLength) {
  9587. 80045f2: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  9588. 80045f6: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9589. 80045fa: 429a cmp r2, r3
  9590. 80045fc: d303 bcc.n 8004606 <UartRxTask+0x2da>
  9591. receverState = srCheckCrc;
  9592. 80045fe: 2301 movs r3, #1
  9593. 8004600: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9594. } else {
  9595. proceed = pdFALSE;
  9596. }
  9597. break;
  9598. 8004604: e15b b.n 80048be <UartRxTask+0x592>
  9599. proceed = pdFALSE;
  9600. 8004606: 2300 movs r3, #0
  9601. 8004608: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9602. break;
  9603. 800460c: e157 b.n 80048be <UartRxTask+0x592>
  9604. case srCheckCrc:
  9605. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9606. 800460e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9607. 8004612: 6a1b ldr r3, [r3, #32]
  9608. 8004614: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9609. 8004618: 4618 mov r0, r3
  9610. 800461a: f00c fd8b bl 8011134 <osMutexAcquire>
  9611. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  9612. 800461e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9613. 8004622: 691a ldr r2, [r3, #16]
  9614. 8004624: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9615. 8004628: 3b01 subs r3, #1
  9616. 800462a: 4413 add r3, r2
  9617. 800462c: 781b ldrb r3, [r3, #0]
  9618. 800462e: 021b lsls r3, r3, #8
  9619. 8004630: b21a sxth r2, r3
  9620. 8004632: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9621. 8004636: 6919 ldr r1, [r3, #16]
  9622. 8004638: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9623. 800463c: 3b02 subs r3, #2
  9624. 800463e: 440b add r3, r1
  9625. 8004640: 781b ldrb r3, [r3, #0]
  9626. 8004642: b21b sxth r3, r3
  9627. 8004644: 4313 orrs r3, r2
  9628. 8004646: b21b sxth r3, r3
  9629. 8004648: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9630. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  9631. 800464c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9632. 8004650: 6919 ldr r1, [r3, #16]
  9633. 8004652: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  9634. 8004656: 3b02 subs r3, #2
  9635. 8004658: 461a mov r2, r3
  9636. 800465a: 4841 ldr r0, [pc, #260] @ (8004760 <UartRxTask+0x434>)
  9637. 800465c: f000 fffc bl 8005658 <HAL_CRC_Calculate>
  9638. 8004660: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  9639. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9640. 8004664: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9641. 8004668: 6a1b ldr r3, [r3, #32]
  9642. 800466a: 4618 mov r0, r3
  9643. 800466c: f00c fdad bl 80111ca <osMutexRelease>
  9644. crcPass = frameCrc == crc;
  9645. 8004670: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  9646. 8004674: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  9647. 8004678: 429a cmp r2, r3
  9648. 800467a: bf0c ite eq
  9649. 800467c: 2301 moveq r3, #1
  9650. 800467e: 2300 movne r3, #0
  9651. 8004680: b2db uxtb r3, r3
  9652. 8004682: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9653. if (crcPass) {
  9654. 8004686: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9655. 800468a: 2b00 cmp r3, #0
  9656. 800468c: d00b beq.n 80046a6 <UartRxTask+0x37a>
  9657. #if UART_TASK_LOGS
  9658. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  9659. 800468e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9660. 8004692: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9661. 8004696: 4619 mov r1, r3
  9662. 8004698: 4832 ldr r0, [pc, #200] @ (8004764 <UartRxTask+0x438>)
  9663. 800469a: f025 fd8f bl 802a1bc <iprintf>
  9664. #endif
  9665. receverState = srExecuteCmd;
  9666. 800469e: 2303 movs r3, #3
  9667. 80046a0: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9668. } else {
  9669. receverState = srFail;
  9670. }
  9671. break;
  9672. 80046a4: e10b b.n 80048be <UartRxTask+0x592>
  9673. receverState = srFail;
  9674. 80046a6: 2304 movs r3, #4
  9675. 80046a8: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9676. break;
  9677. 80046ac: e107 b.n 80048be <UartRxTask+0x592>
  9678. case srExecuteCmd:
  9679. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  9680. 80046ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9681. 80046b2: 6a9b ldr r3, [r3, #40] @ 0x28
  9682. 80046b4: 2b00 cmp r3, #0
  9683. 80046b6: d104 bne.n 80046c2 <UartRxTask+0x396>
  9684. 80046b8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9685. 80046bc: 6a5b ldr r3, [r3, #36] @ 0x24
  9686. 80046be: 2b00 cmp r3, #0
  9687. 80046c0: d01e beq.n 8004700 <UartRxTask+0x3d4>
  9688. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9689. 80046c2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9690. 80046c6: 6a1b ldr r3, [r3, #32]
  9691. 80046c8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9692. 80046cc: 4618 mov r0, r3
  9693. 80046ce: f00c fd31 bl 8011134 <osMutexAcquire>
  9694. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  9695. 80046d2: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9696. 80046d6: 691b ldr r3, [r3, #16]
  9697. 80046d8: f103 0108 add.w r1, r3, #8
  9698. 80046dc: f507 73a0 add.w r3, r7, #320 @ 0x140
  9699. 80046e0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9700. 80046e4: 889b ldrh r3, [r3, #4]
  9701. 80046e6: 461a mov r2, r3
  9702. 80046e8: f107 0310 add.w r3, r7, #16
  9703. 80046ec: 330c adds r3, #12
  9704. 80046ee: 4618 mov r0, r3
  9705. 80046f0: f025 ffed bl 802a6ce <memcpy>
  9706. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9707. 80046f4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9708. 80046f8: 6a1b ldr r3, [r3, #32]
  9709. 80046fa: 4618 mov r0, r3
  9710. 80046fc: f00c fd65 bl 80111ca <osMutexRelease>
  9711. }
  9712. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  9713. 8004700: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9714. 8004704: 6a5b ldr r3, [r3, #36] @ 0x24
  9715. 8004706: 2b00 cmp r3, #0
  9716. 8004708: d015 beq.n 8004736 <UartRxTask+0x40a>
  9717. if(xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE)
  9718. 800470a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9719. 800470e: 6a58 ldr r0, [r3, #36] @ 0x24
  9720. 8004710: f507 73a0 add.w r3, r7, #320 @ 0x140
  9721. 8004714: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9722. 8004718: 889b ldrh r3, [r3, #4]
  9723. 800471a: f103 020c add.w r2, r3, #12
  9724. 800471e: f107 0110 add.w r1, r7, #16
  9725. 8004722: 23c8 movs r3, #200 @ 0xc8
  9726. 8004724: f00e fae4 bl 8012cf0 <xStreamBufferSend>
  9727. 8004728: 4603 mov r3, r0
  9728. 800472a: 2b00 cmp r3, #0
  9729. 800472c: d103 bne.n 8004736 <UartRxTask+0x40a>
  9730. {
  9731. receverState = srFail;
  9732. 800472e: 2304 movs r3, #4
  9733. 8004730: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9734. break;
  9735. 8004734: e0c3 b.n 80048be <UartRxTask+0x592>
  9736. }
  9737. }
  9738. if (uartTaskData->processDataCb != NULL) {
  9739. 8004736: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9740. 800473a: 6a9b ldr r3, [r3, #40] @ 0x28
  9741. 800473c: 2b00 cmp r3, #0
  9742. 800473e: d008 beq.n 8004752 <UartRxTask+0x426>
  9743. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  9744. 8004740: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9745. 8004744: 6a9b ldr r3, [r3, #40] @ 0x28
  9746. 8004746: f107 0210 add.w r2, r7, #16
  9747. 800474a: 4611 mov r1, r2
  9748. 800474c: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  9749. 8004750: 4798 blx r3
  9750. }
  9751. receverState = srFinish;
  9752. 8004752: 2305 movs r3, #5
  9753. 8004754: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9754. break;
  9755. 8004758: e0b1 b.n 80048be <UartRxTask+0x592>
  9756. 800475a: bf00 nop
  9757. 800475c: 0802d178 .word 0x0802d178
  9758. 8004760: 24000248 .word 0x24000248
  9759. 8004764: 0802d198 .word 0x0802d198
  9760. case srFail:
  9761. dataToSend = 0;
  9762. 8004768: 2300 movs r3, #0
  9763. 800476a: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9764. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  9765. 800476e: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9766. 8004772: 2b01 cmp r3, #1
  9767. 8004774: d124 bne.n 80047c0 <UartRxTask+0x494>
  9768. 8004776: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9769. 800477a: 2b02 cmp r3, #2
  9770. 800477c: d920 bls.n 80047c0 <UartRxTask+0x494>
  9771. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  9772. 800477e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9773. 8004782: 6898 ldr r0, [r3, #8]
  9774. 8004784: f507 73a0 add.w r3, r7, #320 @ 0x140
  9775. 8004788: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9776. 800478c: 8819 ldrh r1, [r3, #0]
  9777. 800478e: f507 73a0 add.w r3, r7, #320 @ 0x140
  9778. 8004792: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9779. 8004796: 789a ldrb r2, [r3, #2]
  9780. 8004798: 2300 movs r3, #0
  9781. 800479a: 9301 str r3, [sp, #4]
  9782. 800479c: 2300 movs r3, #0
  9783. 800479e: 9300 str r3, [sp, #0]
  9784. 80047a0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9785. 80047a4: f7fe fdf6 bl 8003394 <PrepareRespFrame>
  9786. 80047a8: 4603 mov r3, r0
  9787. 80047aa: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9788. #if UART_TASK_LOGS
  9789. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  9790. 80047ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9791. 80047b2: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9792. 80047b6: 4619 mov r1, r3
  9793. 80047b8: 4844 ldr r0, [pc, #272] @ (80048cc <UartRxTask+0x5a0>)
  9794. 80047ba: f025 fcff bl 802a1bc <iprintf>
  9795. 80047be: e03c b.n 800483a <UartRxTask+0x50e>
  9796. #endif
  9797. } else if (!crcPass) {
  9798. 80047c0: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  9799. 80047c4: 2b00 cmp r3, #0
  9800. 80047c6: d120 bne.n 800480a <UartRxTask+0x4de>
  9801. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  9802. 80047c8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9803. 80047cc: 6898 ldr r0, [r3, #8]
  9804. 80047ce: f507 73a0 add.w r3, r7, #320 @ 0x140
  9805. 80047d2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9806. 80047d6: 8819 ldrh r1, [r3, #0]
  9807. 80047d8: f507 73a0 add.w r3, r7, #320 @ 0x140
  9808. 80047dc: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9809. 80047e0: 789a ldrb r2, [r3, #2]
  9810. 80047e2: 2300 movs r3, #0
  9811. 80047e4: 9301 str r3, [sp, #4]
  9812. 80047e6: 2300 movs r3, #0
  9813. 80047e8: 9300 str r3, [sp, #0]
  9814. 80047ea: f06f 0301 mvn.w r3, #1
  9815. 80047ee: f7fe fdd1 bl 8003394 <PrepareRespFrame>
  9816. 80047f2: 4603 mov r3, r0
  9817. 80047f4: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9818. #if UART_TASK_LOGS
  9819. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  9820. 80047f8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9821. 80047fc: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9822. 8004800: 4619 mov r1, r3
  9823. 8004802: 4833 ldr r0, [pc, #204] @ (80048d0 <UartRxTask+0x5a4>)
  9824. 8004804: f025 fcda bl 802a1bc <iprintf>
  9825. 8004808: e017 b.n 800483a <UartRxTask+0x50e>
  9826. #endif
  9827. }
  9828. else
  9829. {
  9830. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  9831. 800480a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9832. 800480e: 6898 ldr r0, [r3, #8]
  9833. 8004810: f507 73a0 add.w r3, r7, #320 @ 0x140
  9834. 8004814: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9835. 8004818: 8819 ldrh r1, [r3, #0]
  9836. 800481a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9837. 800481e: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9838. 8004822: 789a ldrb r2, [r3, #2]
  9839. 8004824: 2300 movs r3, #0
  9840. 8004826: 9301 str r3, [sp, #4]
  9841. 8004828: 2300 movs r3, #0
  9842. 800482a: 9300 str r3, [sp, #0]
  9843. 800482c: f06f 0303 mvn.w r3, #3
  9844. 8004830: f7fe fdb0 bl 8003394 <PrepareRespFrame>
  9845. 8004834: 4603 mov r3, r0
  9846. 8004836: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9847. }
  9848. if (dataToSend > 0) {
  9849. 800483a: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  9850. 800483e: 2b00 cmp r3, #0
  9851. 8004840: d00a beq.n 8004858 <UartRxTask+0x52c>
  9852. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  9853. 8004842: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9854. 8004846: 6b18 ldr r0, [r3, #48] @ 0x30
  9855. 8004848: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9856. 800484c: 689b ldr r3, [r3, #8]
  9857. 800484e: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  9858. 8004852: 4619 mov r1, r3
  9859. 8004854: f008 fdd4 bl 800d400 <HAL_UART_Transmit_IT>
  9860. }
  9861. #if UART_TASK_LOGS
  9862. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  9863. 8004858: f8b7 113c ldrh.w r1, [r7, #316] @ 0x13c
  9864. 800485c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9865. 8004860: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  9866. 8004864: 461a mov r2, r3
  9867. 8004866: 481b ldr r0, [pc, #108] @ (80048d4 <UartRxTask+0x5a8>)
  9868. 8004868: f025 fca8 bl 802a1bc <iprintf>
  9869. #endif
  9870. receverState = srFinish;
  9871. 800486c: 2305 movs r3, #5
  9872. 800486e: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9873. break;
  9874. 8004872: e024 b.n 80048be <UartRxTask+0x592>
  9875. case srFinish:
  9876. default:
  9877. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9878. 8004874: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9879. 8004878: 6a1b ldr r3, [r3, #32]
  9880. 800487a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9881. 800487e: 4618 mov r0, r3
  9882. 8004880: f00c fc58 bl 8011134 <osMutexAcquire>
  9883. uartTaskData->frameBytesCount = 0;
  9884. 8004884: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9885. 8004888: 2200 movs r2, #0
  9886. 800488a: 82da strh r2, [r3, #22]
  9887. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9888. 800488c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9889. 8004890: 6a1b ldr r3, [r3, #32]
  9890. 8004892: 4618 mov r0, r3
  9891. 8004894: f00c fc99 bl 80111ca <osMutexRelease>
  9892. spFrameData.frameHeader.frameCommand = spUnknown;
  9893. 8004898: f507 73a0 add.w r3, r7, #320 @ 0x140
  9894. 800489c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9895. 80048a0: 2209 movs r2, #9
  9896. 80048a2: 709a strb r2, [r3, #2]
  9897. frameTotalLength = 0;
  9898. 80048a4: 2300 movs r3, #0
  9899. 80048a6: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9900. outputDataBufferPos = 0;
  9901. 80048aa: 4b0b ldr r3, [pc, #44] @ (80048d8 <UartRxTask+0x5ac>)
  9902. 80048ac: 2200 movs r2, #0
  9903. 80048ae: 801a strh r2, [r3, #0]
  9904. receverState = srWaitForHeader;
  9905. 80048b0: 2300 movs r3, #0
  9906. 80048b2: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9907. proceed = pdFALSE;
  9908. 80048b6: 2300 movs r3, #0
  9909. 80048b8: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9910. break;
  9911. 80048bc: bf00 nop
  9912. while (proceed) {
  9913. 80048be: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  9914. 80048c2: 2b00 cmp r3, #0
  9915. 80048c4: f47f ade0 bne.w 8004488 <UartRxTask+0x15c>
  9916. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9917. 80048c8: e581 b.n 80043ce <UartRxTask+0xa2>
  9918. 80048ca: bf00 nop
  9919. 80048cc: 0802d1b0 .word 0x0802d1b0
  9920. 80048d0: 0802d1d4 .word 0x0802d1d4
  9921. 80048d4: 0802d1ec .word 0x0802d1ec
  9922. 80048d8: 24002084 .word 0x24002084
  9923. 080048dc <ReadMeasSetFromBuffer>:
  9924. }
  9925. }
  9926. }
  9927. void ReadMeasSetFromBuffer(uint8_t* buff, uint16_t* buffPos, float* dataSet)
  9928. {
  9929. 80048dc: b580 push {r7, lr}
  9930. 80048de: b086 sub sp, #24
  9931. 80048e0: af00 add r7, sp, #0
  9932. 80048e2: 60f8 str r0, [r7, #12]
  9933. 80048e4: 60b9 str r1, [r7, #8]
  9934. 80048e6: 607a str r2, [r7, #4]
  9935. for(uint8_t i = 0; i < 3; i++)
  9936. 80048e8: 2300 movs r3, #0
  9937. 80048ea: 75fb strb r3, [r7, #23]
  9938. 80048ec: e00b b.n 8004906 <ReadMeasSetFromBuffer+0x2a>
  9939. {
  9940. ReadFloatFromBuffer(buff, buffPos, &dataSet[i]);
  9941. 80048ee: 7dfb ldrb r3, [r7, #23]
  9942. 80048f0: 009b lsls r3, r3, #2
  9943. 80048f2: 687a ldr r2, [r7, #4]
  9944. 80048f4: 4413 add r3, r2
  9945. 80048f6: 461a mov r2, r3
  9946. 80048f8: 68b9 ldr r1, [r7, #8]
  9947. 80048fa: 68f8 ldr r0, [r7, #12]
  9948. 80048fc: f7fe fc5b bl 80031b6 <ReadFloatFromBuffer>
  9949. for(uint8_t i = 0; i < 3; i++)
  9950. 8004900: 7dfb ldrb r3, [r7, #23]
  9951. 8004902: 3301 adds r3, #1
  9952. 8004904: 75fb strb r3, [r7, #23]
  9953. 8004906: 7dfb ldrb r3, [r7, #23]
  9954. 8004908: 2b02 cmp r3, #2
  9955. 800490a: d9f0 bls.n 80048ee <ReadMeasSetFromBuffer+0x12>
  9956. }
  9957. }
  9958. 800490c: bf00 nop
  9959. 800490e: bf00 nop
  9960. 8004910: 3718 adds r7, #24
  9961. 8004912: 46bd mov sp, r7
  9962. 8004914: bd80 pop {r7, pc}
  9963. ...
  9964. 08004918 <UartTxTask>:
  9965. void UartTxTask (void* argument) {
  9966. 8004918: b580 push {r7, lr}
  9967. 800491a: b0d4 sub sp, #336 @ 0x150
  9968. 800491c: af02 add r7, sp, #8
  9969. 800491e: f507 73a4 add.w r3, r7, #328 @ 0x148
  9970. 8004922: f5a3 73a2 sub.w r3, r3, #324 @ 0x144
  9971. 8004926: 6018 str r0, [r3, #0]
  9972. UartTaskData* const uartTaskData = (UartTaskData*)argument;
  9973. 8004928: f507 73a4 add.w r3, r7, #328 @ 0x148
  9974. 800492c: f5a3 73a2 sub.w r3, r3, #324 @ 0x144
  9975. 8004930: 681b ldr r3, [r3, #0]
  9976. 8004932: f8c7 3140 str.w r3, [r7, #320] @ 0x140
  9977. InterProcessData data = { 0 };
  9978. 8004936: f507 7390 add.w r3, r7, #288 @ 0x120
  9979. 800493a: 2200 movs r2, #0
  9980. 800493c: 601a str r2, [r3, #0]
  9981. 800493e: 605a str r2, [r3, #4]
  9982. 8004940: 609a str r2, [r3, #8]
  9983. SerialProtocolFrameData frameData = { 0 };
  9984. 8004942: f507 73a4 add.w r3, r7, #328 @ 0x148
  9985. 8004946: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9986. 800494a: 4618 mov r0, r3
  9987. 800494c: f44f 7386 mov.w r3, #268 @ 0x10c
  9988. 8004950: 461a mov r2, r3
  9989. 8004952: 2100 movs r1, #0
  9990. 8004954: f025 fdc4 bl 802a4e0 <memset>
  9991. size_t bytesInMsg;
  9992. uint16_t frameId = 0;
  9993. 8004958: 2300 movs r3, #0
  9994. 800495a: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9995. uint32_t rndVal = 0;
  9996. 800495e: f507 73a4 add.w r3, r7, #328 @ 0x148
  9997. 8004962: f5a3 739c sub.w r3, r3, #312 @ 0x138
  9998. 8004966: 2200 movs r2, #0
  9999. 8004968: 601a str r2, [r3, #0]
  10000. uint16_t bytesToSend = 0;
  10001. 800496a: 2300 movs r3, #0
  10002. 800496c: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10003. SerialProtocolCommands frameCommand = spUnknown;
  10004. 8004970: 2309 movs r3, #9
  10005. 8004972: f887 313b strb.w r3, [r7, #315] @ 0x13b
  10006. uint16_t inputDataBufferPos = 0;
  10007. 8004976: f507 73a4 add.w r3, r7, #328 @ 0x148
  10008. 800497a: f5a3 739d sub.w r3, r3, #314 @ 0x13a
  10009. 800497e: 2200 movs r2, #0
  10010. 8004980: 801a strh r2, [r3, #0]
  10011. uint8_t boardNumber = 0;
  10012. 8004982: 2300 movs r3, #0
  10013. 8004984: f887 3147 strb.w r3, [r7, #327] @ 0x147
  10014. while (pdTRUE) {
  10015. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  10016. 8004988: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10017. 800498c: 6adb ldr r3, [r3, #44] @ 0x2c
  10018. 800498e: 2b00 cmp r3, #0
  10019. 8004990: f000 8249 beq.w 8004e26 <UartTxTask+0x50e>
  10020. osMessageQueueGet (uartTaskData->sendCmdToSlaveQueue, &data, 0, osWaitForever);
  10021. 8004994: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10022. 8004998: 6ad8 ldr r0, [r3, #44] @ 0x2c
  10023. 800499a: f507 7190 add.w r1, r7, #288 @ 0x120
  10024. 800499e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10025. 80049a2: 2200 movs r2, #0
  10026. 80049a4: f00c fe66 bl 8011674 <osMessageQueueGet>
  10027. HAL_RNG_GenerateRandomNumber (&hrng, &rndVal);
  10028. 80049a8: f107 0310 add.w r3, r7, #16
  10029. 80049ac: 4619 mov r1, r3
  10030. 80049ae: 48a2 ldr r0, [pc, #648] @ (8004c38 <UartTxTask+0x320>)
  10031. 80049b0: f008 f924 bl 800cbfc <HAL_RNG_GenerateRandomNumber>
  10032. frameId = (uint16_t)(rndVal & 0xFFFF);
  10033. 80049b4: f507 73a4 add.w r3, r7, #328 @ 0x148
  10034. 80049b8: f5a3 739c sub.w r3, r3, #312 @ 0x138
  10035. 80049bc: 681b ldr r3, [r3, #0]
  10036. 80049be: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10037. frameCommand = data.spCommand;
  10038. 80049c2: f897 3120 ldrb.w r3, [r7, #288] @ 0x120
  10039. 80049c6: f887 313b strb.w r3, [r7, #315] @ 0x13b
  10040. outputDataBufferPos = 0;
  10041. 80049ca: 4b9c ldr r3, [pc, #624] @ (8004c3c <UartTxTask+0x324>)
  10042. 80049cc: 2200 movs r2, #0
  10043. 80049ce: 801a strh r2, [r3, #0]
  10044. memset (outputDataBuffer, 0x00, OUTPUT_DATA_BUFF_SIZE);
  10045. 80049d0: 2280 movs r2, #128 @ 0x80
  10046. 80049d2: 2100 movs r1, #0
  10047. 80049d4: 489a ldr r0, [pc, #616] @ (8004c40 <UartTxTask+0x328>)
  10048. 80049d6: f025 fd83 bl 802a4e0 <memset>
  10049. switch (frameCommand) {
  10050. 80049da: f897 313b ldrb.w r3, [r7, #315] @ 0x13b
  10051. 80049de: 2b08 cmp r3, #8
  10052. 80049e0: f200 8226 bhi.w 8004e30 <UartTxTask+0x518>
  10053. 80049e4: a201 add r2, pc, #4 @ (adr r2, 80049ec <UartTxTask+0xd4>)
  10054. 80049e6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10055. 80049ea: bf00 nop
  10056. 80049ec: 08004a59 .word 0x08004a59
  10057. 80049f0: 08004a59 .word 0x08004a59
  10058. 80049f4: 08004a11 .word 0x08004a11
  10059. 80049f8: 08004a11 .word 0x08004a11
  10060. 80049fc: 08004a11 .word 0x08004a11
  10061. 8004a00: 08004a47 .word 0x08004a47
  10062. 8004a04: 08004a47 .word 0x08004a47
  10063. 8004a08: 08004a35 .word 0x08004a35
  10064. 8004a0c: 08004a59 .word 0x08004a59
  10065. case spSetFanSpeed:
  10066. case spSetMotorXOn:
  10067. case spSetMotorYOn:
  10068. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (uint32_t));
  10069. 8004a10: f507 7390 add.w r3, r7, #288 @ 0x120
  10070. 8004a14: 1d1a adds r2, r3, #4
  10071. 8004a16: 2304 movs r3, #4
  10072. 8004a18: 4988 ldr r1, [pc, #544] @ (8004c3c <UartTxTask+0x324>)
  10073. 8004a1a: 4889 ldr r0, [pc, #548] @ (8004c40 <UartTxTask+0x328>)
  10074. 8004a1c: f7fe fb9a bl 8003154 <WriteDataToBuffer>
  10075. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[1], sizeof (uint32_t));
  10076. 8004a20: f507 7390 add.w r3, r7, #288 @ 0x120
  10077. 8004a24: f103 0208 add.w r2, r3, #8
  10078. 8004a28: 2304 movs r3, #4
  10079. 8004a2a: 4984 ldr r1, [pc, #528] @ (8004c3c <UartTxTask+0x324>)
  10080. 8004a2c: 4884 ldr r0, [pc, #528] @ (8004c40 <UartTxTask+0x328>)
  10081. 8004a2e: f7fe fb91 bl 8003154 <WriteDataToBuffer>
  10082. break;
  10083. 8004a32: e012 b.n 8004a5a <UartTxTask+0x142>
  10084. case spSetDiodeOn: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.integerValues.value[0], sizeof (uint32_t)); break;
  10085. 8004a34: f507 7390 add.w r3, r7, #288 @ 0x120
  10086. 8004a38: 1d1a adds r2, r3, #4
  10087. 8004a3a: 2304 movs r3, #4
  10088. 8004a3c: 497f ldr r1, [pc, #508] @ (8004c3c <UartTxTask+0x324>)
  10089. 8004a3e: 4880 ldr r0, [pc, #512] @ (8004c40 <UartTxTask+0x328>)
  10090. 8004a40: f7fe fb88 bl 8003154 <WriteDataToBuffer>
  10091. 8004a44: e009 b.n 8004a5a <UartTxTask+0x142>
  10092. case spSetmotorXMaxCurrent:
  10093. case spSetmotorYMaxCurrent: WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &data.values.flaotValues.value[0], sizeof (float)); break;
  10094. 8004a46: f507 7390 add.w r3, r7, #288 @ 0x120
  10095. 8004a4a: 1d1a adds r2, r3, #4
  10096. 8004a4c: 2304 movs r3, #4
  10097. 8004a4e: 497b ldr r1, [pc, #492] @ (8004c3c <UartTxTask+0x324>)
  10098. 8004a50: 487b ldr r0, [pc, #492] @ (8004c40 <UartTxTask+0x328>)
  10099. 8004a52: f7fe fb7f bl 8003154 <WriteDataToBuffer>
  10100. 8004a56: e000 b.n 8004a5a <UartTxTask+0x142>
  10101. case spGetElectricalMeasurments:
  10102. case spGetSensorMeasurments: break;
  10103. 8004a58: bf00 nop
  10104. case spClearPeakMeasurments: break;
  10105. default: continue; break;
  10106. }
  10107. bytesToSend = PrepareReqFrame (uartTaskData->uartTxBuffer, frameId, frameCommand, outputDataBuffer, outputDataBufferPos);
  10108. 8004a5a: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10109. 8004a5e: 6898 ldr r0, [r3, #8]
  10110. 8004a60: 4b76 ldr r3, [pc, #472] @ (8004c3c <UartTxTask+0x324>)
  10111. 8004a62: 881b ldrh r3, [r3, #0]
  10112. 8004a64: f897 213b ldrb.w r2, [r7, #315] @ 0x13b
  10113. 8004a68: f8b7 113e ldrh.w r1, [r7, #318] @ 0x13e
  10114. 8004a6c: 9300 str r3, [sp, #0]
  10115. 8004a6e: 4b74 ldr r3, [pc, #464] @ (8004c40 <UartTxTask+0x328>)
  10116. 8004a70: f7fe fbfc bl 800326c <PrepareReqFrame>
  10117. 8004a74: 4603 mov r3, r0
  10118. 8004a76: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10119. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, bytesToSend);
  10120. 8004a7a: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10121. 8004a7e: 6b18 ldr r0, [r3, #48] @ 0x30
  10122. 8004a80: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10123. 8004a84: 689b ldr r3, [r3, #8]
  10124. 8004a86: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  10125. 8004a8a: 4619 mov r1, r3
  10126. 8004a8c: f008 fcb8 bl 800d400 <HAL_UART_Transmit_IT>
  10127. bytesInMsg = xMessageBufferReceive (uartTaskData->processRxDataMsgBuffer, &frameData, INPUT_DATA_BUFF_SIZE, pdMS_TO_TICKS (1000));
  10128. 8004a90: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10129. 8004a94: 6a58 ldr r0, [r3, #36] @ 0x24
  10130. 8004a96: f107 0114 add.w r1, r7, #20
  10131. 8004a9a: f44f 737a mov.w r3, #1000 @ 0x3e8
  10132. 8004a9e: f44f 7280 mov.w r2, #256 @ 0x100
  10133. 8004aa2: f00e fa1b bl 8012edc <xStreamBufferReceive>
  10134. 8004aa6: f8c7 0134 str.w r0, [r7, #308] @ 0x134
  10135. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10136. 8004aaa: 2300 movs r3, #0
  10137. 8004aac: f887 3147 strb.w r3, [r7, #327] @ 0x147
  10138. 8004ab0: e00e b.n 8004ad0 <UartTxTask+0x1b8>
  10139. {
  10140. if(boardToUartNumberMap[boardNumber] == uartTaskData->uartNumber)
  10141. 8004ab2: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10142. 8004ab6: 4a63 ldr r2, [pc, #396] @ (8004c44 <UartTxTask+0x32c>)
  10143. 8004ab8: 5cd2 ldrb r2, [r2, r3]
  10144. 8004aba: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10145. 8004abe: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10146. 8004ac2: 429a cmp r2, r3
  10147. 8004ac4: d009 beq.n 8004ada <UartTxTask+0x1c2>
  10148. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10149. 8004ac6: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10150. 8004aca: 3301 adds r3, #1
  10151. 8004acc: f887 3147 strb.w r3, [r7, #327] @ 0x147
  10152. 8004ad0: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10153. 8004ad4: 2b03 cmp r3, #3
  10154. 8004ad6: d9ec bls.n 8004ab2 <UartTxTask+0x19a>
  10155. 8004ad8: e000 b.n 8004adc <UartTxTask+0x1c4>
  10156. {
  10157. break;
  10158. 8004ada: bf00 nop
  10159. }
  10160. }
  10161. if (bytesInMsg == 0) {
  10162. 8004adc: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  10163. 8004ae0: 2b00 cmp r3, #0
  10164. 8004ae2: d124 bne.n 8004b2e <UartTxTask+0x216>
  10165. if (frameCommand == spGetElectricalMeasurments)
  10166. 8004ae4: f897 313b ldrb.w r3, [r7, #315] @ 0x13b
  10167. 8004ae8: 2b00 cmp r3, #0
  10168. 8004aea: d114 bne.n 8004b16 <UartTxTask+0x1fe>
  10169. {
  10170. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  10171. 8004aec: 4b56 ldr r3, [pc, #344] @ (8004c48 <UartTxTask+0x330>)
  10172. 8004aee: 681b ldr r3, [r3, #0]
  10173. 8004af0: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10174. 8004af4: 4618 mov r0, r3
  10175. 8004af6: f00c fb1d bl 8011134 <osMutexAcquire>
  10176. slaveLastSeen[boardNumber]++;
  10177. 8004afa: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10178. 8004afe: 4a53 ldr r2, [pc, #332] @ (8004c4c <UartTxTask+0x334>)
  10179. 8004b00: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  10180. 8004b04: 3201 adds r2, #1
  10181. 8004b06: 4951 ldr r1, [pc, #324] @ (8004c4c <UartTxTask+0x334>)
  10182. 8004b08: f841 2023 str.w r2, [r1, r3, lsl #2]
  10183. osMutexRelease(resMeasurementsMutex);
  10184. 8004b0c: 4b4e ldr r3, [pc, #312] @ (8004c48 <UartTxTask+0x330>)
  10185. 8004b0e: 681b ldr r3, [r3, #0]
  10186. 8004b10: 4618 mov r0, r3
  10187. 8004b12: f00c fb5a bl 80111ca <osMutexRelease>
  10188. }
  10189. #if UART_TASK_LOGS
  10190. printf ("Uart%d: Response timeout for frameId 0x%x\n", uartTaskData->uartNumber, frameId);
  10191. 8004b16: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10192. 8004b1a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10193. 8004b1e: 4619 mov r1, r3
  10194. 8004b20: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10195. 8004b24: 461a mov r2, r3
  10196. 8004b26: 484a ldr r0, [pc, #296] @ (8004c50 <UartTxTask+0x338>)
  10197. 8004b28: f025 fb48 bl 802a1bc <iprintf>
  10198. 8004b2c: e72c b.n 8004988 <UartTxTask+0x70>
  10199. #endif
  10200. } else {
  10201. if ((frameId == frameData.frameHeader.frameId) && (frameData.frameHeader.respStatus == spOK)) {
  10202. 8004b2e: f507 73a4 add.w r3, r7, #328 @ 0x148
  10203. 8004b32: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10204. 8004b36: 881b ldrh r3, [r3, #0]
  10205. 8004b38: f8b7 213e ldrh.w r2, [r7, #318] @ 0x13e
  10206. 8004b3c: 429a cmp r2, r3
  10207. 8004b3e: f47f af23 bne.w 8004988 <UartTxTask+0x70>
  10208. 8004b42: f507 73a4 add.w r3, r7, #328 @ 0x148
  10209. 8004b46: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10210. 8004b4a: f993 3003 ldrsb.w r3, [r3, #3]
  10211. 8004b4e: 2b00 cmp r3, #0
  10212. 8004b50: f47f af1a bne.w 8004988 <UartTxTask+0x70>
  10213. #if UART_TASK_LOGS
  10214. printf ("Uart%d: Response for frameId 0x%x OK\n", uartTaskData->uartNumber, frameId);
  10215. 8004b54: f8d7 3140 ldr.w r3, [r7, #320] @ 0x140
  10216. 8004b58: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10217. 8004b5c: 4619 mov r1, r3
  10218. 8004b5e: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10219. 8004b62: 461a mov r2, r3
  10220. 8004b64: 483b ldr r0, [pc, #236] @ (8004c54 <UartTxTask+0x33c>)
  10221. 8004b66: f025 fb29 bl 802a1bc <iprintf>
  10222. #endif
  10223. slaveLastSeen[boardNumber] = 0;
  10224. 8004b6a: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10225. 8004b6e: 4a37 ldr r2, [pc, #220] @ (8004c4c <UartTxTask+0x334>)
  10226. 8004b70: 2100 movs r1, #0
  10227. 8004b72: f842 1023 str.w r1, [r2, r3, lsl #2]
  10228. switch(frameData.frameHeader.frameCommand)
  10229. 8004b76: f507 73a4 add.w r3, r7, #328 @ 0x148
  10230. 8004b7a: f5a3 739a sub.w r3, r3, #308 @ 0x134
  10231. 8004b7e: 789b ldrb r3, [r3, #2]
  10232. 8004b80: 2b00 cmp r3, #0
  10233. 8004b82: d002 beq.n 8004b8a <UartTxTask+0x272>
  10234. 8004b84: 2b01 cmp r3, #1
  10235. 8004b86: d069 beq.n 8004c5c <UartTxTask+0x344>
  10236. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchCenter);
  10237. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->powerSupplyFailMask);
  10238. osMutexRelease(sensorsInfoMutex);
  10239. break;
  10240. default:
  10241. break;
  10242. 8004b88: e153 b.n 8004e32 <UartTxTask+0x51a>
  10243. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  10244. 8004b8a: 4b2f ldr r3, [pc, #188] @ (8004c48 <UartTxTask+0x330>)
  10245. 8004b8c: 681b ldr r3, [r3, #0]
  10246. 8004b8e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10247. 8004b92: 4618 mov r0, r3
  10248. 8004b94: f00c face bl 8011134 <osMutexAcquire>
  10249. RESMeasurements *resMeas = &resMeasurements[boardNumber];
  10250. 8004b98: f897 2147 ldrb.w r2, [r7, #327] @ 0x147
  10251. 8004b9c: 4613 mov r3, r2
  10252. 8004b9e: 011b lsls r3, r3, #4
  10253. 8004ba0: 1a9b subs r3, r3, r2
  10254. 8004ba2: 009b lsls r3, r3, #2
  10255. 8004ba4: 4a2c ldr r2, [pc, #176] @ (8004c58 <UartTxTask+0x340>)
  10256. 8004ba6: 4413 add r3, r2
  10257. 8004ba8: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  10258. inputDataBufferPos = 0;
  10259. 8004bac: f507 73a4 add.w r3, r7, #328 @ 0x148
  10260. 8004bb0: f5a3 739d sub.w r3, r3, #314 @ 0x13a
  10261. 8004bb4: 2200 movs r2, #0
  10262. 8004bb6: 801a strh r2, [r3, #0]
  10263. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltageRMS);
  10264. 8004bb8: f8d7 212c ldr.w r2, [r7, #300] @ 0x12c
  10265. 8004bbc: f107 010e add.w r1, r7, #14
  10266. 8004bc0: f107 0314 add.w r3, r7, #20
  10267. 8004bc4: 330c adds r3, #12
  10268. 8004bc6: 4618 mov r0, r3
  10269. 8004bc8: f7ff fe88 bl 80048dc <ReadMeasSetFromBuffer>
  10270. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->voltagePeak);
  10271. 8004bcc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10272. 8004bd0: f103 020c add.w r2, r3, #12
  10273. 8004bd4: f107 010e add.w r1, r7, #14
  10274. 8004bd8: f107 0314 add.w r3, r7, #20
  10275. 8004bdc: 330c adds r3, #12
  10276. 8004bde: 4618 mov r0, r3
  10277. 8004be0: f7ff fe7c bl 80048dc <ReadMeasSetFromBuffer>
  10278. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentRMS);
  10279. 8004be4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10280. 8004be8: f103 0218 add.w r2, r3, #24
  10281. 8004bec: f107 010e add.w r1, r7, #14
  10282. 8004bf0: f107 0314 add.w r3, r7, #20
  10283. 8004bf4: 330c adds r3, #12
  10284. 8004bf6: 4618 mov r0, r3
  10285. 8004bf8: f7ff fe70 bl 80048dc <ReadMeasSetFromBuffer>
  10286. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->currentPeak);
  10287. 8004bfc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10288. 8004c00: f103 0224 add.w r2, r3, #36 @ 0x24
  10289. 8004c04: f107 010e add.w r1, r7, #14
  10290. 8004c08: f107 0314 add.w r3, r7, #20
  10291. 8004c0c: 330c adds r3, #12
  10292. 8004c0e: 4618 mov r0, r3
  10293. 8004c10: f7ff fe64 bl 80048dc <ReadMeasSetFromBuffer>
  10294. ReadMeasSetFromBuffer(frameData.dataBuffer, &inputDataBufferPos, resMeas->power);
  10295. 8004c14: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10296. 8004c18: f103 0230 add.w r2, r3, #48 @ 0x30
  10297. 8004c1c: f107 010e add.w r1, r7, #14
  10298. 8004c20: f107 0314 add.w r3, r7, #20
  10299. 8004c24: 330c adds r3, #12
  10300. 8004c26: 4618 mov r0, r3
  10301. 8004c28: f7ff fe58 bl 80048dc <ReadMeasSetFromBuffer>
  10302. osMutexRelease(resMeasurementsMutex);
  10303. 8004c2c: 4b06 ldr r3, [pc, #24] @ (8004c48 <UartTxTask+0x330>)
  10304. 8004c2e: 681b ldr r3, [r3, #0]
  10305. 8004c30: 4618 mov r0, r3
  10306. 8004c32: f00c faca bl 80111ca <osMutexRelease>
  10307. break;
  10308. 8004c36: e0fc b.n 8004e32 <UartTxTask+0x51a>
  10309. 8004c38: 2400026c .word 0x2400026c
  10310. 8004c3c: 24002084 .word 0x24002084
  10311. 8004c40: 24002004 .word 0x24002004
  10312. 8004c44: 24000014 .word 0x24000014
  10313. 8004c48: 24002238 .word 0x24002238
  10314. 8004c4c: 24002228 .word 0x24002228
  10315. 8004c50: 0802d208 .word 0x0802d208
  10316. 8004c54: 0802d234 .word 0x0802d234
  10317. 8004c58: 24002088 .word 0x24002088
  10318. osMutexAcquire (sensorsInfoMutex, osWaitForever);
  10319. 8004c5c: 4b75 ldr r3, [pc, #468] @ (8004e34 <UartTxTask+0x51c>)
  10320. 8004c5e: 681b ldr r3, [r3, #0]
  10321. 8004c60: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10322. 8004c64: 4618 mov r0, r3
  10323. 8004c66: f00c fa65 bl 8011134 <osMutexAcquire>
  10324. inputDataBufferPos = 0;
  10325. 8004c6a: f507 73a4 add.w r3, r7, #328 @ 0x148
  10326. 8004c6e: f5a3 739d sub.w r3, r3, #314 @ 0x13a
  10327. 8004c72: 2200 movs r2, #0
  10328. 8004c74: 801a strh r2, [r3, #0]
  10329. SesnorsInfo* sensors = &sensorsInfo[boardNumber];
  10330. 8004c76: f897 3147 ldrb.w r3, [r7, #327] @ 0x147
  10331. 8004c7a: 222c movs r2, #44 @ 0x2c
  10332. 8004c7c: fb02 f303 mul.w r3, r2, r3
  10333. 8004c80: 4a6d ldr r2, [pc, #436] @ (8004e38 <UartTxTask+0x520>)
  10334. 8004c82: 4413 add r3, r2
  10335. 8004c84: f8c7 3130 str.w r3, [r7, #304] @ 0x130
  10336. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvTemperature[0]);
  10337. 8004c88: f8d7 2130 ldr.w r2, [r7, #304] @ 0x130
  10338. 8004c8c: f107 010e add.w r1, r7, #14
  10339. 8004c90: f107 0314 add.w r3, r7, #20
  10340. 8004c94: 330c adds r3, #12
  10341. 8004c96: 4618 mov r0, r3
  10342. 8004c98: f7fe fa8d bl 80031b6 <ReadFloatFromBuffer>
  10343. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvTemperature[1]);
  10344. 8004c9c: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10345. 8004ca0: 1d1a adds r2, r3, #4
  10346. 8004ca2: f107 010e add.w r1, r7, #14
  10347. 8004ca6: f107 0314 add.w r3, r7, #20
  10348. 8004caa: 330c adds r3, #12
  10349. 8004cac: 4618 mov r0, r3
  10350. 8004cae: f7fe fa82 bl 80031b6 <ReadFloatFromBuffer>
  10351. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->fanVoltage);
  10352. 8004cb2: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10353. 8004cb6: f103 0208 add.w r2, r3, #8
  10354. 8004cba: f107 010e add.w r1, r7, #14
  10355. 8004cbe: f107 0314 add.w r3, r7, #20
  10356. 8004cc2: 330c adds r3, #12
  10357. 8004cc4: 4618 mov r0, r3
  10358. 8004cc6: f7fe fa76 bl 80031b6 <ReadFloatFromBuffer>
  10359. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->pvEncoder);
  10360. 8004cca: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10361. 8004cce: f103 020c add.w r2, r3, #12
  10362. 8004cd2: f107 010e add.w r1, r7, #14
  10363. 8004cd6: f107 0314 add.w r3, r7, #20
  10364. 8004cda: 330c adds r3, #12
  10365. 8004cdc: 4618 mov r0, r3
  10366. 8004cde: f7fe fa6a bl 80031b6 <ReadFloatFromBuffer>
  10367. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXStatus);
  10368. 8004ce2: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10369. 8004ce6: f103 0210 add.w r2, r3, #16
  10370. 8004cea: f107 010e add.w r1, r7, #14
  10371. 8004cee: f107 0314 add.w r3, r7, #20
  10372. 8004cf2: 330c adds r3, #12
  10373. 8004cf4: 4618 mov r0, r3
  10374. 8004cf6: f7fe fa93 bl 8003220 <ReadByteFromBufer>
  10375. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYStatus);
  10376. 8004cfa: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10377. 8004cfe: f103 0211 add.w r2, r3, #17
  10378. 8004d02: f107 010e add.w r1, r7, #14
  10379. 8004d06: f107 0314 add.w r3, r7, #20
  10380. 8004d0a: 330c adds r3, #12
  10381. 8004d0c: 4618 mov r0, r3
  10382. 8004d0e: f7fe fa87 bl 8003220 <ReadByteFromBufer>
  10383. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXAveCurrent);
  10384. 8004d12: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10385. 8004d16: f103 0214 add.w r2, r3, #20
  10386. 8004d1a: f107 010e add.w r1, r7, #14
  10387. 8004d1e: f107 0314 add.w r3, r7, #20
  10388. 8004d22: 330c adds r3, #12
  10389. 8004d24: 4618 mov r0, r3
  10390. 8004d26: f7fe fa46 bl 80031b6 <ReadFloatFromBuffer>
  10391. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYAveCurrent);
  10392. 8004d2a: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10393. 8004d2e: f103 0218 add.w r2, r3, #24
  10394. 8004d32: f107 010e add.w r1, r7, #14
  10395. 8004d36: f107 0314 add.w r3, r7, #20
  10396. 8004d3a: 330c adds r3, #12
  10397. 8004d3c: 4618 mov r0, r3
  10398. 8004d3e: f7fe fa3a bl 80031b6 <ReadFloatFromBuffer>
  10399. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorXPeakCurrent);
  10400. 8004d42: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10401. 8004d46: f103 021c add.w r2, r3, #28
  10402. 8004d4a: f107 010e add.w r1, r7, #14
  10403. 8004d4e: f107 0314 add.w r3, r7, #20
  10404. 8004d52: 330c adds r3, #12
  10405. 8004d54: 4618 mov r0, r3
  10406. 8004d56: f7fe fa2e bl 80031b6 <ReadFloatFromBuffer>
  10407. ReadFloatFromBuffer(frameData.dataBuffer, &inputDataBufferPos, &sensors->motorYPeakCurrent);
  10408. 8004d5a: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10409. 8004d5e: f103 0220 add.w r2, r3, #32
  10410. 8004d62: f107 010e add.w r1, r7, #14
  10411. 8004d66: f107 0314 add.w r3, r7, #20
  10412. 8004d6a: 330c adds r3, #12
  10413. 8004d6c: 4618 mov r0, r3
  10414. 8004d6e: f7fe fa22 bl 80031b6 <ReadFloatFromBuffer>
  10415. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitXSwitchUp);
  10416. 8004d72: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10417. 8004d76: f103 0224 add.w r2, r3, #36 @ 0x24
  10418. 8004d7a: f107 010e add.w r1, r7, #14
  10419. 8004d7e: f107 0314 add.w r3, r7, #20
  10420. 8004d82: 330c adds r3, #12
  10421. 8004d84: 4618 mov r0, r3
  10422. 8004d86: f7fe fa4b bl 8003220 <ReadByteFromBufer>
  10423. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitXSwitchDown);
  10424. 8004d8a: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10425. 8004d8e: f103 0225 add.w r2, r3, #37 @ 0x25
  10426. 8004d92: f107 010e add.w r1, r7, #14
  10427. 8004d96: f107 0314 add.w r3, r7, #20
  10428. 8004d9a: 330c adds r3, #12
  10429. 8004d9c: 4618 mov r0, r3
  10430. 8004d9e: f7fe fa3f bl 8003220 <ReadByteFromBufer>
  10431. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitXSwitchCenter);
  10432. 8004da2: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10433. 8004da6: f103 0226 add.w r2, r3, #38 @ 0x26
  10434. 8004daa: f107 010e add.w r1, r7, #14
  10435. 8004dae: f107 0314 add.w r3, r7, #20
  10436. 8004db2: 330c adds r3, #12
  10437. 8004db4: 4618 mov r0, r3
  10438. 8004db6: f7fe fa33 bl 8003220 <ReadByteFromBufer>
  10439. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchUp);
  10440. 8004dba: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10441. 8004dbe: f103 0227 add.w r2, r3, #39 @ 0x27
  10442. 8004dc2: f107 010e add.w r1, r7, #14
  10443. 8004dc6: f107 0314 add.w r3, r7, #20
  10444. 8004dca: 330c adds r3, #12
  10445. 8004dcc: 4618 mov r0, r3
  10446. 8004dce: f7fe fa27 bl 8003220 <ReadByteFromBufer>
  10447. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchDown);
  10448. 8004dd2: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10449. 8004dd6: f103 0228 add.w r2, r3, #40 @ 0x28
  10450. 8004dda: f107 010e add.w r1, r7, #14
  10451. 8004dde: f107 0314 add.w r3, r7, #20
  10452. 8004de2: 330c adds r3, #12
  10453. 8004de4: 4618 mov r0, r3
  10454. 8004de6: f7fe fa1b bl 8003220 <ReadByteFromBufer>
  10455. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->limitYSwitchCenter);
  10456. 8004dea: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10457. 8004dee: f103 0229 add.w r2, r3, #41 @ 0x29
  10458. 8004df2: f107 010e add.w r1, r7, #14
  10459. 8004df6: f107 0314 add.w r3, r7, #20
  10460. 8004dfa: 330c adds r3, #12
  10461. 8004dfc: 4618 mov r0, r3
  10462. 8004dfe: f7fe fa0f bl 8003220 <ReadByteFromBufer>
  10463. ReadByteFromBufer(frameData.dataBuffer, &inputDataBufferPos, &sensors->powerSupplyFailMask);
  10464. 8004e02: f8d7 3130 ldr.w r3, [r7, #304] @ 0x130
  10465. 8004e06: f103 022a add.w r2, r3, #42 @ 0x2a
  10466. 8004e0a: f107 010e add.w r1, r7, #14
  10467. 8004e0e: f107 0314 add.w r3, r7, #20
  10468. 8004e12: 330c adds r3, #12
  10469. 8004e14: 4618 mov r0, r3
  10470. 8004e16: f7fe fa03 bl 8003220 <ReadByteFromBufer>
  10471. osMutexRelease(sensorsInfoMutex);
  10472. 8004e1a: 4b06 ldr r3, [pc, #24] @ (8004e34 <UartTxTask+0x51c>)
  10473. 8004e1c: 681b ldr r3, [r3, #0]
  10474. 8004e1e: 4618 mov r0, r3
  10475. 8004e20: f00c f9d3 bl 80111ca <osMutexRelease>
  10476. break;
  10477. 8004e24: e005 b.n 8004e32 <UartTxTask+0x51a>
  10478. }
  10479. }
  10480. }
  10481. } else {
  10482. osDelay (pdMS_TO_TICKS (1000));
  10483. 8004e26: f44f 707a mov.w r0, #1000 @ 0x3e8
  10484. 8004e2a: f00c f850 bl 8010ece <osDelay>
  10485. 8004e2e: e5ab b.n 8004988 <UartTxTask+0x70>
  10486. default: continue; break;
  10487. 8004e30: bf00 nop
  10488. if (uartTaskData->sendCmdToSlaveQueue != NULL) {
  10489. 8004e32: e5a9 b.n 8004988 <UartTxTask+0x70>
  10490. 8004e34: 2400223c .word 0x2400223c
  10491. 8004e38: 24002178 .word 0x24002178
  10492. 08004e3c <MeasurmentsReqSchedulerTaskInit>:
  10493. }
  10494. }
  10495. }
  10496. void MeasurmentsReqSchedulerTaskInit (void) {
  10497. 8004e3c: b580 push {r7, lr}
  10498. 8004e3e: b08a sub sp, #40 @ 0x28
  10499. 8004e40: af00 add r7, sp, #0
  10500. osThreadAttr_t osThreadAttrMeasurmentsReqSchedulerTask = { 0 };
  10501. 8004e42: 1d3b adds r3, r7, #4
  10502. 8004e44: 2224 movs r2, #36 @ 0x24
  10503. 8004e46: 2100 movs r1, #0
  10504. 8004e48: 4618 mov r0, r3
  10505. 8004e4a: f025 fb49 bl 802a4e0 <memset>
  10506. osThreadAttrMeasurmentsReqSchedulerTask.name = "os_thread_XXX";
  10507. 8004e4e: 4b08 ldr r3, [pc, #32] @ (8004e70 <MeasurmentsReqSchedulerTaskInit+0x34>)
  10508. 8004e50: 607b str r3, [r7, #4]
  10509. osThreadAttrMeasurmentsReqSchedulerTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  10510. 8004e52: f44f 6380 mov.w r3, #1024 @ 0x400
  10511. 8004e56: 61bb str r3, [r7, #24]
  10512. osThreadAttrMeasurmentsReqSchedulerTask.priority = (osPriority_t)osPriorityNormal;
  10513. 8004e58: 2318 movs r3, #24
  10514. 8004e5a: 61fb str r3, [r7, #28]
  10515. osThreadNew (MeasurmentsReqSchedulerTask, uartTasks, &osThreadAttrMeasurmentsReqSchedulerTask);
  10516. 8004e5c: 1d3b adds r3, r7, #4
  10517. 8004e5e: 461a mov r2, r3
  10518. 8004e60: 4904 ldr r1, [pc, #16] @ (8004e74 <MeasurmentsReqSchedulerTaskInit+0x38>)
  10519. 8004e62: 4805 ldr r0, [pc, #20] @ (8004e78 <MeasurmentsReqSchedulerTaskInit+0x3c>)
  10520. 8004e64: f00b ff95 bl 8010d92 <osThreadNew>
  10521. }
  10522. 8004e68: bf00 nop
  10523. 8004e6a: 3728 adds r7, #40 @ 0x28
  10524. 8004e6c: 46bd mov sp, r7
  10525. 8004e6e: bd80 pop {r7, pc}
  10526. 8004e70: 0802d25c .word 0x0802d25c
  10527. 8004e74: 24000018 .word 0x24000018
  10528. 8004e78: 08004e7d .word 0x08004e7d
  10529. 08004e7c <MeasurmentsReqSchedulerTask>:
  10530. void MeasurmentsReqSchedulerTask (void* argument) {
  10531. 8004e7c: b580 push {r7, lr}
  10532. 8004e7e: b088 sub sp, #32
  10533. 8004e80: af00 add r7, sp, #0
  10534. 8004e82: 6078 str r0, [r7, #4]
  10535. while (pdTRUE) {
  10536. __uintptr_t* ptr = (__uintptr_t*)argument;
  10537. 8004e84: 687b ldr r3, [r7, #4]
  10538. 8004e86: 61fb str r3, [r7, #28]
  10539. while (*ptr != 0) {
  10540. 8004e88: e04a b.n 8004f20 <MeasurmentsReqSchedulerTask+0xa4>
  10541. UartTaskData* uartTask = (UartTaskData*)*ptr;
  10542. 8004e8a: 69fb ldr r3, [r7, #28]
  10543. 8004e8c: 681b ldr r3, [r3, #0]
  10544. 8004e8e: 617b str r3, [r7, #20]
  10545. if (uartTask->sendCmdToSlaveQueue != NULL) {
  10546. 8004e90: 697b ldr r3, [r7, #20]
  10547. 8004e92: 6adb ldr r3, [r3, #44] @ 0x2c
  10548. 8004e94: 2b00 cmp r3, #0
  10549. 8004e96: d040 beq.n 8004f1a <MeasurmentsReqSchedulerTask+0x9e>
  10550. InterProcessData data = { 0 };
  10551. 8004e98: f107 0308 add.w r3, r7, #8
  10552. 8004e9c: 2200 movs r2, #0
  10553. 8004e9e: 601a str r2, [r3, #0]
  10554. 8004ea0: 605a str r2, [r3, #4]
  10555. 8004ea2: 609a str r2, [r3, #8]
  10556. uint8_t boardNumber = 0;
  10557. 8004ea4: 2300 movs r3, #0
  10558. 8004ea6: 76fb strb r3, [r7, #27]
  10559. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10560. 8004ea8: 2300 movs r3, #0
  10561. 8004eaa: 76fb strb r3, [r7, #27]
  10562. 8004eac: e00a b.n 8004ec4 <MeasurmentsReqSchedulerTask+0x48>
  10563. {
  10564. if(boardToUartNumberMap[boardNumber] == uartTask->uartNumber)
  10565. 8004eae: 7efb ldrb r3, [r7, #27]
  10566. 8004eb0: 4a20 ldr r2, [pc, #128] @ (8004f34 <MeasurmentsReqSchedulerTask+0xb8>)
  10567. 8004eb2: 5cd2 ldrb r2, [r2, r3]
  10568. 8004eb4: 697b ldr r3, [r7, #20]
  10569. 8004eb6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  10570. 8004eba: 429a cmp r2, r3
  10571. 8004ebc: d006 beq.n 8004ecc <MeasurmentsReqSchedulerTask+0x50>
  10572. for(boardNumber = 0; boardNumber < SLAVES_COUNT; boardNumber++)
  10573. 8004ebe: 7efb ldrb r3, [r7, #27]
  10574. 8004ec0: 3301 adds r3, #1
  10575. 8004ec2: 76fb strb r3, [r7, #27]
  10576. 8004ec4: 7efb ldrb r3, [r7, #27]
  10577. 8004ec6: 2b03 cmp r3, #3
  10578. 8004ec8: d9f1 bls.n 8004eae <MeasurmentsReqSchedulerTask+0x32>
  10579. 8004eca: e000 b.n 8004ece <MeasurmentsReqSchedulerTask+0x52>
  10580. {
  10581. break;
  10582. 8004ecc: bf00 nop
  10583. }
  10584. }
  10585. data.spCommand = spGetElectricalMeasurments;
  10586. 8004ece: 2300 movs r3, #0
  10587. 8004ed0: 723b strb r3, [r7, #8]
  10588. osMessageQueuePut (uartTask->sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  10589. 8004ed2: 697b ldr r3, [r7, #20]
  10590. 8004ed4: 6ad8 ldr r0, [r3, #44] @ 0x2c
  10591. 8004ed6: f107 0108 add.w r1, r7, #8
  10592. 8004eda: 2364 movs r3, #100 @ 0x64
  10593. 8004edc: 2200 movs r2, #0
  10594. 8004ede: f00c fb69 bl 80115b4 <osMessageQueuePut>
  10595. osMutexAcquire (resMeasurementsMutex, osWaitForever);
  10596. 8004ee2: 4b15 ldr r3, [pc, #84] @ (8004f38 <MeasurmentsReqSchedulerTask+0xbc>)
  10597. 8004ee4: 681b ldr r3, [r3, #0]
  10598. 8004ee6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10599. 8004eea: 4618 mov r0, r3
  10600. 8004eec: f00c f922 bl 8011134 <osMutexAcquire>
  10601. if(slaveLastSeen[boardNumber] == 0)
  10602. 8004ef0: 7efb ldrb r3, [r7, #27]
  10603. 8004ef2: 4a12 ldr r2, [pc, #72] @ (8004f3c <MeasurmentsReqSchedulerTask+0xc0>)
  10604. 8004ef4: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  10605. 8004ef8: 2b00 cmp r3, #0
  10606. 8004efa: d109 bne.n 8004f10 <MeasurmentsReqSchedulerTask+0x94>
  10607. {
  10608. data.spCommand = spGetSensorMeasurments;
  10609. 8004efc: 2301 movs r3, #1
  10610. 8004efe: 723b strb r3, [r7, #8]
  10611. osMessageQueuePut (uartTask->sendCmdToSlaveQueue, &data, 0, (TickType_t)100);
  10612. 8004f00: 697b ldr r3, [r7, #20]
  10613. 8004f02: 6ad8 ldr r0, [r3, #44] @ 0x2c
  10614. 8004f04: f107 0108 add.w r1, r7, #8
  10615. 8004f08: 2364 movs r3, #100 @ 0x64
  10616. 8004f0a: 2200 movs r2, #0
  10617. 8004f0c: f00c fb52 bl 80115b4 <osMessageQueuePut>
  10618. }
  10619. osMutexRelease(resMeasurementsMutex);
  10620. 8004f10: 4b09 ldr r3, [pc, #36] @ (8004f38 <MeasurmentsReqSchedulerTask+0xbc>)
  10621. 8004f12: 681b ldr r3, [r3, #0]
  10622. 8004f14: 4618 mov r0, r3
  10623. 8004f16: f00c f958 bl 80111ca <osMutexRelease>
  10624. }
  10625. ptr++;
  10626. 8004f1a: 69fb ldr r3, [r7, #28]
  10627. 8004f1c: 3304 adds r3, #4
  10628. 8004f1e: 61fb str r3, [r7, #28]
  10629. while (*ptr != 0) {
  10630. 8004f20: 69fb ldr r3, [r7, #28]
  10631. 8004f22: 681b ldr r3, [r3, #0]
  10632. 8004f24: 2b00 cmp r3, #0
  10633. 8004f26: d1b0 bne.n 8004e8a <MeasurmentsReqSchedulerTask+0xe>
  10634. }
  10635. osDelay (pdMS_TO_TICKS (MEASURMENTS_SCHEDULER_INTERVAL_MS));
  10636. 8004f28: f44f 707a mov.w r0, #1000 @ 0x3e8
  10637. 8004f2c: f00b ffcf bl 8010ece <osDelay>
  10638. while (pdTRUE) {
  10639. 8004f30: e7a8 b.n 8004e84 <MeasurmentsReqSchedulerTask+0x8>
  10640. 8004f32: bf00 nop
  10641. 8004f34: 24000014 .word 0x24000014
  10642. 8004f38: 24002238 .word 0x24002238
  10643. 8004f3c: 24002228 .word 0x24002228
  10644. 08004f40 <Reset_Handler>:
  10645. .section .text.Reset_Handler
  10646. .weak Reset_Handler
  10647. .type Reset_Handler, %function
  10648. Reset_Handler:
  10649. ldr sp, =_estack /* set stack pointer */
  10650. 8004f40: f8df d034 ldr.w sp, [pc, #52] @ 8004f78 <LoopFillZerobss+0xe>
  10651. /* Call the clock system initialization function.*/
  10652. bl SystemInit
  10653. 8004f44: f7fe ff86 bl 8003e54 <SystemInit>
  10654. /* Copy the data segment initializers from flash to SRAM */
  10655. ldr r0, =_sdata
  10656. 8004f48: 480c ldr r0, [pc, #48] @ (8004f7c <LoopFillZerobss+0x12>)
  10657. ldr r1, =_edata
  10658. 8004f4a: 490d ldr r1, [pc, #52] @ (8004f80 <LoopFillZerobss+0x16>)
  10659. ldr r2, =_sidata
  10660. 8004f4c: 4a0d ldr r2, [pc, #52] @ (8004f84 <LoopFillZerobss+0x1a>)
  10661. movs r3, #0
  10662. 8004f4e: 2300 movs r3, #0
  10663. b LoopCopyDataInit
  10664. 8004f50: e002 b.n 8004f58 <LoopCopyDataInit>
  10665. 08004f52 <CopyDataInit>:
  10666. CopyDataInit:
  10667. ldr r4, [r2, r3]
  10668. 8004f52: 58d4 ldr r4, [r2, r3]
  10669. str r4, [r0, r3]
  10670. 8004f54: 50c4 str r4, [r0, r3]
  10671. adds r3, r3, #4
  10672. 8004f56: 3304 adds r3, #4
  10673. 08004f58 <LoopCopyDataInit>:
  10674. LoopCopyDataInit:
  10675. adds r4, r0, r3
  10676. 8004f58: 18c4 adds r4, r0, r3
  10677. cmp r4, r1
  10678. 8004f5a: 428c cmp r4, r1
  10679. bcc CopyDataInit
  10680. 8004f5c: d3f9 bcc.n 8004f52 <CopyDataInit>
  10681. /* Zero fill the bss segment. */
  10682. ldr r2, =_sbss
  10683. 8004f5e: 4a0a ldr r2, [pc, #40] @ (8004f88 <LoopFillZerobss+0x1e>)
  10684. ldr r4, =_ebss
  10685. 8004f60: 4c0a ldr r4, [pc, #40] @ (8004f8c <LoopFillZerobss+0x22>)
  10686. movs r3, #0
  10687. 8004f62: 2300 movs r3, #0
  10688. b LoopFillZerobss
  10689. 8004f64: e001 b.n 8004f6a <LoopFillZerobss>
  10690. 08004f66 <FillZerobss>:
  10691. FillZerobss:
  10692. str r3, [r2]
  10693. 8004f66: 6013 str r3, [r2, #0]
  10694. adds r2, r2, #4
  10695. 8004f68: 3204 adds r2, #4
  10696. 08004f6a <LoopFillZerobss>:
  10697. LoopFillZerobss:
  10698. cmp r2, r4
  10699. 8004f6a: 42a2 cmp r2, r4
  10700. bcc FillZerobss
  10701. 8004f6c: d3fb bcc.n 8004f66 <FillZerobss>
  10702. /* Call static constructors */
  10703. bl __libc_init_array
  10704. 8004f6e: f025 fb87 bl 802a680 <__libc_init_array>
  10705. /* Call the application's entry point.*/
  10706. bl main
  10707. 8004f72: f7fc feb3 bl 8001cdc <main>
  10708. bx lr
  10709. 8004f76: 4770 bx lr
  10710. ldr sp, =_estack /* set stack pointer */
  10711. 8004f78: 24060000 .word 0x24060000
  10712. ldr r0, =_sdata
  10713. 8004f7c: 24000000 .word 0x24000000
  10714. ldr r1, =_edata
  10715. 8004f80: 24000224 .word 0x24000224
  10716. ldr r2, =_sidata
  10717. 8004f84: 0803199c .word 0x0803199c
  10718. ldr r2, =_sbss
  10719. 8004f88: 24000224 .word 0x24000224
  10720. ldr r4, =_ebss
  10721. 8004f8c: 2402b258 .word 0x2402b258
  10722. 08004f90 <ADC3_IRQHandler>:
  10723. * @retval None
  10724. */
  10725. .section .text.Default_Handler,"ax",%progbits
  10726. Default_Handler:
  10727. Infinite_Loop:
  10728. b Infinite_Loop
  10729. 8004f90: e7fe b.n 8004f90 <ADC3_IRQHandler>
  10730. 08004f92 <DP83848_RegisterBusIO>:
  10731. * @param ioctx: holds device IO functions.
  10732. * @retval DP83848_STATUS_OK if OK
  10733. * DP83848_STATUS_ERROR if missing mandatory function
  10734. */
  10735. int32_t DP83848_RegisterBusIO(dp83848_Object_t *pObj, dp83848_IOCtx_t *ioctx)
  10736. {
  10737. 8004f92: b480 push {r7}
  10738. 8004f94: b083 sub sp, #12
  10739. 8004f96: af00 add r7, sp, #0
  10740. 8004f98: 6078 str r0, [r7, #4]
  10741. 8004f9a: 6039 str r1, [r7, #0]
  10742. if(!pObj || !ioctx->ReadReg || !ioctx->WriteReg || !ioctx->GetTick)
  10743. 8004f9c: 687b ldr r3, [r7, #4]
  10744. 8004f9e: 2b00 cmp r3, #0
  10745. 8004fa0: d00b beq.n 8004fba <DP83848_RegisterBusIO+0x28>
  10746. 8004fa2: 683b ldr r3, [r7, #0]
  10747. 8004fa4: 68db ldr r3, [r3, #12]
  10748. 8004fa6: 2b00 cmp r3, #0
  10749. 8004fa8: d007 beq.n 8004fba <DP83848_RegisterBusIO+0x28>
  10750. 8004faa: 683b ldr r3, [r7, #0]
  10751. 8004fac: 689b ldr r3, [r3, #8]
  10752. 8004fae: 2b00 cmp r3, #0
  10753. 8004fb0: d003 beq.n 8004fba <DP83848_RegisterBusIO+0x28>
  10754. 8004fb2: 683b ldr r3, [r7, #0]
  10755. 8004fb4: 691b ldr r3, [r3, #16]
  10756. 8004fb6: 2b00 cmp r3, #0
  10757. 8004fb8: d102 bne.n 8004fc0 <DP83848_RegisterBusIO+0x2e>
  10758. {
  10759. return DP83848_STATUS_ERROR;
  10760. 8004fba: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10761. 8004fbe: e014 b.n 8004fea <DP83848_RegisterBusIO+0x58>
  10762. }
  10763. pObj->IO.Init = ioctx->Init;
  10764. 8004fc0: 683b ldr r3, [r7, #0]
  10765. 8004fc2: 681a ldr r2, [r3, #0]
  10766. 8004fc4: 687b ldr r3, [r7, #4]
  10767. 8004fc6: 609a str r2, [r3, #8]
  10768. pObj->IO.DeInit = ioctx->DeInit;
  10769. 8004fc8: 683b ldr r3, [r7, #0]
  10770. 8004fca: 685a ldr r2, [r3, #4]
  10771. 8004fcc: 687b ldr r3, [r7, #4]
  10772. 8004fce: 60da str r2, [r3, #12]
  10773. pObj->IO.ReadReg = ioctx->ReadReg;
  10774. 8004fd0: 683b ldr r3, [r7, #0]
  10775. 8004fd2: 68da ldr r2, [r3, #12]
  10776. 8004fd4: 687b ldr r3, [r7, #4]
  10777. 8004fd6: 615a str r2, [r3, #20]
  10778. pObj->IO.WriteReg = ioctx->WriteReg;
  10779. 8004fd8: 683b ldr r3, [r7, #0]
  10780. 8004fda: 689a ldr r2, [r3, #8]
  10781. 8004fdc: 687b ldr r3, [r7, #4]
  10782. 8004fde: 611a str r2, [r3, #16]
  10783. pObj->IO.GetTick = ioctx->GetTick;
  10784. 8004fe0: 683b ldr r3, [r7, #0]
  10785. 8004fe2: 691a ldr r2, [r3, #16]
  10786. 8004fe4: 687b ldr r3, [r7, #4]
  10787. 8004fe6: 619a str r2, [r3, #24]
  10788. return DP83848_STATUS_OK;
  10789. 8004fe8: 2300 movs r3, #0
  10790. }
  10791. 8004fea: 4618 mov r0, r3
  10792. 8004fec: 370c adds r7, #12
  10793. 8004fee: 46bd mov sp, r7
  10794. 8004ff0: f85d 7b04 ldr.w r7, [sp], #4
  10795. 8004ff4: 4770 bx lr
  10796. 08004ff6 <DP83848_Init>:
  10797. * @retval DP83848_STATUS_OK if OK
  10798. * DP83848_STATUS_ADDRESS_ERROR if cannot find device address
  10799. * DP83848_STATUS_READ_ERROR if connot read register
  10800. */
  10801. int32_t DP83848_Init(dp83848_Object_t *pObj)
  10802. {
  10803. 8004ff6: b580 push {r7, lr}
  10804. 8004ff8: b086 sub sp, #24
  10805. 8004ffa: af00 add r7, sp, #0
  10806. 8004ffc: 6078 str r0, [r7, #4]
  10807. uint32_t regvalue = 0, addr = 0;
  10808. 8004ffe: 2300 movs r3, #0
  10809. 8005000: 60fb str r3, [r7, #12]
  10810. 8005002: 2300 movs r3, #0
  10811. 8005004: 617b str r3, [r7, #20]
  10812. int32_t status = DP83848_STATUS_OK;
  10813. 8005006: 2300 movs r3, #0
  10814. 8005008: 613b str r3, [r7, #16]
  10815. if(pObj->Is_Initialized == 0)
  10816. 800500a: 687b ldr r3, [r7, #4]
  10817. 800500c: 685b ldr r3, [r3, #4]
  10818. 800500e: 2b00 cmp r3, #0
  10819. 8005010: d139 bne.n 8005086 <DP83848_Init+0x90>
  10820. {
  10821. if(pObj->IO.Init != 0)
  10822. 8005012: 687b ldr r3, [r7, #4]
  10823. 8005014: 689b ldr r3, [r3, #8]
  10824. 8005016: 2b00 cmp r3, #0
  10825. 8005018: d002 beq.n 8005020 <DP83848_Init+0x2a>
  10826. {
  10827. /* GPIO and Clocks initialization */
  10828. pObj->IO.Init();
  10829. 800501a: 687b ldr r3, [r7, #4]
  10830. 800501c: 689b ldr r3, [r3, #8]
  10831. 800501e: 4798 blx r3
  10832. }
  10833. /* for later check */
  10834. pObj->DevAddr = DP83848_MAX_DEV_ADDR + 1;
  10835. 8005020: 687b ldr r3, [r7, #4]
  10836. 8005022: 2220 movs r2, #32
  10837. 8005024: 601a str r2, [r3, #0]
  10838. /* Get the device address from special mode register */
  10839. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  10840. 8005026: 2300 movs r3, #0
  10841. 8005028: 617b str r3, [r7, #20]
  10842. 800502a: e01c b.n 8005066 <DP83848_Init+0x70>
  10843. {
  10844. if(pObj->IO.ReadReg(addr, DP83848_SMR, &regvalue) < 0)
  10845. 800502c: 687b ldr r3, [r7, #4]
  10846. 800502e: 695b ldr r3, [r3, #20]
  10847. 8005030: f107 020c add.w r2, r7, #12
  10848. 8005034: 2119 movs r1, #25
  10849. 8005036: 6978 ldr r0, [r7, #20]
  10850. 8005038: 4798 blx r3
  10851. 800503a: 4603 mov r3, r0
  10852. 800503c: 2b00 cmp r3, #0
  10853. 800503e: da03 bge.n 8005048 <DP83848_Init+0x52>
  10854. {
  10855. status = DP83848_STATUS_READ_ERROR;
  10856. 8005040: f06f 0304 mvn.w r3, #4
  10857. 8005044: 613b str r3, [r7, #16]
  10858. /* Can't read from this device address
  10859. continue with next address */
  10860. continue;
  10861. 8005046: e00b b.n 8005060 <DP83848_Init+0x6a>
  10862. }
  10863. if((regvalue & DP83848_SMR_PHY_ADDR) == addr)
  10864. 8005048: 68fb ldr r3, [r7, #12]
  10865. 800504a: f003 031f and.w r3, r3, #31
  10866. 800504e: 697a ldr r2, [r7, #20]
  10867. 8005050: 429a cmp r2, r3
  10868. 8005052: d105 bne.n 8005060 <DP83848_Init+0x6a>
  10869. {
  10870. pObj->DevAddr = addr;
  10871. 8005054: 687b ldr r3, [r7, #4]
  10872. 8005056: 697a ldr r2, [r7, #20]
  10873. 8005058: 601a str r2, [r3, #0]
  10874. status = DP83848_STATUS_OK;
  10875. 800505a: 2300 movs r3, #0
  10876. 800505c: 613b str r3, [r7, #16]
  10877. break;
  10878. 800505e: e005 b.n 800506c <DP83848_Init+0x76>
  10879. for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++)
  10880. 8005060: 697b ldr r3, [r7, #20]
  10881. 8005062: 3301 adds r3, #1
  10882. 8005064: 617b str r3, [r7, #20]
  10883. 8005066: 697b ldr r3, [r7, #20]
  10884. 8005068: 2b1f cmp r3, #31
  10885. 800506a: d9df bls.n 800502c <DP83848_Init+0x36>
  10886. }
  10887. }
  10888. if(pObj->DevAddr > DP83848_MAX_DEV_ADDR)
  10889. 800506c: 687b ldr r3, [r7, #4]
  10890. 800506e: 681b ldr r3, [r3, #0]
  10891. 8005070: 2b1f cmp r3, #31
  10892. 8005072: d902 bls.n 800507a <DP83848_Init+0x84>
  10893. {
  10894. status = DP83848_STATUS_ADDRESS_ERROR;
  10895. 8005074: f06f 0302 mvn.w r3, #2
  10896. 8005078: 613b str r3, [r7, #16]
  10897. }
  10898. /* if device address is matched */
  10899. if(status == DP83848_STATUS_OK)
  10900. 800507a: 693b ldr r3, [r7, #16]
  10901. 800507c: 2b00 cmp r3, #0
  10902. 800507e: d102 bne.n 8005086 <DP83848_Init+0x90>
  10903. {
  10904. pObj->Is_Initialized = 1;
  10905. 8005080: 687b ldr r3, [r7, #4]
  10906. 8005082: 2201 movs r2, #1
  10907. 8005084: 605a str r2, [r3, #4]
  10908. }
  10909. }
  10910. return status;
  10911. 8005086: 693b ldr r3, [r7, #16]
  10912. }
  10913. 8005088: 4618 mov r0, r3
  10914. 800508a: 3718 adds r7, #24
  10915. 800508c: 46bd mov sp, r7
  10916. 800508e: bd80 pop {r7, pc}
  10917. 08005090 <DP83848_GetLinkState>:
  10918. * DP83848_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD
  10919. * DP83848_STATUS_READ_ERROR if connot read register
  10920. * DP83848_STATUS_WRITE_ERROR if connot write to register
  10921. */
  10922. int32_t DP83848_GetLinkState(dp83848_Object_t *pObj)
  10923. {
  10924. 8005090: b580 push {r7, lr}
  10925. 8005092: b084 sub sp, #16
  10926. 8005094: af00 add r7, sp, #0
  10927. 8005096: 6078 str r0, [r7, #4]
  10928. uint32_t readval = 0;
  10929. 8005098: 2300 movs r3, #0
  10930. 800509a: 60fb str r3, [r7, #12]
  10931. /* Read Status register */
  10932. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  10933. 800509c: 687b ldr r3, [r7, #4]
  10934. 800509e: 695b ldr r3, [r3, #20]
  10935. 80050a0: 687a ldr r2, [r7, #4]
  10936. 80050a2: 6810 ldr r0, [r2, #0]
  10937. 80050a4: f107 020c add.w r2, r7, #12
  10938. 80050a8: 2101 movs r1, #1
  10939. 80050aa: 4798 blx r3
  10940. 80050ac: 4603 mov r3, r0
  10941. 80050ae: 2b00 cmp r3, #0
  10942. 80050b0: da02 bge.n 80050b8 <DP83848_GetLinkState+0x28>
  10943. {
  10944. return DP83848_STATUS_READ_ERROR;
  10945. 80050b2: f06f 0304 mvn.w r3, #4
  10946. 80050b6: e06e b.n 8005196 <DP83848_GetLinkState+0x106>
  10947. }
  10948. /* Read Status register again */
  10949. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0)
  10950. 80050b8: 687b ldr r3, [r7, #4]
  10951. 80050ba: 695b ldr r3, [r3, #20]
  10952. 80050bc: 687a ldr r2, [r7, #4]
  10953. 80050be: 6810 ldr r0, [r2, #0]
  10954. 80050c0: f107 020c add.w r2, r7, #12
  10955. 80050c4: 2101 movs r1, #1
  10956. 80050c6: 4798 blx r3
  10957. 80050c8: 4603 mov r3, r0
  10958. 80050ca: 2b00 cmp r3, #0
  10959. 80050cc: da02 bge.n 80050d4 <DP83848_GetLinkState+0x44>
  10960. {
  10961. return DP83848_STATUS_READ_ERROR;
  10962. 80050ce: f06f 0304 mvn.w r3, #4
  10963. 80050d2: e060 b.n 8005196 <DP83848_GetLinkState+0x106>
  10964. }
  10965. if((readval & DP83848_BSR_LINK_STATUS) == 0)
  10966. 80050d4: 68fb ldr r3, [r7, #12]
  10967. 80050d6: f003 0304 and.w r3, r3, #4
  10968. 80050da: 2b00 cmp r3, #0
  10969. 80050dc: d101 bne.n 80050e2 <DP83848_GetLinkState+0x52>
  10970. {
  10971. /* Return Link Down status */
  10972. return DP83848_STATUS_LINK_DOWN;
  10973. 80050de: 2301 movs r3, #1
  10974. 80050e0: e059 b.n 8005196 <DP83848_GetLinkState+0x106>
  10975. }
  10976. /* Check Auto negotiaition */
  10977. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BCR, &readval) < 0)
  10978. 80050e2: 687b ldr r3, [r7, #4]
  10979. 80050e4: 695b ldr r3, [r3, #20]
  10980. 80050e6: 687a ldr r2, [r7, #4]
  10981. 80050e8: 6810 ldr r0, [r2, #0]
  10982. 80050ea: f107 020c add.w r2, r7, #12
  10983. 80050ee: 2100 movs r1, #0
  10984. 80050f0: 4798 blx r3
  10985. 80050f2: 4603 mov r3, r0
  10986. 80050f4: 2b00 cmp r3, #0
  10987. 80050f6: da02 bge.n 80050fe <DP83848_GetLinkState+0x6e>
  10988. {
  10989. return DP83848_STATUS_READ_ERROR;
  10990. 80050f8: f06f 0304 mvn.w r3, #4
  10991. 80050fc: e04b b.n 8005196 <DP83848_GetLinkState+0x106>
  10992. }
  10993. if((readval & DP83848_BCR_AUTONEGO_EN) != DP83848_BCR_AUTONEGO_EN)
  10994. 80050fe: 68fb ldr r3, [r7, #12]
  10995. 8005100: f403 5380 and.w r3, r3, #4096 @ 0x1000
  10996. 8005104: 2b00 cmp r3, #0
  10997. 8005106: d11b bne.n 8005140 <DP83848_GetLinkState+0xb0>
  10998. {
  10999. if(((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT) && ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE))
  11000. 8005108: 68fb ldr r3, [r7, #12]
  11001. 800510a: f403 5300 and.w r3, r3, #8192 @ 0x2000
  11002. 800510e: 2b00 cmp r3, #0
  11003. 8005110: d006 beq.n 8005120 <DP83848_GetLinkState+0x90>
  11004. 8005112: 68fb ldr r3, [r7, #12]
  11005. 8005114: f403 7380 and.w r3, r3, #256 @ 0x100
  11006. 8005118: 2b00 cmp r3, #0
  11007. 800511a: d001 beq.n 8005120 <DP83848_GetLinkState+0x90>
  11008. {
  11009. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  11010. 800511c: 2302 movs r3, #2
  11011. 800511e: e03a b.n 8005196 <DP83848_GetLinkState+0x106>
  11012. }
  11013. else if ((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT)
  11014. 8005120: 68fb ldr r3, [r7, #12]
  11015. 8005122: f403 5300 and.w r3, r3, #8192 @ 0x2000
  11016. 8005126: 2b00 cmp r3, #0
  11017. 8005128: d001 beq.n 800512e <DP83848_GetLinkState+0x9e>
  11018. {
  11019. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  11020. 800512a: 2303 movs r3, #3
  11021. 800512c: e033 b.n 8005196 <DP83848_GetLinkState+0x106>
  11022. }
  11023. else if ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE)
  11024. 800512e: 68fb ldr r3, [r7, #12]
  11025. 8005130: f403 7380 and.w r3, r3, #256 @ 0x100
  11026. 8005134: 2b00 cmp r3, #0
  11027. 8005136: d001 beq.n 800513c <DP83848_GetLinkState+0xac>
  11028. {
  11029. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  11030. 8005138: 2304 movs r3, #4
  11031. 800513a: e02c b.n 8005196 <DP83848_GetLinkState+0x106>
  11032. }
  11033. else
  11034. {
  11035. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  11036. 800513c: 2305 movs r3, #5
  11037. 800513e: e02a b.n 8005196 <DP83848_GetLinkState+0x106>
  11038. }
  11039. }
  11040. else /* Auto Nego enabled */
  11041. {
  11042. if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_PHYSCSR, &readval) < 0)
  11043. 8005140: 687b ldr r3, [r7, #4]
  11044. 8005142: 695b ldr r3, [r3, #20]
  11045. 8005144: 687a ldr r2, [r7, #4]
  11046. 8005146: 6810 ldr r0, [r2, #0]
  11047. 8005148: f107 020c add.w r2, r7, #12
  11048. 800514c: 2110 movs r1, #16
  11049. 800514e: 4798 blx r3
  11050. 8005150: 4603 mov r3, r0
  11051. 8005152: 2b00 cmp r3, #0
  11052. 8005154: da02 bge.n 800515c <DP83848_GetLinkState+0xcc>
  11053. {
  11054. return DP83848_STATUS_READ_ERROR;
  11055. 8005156: f06f 0304 mvn.w r3, #4
  11056. 800515a: e01c b.n 8005196 <DP83848_GetLinkState+0x106>
  11057. }
  11058. /* Check if auto nego not done */
  11059. if((readval & DP83848_PHYSCSR_AUTONEGO_DONE) == 0)
  11060. 800515c: 68fb ldr r3, [r7, #12]
  11061. 800515e: f003 0310 and.w r3, r3, #16
  11062. 8005162: 2b00 cmp r3, #0
  11063. 8005164: d101 bne.n 800516a <DP83848_GetLinkState+0xda>
  11064. {
  11065. return DP83848_STATUS_AUTONEGO_NOTDONE;
  11066. 8005166: 2306 movs r3, #6
  11067. 8005168: e015 b.n 8005196 <DP83848_GetLinkState+0x106>
  11068. }
  11069. if((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_FD)
  11070. 800516a: 68fb ldr r3, [r7, #12]
  11071. 800516c: f003 0306 and.w r3, r3, #6
  11072. 8005170: 2b04 cmp r3, #4
  11073. 8005172: d101 bne.n 8005178 <DP83848_GetLinkState+0xe8>
  11074. {
  11075. return DP83848_STATUS_100MBITS_FULLDUPLEX;
  11076. 8005174: 2302 movs r3, #2
  11077. 8005176: e00e b.n 8005196 <DP83848_GetLinkState+0x106>
  11078. }
  11079. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_HD)
  11080. 8005178: 68fb ldr r3, [r7, #12]
  11081. 800517a: f003 0306 and.w r3, r3, #6
  11082. 800517e: 2b00 cmp r3, #0
  11083. 8005180: d101 bne.n 8005186 <DP83848_GetLinkState+0xf6>
  11084. {
  11085. return DP83848_STATUS_100MBITS_HALFDUPLEX;
  11086. 8005182: 2303 movs r3, #3
  11087. 8005184: e007 b.n 8005196 <DP83848_GetLinkState+0x106>
  11088. }
  11089. else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_10BT_FD)
  11090. 8005186: 68fb ldr r3, [r7, #12]
  11091. 8005188: f003 0306 and.w r3, r3, #6
  11092. 800518c: 2b06 cmp r3, #6
  11093. 800518e: d101 bne.n 8005194 <DP83848_GetLinkState+0x104>
  11094. {
  11095. return DP83848_STATUS_10MBITS_FULLDUPLEX;
  11096. 8005190: 2304 movs r3, #4
  11097. 8005192: e000 b.n 8005196 <DP83848_GetLinkState+0x106>
  11098. }
  11099. else
  11100. {
  11101. return DP83848_STATUS_10MBITS_HALFDUPLEX;
  11102. 8005194: 2305 movs r3, #5
  11103. }
  11104. }
  11105. }
  11106. 8005196: 4618 mov r0, r3
  11107. 8005198: 3710 adds r7, #16
  11108. 800519a: 46bd mov sp, r7
  11109. 800519c: bd80 pop {r7, pc}
  11110. ...
  11111. 080051a0 <HAL_Init>:
  11112. * need to ensure that the SysTick time base is always set to 1 millisecond
  11113. * to have correct HAL operation.
  11114. * @retval HAL status
  11115. */
  11116. HAL_StatusTypeDef HAL_Init(void)
  11117. {
  11118. 80051a0: b580 push {r7, lr}
  11119. 80051a2: b082 sub sp, #8
  11120. 80051a4: af00 add r7, sp, #0
  11121. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  11122. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  11123. #endif /* DUAL_CORE && CORE_CM4 */
  11124. /* Set Interrupt Group Priority */
  11125. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  11126. 80051a6: 2003 movs r0, #3
  11127. 80051a8: f000 f947 bl 800543a <HAL_NVIC_SetPriorityGrouping>
  11128. /* Update the SystemCoreClock global variable */
  11129. #if defined(RCC_D1CFGR_D1CPRE)
  11130. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  11131. 80051ac: f005 fc9c bl 800aae8 <HAL_RCC_GetSysClockFreq>
  11132. 80051b0: 4602 mov r2, r0
  11133. 80051b2: 4b15 ldr r3, [pc, #84] @ (8005208 <HAL_Init+0x68>)
  11134. 80051b4: 699b ldr r3, [r3, #24]
  11135. 80051b6: 0a1b lsrs r3, r3, #8
  11136. 80051b8: f003 030f and.w r3, r3, #15
  11137. 80051bc: 4913 ldr r1, [pc, #76] @ (800520c <HAL_Init+0x6c>)
  11138. 80051be: 5ccb ldrb r3, [r1, r3]
  11139. 80051c0: f003 031f and.w r3, r3, #31
  11140. 80051c4: fa22 f303 lsr.w r3, r2, r3
  11141. 80051c8: 607b str r3, [r7, #4]
  11142. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  11143. #endif
  11144. /* Update the SystemD2Clock global variable */
  11145. #if defined(RCC_D1CFGR_HPRE)
  11146. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  11147. 80051ca: 4b0f ldr r3, [pc, #60] @ (8005208 <HAL_Init+0x68>)
  11148. 80051cc: 699b ldr r3, [r3, #24]
  11149. 80051ce: f003 030f and.w r3, r3, #15
  11150. 80051d2: 4a0e ldr r2, [pc, #56] @ (800520c <HAL_Init+0x6c>)
  11151. 80051d4: 5cd3 ldrb r3, [r2, r3]
  11152. 80051d6: f003 031f and.w r3, r3, #31
  11153. 80051da: 687a ldr r2, [r7, #4]
  11154. 80051dc: fa22 f303 lsr.w r3, r2, r3
  11155. 80051e0: 4a0b ldr r2, [pc, #44] @ (8005210 <HAL_Init+0x70>)
  11156. 80051e2: 6013 str r3, [r2, #0]
  11157. #endif
  11158. #if defined(DUAL_CORE) && defined(CORE_CM4)
  11159. SystemCoreClock = SystemD2Clock;
  11160. #else
  11161. SystemCoreClock = common_system_clock;
  11162. 80051e4: 4a0b ldr r2, [pc, #44] @ (8005214 <HAL_Init+0x74>)
  11163. 80051e6: 687b ldr r3, [r7, #4]
  11164. 80051e8: 6013 str r3, [r2, #0]
  11165. #endif /* DUAL_CORE && CORE_CM4 */
  11166. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  11167. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  11168. 80051ea: 200f movs r0, #15
  11169. 80051ec: f7fe fc80 bl 8003af0 <HAL_InitTick>
  11170. 80051f0: 4603 mov r3, r0
  11171. 80051f2: 2b00 cmp r3, #0
  11172. 80051f4: d001 beq.n 80051fa <HAL_Init+0x5a>
  11173. {
  11174. return HAL_ERROR;
  11175. 80051f6: 2301 movs r3, #1
  11176. 80051f8: e002 b.n 8005200 <HAL_Init+0x60>
  11177. }
  11178. /* Init the low level hardware */
  11179. HAL_MspInit();
  11180. 80051fa: f7fe f969 bl 80034d0 <HAL_MspInit>
  11181. /* Return function status */
  11182. return HAL_OK;
  11183. 80051fe: 2300 movs r3, #0
  11184. }
  11185. 8005200: 4618 mov r0, r3
  11186. 8005202: 3708 adds r7, #8
  11187. 8005204: 46bd mov sp, r7
  11188. 8005206: bd80 pop {r7, pc}
  11189. 8005208: 58024400 .word 0x58024400
  11190. 800520c: 08031308 .word 0x08031308
  11191. 8005210: 24000010 .word 0x24000010
  11192. 8005214: 2400000c .word 0x2400000c
  11193. 08005218 <HAL_IncTick>:
  11194. * @note This function is declared as __weak to be overwritten in case of other
  11195. * implementations in user file.
  11196. * @retval None
  11197. */
  11198. __weak void HAL_IncTick(void)
  11199. {
  11200. 8005218: b480 push {r7}
  11201. 800521a: af00 add r7, sp, #0
  11202. uwTick += (uint32_t)uwTickFreq;
  11203. 800521c: 4b06 ldr r3, [pc, #24] @ (8005238 <HAL_IncTick+0x20>)
  11204. 800521e: 781b ldrb r3, [r3, #0]
  11205. 8005220: 461a mov r2, r3
  11206. 8005222: 4b06 ldr r3, [pc, #24] @ (800523c <HAL_IncTick+0x24>)
  11207. 8005224: 681b ldr r3, [r3, #0]
  11208. 8005226: 4413 add r3, r2
  11209. 8005228: 4a04 ldr r2, [pc, #16] @ (800523c <HAL_IncTick+0x24>)
  11210. 800522a: 6013 str r3, [r2, #0]
  11211. }
  11212. 800522c: bf00 nop
  11213. 800522e: 46bd mov sp, r7
  11214. 8005230: f85d 7b04 ldr.w r7, [sp], #4
  11215. 8005234: 4770 bx lr
  11216. 8005236: bf00 nop
  11217. 8005238: 24000030 .word 0x24000030
  11218. 800523c: 24002240 .word 0x24002240
  11219. 08005240 <HAL_GetTick>:
  11220. * @note This function is declared as __weak to be overwritten in case of other
  11221. * implementations in user file.
  11222. * @retval tick value
  11223. */
  11224. __weak uint32_t HAL_GetTick(void)
  11225. {
  11226. 8005240: b480 push {r7}
  11227. 8005242: af00 add r7, sp, #0
  11228. return uwTick;
  11229. 8005244: 4b03 ldr r3, [pc, #12] @ (8005254 <HAL_GetTick+0x14>)
  11230. 8005246: 681b ldr r3, [r3, #0]
  11231. }
  11232. 8005248: 4618 mov r0, r3
  11233. 800524a: 46bd mov sp, r7
  11234. 800524c: f85d 7b04 ldr.w r7, [sp], #4
  11235. 8005250: 4770 bx lr
  11236. 8005252: bf00 nop
  11237. 8005254: 24002240 .word 0x24002240
  11238. 08005258 <HAL_Delay>:
  11239. * implementations in user file.
  11240. * @param Delay specifies the delay time length, in milliseconds.
  11241. * @retval None
  11242. */
  11243. __weak void HAL_Delay(uint32_t Delay)
  11244. {
  11245. 8005258: b580 push {r7, lr}
  11246. 800525a: b084 sub sp, #16
  11247. 800525c: af00 add r7, sp, #0
  11248. 800525e: 6078 str r0, [r7, #4]
  11249. uint32_t tickstart = HAL_GetTick();
  11250. 8005260: f7ff ffee bl 8005240 <HAL_GetTick>
  11251. 8005264: 60b8 str r0, [r7, #8]
  11252. uint32_t wait = Delay;
  11253. 8005266: 687b ldr r3, [r7, #4]
  11254. 8005268: 60fb str r3, [r7, #12]
  11255. /* Add a freq to guarantee minimum wait */
  11256. if (wait < HAL_MAX_DELAY)
  11257. 800526a: 68fb ldr r3, [r7, #12]
  11258. 800526c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11259. 8005270: d005 beq.n 800527e <HAL_Delay+0x26>
  11260. {
  11261. wait += (uint32_t)(uwTickFreq);
  11262. 8005272: 4b0a ldr r3, [pc, #40] @ (800529c <HAL_Delay+0x44>)
  11263. 8005274: 781b ldrb r3, [r3, #0]
  11264. 8005276: 461a mov r2, r3
  11265. 8005278: 68fb ldr r3, [r7, #12]
  11266. 800527a: 4413 add r3, r2
  11267. 800527c: 60fb str r3, [r7, #12]
  11268. }
  11269. while ((HAL_GetTick() - tickstart) < wait)
  11270. 800527e: bf00 nop
  11271. 8005280: f7ff ffde bl 8005240 <HAL_GetTick>
  11272. 8005284: 4602 mov r2, r0
  11273. 8005286: 68bb ldr r3, [r7, #8]
  11274. 8005288: 1ad3 subs r3, r2, r3
  11275. 800528a: 68fa ldr r2, [r7, #12]
  11276. 800528c: 429a cmp r2, r3
  11277. 800528e: d8f7 bhi.n 8005280 <HAL_Delay+0x28>
  11278. {
  11279. }
  11280. }
  11281. 8005290: bf00 nop
  11282. 8005292: bf00 nop
  11283. 8005294: 3710 adds r7, #16
  11284. 8005296: 46bd mov sp, r7
  11285. 8005298: bd80 pop {r7, pc}
  11286. 800529a: bf00 nop
  11287. 800529c: 24000030 .word 0x24000030
  11288. 080052a0 <HAL_GetREVID>:
  11289. /**
  11290. * @brief Returns the device revision identifier.
  11291. * @retval Device revision identifier
  11292. */
  11293. uint32_t HAL_GetREVID(void)
  11294. {
  11295. 80052a0: b480 push {r7}
  11296. 80052a2: af00 add r7, sp, #0
  11297. return((DBGMCU->IDCODE) >> 16);
  11298. 80052a4: 4b03 ldr r3, [pc, #12] @ (80052b4 <HAL_GetREVID+0x14>)
  11299. 80052a6: 681b ldr r3, [r3, #0]
  11300. 80052a8: 0c1b lsrs r3, r3, #16
  11301. }
  11302. 80052aa: 4618 mov r0, r3
  11303. 80052ac: 46bd mov sp, r7
  11304. 80052ae: f85d 7b04 ldr.w r7, [sp], #4
  11305. 80052b2: 4770 bx lr
  11306. 80052b4: 5c001000 .word 0x5c001000
  11307. 080052b8 <HAL_SYSCFG_ETHInterfaceSelect>:
  11308. * @arg SYSCFG_ETH_MII : Select the Media Independent Interface
  11309. * @arg SYSCFG_ETH_RMII: Select the Reduced Media Independent Interface
  11310. * @retval None
  11311. */
  11312. void HAL_SYSCFG_ETHInterfaceSelect(uint32_t SYSCFG_ETHInterface)
  11313. {
  11314. 80052b8: b480 push {r7}
  11315. 80052ba: b083 sub sp, #12
  11316. 80052bc: af00 add r7, sp, #0
  11317. 80052be: 6078 str r0, [r7, #4]
  11318. /* Check the parameter */
  11319. assert_param(IS_SYSCFG_ETHERNET_CONFIG(SYSCFG_ETHInterface));
  11320. MODIFY_REG(SYSCFG->PMCR, SYSCFG_PMCR_EPIS_SEL, (uint32_t)(SYSCFG_ETHInterface));
  11321. 80052c0: 4b06 ldr r3, [pc, #24] @ (80052dc <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  11322. 80052c2: 685b ldr r3, [r3, #4]
  11323. 80052c4: f423 0260 bic.w r2, r3, #14680064 @ 0xe00000
  11324. 80052c8: 4904 ldr r1, [pc, #16] @ (80052dc <HAL_SYSCFG_ETHInterfaceSelect+0x24>)
  11325. 80052ca: 687b ldr r3, [r7, #4]
  11326. 80052cc: 4313 orrs r3, r2
  11327. 80052ce: 604b str r3, [r1, #4]
  11328. }
  11329. 80052d0: bf00 nop
  11330. 80052d2: 370c adds r7, #12
  11331. 80052d4: 46bd mov sp, r7
  11332. 80052d6: f85d 7b04 ldr.w r7, [sp], #4
  11333. 80052da: 4770 bx lr
  11334. 80052dc: 58000400 .word 0x58000400
  11335. 080052e0 <__NVIC_SetPriorityGrouping>:
  11336. {
  11337. 80052e0: b480 push {r7}
  11338. 80052e2: b085 sub sp, #20
  11339. 80052e4: af00 add r7, sp, #0
  11340. 80052e6: 6078 str r0, [r7, #4]
  11341. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  11342. 80052e8: 687b ldr r3, [r7, #4]
  11343. 80052ea: f003 0307 and.w r3, r3, #7
  11344. 80052ee: 60fb str r3, [r7, #12]
  11345. reg_value = SCB->AIRCR; /* read old register configuration */
  11346. 80052f0: 4b0b ldr r3, [pc, #44] @ (8005320 <__NVIC_SetPriorityGrouping+0x40>)
  11347. 80052f2: 68db ldr r3, [r3, #12]
  11348. 80052f4: 60bb str r3, [r7, #8]
  11349. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  11350. 80052f6: 68ba ldr r2, [r7, #8]
  11351. 80052f8: f64f 03ff movw r3, #63743 @ 0xf8ff
  11352. 80052fc: 4013 ands r3, r2
  11353. 80052fe: 60bb str r3, [r7, #8]
  11354. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  11355. 8005300: 68fb ldr r3, [r7, #12]
  11356. 8005302: 021a lsls r2, r3, #8
  11357. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  11358. 8005304: 68bb ldr r3, [r7, #8]
  11359. 8005306: 431a orrs r2, r3
  11360. reg_value = (reg_value |
  11361. 8005308: 4b06 ldr r3, [pc, #24] @ (8005324 <__NVIC_SetPriorityGrouping+0x44>)
  11362. 800530a: 4313 orrs r3, r2
  11363. 800530c: 60bb str r3, [r7, #8]
  11364. SCB->AIRCR = reg_value;
  11365. 800530e: 4a04 ldr r2, [pc, #16] @ (8005320 <__NVIC_SetPriorityGrouping+0x40>)
  11366. 8005310: 68bb ldr r3, [r7, #8]
  11367. 8005312: 60d3 str r3, [r2, #12]
  11368. }
  11369. 8005314: bf00 nop
  11370. 8005316: 3714 adds r7, #20
  11371. 8005318: 46bd mov sp, r7
  11372. 800531a: f85d 7b04 ldr.w r7, [sp], #4
  11373. 800531e: 4770 bx lr
  11374. 8005320: e000ed00 .word 0xe000ed00
  11375. 8005324: 05fa0000 .word 0x05fa0000
  11376. 08005328 <__NVIC_GetPriorityGrouping>:
  11377. {
  11378. 8005328: b480 push {r7}
  11379. 800532a: af00 add r7, sp, #0
  11380. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  11381. 800532c: 4b04 ldr r3, [pc, #16] @ (8005340 <__NVIC_GetPriorityGrouping+0x18>)
  11382. 800532e: 68db ldr r3, [r3, #12]
  11383. 8005330: 0a1b lsrs r3, r3, #8
  11384. 8005332: f003 0307 and.w r3, r3, #7
  11385. }
  11386. 8005336: 4618 mov r0, r3
  11387. 8005338: 46bd mov sp, r7
  11388. 800533a: f85d 7b04 ldr.w r7, [sp], #4
  11389. 800533e: 4770 bx lr
  11390. 8005340: e000ed00 .word 0xe000ed00
  11391. 08005344 <__NVIC_EnableIRQ>:
  11392. {
  11393. 8005344: b480 push {r7}
  11394. 8005346: b083 sub sp, #12
  11395. 8005348: af00 add r7, sp, #0
  11396. 800534a: 4603 mov r3, r0
  11397. 800534c: 80fb strh r3, [r7, #6]
  11398. if ((int32_t)(IRQn) >= 0)
  11399. 800534e: f9b7 3006 ldrsh.w r3, [r7, #6]
  11400. 8005352: 2b00 cmp r3, #0
  11401. 8005354: db0b blt.n 800536e <__NVIC_EnableIRQ+0x2a>
  11402. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  11403. 8005356: 88fb ldrh r3, [r7, #6]
  11404. 8005358: f003 021f and.w r2, r3, #31
  11405. 800535c: 4907 ldr r1, [pc, #28] @ (800537c <__NVIC_EnableIRQ+0x38>)
  11406. 800535e: f9b7 3006 ldrsh.w r3, [r7, #6]
  11407. 8005362: 095b lsrs r3, r3, #5
  11408. 8005364: 2001 movs r0, #1
  11409. 8005366: fa00 f202 lsl.w r2, r0, r2
  11410. 800536a: f841 2023 str.w r2, [r1, r3, lsl #2]
  11411. }
  11412. 800536e: bf00 nop
  11413. 8005370: 370c adds r7, #12
  11414. 8005372: 46bd mov sp, r7
  11415. 8005374: f85d 7b04 ldr.w r7, [sp], #4
  11416. 8005378: 4770 bx lr
  11417. 800537a: bf00 nop
  11418. 800537c: e000e100 .word 0xe000e100
  11419. 08005380 <__NVIC_SetPriority>:
  11420. {
  11421. 8005380: b480 push {r7}
  11422. 8005382: b083 sub sp, #12
  11423. 8005384: af00 add r7, sp, #0
  11424. 8005386: 4603 mov r3, r0
  11425. 8005388: 6039 str r1, [r7, #0]
  11426. 800538a: 80fb strh r3, [r7, #6]
  11427. if ((int32_t)(IRQn) >= 0)
  11428. 800538c: f9b7 3006 ldrsh.w r3, [r7, #6]
  11429. 8005390: 2b00 cmp r3, #0
  11430. 8005392: db0a blt.n 80053aa <__NVIC_SetPriority+0x2a>
  11431. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  11432. 8005394: 683b ldr r3, [r7, #0]
  11433. 8005396: b2da uxtb r2, r3
  11434. 8005398: 490c ldr r1, [pc, #48] @ (80053cc <__NVIC_SetPriority+0x4c>)
  11435. 800539a: f9b7 3006 ldrsh.w r3, [r7, #6]
  11436. 800539e: 0112 lsls r2, r2, #4
  11437. 80053a0: b2d2 uxtb r2, r2
  11438. 80053a2: 440b add r3, r1
  11439. 80053a4: f883 2300 strb.w r2, [r3, #768] @ 0x300
  11440. }
  11441. 80053a8: e00a b.n 80053c0 <__NVIC_SetPriority+0x40>
  11442. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  11443. 80053aa: 683b ldr r3, [r7, #0]
  11444. 80053ac: b2da uxtb r2, r3
  11445. 80053ae: 4908 ldr r1, [pc, #32] @ (80053d0 <__NVIC_SetPriority+0x50>)
  11446. 80053b0: 88fb ldrh r3, [r7, #6]
  11447. 80053b2: f003 030f and.w r3, r3, #15
  11448. 80053b6: 3b04 subs r3, #4
  11449. 80053b8: 0112 lsls r2, r2, #4
  11450. 80053ba: b2d2 uxtb r2, r2
  11451. 80053bc: 440b add r3, r1
  11452. 80053be: 761a strb r2, [r3, #24]
  11453. }
  11454. 80053c0: bf00 nop
  11455. 80053c2: 370c adds r7, #12
  11456. 80053c4: 46bd mov sp, r7
  11457. 80053c6: f85d 7b04 ldr.w r7, [sp], #4
  11458. 80053ca: 4770 bx lr
  11459. 80053cc: e000e100 .word 0xe000e100
  11460. 80053d0: e000ed00 .word 0xe000ed00
  11461. 080053d4 <NVIC_EncodePriority>:
  11462. {
  11463. 80053d4: b480 push {r7}
  11464. 80053d6: b089 sub sp, #36 @ 0x24
  11465. 80053d8: af00 add r7, sp, #0
  11466. 80053da: 60f8 str r0, [r7, #12]
  11467. 80053dc: 60b9 str r1, [r7, #8]
  11468. 80053de: 607a str r2, [r7, #4]
  11469. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  11470. 80053e0: 68fb ldr r3, [r7, #12]
  11471. 80053e2: f003 0307 and.w r3, r3, #7
  11472. 80053e6: 61fb str r3, [r7, #28]
  11473. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  11474. 80053e8: 69fb ldr r3, [r7, #28]
  11475. 80053ea: f1c3 0307 rsb r3, r3, #7
  11476. 80053ee: 2b04 cmp r3, #4
  11477. 80053f0: bf28 it cs
  11478. 80053f2: 2304 movcs r3, #4
  11479. 80053f4: 61bb str r3, [r7, #24]
  11480. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  11481. 80053f6: 69fb ldr r3, [r7, #28]
  11482. 80053f8: 3304 adds r3, #4
  11483. 80053fa: 2b06 cmp r3, #6
  11484. 80053fc: d902 bls.n 8005404 <NVIC_EncodePriority+0x30>
  11485. 80053fe: 69fb ldr r3, [r7, #28]
  11486. 8005400: 3b03 subs r3, #3
  11487. 8005402: e000 b.n 8005406 <NVIC_EncodePriority+0x32>
  11488. 8005404: 2300 movs r3, #0
  11489. 8005406: 617b str r3, [r7, #20]
  11490. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  11491. 8005408: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  11492. 800540c: 69bb ldr r3, [r7, #24]
  11493. 800540e: fa02 f303 lsl.w r3, r2, r3
  11494. 8005412: 43da mvns r2, r3
  11495. 8005414: 68bb ldr r3, [r7, #8]
  11496. 8005416: 401a ands r2, r3
  11497. 8005418: 697b ldr r3, [r7, #20]
  11498. 800541a: 409a lsls r2, r3
  11499. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  11500. 800541c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11501. 8005420: 697b ldr r3, [r7, #20]
  11502. 8005422: fa01 f303 lsl.w r3, r1, r3
  11503. 8005426: 43d9 mvns r1, r3
  11504. 8005428: 687b ldr r3, [r7, #4]
  11505. 800542a: 400b ands r3, r1
  11506. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  11507. 800542c: 4313 orrs r3, r2
  11508. }
  11509. 800542e: 4618 mov r0, r3
  11510. 8005430: 3724 adds r7, #36 @ 0x24
  11511. 8005432: 46bd mov sp, r7
  11512. 8005434: f85d 7b04 ldr.w r7, [sp], #4
  11513. 8005438: 4770 bx lr
  11514. 0800543a <HAL_NVIC_SetPriorityGrouping>:
  11515. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  11516. * The pending IRQ priority will be managed only by the subpriority.
  11517. * @retval None
  11518. */
  11519. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  11520. {
  11521. 800543a: b580 push {r7, lr}
  11522. 800543c: b082 sub sp, #8
  11523. 800543e: af00 add r7, sp, #0
  11524. 8005440: 6078 str r0, [r7, #4]
  11525. /* Check the parameters */
  11526. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  11527. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  11528. NVIC_SetPriorityGrouping(PriorityGroup);
  11529. 8005442: 6878 ldr r0, [r7, #4]
  11530. 8005444: f7ff ff4c bl 80052e0 <__NVIC_SetPriorityGrouping>
  11531. }
  11532. 8005448: bf00 nop
  11533. 800544a: 3708 adds r7, #8
  11534. 800544c: 46bd mov sp, r7
  11535. 800544e: bd80 pop {r7, pc}
  11536. 08005450 <HAL_NVIC_SetPriority>:
  11537. * This parameter can be a value between 0 and 15
  11538. * A lower priority value indicates a higher priority.
  11539. * @retval None
  11540. */
  11541. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  11542. {
  11543. 8005450: b580 push {r7, lr}
  11544. 8005452: b086 sub sp, #24
  11545. 8005454: af00 add r7, sp, #0
  11546. 8005456: 4603 mov r3, r0
  11547. 8005458: 60b9 str r1, [r7, #8]
  11548. 800545a: 607a str r2, [r7, #4]
  11549. 800545c: 81fb strh r3, [r7, #14]
  11550. /* Check the parameters */
  11551. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  11552. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  11553. prioritygroup = NVIC_GetPriorityGrouping();
  11554. 800545e: f7ff ff63 bl 8005328 <__NVIC_GetPriorityGrouping>
  11555. 8005462: 6178 str r0, [r7, #20]
  11556. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  11557. 8005464: 687a ldr r2, [r7, #4]
  11558. 8005466: 68b9 ldr r1, [r7, #8]
  11559. 8005468: 6978 ldr r0, [r7, #20]
  11560. 800546a: f7ff ffb3 bl 80053d4 <NVIC_EncodePriority>
  11561. 800546e: 4602 mov r2, r0
  11562. 8005470: f9b7 300e ldrsh.w r3, [r7, #14]
  11563. 8005474: 4611 mov r1, r2
  11564. 8005476: 4618 mov r0, r3
  11565. 8005478: f7ff ff82 bl 8005380 <__NVIC_SetPriority>
  11566. }
  11567. 800547c: bf00 nop
  11568. 800547e: 3718 adds r7, #24
  11569. 8005480: 46bd mov sp, r7
  11570. 8005482: bd80 pop {r7, pc}
  11571. 08005484 <HAL_NVIC_EnableIRQ>:
  11572. * This parameter can be an enumerator of IRQn_Type enumeration
  11573. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  11574. * @retval None
  11575. */
  11576. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  11577. {
  11578. 8005484: b580 push {r7, lr}
  11579. 8005486: b082 sub sp, #8
  11580. 8005488: af00 add r7, sp, #0
  11581. 800548a: 4603 mov r3, r0
  11582. 800548c: 80fb strh r3, [r7, #6]
  11583. /* Check the parameters */
  11584. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  11585. /* Enable interrupt */
  11586. NVIC_EnableIRQ(IRQn);
  11587. 800548e: f9b7 3006 ldrsh.w r3, [r7, #6]
  11588. 8005492: 4618 mov r0, r3
  11589. 8005494: f7ff ff56 bl 8005344 <__NVIC_EnableIRQ>
  11590. }
  11591. 8005498: bf00 nop
  11592. 800549a: 3708 adds r7, #8
  11593. 800549c: 46bd mov sp, r7
  11594. 800549e: bd80 pop {r7, pc}
  11595. 080054a0 <HAL_MPU_Disable>:
  11596. /**
  11597. * @brief Disables the MPU
  11598. * @retval None
  11599. */
  11600. void HAL_MPU_Disable(void)
  11601. {
  11602. 80054a0: b480 push {r7}
  11603. 80054a2: af00 add r7, sp, #0
  11604. \details Ensures the apparent order of the explicit memory operations before
  11605. and after the instruction, without ensuring their completion.
  11606. */
  11607. __STATIC_FORCEINLINE void __DMB(void)
  11608. {
  11609. __ASM volatile ("dmb 0xF":::"memory");
  11610. 80054a4: f3bf 8f5f dmb sy
  11611. }
  11612. 80054a8: bf00 nop
  11613. /* Make sure outstanding transfers are done */
  11614. __DMB();
  11615. /* Disable fault exceptions */
  11616. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  11617. 80054aa: 4b07 ldr r3, [pc, #28] @ (80054c8 <HAL_MPU_Disable+0x28>)
  11618. 80054ac: 6a5b ldr r3, [r3, #36] @ 0x24
  11619. 80054ae: 4a06 ldr r2, [pc, #24] @ (80054c8 <HAL_MPU_Disable+0x28>)
  11620. 80054b0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  11621. 80054b4: 6253 str r3, [r2, #36] @ 0x24
  11622. /* Disable the MPU and clear the control register*/
  11623. MPU->CTRL = 0;
  11624. 80054b6: 4b05 ldr r3, [pc, #20] @ (80054cc <HAL_MPU_Disable+0x2c>)
  11625. 80054b8: 2200 movs r2, #0
  11626. 80054ba: 605a str r2, [r3, #4]
  11627. }
  11628. 80054bc: bf00 nop
  11629. 80054be: 46bd mov sp, r7
  11630. 80054c0: f85d 7b04 ldr.w r7, [sp], #4
  11631. 80054c4: 4770 bx lr
  11632. 80054c6: bf00 nop
  11633. 80054c8: e000ed00 .word 0xe000ed00
  11634. 80054cc: e000ed90 .word 0xe000ed90
  11635. 080054d0 <HAL_MPU_Enable>:
  11636. * @arg MPU_PRIVILEGED_DEFAULT
  11637. * @arg MPU_HFNMI_PRIVDEF
  11638. * @retval None
  11639. */
  11640. void HAL_MPU_Enable(uint32_t MPU_Control)
  11641. {
  11642. 80054d0: b480 push {r7}
  11643. 80054d2: b083 sub sp, #12
  11644. 80054d4: af00 add r7, sp, #0
  11645. 80054d6: 6078 str r0, [r7, #4]
  11646. /* Enable the MPU */
  11647. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  11648. 80054d8: 4a0b ldr r2, [pc, #44] @ (8005508 <HAL_MPU_Enable+0x38>)
  11649. 80054da: 687b ldr r3, [r7, #4]
  11650. 80054dc: f043 0301 orr.w r3, r3, #1
  11651. 80054e0: 6053 str r3, [r2, #4]
  11652. /* Enable fault exceptions */
  11653. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  11654. 80054e2: 4b0a ldr r3, [pc, #40] @ (800550c <HAL_MPU_Enable+0x3c>)
  11655. 80054e4: 6a5b ldr r3, [r3, #36] @ 0x24
  11656. 80054e6: 4a09 ldr r2, [pc, #36] @ (800550c <HAL_MPU_Enable+0x3c>)
  11657. 80054e8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  11658. 80054ec: 6253 str r3, [r2, #36] @ 0x24
  11659. __ASM volatile ("dsb 0xF":::"memory");
  11660. 80054ee: f3bf 8f4f dsb sy
  11661. }
  11662. 80054f2: bf00 nop
  11663. __ASM volatile ("isb 0xF":::"memory");
  11664. 80054f4: f3bf 8f6f isb sy
  11665. }
  11666. 80054f8: bf00 nop
  11667. /* Ensure MPU setting take effects */
  11668. __DSB();
  11669. __ISB();
  11670. }
  11671. 80054fa: bf00 nop
  11672. 80054fc: 370c adds r7, #12
  11673. 80054fe: 46bd mov sp, r7
  11674. 8005500: f85d 7b04 ldr.w r7, [sp], #4
  11675. 8005504: 4770 bx lr
  11676. 8005506: bf00 nop
  11677. 8005508: e000ed90 .word 0xe000ed90
  11678. 800550c: e000ed00 .word 0xe000ed00
  11679. 08005510 <HAL_MPU_ConfigRegion>:
  11680. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  11681. * the initialization and configuration information.
  11682. * @retval None
  11683. */
  11684. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  11685. {
  11686. 8005510: b480 push {r7}
  11687. 8005512: b083 sub sp, #12
  11688. 8005514: af00 add r7, sp, #0
  11689. 8005516: 6078 str r0, [r7, #4]
  11690. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  11691. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  11692. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  11693. /* Set the Region number */
  11694. MPU->RNR = MPU_Init->Number;
  11695. 8005518: 687b ldr r3, [r7, #4]
  11696. 800551a: 785a ldrb r2, [r3, #1]
  11697. 800551c: 4b1b ldr r3, [pc, #108] @ (800558c <HAL_MPU_ConfigRegion+0x7c>)
  11698. 800551e: 609a str r2, [r3, #8]
  11699. /* Disable the Region */
  11700. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  11701. 8005520: 4b1a ldr r3, [pc, #104] @ (800558c <HAL_MPU_ConfigRegion+0x7c>)
  11702. 8005522: 691b ldr r3, [r3, #16]
  11703. 8005524: 4a19 ldr r2, [pc, #100] @ (800558c <HAL_MPU_ConfigRegion+0x7c>)
  11704. 8005526: f023 0301 bic.w r3, r3, #1
  11705. 800552a: 6113 str r3, [r2, #16]
  11706. /* Apply configuration */
  11707. MPU->RBAR = MPU_Init->BaseAddress;
  11708. 800552c: 4a17 ldr r2, [pc, #92] @ (800558c <HAL_MPU_ConfigRegion+0x7c>)
  11709. 800552e: 687b ldr r3, [r7, #4]
  11710. 8005530: 685b ldr r3, [r3, #4]
  11711. 8005532: 60d3 str r3, [r2, #12]
  11712. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11713. 8005534: 687b ldr r3, [r7, #4]
  11714. 8005536: 7b1b ldrb r3, [r3, #12]
  11715. 8005538: 071a lsls r2, r3, #28
  11716. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  11717. 800553a: 687b ldr r3, [r7, #4]
  11718. 800553c: 7adb ldrb r3, [r3, #11]
  11719. 800553e: 061b lsls r3, r3, #24
  11720. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11721. 8005540: 431a orrs r2, r3
  11722. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  11723. 8005542: 687b ldr r3, [r7, #4]
  11724. 8005544: 7a9b ldrb r3, [r3, #10]
  11725. 8005546: 04db lsls r3, r3, #19
  11726. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  11727. 8005548: 431a orrs r2, r3
  11728. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  11729. 800554a: 687b ldr r3, [r7, #4]
  11730. 800554c: 7b5b ldrb r3, [r3, #13]
  11731. 800554e: 049b lsls r3, r3, #18
  11732. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  11733. 8005550: 431a orrs r2, r3
  11734. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  11735. 8005552: 687b ldr r3, [r7, #4]
  11736. 8005554: 7b9b ldrb r3, [r3, #14]
  11737. 8005556: 045b lsls r3, r3, #17
  11738. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  11739. 8005558: 431a orrs r2, r3
  11740. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  11741. 800555a: 687b ldr r3, [r7, #4]
  11742. 800555c: 7bdb ldrb r3, [r3, #15]
  11743. 800555e: 041b lsls r3, r3, #16
  11744. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  11745. 8005560: 431a orrs r2, r3
  11746. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  11747. 8005562: 687b ldr r3, [r7, #4]
  11748. 8005564: 7a5b ldrb r3, [r3, #9]
  11749. 8005566: 021b lsls r3, r3, #8
  11750. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  11751. 8005568: 431a orrs r2, r3
  11752. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  11753. 800556a: 687b ldr r3, [r7, #4]
  11754. 800556c: 7a1b ldrb r3, [r3, #8]
  11755. 800556e: 005b lsls r3, r3, #1
  11756. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  11757. 8005570: 4313 orrs r3, r2
  11758. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  11759. 8005572: 687a ldr r2, [r7, #4]
  11760. 8005574: 7812 ldrb r2, [r2, #0]
  11761. 8005576: 4611 mov r1, r2
  11762. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11763. 8005578: 4a04 ldr r2, [pc, #16] @ (800558c <HAL_MPU_ConfigRegion+0x7c>)
  11764. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  11765. 800557a: 430b orrs r3, r1
  11766. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  11767. 800557c: 6113 str r3, [r2, #16]
  11768. }
  11769. 800557e: bf00 nop
  11770. 8005580: 370c adds r7, #12
  11771. 8005582: 46bd mov sp, r7
  11772. 8005584: f85d 7b04 ldr.w r7, [sp], #4
  11773. 8005588: 4770 bx lr
  11774. 800558a: bf00 nop
  11775. 800558c: e000ed90 .word 0xe000ed90
  11776. 08005590 <HAL_CRC_Init>:
  11777. * parameters in the CRC_InitTypeDef and create the associated handle.
  11778. * @param hcrc CRC handle
  11779. * @retval HAL status
  11780. */
  11781. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  11782. {
  11783. 8005590: b580 push {r7, lr}
  11784. 8005592: b082 sub sp, #8
  11785. 8005594: af00 add r7, sp, #0
  11786. 8005596: 6078 str r0, [r7, #4]
  11787. /* Check the CRC handle allocation */
  11788. if (hcrc == NULL)
  11789. 8005598: 687b ldr r3, [r7, #4]
  11790. 800559a: 2b00 cmp r3, #0
  11791. 800559c: d101 bne.n 80055a2 <HAL_CRC_Init+0x12>
  11792. {
  11793. return HAL_ERROR;
  11794. 800559e: 2301 movs r3, #1
  11795. 80055a0: e054 b.n 800564c <HAL_CRC_Init+0xbc>
  11796. }
  11797. /* Check the parameters */
  11798. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  11799. if (hcrc->State == HAL_CRC_STATE_RESET)
  11800. 80055a2: 687b ldr r3, [r7, #4]
  11801. 80055a4: 7f5b ldrb r3, [r3, #29]
  11802. 80055a6: b2db uxtb r3, r3
  11803. 80055a8: 2b00 cmp r3, #0
  11804. 80055aa: d105 bne.n 80055b8 <HAL_CRC_Init+0x28>
  11805. {
  11806. /* Allocate lock resource and initialize it */
  11807. hcrc->Lock = HAL_UNLOCKED;
  11808. 80055ac: 687b ldr r3, [r7, #4]
  11809. 80055ae: 2200 movs r2, #0
  11810. 80055b0: 771a strb r2, [r3, #28]
  11811. /* Init the low level hardware */
  11812. HAL_CRC_MspInit(hcrc);
  11813. 80055b2: 6878 ldr r0, [r7, #4]
  11814. 80055b4: f7fd ffd4 bl 8003560 <HAL_CRC_MspInit>
  11815. }
  11816. hcrc->State = HAL_CRC_STATE_BUSY;
  11817. 80055b8: 687b ldr r3, [r7, #4]
  11818. 80055ba: 2202 movs r2, #2
  11819. 80055bc: 775a strb r2, [r3, #29]
  11820. /* check whether or not non-default generating polynomial has been
  11821. * picked up by user */
  11822. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  11823. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  11824. 80055be: 687b ldr r3, [r7, #4]
  11825. 80055c0: 791b ldrb r3, [r3, #4]
  11826. 80055c2: 2b00 cmp r3, #0
  11827. 80055c4: d10c bne.n 80055e0 <HAL_CRC_Init+0x50>
  11828. {
  11829. /* initialize peripheral with default generating polynomial */
  11830. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  11831. 80055c6: 687b ldr r3, [r7, #4]
  11832. 80055c8: 681b ldr r3, [r3, #0]
  11833. 80055ca: 4a22 ldr r2, [pc, #136] @ (8005654 <HAL_CRC_Init+0xc4>)
  11834. 80055cc: 615a str r2, [r3, #20]
  11835. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  11836. 80055ce: 687b ldr r3, [r7, #4]
  11837. 80055d0: 681b ldr r3, [r3, #0]
  11838. 80055d2: 689a ldr r2, [r3, #8]
  11839. 80055d4: 687b ldr r3, [r7, #4]
  11840. 80055d6: 681b ldr r3, [r3, #0]
  11841. 80055d8: f022 0218 bic.w r2, r2, #24
  11842. 80055dc: 609a str r2, [r3, #8]
  11843. 80055de: e00c b.n 80055fa <HAL_CRC_Init+0x6a>
  11844. }
  11845. else
  11846. {
  11847. /* initialize CRC peripheral with generating polynomial defined by user */
  11848. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  11849. 80055e0: 687b ldr r3, [r7, #4]
  11850. 80055e2: 6899 ldr r1, [r3, #8]
  11851. 80055e4: 687b ldr r3, [r7, #4]
  11852. 80055e6: 68db ldr r3, [r3, #12]
  11853. 80055e8: 461a mov r2, r3
  11854. 80055ea: 6878 ldr r0, [r7, #4]
  11855. 80055ec: f000 f948 bl 8005880 <HAL_CRCEx_Polynomial_Set>
  11856. 80055f0: 4603 mov r3, r0
  11857. 80055f2: 2b00 cmp r3, #0
  11858. 80055f4: d001 beq.n 80055fa <HAL_CRC_Init+0x6a>
  11859. {
  11860. return HAL_ERROR;
  11861. 80055f6: 2301 movs r3, #1
  11862. 80055f8: e028 b.n 800564c <HAL_CRC_Init+0xbc>
  11863. }
  11864. /* check whether or not non-default CRC initial value has been
  11865. * picked up by user */
  11866. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  11867. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  11868. 80055fa: 687b ldr r3, [r7, #4]
  11869. 80055fc: 795b ldrb r3, [r3, #5]
  11870. 80055fe: 2b00 cmp r3, #0
  11871. 8005600: d105 bne.n 800560e <HAL_CRC_Init+0x7e>
  11872. {
  11873. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  11874. 8005602: 687b ldr r3, [r7, #4]
  11875. 8005604: 681b ldr r3, [r3, #0]
  11876. 8005606: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  11877. 800560a: 611a str r2, [r3, #16]
  11878. 800560c: e004 b.n 8005618 <HAL_CRC_Init+0x88>
  11879. }
  11880. else
  11881. {
  11882. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  11883. 800560e: 687b ldr r3, [r7, #4]
  11884. 8005610: 681b ldr r3, [r3, #0]
  11885. 8005612: 687a ldr r2, [r7, #4]
  11886. 8005614: 6912 ldr r2, [r2, #16]
  11887. 8005616: 611a str r2, [r3, #16]
  11888. }
  11889. /* set input data inversion mode */
  11890. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  11891. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  11892. 8005618: 687b ldr r3, [r7, #4]
  11893. 800561a: 681b ldr r3, [r3, #0]
  11894. 800561c: 689b ldr r3, [r3, #8]
  11895. 800561e: f023 0160 bic.w r1, r3, #96 @ 0x60
  11896. 8005622: 687b ldr r3, [r7, #4]
  11897. 8005624: 695a ldr r2, [r3, #20]
  11898. 8005626: 687b ldr r3, [r7, #4]
  11899. 8005628: 681b ldr r3, [r3, #0]
  11900. 800562a: 430a orrs r2, r1
  11901. 800562c: 609a str r2, [r3, #8]
  11902. /* set output data inversion mode */
  11903. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  11904. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  11905. 800562e: 687b ldr r3, [r7, #4]
  11906. 8005630: 681b ldr r3, [r3, #0]
  11907. 8005632: 689b ldr r3, [r3, #8]
  11908. 8005634: f023 0180 bic.w r1, r3, #128 @ 0x80
  11909. 8005638: 687b ldr r3, [r7, #4]
  11910. 800563a: 699a ldr r2, [r3, #24]
  11911. 800563c: 687b ldr r3, [r7, #4]
  11912. 800563e: 681b ldr r3, [r3, #0]
  11913. 8005640: 430a orrs r2, r1
  11914. 8005642: 609a str r2, [r3, #8]
  11915. /* makes sure the input data format (bytes, halfwords or words stream)
  11916. * is properly specified by user */
  11917. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  11918. /* Change CRC peripheral state */
  11919. hcrc->State = HAL_CRC_STATE_READY;
  11920. 8005644: 687b ldr r3, [r7, #4]
  11921. 8005646: 2201 movs r2, #1
  11922. 8005648: 775a strb r2, [r3, #29]
  11923. /* Return function status */
  11924. return HAL_OK;
  11925. 800564a: 2300 movs r3, #0
  11926. }
  11927. 800564c: 4618 mov r0, r3
  11928. 800564e: 3708 adds r7, #8
  11929. 8005650: 46bd mov sp, r7
  11930. 8005652: bd80 pop {r7, pc}
  11931. 8005654: 04c11db7 .word 0x04c11db7
  11932. 08005658 <HAL_CRC_Calculate>:
  11933. * and the API will internally adjust its input data processing based on the
  11934. * handle field hcrc->InputDataFormat.
  11935. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  11936. */
  11937. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  11938. {
  11939. 8005658: b580 push {r7, lr}
  11940. 800565a: b086 sub sp, #24
  11941. 800565c: af00 add r7, sp, #0
  11942. 800565e: 60f8 str r0, [r7, #12]
  11943. 8005660: 60b9 str r1, [r7, #8]
  11944. 8005662: 607a str r2, [r7, #4]
  11945. uint32_t index; /* CRC input data buffer index */
  11946. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  11947. 8005664: 2300 movs r3, #0
  11948. 8005666: 613b str r3, [r7, #16]
  11949. /* Change CRC peripheral state */
  11950. hcrc->State = HAL_CRC_STATE_BUSY;
  11951. 8005668: 68fb ldr r3, [r7, #12]
  11952. 800566a: 2202 movs r2, #2
  11953. 800566c: 775a strb r2, [r3, #29]
  11954. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  11955. * written in hcrc->Instance->DR) */
  11956. __HAL_CRC_DR_RESET(hcrc);
  11957. 800566e: 68fb ldr r3, [r7, #12]
  11958. 8005670: 681b ldr r3, [r3, #0]
  11959. 8005672: 689a ldr r2, [r3, #8]
  11960. 8005674: 68fb ldr r3, [r7, #12]
  11961. 8005676: 681b ldr r3, [r3, #0]
  11962. 8005678: f042 0201 orr.w r2, r2, #1
  11963. 800567c: 609a str r2, [r3, #8]
  11964. switch (hcrc->InputDataFormat)
  11965. 800567e: 68fb ldr r3, [r7, #12]
  11966. 8005680: 6a1b ldr r3, [r3, #32]
  11967. 8005682: 2b03 cmp r3, #3
  11968. 8005684: d006 beq.n 8005694 <HAL_CRC_Calculate+0x3c>
  11969. 8005686: 2b03 cmp r3, #3
  11970. 8005688: d829 bhi.n 80056de <HAL_CRC_Calculate+0x86>
  11971. 800568a: 2b01 cmp r3, #1
  11972. 800568c: d019 beq.n 80056c2 <HAL_CRC_Calculate+0x6a>
  11973. 800568e: 2b02 cmp r3, #2
  11974. 8005690: d01e beq.n 80056d0 <HAL_CRC_Calculate+0x78>
  11975. /* Specific 16-bit input data handling */
  11976. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  11977. break;
  11978. default:
  11979. break;
  11980. 8005692: e024 b.n 80056de <HAL_CRC_Calculate+0x86>
  11981. for (index = 0U; index < BufferLength; index++)
  11982. 8005694: 2300 movs r3, #0
  11983. 8005696: 617b str r3, [r7, #20]
  11984. 8005698: e00a b.n 80056b0 <HAL_CRC_Calculate+0x58>
  11985. hcrc->Instance->DR = pBuffer[index];
  11986. 800569a: 697b ldr r3, [r7, #20]
  11987. 800569c: 009b lsls r3, r3, #2
  11988. 800569e: 68ba ldr r2, [r7, #8]
  11989. 80056a0: 441a add r2, r3
  11990. 80056a2: 68fb ldr r3, [r7, #12]
  11991. 80056a4: 681b ldr r3, [r3, #0]
  11992. 80056a6: 6812 ldr r2, [r2, #0]
  11993. 80056a8: 601a str r2, [r3, #0]
  11994. for (index = 0U; index < BufferLength; index++)
  11995. 80056aa: 697b ldr r3, [r7, #20]
  11996. 80056ac: 3301 adds r3, #1
  11997. 80056ae: 617b str r3, [r7, #20]
  11998. 80056b0: 697a ldr r2, [r7, #20]
  11999. 80056b2: 687b ldr r3, [r7, #4]
  12000. 80056b4: 429a cmp r2, r3
  12001. 80056b6: d3f0 bcc.n 800569a <HAL_CRC_Calculate+0x42>
  12002. temp = hcrc->Instance->DR;
  12003. 80056b8: 68fb ldr r3, [r7, #12]
  12004. 80056ba: 681b ldr r3, [r3, #0]
  12005. 80056bc: 681b ldr r3, [r3, #0]
  12006. 80056be: 613b str r3, [r7, #16]
  12007. break;
  12008. 80056c0: e00e b.n 80056e0 <HAL_CRC_Calculate+0x88>
  12009. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  12010. 80056c2: 687a ldr r2, [r7, #4]
  12011. 80056c4: 68b9 ldr r1, [r7, #8]
  12012. 80056c6: 68f8 ldr r0, [r7, #12]
  12013. 80056c8: f000 f812 bl 80056f0 <CRC_Handle_8>
  12014. 80056cc: 6138 str r0, [r7, #16]
  12015. break;
  12016. 80056ce: e007 b.n 80056e0 <HAL_CRC_Calculate+0x88>
  12017. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  12018. 80056d0: 687a ldr r2, [r7, #4]
  12019. 80056d2: 68b9 ldr r1, [r7, #8]
  12020. 80056d4: 68f8 ldr r0, [r7, #12]
  12021. 80056d6: f000 f899 bl 800580c <CRC_Handle_16>
  12022. 80056da: 6138 str r0, [r7, #16]
  12023. break;
  12024. 80056dc: e000 b.n 80056e0 <HAL_CRC_Calculate+0x88>
  12025. break;
  12026. 80056de: bf00 nop
  12027. }
  12028. /* Change CRC peripheral state */
  12029. hcrc->State = HAL_CRC_STATE_READY;
  12030. 80056e0: 68fb ldr r3, [r7, #12]
  12031. 80056e2: 2201 movs r2, #1
  12032. 80056e4: 775a strb r2, [r3, #29]
  12033. /* Return the CRC computed value */
  12034. return temp;
  12035. 80056e6: 693b ldr r3, [r7, #16]
  12036. }
  12037. 80056e8: 4618 mov r0, r3
  12038. 80056ea: 3718 adds r7, #24
  12039. 80056ec: 46bd mov sp, r7
  12040. 80056ee: bd80 pop {r7, pc}
  12041. 080056f0 <CRC_Handle_8>:
  12042. * @param pBuffer pointer to the input data buffer
  12043. * @param BufferLength input data buffer length
  12044. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  12045. */
  12046. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  12047. {
  12048. 80056f0: b480 push {r7}
  12049. 80056f2: b089 sub sp, #36 @ 0x24
  12050. 80056f4: af00 add r7, sp, #0
  12051. 80056f6: 60f8 str r0, [r7, #12]
  12052. 80056f8: 60b9 str r1, [r7, #8]
  12053. 80056fa: 607a str r2, [r7, #4]
  12054. __IO uint16_t *pReg;
  12055. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  12056. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  12057. * handling by the peripheral */
  12058. for (i = 0U; i < (BufferLength / 4U); i++)
  12059. 80056fc: 2300 movs r3, #0
  12060. 80056fe: 61fb str r3, [r7, #28]
  12061. 8005700: e023 b.n 800574a <CRC_Handle_8+0x5a>
  12062. {
  12063. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12064. 8005702: 69fb ldr r3, [r7, #28]
  12065. 8005704: 009b lsls r3, r3, #2
  12066. 8005706: 68ba ldr r2, [r7, #8]
  12067. 8005708: 4413 add r3, r2
  12068. 800570a: 781b ldrb r3, [r3, #0]
  12069. 800570c: 061a lsls r2, r3, #24
  12070. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  12071. 800570e: 69fb ldr r3, [r7, #28]
  12072. 8005710: 009b lsls r3, r3, #2
  12073. 8005712: 3301 adds r3, #1
  12074. 8005714: 68b9 ldr r1, [r7, #8]
  12075. 8005716: 440b add r3, r1
  12076. 8005718: 781b ldrb r3, [r3, #0]
  12077. 800571a: 041b lsls r3, r3, #16
  12078. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12079. 800571c: 431a orrs r2, r3
  12080. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  12081. 800571e: 69fb ldr r3, [r7, #28]
  12082. 8005720: 009b lsls r3, r3, #2
  12083. 8005722: 3302 adds r3, #2
  12084. 8005724: 68b9 ldr r1, [r7, #8]
  12085. 8005726: 440b add r3, r1
  12086. 8005728: 781b ldrb r3, [r3, #0]
  12087. 800572a: 021b lsls r3, r3, #8
  12088. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  12089. 800572c: 431a orrs r2, r3
  12090. (uint32_t)pBuffer[(4U * i) + 3U];
  12091. 800572e: 69fb ldr r3, [r7, #28]
  12092. 8005730: 009b lsls r3, r3, #2
  12093. 8005732: 3303 adds r3, #3
  12094. 8005734: 68b9 ldr r1, [r7, #8]
  12095. 8005736: 440b add r3, r1
  12096. 8005738: 781b ldrb r3, [r3, #0]
  12097. 800573a: 4619 mov r1, r3
  12098. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12099. 800573c: 68fb ldr r3, [r7, #12]
  12100. 800573e: 681b ldr r3, [r3, #0]
  12101. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  12102. 8005740: 430a orrs r2, r1
  12103. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  12104. 8005742: 601a str r2, [r3, #0]
  12105. for (i = 0U; i < (BufferLength / 4U); i++)
  12106. 8005744: 69fb ldr r3, [r7, #28]
  12107. 8005746: 3301 adds r3, #1
  12108. 8005748: 61fb str r3, [r7, #28]
  12109. 800574a: 687b ldr r3, [r7, #4]
  12110. 800574c: 089b lsrs r3, r3, #2
  12111. 800574e: 69fa ldr r2, [r7, #28]
  12112. 8005750: 429a cmp r2, r3
  12113. 8005752: d3d6 bcc.n 8005702 <CRC_Handle_8+0x12>
  12114. }
  12115. /* last bytes specific handling */
  12116. if ((BufferLength % 4U) != 0U)
  12117. 8005754: 687b ldr r3, [r7, #4]
  12118. 8005756: f003 0303 and.w r3, r3, #3
  12119. 800575a: 2b00 cmp r3, #0
  12120. 800575c: d04d beq.n 80057fa <CRC_Handle_8+0x10a>
  12121. {
  12122. if ((BufferLength % 4U) == 1U)
  12123. 800575e: 687b ldr r3, [r7, #4]
  12124. 8005760: f003 0303 and.w r3, r3, #3
  12125. 8005764: 2b01 cmp r3, #1
  12126. 8005766: d107 bne.n 8005778 <CRC_Handle_8+0x88>
  12127. {
  12128. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  12129. 8005768: 69fb ldr r3, [r7, #28]
  12130. 800576a: 009b lsls r3, r3, #2
  12131. 800576c: 68ba ldr r2, [r7, #8]
  12132. 800576e: 4413 add r3, r2
  12133. 8005770: 68fa ldr r2, [r7, #12]
  12134. 8005772: 6812 ldr r2, [r2, #0]
  12135. 8005774: 781b ldrb r3, [r3, #0]
  12136. 8005776: 7013 strb r3, [r2, #0]
  12137. }
  12138. if ((BufferLength % 4U) == 2U)
  12139. 8005778: 687b ldr r3, [r7, #4]
  12140. 800577a: f003 0303 and.w r3, r3, #3
  12141. 800577e: 2b02 cmp r3, #2
  12142. 8005780: d116 bne.n 80057b0 <CRC_Handle_8+0xc0>
  12143. {
  12144. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  12145. 8005782: 69fb ldr r3, [r7, #28]
  12146. 8005784: 009b lsls r3, r3, #2
  12147. 8005786: 68ba ldr r2, [r7, #8]
  12148. 8005788: 4413 add r3, r2
  12149. 800578a: 781b ldrb r3, [r3, #0]
  12150. 800578c: 021b lsls r3, r3, #8
  12151. 800578e: b21a sxth r2, r3
  12152. 8005790: 69fb ldr r3, [r7, #28]
  12153. 8005792: 009b lsls r3, r3, #2
  12154. 8005794: 3301 adds r3, #1
  12155. 8005796: 68b9 ldr r1, [r7, #8]
  12156. 8005798: 440b add r3, r1
  12157. 800579a: 781b ldrb r3, [r3, #0]
  12158. 800579c: b21b sxth r3, r3
  12159. 800579e: 4313 orrs r3, r2
  12160. 80057a0: b21b sxth r3, r3
  12161. 80057a2: 837b strh r3, [r7, #26]
  12162. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  12163. 80057a4: 68fb ldr r3, [r7, #12]
  12164. 80057a6: 681b ldr r3, [r3, #0]
  12165. 80057a8: 617b str r3, [r7, #20]
  12166. *pReg = data;
  12167. 80057aa: 697b ldr r3, [r7, #20]
  12168. 80057ac: 8b7a ldrh r2, [r7, #26]
  12169. 80057ae: 801a strh r2, [r3, #0]
  12170. }
  12171. if ((BufferLength % 4U) == 3U)
  12172. 80057b0: 687b ldr r3, [r7, #4]
  12173. 80057b2: f003 0303 and.w r3, r3, #3
  12174. 80057b6: 2b03 cmp r3, #3
  12175. 80057b8: d11f bne.n 80057fa <CRC_Handle_8+0x10a>
  12176. {
  12177. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  12178. 80057ba: 69fb ldr r3, [r7, #28]
  12179. 80057bc: 009b lsls r3, r3, #2
  12180. 80057be: 68ba ldr r2, [r7, #8]
  12181. 80057c0: 4413 add r3, r2
  12182. 80057c2: 781b ldrb r3, [r3, #0]
  12183. 80057c4: 021b lsls r3, r3, #8
  12184. 80057c6: b21a sxth r2, r3
  12185. 80057c8: 69fb ldr r3, [r7, #28]
  12186. 80057ca: 009b lsls r3, r3, #2
  12187. 80057cc: 3301 adds r3, #1
  12188. 80057ce: 68b9 ldr r1, [r7, #8]
  12189. 80057d0: 440b add r3, r1
  12190. 80057d2: 781b ldrb r3, [r3, #0]
  12191. 80057d4: b21b sxth r3, r3
  12192. 80057d6: 4313 orrs r3, r2
  12193. 80057d8: b21b sxth r3, r3
  12194. 80057da: 837b strh r3, [r7, #26]
  12195. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  12196. 80057dc: 68fb ldr r3, [r7, #12]
  12197. 80057de: 681b ldr r3, [r3, #0]
  12198. 80057e0: 617b str r3, [r7, #20]
  12199. *pReg = data;
  12200. 80057e2: 697b ldr r3, [r7, #20]
  12201. 80057e4: 8b7a ldrh r2, [r7, #26]
  12202. 80057e6: 801a strh r2, [r3, #0]
  12203. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  12204. 80057e8: 69fb ldr r3, [r7, #28]
  12205. 80057ea: 009b lsls r3, r3, #2
  12206. 80057ec: 3302 adds r3, #2
  12207. 80057ee: 68ba ldr r2, [r7, #8]
  12208. 80057f0: 4413 add r3, r2
  12209. 80057f2: 68fa ldr r2, [r7, #12]
  12210. 80057f4: 6812 ldr r2, [r2, #0]
  12211. 80057f6: 781b ldrb r3, [r3, #0]
  12212. 80057f8: 7013 strb r3, [r2, #0]
  12213. }
  12214. }
  12215. /* Return the CRC computed value */
  12216. return hcrc->Instance->DR;
  12217. 80057fa: 68fb ldr r3, [r7, #12]
  12218. 80057fc: 681b ldr r3, [r3, #0]
  12219. 80057fe: 681b ldr r3, [r3, #0]
  12220. }
  12221. 8005800: 4618 mov r0, r3
  12222. 8005802: 3724 adds r7, #36 @ 0x24
  12223. 8005804: 46bd mov sp, r7
  12224. 8005806: f85d 7b04 ldr.w r7, [sp], #4
  12225. 800580a: 4770 bx lr
  12226. 0800580c <CRC_Handle_16>:
  12227. * @param pBuffer pointer to the input data buffer
  12228. * @param BufferLength input data buffer length
  12229. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  12230. */
  12231. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  12232. {
  12233. 800580c: b480 push {r7}
  12234. 800580e: b087 sub sp, #28
  12235. 8005810: af00 add r7, sp, #0
  12236. 8005812: 60f8 str r0, [r7, #12]
  12237. 8005814: 60b9 str r1, [r7, #8]
  12238. 8005816: 607a str r2, [r7, #4]
  12239. __IO uint16_t *pReg;
  12240. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  12241. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  12242. * a correct type handling by the peripheral */
  12243. for (i = 0U; i < (BufferLength / 2U); i++)
  12244. 8005818: 2300 movs r3, #0
  12245. 800581a: 617b str r3, [r7, #20]
  12246. 800581c: e013 b.n 8005846 <CRC_Handle_16+0x3a>
  12247. {
  12248. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  12249. 800581e: 697b ldr r3, [r7, #20]
  12250. 8005820: 009b lsls r3, r3, #2
  12251. 8005822: 68ba ldr r2, [r7, #8]
  12252. 8005824: 4413 add r3, r2
  12253. 8005826: 881b ldrh r3, [r3, #0]
  12254. 8005828: 041a lsls r2, r3, #16
  12255. 800582a: 697b ldr r3, [r7, #20]
  12256. 800582c: 009b lsls r3, r3, #2
  12257. 800582e: 3302 adds r3, #2
  12258. 8005830: 68b9 ldr r1, [r7, #8]
  12259. 8005832: 440b add r3, r1
  12260. 8005834: 881b ldrh r3, [r3, #0]
  12261. 8005836: 4619 mov r1, r3
  12262. 8005838: 68fb ldr r3, [r7, #12]
  12263. 800583a: 681b ldr r3, [r3, #0]
  12264. 800583c: 430a orrs r2, r1
  12265. 800583e: 601a str r2, [r3, #0]
  12266. for (i = 0U; i < (BufferLength / 2U); i++)
  12267. 8005840: 697b ldr r3, [r7, #20]
  12268. 8005842: 3301 adds r3, #1
  12269. 8005844: 617b str r3, [r7, #20]
  12270. 8005846: 687b ldr r3, [r7, #4]
  12271. 8005848: 085b lsrs r3, r3, #1
  12272. 800584a: 697a ldr r2, [r7, #20]
  12273. 800584c: 429a cmp r2, r3
  12274. 800584e: d3e6 bcc.n 800581e <CRC_Handle_16+0x12>
  12275. }
  12276. if ((BufferLength % 2U) != 0U)
  12277. 8005850: 687b ldr r3, [r7, #4]
  12278. 8005852: f003 0301 and.w r3, r3, #1
  12279. 8005856: 2b00 cmp r3, #0
  12280. 8005858: d009 beq.n 800586e <CRC_Handle_16+0x62>
  12281. {
  12282. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  12283. 800585a: 68fb ldr r3, [r7, #12]
  12284. 800585c: 681b ldr r3, [r3, #0]
  12285. 800585e: 613b str r3, [r7, #16]
  12286. *pReg = pBuffer[2U * i];
  12287. 8005860: 697b ldr r3, [r7, #20]
  12288. 8005862: 009b lsls r3, r3, #2
  12289. 8005864: 68ba ldr r2, [r7, #8]
  12290. 8005866: 4413 add r3, r2
  12291. 8005868: 881a ldrh r2, [r3, #0]
  12292. 800586a: 693b ldr r3, [r7, #16]
  12293. 800586c: 801a strh r2, [r3, #0]
  12294. }
  12295. /* Return the CRC computed value */
  12296. return hcrc->Instance->DR;
  12297. 800586e: 68fb ldr r3, [r7, #12]
  12298. 8005870: 681b ldr r3, [r3, #0]
  12299. 8005872: 681b ldr r3, [r3, #0]
  12300. }
  12301. 8005874: 4618 mov r0, r3
  12302. 8005876: 371c adds r7, #28
  12303. 8005878: 46bd mov sp, r7
  12304. 800587a: f85d 7b04 ldr.w r7, [sp], #4
  12305. 800587e: 4770 bx lr
  12306. 08005880 <HAL_CRCEx_Polynomial_Set>:
  12307. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  12308. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  12309. * @retval HAL status
  12310. */
  12311. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  12312. {
  12313. 8005880: b480 push {r7}
  12314. 8005882: b087 sub sp, #28
  12315. 8005884: af00 add r7, sp, #0
  12316. 8005886: 60f8 str r0, [r7, #12]
  12317. 8005888: 60b9 str r1, [r7, #8]
  12318. 800588a: 607a str r2, [r7, #4]
  12319. HAL_StatusTypeDef status = HAL_OK;
  12320. 800588c: 2300 movs r3, #0
  12321. 800588e: 75fb strb r3, [r7, #23]
  12322. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  12323. 8005890: 231f movs r3, #31
  12324. 8005892: 613b str r3, [r7, #16]
  12325. /* Check the parameters */
  12326. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  12327. /* Ensure that the generating polynomial is odd */
  12328. if ((Pol & (uint32_t)(0x1U)) == 0U)
  12329. 8005894: 68bb ldr r3, [r7, #8]
  12330. 8005896: f003 0301 and.w r3, r3, #1
  12331. 800589a: 2b00 cmp r3, #0
  12332. 800589c: d102 bne.n 80058a4 <HAL_CRCEx_Polynomial_Set+0x24>
  12333. {
  12334. status = HAL_ERROR;
  12335. 800589e: 2301 movs r3, #1
  12336. 80058a0: 75fb strb r3, [r7, #23]
  12337. 80058a2: e063 b.n 800596c <HAL_CRCEx_Polynomial_Set+0xec>
  12338. * definition. HAL_ERROR is reported if Pol degree is
  12339. * larger than that indicated by PolyLength.
  12340. * Look for MSB position: msb will contain the degree of
  12341. * the second to the largest polynomial member. E.g., for
  12342. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  12343. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  12344. 80058a4: bf00 nop
  12345. 80058a6: 693b ldr r3, [r7, #16]
  12346. 80058a8: 1e5a subs r2, r3, #1
  12347. 80058aa: 613a str r2, [r7, #16]
  12348. 80058ac: 2b00 cmp r3, #0
  12349. 80058ae: d009 beq.n 80058c4 <HAL_CRCEx_Polynomial_Set+0x44>
  12350. 80058b0: 693b ldr r3, [r7, #16]
  12351. 80058b2: f003 031f and.w r3, r3, #31
  12352. 80058b6: 68ba ldr r2, [r7, #8]
  12353. 80058b8: fa22 f303 lsr.w r3, r2, r3
  12354. 80058bc: f003 0301 and.w r3, r3, #1
  12355. 80058c0: 2b00 cmp r3, #0
  12356. 80058c2: d0f0 beq.n 80058a6 <HAL_CRCEx_Polynomial_Set+0x26>
  12357. {
  12358. }
  12359. switch (PolyLength)
  12360. 80058c4: 687b ldr r3, [r7, #4]
  12361. 80058c6: 2b18 cmp r3, #24
  12362. 80058c8: d846 bhi.n 8005958 <HAL_CRCEx_Polynomial_Set+0xd8>
  12363. 80058ca: a201 add r2, pc, #4 @ (adr r2, 80058d0 <HAL_CRCEx_Polynomial_Set+0x50>)
  12364. 80058cc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  12365. 80058d0: 0800595f .word 0x0800595f
  12366. 80058d4: 08005959 .word 0x08005959
  12367. 80058d8: 08005959 .word 0x08005959
  12368. 80058dc: 08005959 .word 0x08005959
  12369. 80058e0: 08005959 .word 0x08005959
  12370. 80058e4: 08005959 .word 0x08005959
  12371. 80058e8: 08005959 .word 0x08005959
  12372. 80058ec: 08005959 .word 0x08005959
  12373. 80058f0: 0800594d .word 0x0800594d
  12374. 80058f4: 08005959 .word 0x08005959
  12375. 80058f8: 08005959 .word 0x08005959
  12376. 80058fc: 08005959 .word 0x08005959
  12377. 8005900: 08005959 .word 0x08005959
  12378. 8005904: 08005959 .word 0x08005959
  12379. 8005908: 08005959 .word 0x08005959
  12380. 800590c: 08005959 .word 0x08005959
  12381. 8005910: 08005941 .word 0x08005941
  12382. 8005914: 08005959 .word 0x08005959
  12383. 8005918: 08005959 .word 0x08005959
  12384. 800591c: 08005959 .word 0x08005959
  12385. 8005920: 08005959 .word 0x08005959
  12386. 8005924: 08005959 .word 0x08005959
  12387. 8005928: 08005959 .word 0x08005959
  12388. 800592c: 08005959 .word 0x08005959
  12389. 8005930: 08005935 .word 0x08005935
  12390. {
  12391. case CRC_POLYLENGTH_7B:
  12392. if (msb >= HAL_CRC_LENGTH_7B)
  12393. 8005934: 693b ldr r3, [r7, #16]
  12394. 8005936: 2b06 cmp r3, #6
  12395. 8005938: d913 bls.n 8005962 <HAL_CRCEx_Polynomial_Set+0xe2>
  12396. {
  12397. status = HAL_ERROR;
  12398. 800593a: 2301 movs r3, #1
  12399. 800593c: 75fb strb r3, [r7, #23]
  12400. }
  12401. break;
  12402. 800593e: e010 b.n 8005962 <HAL_CRCEx_Polynomial_Set+0xe2>
  12403. case CRC_POLYLENGTH_8B:
  12404. if (msb >= HAL_CRC_LENGTH_8B)
  12405. 8005940: 693b ldr r3, [r7, #16]
  12406. 8005942: 2b07 cmp r3, #7
  12407. 8005944: d90f bls.n 8005966 <HAL_CRCEx_Polynomial_Set+0xe6>
  12408. {
  12409. status = HAL_ERROR;
  12410. 8005946: 2301 movs r3, #1
  12411. 8005948: 75fb strb r3, [r7, #23]
  12412. }
  12413. break;
  12414. 800594a: e00c b.n 8005966 <HAL_CRCEx_Polynomial_Set+0xe6>
  12415. case CRC_POLYLENGTH_16B:
  12416. if (msb >= HAL_CRC_LENGTH_16B)
  12417. 800594c: 693b ldr r3, [r7, #16]
  12418. 800594e: 2b0f cmp r3, #15
  12419. 8005950: d90b bls.n 800596a <HAL_CRCEx_Polynomial_Set+0xea>
  12420. {
  12421. status = HAL_ERROR;
  12422. 8005952: 2301 movs r3, #1
  12423. 8005954: 75fb strb r3, [r7, #23]
  12424. }
  12425. break;
  12426. 8005956: e008 b.n 800596a <HAL_CRCEx_Polynomial_Set+0xea>
  12427. case CRC_POLYLENGTH_32B:
  12428. /* no polynomial definition vs. polynomial length issue possible */
  12429. break;
  12430. default:
  12431. status = HAL_ERROR;
  12432. 8005958: 2301 movs r3, #1
  12433. 800595a: 75fb strb r3, [r7, #23]
  12434. break;
  12435. 800595c: e006 b.n 800596c <HAL_CRCEx_Polynomial_Set+0xec>
  12436. break;
  12437. 800595e: bf00 nop
  12438. 8005960: e004 b.n 800596c <HAL_CRCEx_Polynomial_Set+0xec>
  12439. break;
  12440. 8005962: bf00 nop
  12441. 8005964: e002 b.n 800596c <HAL_CRCEx_Polynomial_Set+0xec>
  12442. break;
  12443. 8005966: bf00 nop
  12444. 8005968: e000 b.n 800596c <HAL_CRCEx_Polynomial_Set+0xec>
  12445. break;
  12446. 800596a: bf00 nop
  12447. }
  12448. }
  12449. if (status == HAL_OK)
  12450. 800596c: 7dfb ldrb r3, [r7, #23]
  12451. 800596e: 2b00 cmp r3, #0
  12452. 8005970: d10d bne.n 800598e <HAL_CRCEx_Polynomial_Set+0x10e>
  12453. {
  12454. /* set generating polynomial */
  12455. WRITE_REG(hcrc->Instance->POL, Pol);
  12456. 8005972: 68fb ldr r3, [r7, #12]
  12457. 8005974: 681b ldr r3, [r3, #0]
  12458. 8005976: 68ba ldr r2, [r7, #8]
  12459. 8005978: 615a str r2, [r3, #20]
  12460. /* set generating polynomial size */
  12461. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  12462. 800597a: 68fb ldr r3, [r7, #12]
  12463. 800597c: 681b ldr r3, [r3, #0]
  12464. 800597e: 689b ldr r3, [r3, #8]
  12465. 8005980: f023 0118 bic.w r1, r3, #24
  12466. 8005984: 68fb ldr r3, [r7, #12]
  12467. 8005986: 681b ldr r3, [r3, #0]
  12468. 8005988: 687a ldr r2, [r7, #4]
  12469. 800598a: 430a orrs r2, r1
  12470. 800598c: 609a str r2, [r3, #8]
  12471. }
  12472. /* Return function status */
  12473. return status;
  12474. 800598e: 7dfb ldrb r3, [r7, #23]
  12475. }
  12476. 8005990: 4618 mov r0, r3
  12477. 8005992: 371c adds r7, #28
  12478. 8005994: 46bd mov sp, r7
  12479. 8005996: f85d 7b04 ldr.w r7, [sp], #4
  12480. 800599a: 4770 bx lr
  12481. 0800599c <HAL_DMA_Init>:
  12482. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  12483. * the configuration information for the specified DMA Stream.
  12484. * @retval HAL status
  12485. */
  12486. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  12487. {
  12488. 800599c: b580 push {r7, lr}
  12489. 800599e: b086 sub sp, #24
  12490. 80059a0: af00 add r7, sp, #0
  12491. 80059a2: 6078 str r0, [r7, #4]
  12492. uint32_t registerValue;
  12493. uint32_t tickstart = HAL_GetTick();
  12494. 80059a4: f7ff fc4c bl 8005240 <HAL_GetTick>
  12495. 80059a8: 6138 str r0, [r7, #16]
  12496. DMA_Base_Registers *regs_dma;
  12497. BDMA_Base_Registers *regs_bdma;
  12498. /* Check the DMA peripheral handle */
  12499. if(hdma == NULL)
  12500. 80059aa: 687b ldr r3, [r7, #4]
  12501. 80059ac: 2b00 cmp r3, #0
  12502. 80059ae: d101 bne.n 80059b4 <HAL_DMA_Init+0x18>
  12503. {
  12504. return HAL_ERROR;
  12505. 80059b0: 2301 movs r3, #1
  12506. 80059b2: e316 b.n 8005fe2 <HAL_DMA_Init+0x646>
  12507. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  12508. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  12509. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  12510. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  12511. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  12512. 80059b4: 687b ldr r3, [r7, #4]
  12513. 80059b6: 681b ldr r3, [r3, #0]
  12514. 80059b8: 4a66 ldr r2, [pc, #408] @ (8005b54 <HAL_DMA_Init+0x1b8>)
  12515. 80059ba: 4293 cmp r3, r2
  12516. 80059bc: d04a beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12517. 80059be: 687b ldr r3, [r7, #4]
  12518. 80059c0: 681b ldr r3, [r3, #0]
  12519. 80059c2: 4a65 ldr r2, [pc, #404] @ (8005b58 <HAL_DMA_Init+0x1bc>)
  12520. 80059c4: 4293 cmp r3, r2
  12521. 80059c6: d045 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12522. 80059c8: 687b ldr r3, [r7, #4]
  12523. 80059ca: 681b ldr r3, [r3, #0]
  12524. 80059cc: 4a63 ldr r2, [pc, #396] @ (8005b5c <HAL_DMA_Init+0x1c0>)
  12525. 80059ce: 4293 cmp r3, r2
  12526. 80059d0: d040 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12527. 80059d2: 687b ldr r3, [r7, #4]
  12528. 80059d4: 681b ldr r3, [r3, #0]
  12529. 80059d6: 4a62 ldr r2, [pc, #392] @ (8005b60 <HAL_DMA_Init+0x1c4>)
  12530. 80059d8: 4293 cmp r3, r2
  12531. 80059da: d03b beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12532. 80059dc: 687b ldr r3, [r7, #4]
  12533. 80059de: 681b ldr r3, [r3, #0]
  12534. 80059e0: 4a60 ldr r2, [pc, #384] @ (8005b64 <HAL_DMA_Init+0x1c8>)
  12535. 80059e2: 4293 cmp r3, r2
  12536. 80059e4: d036 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12537. 80059e6: 687b ldr r3, [r7, #4]
  12538. 80059e8: 681b ldr r3, [r3, #0]
  12539. 80059ea: 4a5f ldr r2, [pc, #380] @ (8005b68 <HAL_DMA_Init+0x1cc>)
  12540. 80059ec: 4293 cmp r3, r2
  12541. 80059ee: d031 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12542. 80059f0: 687b ldr r3, [r7, #4]
  12543. 80059f2: 681b ldr r3, [r3, #0]
  12544. 80059f4: 4a5d ldr r2, [pc, #372] @ (8005b6c <HAL_DMA_Init+0x1d0>)
  12545. 80059f6: 4293 cmp r3, r2
  12546. 80059f8: d02c beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12547. 80059fa: 687b ldr r3, [r7, #4]
  12548. 80059fc: 681b ldr r3, [r3, #0]
  12549. 80059fe: 4a5c ldr r2, [pc, #368] @ (8005b70 <HAL_DMA_Init+0x1d4>)
  12550. 8005a00: 4293 cmp r3, r2
  12551. 8005a02: d027 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12552. 8005a04: 687b ldr r3, [r7, #4]
  12553. 8005a06: 681b ldr r3, [r3, #0]
  12554. 8005a08: 4a5a ldr r2, [pc, #360] @ (8005b74 <HAL_DMA_Init+0x1d8>)
  12555. 8005a0a: 4293 cmp r3, r2
  12556. 8005a0c: d022 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12557. 8005a0e: 687b ldr r3, [r7, #4]
  12558. 8005a10: 681b ldr r3, [r3, #0]
  12559. 8005a12: 4a59 ldr r2, [pc, #356] @ (8005b78 <HAL_DMA_Init+0x1dc>)
  12560. 8005a14: 4293 cmp r3, r2
  12561. 8005a16: d01d beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12562. 8005a18: 687b ldr r3, [r7, #4]
  12563. 8005a1a: 681b ldr r3, [r3, #0]
  12564. 8005a1c: 4a57 ldr r2, [pc, #348] @ (8005b7c <HAL_DMA_Init+0x1e0>)
  12565. 8005a1e: 4293 cmp r3, r2
  12566. 8005a20: d018 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12567. 8005a22: 687b ldr r3, [r7, #4]
  12568. 8005a24: 681b ldr r3, [r3, #0]
  12569. 8005a26: 4a56 ldr r2, [pc, #344] @ (8005b80 <HAL_DMA_Init+0x1e4>)
  12570. 8005a28: 4293 cmp r3, r2
  12571. 8005a2a: d013 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12572. 8005a2c: 687b ldr r3, [r7, #4]
  12573. 8005a2e: 681b ldr r3, [r3, #0]
  12574. 8005a30: 4a54 ldr r2, [pc, #336] @ (8005b84 <HAL_DMA_Init+0x1e8>)
  12575. 8005a32: 4293 cmp r3, r2
  12576. 8005a34: d00e beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12577. 8005a36: 687b ldr r3, [r7, #4]
  12578. 8005a38: 681b ldr r3, [r3, #0]
  12579. 8005a3a: 4a53 ldr r2, [pc, #332] @ (8005b88 <HAL_DMA_Init+0x1ec>)
  12580. 8005a3c: 4293 cmp r3, r2
  12581. 8005a3e: d009 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12582. 8005a40: 687b ldr r3, [r7, #4]
  12583. 8005a42: 681b ldr r3, [r3, #0]
  12584. 8005a44: 4a51 ldr r2, [pc, #324] @ (8005b8c <HAL_DMA_Init+0x1f0>)
  12585. 8005a46: 4293 cmp r3, r2
  12586. 8005a48: d004 beq.n 8005a54 <HAL_DMA_Init+0xb8>
  12587. 8005a4a: 687b ldr r3, [r7, #4]
  12588. 8005a4c: 681b ldr r3, [r3, #0]
  12589. 8005a4e: 4a50 ldr r2, [pc, #320] @ (8005b90 <HAL_DMA_Init+0x1f4>)
  12590. 8005a50: 4293 cmp r3, r2
  12591. 8005a52: d101 bne.n 8005a58 <HAL_DMA_Init+0xbc>
  12592. 8005a54: 2301 movs r3, #1
  12593. 8005a56: e000 b.n 8005a5a <HAL_DMA_Init+0xbe>
  12594. 8005a58: 2300 movs r3, #0
  12595. 8005a5a: 2b00 cmp r3, #0
  12596. 8005a5c: f000 813b beq.w 8005cd6 <HAL_DMA_Init+0x33a>
  12597. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  12598. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  12599. }
  12600. /* Change DMA peripheral state */
  12601. hdma->State = HAL_DMA_STATE_BUSY;
  12602. 8005a60: 687b ldr r3, [r7, #4]
  12603. 8005a62: 2202 movs r2, #2
  12604. 8005a64: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12605. /* Allocate lock resource */
  12606. __HAL_UNLOCK(hdma);
  12607. 8005a68: 687b ldr r3, [r7, #4]
  12608. 8005a6a: 2200 movs r2, #0
  12609. 8005a6c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  12610. /* Disable the peripheral */
  12611. __HAL_DMA_DISABLE(hdma);
  12612. 8005a70: 687b ldr r3, [r7, #4]
  12613. 8005a72: 681b ldr r3, [r3, #0]
  12614. 8005a74: 4a37 ldr r2, [pc, #220] @ (8005b54 <HAL_DMA_Init+0x1b8>)
  12615. 8005a76: 4293 cmp r3, r2
  12616. 8005a78: d04a beq.n 8005b10 <HAL_DMA_Init+0x174>
  12617. 8005a7a: 687b ldr r3, [r7, #4]
  12618. 8005a7c: 681b ldr r3, [r3, #0]
  12619. 8005a7e: 4a36 ldr r2, [pc, #216] @ (8005b58 <HAL_DMA_Init+0x1bc>)
  12620. 8005a80: 4293 cmp r3, r2
  12621. 8005a82: d045 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12622. 8005a84: 687b ldr r3, [r7, #4]
  12623. 8005a86: 681b ldr r3, [r3, #0]
  12624. 8005a88: 4a34 ldr r2, [pc, #208] @ (8005b5c <HAL_DMA_Init+0x1c0>)
  12625. 8005a8a: 4293 cmp r3, r2
  12626. 8005a8c: d040 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12627. 8005a8e: 687b ldr r3, [r7, #4]
  12628. 8005a90: 681b ldr r3, [r3, #0]
  12629. 8005a92: 4a33 ldr r2, [pc, #204] @ (8005b60 <HAL_DMA_Init+0x1c4>)
  12630. 8005a94: 4293 cmp r3, r2
  12631. 8005a96: d03b beq.n 8005b10 <HAL_DMA_Init+0x174>
  12632. 8005a98: 687b ldr r3, [r7, #4]
  12633. 8005a9a: 681b ldr r3, [r3, #0]
  12634. 8005a9c: 4a31 ldr r2, [pc, #196] @ (8005b64 <HAL_DMA_Init+0x1c8>)
  12635. 8005a9e: 4293 cmp r3, r2
  12636. 8005aa0: d036 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12637. 8005aa2: 687b ldr r3, [r7, #4]
  12638. 8005aa4: 681b ldr r3, [r3, #0]
  12639. 8005aa6: 4a30 ldr r2, [pc, #192] @ (8005b68 <HAL_DMA_Init+0x1cc>)
  12640. 8005aa8: 4293 cmp r3, r2
  12641. 8005aaa: d031 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12642. 8005aac: 687b ldr r3, [r7, #4]
  12643. 8005aae: 681b ldr r3, [r3, #0]
  12644. 8005ab0: 4a2e ldr r2, [pc, #184] @ (8005b6c <HAL_DMA_Init+0x1d0>)
  12645. 8005ab2: 4293 cmp r3, r2
  12646. 8005ab4: d02c beq.n 8005b10 <HAL_DMA_Init+0x174>
  12647. 8005ab6: 687b ldr r3, [r7, #4]
  12648. 8005ab8: 681b ldr r3, [r3, #0]
  12649. 8005aba: 4a2d ldr r2, [pc, #180] @ (8005b70 <HAL_DMA_Init+0x1d4>)
  12650. 8005abc: 4293 cmp r3, r2
  12651. 8005abe: d027 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12652. 8005ac0: 687b ldr r3, [r7, #4]
  12653. 8005ac2: 681b ldr r3, [r3, #0]
  12654. 8005ac4: 4a2b ldr r2, [pc, #172] @ (8005b74 <HAL_DMA_Init+0x1d8>)
  12655. 8005ac6: 4293 cmp r3, r2
  12656. 8005ac8: d022 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12657. 8005aca: 687b ldr r3, [r7, #4]
  12658. 8005acc: 681b ldr r3, [r3, #0]
  12659. 8005ace: 4a2a ldr r2, [pc, #168] @ (8005b78 <HAL_DMA_Init+0x1dc>)
  12660. 8005ad0: 4293 cmp r3, r2
  12661. 8005ad2: d01d beq.n 8005b10 <HAL_DMA_Init+0x174>
  12662. 8005ad4: 687b ldr r3, [r7, #4]
  12663. 8005ad6: 681b ldr r3, [r3, #0]
  12664. 8005ad8: 4a28 ldr r2, [pc, #160] @ (8005b7c <HAL_DMA_Init+0x1e0>)
  12665. 8005ada: 4293 cmp r3, r2
  12666. 8005adc: d018 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12667. 8005ade: 687b ldr r3, [r7, #4]
  12668. 8005ae0: 681b ldr r3, [r3, #0]
  12669. 8005ae2: 4a27 ldr r2, [pc, #156] @ (8005b80 <HAL_DMA_Init+0x1e4>)
  12670. 8005ae4: 4293 cmp r3, r2
  12671. 8005ae6: d013 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12672. 8005ae8: 687b ldr r3, [r7, #4]
  12673. 8005aea: 681b ldr r3, [r3, #0]
  12674. 8005aec: 4a25 ldr r2, [pc, #148] @ (8005b84 <HAL_DMA_Init+0x1e8>)
  12675. 8005aee: 4293 cmp r3, r2
  12676. 8005af0: d00e beq.n 8005b10 <HAL_DMA_Init+0x174>
  12677. 8005af2: 687b ldr r3, [r7, #4]
  12678. 8005af4: 681b ldr r3, [r3, #0]
  12679. 8005af6: 4a24 ldr r2, [pc, #144] @ (8005b88 <HAL_DMA_Init+0x1ec>)
  12680. 8005af8: 4293 cmp r3, r2
  12681. 8005afa: d009 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12682. 8005afc: 687b ldr r3, [r7, #4]
  12683. 8005afe: 681b ldr r3, [r3, #0]
  12684. 8005b00: 4a22 ldr r2, [pc, #136] @ (8005b8c <HAL_DMA_Init+0x1f0>)
  12685. 8005b02: 4293 cmp r3, r2
  12686. 8005b04: d004 beq.n 8005b10 <HAL_DMA_Init+0x174>
  12687. 8005b06: 687b ldr r3, [r7, #4]
  12688. 8005b08: 681b ldr r3, [r3, #0]
  12689. 8005b0a: 4a21 ldr r2, [pc, #132] @ (8005b90 <HAL_DMA_Init+0x1f4>)
  12690. 8005b0c: 4293 cmp r3, r2
  12691. 8005b0e: d108 bne.n 8005b22 <HAL_DMA_Init+0x186>
  12692. 8005b10: 687b ldr r3, [r7, #4]
  12693. 8005b12: 681b ldr r3, [r3, #0]
  12694. 8005b14: 681a ldr r2, [r3, #0]
  12695. 8005b16: 687b ldr r3, [r7, #4]
  12696. 8005b18: 681b ldr r3, [r3, #0]
  12697. 8005b1a: f022 0201 bic.w r2, r2, #1
  12698. 8005b1e: 601a str r2, [r3, #0]
  12699. 8005b20: e007 b.n 8005b32 <HAL_DMA_Init+0x196>
  12700. 8005b22: 687b ldr r3, [r7, #4]
  12701. 8005b24: 681b ldr r3, [r3, #0]
  12702. 8005b26: 681a ldr r2, [r3, #0]
  12703. 8005b28: 687b ldr r3, [r7, #4]
  12704. 8005b2a: 681b ldr r3, [r3, #0]
  12705. 8005b2c: f022 0201 bic.w r2, r2, #1
  12706. 8005b30: 601a str r2, [r3, #0]
  12707. /* Check if the DMA Stream is effectively disabled */
  12708. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  12709. 8005b32: e02f b.n 8005b94 <HAL_DMA_Init+0x1f8>
  12710. {
  12711. /* Check for the Timeout */
  12712. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  12713. 8005b34: f7ff fb84 bl 8005240 <HAL_GetTick>
  12714. 8005b38: 4602 mov r2, r0
  12715. 8005b3a: 693b ldr r3, [r7, #16]
  12716. 8005b3c: 1ad3 subs r3, r2, r3
  12717. 8005b3e: 2b05 cmp r3, #5
  12718. 8005b40: d928 bls.n 8005b94 <HAL_DMA_Init+0x1f8>
  12719. {
  12720. /* Update error code */
  12721. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  12722. 8005b42: 687b ldr r3, [r7, #4]
  12723. 8005b44: 2220 movs r2, #32
  12724. 8005b46: 655a str r2, [r3, #84] @ 0x54
  12725. /* Change the DMA state */
  12726. hdma->State = HAL_DMA_STATE_ERROR;
  12727. 8005b48: 687b ldr r3, [r7, #4]
  12728. 8005b4a: 2203 movs r2, #3
  12729. 8005b4c: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12730. return HAL_ERROR;
  12731. 8005b50: 2301 movs r3, #1
  12732. 8005b52: e246 b.n 8005fe2 <HAL_DMA_Init+0x646>
  12733. 8005b54: 40020010 .word 0x40020010
  12734. 8005b58: 40020028 .word 0x40020028
  12735. 8005b5c: 40020040 .word 0x40020040
  12736. 8005b60: 40020058 .word 0x40020058
  12737. 8005b64: 40020070 .word 0x40020070
  12738. 8005b68: 40020088 .word 0x40020088
  12739. 8005b6c: 400200a0 .word 0x400200a0
  12740. 8005b70: 400200b8 .word 0x400200b8
  12741. 8005b74: 40020410 .word 0x40020410
  12742. 8005b78: 40020428 .word 0x40020428
  12743. 8005b7c: 40020440 .word 0x40020440
  12744. 8005b80: 40020458 .word 0x40020458
  12745. 8005b84: 40020470 .word 0x40020470
  12746. 8005b88: 40020488 .word 0x40020488
  12747. 8005b8c: 400204a0 .word 0x400204a0
  12748. 8005b90: 400204b8 .word 0x400204b8
  12749. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  12750. 8005b94: 687b ldr r3, [r7, #4]
  12751. 8005b96: 681b ldr r3, [r3, #0]
  12752. 8005b98: 681b ldr r3, [r3, #0]
  12753. 8005b9a: f003 0301 and.w r3, r3, #1
  12754. 8005b9e: 2b00 cmp r3, #0
  12755. 8005ba0: d1c8 bne.n 8005b34 <HAL_DMA_Init+0x198>
  12756. }
  12757. }
  12758. /* Get the CR register value */
  12759. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  12760. 8005ba2: 687b ldr r3, [r7, #4]
  12761. 8005ba4: 681b ldr r3, [r3, #0]
  12762. 8005ba6: 681b ldr r3, [r3, #0]
  12763. 8005ba8: 617b str r3, [r7, #20]
  12764. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  12765. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  12766. 8005baa: 697a ldr r2, [r7, #20]
  12767. 8005bac: 4b83 ldr r3, [pc, #524] @ (8005dbc <HAL_DMA_Init+0x420>)
  12768. 8005bae: 4013 ands r3, r2
  12769. 8005bb0: 617b str r3, [r7, #20]
  12770. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  12771. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  12772. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  12773. /* Prepare the DMA Stream configuration */
  12774. registerValue |= hdma->Init.Direction |
  12775. 8005bb2: 687b ldr r3, [r7, #4]
  12776. 8005bb4: 689a ldr r2, [r3, #8]
  12777. hdma->Init.PeriphInc | hdma->Init.MemInc |
  12778. 8005bb6: 687b ldr r3, [r7, #4]
  12779. 8005bb8: 68db ldr r3, [r3, #12]
  12780. registerValue |= hdma->Init.Direction |
  12781. 8005bba: 431a orrs r2, r3
  12782. hdma->Init.PeriphInc | hdma->Init.MemInc |
  12783. 8005bbc: 687b ldr r3, [r7, #4]
  12784. 8005bbe: 691b ldr r3, [r3, #16]
  12785. 8005bc0: 431a orrs r2, r3
  12786. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  12787. 8005bc2: 687b ldr r3, [r7, #4]
  12788. 8005bc4: 695b ldr r3, [r3, #20]
  12789. hdma->Init.PeriphInc | hdma->Init.MemInc |
  12790. 8005bc6: 431a orrs r2, r3
  12791. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  12792. 8005bc8: 687b ldr r3, [r7, #4]
  12793. 8005bca: 699b ldr r3, [r3, #24]
  12794. 8005bcc: 431a orrs r2, r3
  12795. hdma->Init.Mode | hdma->Init.Priority;
  12796. 8005bce: 687b ldr r3, [r7, #4]
  12797. 8005bd0: 69db ldr r3, [r3, #28]
  12798. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  12799. 8005bd2: 431a orrs r2, r3
  12800. hdma->Init.Mode | hdma->Init.Priority;
  12801. 8005bd4: 687b ldr r3, [r7, #4]
  12802. 8005bd6: 6a1b ldr r3, [r3, #32]
  12803. 8005bd8: 4313 orrs r3, r2
  12804. registerValue |= hdma->Init.Direction |
  12805. 8005bda: 697a ldr r2, [r7, #20]
  12806. 8005bdc: 4313 orrs r3, r2
  12807. 8005bde: 617b str r3, [r7, #20]
  12808. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  12809. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  12810. 8005be0: 687b ldr r3, [r7, #4]
  12811. 8005be2: 6a5b ldr r3, [r3, #36] @ 0x24
  12812. 8005be4: 2b04 cmp r3, #4
  12813. 8005be6: d107 bne.n 8005bf8 <HAL_DMA_Init+0x25c>
  12814. {
  12815. /* Get memory burst and peripheral burst */
  12816. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  12817. 8005be8: 687b ldr r3, [r7, #4]
  12818. 8005bea: 6ada ldr r2, [r3, #44] @ 0x2c
  12819. 8005bec: 687b ldr r3, [r7, #4]
  12820. 8005bee: 6b1b ldr r3, [r3, #48] @ 0x30
  12821. 8005bf0: 4313 orrs r3, r2
  12822. 8005bf2: 697a ldr r2, [r7, #20]
  12823. 8005bf4: 4313 orrs r3, r2
  12824. 8005bf6: 617b str r3, [r7, #20]
  12825. }
  12826. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  12827. lock when transferring data to/from USART/UART */
  12828. #if (STM32H7_DEV_ID == 0x450UL)
  12829. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  12830. 8005bf8: 4b71 ldr r3, [pc, #452] @ (8005dc0 <HAL_DMA_Init+0x424>)
  12831. 8005bfa: 681a ldr r2, [r3, #0]
  12832. 8005bfc: 4b71 ldr r3, [pc, #452] @ (8005dc4 <HAL_DMA_Init+0x428>)
  12833. 8005bfe: 4013 ands r3, r2
  12834. 8005c00: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  12835. 8005c04: d328 bcc.n 8005c58 <HAL_DMA_Init+0x2bc>
  12836. {
  12837. #endif /* STM32H7_DEV_ID == 0x450UL */
  12838. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  12839. 8005c06: 687b ldr r3, [r7, #4]
  12840. 8005c08: 685b ldr r3, [r3, #4]
  12841. 8005c0a: 2b28 cmp r3, #40 @ 0x28
  12842. 8005c0c: d903 bls.n 8005c16 <HAL_DMA_Init+0x27a>
  12843. 8005c0e: 687b ldr r3, [r7, #4]
  12844. 8005c10: 685b ldr r3, [r3, #4]
  12845. 8005c12: 2b2e cmp r3, #46 @ 0x2e
  12846. 8005c14: d917 bls.n 8005c46 <HAL_DMA_Init+0x2aa>
  12847. 8005c16: 687b ldr r3, [r7, #4]
  12848. 8005c18: 685b ldr r3, [r3, #4]
  12849. 8005c1a: 2b3e cmp r3, #62 @ 0x3e
  12850. 8005c1c: d903 bls.n 8005c26 <HAL_DMA_Init+0x28a>
  12851. 8005c1e: 687b ldr r3, [r7, #4]
  12852. 8005c20: 685b ldr r3, [r3, #4]
  12853. 8005c22: 2b42 cmp r3, #66 @ 0x42
  12854. 8005c24: d90f bls.n 8005c46 <HAL_DMA_Init+0x2aa>
  12855. 8005c26: 687b ldr r3, [r7, #4]
  12856. 8005c28: 685b ldr r3, [r3, #4]
  12857. 8005c2a: 2b46 cmp r3, #70 @ 0x46
  12858. 8005c2c: d903 bls.n 8005c36 <HAL_DMA_Init+0x29a>
  12859. 8005c2e: 687b ldr r3, [r7, #4]
  12860. 8005c30: 685b ldr r3, [r3, #4]
  12861. 8005c32: 2b48 cmp r3, #72 @ 0x48
  12862. 8005c34: d907 bls.n 8005c46 <HAL_DMA_Init+0x2aa>
  12863. 8005c36: 687b ldr r3, [r7, #4]
  12864. 8005c38: 685b ldr r3, [r3, #4]
  12865. 8005c3a: 2b4e cmp r3, #78 @ 0x4e
  12866. 8005c3c: d905 bls.n 8005c4a <HAL_DMA_Init+0x2ae>
  12867. 8005c3e: 687b ldr r3, [r7, #4]
  12868. 8005c40: 685b ldr r3, [r3, #4]
  12869. 8005c42: 2b52 cmp r3, #82 @ 0x52
  12870. 8005c44: d801 bhi.n 8005c4a <HAL_DMA_Init+0x2ae>
  12871. 8005c46: 2301 movs r3, #1
  12872. 8005c48: e000 b.n 8005c4c <HAL_DMA_Init+0x2b0>
  12873. 8005c4a: 2300 movs r3, #0
  12874. 8005c4c: 2b00 cmp r3, #0
  12875. 8005c4e: d003 beq.n 8005c58 <HAL_DMA_Init+0x2bc>
  12876. {
  12877. registerValue |= DMA_SxCR_TRBUFF;
  12878. 8005c50: 697b ldr r3, [r7, #20]
  12879. 8005c52: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  12880. 8005c56: 617b str r3, [r7, #20]
  12881. #if (STM32H7_DEV_ID == 0x450UL)
  12882. }
  12883. #endif /* STM32H7_DEV_ID == 0x450UL */
  12884. /* Write to DMA Stream CR register */
  12885. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  12886. 8005c58: 687b ldr r3, [r7, #4]
  12887. 8005c5a: 681b ldr r3, [r3, #0]
  12888. 8005c5c: 697a ldr r2, [r7, #20]
  12889. 8005c5e: 601a str r2, [r3, #0]
  12890. /* Get the FCR register value */
  12891. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  12892. 8005c60: 687b ldr r3, [r7, #4]
  12893. 8005c62: 681b ldr r3, [r3, #0]
  12894. 8005c64: 695b ldr r3, [r3, #20]
  12895. 8005c66: 617b str r3, [r7, #20]
  12896. /* Clear Direct mode and FIFO threshold bits */
  12897. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  12898. 8005c68: 697b ldr r3, [r7, #20]
  12899. 8005c6a: f023 0307 bic.w r3, r3, #7
  12900. 8005c6e: 617b str r3, [r7, #20]
  12901. /* Prepare the DMA Stream FIFO configuration */
  12902. registerValue |= hdma->Init.FIFOMode;
  12903. 8005c70: 687b ldr r3, [r7, #4]
  12904. 8005c72: 6a5b ldr r3, [r3, #36] @ 0x24
  12905. 8005c74: 697a ldr r2, [r7, #20]
  12906. 8005c76: 4313 orrs r3, r2
  12907. 8005c78: 617b str r3, [r7, #20]
  12908. /* the FIFO threshold is not used when the FIFO mode is disabled */
  12909. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  12910. 8005c7a: 687b ldr r3, [r7, #4]
  12911. 8005c7c: 6a5b ldr r3, [r3, #36] @ 0x24
  12912. 8005c7e: 2b04 cmp r3, #4
  12913. 8005c80: d117 bne.n 8005cb2 <HAL_DMA_Init+0x316>
  12914. {
  12915. /* Get the FIFO threshold */
  12916. registerValue |= hdma->Init.FIFOThreshold;
  12917. 8005c82: 687b ldr r3, [r7, #4]
  12918. 8005c84: 6a9b ldr r3, [r3, #40] @ 0x28
  12919. 8005c86: 697a ldr r2, [r7, #20]
  12920. 8005c88: 4313 orrs r3, r2
  12921. 8005c8a: 617b str r3, [r7, #20]
  12922. /* Check compatibility between FIFO threshold level and size of the memory burst */
  12923. /* for INCR4, INCR8, INCR16 */
  12924. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  12925. 8005c8c: 687b ldr r3, [r7, #4]
  12926. 8005c8e: 6adb ldr r3, [r3, #44] @ 0x2c
  12927. 8005c90: 2b00 cmp r3, #0
  12928. 8005c92: d00e beq.n 8005cb2 <HAL_DMA_Init+0x316>
  12929. {
  12930. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  12931. 8005c94: 6878 ldr r0, [r7, #4]
  12932. 8005c96: f001 ff1d bl 8007ad4 <DMA_CheckFifoParam>
  12933. 8005c9a: 4603 mov r3, r0
  12934. 8005c9c: 2b00 cmp r3, #0
  12935. 8005c9e: d008 beq.n 8005cb2 <HAL_DMA_Init+0x316>
  12936. {
  12937. /* Update error code */
  12938. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  12939. 8005ca0: 687b ldr r3, [r7, #4]
  12940. 8005ca2: 2240 movs r2, #64 @ 0x40
  12941. 8005ca4: 655a str r2, [r3, #84] @ 0x54
  12942. /* Change the DMA state */
  12943. hdma->State = HAL_DMA_STATE_READY;
  12944. 8005ca6: 687b ldr r3, [r7, #4]
  12945. 8005ca8: 2201 movs r2, #1
  12946. 8005caa: f883 2035 strb.w r2, [r3, #53] @ 0x35
  12947. return HAL_ERROR;
  12948. 8005cae: 2301 movs r3, #1
  12949. 8005cb0: e197 b.n 8005fe2 <HAL_DMA_Init+0x646>
  12950. }
  12951. }
  12952. }
  12953. /* Write to DMA Stream FCR */
  12954. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  12955. 8005cb2: 687b ldr r3, [r7, #4]
  12956. 8005cb4: 681b ldr r3, [r3, #0]
  12957. 8005cb6: 697a ldr r2, [r7, #20]
  12958. 8005cb8: 615a str r2, [r3, #20]
  12959. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  12960. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  12961. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  12962. 8005cba: 6878 ldr r0, [r7, #4]
  12963. 8005cbc: f001 fe58 bl 8007970 <DMA_CalcBaseAndBitshift>
  12964. 8005cc0: 4603 mov r3, r0
  12965. 8005cc2: 60bb str r3, [r7, #8]
  12966. /* Clear all interrupt flags */
  12967. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  12968. 8005cc4: 687b ldr r3, [r7, #4]
  12969. 8005cc6: 6ddb ldr r3, [r3, #92] @ 0x5c
  12970. 8005cc8: f003 031f and.w r3, r3, #31
  12971. 8005ccc: 223f movs r2, #63 @ 0x3f
  12972. 8005cce: 409a lsls r2, r3
  12973. 8005cd0: 68bb ldr r3, [r7, #8]
  12974. 8005cd2: 609a str r2, [r3, #8]
  12975. 8005cd4: e0cd b.n 8005e72 <HAL_DMA_Init+0x4d6>
  12976. }
  12977. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  12978. 8005cd6: 687b ldr r3, [r7, #4]
  12979. 8005cd8: 681b ldr r3, [r3, #0]
  12980. 8005cda: 4a3b ldr r2, [pc, #236] @ (8005dc8 <HAL_DMA_Init+0x42c>)
  12981. 8005cdc: 4293 cmp r3, r2
  12982. 8005cde: d022 beq.n 8005d26 <HAL_DMA_Init+0x38a>
  12983. 8005ce0: 687b ldr r3, [r7, #4]
  12984. 8005ce2: 681b ldr r3, [r3, #0]
  12985. 8005ce4: 4a39 ldr r2, [pc, #228] @ (8005dcc <HAL_DMA_Init+0x430>)
  12986. 8005ce6: 4293 cmp r3, r2
  12987. 8005ce8: d01d beq.n 8005d26 <HAL_DMA_Init+0x38a>
  12988. 8005cea: 687b ldr r3, [r7, #4]
  12989. 8005cec: 681b ldr r3, [r3, #0]
  12990. 8005cee: 4a38 ldr r2, [pc, #224] @ (8005dd0 <HAL_DMA_Init+0x434>)
  12991. 8005cf0: 4293 cmp r3, r2
  12992. 8005cf2: d018 beq.n 8005d26 <HAL_DMA_Init+0x38a>
  12993. 8005cf4: 687b ldr r3, [r7, #4]
  12994. 8005cf6: 681b ldr r3, [r3, #0]
  12995. 8005cf8: 4a36 ldr r2, [pc, #216] @ (8005dd4 <HAL_DMA_Init+0x438>)
  12996. 8005cfa: 4293 cmp r3, r2
  12997. 8005cfc: d013 beq.n 8005d26 <HAL_DMA_Init+0x38a>
  12998. 8005cfe: 687b ldr r3, [r7, #4]
  12999. 8005d00: 681b ldr r3, [r3, #0]
  13000. 8005d02: 4a35 ldr r2, [pc, #212] @ (8005dd8 <HAL_DMA_Init+0x43c>)
  13001. 8005d04: 4293 cmp r3, r2
  13002. 8005d06: d00e beq.n 8005d26 <HAL_DMA_Init+0x38a>
  13003. 8005d08: 687b ldr r3, [r7, #4]
  13004. 8005d0a: 681b ldr r3, [r3, #0]
  13005. 8005d0c: 4a33 ldr r2, [pc, #204] @ (8005ddc <HAL_DMA_Init+0x440>)
  13006. 8005d0e: 4293 cmp r3, r2
  13007. 8005d10: d009 beq.n 8005d26 <HAL_DMA_Init+0x38a>
  13008. 8005d12: 687b ldr r3, [r7, #4]
  13009. 8005d14: 681b ldr r3, [r3, #0]
  13010. 8005d16: 4a32 ldr r2, [pc, #200] @ (8005de0 <HAL_DMA_Init+0x444>)
  13011. 8005d18: 4293 cmp r3, r2
  13012. 8005d1a: d004 beq.n 8005d26 <HAL_DMA_Init+0x38a>
  13013. 8005d1c: 687b ldr r3, [r7, #4]
  13014. 8005d1e: 681b ldr r3, [r3, #0]
  13015. 8005d20: 4a30 ldr r2, [pc, #192] @ (8005de4 <HAL_DMA_Init+0x448>)
  13016. 8005d22: 4293 cmp r3, r2
  13017. 8005d24: d101 bne.n 8005d2a <HAL_DMA_Init+0x38e>
  13018. 8005d26: 2301 movs r3, #1
  13019. 8005d28: e000 b.n 8005d2c <HAL_DMA_Init+0x390>
  13020. 8005d2a: 2300 movs r3, #0
  13021. 8005d2c: 2b00 cmp r3, #0
  13022. 8005d2e: f000 8097 beq.w 8005e60 <HAL_DMA_Init+0x4c4>
  13023. {
  13024. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  13025. 8005d32: 687b ldr r3, [r7, #4]
  13026. 8005d34: 681b ldr r3, [r3, #0]
  13027. 8005d36: 4a24 ldr r2, [pc, #144] @ (8005dc8 <HAL_DMA_Init+0x42c>)
  13028. 8005d38: 4293 cmp r3, r2
  13029. 8005d3a: d021 beq.n 8005d80 <HAL_DMA_Init+0x3e4>
  13030. 8005d3c: 687b ldr r3, [r7, #4]
  13031. 8005d3e: 681b ldr r3, [r3, #0]
  13032. 8005d40: 4a22 ldr r2, [pc, #136] @ (8005dcc <HAL_DMA_Init+0x430>)
  13033. 8005d42: 4293 cmp r3, r2
  13034. 8005d44: d01c beq.n 8005d80 <HAL_DMA_Init+0x3e4>
  13035. 8005d46: 687b ldr r3, [r7, #4]
  13036. 8005d48: 681b ldr r3, [r3, #0]
  13037. 8005d4a: 4a21 ldr r2, [pc, #132] @ (8005dd0 <HAL_DMA_Init+0x434>)
  13038. 8005d4c: 4293 cmp r3, r2
  13039. 8005d4e: d017 beq.n 8005d80 <HAL_DMA_Init+0x3e4>
  13040. 8005d50: 687b ldr r3, [r7, #4]
  13041. 8005d52: 681b ldr r3, [r3, #0]
  13042. 8005d54: 4a1f ldr r2, [pc, #124] @ (8005dd4 <HAL_DMA_Init+0x438>)
  13043. 8005d56: 4293 cmp r3, r2
  13044. 8005d58: d012 beq.n 8005d80 <HAL_DMA_Init+0x3e4>
  13045. 8005d5a: 687b ldr r3, [r7, #4]
  13046. 8005d5c: 681b ldr r3, [r3, #0]
  13047. 8005d5e: 4a1e ldr r2, [pc, #120] @ (8005dd8 <HAL_DMA_Init+0x43c>)
  13048. 8005d60: 4293 cmp r3, r2
  13049. 8005d62: d00d beq.n 8005d80 <HAL_DMA_Init+0x3e4>
  13050. 8005d64: 687b ldr r3, [r7, #4]
  13051. 8005d66: 681b ldr r3, [r3, #0]
  13052. 8005d68: 4a1c ldr r2, [pc, #112] @ (8005ddc <HAL_DMA_Init+0x440>)
  13053. 8005d6a: 4293 cmp r3, r2
  13054. 8005d6c: d008 beq.n 8005d80 <HAL_DMA_Init+0x3e4>
  13055. 8005d6e: 687b ldr r3, [r7, #4]
  13056. 8005d70: 681b ldr r3, [r3, #0]
  13057. 8005d72: 4a1b ldr r2, [pc, #108] @ (8005de0 <HAL_DMA_Init+0x444>)
  13058. 8005d74: 4293 cmp r3, r2
  13059. 8005d76: d003 beq.n 8005d80 <HAL_DMA_Init+0x3e4>
  13060. 8005d78: 687b ldr r3, [r7, #4]
  13061. 8005d7a: 681b ldr r3, [r3, #0]
  13062. 8005d7c: 4a19 ldr r2, [pc, #100] @ (8005de4 <HAL_DMA_Init+0x448>)
  13063. 8005d7e: 4293 cmp r3, r2
  13064. /* Check the request parameter */
  13065. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  13066. }
  13067. /* Change DMA peripheral state */
  13068. hdma->State = HAL_DMA_STATE_BUSY;
  13069. 8005d80: 687b ldr r3, [r7, #4]
  13070. 8005d82: 2202 movs r2, #2
  13071. 8005d84: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13072. /* Allocate lock resource */
  13073. __HAL_UNLOCK(hdma);
  13074. 8005d88: 687b ldr r3, [r7, #4]
  13075. 8005d8a: 2200 movs r2, #0
  13076. 8005d8c: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13077. /* Get the CR register value */
  13078. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  13079. 8005d90: 687b ldr r3, [r7, #4]
  13080. 8005d92: 681b ldr r3, [r3, #0]
  13081. 8005d94: 681b ldr r3, [r3, #0]
  13082. 8005d96: 617b str r3, [r7, #20]
  13083. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  13084. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  13085. 8005d98: 697a ldr r2, [r7, #20]
  13086. 8005d9a: 4b13 ldr r3, [pc, #76] @ (8005de8 <HAL_DMA_Init+0x44c>)
  13087. 8005d9c: 4013 ands r3, r2
  13088. 8005d9e: 617b str r3, [r7, #20]
  13089. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  13090. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  13091. BDMA_CCR_CT));
  13092. /* Prepare the DMA Channel configuration */
  13093. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  13094. 8005da0: 687b ldr r3, [r7, #4]
  13095. 8005da2: 689b ldr r3, [r3, #8]
  13096. 8005da4: 2b40 cmp r3, #64 @ 0x40
  13097. 8005da6: d021 beq.n 8005dec <HAL_DMA_Init+0x450>
  13098. 8005da8: 687b ldr r3, [r7, #4]
  13099. 8005daa: 689b ldr r3, [r3, #8]
  13100. 8005dac: 2b80 cmp r3, #128 @ 0x80
  13101. 8005dae: d102 bne.n 8005db6 <HAL_DMA_Init+0x41a>
  13102. 8005db0: f44f 4380 mov.w r3, #16384 @ 0x4000
  13103. 8005db4: e01b b.n 8005dee <HAL_DMA_Init+0x452>
  13104. 8005db6: 2300 movs r3, #0
  13105. 8005db8: e019 b.n 8005dee <HAL_DMA_Init+0x452>
  13106. 8005dba: bf00 nop
  13107. 8005dbc: fe10803f .word 0xfe10803f
  13108. 8005dc0: 5c001000 .word 0x5c001000
  13109. 8005dc4: ffff0000 .word 0xffff0000
  13110. 8005dc8: 58025408 .word 0x58025408
  13111. 8005dcc: 5802541c .word 0x5802541c
  13112. 8005dd0: 58025430 .word 0x58025430
  13113. 8005dd4: 58025444 .word 0x58025444
  13114. 8005dd8: 58025458 .word 0x58025458
  13115. 8005ddc: 5802546c .word 0x5802546c
  13116. 8005de0: 58025480 .word 0x58025480
  13117. 8005de4: 58025494 .word 0x58025494
  13118. 8005de8: fffe000f .word 0xfffe000f
  13119. 8005dec: 2310 movs r3, #16
  13120. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  13121. 8005dee: 687a ldr r2, [r7, #4]
  13122. 8005df0: 68d2 ldr r2, [r2, #12]
  13123. 8005df2: 08d2 lsrs r2, r2, #3
  13124. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  13125. 8005df4: 431a orrs r2, r3
  13126. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  13127. 8005df6: 687b ldr r3, [r7, #4]
  13128. 8005df8: 691b ldr r3, [r3, #16]
  13129. 8005dfa: 08db lsrs r3, r3, #3
  13130. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  13131. 8005dfc: 431a orrs r2, r3
  13132. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  13133. 8005dfe: 687b ldr r3, [r7, #4]
  13134. 8005e00: 695b ldr r3, [r3, #20]
  13135. 8005e02: 08db lsrs r3, r3, #3
  13136. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  13137. 8005e04: 431a orrs r2, r3
  13138. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  13139. 8005e06: 687b ldr r3, [r7, #4]
  13140. 8005e08: 699b ldr r3, [r3, #24]
  13141. 8005e0a: 08db lsrs r3, r3, #3
  13142. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  13143. 8005e0c: 431a orrs r2, r3
  13144. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  13145. 8005e0e: 687b ldr r3, [r7, #4]
  13146. 8005e10: 69db ldr r3, [r3, #28]
  13147. 8005e12: 08db lsrs r3, r3, #3
  13148. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  13149. 8005e14: 431a orrs r2, r3
  13150. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  13151. 8005e16: 687b ldr r3, [r7, #4]
  13152. 8005e18: 6a1b ldr r3, [r3, #32]
  13153. 8005e1a: 091b lsrs r3, r3, #4
  13154. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  13155. 8005e1c: 4313 orrs r3, r2
  13156. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  13157. 8005e1e: 697a ldr r2, [r7, #20]
  13158. 8005e20: 4313 orrs r3, r2
  13159. 8005e22: 617b str r3, [r7, #20]
  13160. /* Write to DMA Channel CR register */
  13161. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  13162. 8005e24: 687b ldr r3, [r7, #4]
  13163. 8005e26: 681b ldr r3, [r3, #0]
  13164. 8005e28: 697a ldr r2, [r7, #20]
  13165. 8005e2a: 601a str r2, [r3, #0]
  13166. /* calculation of the channel index */
  13167. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  13168. 8005e2c: 687b ldr r3, [r7, #4]
  13169. 8005e2e: 681b ldr r3, [r3, #0]
  13170. 8005e30: 461a mov r2, r3
  13171. 8005e32: 4b6e ldr r3, [pc, #440] @ (8005fec <HAL_DMA_Init+0x650>)
  13172. 8005e34: 4413 add r3, r2
  13173. 8005e36: 4a6e ldr r2, [pc, #440] @ (8005ff0 <HAL_DMA_Init+0x654>)
  13174. 8005e38: fba2 2303 umull r2, r3, r2, r3
  13175. 8005e3c: 091b lsrs r3, r3, #4
  13176. 8005e3e: 009a lsls r2, r3, #2
  13177. 8005e40: 687b ldr r3, [r7, #4]
  13178. 8005e42: 65da str r2, [r3, #92] @ 0x5c
  13179. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  13180. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  13181. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  13182. 8005e44: 6878 ldr r0, [r7, #4]
  13183. 8005e46: f001 fd93 bl 8007970 <DMA_CalcBaseAndBitshift>
  13184. 8005e4a: 4603 mov r3, r0
  13185. 8005e4c: 60fb str r3, [r7, #12]
  13186. /* Clear all interrupt flags */
  13187. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  13188. 8005e4e: 687b ldr r3, [r7, #4]
  13189. 8005e50: 6ddb ldr r3, [r3, #92] @ 0x5c
  13190. 8005e52: f003 031f and.w r3, r3, #31
  13191. 8005e56: 2201 movs r2, #1
  13192. 8005e58: 409a lsls r2, r3
  13193. 8005e5a: 68fb ldr r3, [r7, #12]
  13194. 8005e5c: 605a str r2, [r3, #4]
  13195. 8005e5e: e008 b.n 8005e72 <HAL_DMA_Init+0x4d6>
  13196. }
  13197. else
  13198. {
  13199. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  13200. 8005e60: 687b ldr r3, [r7, #4]
  13201. 8005e62: 2240 movs r2, #64 @ 0x40
  13202. 8005e64: 655a str r2, [r3, #84] @ 0x54
  13203. hdma->State = HAL_DMA_STATE_ERROR;
  13204. 8005e66: 687b ldr r3, [r7, #4]
  13205. 8005e68: 2203 movs r2, #3
  13206. 8005e6a: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13207. return HAL_ERROR;
  13208. 8005e6e: 2301 movs r3, #1
  13209. 8005e70: e0b7 b.n 8005fe2 <HAL_DMA_Init+0x646>
  13210. }
  13211. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  13212. 8005e72: 687b ldr r3, [r7, #4]
  13213. 8005e74: 681b ldr r3, [r3, #0]
  13214. 8005e76: 4a5f ldr r2, [pc, #380] @ (8005ff4 <HAL_DMA_Init+0x658>)
  13215. 8005e78: 4293 cmp r3, r2
  13216. 8005e7a: d072 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13217. 8005e7c: 687b ldr r3, [r7, #4]
  13218. 8005e7e: 681b ldr r3, [r3, #0]
  13219. 8005e80: 4a5d ldr r2, [pc, #372] @ (8005ff8 <HAL_DMA_Init+0x65c>)
  13220. 8005e82: 4293 cmp r3, r2
  13221. 8005e84: d06d beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13222. 8005e86: 687b ldr r3, [r7, #4]
  13223. 8005e88: 681b ldr r3, [r3, #0]
  13224. 8005e8a: 4a5c ldr r2, [pc, #368] @ (8005ffc <HAL_DMA_Init+0x660>)
  13225. 8005e8c: 4293 cmp r3, r2
  13226. 8005e8e: d068 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13227. 8005e90: 687b ldr r3, [r7, #4]
  13228. 8005e92: 681b ldr r3, [r3, #0]
  13229. 8005e94: 4a5a ldr r2, [pc, #360] @ (8006000 <HAL_DMA_Init+0x664>)
  13230. 8005e96: 4293 cmp r3, r2
  13231. 8005e98: d063 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13232. 8005e9a: 687b ldr r3, [r7, #4]
  13233. 8005e9c: 681b ldr r3, [r3, #0]
  13234. 8005e9e: 4a59 ldr r2, [pc, #356] @ (8006004 <HAL_DMA_Init+0x668>)
  13235. 8005ea0: 4293 cmp r3, r2
  13236. 8005ea2: d05e beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13237. 8005ea4: 687b ldr r3, [r7, #4]
  13238. 8005ea6: 681b ldr r3, [r3, #0]
  13239. 8005ea8: 4a57 ldr r2, [pc, #348] @ (8006008 <HAL_DMA_Init+0x66c>)
  13240. 8005eaa: 4293 cmp r3, r2
  13241. 8005eac: d059 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13242. 8005eae: 687b ldr r3, [r7, #4]
  13243. 8005eb0: 681b ldr r3, [r3, #0]
  13244. 8005eb2: 4a56 ldr r2, [pc, #344] @ (800600c <HAL_DMA_Init+0x670>)
  13245. 8005eb4: 4293 cmp r3, r2
  13246. 8005eb6: d054 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13247. 8005eb8: 687b ldr r3, [r7, #4]
  13248. 8005eba: 681b ldr r3, [r3, #0]
  13249. 8005ebc: 4a54 ldr r2, [pc, #336] @ (8006010 <HAL_DMA_Init+0x674>)
  13250. 8005ebe: 4293 cmp r3, r2
  13251. 8005ec0: d04f beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13252. 8005ec2: 687b ldr r3, [r7, #4]
  13253. 8005ec4: 681b ldr r3, [r3, #0]
  13254. 8005ec6: 4a53 ldr r2, [pc, #332] @ (8006014 <HAL_DMA_Init+0x678>)
  13255. 8005ec8: 4293 cmp r3, r2
  13256. 8005eca: d04a beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13257. 8005ecc: 687b ldr r3, [r7, #4]
  13258. 8005ece: 681b ldr r3, [r3, #0]
  13259. 8005ed0: 4a51 ldr r2, [pc, #324] @ (8006018 <HAL_DMA_Init+0x67c>)
  13260. 8005ed2: 4293 cmp r3, r2
  13261. 8005ed4: d045 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13262. 8005ed6: 687b ldr r3, [r7, #4]
  13263. 8005ed8: 681b ldr r3, [r3, #0]
  13264. 8005eda: 4a50 ldr r2, [pc, #320] @ (800601c <HAL_DMA_Init+0x680>)
  13265. 8005edc: 4293 cmp r3, r2
  13266. 8005ede: d040 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13267. 8005ee0: 687b ldr r3, [r7, #4]
  13268. 8005ee2: 681b ldr r3, [r3, #0]
  13269. 8005ee4: 4a4e ldr r2, [pc, #312] @ (8006020 <HAL_DMA_Init+0x684>)
  13270. 8005ee6: 4293 cmp r3, r2
  13271. 8005ee8: d03b beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13272. 8005eea: 687b ldr r3, [r7, #4]
  13273. 8005eec: 681b ldr r3, [r3, #0]
  13274. 8005eee: 4a4d ldr r2, [pc, #308] @ (8006024 <HAL_DMA_Init+0x688>)
  13275. 8005ef0: 4293 cmp r3, r2
  13276. 8005ef2: d036 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13277. 8005ef4: 687b ldr r3, [r7, #4]
  13278. 8005ef6: 681b ldr r3, [r3, #0]
  13279. 8005ef8: 4a4b ldr r2, [pc, #300] @ (8006028 <HAL_DMA_Init+0x68c>)
  13280. 8005efa: 4293 cmp r3, r2
  13281. 8005efc: d031 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13282. 8005efe: 687b ldr r3, [r7, #4]
  13283. 8005f00: 681b ldr r3, [r3, #0]
  13284. 8005f02: 4a4a ldr r2, [pc, #296] @ (800602c <HAL_DMA_Init+0x690>)
  13285. 8005f04: 4293 cmp r3, r2
  13286. 8005f06: d02c beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13287. 8005f08: 687b ldr r3, [r7, #4]
  13288. 8005f0a: 681b ldr r3, [r3, #0]
  13289. 8005f0c: 4a48 ldr r2, [pc, #288] @ (8006030 <HAL_DMA_Init+0x694>)
  13290. 8005f0e: 4293 cmp r3, r2
  13291. 8005f10: d027 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13292. 8005f12: 687b ldr r3, [r7, #4]
  13293. 8005f14: 681b ldr r3, [r3, #0]
  13294. 8005f16: 4a47 ldr r2, [pc, #284] @ (8006034 <HAL_DMA_Init+0x698>)
  13295. 8005f18: 4293 cmp r3, r2
  13296. 8005f1a: d022 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13297. 8005f1c: 687b ldr r3, [r7, #4]
  13298. 8005f1e: 681b ldr r3, [r3, #0]
  13299. 8005f20: 4a45 ldr r2, [pc, #276] @ (8006038 <HAL_DMA_Init+0x69c>)
  13300. 8005f22: 4293 cmp r3, r2
  13301. 8005f24: d01d beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13302. 8005f26: 687b ldr r3, [r7, #4]
  13303. 8005f28: 681b ldr r3, [r3, #0]
  13304. 8005f2a: 4a44 ldr r2, [pc, #272] @ (800603c <HAL_DMA_Init+0x6a0>)
  13305. 8005f2c: 4293 cmp r3, r2
  13306. 8005f2e: d018 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13307. 8005f30: 687b ldr r3, [r7, #4]
  13308. 8005f32: 681b ldr r3, [r3, #0]
  13309. 8005f34: 4a42 ldr r2, [pc, #264] @ (8006040 <HAL_DMA_Init+0x6a4>)
  13310. 8005f36: 4293 cmp r3, r2
  13311. 8005f38: d013 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13312. 8005f3a: 687b ldr r3, [r7, #4]
  13313. 8005f3c: 681b ldr r3, [r3, #0]
  13314. 8005f3e: 4a41 ldr r2, [pc, #260] @ (8006044 <HAL_DMA_Init+0x6a8>)
  13315. 8005f40: 4293 cmp r3, r2
  13316. 8005f42: d00e beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13317. 8005f44: 687b ldr r3, [r7, #4]
  13318. 8005f46: 681b ldr r3, [r3, #0]
  13319. 8005f48: 4a3f ldr r2, [pc, #252] @ (8006048 <HAL_DMA_Init+0x6ac>)
  13320. 8005f4a: 4293 cmp r3, r2
  13321. 8005f4c: d009 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13322. 8005f4e: 687b ldr r3, [r7, #4]
  13323. 8005f50: 681b ldr r3, [r3, #0]
  13324. 8005f52: 4a3e ldr r2, [pc, #248] @ (800604c <HAL_DMA_Init+0x6b0>)
  13325. 8005f54: 4293 cmp r3, r2
  13326. 8005f56: d004 beq.n 8005f62 <HAL_DMA_Init+0x5c6>
  13327. 8005f58: 687b ldr r3, [r7, #4]
  13328. 8005f5a: 681b ldr r3, [r3, #0]
  13329. 8005f5c: 4a3c ldr r2, [pc, #240] @ (8006050 <HAL_DMA_Init+0x6b4>)
  13330. 8005f5e: 4293 cmp r3, r2
  13331. 8005f60: d101 bne.n 8005f66 <HAL_DMA_Init+0x5ca>
  13332. 8005f62: 2301 movs r3, #1
  13333. 8005f64: e000 b.n 8005f68 <HAL_DMA_Init+0x5cc>
  13334. 8005f66: 2300 movs r3, #0
  13335. 8005f68: 2b00 cmp r3, #0
  13336. 8005f6a: d032 beq.n 8005fd2 <HAL_DMA_Init+0x636>
  13337. {
  13338. /* Initialize parameters for DMAMUX channel :
  13339. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  13340. */
  13341. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  13342. 8005f6c: 6878 ldr r0, [r7, #4]
  13343. 8005f6e: f001 fe2d bl 8007bcc <DMA_CalcDMAMUXChannelBaseAndMask>
  13344. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  13345. 8005f72: 687b ldr r3, [r7, #4]
  13346. 8005f74: 689b ldr r3, [r3, #8]
  13347. 8005f76: 2b80 cmp r3, #128 @ 0x80
  13348. 8005f78: d102 bne.n 8005f80 <HAL_DMA_Init+0x5e4>
  13349. {
  13350. /* if memory to memory force the request to 0*/
  13351. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  13352. 8005f7a: 687b ldr r3, [r7, #4]
  13353. 8005f7c: 2200 movs r2, #0
  13354. 8005f7e: 605a str r2, [r3, #4]
  13355. }
  13356. /* Set peripheral request to DMAMUX channel */
  13357. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  13358. 8005f80: 687b ldr r3, [r7, #4]
  13359. 8005f82: 685a ldr r2, [r3, #4]
  13360. 8005f84: 687b ldr r3, [r7, #4]
  13361. 8005f86: 6e1b ldr r3, [r3, #96] @ 0x60
  13362. 8005f88: b2d2 uxtb r2, r2
  13363. 8005f8a: 601a str r2, [r3, #0]
  13364. /* Clear the DMAMUX synchro overrun flag */
  13365. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  13366. 8005f8c: 687b ldr r3, [r7, #4]
  13367. 8005f8e: 6e5b ldr r3, [r3, #100] @ 0x64
  13368. 8005f90: 687a ldr r2, [r7, #4]
  13369. 8005f92: 6e92 ldr r2, [r2, #104] @ 0x68
  13370. 8005f94: 605a str r2, [r3, #4]
  13371. /* Initialize parameters for DMAMUX request generator :
  13372. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  13373. */
  13374. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  13375. 8005f96: 687b ldr r3, [r7, #4]
  13376. 8005f98: 685b ldr r3, [r3, #4]
  13377. 8005f9a: 2b00 cmp r3, #0
  13378. 8005f9c: d010 beq.n 8005fc0 <HAL_DMA_Init+0x624>
  13379. 8005f9e: 687b ldr r3, [r7, #4]
  13380. 8005fa0: 685b ldr r3, [r3, #4]
  13381. 8005fa2: 2b08 cmp r3, #8
  13382. 8005fa4: d80c bhi.n 8005fc0 <HAL_DMA_Init+0x624>
  13383. {
  13384. /* Initialize parameters for DMAMUX request generator :
  13385. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  13386. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  13387. 8005fa6: 6878 ldr r0, [r7, #4]
  13388. 8005fa8: f001 feaa bl 8007d00 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  13389. /* Reset the DMAMUX request generator register */
  13390. hdma->DMAmuxRequestGen->RGCR = 0U;
  13391. 8005fac: 687b ldr r3, [r7, #4]
  13392. 8005fae: 6edb ldr r3, [r3, #108] @ 0x6c
  13393. 8005fb0: 2200 movs r2, #0
  13394. 8005fb2: 601a str r2, [r3, #0]
  13395. /* Clear the DMAMUX request generator overrun flag */
  13396. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  13397. 8005fb4: 687b ldr r3, [r7, #4]
  13398. 8005fb6: 6f1b ldr r3, [r3, #112] @ 0x70
  13399. 8005fb8: 687a ldr r2, [r7, #4]
  13400. 8005fba: 6f52 ldr r2, [r2, #116] @ 0x74
  13401. 8005fbc: 605a str r2, [r3, #4]
  13402. 8005fbe: e008 b.n 8005fd2 <HAL_DMA_Init+0x636>
  13403. }
  13404. else
  13405. {
  13406. hdma->DMAmuxRequestGen = 0U;
  13407. 8005fc0: 687b ldr r3, [r7, #4]
  13408. 8005fc2: 2200 movs r2, #0
  13409. 8005fc4: 66da str r2, [r3, #108] @ 0x6c
  13410. hdma->DMAmuxRequestGenStatus = 0U;
  13411. 8005fc6: 687b ldr r3, [r7, #4]
  13412. 8005fc8: 2200 movs r2, #0
  13413. 8005fca: 671a str r2, [r3, #112] @ 0x70
  13414. hdma->DMAmuxRequestGenStatusMask = 0U;
  13415. 8005fcc: 687b ldr r3, [r7, #4]
  13416. 8005fce: 2200 movs r2, #0
  13417. 8005fd0: 675a str r2, [r3, #116] @ 0x74
  13418. }
  13419. }
  13420. /* Initialize the error code */
  13421. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  13422. 8005fd2: 687b ldr r3, [r7, #4]
  13423. 8005fd4: 2200 movs r2, #0
  13424. 8005fd6: 655a str r2, [r3, #84] @ 0x54
  13425. /* Initialize the DMA state */
  13426. hdma->State = HAL_DMA_STATE_READY;
  13427. 8005fd8: 687b ldr r3, [r7, #4]
  13428. 8005fda: 2201 movs r2, #1
  13429. 8005fdc: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13430. return HAL_OK;
  13431. 8005fe0: 2300 movs r3, #0
  13432. }
  13433. 8005fe2: 4618 mov r0, r3
  13434. 8005fe4: 3718 adds r7, #24
  13435. 8005fe6: 46bd mov sp, r7
  13436. 8005fe8: bd80 pop {r7, pc}
  13437. 8005fea: bf00 nop
  13438. 8005fec: a7fdabf8 .word 0xa7fdabf8
  13439. 8005ff0: cccccccd .word 0xcccccccd
  13440. 8005ff4: 40020010 .word 0x40020010
  13441. 8005ff8: 40020028 .word 0x40020028
  13442. 8005ffc: 40020040 .word 0x40020040
  13443. 8006000: 40020058 .word 0x40020058
  13444. 8006004: 40020070 .word 0x40020070
  13445. 8006008: 40020088 .word 0x40020088
  13446. 800600c: 400200a0 .word 0x400200a0
  13447. 8006010: 400200b8 .word 0x400200b8
  13448. 8006014: 40020410 .word 0x40020410
  13449. 8006018: 40020428 .word 0x40020428
  13450. 800601c: 40020440 .word 0x40020440
  13451. 8006020: 40020458 .word 0x40020458
  13452. 8006024: 40020470 .word 0x40020470
  13453. 8006028: 40020488 .word 0x40020488
  13454. 800602c: 400204a0 .word 0x400204a0
  13455. 8006030: 400204b8 .word 0x400204b8
  13456. 8006034: 58025408 .word 0x58025408
  13457. 8006038: 5802541c .word 0x5802541c
  13458. 800603c: 58025430 .word 0x58025430
  13459. 8006040: 58025444 .word 0x58025444
  13460. 8006044: 58025458 .word 0x58025458
  13461. 8006048: 5802546c .word 0x5802546c
  13462. 800604c: 58025480 .word 0x58025480
  13463. 8006050: 58025494 .word 0x58025494
  13464. 08006054 <HAL_DMA_Abort>:
  13465. * and the Stream will be effectively disabled only after the transfer of
  13466. * this single data is finished.
  13467. * @retval HAL status
  13468. */
  13469. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  13470. {
  13471. 8006054: b580 push {r7, lr}
  13472. 8006056: b086 sub sp, #24
  13473. 8006058: af00 add r7, sp, #0
  13474. 800605a: 6078 str r0, [r7, #4]
  13475. /* calculate DMA base and stream number */
  13476. DMA_Base_Registers *regs_dma;
  13477. BDMA_Base_Registers *regs_bdma;
  13478. const __IO uint32_t *enableRegister;
  13479. uint32_t tickstart = HAL_GetTick();
  13480. 800605c: f7ff f8f0 bl 8005240 <HAL_GetTick>
  13481. 8006060: 6138 str r0, [r7, #16]
  13482. /* Check the DMA peripheral handle */
  13483. if(hdma == NULL)
  13484. 8006062: 687b ldr r3, [r7, #4]
  13485. 8006064: 2b00 cmp r3, #0
  13486. 8006066: d101 bne.n 800606c <HAL_DMA_Abort+0x18>
  13487. {
  13488. return HAL_ERROR;
  13489. 8006068: 2301 movs r3, #1
  13490. 800606a: e2dc b.n 8006626 <HAL_DMA_Abort+0x5d2>
  13491. }
  13492. /* Check the DMA peripheral state */
  13493. if(hdma->State != HAL_DMA_STATE_BUSY)
  13494. 800606c: 687b ldr r3, [r7, #4]
  13495. 800606e: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  13496. 8006072: b2db uxtb r3, r3
  13497. 8006074: 2b02 cmp r3, #2
  13498. 8006076: d008 beq.n 800608a <HAL_DMA_Abort+0x36>
  13499. {
  13500. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  13501. 8006078: 687b ldr r3, [r7, #4]
  13502. 800607a: 2280 movs r2, #128 @ 0x80
  13503. 800607c: 655a str r2, [r3, #84] @ 0x54
  13504. /* Process Unlocked */
  13505. __HAL_UNLOCK(hdma);
  13506. 800607e: 687b ldr r3, [r7, #4]
  13507. 8006080: 2200 movs r2, #0
  13508. 8006082: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13509. return HAL_ERROR;
  13510. 8006086: 2301 movs r3, #1
  13511. 8006088: e2cd b.n 8006626 <HAL_DMA_Abort+0x5d2>
  13512. }
  13513. else
  13514. {
  13515. /* Disable all the transfer interrupts */
  13516. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  13517. 800608a: 687b ldr r3, [r7, #4]
  13518. 800608c: 681b ldr r3, [r3, #0]
  13519. 800608e: 4a76 ldr r2, [pc, #472] @ (8006268 <HAL_DMA_Abort+0x214>)
  13520. 8006090: 4293 cmp r3, r2
  13521. 8006092: d04a beq.n 800612a <HAL_DMA_Abort+0xd6>
  13522. 8006094: 687b ldr r3, [r7, #4]
  13523. 8006096: 681b ldr r3, [r3, #0]
  13524. 8006098: 4a74 ldr r2, [pc, #464] @ (800626c <HAL_DMA_Abort+0x218>)
  13525. 800609a: 4293 cmp r3, r2
  13526. 800609c: d045 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13527. 800609e: 687b ldr r3, [r7, #4]
  13528. 80060a0: 681b ldr r3, [r3, #0]
  13529. 80060a2: 4a73 ldr r2, [pc, #460] @ (8006270 <HAL_DMA_Abort+0x21c>)
  13530. 80060a4: 4293 cmp r3, r2
  13531. 80060a6: d040 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13532. 80060a8: 687b ldr r3, [r7, #4]
  13533. 80060aa: 681b ldr r3, [r3, #0]
  13534. 80060ac: 4a71 ldr r2, [pc, #452] @ (8006274 <HAL_DMA_Abort+0x220>)
  13535. 80060ae: 4293 cmp r3, r2
  13536. 80060b0: d03b beq.n 800612a <HAL_DMA_Abort+0xd6>
  13537. 80060b2: 687b ldr r3, [r7, #4]
  13538. 80060b4: 681b ldr r3, [r3, #0]
  13539. 80060b6: 4a70 ldr r2, [pc, #448] @ (8006278 <HAL_DMA_Abort+0x224>)
  13540. 80060b8: 4293 cmp r3, r2
  13541. 80060ba: d036 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13542. 80060bc: 687b ldr r3, [r7, #4]
  13543. 80060be: 681b ldr r3, [r3, #0]
  13544. 80060c0: 4a6e ldr r2, [pc, #440] @ (800627c <HAL_DMA_Abort+0x228>)
  13545. 80060c2: 4293 cmp r3, r2
  13546. 80060c4: d031 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13547. 80060c6: 687b ldr r3, [r7, #4]
  13548. 80060c8: 681b ldr r3, [r3, #0]
  13549. 80060ca: 4a6d ldr r2, [pc, #436] @ (8006280 <HAL_DMA_Abort+0x22c>)
  13550. 80060cc: 4293 cmp r3, r2
  13551. 80060ce: d02c beq.n 800612a <HAL_DMA_Abort+0xd6>
  13552. 80060d0: 687b ldr r3, [r7, #4]
  13553. 80060d2: 681b ldr r3, [r3, #0]
  13554. 80060d4: 4a6b ldr r2, [pc, #428] @ (8006284 <HAL_DMA_Abort+0x230>)
  13555. 80060d6: 4293 cmp r3, r2
  13556. 80060d8: d027 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13557. 80060da: 687b ldr r3, [r7, #4]
  13558. 80060dc: 681b ldr r3, [r3, #0]
  13559. 80060de: 4a6a ldr r2, [pc, #424] @ (8006288 <HAL_DMA_Abort+0x234>)
  13560. 80060e0: 4293 cmp r3, r2
  13561. 80060e2: d022 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13562. 80060e4: 687b ldr r3, [r7, #4]
  13563. 80060e6: 681b ldr r3, [r3, #0]
  13564. 80060e8: 4a68 ldr r2, [pc, #416] @ (800628c <HAL_DMA_Abort+0x238>)
  13565. 80060ea: 4293 cmp r3, r2
  13566. 80060ec: d01d beq.n 800612a <HAL_DMA_Abort+0xd6>
  13567. 80060ee: 687b ldr r3, [r7, #4]
  13568. 80060f0: 681b ldr r3, [r3, #0]
  13569. 80060f2: 4a67 ldr r2, [pc, #412] @ (8006290 <HAL_DMA_Abort+0x23c>)
  13570. 80060f4: 4293 cmp r3, r2
  13571. 80060f6: d018 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13572. 80060f8: 687b ldr r3, [r7, #4]
  13573. 80060fa: 681b ldr r3, [r3, #0]
  13574. 80060fc: 4a65 ldr r2, [pc, #404] @ (8006294 <HAL_DMA_Abort+0x240>)
  13575. 80060fe: 4293 cmp r3, r2
  13576. 8006100: d013 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13577. 8006102: 687b ldr r3, [r7, #4]
  13578. 8006104: 681b ldr r3, [r3, #0]
  13579. 8006106: 4a64 ldr r2, [pc, #400] @ (8006298 <HAL_DMA_Abort+0x244>)
  13580. 8006108: 4293 cmp r3, r2
  13581. 800610a: d00e beq.n 800612a <HAL_DMA_Abort+0xd6>
  13582. 800610c: 687b ldr r3, [r7, #4]
  13583. 800610e: 681b ldr r3, [r3, #0]
  13584. 8006110: 4a62 ldr r2, [pc, #392] @ (800629c <HAL_DMA_Abort+0x248>)
  13585. 8006112: 4293 cmp r3, r2
  13586. 8006114: d009 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13587. 8006116: 687b ldr r3, [r7, #4]
  13588. 8006118: 681b ldr r3, [r3, #0]
  13589. 800611a: 4a61 ldr r2, [pc, #388] @ (80062a0 <HAL_DMA_Abort+0x24c>)
  13590. 800611c: 4293 cmp r3, r2
  13591. 800611e: d004 beq.n 800612a <HAL_DMA_Abort+0xd6>
  13592. 8006120: 687b ldr r3, [r7, #4]
  13593. 8006122: 681b ldr r3, [r3, #0]
  13594. 8006124: 4a5f ldr r2, [pc, #380] @ (80062a4 <HAL_DMA_Abort+0x250>)
  13595. 8006126: 4293 cmp r3, r2
  13596. 8006128: d101 bne.n 800612e <HAL_DMA_Abort+0xda>
  13597. 800612a: 2301 movs r3, #1
  13598. 800612c: e000 b.n 8006130 <HAL_DMA_Abort+0xdc>
  13599. 800612e: 2300 movs r3, #0
  13600. 8006130: 2b00 cmp r3, #0
  13601. 8006132: d013 beq.n 800615c <HAL_DMA_Abort+0x108>
  13602. {
  13603. /* Disable DMA All Interrupts */
  13604. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  13605. 8006134: 687b ldr r3, [r7, #4]
  13606. 8006136: 681b ldr r3, [r3, #0]
  13607. 8006138: 681a ldr r2, [r3, #0]
  13608. 800613a: 687b ldr r3, [r7, #4]
  13609. 800613c: 681b ldr r3, [r3, #0]
  13610. 800613e: f022 021e bic.w r2, r2, #30
  13611. 8006142: 601a str r2, [r3, #0]
  13612. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  13613. 8006144: 687b ldr r3, [r7, #4]
  13614. 8006146: 681b ldr r3, [r3, #0]
  13615. 8006148: 695a ldr r2, [r3, #20]
  13616. 800614a: 687b ldr r3, [r7, #4]
  13617. 800614c: 681b ldr r3, [r3, #0]
  13618. 800614e: f022 0280 bic.w r2, r2, #128 @ 0x80
  13619. 8006152: 615a str r2, [r3, #20]
  13620. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  13621. 8006154: 687b ldr r3, [r7, #4]
  13622. 8006156: 681b ldr r3, [r3, #0]
  13623. 8006158: 617b str r3, [r7, #20]
  13624. 800615a: e00a b.n 8006172 <HAL_DMA_Abort+0x11e>
  13625. }
  13626. else /* BDMA channel */
  13627. {
  13628. /* Disable DMA All Interrupts */
  13629. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  13630. 800615c: 687b ldr r3, [r7, #4]
  13631. 800615e: 681b ldr r3, [r3, #0]
  13632. 8006160: 681a ldr r2, [r3, #0]
  13633. 8006162: 687b ldr r3, [r7, #4]
  13634. 8006164: 681b ldr r3, [r3, #0]
  13635. 8006166: f022 020e bic.w r2, r2, #14
  13636. 800616a: 601a str r2, [r3, #0]
  13637. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  13638. 800616c: 687b ldr r3, [r7, #4]
  13639. 800616e: 681b ldr r3, [r3, #0]
  13640. 8006170: 617b str r3, [r7, #20]
  13641. }
  13642. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  13643. 8006172: 687b ldr r3, [r7, #4]
  13644. 8006174: 681b ldr r3, [r3, #0]
  13645. 8006176: 4a3c ldr r2, [pc, #240] @ (8006268 <HAL_DMA_Abort+0x214>)
  13646. 8006178: 4293 cmp r3, r2
  13647. 800617a: d072 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13648. 800617c: 687b ldr r3, [r7, #4]
  13649. 800617e: 681b ldr r3, [r3, #0]
  13650. 8006180: 4a3a ldr r2, [pc, #232] @ (800626c <HAL_DMA_Abort+0x218>)
  13651. 8006182: 4293 cmp r3, r2
  13652. 8006184: d06d beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13653. 8006186: 687b ldr r3, [r7, #4]
  13654. 8006188: 681b ldr r3, [r3, #0]
  13655. 800618a: 4a39 ldr r2, [pc, #228] @ (8006270 <HAL_DMA_Abort+0x21c>)
  13656. 800618c: 4293 cmp r3, r2
  13657. 800618e: d068 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13658. 8006190: 687b ldr r3, [r7, #4]
  13659. 8006192: 681b ldr r3, [r3, #0]
  13660. 8006194: 4a37 ldr r2, [pc, #220] @ (8006274 <HAL_DMA_Abort+0x220>)
  13661. 8006196: 4293 cmp r3, r2
  13662. 8006198: d063 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13663. 800619a: 687b ldr r3, [r7, #4]
  13664. 800619c: 681b ldr r3, [r3, #0]
  13665. 800619e: 4a36 ldr r2, [pc, #216] @ (8006278 <HAL_DMA_Abort+0x224>)
  13666. 80061a0: 4293 cmp r3, r2
  13667. 80061a2: d05e beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13668. 80061a4: 687b ldr r3, [r7, #4]
  13669. 80061a6: 681b ldr r3, [r3, #0]
  13670. 80061a8: 4a34 ldr r2, [pc, #208] @ (800627c <HAL_DMA_Abort+0x228>)
  13671. 80061aa: 4293 cmp r3, r2
  13672. 80061ac: d059 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13673. 80061ae: 687b ldr r3, [r7, #4]
  13674. 80061b0: 681b ldr r3, [r3, #0]
  13675. 80061b2: 4a33 ldr r2, [pc, #204] @ (8006280 <HAL_DMA_Abort+0x22c>)
  13676. 80061b4: 4293 cmp r3, r2
  13677. 80061b6: d054 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13678. 80061b8: 687b ldr r3, [r7, #4]
  13679. 80061ba: 681b ldr r3, [r3, #0]
  13680. 80061bc: 4a31 ldr r2, [pc, #196] @ (8006284 <HAL_DMA_Abort+0x230>)
  13681. 80061be: 4293 cmp r3, r2
  13682. 80061c0: d04f beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13683. 80061c2: 687b ldr r3, [r7, #4]
  13684. 80061c4: 681b ldr r3, [r3, #0]
  13685. 80061c6: 4a30 ldr r2, [pc, #192] @ (8006288 <HAL_DMA_Abort+0x234>)
  13686. 80061c8: 4293 cmp r3, r2
  13687. 80061ca: d04a beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13688. 80061cc: 687b ldr r3, [r7, #4]
  13689. 80061ce: 681b ldr r3, [r3, #0]
  13690. 80061d0: 4a2e ldr r2, [pc, #184] @ (800628c <HAL_DMA_Abort+0x238>)
  13691. 80061d2: 4293 cmp r3, r2
  13692. 80061d4: d045 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13693. 80061d6: 687b ldr r3, [r7, #4]
  13694. 80061d8: 681b ldr r3, [r3, #0]
  13695. 80061da: 4a2d ldr r2, [pc, #180] @ (8006290 <HAL_DMA_Abort+0x23c>)
  13696. 80061dc: 4293 cmp r3, r2
  13697. 80061de: d040 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13698. 80061e0: 687b ldr r3, [r7, #4]
  13699. 80061e2: 681b ldr r3, [r3, #0]
  13700. 80061e4: 4a2b ldr r2, [pc, #172] @ (8006294 <HAL_DMA_Abort+0x240>)
  13701. 80061e6: 4293 cmp r3, r2
  13702. 80061e8: d03b beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13703. 80061ea: 687b ldr r3, [r7, #4]
  13704. 80061ec: 681b ldr r3, [r3, #0]
  13705. 80061ee: 4a2a ldr r2, [pc, #168] @ (8006298 <HAL_DMA_Abort+0x244>)
  13706. 80061f0: 4293 cmp r3, r2
  13707. 80061f2: d036 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13708. 80061f4: 687b ldr r3, [r7, #4]
  13709. 80061f6: 681b ldr r3, [r3, #0]
  13710. 80061f8: 4a28 ldr r2, [pc, #160] @ (800629c <HAL_DMA_Abort+0x248>)
  13711. 80061fa: 4293 cmp r3, r2
  13712. 80061fc: d031 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13713. 80061fe: 687b ldr r3, [r7, #4]
  13714. 8006200: 681b ldr r3, [r3, #0]
  13715. 8006202: 4a27 ldr r2, [pc, #156] @ (80062a0 <HAL_DMA_Abort+0x24c>)
  13716. 8006204: 4293 cmp r3, r2
  13717. 8006206: d02c beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13718. 8006208: 687b ldr r3, [r7, #4]
  13719. 800620a: 681b ldr r3, [r3, #0]
  13720. 800620c: 4a25 ldr r2, [pc, #148] @ (80062a4 <HAL_DMA_Abort+0x250>)
  13721. 800620e: 4293 cmp r3, r2
  13722. 8006210: d027 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13723. 8006212: 687b ldr r3, [r7, #4]
  13724. 8006214: 681b ldr r3, [r3, #0]
  13725. 8006216: 4a24 ldr r2, [pc, #144] @ (80062a8 <HAL_DMA_Abort+0x254>)
  13726. 8006218: 4293 cmp r3, r2
  13727. 800621a: d022 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13728. 800621c: 687b ldr r3, [r7, #4]
  13729. 800621e: 681b ldr r3, [r3, #0]
  13730. 8006220: 4a22 ldr r2, [pc, #136] @ (80062ac <HAL_DMA_Abort+0x258>)
  13731. 8006222: 4293 cmp r3, r2
  13732. 8006224: d01d beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13733. 8006226: 687b ldr r3, [r7, #4]
  13734. 8006228: 681b ldr r3, [r3, #0]
  13735. 800622a: 4a21 ldr r2, [pc, #132] @ (80062b0 <HAL_DMA_Abort+0x25c>)
  13736. 800622c: 4293 cmp r3, r2
  13737. 800622e: d018 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13738. 8006230: 687b ldr r3, [r7, #4]
  13739. 8006232: 681b ldr r3, [r3, #0]
  13740. 8006234: 4a1f ldr r2, [pc, #124] @ (80062b4 <HAL_DMA_Abort+0x260>)
  13741. 8006236: 4293 cmp r3, r2
  13742. 8006238: d013 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13743. 800623a: 687b ldr r3, [r7, #4]
  13744. 800623c: 681b ldr r3, [r3, #0]
  13745. 800623e: 4a1e ldr r2, [pc, #120] @ (80062b8 <HAL_DMA_Abort+0x264>)
  13746. 8006240: 4293 cmp r3, r2
  13747. 8006242: d00e beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13748. 8006244: 687b ldr r3, [r7, #4]
  13749. 8006246: 681b ldr r3, [r3, #0]
  13750. 8006248: 4a1c ldr r2, [pc, #112] @ (80062bc <HAL_DMA_Abort+0x268>)
  13751. 800624a: 4293 cmp r3, r2
  13752. 800624c: d009 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13753. 800624e: 687b ldr r3, [r7, #4]
  13754. 8006250: 681b ldr r3, [r3, #0]
  13755. 8006252: 4a1b ldr r2, [pc, #108] @ (80062c0 <HAL_DMA_Abort+0x26c>)
  13756. 8006254: 4293 cmp r3, r2
  13757. 8006256: d004 beq.n 8006262 <HAL_DMA_Abort+0x20e>
  13758. 8006258: 687b ldr r3, [r7, #4]
  13759. 800625a: 681b ldr r3, [r3, #0]
  13760. 800625c: 4a19 ldr r2, [pc, #100] @ (80062c4 <HAL_DMA_Abort+0x270>)
  13761. 800625e: 4293 cmp r3, r2
  13762. 8006260: d132 bne.n 80062c8 <HAL_DMA_Abort+0x274>
  13763. 8006262: 2301 movs r3, #1
  13764. 8006264: e031 b.n 80062ca <HAL_DMA_Abort+0x276>
  13765. 8006266: bf00 nop
  13766. 8006268: 40020010 .word 0x40020010
  13767. 800626c: 40020028 .word 0x40020028
  13768. 8006270: 40020040 .word 0x40020040
  13769. 8006274: 40020058 .word 0x40020058
  13770. 8006278: 40020070 .word 0x40020070
  13771. 800627c: 40020088 .word 0x40020088
  13772. 8006280: 400200a0 .word 0x400200a0
  13773. 8006284: 400200b8 .word 0x400200b8
  13774. 8006288: 40020410 .word 0x40020410
  13775. 800628c: 40020428 .word 0x40020428
  13776. 8006290: 40020440 .word 0x40020440
  13777. 8006294: 40020458 .word 0x40020458
  13778. 8006298: 40020470 .word 0x40020470
  13779. 800629c: 40020488 .word 0x40020488
  13780. 80062a0: 400204a0 .word 0x400204a0
  13781. 80062a4: 400204b8 .word 0x400204b8
  13782. 80062a8: 58025408 .word 0x58025408
  13783. 80062ac: 5802541c .word 0x5802541c
  13784. 80062b0: 58025430 .word 0x58025430
  13785. 80062b4: 58025444 .word 0x58025444
  13786. 80062b8: 58025458 .word 0x58025458
  13787. 80062bc: 5802546c .word 0x5802546c
  13788. 80062c0: 58025480 .word 0x58025480
  13789. 80062c4: 58025494 .word 0x58025494
  13790. 80062c8: 2300 movs r3, #0
  13791. 80062ca: 2b00 cmp r3, #0
  13792. 80062cc: d007 beq.n 80062de <HAL_DMA_Abort+0x28a>
  13793. {
  13794. /* disable the DMAMUX sync overrun IT */
  13795. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  13796. 80062ce: 687b ldr r3, [r7, #4]
  13797. 80062d0: 6e1b ldr r3, [r3, #96] @ 0x60
  13798. 80062d2: 681a ldr r2, [r3, #0]
  13799. 80062d4: 687b ldr r3, [r7, #4]
  13800. 80062d6: 6e1b ldr r3, [r3, #96] @ 0x60
  13801. 80062d8: f422 7280 bic.w r2, r2, #256 @ 0x100
  13802. 80062dc: 601a str r2, [r3, #0]
  13803. }
  13804. /* Disable the stream */
  13805. __HAL_DMA_DISABLE(hdma);
  13806. 80062de: 687b ldr r3, [r7, #4]
  13807. 80062e0: 681b ldr r3, [r3, #0]
  13808. 80062e2: 4a6d ldr r2, [pc, #436] @ (8006498 <HAL_DMA_Abort+0x444>)
  13809. 80062e4: 4293 cmp r3, r2
  13810. 80062e6: d04a beq.n 800637e <HAL_DMA_Abort+0x32a>
  13811. 80062e8: 687b ldr r3, [r7, #4]
  13812. 80062ea: 681b ldr r3, [r3, #0]
  13813. 80062ec: 4a6b ldr r2, [pc, #428] @ (800649c <HAL_DMA_Abort+0x448>)
  13814. 80062ee: 4293 cmp r3, r2
  13815. 80062f0: d045 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13816. 80062f2: 687b ldr r3, [r7, #4]
  13817. 80062f4: 681b ldr r3, [r3, #0]
  13818. 80062f6: 4a6a ldr r2, [pc, #424] @ (80064a0 <HAL_DMA_Abort+0x44c>)
  13819. 80062f8: 4293 cmp r3, r2
  13820. 80062fa: d040 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13821. 80062fc: 687b ldr r3, [r7, #4]
  13822. 80062fe: 681b ldr r3, [r3, #0]
  13823. 8006300: 4a68 ldr r2, [pc, #416] @ (80064a4 <HAL_DMA_Abort+0x450>)
  13824. 8006302: 4293 cmp r3, r2
  13825. 8006304: d03b beq.n 800637e <HAL_DMA_Abort+0x32a>
  13826. 8006306: 687b ldr r3, [r7, #4]
  13827. 8006308: 681b ldr r3, [r3, #0]
  13828. 800630a: 4a67 ldr r2, [pc, #412] @ (80064a8 <HAL_DMA_Abort+0x454>)
  13829. 800630c: 4293 cmp r3, r2
  13830. 800630e: d036 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13831. 8006310: 687b ldr r3, [r7, #4]
  13832. 8006312: 681b ldr r3, [r3, #0]
  13833. 8006314: 4a65 ldr r2, [pc, #404] @ (80064ac <HAL_DMA_Abort+0x458>)
  13834. 8006316: 4293 cmp r3, r2
  13835. 8006318: d031 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13836. 800631a: 687b ldr r3, [r7, #4]
  13837. 800631c: 681b ldr r3, [r3, #0]
  13838. 800631e: 4a64 ldr r2, [pc, #400] @ (80064b0 <HAL_DMA_Abort+0x45c>)
  13839. 8006320: 4293 cmp r3, r2
  13840. 8006322: d02c beq.n 800637e <HAL_DMA_Abort+0x32a>
  13841. 8006324: 687b ldr r3, [r7, #4]
  13842. 8006326: 681b ldr r3, [r3, #0]
  13843. 8006328: 4a62 ldr r2, [pc, #392] @ (80064b4 <HAL_DMA_Abort+0x460>)
  13844. 800632a: 4293 cmp r3, r2
  13845. 800632c: d027 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13846. 800632e: 687b ldr r3, [r7, #4]
  13847. 8006330: 681b ldr r3, [r3, #0]
  13848. 8006332: 4a61 ldr r2, [pc, #388] @ (80064b8 <HAL_DMA_Abort+0x464>)
  13849. 8006334: 4293 cmp r3, r2
  13850. 8006336: d022 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13851. 8006338: 687b ldr r3, [r7, #4]
  13852. 800633a: 681b ldr r3, [r3, #0]
  13853. 800633c: 4a5f ldr r2, [pc, #380] @ (80064bc <HAL_DMA_Abort+0x468>)
  13854. 800633e: 4293 cmp r3, r2
  13855. 8006340: d01d beq.n 800637e <HAL_DMA_Abort+0x32a>
  13856. 8006342: 687b ldr r3, [r7, #4]
  13857. 8006344: 681b ldr r3, [r3, #0]
  13858. 8006346: 4a5e ldr r2, [pc, #376] @ (80064c0 <HAL_DMA_Abort+0x46c>)
  13859. 8006348: 4293 cmp r3, r2
  13860. 800634a: d018 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13861. 800634c: 687b ldr r3, [r7, #4]
  13862. 800634e: 681b ldr r3, [r3, #0]
  13863. 8006350: 4a5c ldr r2, [pc, #368] @ (80064c4 <HAL_DMA_Abort+0x470>)
  13864. 8006352: 4293 cmp r3, r2
  13865. 8006354: d013 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13866. 8006356: 687b ldr r3, [r7, #4]
  13867. 8006358: 681b ldr r3, [r3, #0]
  13868. 800635a: 4a5b ldr r2, [pc, #364] @ (80064c8 <HAL_DMA_Abort+0x474>)
  13869. 800635c: 4293 cmp r3, r2
  13870. 800635e: d00e beq.n 800637e <HAL_DMA_Abort+0x32a>
  13871. 8006360: 687b ldr r3, [r7, #4]
  13872. 8006362: 681b ldr r3, [r3, #0]
  13873. 8006364: 4a59 ldr r2, [pc, #356] @ (80064cc <HAL_DMA_Abort+0x478>)
  13874. 8006366: 4293 cmp r3, r2
  13875. 8006368: d009 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13876. 800636a: 687b ldr r3, [r7, #4]
  13877. 800636c: 681b ldr r3, [r3, #0]
  13878. 800636e: 4a58 ldr r2, [pc, #352] @ (80064d0 <HAL_DMA_Abort+0x47c>)
  13879. 8006370: 4293 cmp r3, r2
  13880. 8006372: d004 beq.n 800637e <HAL_DMA_Abort+0x32a>
  13881. 8006374: 687b ldr r3, [r7, #4]
  13882. 8006376: 681b ldr r3, [r3, #0]
  13883. 8006378: 4a56 ldr r2, [pc, #344] @ (80064d4 <HAL_DMA_Abort+0x480>)
  13884. 800637a: 4293 cmp r3, r2
  13885. 800637c: d108 bne.n 8006390 <HAL_DMA_Abort+0x33c>
  13886. 800637e: 687b ldr r3, [r7, #4]
  13887. 8006380: 681b ldr r3, [r3, #0]
  13888. 8006382: 681a ldr r2, [r3, #0]
  13889. 8006384: 687b ldr r3, [r7, #4]
  13890. 8006386: 681b ldr r3, [r3, #0]
  13891. 8006388: f022 0201 bic.w r2, r2, #1
  13892. 800638c: 601a str r2, [r3, #0]
  13893. 800638e: e007 b.n 80063a0 <HAL_DMA_Abort+0x34c>
  13894. 8006390: 687b ldr r3, [r7, #4]
  13895. 8006392: 681b ldr r3, [r3, #0]
  13896. 8006394: 681a ldr r2, [r3, #0]
  13897. 8006396: 687b ldr r3, [r7, #4]
  13898. 8006398: 681b ldr r3, [r3, #0]
  13899. 800639a: f022 0201 bic.w r2, r2, #1
  13900. 800639e: 601a str r2, [r3, #0]
  13901. /* Check if the DMA Stream is effectively disabled */
  13902. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  13903. 80063a0: e013 b.n 80063ca <HAL_DMA_Abort+0x376>
  13904. {
  13905. /* Check for the Timeout */
  13906. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  13907. 80063a2: f7fe ff4d bl 8005240 <HAL_GetTick>
  13908. 80063a6: 4602 mov r2, r0
  13909. 80063a8: 693b ldr r3, [r7, #16]
  13910. 80063aa: 1ad3 subs r3, r2, r3
  13911. 80063ac: 2b05 cmp r3, #5
  13912. 80063ae: d90c bls.n 80063ca <HAL_DMA_Abort+0x376>
  13913. {
  13914. /* Update error code */
  13915. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  13916. 80063b0: 687b ldr r3, [r7, #4]
  13917. 80063b2: 2220 movs r2, #32
  13918. 80063b4: 655a str r2, [r3, #84] @ 0x54
  13919. /* Change the DMA state */
  13920. hdma->State = HAL_DMA_STATE_ERROR;
  13921. 80063b6: 687b ldr r3, [r7, #4]
  13922. 80063b8: 2203 movs r2, #3
  13923. 80063ba: f883 2035 strb.w r2, [r3, #53] @ 0x35
  13924. /* Process Unlocked */
  13925. __HAL_UNLOCK(hdma);
  13926. 80063be: 687b ldr r3, [r7, #4]
  13927. 80063c0: 2200 movs r2, #0
  13928. 80063c2: f883 2034 strb.w r2, [r3, #52] @ 0x34
  13929. return HAL_ERROR;
  13930. 80063c6: 2301 movs r3, #1
  13931. 80063c8: e12d b.n 8006626 <HAL_DMA_Abort+0x5d2>
  13932. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  13933. 80063ca: 697b ldr r3, [r7, #20]
  13934. 80063cc: 681b ldr r3, [r3, #0]
  13935. 80063ce: f003 0301 and.w r3, r3, #1
  13936. 80063d2: 2b00 cmp r3, #0
  13937. 80063d4: d1e5 bne.n 80063a2 <HAL_DMA_Abort+0x34e>
  13938. }
  13939. }
  13940. /* Clear all interrupt flags at correct offset within the register */
  13941. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  13942. 80063d6: 687b ldr r3, [r7, #4]
  13943. 80063d8: 681b ldr r3, [r3, #0]
  13944. 80063da: 4a2f ldr r2, [pc, #188] @ (8006498 <HAL_DMA_Abort+0x444>)
  13945. 80063dc: 4293 cmp r3, r2
  13946. 80063de: d04a beq.n 8006476 <HAL_DMA_Abort+0x422>
  13947. 80063e0: 687b ldr r3, [r7, #4]
  13948. 80063e2: 681b ldr r3, [r3, #0]
  13949. 80063e4: 4a2d ldr r2, [pc, #180] @ (800649c <HAL_DMA_Abort+0x448>)
  13950. 80063e6: 4293 cmp r3, r2
  13951. 80063e8: d045 beq.n 8006476 <HAL_DMA_Abort+0x422>
  13952. 80063ea: 687b ldr r3, [r7, #4]
  13953. 80063ec: 681b ldr r3, [r3, #0]
  13954. 80063ee: 4a2c ldr r2, [pc, #176] @ (80064a0 <HAL_DMA_Abort+0x44c>)
  13955. 80063f0: 4293 cmp r3, r2
  13956. 80063f2: d040 beq.n 8006476 <HAL_DMA_Abort+0x422>
  13957. 80063f4: 687b ldr r3, [r7, #4]
  13958. 80063f6: 681b ldr r3, [r3, #0]
  13959. 80063f8: 4a2a ldr r2, [pc, #168] @ (80064a4 <HAL_DMA_Abort+0x450>)
  13960. 80063fa: 4293 cmp r3, r2
  13961. 80063fc: d03b beq.n 8006476 <HAL_DMA_Abort+0x422>
  13962. 80063fe: 687b ldr r3, [r7, #4]
  13963. 8006400: 681b ldr r3, [r3, #0]
  13964. 8006402: 4a29 ldr r2, [pc, #164] @ (80064a8 <HAL_DMA_Abort+0x454>)
  13965. 8006404: 4293 cmp r3, r2
  13966. 8006406: d036 beq.n 8006476 <HAL_DMA_Abort+0x422>
  13967. 8006408: 687b ldr r3, [r7, #4]
  13968. 800640a: 681b ldr r3, [r3, #0]
  13969. 800640c: 4a27 ldr r2, [pc, #156] @ (80064ac <HAL_DMA_Abort+0x458>)
  13970. 800640e: 4293 cmp r3, r2
  13971. 8006410: d031 beq.n 8006476 <HAL_DMA_Abort+0x422>
  13972. 8006412: 687b ldr r3, [r7, #4]
  13973. 8006414: 681b ldr r3, [r3, #0]
  13974. 8006416: 4a26 ldr r2, [pc, #152] @ (80064b0 <HAL_DMA_Abort+0x45c>)
  13975. 8006418: 4293 cmp r3, r2
  13976. 800641a: d02c beq.n 8006476 <HAL_DMA_Abort+0x422>
  13977. 800641c: 687b ldr r3, [r7, #4]
  13978. 800641e: 681b ldr r3, [r3, #0]
  13979. 8006420: 4a24 ldr r2, [pc, #144] @ (80064b4 <HAL_DMA_Abort+0x460>)
  13980. 8006422: 4293 cmp r3, r2
  13981. 8006424: d027 beq.n 8006476 <HAL_DMA_Abort+0x422>
  13982. 8006426: 687b ldr r3, [r7, #4]
  13983. 8006428: 681b ldr r3, [r3, #0]
  13984. 800642a: 4a23 ldr r2, [pc, #140] @ (80064b8 <HAL_DMA_Abort+0x464>)
  13985. 800642c: 4293 cmp r3, r2
  13986. 800642e: d022 beq.n 8006476 <HAL_DMA_Abort+0x422>
  13987. 8006430: 687b ldr r3, [r7, #4]
  13988. 8006432: 681b ldr r3, [r3, #0]
  13989. 8006434: 4a21 ldr r2, [pc, #132] @ (80064bc <HAL_DMA_Abort+0x468>)
  13990. 8006436: 4293 cmp r3, r2
  13991. 8006438: d01d beq.n 8006476 <HAL_DMA_Abort+0x422>
  13992. 800643a: 687b ldr r3, [r7, #4]
  13993. 800643c: 681b ldr r3, [r3, #0]
  13994. 800643e: 4a20 ldr r2, [pc, #128] @ (80064c0 <HAL_DMA_Abort+0x46c>)
  13995. 8006440: 4293 cmp r3, r2
  13996. 8006442: d018 beq.n 8006476 <HAL_DMA_Abort+0x422>
  13997. 8006444: 687b ldr r3, [r7, #4]
  13998. 8006446: 681b ldr r3, [r3, #0]
  13999. 8006448: 4a1e ldr r2, [pc, #120] @ (80064c4 <HAL_DMA_Abort+0x470>)
  14000. 800644a: 4293 cmp r3, r2
  14001. 800644c: d013 beq.n 8006476 <HAL_DMA_Abort+0x422>
  14002. 800644e: 687b ldr r3, [r7, #4]
  14003. 8006450: 681b ldr r3, [r3, #0]
  14004. 8006452: 4a1d ldr r2, [pc, #116] @ (80064c8 <HAL_DMA_Abort+0x474>)
  14005. 8006454: 4293 cmp r3, r2
  14006. 8006456: d00e beq.n 8006476 <HAL_DMA_Abort+0x422>
  14007. 8006458: 687b ldr r3, [r7, #4]
  14008. 800645a: 681b ldr r3, [r3, #0]
  14009. 800645c: 4a1b ldr r2, [pc, #108] @ (80064cc <HAL_DMA_Abort+0x478>)
  14010. 800645e: 4293 cmp r3, r2
  14011. 8006460: d009 beq.n 8006476 <HAL_DMA_Abort+0x422>
  14012. 8006462: 687b ldr r3, [r7, #4]
  14013. 8006464: 681b ldr r3, [r3, #0]
  14014. 8006466: 4a1a ldr r2, [pc, #104] @ (80064d0 <HAL_DMA_Abort+0x47c>)
  14015. 8006468: 4293 cmp r3, r2
  14016. 800646a: d004 beq.n 8006476 <HAL_DMA_Abort+0x422>
  14017. 800646c: 687b ldr r3, [r7, #4]
  14018. 800646e: 681b ldr r3, [r3, #0]
  14019. 8006470: 4a18 ldr r2, [pc, #96] @ (80064d4 <HAL_DMA_Abort+0x480>)
  14020. 8006472: 4293 cmp r3, r2
  14021. 8006474: d101 bne.n 800647a <HAL_DMA_Abort+0x426>
  14022. 8006476: 2301 movs r3, #1
  14023. 8006478: e000 b.n 800647c <HAL_DMA_Abort+0x428>
  14024. 800647a: 2300 movs r3, #0
  14025. 800647c: 2b00 cmp r3, #0
  14026. 800647e: d02b beq.n 80064d8 <HAL_DMA_Abort+0x484>
  14027. {
  14028. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  14029. 8006480: 687b ldr r3, [r7, #4]
  14030. 8006482: 6d9b ldr r3, [r3, #88] @ 0x58
  14031. 8006484: 60bb str r3, [r7, #8]
  14032. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  14033. 8006486: 687b ldr r3, [r7, #4]
  14034. 8006488: 6ddb ldr r3, [r3, #92] @ 0x5c
  14035. 800648a: f003 031f and.w r3, r3, #31
  14036. 800648e: 223f movs r2, #63 @ 0x3f
  14037. 8006490: 409a lsls r2, r3
  14038. 8006492: 68bb ldr r3, [r7, #8]
  14039. 8006494: 609a str r2, [r3, #8]
  14040. 8006496: e02a b.n 80064ee <HAL_DMA_Abort+0x49a>
  14041. 8006498: 40020010 .word 0x40020010
  14042. 800649c: 40020028 .word 0x40020028
  14043. 80064a0: 40020040 .word 0x40020040
  14044. 80064a4: 40020058 .word 0x40020058
  14045. 80064a8: 40020070 .word 0x40020070
  14046. 80064ac: 40020088 .word 0x40020088
  14047. 80064b0: 400200a0 .word 0x400200a0
  14048. 80064b4: 400200b8 .word 0x400200b8
  14049. 80064b8: 40020410 .word 0x40020410
  14050. 80064bc: 40020428 .word 0x40020428
  14051. 80064c0: 40020440 .word 0x40020440
  14052. 80064c4: 40020458 .word 0x40020458
  14053. 80064c8: 40020470 .word 0x40020470
  14054. 80064cc: 40020488 .word 0x40020488
  14055. 80064d0: 400204a0 .word 0x400204a0
  14056. 80064d4: 400204b8 .word 0x400204b8
  14057. }
  14058. else /* BDMA channel */
  14059. {
  14060. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  14061. 80064d8: 687b ldr r3, [r7, #4]
  14062. 80064da: 6d9b ldr r3, [r3, #88] @ 0x58
  14063. 80064dc: 60fb str r3, [r7, #12]
  14064. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  14065. 80064de: 687b ldr r3, [r7, #4]
  14066. 80064e0: 6ddb ldr r3, [r3, #92] @ 0x5c
  14067. 80064e2: f003 031f and.w r3, r3, #31
  14068. 80064e6: 2201 movs r2, #1
  14069. 80064e8: 409a lsls r2, r3
  14070. 80064ea: 68fb ldr r3, [r7, #12]
  14071. 80064ec: 605a str r2, [r3, #4]
  14072. }
  14073. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  14074. 80064ee: 687b ldr r3, [r7, #4]
  14075. 80064f0: 681b ldr r3, [r3, #0]
  14076. 80064f2: 4a4f ldr r2, [pc, #316] @ (8006630 <HAL_DMA_Abort+0x5dc>)
  14077. 80064f4: 4293 cmp r3, r2
  14078. 80064f6: d072 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14079. 80064f8: 687b ldr r3, [r7, #4]
  14080. 80064fa: 681b ldr r3, [r3, #0]
  14081. 80064fc: 4a4d ldr r2, [pc, #308] @ (8006634 <HAL_DMA_Abort+0x5e0>)
  14082. 80064fe: 4293 cmp r3, r2
  14083. 8006500: d06d beq.n 80065de <HAL_DMA_Abort+0x58a>
  14084. 8006502: 687b ldr r3, [r7, #4]
  14085. 8006504: 681b ldr r3, [r3, #0]
  14086. 8006506: 4a4c ldr r2, [pc, #304] @ (8006638 <HAL_DMA_Abort+0x5e4>)
  14087. 8006508: 4293 cmp r3, r2
  14088. 800650a: d068 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14089. 800650c: 687b ldr r3, [r7, #4]
  14090. 800650e: 681b ldr r3, [r3, #0]
  14091. 8006510: 4a4a ldr r2, [pc, #296] @ (800663c <HAL_DMA_Abort+0x5e8>)
  14092. 8006512: 4293 cmp r3, r2
  14093. 8006514: d063 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14094. 8006516: 687b ldr r3, [r7, #4]
  14095. 8006518: 681b ldr r3, [r3, #0]
  14096. 800651a: 4a49 ldr r2, [pc, #292] @ (8006640 <HAL_DMA_Abort+0x5ec>)
  14097. 800651c: 4293 cmp r3, r2
  14098. 800651e: d05e beq.n 80065de <HAL_DMA_Abort+0x58a>
  14099. 8006520: 687b ldr r3, [r7, #4]
  14100. 8006522: 681b ldr r3, [r3, #0]
  14101. 8006524: 4a47 ldr r2, [pc, #284] @ (8006644 <HAL_DMA_Abort+0x5f0>)
  14102. 8006526: 4293 cmp r3, r2
  14103. 8006528: d059 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14104. 800652a: 687b ldr r3, [r7, #4]
  14105. 800652c: 681b ldr r3, [r3, #0]
  14106. 800652e: 4a46 ldr r2, [pc, #280] @ (8006648 <HAL_DMA_Abort+0x5f4>)
  14107. 8006530: 4293 cmp r3, r2
  14108. 8006532: d054 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14109. 8006534: 687b ldr r3, [r7, #4]
  14110. 8006536: 681b ldr r3, [r3, #0]
  14111. 8006538: 4a44 ldr r2, [pc, #272] @ (800664c <HAL_DMA_Abort+0x5f8>)
  14112. 800653a: 4293 cmp r3, r2
  14113. 800653c: d04f beq.n 80065de <HAL_DMA_Abort+0x58a>
  14114. 800653e: 687b ldr r3, [r7, #4]
  14115. 8006540: 681b ldr r3, [r3, #0]
  14116. 8006542: 4a43 ldr r2, [pc, #268] @ (8006650 <HAL_DMA_Abort+0x5fc>)
  14117. 8006544: 4293 cmp r3, r2
  14118. 8006546: d04a beq.n 80065de <HAL_DMA_Abort+0x58a>
  14119. 8006548: 687b ldr r3, [r7, #4]
  14120. 800654a: 681b ldr r3, [r3, #0]
  14121. 800654c: 4a41 ldr r2, [pc, #260] @ (8006654 <HAL_DMA_Abort+0x600>)
  14122. 800654e: 4293 cmp r3, r2
  14123. 8006550: d045 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14124. 8006552: 687b ldr r3, [r7, #4]
  14125. 8006554: 681b ldr r3, [r3, #0]
  14126. 8006556: 4a40 ldr r2, [pc, #256] @ (8006658 <HAL_DMA_Abort+0x604>)
  14127. 8006558: 4293 cmp r3, r2
  14128. 800655a: d040 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14129. 800655c: 687b ldr r3, [r7, #4]
  14130. 800655e: 681b ldr r3, [r3, #0]
  14131. 8006560: 4a3e ldr r2, [pc, #248] @ (800665c <HAL_DMA_Abort+0x608>)
  14132. 8006562: 4293 cmp r3, r2
  14133. 8006564: d03b beq.n 80065de <HAL_DMA_Abort+0x58a>
  14134. 8006566: 687b ldr r3, [r7, #4]
  14135. 8006568: 681b ldr r3, [r3, #0]
  14136. 800656a: 4a3d ldr r2, [pc, #244] @ (8006660 <HAL_DMA_Abort+0x60c>)
  14137. 800656c: 4293 cmp r3, r2
  14138. 800656e: d036 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14139. 8006570: 687b ldr r3, [r7, #4]
  14140. 8006572: 681b ldr r3, [r3, #0]
  14141. 8006574: 4a3b ldr r2, [pc, #236] @ (8006664 <HAL_DMA_Abort+0x610>)
  14142. 8006576: 4293 cmp r3, r2
  14143. 8006578: d031 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14144. 800657a: 687b ldr r3, [r7, #4]
  14145. 800657c: 681b ldr r3, [r3, #0]
  14146. 800657e: 4a3a ldr r2, [pc, #232] @ (8006668 <HAL_DMA_Abort+0x614>)
  14147. 8006580: 4293 cmp r3, r2
  14148. 8006582: d02c beq.n 80065de <HAL_DMA_Abort+0x58a>
  14149. 8006584: 687b ldr r3, [r7, #4]
  14150. 8006586: 681b ldr r3, [r3, #0]
  14151. 8006588: 4a38 ldr r2, [pc, #224] @ (800666c <HAL_DMA_Abort+0x618>)
  14152. 800658a: 4293 cmp r3, r2
  14153. 800658c: d027 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14154. 800658e: 687b ldr r3, [r7, #4]
  14155. 8006590: 681b ldr r3, [r3, #0]
  14156. 8006592: 4a37 ldr r2, [pc, #220] @ (8006670 <HAL_DMA_Abort+0x61c>)
  14157. 8006594: 4293 cmp r3, r2
  14158. 8006596: d022 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14159. 8006598: 687b ldr r3, [r7, #4]
  14160. 800659a: 681b ldr r3, [r3, #0]
  14161. 800659c: 4a35 ldr r2, [pc, #212] @ (8006674 <HAL_DMA_Abort+0x620>)
  14162. 800659e: 4293 cmp r3, r2
  14163. 80065a0: d01d beq.n 80065de <HAL_DMA_Abort+0x58a>
  14164. 80065a2: 687b ldr r3, [r7, #4]
  14165. 80065a4: 681b ldr r3, [r3, #0]
  14166. 80065a6: 4a34 ldr r2, [pc, #208] @ (8006678 <HAL_DMA_Abort+0x624>)
  14167. 80065a8: 4293 cmp r3, r2
  14168. 80065aa: d018 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14169. 80065ac: 687b ldr r3, [r7, #4]
  14170. 80065ae: 681b ldr r3, [r3, #0]
  14171. 80065b0: 4a32 ldr r2, [pc, #200] @ (800667c <HAL_DMA_Abort+0x628>)
  14172. 80065b2: 4293 cmp r3, r2
  14173. 80065b4: d013 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14174. 80065b6: 687b ldr r3, [r7, #4]
  14175. 80065b8: 681b ldr r3, [r3, #0]
  14176. 80065ba: 4a31 ldr r2, [pc, #196] @ (8006680 <HAL_DMA_Abort+0x62c>)
  14177. 80065bc: 4293 cmp r3, r2
  14178. 80065be: d00e beq.n 80065de <HAL_DMA_Abort+0x58a>
  14179. 80065c0: 687b ldr r3, [r7, #4]
  14180. 80065c2: 681b ldr r3, [r3, #0]
  14181. 80065c4: 4a2f ldr r2, [pc, #188] @ (8006684 <HAL_DMA_Abort+0x630>)
  14182. 80065c6: 4293 cmp r3, r2
  14183. 80065c8: d009 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14184. 80065ca: 687b ldr r3, [r7, #4]
  14185. 80065cc: 681b ldr r3, [r3, #0]
  14186. 80065ce: 4a2e ldr r2, [pc, #184] @ (8006688 <HAL_DMA_Abort+0x634>)
  14187. 80065d0: 4293 cmp r3, r2
  14188. 80065d2: d004 beq.n 80065de <HAL_DMA_Abort+0x58a>
  14189. 80065d4: 687b ldr r3, [r7, #4]
  14190. 80065d6: 681b ldr r3, [r3, #0]
  14191. 80065d8: 4a2c ldr r2, [pc, #176] @ (800668c <HAL_DMA_Abort+0x638>)
  14192. 80065da: 4293 cmp r3, r2
  14193. 80065dc: d101 bne.n 80065e2 <HAL_DMA_Abort+0x58e>
  14194. 80065de: 2301 movs r3, #1
  14195. 80065e0: e000 b.n 80065e4 <HAL_DMA_Abort+0x590>
  14196. 80065e2: 2300 movs r3, #0
  14197. 80065e4: 2b00 cmp r3, #0
  14198. 80065e6: d015 beq.n 8006614 <HAL_DMA_Abort+0x5c0>
  14199. {
  14200. /* Clear the DMAMUX synchro overrun flag */
  14201. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  14202. 80065e8: 687b ldr r3, [r7, #4]
  14203. 80065ea: 6e5b ldr r3, [r3, #100] @ 0x64
  14204. 80065ec: 687a ldr r2, [r7, #4]
  14205. 80065ee: 6e92 ldr r2, [r2, #104] @ 0x68
  14206. 80065f0: 605a str r2, [r3, #4]
  14207. if(hdma->DMAmuxRequestGen != 0U)
  14208. 80065f2: 687b ldr r3, [r7, #4]
  14209. 80065f4: 6edb ldr r3, [r3, #108] @ 0x6c
  14210. 80065f6: 2b00 cmp r3, #0
  14211. 80065f8: d00c beq.n 8006614 <HAL_DMA_Abort+0x5c0>
  14212. {
  14213. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  14214. /* disable the request gen overrun IT */
  14215. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  14216. 80065fa: 687b ldr r3, [r7, #4]
  14217. 80065fc: 6edb ldr r3, [r3, #108] @ 0x6c
  14218. 80065fe: 681a ldr r2, [r3, #0]
  14219. 8006600: 687b ldr r3, [r7, #4]
  14220. 8006602: 6edb ldr r3, [r3, #108] @ 0x6c
  14221. 8006604: f422 7280 bic.w r2, r2, #256 @ 0x100
  14222. 8006608: 601a str r2, [r3, #0]
  14223. /* Clear the DMAMUX request generator overrun flag */
  14224. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  14225. 800660a: 687b ldr r3, [r7, #4]
  14226. 800660c: 6f1b ldr r3, [r3, #112] @ 0x70
  14227. 800660e: 687a ldr r2, [r7, #4]
  14228. 8006610: 6f52 ldr r2, [r2, #116] @ 0x74
  14229. 8006612: 605a str r2, [r3, #4]
  14230. }
  14231. }
  14232. /* Change the DMA state */
  14233. hdma->State = HAL_DMA_STATE_READY;
  14234. 8006614: 687b ldr r3, [r7, #4]
  14235. 8006616: 2201 movs r2, #1
  14236. 8006618: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14237. /* Process Unlocked */
  14238. __HAL_UNLOCK(hdma);
  14239. 800661c: 687b ldr r3, [r7, #4]
  14240. 800661e: 2200 movs r2, #0
  14241. 8006620: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14242. }
  14243. return HAL_OK;
  14244. 8006624: 2300 movs r3, #0
  14245. }
  14246. 8006626: 4618 mov r0, r3
  14247. 8006628: 3718 adds r7, #24
  14248. 800662a: 46bd mov sp, r7
  14249. 800662c: bd80 pop {r7, pc}
  14250. 800662e: bf00 nop
  14251. 8006630: 40020010 .word 0x40020010
  14252. 8006634: 40020028 .word 0x40020028
  14253. 8006638: 40020040 .word 0x40020040
  14254. 800663c: 40020058 .word 0x40020058
  14255. 8006640: 40020070 .word 0x40020070
  14256. 8006644: 40020088 .word 0x40020088
  14257. 8006648: 400200a0 .word 0x400200a0
  14258. 800664c: 400200b8 .word 0x400200b8
  14259. 8006650: 40020410 .word 0x40020410
  14260. 8006654: 40020428 .word 0x40020428
  14261. 8006658: 40020440 .word 0x40020440
  14262. 800665c: 40020458 .word 0x40020458
  14263. 8006660: 40020470 .word 0x40020470
  14264. 8006664: 40020488 .word 0x40020488
  14265. 8006668: 400204a0 .word 0x400204a0
  14266. 800666c: 400204b8 .word 0x400204b8
  14267. 8006670: 58025408 .word 0x58025408
  14268. 8006674: 5802541c .word 0x5802541c
  14269. 8006678: 58025430 .word 0x58025430
  14270. 800667c: 58025444 .word 0x58025444
  14271. 8006680: 58025458 .word 0x58025458
  14272. 8006684: 5802546c .word 0x5802546c
  14273. 8006688: 58025480 .word 0x58025480
  14274. 800668c: 58025494 .word 0x58025494
  14275. 08006690 <HAL_DMA_Abort_IT>:
  14276. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  14277. * the configuration information for the specified DMA Stream.
  14278. * @retval HAL status
  14279. */
  14280. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  14281. {
  14282. 8006690: b580 push {r7, lr}
  14283. 8006692: b084 sub sp, #16
  14284. 8006694: af00 add r7, sp, #0
  14285. 8006696: 6078 str r0, [r7, #4]
  14286. BDMA_Base_Registers *regs_bdma;
  14287. /* Check the DMA peripheral handle */
  14288. if(hdma == NULL)
  14289. 8006698: 687b ldr r3, [r7, #4]
  14290. 800669a: 2b00 cmp r3, #0
  14291. 800669c: d101 bne.n 80066a2 <HAL_DMA_Abort_IT+0x12>
  14292. {
  14293. return HAL_ERROR;
  14294. 800669e: 2301 movs r3, #1
  14295. 80066a0: e237 b.n 8006b12 <HAL_DMA_Abort_IT+0x482>
  14296. }
  14297. if(hdma->State != HAL_DMA_STATE_BUSY)
  14298. 80066a2: 687b ldr r3, [r7, #4]
  14299. 80066a4: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  14300. 80066a8: b2db uxtb r3, r3
  14301. 80066aa: 2b02 cmp r3, #2
  14302. 80066ac: d004 beq.n 80066b8 <HAL_DMA_Abort_IT+0x28>
  14303. {
  14304. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  14305. 80066ae: 687b ldr r3, [r7, #4]
  14306. 80066b0: 2280 movs r2, #128 @ 0x80
  14307. 80066b2: 655a str r2, [r3, #84] @ 0x54
  14308. return HAL_ERROR;
  14309. 80066b4: 2301 movs r3, #1
  14310. 80066b6: e22c b.n 8006b12 <HAL_DMA_Abort_IT+0x482>
  14311. }
  14312. else
  14313. {
  14314. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  14315. 80066b8: 687b ldr r3, [r7, #4]
  14316. 80066ba: 681b ldr r3, [r3, #0]
  14317. 80066bc: 4a5c ldr r2, [pc, #368] @ (8006830 <HAL_DMA_Abort_IT+0x1a0>)
  14318. 80066be: 4293 cmp r3, r2
  14319. 80066c0: d04a beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14320. 80066c2: 687b ldr r3, [r7, #4]
  14321. 80066c4: 681b ldr r3, [r3, #0]
  14322. 80066c6: 4a5b ldr r2, [pc, #364] @ (8006834 <HAL_DMA_Abort_IT+0x1a4>)
  14323. 80066c8: 4293 cmp r3, r2
  14324. 80066ca: d045 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14325. 80066cc: 687b ldr r3, [r7, #4]
  14326. 80066ce: 681b ldr r3, [r3, #0]
  14327. 80066d0: 4a59 ldr r2, [pc, #356] @ (8006838 <HAL_DMA_Abort_IT+0x1a8>)
  14328. 80066d2: 4293 cmp r3, r2
  14329. 80066d4: d040 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14330. 80066d6: 687b ldr r3, [r7, #4]
  14331. 80066d8: 681b ldr r3, [r3, #0]
  14332. 80066da: 4a58 ldr r2, [pc, #352] @ (800683c <HAL_DMA_Abort_IT+0x1ac>)
  14333. 80066dc: 4293 cmp r3, r2
  14334. 80066de: d03b beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14335. 80066e0: 687b ldr r3, [r7, #4]
  14336. 80066e2: 681b ldr r3, [r3, #0]
  14337. 80066e4: 4a56 ldr r2, [pc, #344] @ (8006840 <HAL_DMA_Abort_IT+0x1b0>)
  14338. 80066e6: 4293 cmp r3, r2
  14339. 80066e8: d036 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14340. 80066ea: 687b ldr r3, [r7, #4]
  14341. 80066ec: 681b ldr r3, [r3, #0]
  14342. 80066ee: 4a55 ldr r2, [pc, #340] @ (8006844 <HAL_DMA_Abort_IT+0x1b4>)
  14343. 80066f0: 4293 cmp r3, r2
  14344. 80066f2: d031 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14345. 80066f4: 687b ldr r3, [r7, #4]
  14346. 80066f6: 681b ldr r3, [r3, #0]
  14347. 80066f8: 4a53 ldr r2, [pc, #332] @ (8006848 <HAL_DMA_Abort_IT+0x1b8>)
  14348. 80066fa: 4293 cmp r3, r2
  14349. 80066fc: d02c beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14350. 80066fe: 687b ldr r3, [r7, #4]
  14351. 8006700: 681b ldr r3, [r3, #0]
  14352. 8006702: 4a52 ldr r2, [pc, #328] @ (800684c <HAL_DMA_Abort_IT+0x1bc>)
  14353. 8006704: 4293 cmp r3, r2
  14354. 8006706: d027 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14355. 8006708: 687b ldr r3, [r7, #4]
  14356. 800670a: 681b ldr r3, [r3, #0]
  14357. 800670c: 4a50 ldr r2, [pc, #320] @ (8006850 <HAL_DMA_Abort_IT+0x1c0>)
  14358. 800670e: 4293 cmp r3, r2
  14359. 8006710: d022 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14360. 8006712: 687b ldr r3, [r7, #4]
  14361. 8006714: 681b ldr r3, [r3, #0]
  14362. 8006716: 4a4f ldr r2, [pc, #316] @ (8006854 <HAL_DMA_Abort_IT+0x1c4>)
  14363. 8006718: 4293 cmp r3, r2
  14364. 800671a: d01d beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14365. 800671c: 687b ldr r3, [r7, #4]
  14366. 800671e: 681b ldr r3, [r3, #0]
  14367. 8006720: 4a4d ldr r2, [pc, #308] @ (8006858 <HAL_DMA_Abort_IT+0x1c8>)
  14368. 8006722: 4293 cmp r3, r2
  14369. 8006724: d018 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14370. 8006726: 687b ldr r3, [r7, #4]
  14371. 8006728: 681b ldr r3, [r3, #0]
  14372. 800672a: 4a4c ldr r2, [pc, #304] @ (800685c <HAL_DMA_Abort_IT+0x1cc>)
  14373. 800672c: 4293 cmp r3, r2
  14374. 800672e: d013 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14375. 8006730: 687b ldr r3, [r7, #4]
  14376. 8006732: 681b ldr r3, [r3, #0]
  14377. 8006734: 4a4a ldr r2, [pc, #296] @ (8006860 <HAL_DMA_Abort_IT+0x1d0>)
  14378. 8006736: 4293 cmp r3, r2
  14379. 8006738: d00e beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14380. 800673a: 687b ldr r3, [r7, #4]
  14381. 800673c: 681b ldr r3, [r3, #0]
  14382. 800673e: 4a49 ldr r2, [pc, #292] @ (8006864 <HAL_DMA_Abort_IT+0x1d4>)
  14383. 8006740: 4293 cmp r3, r2
  14384. 8006742: d009 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14385. 8006744: 687b ldr r3, [r7, #4]
  14386. 8006746: 681b ldr r3, [r3, #0]
  14387. 8006748: 4a47 ldr r2, [pc, #284] @ (8006868 <HAL_DMA_Abort_IT+0x1d8>)
  14388. 800674a: 4293 cmp r3, r2
  14389. 800674c: d004 beq.n 8006758 <HAL_DMA_Abort_IT+0xc8>
  14390. 800674e: 687b ldr r3, [r7, #4]
  14391. 8006750: 681b ldr r3, [r3, #0]
  14392. 8006752: 4a46 ldr r2, [pc, #280] @ (800686c <HAL_DMA_Abort_IT+0x1dc>)
  14393. 8006754: 4293 cmp r3, r2
  14394. 8006756: d101 bne.n 800675c <HAL_DMA_Abort_IT+0xcc>
  14395. 8006758: 2301 movs r3, #1
  14396. 800675a: e000 b.n 800675e <HAL_DMA_Abort_IT+0xce>
  14397. 800675c: 2300 movs r3, #0
  14398. 800675e: 2b00 cmp r3, #0
  14399. 8006760: f000 8086 beq.w 8006870 <HAL_DMA_Abort_IT+0x1e0>
  14400. {
  14401. /* Set Abort State */
  14402. hdma->State = HAL_DMA_STATE_ABORT;
  14403. 8006764: 687b ldr r3, [r7, #4]
  14404. 8006766: 2204 movs r2, #4
  14405. 8006768: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14406. /* Disable the stream */
  14407. __HAL_DMA_DISABLE(hdma);
  14408. 800676c: 687b ldr r3, [r7, #4]
  14409. 800676e: 681b ldr r3, [r3, #0]
  14410. 8006770: 4a2f ldr r2, [pc, #188] @ (8006830 <HAL_DMA_Abort_IT+0x1a0>)
  14411. 8006772: 4293 cmp r3, r2
  14412. 8006774: d04a beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14413. 8006776: 687b ldr r3, [r7, #4]
  14414. 8006778: 681b ldr r3, [r3, #0]
  14415. 800677a: 4a2e ldr r2, [pc, #184] @ (8006834 <HAL_DMA_Abort_IT+0x1a4>)
  14416. 800677c: 4293 cmp r3, r2
  14417. 800677e: d045 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14418. 8006780: 687b ldr r3, [r7, #4]
  14419. 8006782: 681b ldr r3, [r3, #0]
  14420. 8006784: 4a2c ldr r2, [pc, #176] @ (8006838 <HAL_DMA_Abort_IT+0x1a8>)
  14421. 8006786: 4293 cmp r3, r2
  14422. 8006788: d040 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14423. 800678a: 687b ldr r3, [r7, #4]
  14424. 800678c: 681b ldr r3, [r3, #0]
  14425. 800678e: 4a2b ldr r2, [pc, #172] @ (800683c <HAL_DMA_Abort_IT+0x1ac>)
  14426. 8006790: 4293 cmp r3, r2
  14427. 8006792: d03b beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14428. 8006794: 687b ldr r3, [r7, #4]
  14429. 8006796: 681b ldr r3, [r3, #0]
  14430. 8006798: 4a29 ldr r2, [pc, #164] @ (8006840 <HAL_DMA_Abort_IT+0x1b0>)
  14431. 800679a: 4293 cmp r3, r2
  14432. 800679c: d036 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14433. 800679e: 687b ldr r3, [r7, #4]
  14434. 80067a0: 681b ldr r3, [r3, #0]
  14435. 80067a2: 4a28 ldr r2, [pc, #160] @ (8006844 <HAL_DMA_Abort_IT+0x1b4>)
  14436. 80067a4: 4293 cmp r3, r2
  14437. 80067a6: d031 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14438. 80067a8: 687b ldr r3, [r7, #4]
  14439. 80067aa: 681b ldr r3, [r3, #0]
  14440. 80067ac: 4a26 ldr r2, [pc, #152] @ (8006848 <HAL_DMA_Abort_IT+0x1b8>)
  14441. 80067ae: 4293 cmp r3, r2
  14442. 80067b0: d02c beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14443. 80067b2: 687b ldr r3, [r7, #4]
  14444. 80067b4: 681b ldr r3, [r3, #0]
  14445. 80067b6: 4a25 ldr r2, [pc, #148] @ (800684c <HAL_DMA_Abort_IT+0x1bc>)
  14446. 80067b8: 4293 cmp r3, r2
  14447. 80067ba: d027 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14448. 80067bc: 687b ldr r3, [r7, #4]
  14449. 80067be: 681b ldr r3, [r3, #0]
  14450. 80067c0: 4a23 ldr r2, [pc, #140] @ (8006850 <HAL_DMA_Abort_IT+0x1c0>)
  14451. 80067c2: 4293 cmp r3, r2
  14452. 80067c4: d022 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14453. 80067c6: 687b ldr r3, [r7, #4]
  14454. 80067c8: 681b ldr r3, [r3, #0]
  14455. 80067ca: 4a22 ldr r2, [pc, #136] @ (8006854 <HAL_DMA_Abort_IT+0x1c4>)
  14456. 80067cc: 4293 cmp r3, r2
  14457. 80067ce: d01d beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14458. 80067d0: 687b ldr r3, [r7, #4]
  14459. 80067d2: 681b ldr r3, [r3, #0]
  14460. 80067d4: 4a20 ldr r2, [pc, #128] @ (8006858 <HAL_DMA_Abort_IT+0x1c8>)
  14461. 80067d6: 4293 cmp r3, r2
  14462. 80067d8: d018 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14463. 80067da: 687b ldr r3, [r7, #4]
  14464. 80067dc: 681b ldr r3, [r3, #0]
  14465. 80067de: 4a1f ldr r2, [pc, #124] @ (800685c <HAL_DMA_Abort_IT+0x1cc>)
  14466. 80067e0: 4293 cmp r3, r2
  14467. 80067e2: d013 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14468. 80067e4: 687b ldr r3, [r7, #4]
  14469. 80067e6: 681b ldr r3, [r3, #0]
  14470. 80067e8: 4a1d ldr r2, [pc, #116] @ (8006860 <HAL_DMA_Abort_IT+0x1d0>)
  14471. 80067ea: 4293 cmp r3, r2
  14472. 80067ec: d00e beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14473. 80067ee: 687b ldr r3, [r7, #4]
  14474. 80067f0: 681b ldr r3, [r3, #0]
  14475. 80067f2: 4a1c ldr r2, [pc, #112] @ (8006864 <HAL_DMA_Abort_IT+0x1d4>)
  14476. 80067f4: 4293 cmp r3, r2
  14477. 80067f6: d009 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14478. 80067f8: 687b ldr r3, [r7, #4]
  14479. 80067fa: 681b ldr r3, [r3, #0]
  14480. 80067fc: 4a1a ldr r2, [pc, #104] @ (8006868 <HAL_DMA_Abort_IT+0x1d8>)
  14481. 80067fe: 4293 cmp r3, r2
  14482. 8006800: d004 beq.n 800680c <HAL_DMA_Abort_IT+0x17c>
  14483. 8006802: 687b ldr r3, [r7, #4]
  14484. 8006804: 681b ldr r3, [r3, #0]
  14485. 8006806: 4a19 ldr r2, [pc, #100] @ (800686c <HAL_DMA_Abort_IT+0x1dc>)
  14486. 8006808: 4293 cmp r3, r2
  14487. 800680a: d108 bne.n 800681e <HAL_DMA_Abort_IT+0x18e>
  14488. 800680c: 687b ldr r3, [r7, #4]
  14489. 800680e: 681b ldr r3, [r3, #0]
  14490. 8006810: 681a ldr r2, [r3, #0]
  14491. 8006812: 687b ldr r3, [r7, #4]
  14492. 8006814: 681b ldr r3, [r3, #0]
  14493. 8006816: f022 0201 bic.w r2, r2, #1
  14494. 800681a: 601a str r2, [r3, #0]
  14495. 800681c: e178 b.n 8006b10 <HAL_DMA_Abort_IT+0x480>
  14496. 800681e: 687b ldr r3, [r7, #4]
  14497. 8006820: 681b ldr r3, [r3, #0]
  14498. 8006822: 681a ldr r2, [r3, #0]
  14499. 8006824: 687b ldr r3, [r7, #4]
  14500. 8006826: 681b ldr r3, [r3, #0]
  14501. 8006828: f022 0201 bic.w r2, r2, #1
  14502. 800682c: 601a str r2, [r3, #0]
  14503. 800682e: e16f b.n 8006b10 <HAL_DMA_Abort_IT+0x480>
  14504. 8006830: 40020010 .word 0x40020010
  14505. 8006834: 40020028 .word 0x40020028
  14506. 8006838: 40020040 .word 0x40020040
  14507. 800683c: 40020058 .word 0x40020058
  14508. 8006840: 40020070 .word 0x40020070
  14509. 8006844: 40020088 .word 0x40020088
  14510. 8006848: 400200a0 .word 0x400200a0
  14511. 800684c: 400200b8 .word 0x400200b8
  14512. 8006850: 40020410 .word 0x40020410
  14513. 8006854: 40020428 .word 0x40020428
  14514. 8006858: 40020440 .word 0x40020440
  14515. 800685c: 40020458 .word 0x40020458
  14516. 8006860: 40020470 .word 0x40020470
  14517. 8006864: 40020488 .word 0x40020488
  14518. 8006868: 400204a0 .word 0x400204a0
  14519. 800686c: 400204b8 .word 0x400204b8
  14520. }
  14521. else /* BDMA channel */
  14522. {
  14523. /* Disable DMA All Interrupts */
  14524. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  14525. 8006870: 687b ldr r3, [r7, #4]
  14526. 8006872: 681b ldr r3, [r3, #0]
  14527. 8006874: 681a ldr r2, [r3, #0]
  14528. 8006876: 687b ldr r3, [r7, #4]
  14529. 8006878: 681b ldr r3, [r3, #0]
  14530. 800687a: f022 020e bic.w r2, r2, #14
  14531. 800687e: 601a str r2, [r3, #0]
  14532. /* Disable the channel */
  14533. __HAL_DMA_DISABLE(hdma);
  14534. 8006880: 687b ldr r3, [r7, #4]
  14535. 8006882: 681b ldr r3, [r3, #0]
  14536. 8006884: 4a6c ldr r2, [pc, #432] @ (8006a38 <HAL_DMA_Abort_IT+0x3a8>)
  14537. 8006886: 4293 cmp r3, r2
  14538. 8006888: d04a beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14539. 800688a: 687b ldr r3, [r7, #4]
  14540. 800688c: 681b ldr r3, [r3, #0]
  14541. 800688e: 4a6b ldr r2, [pc, #428] @ (8006a3c <HAL_DMA_Abort_IT+0x3ac>)
  14542. 8006890: 4293 cmp r3, r2
  14543. 8006892: d045 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14544. 8006894: 687b ldr r3, [r7, #4]
  14545. 8006896: 681b ldr r3, [r3, #0]
  14546. 8006898: 4a69 ldr r2, [pc, #420] @ (8006a40 <HAL_DMA_Abort_IT+0x3b0>)
  14547. 800689a: 4293 cmp r3, r2
  14548. 800689c: d040 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14549. 800689e: 687b ldr r3, [r7, #4]
  14550. 80068a0: 681b ldr r3, [r3, #0]
  14551. 80068a2: 4a68 ldr r2, [pc, #416] @ (8006a44 <HAL_DMA_Abort_IT+0x3b4>)
  14552. 80068a4: 4293 cmp r3, r2
  14553. 80068a6: d03b beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14554. 80068a8: 687b ldr r3, [r7, #4]
  14555. 80068aa: 681b ldr r3, [r3, #0]
  14556. 80068ac: 4a66 ldr r2, [pc, #408] @ (8006a48 <HAL_DMA_Abort_IT+0x3b8>)
  14557. 80068ae: 4293 cmp r3, r2
  14558. 80068b0: d036 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14559. 80068b2: 687b ldr r3, [r7, #4]
  14560. 80068b4: 681b ldr r3, [r3, #0]
  14561. 80068b6: 4a65 ldr r2, [pc, #404] @ (8006a4c <HAL_DMA_Abort_IT+0x3bc>)
  14562. 80068b8: 4293 cmp r3, r2
  14563. 80068ba: d031 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14564. 80068bc: 687b ldr r3, [r7, #4]
  14565. 80068be: 681b ldr r3, [r3, #0]
  14566. 80068c0: 4a63 ldr r2, [pc, #396] @ (8006a50 <HAL_DMA_Abort_IT+0x3c0>)
  14567. 80068c2: 4293 cmp r3, r2
  14568. 80068c4: d02c beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14569. 80068c6: 687b ldr r3, [r7, #4]
  14570. 80068c8: 681b ldr r3, [r3, #0]
  14571. 80068ca: 4a62 ldr r2, [pc, #392] @ (8006a54 <HAL_DMA_Abort_IT+0x3c4>)
  14572. 80068cc: 4293 cmp r3, r2
  14573. 80068ce: d027 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14574. 80068d0: 687b ldr r3, [r7, #4]
  14575. 80068d2: 681b ldr r3, [r3, #0]
  14576. 80068d4: 4a60 ldr r2, [pc, #384] @ (8006a58 <HAL_DMA_Abort_IT+0x3c8>)
  14577. 80068d6: 4293 cmp r3, r2
  14578. 80068d8: d022 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14579. 80068da: 687b ldr r3, [r7, #4]
  14580. 80068dc: 681b ldr r3, [r3, #0]
  14581. 80068de: 4a5f ldr r2, [pc, #380] @ (8006a5c <HAL_DMA_Abort_IT+0x3cc>)
  14582. 80068e0: 4293 cmp r3, r2
  14583. 80068e2: d01d beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14584. 80068e4: 687b ldr r3, [r7, #4]
  14585. 80068e6: 681b ldr r3, [r3, #0]
  14586. 80068e8: 4a5d ldr r2, [pc, #372] @ (8006a60 <HAL_DMA_Abort_IT+0x3d0>)
  14587. 80068ea: 4293 cmp r3, r2
  14588. 80068ec: d018 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14589. 80068ee: 687b ldr r3, [r7, #4]
  14590. 80068f0: 681b ldr r3, [r3, #0]
  14591. 80068f2: 4a5c ldr r2, [pc, #368] @ (8006a64 <HAL_DMA_Abort_IT+0x3d4>)
  14592. 80068f4: 4293 cmp r3, r2
  14593. 80068f6: d013 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14594. 80068f8: 687b ldr r3, [r7, #4]
  14595. 80068fa: 681b ldr r3, [r3, #0]
  14596. 80068fc: 4a5a ldr r2, [pc, #360] @ (8006a68 <HAL_DMA_Abort_IT+0x3d8>)
  14597. 80068fe: 4293 cmp r3, r2
  14598. 8006900: d00e beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14599. 8006902: 687b ldr r3, [r7, #4]
  14600. 8006904: 681b ldr r3, [r3, #0]
  14601. 8006906: 4a59 ldr r2, [pc, #356] @ (8006a6c <HAL_DMA_Abort_IT+0x3dc>)
  14602. 8006908: 4293 cmp r3, r2
  14603. 800690a: d009 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14604. 800690c: 687b ldr r3, [r7, #4]
  14605. 800690e: 681b ldr r3, [r3, #0]
  14606. 8006910: 4a57 ldr r2, [pc, #348] @ (8006a70 <HAL_DMA_Abort_IT+0x3e0>)
  14607. 8006912: 4293 cmp r3, r2
  14608. 8006914: d004 beq.n 8006920 <HAL_DMA_Abort_IT+0x290>
  14609. 8006916: 687b ldr r3, [r7, #4]
  14610. 8006918: 681b ldr r3, [r3, #0]
  14611. 800691a: 4a56 ldr r2, [pc, #344] @ (8006a74 <HAL_DMA_Abort_IT+0x3e4>)
  14612. 800691c: 4293 cmp r3, r2
  14613. 800691e: d108 bne.n 8006932 <HAL_DMA_Abort_IT+0x2a2>
  14614. 8006920: 687b ldr r3, [r7, #4]
  14615. 8006922: 681b ldr r3, [r3, #0]
  14616. 8006924: 681a ldr r2, [r3, #0]
  14617. 8006926: 687b ldr r3, [r7, #4]
  14618. 8006928: 681b ldr r3, [r3, #0]
  14619. 800692a: f022 0201 bic.w r2, r2, #1
  14620. 800692e: 601a str r2, [r3, #0]
  14621. 8006930: e007 b.n 8006942 <HAL_DMA_Abort_IT+0x2b2>
  14622. 8006932: 687b ldr r3, [r7, #4]
  14623. 8006934: 681b ldr r3, [r3, #0]
  14624. 8006936: 681a ldr r2, [r3, #0]
  14625. 8006938: 687b ldr r3, [r7, #4]
  14626. 800693a: 681b ldr r3, [r3, #0]
  14627. 800693c: f022 0201 bic.w r2, r2, #1
  14628. 8006940: 601a str r2, [r3, #0]
  14629. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  14630. 8006942: 687b ldr r3, [r7, #4]
  14631. 8006944: 681b ldr r3, [r3, #0]
  14632. 8006946: 4a3c ldr r2, [pc, #240] @ (8006a38 <HAL_DMA_Abort_IT+0x3a8>)
  14633. 8006948: 4293 cmp r3, r2
  14634. 800694a: d072 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14635. 800694c: 687b ldr r3, [r7, #4]
  14636. 800694e: 681b ldr r3, [r3, #0]
  14637. 8006950: 4a3a ldr r2, [pc, #232] @ (8006a3c <HAL_DMA_Abort_IT+0x3ac>)
  14638. 8006952: 4293 cmp r3, r2
  14639. 8006954: d06d beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14640. 8006956: 687b ldr r3, [r7, #4]
  14641. 8006958: 681b ldr r3, [r3, #0]
  14642. 800695a: 4a39 ldr r2, [pc, #228] @ (8006a40 <HAL_DMA_Abort_IT+0x3b0>)
  14643. 800695c: 4293 cmp r3, r2
  14644. 800695e: d068 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14645. 8006960: 687b ldr r3, [r7, #4]
  14646. 8006962: 681b ldr r3, [r3, #0]
  14647. 8006964: 4a37 ldr r2, [pc, #220] @ (8006a44 <HAL_DMA_Abort_IT+0x3b4>)
  14648. 8006966: 4293 cmp r3, r2
  14649. 8006968: d063 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14650. 800696a: 687b ldr r3, [r7, #4]
  14651. 800696c: 681b ldr r3, [r3, #0]
  14652. 800696e: 4a36 ldr r2, [pc, #216] @ (8006a48 <HAL_DMA_Abort_IT+0x3b8>)
  14653. 8006970: 4293 cmp r3, r2
  14654. 8006972: d05e beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14655. 8006974: 687b ldr r3, [r7, #4]
  14656. 8006976: 681b ldr r3, [r3, #0]
  14657. 8006978: 4a34 ldr r2, [pc, #208] @ (8006a4c <HAL_DMA_Abort_IT+0x3bc>)
  14658. 800697a: 4293 cmp r3, r2
  14659. 800697c: d059 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14660. 800697e: 687b ldr r3, [r7, #4]
  14661. 8006980: 681b ldr r3, [r3, #0]
  14662. 8006982: 4a33 ldr r2, [pc, #204] @ (8006a50 <HAL_DMA_Abort_IT+0x3c0>)
  14663. 8006984: 4293 cmp r3, r2
  14664. 8006986: d054 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14665. 8006988: 687b ldr r3, [r7, #4]
  14666. 800698a: 681b ldr r3, [r3, #0]
  14667. 800698c: 4a31 ldr r2, [pc, #196] @ (8006a54 <HAL_DMA_Abort_IT+0x3c4>)
  14668. 800698e: 4293 cmp r3, r2
  14669. 8006990: d04f beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14670. 8006992: 687b ldr r3, [r7, #4]
  14671. 8006994: 681b ldr r3, [r3, #0]
  14672. 8006996: 4a30 ldr r2, [pc, #192] @ (8006a58 <HAL_DMA_Abort_IT+0x3c8>)
  14673. 8006998: 4293 cmp r3, r2
  14674. 800699a: d04a beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14675. 800699c: 687b ldr r3, [r7, #4]
  14676. 800699e: 681b ldr r3, [r3, #0]
  14677. 80069a0: 4a2e ldr r2, [pc, #184] @ (8006a5c <HAL_DMA_Abort_IT+0x3cc>)
  14678. 80069a2: 4293 cmp r3, r2
  14679. 80069a4: d045 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14680. 80069a6: 687b ldr r3, [r7, #4]
  14681. 80069a8: 681b ldr r3, [r3, #0]
  14682. 80069aa: 4a2d ldr r2, [pc, #180] @ (8006a60 <HAL_DMA_Abort_IT+0x3d0>)
  14683. 80069ac: 4293 cmp r3, r2
  14684. 80069ae: d040 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14685. 80069b0: 687b ldr r3, [r7, #4]
  14686. 80069b2: 681b ldr r3, [r3, #0]
  14687. 80069b4: 4a2b ldr r2, [pc, #172] @ (8006a64 <HAL_DMA_Abort_IT+0x3d4>)
  14688. 80069b6: 4293 cmp r3, r2
  14689. 80069b8: d03b beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14690. 80069ba: 687b ldr r3, [r7, #4]
  14691. 80069bc: 681b ldr r3, [r3, #0]
  14692. 80069be: 4a2a ldr r2, [pc, #168] @ (8006a68 <HAL_DMA_Abort_IT+0x3d8>)
  14693. 80069c0: 4293 cmp r3, r2
  14694. 80069c2: d036 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14695. 80069c4: 687b ldr r3, [r7, #4]
  14696. 80069c6: 681b ldr r3, [r3, #0]
  14697. 80069c8: 4a28 ldr r2, [pc, #160] @ (8006a6c <HAL_DMA_Abort_IT+0x3dc>)
  14698. 80069ca: 4293 cmp r3, r2
  14699. 80069cc: d031 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14700. 80069ce: 687b ldr r3, [r7, #4]
  14701. 80069d0: 681b ldr r3, [r3, #0]
  14702. 80069d2: 4a27 ldr r2, [pc, #156] @ (8006a70 <HAL_DMA_Abort_IT+0x3e0>)
  14703. 80069d4: 4293 cmp r3, r2
  14704. 80069d6: d02c beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14705. 80069d8: 687b ldr r3, [r7, #4]
  14706. 80069da: 681b ldr r3, [r3, #0]
  14707. 80069dc: 4a25 ldr r2, [pc, #148] @ (8006a74 <HAL_DMA_Abort_IT+0x3e4>)
  14708. 80069de: 4293 cmp r3, r2
  14709. 80069e0: d027 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14710. 80069e2: 687b ldr r3, [r7, #4]
  14711. 80069e4: 681b ldr r3, [r3, #0]
  14712. 80069e6: 4a24 ldr r2, [pc, #144] @ (8006a78 <HAL_DMA_Abort_IT+0x3e8>)
  14713. 80069e8: 4293 cmp r3, r2
  14714. 80069ea: d022 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14715. 80069ec: 687b ldr r3, [r7, #4]
  14716. 80069ee: 681b ldr r3, [r3, #0]
  14717. 80069f0: 4a22 ldr r2, [pc, #136] @ (8006a7c <HAL_DMA_Abort_IT+0x3ec>)
  14718. 80069f2: 4293 cmp r3, r2
  14719. 80069f4: d01d beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14720. 80069f6: 687b ldr r3, [r7, #4]
  14721. 80069f8: 681b ldr r3, [r3, #0]
  14722. 80069fa: 4a21 ldr r2, [pc, #132] @ (8006a80 <HAL_DMA_Abort_IT+0x3f0>)
  14723. 80069fc: 4293 cmp r3, r2
  14724. 80069fe: d018 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14725. 8006a00: 687b ldr r3, [r7, #4]
  14726. 8006a02: 681b ldr r3, [r3, #0]
  14727. 8006a04: 4a1f ldr r2, [pc, #124] @ (8006a84 <HAL_DMA_Abort_IT+0x3f4>)
  14728. 8006a06: 4293 cmp r3, r2
  14729. 8006a08: d013 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14730. 8006a0a: 687b ldr r3, [r7, #4]
  14731. 8006a0c: 681b ldr r3, [r3, #0]
  14732. 8006a0e: 4a1e ldr r2, [pc, #120] @ (8006a88 <HAL_DMA_Abort_IT+0x3f8>)
  14733. 8006a10: 4293 cmp r3, r2
  14734. 8006a12: d00e beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14735. 8006a14: 687b ldr r3, [r7, #4]
  14736. 8006a16: 681b ldr r3, [r3, #0]
  14737. 8006a18: 4a1c ldr r2, [pc, #112] @ (8006a8c <HAL_DMA_Abort_IT+0x3fc>)
  14738. 8006a1a: 4293 cmp r3, r2
  14739. 8006a1c: d009 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14740. 8006a1e: 687b ldr r3, [r7, #4]
  14741. 8006a20: 681b ldr r3, [r3, #0]
  14742. 8006a22: 4a1b ldr r2, [pc, #108] @ (8006a90 <HAL_DMA_Abort_IT+0x400>)
  14743. 8006a24: 4293 cmp r3, r2
  14744. 8006a26: d004 beq.n 8006a32 <HAL_DMA_Abort_IT+0x3a2>
  14745. 8006a28: 687b ldr r3, [r7, #4]
  14746. 8006a2a: 681b ldr r3, [r3, #0]
  14747. 8006a2c: 4a19 ldr r2, [pc, #100] @ (8006a94 <HAL_DMA_Abort_IT+0x404>)
  14748. 8006a2e: 4293 cmp r3, r2
  14749. 8006a30: d132 bne.n 8006a98 <HAL_DMA_Abort_IT+0x408>
  14750. 8006a32: 2301 movs r3, #1
  14751. 8006a34: e031 b.n 8006a9a <HAL_DMA_Abort_IT+0x40a>
  14752. 8006a36: bf00 nop
  14753. 8006a38: 40020010 .word 0x40020010
  14754. 8006a3c: 40020028 .word 0x40020028
  14755. 8006a40: 40020040 .word 0x40020040
  14756. 8006a44: 40020058 .word 0x40020058
  14757. 8006a48: 40020070 .word 0x40020070
  14758. 8006a4c: 40020088 .word 0x40020088
  14759. 8006a50: 400200a0 .word 0x400200a0
  14760. 8006a54: 400200b8 .word 0x400200b8
  14761. 8006a58: 40020410 .word 0x40020410
  14762. 8006a5c: 40020428 .word 0x40020428
  14763. 8006a60: 40020440 .word 0x40020440
  14764. 8006a64: 40020458 .word 0x40020458
  14765. 8006a68: 40020470 .word 0x40020470
  14766. 8006a6c: 40020488 .word 0x40020488
  14767. 8006a70: 400204a0 .word 0x400204a0
  14768. 8006a74: 400204b8 .word 0x400204b8
  14769. 8006a78: 58025408 .word 0x58025408
  14770. 8006a7c: 5802541c .word 0x5802541c
  14771. 8006a80: 58025430 .word 0x58025430
  14772. 8006a84: 58025444 .word 0x58025444
  14773. 8006a88: 58025458 .word 0x58025458
  14774. 8006a8c: 5802546c .word 0x5802546c
  14775. 8006a90: 58025480 .word 0x58025480
  14776. 8006a94: 58025494 .word 0x58025494
  14777. 8006a98: 2300 movs r3, #0
  14778. 8006a9a: 2b00 cmp r3, #0
  14779. 8006a9c: d028 beq.n 8006af0 <HAL_DMA_Abort_IT+0x460>
  14780. {
  14781. /* disable the DMAMUX sync overrun IT */
  14782. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  14783. 8006a9e: 687b ldr r3, [r7, #4]
  14784. 8006aa0: 6e1b ldr r3, [r3, #96] @ 0x60
  14785. 8006aa2: 681a ldr r2, [r3, #0]
  14786. 8006aa4: 687b ldr r3, [r7, #4]
  14787. 8006aa6: 6e1b ldr r3, [r3, #96] @ 0x60
  14788. 8006aa8: f422 7280 bic.w r2, r2, #256 @ 0x100
  14789. 8006aac: 601a str r2, [r3, #0]
  14790. /* Clear all flags */
  14791. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  14792. 8006aae: 687b ldr r3, [r7, #4]
  14793. 8006ab0: 6d9b ldr r3, [r3, #88] @ 0x58
  14794. 8006ab2: 60fb str r3, [r7, #12]
  14795. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  14796. 8006ab4: 687b ldr r3, [r7, #4]
  14797. 8006ab6: 6ddb ldr r3, [r3, #92] @ 0x5c
  14798. 8006ab8: f003 031f and.w r3, r3, #31
  14799. 8006abc: 2201 movs r2, #1
  14800. 8006abe: 409a lsls r2, r3
  14801. 8006ac0: 68fb ldr r3, [r7, #12]
  14802. 8006ac2: 605a str r2, [r3, #4]
  14803. /* Clear the DMAMUX synchro overrun flag */
  14804. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  14805. 8006ac4: 687b ldr r3, [r7, #4]
  14806. 8006ac6: 6e5b ldr r3, [r3, #100] @ 0x64
  14807. 8006ac8: 687a ldr r2, [r7, #4]
  14808. 8006aca: 6e92 ldr r2, [r2, #104] @ 0x68
  14809. 8006acc: 605a str r2, [r3, #4]
  14810. if(hdma->DMAmuxRequestGen != 0U)
  14811. 8006ace: 687b ldr r3, [r7, #4]
  14812. 8006ad0: 6edb ldr r3, [r3, #108] @ 0x6c
  14813. 8006ad2: 2b00 cmp r3, #0
  14814. 8006ad4: d00c beq.n 8006af0 <HAL_DMA_Abort_IT+0x460>
  14815. {
  14816. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  14817. /* disable the request gen overrun IT */
  14818. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  14819. 8006ad6: 687b ldr r3, [r7, #4]
  14820. 8006ad8: 6edb ldr r3, [r3, #108] @ 0x6c
  14821. 8006ada: 681a ldr r2, [r3, #0]
  14822. 8006adc: 687b ldr r3, [r7, #4]
  14823. 8006ade: 6edb ldr r3, [r3, #108] @ 0x6c
  14824. 8006ae0: f422 7280 bic.w r2, r2, #256 @ 0x100
  14825. 8006ae4: 601a str r2, [r3, #0]
  14826. /* Clear the DMAMUX request generator overrun flag */
  14827. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  14828. 8006ae6: 687b ldr r3, [r7, #4]
  14829. 8006ae8: 6f1b ldr r3, [r3, #112] @ 0x70
  14830. 8006aea: 687a ldr r2, [r7, #4]
  14831. 8006aec: 6f52 ldr r2, [r2, #116] @ 0x74
  14832. 8006aee: 605a str r2, [r3, #4]
  14833. }
  14834. }
  14835. /* Change the DMA state */
  14836. hdma->State = HAL_DMA_STATE_READY;
  14837. 8006af0: 687b ldr r3, [r7, #4]
  14838. 8006af2: 2201 movs r2, #1
  14839. 8006af4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  14840. /* Process Unlocked */
  14841. __HAL_UNLOCK(hdma);
  14842. 8006af8: 687b ldr r3, [r7, #4]
  14843. 8006afa: 2200 movs r2, #0
  14844. 8006afc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  14845. /* Call User Abort callback */
  14846. if(hdma->XferAbortCallback != NULL)
  14847. 8006b00: 687b ldr r3, [r7, #4]
  14848. 8006b02: 6d1b ldr r3, [r3, #80] @ 0x50
  14849. 8006b04: 2b00 cmp r3, #0
  14850. 8006b06: d003 beq.n 8006b10 <HAL_DMA_Abort_IT+0x480>
  14851. {
  14852. hdma->XferAbortCallback(hdma);
  14853. 8006b08: 687b ldr r3, [r7, #4]
  14854. 8006b0a: 6d1b ldr r3, [r3, #80] @ 0x50
  14855. 8006b0c: 6878 ldr r0, [r7, #4]
  14856. 8006b0e: 4798 blx r3
  14857. }
  14858. }
  14859. }
  14860. return HAL_OK;
  14861. 8006b10: 2300 movs r3, #0
  14862. }
  14863. 8006b12: 4618 mov r0, r3
  14864. 8006b14: 3710 adds r7, #16
  14865. 8006b16: 46bd mov sp, r7
  14866. 8006b18: bd80 pop {r7, pc}
  14867. 8006b1a: bf00 nop
  14868. 08006b1c <HAL_DMA_IRQHandler>:
  14869. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  14870. * the configuration information for the specified DMA Stream.
  14871. * @retval None
  14872. */
  14873. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  14874. {
  14875. 8006b1c: b580 push {r7, lr}
  14876. 8006b1e: b08a sub sp, #40 @ 0x28
  14877. 8006b20: af00 add r7, sp, #0
  14878. 8006b22: 6078 str r0, [r7, #4]
  14879. uint32_t tmpisr_dma, tmpisr_bdma;
  14880. uint32_t ccr_reg;
  14881. __IO uint32_t count = 0U;
  14882. 8006b24: 2300 movs r3, #0
  14883. 8006b26: 60fb str r3, [r7, #12]
  14884. uint32_t timeout = SystemCoreClock / 9600U;
  14885. 8006b28: 4b67 ldr r3, [pc, #412] @ (8006cc8 <HAL_DMA_IRQHandler+0x1ac>)
  14886. 8006b2a: 681b ldr r3, [r3, #0]
  14887. 8006b2c: 4a67 ldr r2, [pc, #412] @ (8006ccc <HAL_DMA_IRQHandler+0x1b0>)
  14888. 8006b2e: fba2 2303 umull r2, r3, r2, r3
  14889. 8006b32: 0a9b lsrs r3, r3, #10
  14890. 8006b34: 627b str r3, [r7, #36] @ 0x24
  14891. /* calculate DMA base and stream number */
  14892. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  14893. 8006b36: 687b ldr r3, [r7, #4]
  14894. 8006b38: 6d9b ldr r3, [r3, #88] @ 0x58
  14895. 8006b3a: 623b str r3, [r7, #32]
  14896. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  14897. 8006b3c: 687b ldr r3, [r7, #4]
  14898. 8006b3e: 6d9b ldr r3, [r3, #88] @ 0x58
  14899. 8006b40: 61fb str r3, [r7, #28]
  14900. tmpisr_dma = regs_dma->ISR;
  14901. 8006b42: 6a3b ldr r3, [r7, #32]
  14902. 8006b44: 681b ldr r3, [r3, #0]
  14903. 8006b46: 61bb str r3, [r7, #24]
  14904. tmpisr_bdma = regs_bdma->ISR;
  14905. 8006b48: 69fb ldr r3, [r7, #28]
  14906. 8006b4a: 681b ldr r3, [r3, #0]
  14907. 8006b4c: 617b str r3, [r7, #20]
  14908. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  14909. 8006b4e: 687b ldr r3, [r7, #4]
  14910. 8006b50: 681b ldr r3, [r3, #0]
  14911. 8006b52: 4a5f ldr r2, [pc, #380] @ (8006cd0 <HAL_DMA_IRQHandler+0x1b4>)
  14912. 8006b54: 4293 cmp r3, r2
  14913. 8006b56: d04a beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14914. 8006b58: 687b ldr r3, [r7, #4]
  14915. 8006b5a: 681b ldr r3, [r3, #0]
  14916. 8006b5c: 4a5d ldr r2, [pc, #372] @ (8006cd4 <HAL_DMA_IRQHandler+0x1b8>)
  14917. 8006b5e: 4293 cmp r3, r2
  14918. 8006b60: d045 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14919. 8006b62: 687b ldr r3, [r7, #4]
  14920. 8006b64: 681b ldr r3, [r3, #0]
  14921. 8006b66: 4a5c ldr r2, [pc, #368] @ (8006cd8 <HAL_DMA_IRQHandler+0x1bc>)
  14922. 8006b68: 4293 cmp r3, r2
  14923. 8006b6a: d040 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14924. 8006b6c: 687b ldr r3, [r7, #4]
  14925. 8006b6e: 681b ldr r3, [r3, #0]
  14926. 8006b70: 4a5a ldr r2, [pc, #360] @ (8006cdc <HAL_DMA_IRQHandler+0x1c0>)
  14927. 8006b72: 4293 cmp r3, r2
  14928. 8006b74: d03b beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14929. 8006b76: 687b ldr r3, [r7, #4]
  14930. 8006b78: 681b ldr r3, [r3, #0]
  14931. 8006b7a: 4a59 ldr r2, [pc, #356] @ (8006ce0 <HAL_DMA_IRQHandler+0x1c4>)
  14932. 8006b7c: 4293 cmp r3, r2
  14933. 8006b7e: d036 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14934. 8006b80: 687b ldr r3, [r7, #4]
  14935. 8006b82: 681b ldr r3, [r3, #0]
  14936. 8006b84: 4a57 ldr r2, [pc, #348] @ (8006ce4 <HAL_DMA_IRQHandler+0x1c8>)
  14937. 8006b86: 4293 cmp r3, r2
  14938. 8006b88: d031 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14939. 8006b8a: 687b ldr r3, [r7, #4]
  14940. 8006b8c: 681b ldr r3, [r3, #0]
  14941. 8006b8e: 4a56 ldr r2, [pc, #344] @ (8006ce8 <HAL_DMA_IRQHandler+0x1cc>)
  14942. 8006b90: 4293 cmp r3, r2
  14943. 8006b92: d02c beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14944. 8006b94: 687b ldr r3, [r7, #4]
  14945. 8006b96: 681b ldr r3, [r3, #0]
  14946. 8006b98: 4a54 ldr r2, [pc, #336] @ (8006cec <HAL_DMA_IRQHandler+0x1d0>)
  14947. 8006b9a: 4293 cmp r3, r2
  14948. 8006b9c: d027 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14949. 8006b9e: 687b ldr r3, [r7, #4]
  14950. 8006ba0: 681b ldr r3, [r3, #0]
  14951. 8006ba2: 4a53 ldr r2, [pc, #332] @ (8006cf0 <HAL_DMA_IRQHandler+0x1d4>)
  14952. 8006ba4: 4293 cmp r3, r2
  14953. 8006ba6: d022 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14954. 8006ba8: 687b ldr r3, [r7, #4]
  14955. 8006baa: 681b ldr r3, [r3, #0]
  14956. 8006bac: 4a51 ldr r2, [pc, #324] @ (8006cf4 <HAL_DMA_IRQHandler+0x1d8>)
  14957. 8006bae: 4293 cmp r3, r2
  14958. 8006bb0: d01d beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14959. 8006bb2: 687b ldr r3, [r7, #4]
  14960. 8006bb4: 681b ldr r3, [r3, #0]
  14961. 8006bb6: 4a50 ldr r2, [pc, #320] @ (8006cf8 <HAL_DMA_IRQHandler+0x1dc>)
  14962. 8006bb8: 4293 cmp r3, r2
  14963. 8006bba: d018 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14964. 8006bbc: 687b ldr r3, [r7, #4]
  14965. 8006bbe: 681b ldr r3, [r3, #0]
  14966. 8006bc0: 4a4e ldr r2, [pc, #312] @ (8006cfc <HAL_DMA_IRQHandler+0x1e0>)
  14967. 8006bc2: 4293 cmp r3, r2
  14968. 8006bc4: d013 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14969. 8006bc6: 687b ldr r3, [r7, #4]
  14970. 8006bc8: 681b ldr r3, [r3, #0]
  14971. 8006bca: 4a4d ldr r2, [pc, #308] @ (8006d00 <HAL_DMA_IRQHandler+0x1e4>)
  14972. 8006bcc: 4293 cmp r3, r2
  14973. 8006bce: d00e beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14974. 8006bd0: 687b ldr r3, [r7, #4]
  14975. 8006bd2: 681b ldr r3, [r3, #0]
  14976. 8006bd4: 4a4b ldr r2, [pc, #300] @ (8006d04 <HAL_DMA_IRQHandler+0x1e8>)
  14977. 8006bd6: 4293 cmp r3, r2
  14978. 8006bd8: d009 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14979. 8006bda: 687b ldr r3, [r7, #4]
  14980. 8006bdc: 681b ldr r3, [r3, #0]
  14981. 8006bde: 4a4a ldr r2, [pc, #296] @ (8006d08 <HAL_DMA_IRQHandler+0x1ec>)
  14982. 8006be0: 4293 cmp r3, r2
  14983. 8006be2: d004 beq.n 8006bee <HAL_DMA_IRQHandler+0xd2>
  14984. 8006be4: 687b ldr r3, [r7, #4]
  14985. 8006be6: 681b ldr r3, [r3, #0]
  14986. 8006be8: 4a48 ldr r2, [pc, #288] @ (8006d0c <HAL_DMA_IRQHandler+0x1f0>)
  14987. 8006bea: 4293 cmp r3, r2
  14988. 8006bec: d101 bne.n 8006bf2 <HAL_DMA_IRQHandler+0xd6>
  14989. 8006bee: 2301 movs r3, #1
  14990. 8006bf0: e000 b.n 8006bf4 <HAL_DMA_IRQHandler+0xd8>
  14991. 8006bf2: 2300 movs r3, #0
  14992. 8006bf4: 2b00 cmp r3, #0
  14993. 8006bf6: f000 842b beq.w 8007450 <HAL_DMA_IRQHandler+0x934>
  14994. {
  14995. /* Transfer Error Interrupt management ***************************************/
  14996. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  14997. 8006bfa: 687b ldr r3, [r7, #4]
  14998. 8006bfc: 6ddb ldr r3, [r3, #92] @ 0x5c
  14999. 8006bfe: f003 031f and.w r3, r3, #31
  15000. 8006c02: 2208 movs r2, #8
  15001. 8006c04: 409a lsls r2, r3
  15002. 8006c06: 69bb ldr r3, [r7, #24]
  15003. 8006c08: 4013 ands r3, r2
  15004. 8006c0a: 2b00 cmp r3, #0
  15005. 8006c0c: f000 80a2 beq.w 8006d54 <HAL_DMA_IRQHandler+0x238>
  15006. {
  15007. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  15008. 8006c10: 687b ldr r3, [r7, #4]
  15009. 8006c12: 681b ldr r3, [r3, #0]
  15010. 8006c14: 4a2e ldr r2, [pc, #184] @ (8006cd0 <HAL_DMA_IRQHandler+0x1b4>)
  15011. 8006c16: 4293 cmp r3, r2
  15012. 8006c18: d04a beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15013. 8006c1a: 687b ldr r3, [r7, #4]
  15014. 8006c1c: 681b ldr r3, [r3, #0]
  15015. 8006c1e: 4a2d ldr r2, [pc, #180] @ (8006cd4 <HAL_DMA_IRQHandler+0x1b8>)
  15016. 8006c20: 4293 cmp r3, r2
  15017. 8006c22: d045 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15018. 8006c24: 687b ldr r3, [r7, #4]
  15019. 8006c26: 681b ldr r3, [r3, #0]
  15020. 8006c28: 4a2b ldr r2, [pc, #172] @ (8006cd8 <HAL_DMA_IRQHandler+0x1bc>)
  15021. 8006c2a: 4293 cmp r3, r2
  15022. 8006c2c: d040 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15023. 8006c2e: 687b ldr r3, [r7, #4]
  15024. 8006c30: 681b ldr r3, [r3, #0]
  15025. 8006c32: 4a2a ldr r2, [pc, #168] @ (8006cdc <HAL_DMA_IRQHandler+0x1c0>)
  15026. 8006c34: 4293 cmp r3, r2
  15027. 8006c36: d03b beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15028. 8006c38: 687b ldr r3, [r7, #4]
  15029. 8006c3a: 681b ldr r3, [r3, #0]
  15030. 8006c3c: 4a28 ldr r2, [pc, #160] @ (8006ce0 <HAL_DMA_IRQHandler+0x1c4>)
  15031. 8006c3e: 4293 cmp r3, r2
  15032. 8006c40: d036 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15033. 8006c42: 687b ldr r3, [r7, #4]
  15034. 8006c44: 681b ldr r3, [r3, #0]
  15035. 8006c46: 4a27 ldr r2, [pc, #156] @ (8006ce4 <HAL_DMA_IRQHandler+0x1c8>)
  15036. 8006c48: 4293 cmp r3, r2
  15037. 8006c4a: d031 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15038. 8006c4c: 687b ldr r3, [r7, #4]
  15039. 8006c4e: 681b ldr r3, [r3, #0]
  15040. 8006c50: 4a25 ldr r2, [pc, #148] @ (8006ce8 <HAL_DMA_IRQHandler+0x1cc>)
  15041. 8006c52: 4293 cmp r3, r2
  15042. 8006c54: d02c beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15043. 8006c56: 687b ldr r3, [r7, #4]
  15044. 8006c58: 681b ldr r3, [r3, #0]
  15045. 8006c5a: 4a24 ldr r2, [pc, #144] @ (8006cec <HAL_DMA_IRQHandler+0x1d0>)
  15046. 8006c5c: 4293 cmp r3, r2
  15047. 8006c5e: d027 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15048. 8006c60: 687b ldr r3, [r7, #4]
  15049. 8006c62: 681b ldr r3, [r3, #0]
  15050. 8006c64: 4a22 ldr r2, [pc, #136] @ (8006cf0 <HAL_DMA_IRQHandler+0x1d4>)
  15051. 8006c66: 4293 cmp r3, r2
  15052. 8006c68: d022 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15053. 8006c6a: 687b ldr r3, [r7, #4]
  15054. 8006c6c: 681b ldr r3, [r3, #0]
  15055. 8006c6e: 4a21 ldr r2, [pc, #132] @ (8006cf4 <HAL_DMA_IRQHandler+0x1d8>)
  15056. 8006c70: 4293 cmp r3, r2
  15057. 8006c72: d01d beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15058. 8006c74: 687b ldr r3, [r7, #4]
  15059. 8006c76: 681b ldr r3, [r3, #0]
  15060. 8006c78: 4a1f ldr r2, [pc, #124] @ (8006cf8 <HAL_DMA_IRQHandler+0x1dc>)
  15061. 8006c7a: 4293 cmp r3, r2
  15062. 8006c7c: d018 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15063. 8006c7e: 687b ldr r3, [r7, #4]
  15064. 8006c80: 681b ldr r3, [r3, #0]
  15065. 8006c82: 4a1e ldr r2, [pc, #120] @ (8006cfc <HAL_DMA_IRQHandler+0x1e0>)
  15066. 8006c84: 4293 cmp r3, r2
  15067. 8006c86: d013 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15068. 8006c88: 687b ldr r3, [r7, #4]
  15069. 8006c8a: 681b ldr r3, [r3, #0]
  15070. 8006c8c: 4a1c ldr r2, [pc, #112] @ (8006d00 <HAL_DMA_IRQHandler+0x1e4>)
  15071. 8006c8e: 4293 cmp r3, r2
  15072. 8006c90: d00e beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15073. 8006c92: 687b ldr r3, [r7, #4]
  15074. 8006c94: 681b ldr r3, [r3, #0]
  15075. 8006c96: 4a1b ldr r2, [pc, #108] @ (8006d04 <HAL_DMA_IRQHandler+0x1e8>)
  15076. 8006c98: 4293 cmp r3, r2
  15077. 8006c9a: d009 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15078. 8006c9c: 687b ldr r3, [r7, #4]
  15079. 8006c9e: 681b ldr r3, [r3, #0]
  15080. 8006ca0: 4a19 ldr r2, [pc, #100] @ (8006d08 <HAL_DMA_IRQHandler+0x1ec>)
  15081. 8006ca2: 4293 cmp r3, r2
  15082. 8006ca4: d004 beq.n 8006cb0 <HAL_DMA_IRQHandler+0x194>
  15083. 8006ca6: 687b ldr r3, [r7, #4]
  15084. 8006ca8: 681b ldr r3, [r3, #0]
  15085. 8006caa: 4a18 ldr r2, [pc, #96] @ (8006d0c <HAL_DMA_IRQHandler+0x1f0>)
  15086. 8006cac: 4293 cmp r3, r2
  15087. 8006cae: d12f bne.n 8006d10 <HAL_DMA_IRQHandler+0x1f4>
  15088. 8006cb0: 687b ldr r3, [r7, #4]
  15089. 8006cb2: 681b ldr r3, [r3, #0]
  15090. 8006cb4: 681b ldr r3, [r3, #0]
  15091. 8006cb6: f003 0304 and.w r3, r3, #4
  15092. 8006cba: 2b00 cmp r3, #0
  15093. 8006cbc: bf14 ite ne
  15094. 8006cbe: 2301 movne r3, #1
  15095. 8006cc0: 2300 moveq r3, #0
  15096. 8006cc2: b2db uxtb r3, r3
  15097. 8006cc4: e02e b.n 8006d24 <HAL_DMA_IRQHandler+0x208>
  15098. 8006cc6: bf00 nop
  15099. 8006cc8: 2400000c .word 0x2400000c
  15100. 8006ccc: 1b4e81b5 .word 0x1b4e81b5
  15101. 8006cd0: 40020010 .word 0x40020010
  15102. 8006cd4: 40020028 .word 0x40020028
  15103. 8006cd8: 40020040 .word 0x40020040
  15104. 8006cdc: 40020058 .word 0x40020058
  15105. 8006ce0: 40020070 .word 0x40020070
  15106. 8006ce4: 40020088 .word 0x40020088
  15107. 8006ce8: 400200a0 .word 0x400200a0
  15108. 8006cec: 400200b8 .word 0x400200b8
  15109. 8006cf0: 40020410 .word 0x40020410
  15110. 8006cf4: 40020428 .word 0x40020428
  15111. 8006cf8: 40020440 .word 0x40020440
  15112. 8006cfc: 40020458 .word 0x40020458
  15113. 8006d00: 40020470 .word 0x40020470
  15114. 8006d04: 40020488 .word 0x40020488
  15115. 8006d08: 400204a0 .word 0x400204a0
  15116. 8006d0c: 400204b8 .word 0x400204b8
  15117. 8006d10: 687b ldr r3, [r7, #4]
  15118. 8006d12: 681b ldr r3, [r3, #0]
  15119. 8006d14: 681b ldr r3, [r3, #0]
  15120. 8006d16: f003 0308 and.w r3, r3, #8
  15121. 8006d1a: 2b00 cmp r3, #0
  15122. 8006d1c: bf14 ite ne
  15123. 8006d1e: 2301 movne r3, #1
  15124. 8006d20: 2300 moveq r3, #0
  15125. 8006d22: b2db uxtb r3, r3
  15126. 8006d24: 2b00 cmp r3, #0
  15127. 8006d26: d015 beq.n 8006d54 <HAL_DMA_IRQHandler+0x238>
  15128. {
  15129. /* Disable the transfer error interrupt */
  15130. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  15131. 8006d28: 687b ldr r3, [r7, #4]
  15132. 8006d2a: 681b ldr r3, [r3, #0]
  15133. 8006d2c: 681a ldr r2, [r3, #0]
  15134. 8006d2e: 687b ldr r3, [r7, #4]
  15135. 8006d30: 681b ldr r3, [r3, #0]
  15136. 8006d32: f022 0204 bic.w r2, r2, #4
  15137. 8006d36: 601a str r2, [r3, #0]
  15138. /* Clear the transfer error flag */
  15139. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15140. 8006d38: 687b ldr r3, [r7, #4]
  15141. 8006d3a: 6ddb ldr r3, [r3, #92] @ 0x5c
  15142. 8006d3c: f003 031f and.w r3, r3, #31
  15143. 8006d40: 2208 movs r2, #8
  15144. 8006d42: 409a lsls r2, r3
  15145. 8006d44: 6a3b ldr r3, [r7, #32]
  15146. 8006d46: 609a str r2, [r3, #8]
  15147. /* Update error code */
  15148. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  15149. 8006d48: 687b ldr r3, [r7, #4]
  15150. 8006d4a: 6d5b ldr r3, [r3, #84] @ 0x54
  15151. 8006d4c: f043 0201 orr.w r2, r3, #1
  15152. 8006d50: 687b ldr r3, [r7, #4]
  15153. 8006d52: 655a str r2, [r3, #84] @ 0x54
  15154. }
  15155. }
  15156. /* FIFO Error Interrupt management ******************************************/
  15157. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15158. 8006d54: 687b ldr r3, [r7, #4]
  15159. 8006d56: 6ddb ldr r3, [r3, #92] @ 0x5c
  15160. 8006d58: f003 031f and.w r3, r3, #31
  15161. 8006d5c: 69ba ldr r2, [r7, #24]
  15162. 8006d5e: fa22 f303 lsr.w r3, r2, r3
  15163. 8006d62: f003 0301 and.w r3, r3, #1
  15164. 8006d66: 2b00 cmp r3, #0
  15165. 8006d68: d06e beq.n 8006e48 <HAL_DMA_IRQHandler+0x32c>
  15166. {
  15167. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  15168. 8006d6a: 687b ldr r3, [r7, #4]
  15169. 8006d6c: 681b ldr r3, [r3, #0]
  15170. 8006d6e: 4a69 ldr r2, [pc, #420] @ (8006f14 <HAL_DMA_IRQHandler+0x3f8>)
  15171. 8006d70: 4293 cmp r3, r2
  15172. 8006d72: d04a beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15173. 8006d74: 687b ldr r3, [r7, #4]
  15174. 8006d76: 681b ldr r3, [r3, #0]
  15175. 8006d78: 4a67 ldr r2, [pc, #412] @ (8006f18 <HAL_DMA_IRQHandler+0x3fc>)
  15176. 8006d7a: 4293 cmp r3, r2
  15177. 8006d7c: d045 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15178. 8006d7e: 687b ldr r3, [r7, #4]
  15179. 8006d80: 681b ldr r3, [r3, #0]
  15180. 8006d82: 4a66 ldr r2, [pc, #408] @ (8006f1c <HAL_DMA_IRQHandler+0x400>)
  15181. 8006d84: 4293 cmp r3, r2
  15182. 8006d86: d040 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15183. 8006d88: 687b ldr r3, [r7, #4]
  15184. 8006d8a: 681b ldr r3, [r3, #0]
  15185. 8006d8c: 4a64 ldr r2, [pc, #400] @ (8006f20 <HAL_DMA_IRQHandler+0x404>)
  15186. 8006d8e: 4293 cmp r3, r2
  15187. 8006d90: d03b beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15188. 8006d92: 687b ldr r3, [r7, #4]
  15189. 8006d94: 681b ldr r3, [r3, #0]
  15190. 8006d96: 4a63 ldr r2, [pc, #396] @ (8006f24 <HAL_DMA_IRQHandler+0x408>)
  15191. 8006d98: 4293 cmp r3, r2
  15192. 8006d9a: d036 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15193. 8006d9c: 687b ldr r3, [r7, #4]
  15194. 8006d9e: 681b ldr r3, [r3, #0]
  15195. 8006da0: 4a61 ldr r2, [pc, #388] @ (8006f28 <HAL_DMA_IRQHandler+0x40c>)
  15196. 8006da2: 4293 cmp r3, r2
  15197. 8006da4: d031 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15198. 8006da6: 687b ldr r3, [r7, #4]
  15199. 8006da8: 681b ldr r3, [r3, #0]
  15200. 8006daa: 4a60 ldr r2, [pc, #384] @ (8006f2c <HAL_DMA_IRQHandler+0x410>)
  15201. 8006dac: 4293 cmp r3, r2
  15202. 8006dae: d02c beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15203. 8006db0: 687b ldr r3, [r7, #4]
  15204. 8006db2: 681b ldr r3, [r3, #0]
  15205. 8006db4: 4a5e ldr r2, [pc, #376] @ (8006f30 <HAL_DMA_IRQHandler+0x414>)
  15206. 8006db6: 4293 cmp r3, r2
  15207. 8006db8: d027 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15208. 8006dba: 687b ldr r3, [r7, #4]
  15209. 8006dbc: 681b ldr r3, [r3, #0]
  15210. 8006dbe: 4a5d ldr r2, [pc, #372] @ (8006f34 <HAL_DMA_IRQHandler+0x418>)
  15211. 8006dc0: 4293 cmp r3, r2
  15212. 8006dc2: d022 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15213. 8006dc4: 687b ldr r3, [r7, #4]
  15214. 8006dc6: 681b ldr r3, [r3, #0]
  15215. 8006dc8: 4a5b ldr r2, [pc, #364] @ (8006f38 <HAL_DMA_IRQHandler+0x41c>)
  15216. 8006dca: 4293 cmp r3, r2
  15217. 8006dcc: d01d beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15218. 8006dce: 687b ldr r3, [r7, #4]
  15219. 8006dd0: 681b ldr r3, [r3, #0]
  15220. 8006dd2: 4a5a ldr r2, [pc, #360] @ (8006f3c <HAL_DMA_IRQHandler+0x420>)
  15221. 8006dd4: 4293 cmp r3, r2
  15222. 8006dd6: d018 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15223. 8006dd8: 687b ldr r3, [r7, #4]
  15224. 8006dda: 681b ldr r3, [r3, #0]
  15225. 8006ddc: 4a58 ldr r2, [pc, #352] @ (8006f40 <HAL_DMA_IRQHandler+0x424>)
  15226. 8006dde: 4293 cmp r3, r2
  15227. 8006de0: d013 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15228. 8006de2: 687b ldr r3, [r7, #4]
  15229. 8006de4: 681b ldr r3, [r3, #0]
  15230. 8006de6: 4a57 ldr r2, [pc, #348] @ (8006f44 <HAL_DMA_IRQHandler+0x428>)
  15231. 8006de8: 4293 cmp r3, r2
  15232. 8006dea: d00e beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15233. 8006dec: 687b ldr r3, [r7, #4]
  15234. 8006dee: 681b ldr r3, [r3, #0]
  15235. 8006df0: 4a55 ldr r2, [pc, #340] @ (8006f48 <HAL_DMA_IRQHandler+0x42c>)
  15236. 8006df2: 4293 cmp r3, r2
  15237. 8006df4: d009 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15238. 8006df6: 687b ldr r3, [r7, #4]
  15239. 8006df8: 681b ldr r3, [r3, #0]
  15240. 8006dfa: 4a54 ldr r2, [pc, #336] @ (8006f4c <HAL_DMA_IRQHandler+0x430>)
  15241. 8006dfc: 4293 cmp r3, r2
  15242. 8006dfe: d004 beq.n 8006e0a <HAL_DMA_IRQHandler+0x2ee>
  15243. 8006e00: 687b ldr r3, [r7, #4]
  15244. 8006e02: 681b ldr r3, [r3, #0]
  15245. 8006e04: 4a52 ldr r2, [pc, #328] @ (8006f50 <HAL_DMA_IRQHandler+0x434>)
  15246. 8006e06: 4293 cmp r3, r2
  15247. 8006e08: d10a bne.n 8006e20 <HAL_DMA_IRQHandler+0x304>
  15248. 8006e0a: 687b ldr r3, [r7, #4]
  15249. 8006e0c: 681b ldr r3, [r3, #0]
  15250. 8006e0e: 695b ldr r3, [r3, #20]
  15251. 8006e10: f003 0380 and.w r3, r3, #128 @ 0x80
  15252. 8006e14: 2b00 cmp r3, #0
  15253. 8006e16: bf14 ite ne
  15254. 8006e18: 2301 movne r3, #1
  15255. 8006e1a: 2300 moveq r3, #0
  15256. 8006e1c: b2db uxtb r3, r3
  15257. 8006e1e: e003 b.n 8006e28 <HAL_DMA_IRQHandler+0x30c>
  15258. 8006e20: 687b ldr r3, [r7, #4]
  15259. 8006e22: 681b ldr r3, [r3, #0]
  15260. 8006e24: 681b ldr r3, [r3, #0]
  15261. 8006e26: 2300 movs r3, #0
  15262. 8006e28: 2b00 cmp r3, #0
  15263. 8006e2a: d00d beq.n 8006e48 <HAL_DMA_IRQHandler+0x32c>
  15264. {
  15265. /* Clear the FIFO error flag */
  15266. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15267. 8006e2c: 687b ldr r3, [r7, #4]
  15268. 8006e2e: 6ddb ldr r3, [r3, #92] @ 0x5c
  15269. 8006e30: f003 031f and.w r3, r3, #31
  15270. 8006e34: 2201 movs r2, #1
  15271. 8006e36: 409a lsls r2, r3
  15272. 8006e38: 6a3b ldr r3, [r7, #32]
  15273. 8006e3a: 609a str r2, [r3, #8]
  15274. /* Update error code */
  15275. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  15276. 8006e3c: 687b ldr r3, [r7, #4]
  15277. 8006e3e: 6d5b ldr r3, [r3, #84] @ 0x54
  15278. 8006e40: f043 0202 orr.w r2, r3, #2
  15279. 8006e44: 687b ldr r3, [r7, #4]
  15280. 8006e46: 655a str r2, [r3, #84] @ 0x54
  15281. }
  15282. }
  15283. /* Direct Mode Error Interrupt management ***********************************/
  15284. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15285. 8006e48: 687b ldr r3, [r7, #4]
  15286. 8006e4a: 6ddb ldr r3, [r3, #92] @ 0x5c
  15287. 8006e4c: f003 031f and.w r3, r3, #31
  15288. 8006e50: 2204 movs r2, #4
  15289. 8006e52: 409a lsls r2, r3
  15290. 8006e54: 69bb ldr r3, [r7, #24]
  15291. 8006e56: 4013 ands r3, r2
  15292. 8006e58: 2b00 cmp r3, #0
  15293. 8006e5a: f000 808f beq.w 8006f7c <HAL_DMA_IRQHandler+0x460>
  15294. {
  15295. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  15296. 8006e5e: 687b ldr r3, [r7, #4]
  15297. 8006e60: 681b ldr r3, [r3, #0]
  15298. 8006e62: 4a2c ldr r2, [pc, #176] @ (8006f14 <HAL_DMA_IRQHandler+0x3f8>)
  15299. 8006e64: 4293 cmp r3, r2
  15300. 8006e66: d04a beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15301. 8006e68: 687b ldr r3, [r7, #4]
  15302. 8006e6a: 681b ldr r3, [r3, #0]
  15303. 8006e6c: 4a2a ldr r2, [pc, #168] @ (8006f18 <HAL_DMA_IRQHandler+0x3fc>)
  15304. 8006e6e: 4293 cmp r3, r2
  15305. 8006e70: d045 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15306. 8006e72: 687b ldr r3, [r7, #4]
  15307. 8006e74: 681b ldr r3, [r3, #0]
  15308. 8006e76: 4a29 ldr r2, [pc, #164] @ (8006f1c <HAL_DMA_IRQHandler+0x400>)
  15309. 8006e78: 4293 cmp r3, r2
  15310. 8006e7a: d040 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15311. 8006e7c: 687b ldr r3, [r7, #4]
  15312. 8006e7e: 681b ldr r3, [r3, #0]
  15313. 8006e80: 4a27 ldr r2, [pc, #156] @ (8006f20 <HAL_DMA_IRQHandler+0x404>)
  15314. 8006e82: 4293 cmp r3, r2
  15315. 8006e84: d03b beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15316. 8006e86: 687b ldr r3, [r7, #4]
  15317. 8006e88: 681b ldr r3, [r3, #0]
  15318. 8006e8a: 4a26 ldr r2, [pc, #152] @ (8006f24 <HAL_DMA_IRQHandler+0x408>)
  15319. 8006e8c: 4293 cmp r3, r2
  15320. 8006e8e: d036 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15321. 8006e90: 687b ldr r3, [r7, #4]
  15322. 8006e92: 681b ldr r3, [r3, #0]
  15323. 8006e94: 4a24 ldr r2, [pc, #144] @ (8006f28 <HAL_DMA_IRQHandler+0x40c>)
  15324. 8006e96: 4293 cmp r3, r2
  15325. 8006e98: d031 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15326. 8006e9a: 687b ldr r3, [r7, #4]
  15327. 8006e9c: 681b ldr r3, [r3, #0]
  15328. 8006e9e: 4a23 ldr r2, [pc, #140] @ (8006f2c <HAL_DMA_IRQHandler+0x410>)
  15329. 8006ea0: 4293 cmp r3, r2
  15330. 8006ea2: d02c beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15331. 8006ea4: 687b ldr r3, [r7, #4]
  15332. 8006ea6: 681b ldr r3, [r3, #0]
  15333. 8006ea8: 4a21 ldr r2, [pc, #132] @ (8006f30 <HAL_DMA_IRQHandler+0x414>)
  15334. 8006eaa: 4293 cmp r3, r2
  15335. 8006eac: d027 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15336. 8006eae: 687b ldr r3, [r7, #4]
  15337. 8006eb0: 681b ldr r3, [r3, #0]
  15338. 8006eb2: 4a20 ldr r2, [pc, #128] @ (8006f34 <HAL_DMA_IRQHandler+0x418>)
  15339. 8006eb4: 4293 cmp r3, r2
  15340. 8006eb6: d022 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15341. 8006eb8: 687b ldr r3, [r7, #4]
  15342. 8006eba: 681b ldr r3, [r3, #0]
  15343. 8006ebc: 4a1e ldr r2, [pc, #120] @ (8006f38 <HAL_DMA_IRQHandler+0x41c>)
  15344. 8006ebe: 4293 cmp r3, r2
  15345. 8006ec0: d01d beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15346. 8006ec2: 687b ldr r3, [r7, #4]
  15347. 8006ec4: 681b ldr r3, [r3, #0]
  15348. 8006ec6: 4a1d ldr r2, [pc, #116] @ (8006f3c <HAL_DMA_IRQHandler+0x420>)
  15349. 8006ec8: 4293 cmp r3, r2
  15350. 8006eca: d018 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15351. 8006ecc: 687b ldr r3, [r7, #4]
  15352. 8006ece: 681b ldr r3, [r3, #0]
  15353. 8006ed0: 4a1b ldr r2, [pc, #108] @ (8006f40 <HAL_DMA_IRQHandler+0x424>)
  15354. 8006ed2: 4293 cmp r3, r2
  15355. 8006ed4: d013 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15356. 8006ed6: 687b ldr r3, [r7, #4]
  15357. 8006ed8: 681b ldr r3, [r3, #0]
  15358. 8006eda: 4a1a ldr r2, [pc, #104] @ (8006f44 <HAL_DMA_IRQHandler+0x428>)
  15359. 8006edc: 4293 cmp r3, r2
  15360. 8006ede: d00e beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15361. 8006ee0: 687b ldr r3, [r7, #4]
  15362. 8006ee2: 681b ldr r3, [r3, #0]
  15363. 8006ee4: 4a18 ldr r2, [pc, #96] @ (8006f48 <HAL_DMA_IRQHandler+0x42c>)
  15364. 8006ee6: 4293 cmp r3, r2
  15365. 8006ee8: d009 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15366. 8006eea: 687b ldr r3, [r7, #4]
  15367. 8006eec: 681b ldr r3, [r3, #0]
  15368. 8006eee: 4a17 ldr r2, [pc, #92] @ (8006f4c <HAL_DMA_IRQHandler+0x430>)
  15369. 8006ef0: 4293 cmp r3, r2
  15370. 8006ef2: d004 beq.n 8006efe <HAL_DMA_IRQHandler+0x3e2>
  15371. 8006ef4: 687b ldr r3, [r7, #4]
  15372. 8006ef6: 681b ldr r3, [r3, #0]
  15373. 8006ef8: 4a15 ldr r2, [pc, #84] @ (8006f50 <HAL_DMA_IRQHandler+0x434>)
  15374. 8006efa: 4293 cmp r3, r2
  15375. 8006efc: d12a bne.n 8006f54 <HAL_DMA_IRQHandler+0x438>
  15376. 8006efe: 687b ldr r3, [r7, #4]
  15377. 8006f00: 681b ldr r3, [r3, #0]
  15378. 8006f02: 681b ldr r3, [r3, #0]
  15379. 8006f04: f003 0302 and.w r3, r3, #2
  15380. 8006f08: 2b00 cmp r3, #0
  15381. 8006f0a: bf14 ite ne
  15382. 8006f0c: 2301 movne r3, #1
  15383. 8006f0e: 2300 moveq r3, #0
  15384. 8006f10: b2db uxtb r3, r3
  15385. 8006f12: e023 b.n 8006f5c <HAL_DMA_IRQHandler+0x440>
  15386. 8006f14: 40020010 .word 0x40020010
  15387. 8006f18: 40020028 .word 0x40020028
  15388. 8006f1c: 40020040 .word 0x40020040
  15389. 8006f20: 40020058 .word 0x40020058
  15390. 8006f24: 40020070 .word 0x40020070
  15391. 8006f28: 40020088 .word 0x40020088
  15392. 8006f2c: 400200a0 .word 0x400200a0
  15393. 8006f30: 400200b8 .word 0x400200b8
  15394. 8006f34: 40020410 .word 0x40020410
  15395. 8006f38: 40020428 .word 0x40020428
  15396. 8006f3c: 40020440 .word 0x40020440
  15397. 8006f40: 40020458 .word 0x40020458
  15398. 8006f44: 40020470 .word 0x40020470
  15399. 8006f48: 40020488 .word 0x40020488
  15400. 8006f4c: 400204a0 .word 0x400204a0
  15401. 8006f50: 400204b8 .word 0x400204b8
  15402. 8006f54: 687b ldr r3, [r7, #4]
  15403. 8006f56: 681b ldr r3, [r3, #0]
  15404. 8006f58: 681b ldr r3, [r3, #0]
  15405. 8006f5a: 2300 movs r3, #0
  15406. 8006f5c: 2b00 cmp r3, #0
  15407. 8006f5e: d00d beq.n 8006f7c <HAL_DMA_IRQHandler+0x460>
  15408. {
  15409. /* Clear the direct mode error flag */
  15410. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  15411. 8006f60: 687b ldr r3, [r7, #4]
  15412. 8006f62: 6ddb ldr r3, [r3, #92] @ 0x5c
  15413. 8006f64: f003 031f and.w r3, r3, #31
  15414. 8006f68: 2204 movs r2, #4
  15415. 8006f6a: 409a lsls r2, r3
  15416. 8006f6c: 6a3b ldr r3, [r7, #32]
  15417. 8006f6e: 609a str r2, [r3, #8]
  15418. /* Update error code */
  15419. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  15420. 8006f70: 687b ldr r3, [r7, #4]
  15421. 8006f72: 6d5b ldr r3, [r3, #84] @ 0x54
  15422. 8006f74: f043 0204 orr.w r2, r3, #4
  15423. 8006f78: 687b ldr r3, [r7, #4]
  15424. 8006f7a: 655a str r2, [r3, #84] @ 0x54
  15425. }
  15426. }
  15427. /* Half Transfer Complete Interrupt management ******************************/
  15428. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15429. 8006f7c: 687b ldr r3, [r7, #4]
  15430. 8006f7e: 6ddb ldr r3, [r3, #92] @ 0x5c
  15431. 8006f80: f003 031f and.w r3, r3, #31
  15432. 8006f84: 2210 movs r2, #16
  15433. 8006f86: 409a lsls r2, r3
  15434. 8006f88: 69bb ldr r3, [r7, #24]
  15435. 8006f8a: 4013 ands r3, r2
  15436. 8006f8c: 2b00 cmp r3, #0
  15437. 8006f8e: f000 80a6 beq.w 80070de <HAL_DMA_IRQHandler+0x5c2>
  15438. {
  15439. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  15440. 8006f92: 687b ldr r3, [r7, #4]
  15441. 8006f94: 681b ldr r3, [r3, #0]
  15442. 8006f96: 4a85 ldr r2, [pc, #532] @ (80071ac <HAL_DMA_IRQHandler+0x690>)
  15443. 8006f98: 4293 cmp r3, r2
  15444. 8006f9a: d04a beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15445. 8006f9c: 687b ldr r3, [r7, #4]
  15446. 8006f9e: 681b ldr r3, [r3, #0]
  15447. 8006fa0: 4a83 ldr r2, [pc, #524] @ (80071b0 <HAL_DMA_IRQHandler+0x694>)
  15448. 8006fa2: 4293 cmp r3, r2
  15449. 8006fa4: d045 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15450. 8006fa6: 687b ldr r3, [r7, #4]
  15451. 8006fa8: 681b ldr r3, [r3, #0]
  15452. 8006faa: 4a82 ldr r2, [pc, #520] @ (80071b4 <HAL_DMA_IRQHandler+0x698>)
  15453. 8006fac: 4293 cmp r3, r2
  15454. 8006fae: d040 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15455. 8006fb0: 687b ldr r3, [r7, #4]
  15456. 8006fb2: 681b ldr r3, [r3, #0]
  15457. 8006fb4: 4a80 ldr r2, [pc, #512] @ (80071b8 <HAL_DMA_IRQHandler+0x69c>)
  15458. 8006fb6: 4293 cmp r3, r2
  15459. 8006fb8: d03b beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15460. 8006fba: 687b ldr r3, [r7, #4]
  15461. 8006fbc: 681b ldr r3, [r3, #0]
  15462. 8006fbe: 4a7f ldr r2, [pc, #508] @ (80071bc <HAL_DMA_IRQHandler+0x6a0>)
  15463. 8006fc0: 4293 cmp r3, r2
  15464. 8006fc2: d036 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15465. 8006fc4: 687b ldr r3, [r7, #4]
  15466. 8006fc6: 681b ldr r3, [r3, #0]
  15467. 8006fc8: 4a7d ldr r2, [pc, #500] @ (80071c0 <HAL_DMA_IRQHandler+0x6a4>)
  15468. 8006fca: 4293 cmp r3, r2
  15469. 8006fcc: d031 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15470. 8006fce: 687b ldr r3, [r7, #4]
  15471. 8006fd0: 681b ldr r3, [r3, #0]
  15472. 8006fd2: 4a7c ldr r2, [pc, #496] @ (80071c4 <HAL_DMA_IRQHandler+0x6a8>)
  15473. 8006fd4: 4293 cmp r3, r2
  15474. 8006fd6: d02c beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15475. 8006fd8: 687b ldr r3, [r7, #4]
  15476. 8006fda: 681b ldr r3, [r3, #0]
  15477. 8006fdc: 4a7a ldr r2, [pc, #488] @ (80071c8 <HAL_DMA_IRQHandler+0x6ac>)
  15478. 8006fde: 4293 cmp r3, r2
  15479. 8006fe0: d027 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15480. 8006fe2: 687b ldr r3, [r7, #4]
  15481. 8006fe4: 681b ldr r3, [r3, #0]
  15482. 8006fe6: 4a79 ldr r2, [pc, #484] @ (80071cc <HAL_DMA_IRQHandler+0x6b0>)
  15483. 8006fe8: 4293 cmp r3, r2
  15484. 8006fea: d022 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15485. 8006fec: 687b ldr r3, [r7, #4]
  15486. 8006fee: 681b ldr r3, [r3, #0]
  15487. 8006ff0: 4a77 ldr r2, [pc, #476] @ (80071d0 <HAL_DMA_IRQHandler+0x6b4>)
  15488. 8006ff2: 4293 cmp r3, r2
  15489. 8006ff4: d01d beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15490. 8006ff6: 687b ldr r3, [r7, #4]
  15491. 8006ff8: 681b ldr r3, [r3, #0]
  15492. 8006ffa: 4a76 ldr r2, [pc, #472] @ (80071d4 <HAL_DMA_IRQHandler+0x6b8>)
  15493. 8006ffc: 4293 cmp r3, r2
  15494. 8006ffe: d018 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15495. 8007000: 687b ldr r3, [r7, #4]
  15496. 8007002: 681b ldr r3, [r3, #0]
  15497. 8007004: 4a74 ldr r2, [pc, #464] @ (80071d8 <HAL_DMA_IRQHandler+0x6bc>)
  15498. 8007006: 4293 cmp r3, r2
  15499. 8007008: d013 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15500. 800700a: 687b ldr r3, [r7, #4]
  15501. 800700c: 681b ldr r3, [r3, #0]
  15502. 800700e: 4a73 ldr r2, [pc, #460] @ (80071dc <HAL_DMA_IRQHandler+0x6c0>)
  15503. 8007010: 4293 cmp r3, r2
  15504. 8007012: d00e beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15505. 8007014: 687b ldr r3, [r7, #4]
  15506. 8007016: 681b ldr r3, [r3, #0]
  15507. 8007018: 4a71 ldr r2, [pc, #452] @ (80071e0 <HAL_DMA_IRQHandler+0x6c4>)
  15508. 800701a: 4293 cmp r3, r2
  15509. 800701c: d009 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15510. 800701e: 687b ldr r3, [r7, #4]
  15511. 8007020: 681b ldr r3, [r3, #0]
  15512. 8007022: 4a70 ldr r2, [pc, #448] @ (80071e4 <HAL_DMA_IRQHandler+0x6c8>)
  15513. 8007024: 4293 cmp r3, r2
  15514. 8007026: d004 beq.n 8007032 <HAL_DMA_IRQHandler+0x516>
  15515. 8007028: 687b ldr r3, [r7, #4]
  15516. 800702a: 681b ldr r3, [r3, #0]
  15517. 800702c: 4a6e ldr r2, [pc, #440] @ (80071e8 <HAL_DMA_IRQHandler+0x6cc>)
  15518. 800702e: 4293 cmp r3, r2
  15519. 8007030: d10a bne.n 8007048 <HAL_DMA_IRQHandler+0x52c>
  15520. 8007032: 687b ldr r3, [r7, #4]
  15521. 8007034: 681b ldr r3, [r3, #0]
  15522. 8007036: 681b ldr r3, [r3, #0]
  15523. 8007038: f003 0308 and.w r3, r3, #8
  15524. 800703c: 2b00 cmp r3, #0
  15525. 800703e: bf14 ite ne
  15526. 8007040: 2301 movne r3, #1
  15527. 8007042: 2300 moveq r3, #0
  15528. 8007044: b2db uxtb r3, r3
  15529. 8007046: e009 b.n 800705c <HAL_DMA_IRQHandler+0x540>
  15530. 8007048: 687b ldr r3, [r7, #4]
  15531. 800704a: 681b ldr r3, [r3, #0]
  15532. 800704c: 681b ldr r3, [r3, #0]
  15533. 800704e: f003 0304 and.w r3, r3, #4
  15534. 8007052: 2b00 cmp r3, #0
  15535. 8007054: bf14 ite ne
  15536. 8007056: 2301 movne r3, #1
  15537. 8007058: 2300 moveq r3, #0
  15538. 800705a: b2db uxtb r3, r3
  15539. 800705c: 2b00 cmp r3, #0
  15540. 800705e: d03e beq.n 80070de <HAL_DMA_IRQHandler+0x5c2>
  15541. {
  15542. /* Clear the half transfer complete flag */
  15543. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  15544. 8007060: 687b ldr r3, [r7, #4]
  15545. 8007062: 6ddb ldr r3, [r3, #92] @ 0x5c
  15546. 8007064: f003 031f and.w r3, r3, #31
  15547. 8007068: 2210 movs r2, #16
  15548. 800706a: 409a lsls r2, r3
  15549. 800706c: 6a3b ldr r3, [r7, #32]
  15550. 800706e: 609a str r2, [r3, #8]
  15551. /* Multi_Buffering mode enabled */
  15552. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  15553. 8007070: 687b ldr r3, [r7, #4]
  15554. 8007072: 681b ldr r3, [r3, #0]
  15555. 8007074: 681b ldr r3, [r3, #0]
  15556. 8007076: f403 2380 and.w r3, r3, #262144 @ 0x40000
  15557. 800707a: 2b00 cmp r3, #0
  15558. 800707c: d018 beq.n 80070b0 <HAL_DMA_IRQHandler+0x594>
  15559. {
  15560. /* Current memory buffer used is Memory 0 */
  15561. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  15562. 800707e: 687b ldr r3, [r7, #4]
  15563. 8007080: 681b ldr r3, [r3, #0]
  15564. 8007082: 681b ldr r3, [r3, #0]
  15565. 8007084: f403 2300 and.w r3, r3, #524288 @ 0x80000
  15566. 8007088: 2b00 cmp r3, #0
  15567. 800708a: d108 bne.n 800709e <HAL_DMA_IRQHandler+0x582>
  15568. {
  15569. if(hdma->XferHalfCpltCallback != NULL)
  15570. 800708c: 687b ldr r3, [r7, #4]
  15571. 800708e: 6c1b ldr r3, [r3, #64] @ 0x40
  15572. 8007090: 2b00 cmp r3, #0
  15573. 8007092: d024 beq.n 80070de <HAL_DMA_IRQHandler+0x5c2>
  15574. {
  15575. /* Half transfer callback */
  15576. hdma->XferHalfCpltCallback(hdma);
  15577. 8007094: 687b ldr r3, [r7, #4]
  15578. 8007096: 6c1b ldr r3, [r3, #64] @ 0x40
  15579. 8007098: 6878 ldr r0, [r7, #4]
  15580. 800709a: 4798 blx r3
  15581. 800709c: e01f b.n 80070de <HAL_DMA_IRQHandler+0x5c2>
  15582. }
  15583. }
  15584. /* Current memory buffer used is Memory 1 */
  15585. else
  15586. {
  15587. if(hdma->XferM1HalfCpltCallback != NULL)
  15588. 800709e: 687b ldr r3, [r7, #4]
  15589. 80070a0: 6c9b ldr r3, [r3, #72] @ 0x48
  15590. 80070a2: 2b00 cmp r3, #0
  15591. 80070a4: d01b beq.n 80070de <HAL_DMA_IRQHandler+0x5c2>
  15592. {
  15593. /* Half transfer callback */
  15594. hdma->XferM1HalfCpltCallback(hdma);
  15595. 80070a6: 687b ldr r3, [r7, #4]
  15596. 80070a8: 6c9b ldr r3, [r3, #72] @ 0x48
  15597. 80070aa: 6878 ldr r0, [r7, #4]
  15598. 80070ac: 4798 blx r3
  15599. 80070ae: e016 b.n 80070de <HAL_DMA_IRQHandler+0x5c2>
  15600. }
  15601. }
  15602. else
  15603. {
  15604. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  15605. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  15606. 80070b0: 687b ldr r3, [r7, #4]
  15607. 80070b2: 681b ldr r3, [r3, #0]
  15608. 80070b4: 681b ldr r3, [r3, #0]
  15609. 80070b6: f403 7380 and.w r3, r3, #256 @ 0x100
  15610. 80070ba: 2b00 cmp r3, #0
  15611. 80070bc: d107 bne.n 80070ce <HAL_DMA_IRQHandler+0x5b2>
  15612. {
  15613. /* Disable the half transfer interrupt */
  15614. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  15615. 80070be: 687b ldr r3, [r7, #4]
  15616. 80070c0: 681b ldr r3, [r3, #0]
  15617. 80070c2: 681a ldr r2, [r3, #0]
  15618. 80070c4: 687b ldr r3, [r7, #4]
  15619. 80070c6: 681b ldr r3, [r3, #0]
  15620. 80070c8: f022 0208 bic.w r2, r2, #8
  15621. 80070cc: 601a str r2, [r3, #0]
  15622. }
  15623. if(hdma->XferHalfCpltCallback != NULL)
  15624. 80070ce: 687b ldr r3, [r7, #4]
  15625. 80070d0: 6c1b ldr r3, [r3, #64] @ 0x40
  15626. 80070d2: 2b00 cmp r3, #0
  15627. 80070d4: d003 beq.n 80070de <HAL_DMA_IRQHandler+0x5c2>
  15628. {
  15629. /* Half transfer callback */
  15630. hdma->XferHalfCpltCallback(hdma);
  15631. 80070d6: 687b ldr r3, [r7, #4]
  15632. 80070d8: 6c1b ldr r3, [r3, #64] @ 0x40
  15633. 80070da: 6878 ldr r0, [r7, #4]
  15634. 80070dc: 4798 blx r3
  15635. }
  15636. }
  15637. }
  15638. }
  15639. /* Transfer Complete Interrupt management ***********************************/
  15640. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  15641. 80070de: 687b ldr r3, [r7, #4]
  15642. 80070e0: 6ddb ldr r3, [r3, #92] @ 0x5c
  15643. 80070e2: f003 031f and.w r3, r3, #31
  15644. 80070e6: 2220 movs r2, #32
  15645. 80070e8: 409a lsls r2, r3
  15646. 80070ea: 69bb ldr r3, [r7, #24]
  15647. 80070ec: 4013 ands r3, r2
  15648. 80070ee: 2b00 cmp r3, #0
  15649. 80070f0: f000 8110 beq.w 8007314 <HAL_DMA_IRQHandler+0x7f8>
  15650. {
  15651. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  15652. 80070f4: 687b ldr r3, [r7, #4]
  15653. 80070f6: 681b ldr r3, [r3, #0]
  15654. 80070f8: 4a2c ldr r2, [pc, #176] @ (80071ac <HAL_DMA_IRQHandler+0x690>)
  15655. 80070fa: 4293 cmp r3, r2
  15656. 80070fc: d04a beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15657. 80070fe: 687b ldr r3, [r7, #4]
  15658. 8007100: 681b ldr r3, [r3, #0]
  15659. 8007102: 4a2b ldr r2, [pc, #172] @ (80071b0 <HAL_DMA_IRQHandler+0x694>)
  15660. 8007104: 4293 cmp r3, r2
  15661. 8007106: d045 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15662. 8007108: 687b ldr r3, [r7, #4]
  15663. 800710a: 681b ldr r3, [r3, #0]
  15664. 800710c: 4a29 ldr r2, [pc, #164] @ (80071b4 <HAL_DMA_IRQHandler+0x698>)
  15665. 800710e: 4293 cmp r3, r2
  15666. 8007110: d040 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15667. 8007112: 687b ldr r3, [r7, #4]
  15668. 8007114: 681b ldr r3, [r3, #0]
  15669. 8007116: 4a28 ldr r2, [pc, #160] @ (80071b8 <HAL_DMA_IRQHandler+0x69c>)
  15670. 8007118: 4293 cmp r3, r2
  15671. 800711a: d03b beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15672. 800711c: 687b ldr r3, [r7, #4]
  15673. 800711e: 681b ldr r3, [r3, #0]
  15674. 8007120: 4a26 ldr r2, [pc, #152] @ (80071bc <HAL_DMA_IRQHandler+0x6a0>)
  15675. 8007122: 4293 cmp r3, r2
  15676. 8007124: d036 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15677. 8007126: 687b ldr r3, [r7, #4]
  15678. 8007128: 681b ldr r3, [r3, #0]
  15679. 800712a: 4a25 ldr r2, [pc, #148] @ (80071c0 <HAL_DMA_IRQHandler+0x6a4>)
  15680. 800712c: 4293 cmp r3, r2
  15681. 800712e: d031 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15682. 8007130: 687b ldr r3, [r7, #4]
  15683. 8007132: 681b ldr r3, [r3, #0]
  15684. 8007134: 4a23 ldr r2, [pc, #140] @ (80071c4 <HAL_DMA_IRQHandler+0x6a8>)
  15685. 8007136: 4293 cmp r3, r2
  15686. 8007138: d02c beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15687. 800713a: 687b ldr r3, [r7, #4]
  15688. 800713c: 681b ldr r3, [r3, #0]
  15689. 800713e: 4a22 ldr r2, [pc, #136] @ (80071c8 <HAL_DMA_IRQHandler+0x6ac>)
  15690. 8007140: 4293 cmp r3, r2
  15691. 8007142: d027 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15692. 8007144: 687b ldr r3, [r7, #4]
  15693. 8007146: 681b ldr r3, [r3, #0]
  15694. 8007148: 4a20 ldr r2, [pc, #128] @ (80071cc <HAL_DMA_IRQHandler+0x6b0>)
  15695. 800714a: 4293 cmp r3, r2
  15696. 800714c: d022 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15697. 800714e: 687b ldr r3, [r7, #4]
  15698. 8007150: 681b ldr r3, [r3, #0]
  15699. 8007152: 4a1f ldr r2, [pc, #124] @ (80071d0 <HAL_DMA_IRQHandler+0x6b4>)
  15700. 8007154: 4293 cmp r3, r2
  15701. 8007156: d01d beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15702. 8007158: 687b ldr r3, [r7, #4]
  15703. 800715a: 681b ldr r3, [r3, #0]
  15704. 800715c: 4a1d ldr r2, [pc, #116] @ (80071d4 <HAL_DMA_IRQHandler+0x6b8>)
  15705. 800715e: 4293 cmp r3, r2
  15706. 8007160: d018 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15707. 8007162: 687b ldr r3, [r7, #4]
  15708. 8007164: 681b ldr r3, [r3, #0]
  15709. 8007166: 4a1c ldr r2, [pc, #112] @ (80071d8 <HAL_DMA_IRQHandler+0x6bc>)
  15710. 8007168: 4293 cmp r3, r2
  15711. 800716a: d013 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15712. 800716c: 687b ldr r3, [r7, #4]
  15713. 800716e: 681b ldr r3, [r3, #0]
  15714. 8007170: 4a1a ldr r2, [pc, #104] @ (80071dc <HAL_DMA_IRQHandler+0x6c0>)
  15715. 8007172: 4293 cmp r3, r2
  15716. 8007174: d00e beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15717. 8007176: 687b ldr r3, [r7, #4]
  15718. 8007178: 681b ldr r3, [r3, #0]
  15719. 800717a: 4a19 ldr r2, [pc, #100] @ (80071e0 <HAL_DMA_IRQHandler+0x6c4>)
  15720. 800717c: 4293 cmp r3, r2
  15721. 800717e: d009 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15722. 8007180: 687b ldr r3, [r7, #4]
  15723. 8007182: 681b ldr r3, [r3, #0]
  15724. 8007184: 4a17 ldr r2, [pc, #92] @ (80071e4 <HAL_DMA_IRQHandler+0x6c8>)
  15725. 8007186: 4293 cmp r3, r2
  15726. 8007188: d004 beq.n 8007194 <HAL_DMA_IRQHandler+0x678>
  15727. 800718a: 687b ldr r3, [r7, #4]
  15728. 800718c: 681b ldr r3, [r3, #0]
  15729. 800718e: 4a16 ldr r2, [pc, #88] @ (80071e8 <HAL_DMA_IRQHandler+0x6cc>)
  15730. 8007190: 4293 cmp r3, r2
  15731. 8007192: d12b bne.n 80071ec <HAL_DMA_IRQHandler+0x6d0>
  15732. 8007194: 687b ldr r3, [r7, #4]
  15733. 8007196: 681b ldr r3, [r3, #0]
  15734. 8007198: 681b ldr r3, [r3, #0]
  15735. 800719a: f003 0310 and.w r3, r3, #16
  15736. 800719e: 2b00 cmp r3, #0
  15737. 80071a0: bf14 ite ne
  15738. 80071a2: 2301 movne r3, #1
  15739. 80071a4: 2300 moveq r3, #0
  15740. 80071a6: b2db uxtb r3, r3
  15741. 80071a8: e02a b.n 8007200 <HAL_DMA_IRQHandler+0x6e4>
  15742. 80071aa: bf00 nop
  15743. 80071ac: 40020010 .word 0x40020010
  15744. 80071b0: 40020028 .word 0x40020028
  15745. 80071b4: 40020040 .word 0x40020040
  15746. 80071b8: 40020058 .word 0x40020058
  15747. 80071bc: 40020070 .word 0x40020070
  15748. 80071c0: 40020088 .word 0x40020088
  15749. 80071c4: 400200a0 .word 0x400200a0
  15750. 80071c8: 400200b8 .word 0x400200b8
  15751. 80071cc: 40020410 .word 0x40020410
  15752. 80071d0: 40020428 .word 0x40020428
  15753. 80071d4: 40020440 .word 0x40020440
  15754. 80071d8: 40020458 .word 0x40020458
  15755. 80071dc: 40020470 .word 0x40020470
  15756. 80071e0: 40020488 .word 0x40020488
  15757. 80071e4: 400204a0 .word 0x400204a0
  15758. 80071e8: 400204b8 .word 0x400204b8
  15759. 80071ec: 687b ldr r3, [r7, #4]
  15760. 80071ee: 681b ldr r3, [r3, #0]
  15761. 80071f0: 681b ldr r3, [r3, #0]
  15762. 80071f2: f003 0302 and.w r3, r3, #2
  15763. 80071f6: 2b00 cmp r3, #0
  15764. 80071f8: bf14 ite ne
  15765. 80071fa: 2301 movne r3, #1
  15766. 80071fc: 2300 moveq r3, #0
  15767. 80071fe: b2db uxtb r3, r3
  15768. 8007200: 2b00 cmp r3, #0
  15769. 8007202: f000 8087 beq.w 8007314 <HAL_DMA_IRQHandler+0x7f8>
  15770. {
  15771. /* Clear the transfer complete flag */
  15772. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  15773. 8007206: 687b ldr r3, [r7, #4]
  15774. 8007208: 6ddb ldr r3, [r3, #92] @ 0x5c
  15775. 800720a: f003 031f and.w r3, r3, #31
  15776. 800720e: 2220 movs r2, #32
  15777. 8007210: 409a lsls r2, r3
  15778. 8007212: 6a3b ldr r3, [r7, #32]
  15779. 8007214: 609a str r2, [r3, #8]
  15780. if(HAL_DMA_STATE_ABORT == hdma->State)
  15781. 8007216: 687b ldr r3, [r7, #4]
  15782. 8007218: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  15783. 800721c: b2db uxtb r3, r3
  15784. 800721e: 2b04 cmp r3, #4
  15785. 8007220: d139 bne.n 8007296 <HAL_DMA_IRQHandler+0x77a>
  15786. {
  15787. /* Disable all the transfer interrupts */
  15788. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  15789. 8007222: 687b ldr r3, [r7, #4]
  15790. 8007224: 681b ldr r3, [r3, #0]
  15791. 8007226: 681a ldr r2, [r3, #0]
  15792. 8007228: 687b ldr r3, [r7, #4]
  15793. 800722a: 681b ldr r3, [r3, #0]
  15794. 800722c: f022 0216 bic.w r2, r2, #22
  15795. 8007230: 601a str r2, [r3, #0]
  15796. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  15797. 8007232: 687b ldr r3, [r7, #4]
  15798. 8007234: 681b ldr r3, [r3, #0]
  15799. 8007236: 695a ldr r2, [r3, #20]
  15800. 8007238: 687b ldr r3, [r7, #4]
  15801. 800723a: 681b ldr r3, [r3, #0]
  15802. 800723c: f022 0280 bic.w r2, r2, #128 @ 0x80
  15803. 8007240: 615a str r2, [r3, #20]
  15804. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  15805. 8007242: 687b ldr r3, [r7, #4]
  15806. 8007244: 6c1b ldr r3, [r3, #64] @ 0x40
  15807. 8007246: 2b00 cmp r3, #0
  15808. 8007248: d103 bne.n 8007252 <HAL_DMA_IRQHandler+0x736>
  15809. 800724a: 687b ldr r3, [r7, #4]
  15810. 800724c: 6c9b ldr r3, [r3, #72] @ 0x48
  15811. 800724e: 2b00 cmp r3, #0
  15812. 8007250: d007 beq.n 8007262 <HAL_DMA_IRQHandler+0x746>
  15813. {
  15814. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  15815. 8007252: 687b ldr r3, [r7, #4]
  15816. 8007254: 681b ldr r3, [r3, #0]
  15817. 8007256: 681a ldr r2, [r3, #0]
  15818. 8007258: 687b ldr r3, [r7, #4]
  15819. 800725a: 681b ldr r3, [r3, #0]
  15820. 800725c: f022 0208 bic.w r2, r2, #8
  15821. 8007260: 601a str r2, [r3, #0]
  15822. }
  15823. /* Clear all interrupt flags at correct offset within the register */
  15824. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  15825. 8007262: 687b ldr r3, [r7, #4]
  15826. 8007264: 6ddb ldr r3, [r3, #92] @ 0x5c
  15827. 8007266: f003 031f and.w r3, r3, #31
  15828. 800726a: 223f movs r2, #63 @ 0x3f
  15829. 800726c: 409a lsls r2, r3
  15830. 800726e: 6a3b ldr r3, [r7, #32]
  15831. 8007270: 609a str r2, [r3, #8]
  15832. /* Change the DMA state */
  15833. hdma->State = HAL_DMA_STATE_READY;
  15834. 8007272: 687b ldr r3, [r7, #4]
  15835. 8007274: 2201 movs r2, #1
  15836. 8007276: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15837. /* Process Unlocked */
  15838. __HAL_UNLOCK(hdma);
  15839. 800727a: 687b ldr r3, [r7, #4]
  15840. 800727c: 2200 movs r2, #0
  15841. 800727e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15842. if(hdma->XferAbortCallback != NULL)
  15843. 8007282: 687b ldr r3, [r7, #4]
  15844. 8007284: 6d1b ldr r3, [r3, #80] @ 0x50
  15845. 8007286: 2b00 cmp r3, #0
  15846. 8007288: f000 834a beq.w 8007920 <HAL_DMA_IRQHandler+0xe04>
  15847. {
  15848. hdma->XferAbortCallback(hdma);
  15849. 800728c: 687b ldr r3, [r7, #4]
  15850. 800728e: 6d1b ldr r3, [r3, #80] @ 0x50
  15851. 8007290: 6878 ldr r0, [r7, #4]
  15852. 8007292: 4798 blx r3
  15853. }
  15854. return;
  15855. 8007294: e344 b.n 8007920 <HAL_DMA_IRQHandler+0xe04>
  15856. }
  15857. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  15858. 8007296: 687b ldr r3, [r7, #4]
  15859. 8007298: 681b ldr r3, [r3, #0]
  15860. 800729a: 681b ldr r3, [r3, #0]
  15861. 800729c: f403 2380 and.w r3, r3, #262144 @ 0x40000
  15862. 80072a0: 2b00 cmp r3, #0
  15863. 80072a2: d018 beq.n 80072d6 <HAL_DMA_IRQHandler+0x7ba>
  15864. {
  15865. /* Current memory buffer used is Memory 0 */
  15866. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  15867. 80072a4: 687b ldr r3, [r7, #4]
  15868. 80072a6: 681b ldr r3, [r3, #0]
  15869. 80072a8: 681b ldr r3, [r3, #0]
  15870. 80072aa: f403 2300 and.w r3, r3, #524288 @ 0x80000
  15871. 80072ae: 2b00 cmp r3, #0
  15872. 80072b0: d108 bne.n 80072c4 <HAL_DMA_IRQHandler+0x7a8>
  15873. {
  15874. if(hdma->XferM1CpltCallback != NULL)
  15875. 80072b2: 687b ldr r3, [r7, #4]
  15876. 80072b4: 6c5b ldr r3, [r3, #68] @ 0x44
  15877. 80072b6: 2b00 cmp r3, #0
  15878. 80072b8: d02c beq.n 8007314 <HAL_DMA_IRQHandler+0x7f8>
  15879. {
  15880. /* Transfer complete Callback for memory1 */
  15881. hdma->XferM1CpltCallback(hdma);
  15882. 80072ba: 687b ldr r3, [r7, #4]
  15883. 80072bc: 6c5b ldr r3, [r3, #68] @ 0x44
  15884. 80072be: 6878 ldr r0, [r7, #4]
  15885. 80072c0: 4798 blx r3
  15886. 80072c2: e027 b.n 8007314 <HAL_DMA_IRQHandler+0x7f8>
  15887. }
  15888. }
  15889. /* Current memory buffer used is Memory 1 */
  15890. else
  15891. {
  15892. if(hdma->XferCpltCallback != NULL)
  15893. 80072c4: 687b ldr r3, [r7, #4]
  15894. 80072c6: 6bdb ldr r3, [r3, #60] @ 0x3c
  15895. 80072c8: 2b00 cmp r3, #0
  15896. 80072ca: d023 beq.n 8007314 <HAL_DMA_IRQHandler+0x7f8>
  15897. {
  15898. /* Transfer complete Callback for memory0 */
  15899. hdma->XferCpltCallback(hdma);
  15900. 80072cc: 687b ldr r3, [r7, #4]
  15901. 80072ce: 6bdb ldr r3, [r3, #60] @ 0x3c
  15902. 80072d0: 6878 ldr r0, [r7, #4]
  15903. 80072d2: 4798 blx r3
  15904. 80072d4: e01e b.n 8007314 <HAL_DMA_IRQHandler+0x7f8>
  15905. }
  15906. }
  15907. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  15908. else
  15909. {
  15910. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  15911. 80072d6: 687b ldr r3, [r7, #4]
  15912. 80072d8: 681b ldr r3, [r3, #0]
  15913. 80072da: 681b ldr r3, [r3, #0]
  15914. 80072dc: f403 7380 and.w r3, r3, #256 @ 0x100
  15915. 80072e0: 2b00 cmp r3, #0
  15916. 80072e2: d10f bne.n 8007304 <HAL_DMA_IRQHandler+0x7e8>
  15917. {
  15918. /* Disable the transfer complete interrupt */
  15919. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  15920. 80072e4: 687b ldr r3, [r7, #4]
  15921. 80072e6: 681b ldr r3, [r3, #0]
  15922. 80072e8: 681a ldr r2, [r3, #0]
  15923. 80072ea: 687b ldr r3, [r7, #4]
  15924. 80072ec: 681b ldr r3, [r3, #0]
  15925. 80072ee: f022 0210 bic.w r2, r2, #16
  15926. 80072f2: 601a str r2, [r3, #0]
  15927. /* Change the DMA state */
  15928. hdma->State = HAL_DMA_STATE_READY;
  15929. 80072f4: 687b ldr r3, [r7, #4]
  15930. 80072f6: 2201 movs r2, #1
  15931. 80072f8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15932. /* Process Unlocked */
  15933. __HAL_UNLOCK(hdma);
  15934. 80072fc: 687b ldr r3, [r7, #4]
  15935. 80072fe: 2200 movs r2, #0
  15936. 8007300: f883 2034 strb.w r2, [r3, #52] @ 0x34
  15937. }
  15938. if(hdma->XferCpltCallback != NULL)
  15939. 8007304: 687b ldr r3, [r7, #4]
  15940. 8007306: 6bdb ldr r3, [r3, #60] @ 0x3c
  15941. 8007308: 2b00 cmp r3, #0
  15942. 800730a: d003 beq.n 8007314 <HAL_DMA_IRQHandler+0x7f8>
  15943. {
  15944. /* Transfer complete callback */
  15945. hdma->XferCpltCallback(hdma);
  15946. 800730c: 687b ldr r3, [r7, #4]
  15947. 800730e: 6bdb ldr r3, [r3, #60] @ 0x3c
  15948. 8007310: 6878 ldr r0, [r7, #4]
  15949. 8007312: 4798 blx r3
  15950. }
  15951. }
  15952. }
  15953. /* manage error case */
  15954. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  15955. 8007314: 687b ldr r3, [r7, #4]
  15956. 8007316: 6d5b ldr r3, [r3, #84] @ 0x54
  15957. 8007318: 2b00 cmp r3, #0
  15958. 800731a: f000 8306 beq.w 800792a <HAL_DMA_IRQHandler+0xe0e>
  15959. {
  15960. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  15961. 800731e: 687b ldr r3, [r7, #4]
  15962. 8007320: 6d5b ldr r3, [r3, #84] @ 0x54
  15963. 8007322: f003 0301 and.w r3, r3, #1
  15964. 8007326: 2b00 cmp r3, #0
  15965. 8007328: f000 8088 beq.w 800743c <HAL_DMA_IRQHandler+0x920>
  15966. {
  15967. hdma->State = HAL_DMA_STATE_ABORT;
  15968. 800732c: 687b ldr r3, [r7, #4]
  15969. 800732e: 2204 movs r2, #4
  15970. 8007330: f883 2035 strb.w r2, [r3, #53] @ 0x35
  15971. /* Disable the stream */
  15972. __HAL_DMA_DISABLE(hdma);
  15973. 8007334: 687b ldr r3, [r7, #4]
  15974. 8007336: 681b ldr r3, [r3, #0]
  15975. 8007338: 4a7a ldr r2, [pc, #488] @ (8007524 <HAL_DMA_IRQHandler+0xa08>)
  15976. 800733a: 4293 cmp r3, r2
  15977. 800733c: d04a beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  15978. 800733e: 687b ldr r3, [r7, #4]
  15979. 8007340: 681b ldr r3, [r3, #0]
  15980. 8007342: 4a79 ldr r2, [pc, #484] @ (8007528 <HAL_DMA_IRQHandler+0xa0c>)
  15981. 8007344: 4293 cmp r3, r2
  15982. 8007346: d045 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  15983. 8007348: 687b ldr r3, [r7, #4]
  15984. 800734a: 681b ldr r3, [r3, #0]
  15985. 800734c: 4a77 ldr r2, [pc, #476] @ (800752c <HAL_DMA_IRQHandler+0xa10>)
  15986. 800734e: 4293 cmp r3, r2
  15987. 8007350: d040 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  15988. 8007352: 687b ldr r3, [r7, #4]
  15989. 8007354: 681b ldr r3, [r3, #0]
  15990. 8007356: 4a76 ldr r2, [pc, #472] @ (8007530 <HAL_DMA_IRQHandler+0xa14>)
  15991. 8007358: 4293 cmp r3, r2
  15992. 800735a: d03b beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  15993. 800735c: 687b ldr r3, [r7, #4]
  15994. 800735e: 681b ldr r3, [r3, #0]
  15995. 8007360: 4a74 ldr r2, [pc, #464] @ (8007534 <HAL_DMA_IRQHandler+0xa18>)
  15996. 8007362: 4293 cmp r3, r2
  15997. 8007364: d036 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  15998. 8007366: 687b ldr r3, [r7, #4]
  15999. 8007368: 681b ldr r3, [r3, #0]
  16000. 800736a: 4a73 ldr r2, [pc, #460] @ (8007538 <HAL_DMA_IRQHandler+0xa1c>)
  16001. 800736c: 4293 cmp r3, r2
  16002. 800736e: d031 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16003. 8007370: 687b ldr r3, [r7, #4]
  16004. 8007372: 681b ldr r3, [r3, #0]
  16005. 8007374: 4a71 ldr r2, [pc, #452] @ (800753c <HAL_DMA_IRQHandler+0xa20>)
  16006. 8007376: 4293 cmp r3, r2
  16007. 8007378: d02c beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16008. 800737a: 687b ldr r3, [r7, #4]
  16009. 800737c: 681b ldr r3, [r3, #0]
  16010. 800737e: 4a70 ldr r2, [pc, #448] @ (8007540 <HAL_DMA_IRQHandler+0xa24>)
  16011. 8007380: 4293 cmp r3, r2
  16012. 8007382: d027 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16013. 8007384: 687b ldr r3, [r7, #4]
  16014. 8007386: 681b ldr r3, [r3, #0]
  16015. 8007388: 4a6e ldr r2, [pc, #440] @ (8007544 <HAL_DMA_IRQHandler+0xa28>)
  16016. 800738a: 4293 cmp r3, r2
  16017. 800738c: d022 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16018. 800738e: 687b ldr r3, [r7, #4]
  16019. 8007390: 681b ldr r3, [r3, #0]
  16020. 8007392: 4a6d ldr r2, [pc, #436] @ (8007548 <HAL_DMA_IRQHandler+0xa2c>)
  16021. 8007394: 4293 cmp r3, r2
  16022. 8007396: d01d beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16023. 8007398: 687b ldr r3, [r7, #4]
  16024. 800739a: 681b ldr r3, [r3, #0]
  16025. 800739c: 4a6b ldr r2, [pc, #428] @ (800754c <HAL_DMA_IRQHandler+0xa30>)
  16026. 800739e: 4293 cmp r3, r2
  16027. 80073a0: d018 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16028. 80073a2: 687b ldr r3, [r7, #4]
  16029. 80073a4: 681b ldr r3, [r3, #0]
  16030. 80073a6: 4a6a ldr r2, [pc, #424] @ (8007550 <HAL_DMA_IRQHandler+0xa34>)
  16031. 80073a8: 4293 cmp r3, r2
  16032. 80073aa: d013 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16033. 80073ac: 687b ldr r3, [r7, #4]
  16034. 80073ae: 681b ldr r3, [r3, #0]
  16035. 80073b0: 4a68 ldr r2, [pc, #416] @ (8007554 <HAL_DMA_IRQHandler+0xa38>)
  16036. 80073b2: 4293 cmp r3, r2
  16037. 80073b4: d00e beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16038. 80073b6: 687b ldr r3, [r7, #4]
  16039. 80073b8: 681b ldr r3, [r3, #0]
  16040. 80073ba: 4a67 ldr r2, [pc, #412] @ (8007558 <HAL_DMA_IRQHandler+0xa3c>)
  16041. 80073bc: 4293 cmp r3, r2
  16042. 80073be: d009 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16043. 80073c0: 687b ldr r3, [r7, #4]
  16044. 80073c2: 681b ldr r3, [r3, #0]
  16045. 80073c4: 4a65 ldr r2, [pc, #404] @ (800755c <HAL_DMA_IRQHandler+0xa40>)
  16046. 80073c6: 4293 cmp r3, r2
  16047. 80073c8: d004 beq.n 80073d4 <HAL_DMA_IRQHandler+0x8b8>
  16048. 80073ca: 687b ldr r3, [r7, #4]
  16049. 80073cc: 681b ldr r3, [r3, #0]
  16050. 80073ce: 4a64 ldr r2, [pc, #400] @ (8007560 <HAL_DMA_IRQHandler+0xa44>)
  16051. 80073d0: 4293 cmp r3, r2
  16052. 80073d2: d108 bne.n 80073e6 <HAL_DMA_IRQHandler+0x8ca>
  16053. 80073d4: 687b ldr r3, [r7, #4]
  16054. 80073d6: 681b ldr r3, [r3, #0]
  16055. 80073d8: 681a ldr r2, [r3, #0]
  16056. 80073da: 687b ldr r3, [r7, #4]
  16057. 80073dc: 681b ldr r3, [r3, #0]
  16058. 80073de: f022 0201 bic.w r2, r2, #1
  16059. 80073e2: 601a str r2, [r3, #0]
  16060. 80073e4: e007 b.n 80073f6 <HAL_DMA_IRQHandler+0x8da>
  16061. 80073e6: 687b ldr r3, [r7, #4]
  16062. 80073e8: 681b ldr r3, [r3, #0]
  16063. 80073ea: 681a ldr r2, [r3, #0]
  16064. 80073ec: 687b ldr r3, [r7, #4]
  16065. 80073ee: 681b ldr r3, [r3, #0]
  16066. 80073f0: f022 0201 bic.w r2, r2, #1
  16067. 80073f4: 601a str r2, [r3, #0]
  16068. do
  16069. {
  16070. if (++count > timeout)
  16071. 80073f6: 68fb ldr r3, [r7, #12]
  16072. 80073f8: 3301 adds r3, #1
  16073. 80073fa: 60fb str r3, [r7, #12]
  16074. 80073fc: 6a7a ldr r2, [r7, #36] @ 0x24
  16075. 80073fe: 429a cmp r2, r3
  16076. 8007400: d307 bcc.n 8007412 <HAL_DMA_IRQHandler+0x8f6>
  16077. {
  16078. break;
  16079. }
  16080. }
  16081. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  16082. 8007402: 687b ldr r3, [r7, #4]
  16083. 8007404: 681b ldr r3, [r3, #0]
  16084. 8007406: 681b ldr r3, [r3, #0]
  16085. 8007408: f003 0301 and.w r3, r3, #1
  16086. 800740c: 2b00 cmp r3, #0
  16087. 800740e: d1f2 bne.n 80073f6 <HAL_DMA_IRQHandler+0x8da>
  16088. 8007410: e000 b.n 8007414 <HAL_DMA_IRQHandler+0x8f8>
  16089. break;
  16090. 8007412: bf00 nop
  16091. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  16092. 8007414: 687b ldr r3, [r7, #4]
  16093. 8007416: 681b ldr r3, [r3, #0]
  16094. 8007418: 681b ldr r3, [r3, #0]
  16095. 800741a: f003 0301 and.w r3, r3, #1
  16096. 800741e: 2b00 cmp r3, #0
  16097. 8007420: d004 beq.n 800742c <HAL_DMA_IRQHandler+0x910>
  16098. {
  16099. /* Change the DMA state to error if DMA disable fails */
  16100. hdma->State = HAL_DMA_STATE_ERROR;
  16101. 8007422: 687b ldr r3, [r7, #4]
  16102. 8007424: 2203 movs r2, #3
  16103. 8007426: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16104. 800742a: e003 b.n 8007434 <HAL_DMA_IRQHandler+0x918>
  16105. }
  16106. else
  16107. {
  16108. /* Change the DMA state to Ready if DMA disable success */
  16109. hdma->State = HAL_DMA_STATE_READY;
  16110. 800742c: 687b ldr r3, [r7, #4]
  16111. 800742e: 2201 movs r2, #1
  16112. 8007430: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16113. }
  16114. /* Process Unlocked */
  16115. __HAL_UNLOCK(hdma);
  16116. 8007434: 687b ldr r3, [r7, #4]
  16117. 8007436: 2200 movs r2, #0
  16118. 8007438: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16119. }
  16120. if(hdma->XferErrorCallback != NULL)
  16121. 800743c: 687b ldr r3, [r7, #4]
  16122. 800743e: 6cdb ldr r3, [r3, #76] @ 0x4c
  16123. 8007440: 2b00 cmp r3, #0
  16124. 8007442: f000 8272 beq.w 800792a <HAL_DMA_IRQHandler+0xe0e>
  16125. {
  16126. /* Transfer error callback */
  16127. hdma->XferErrorCallback(hdma);
  16128. 8007446: 687b ldr r3, [r7, #4]
  16129. 8007448: 6cdb ldr r3, [r3, #76] @ 0x4c
  16130. 800744a: 6878 ldr r0, [r7, #4]
  16131. 800744c: 4798 blx r3
  16132. 800744e: e26c b.n 800792a <HAL_DMA_IRQHandler+0xe0e>
  16133. }
  16134. }
  16135. }
  16136. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  16137. 8007450: 687b ldr r3, [r7, #4]
  16138. 8007452: 681b ldr r3, [r3, #0]
  16139. 8007454: 4a43 ldr r2, [pc, #268] @ (8007564 <HAL_DMA_IRQHandler+0xa48>)
  16140. 8007456: 4293 cmp r3, r2
  16141. 8007458: d022 beq.n 80074a0 <HAL_DMA_IRQHandler+0x984>
  16142. 800745a: 687b ldr r3, [r7, #4]
  16143. 800745c: 681b ldr r3, [r3, #0]
  16144. 800745e: 4a42 ldr r2, [pc, #264] @ (8007568 <HAL_DMA_IRQHandler+0xa4c>)
  16145. 8007460: 4293 cmp r3, r2
  16146. 8007462: d01d beq.n 80074a0 <HAL_DMA_IRQHandler+0x984>
  16147. 8007464: 687b ldr r3, [r7, #4]
  16148. 8007466: 681b ldr r3, [r3, #0]
  16149. 8007468: 4a40 ldr r2, [pc, #256] @ (800756c <HAL_DMA_IRQHandler+0xa50>)
  16150. 800746a: 4293 cmp r3, r2
  16151. 800746c: d018 beq.n 80074a0 <HAL_DMA_IRQHandler+0x984>
  16152. 800746e: 687b ldr r3, [r7, #4]
  16153. 8007470: 681b ldr r3, [r3, #0]
  16154. 8007472: 4a3f ldr r2, [pc, #252] @ (8007570 <HAL_DMA_IRQHandler+0xa54>)
  16155. 8007474: 4293 cmp r3, r2
  16156. 8007476: d013 beq.n 80074a0 <HAL_DMA_IRQHandler+0x984>
  16157. 8007478: 687b ldr r3, [r7, #4]
  16158. 800747a: 681b ldr r3, [r3, #0]
  16159. 800747c: 4a3d ldr r2, [pc, #244] @ (8007574 <HAL_DMA_IRQHandler+0xa58>)
  16160. 800747e: 4293 cmp r3, r2
  16161. 8007480: d00e beq.n 80074a0 <HAL_DMA_IRQHandler+0x984>
  16162. 8007482: 687b ldr r3, [r7, #4]
  16163. 8007484: 681b ldr r3, [r3, #0]
  16164. 8007486: 4a3c ldr r2, [pc, #240] @ (8007578 <HAL_DMA_IRQHandler+0xa5c>)
  16165. 8007488: 4293 cmp r3, r2
  16166. 800748a: d009 beq.n 80074a0 <HAL_DMA_IRQHandler+0x984>
  16167. 800748c: 687b ldr r3, [r7, #4]
  16168. 800748e: 681b ldr r3, [r3, #0]
  16169. 8007490: 4a3a ldr r2, [pc, #232] @ (800757c <HAL_DMA_IRQHandler+0xa60>)
  16170. 8007492: 4293 cmp r3, r2
  16171. 8007494: d004 beq.n 80074a0 <HAL_DMA_IRQHandler+0x984>
  16172. 8007496: 687b ldr r3, [r7, #4]
  16173. 8007498: 681b ldr r3, [r3, #0]
  16174. 800749a: 4a39 ldr r2, [pc, #228] @ (8007580 <HAL_DMA_IRQHandler+0xa64>)
  16175. 800749c: 4293 cmp r3, r2
  16176. 800749e: d101 bne.n 80074a4 <HAL_DMA_IRQHandler+0x988>
  16177. 80074a0: 2301 movs r3, #1
  16178. 80074a2: e000 b.n 80074a6 <HAL_DMA_IRQHandler+0x98a>
  16179. 80074a4: 2300 movs r3, #0
  16180. 80074a6: 2b00 cmp r3, #0
  16181. 80074a8: f000 823f beq.w 800792a <HAL_DMA_IRQHandler+0xe0e>
  16182. {
  16183. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  16184. 80074ac: 687b ldr r3, [r7, #4]
  16185. 80074ae: 681b ldr r3, [r3, #0]
  16186. 80074b0: 681b ldr r3, [r3, #0]
  16187. 80074b2: 613b str r3, [r7, #16]
  16188. /* Half Transfer Complete Interrupt management ******************************/
  16189. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  16190. 80074b4: 687b ldr r3, [r7, #4]
  16191. 80074b6: 6ddb ldr r3, [r3, #92] @ 0x5c
  16192. 80074b8: f003 031f and.w r3, r3, #31
  16193. 80074bc: 2204 movs r2, #4
  16194. 80074be: 409a lsls r2, r3
  16195. 80074c0: 697b ldr r3, [r7, #20]
  16196. 80074c2: 4013 ands r3, r2
  16197. 80074c4: 2b00 cmp r3, #0
  16198. 80074c6: f000 80cd beq.w 8007664 <HAL_DMA_IRQHandler+0xb48>
  16199. 80074ca: 693b ldr r3, [r7, #16]
  16200. 80074cc: f003 0304 and.w r3, r3, #4
  16201. 80074d0: 2b00 cmp r3, #0
  16202. 80074d2: f000 80c7 beq.w 8007664 <HAL_DMA_IRQHandler+0xb48>
  16203. {
  16204. /* Clear the half transfer complete flag */
  16205. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  16206. 80074d6: 687b ldr r3, [r7, #4]
  16207. 80074d8: 6ddb ldr r3, [r3, #92] @ 0x5c
  16208. 80074da: f003 031f and.w r3, r3, #31
  16209. 80074de: 2204 movs r2, #4
  16210. 80074e0: 409a lsls r2, r3
  16211. 80074e2: 69fb ldr r3, [r7, #28]
  16212. 80074e4: 605a str r2, [r3, #4]
  16213. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  16214. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16215. 80074e6: 693b ldr r3, [r7, #16]
  16216. 80074e8: f403 4300 and.w r3, r3, #32768 @ 0x8000
  16217. 80074ec: 2b00 cmp r3, #0
  16218. 80074ee: d049 beq.n 8007584 <HAL_DMA_IRQHandler+0xa68>
  16219. {
  16220. /* Current memory buffer used is Memory 0 */
  16221. if((ccr_reg & BDMA_CCR_CT) == 0U)
  16222. 80074f0: 693b ldr r3, [r7, #16]
  16223. 80074f2: f403 3380 and.w r3, r3, #65536 @ 0x10000
  16224. 80074f6: 2b00 cmp r3, #0
  16225. 80074f8: d109 bne.n 800750e <HAL_DMA_IRQHandler+0x9f2>
  16226. {
  16227. if(hdma->XferM1HalfCpltCallback != NULL)
  16228. 80074fa: 687b ldr r3, [r7, #4]
  16229. 80074fc: 6c9b ldr r3, [r3, #72] @ 0x48
  16230. 80074fe: 2b00 cmp r3, #0
  16231. 8007500: f000 8210 beq.w 8007924 <HAL_DMA_IRQHandler+0xe08>
  16232. {
  16233. /* Half transfer Callback for Memory 1 */
  16234. hdma->XferM1HalfCpltCallback(hdma);
  16235. 8007504: 687b ldr r3, [r7, #4]
  16236. 8007506: 6c9b ldr r3, [r3, #72] @ 0x48
  16237. 8007508: 6878 ldr r0, [r7, #4]
  16238. 800750a: 4798 blx r3
  16239. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16240. 800750c: e20a b.n 8007924 <HAL_DMA_IRQHandler+0xe08>
  16241. }
  16242. }
  16243. /* Current memory buffer used is Memory 1 */
  16244. else
  16245. {
  16246. if(hdma->XferHalfCpltCallback != NULL)
  16247. 800750e: 687b ldr r3, [r7, #4]
  16248. 8007510: 6c1b ldr r3, [r3, #64] @ 0x40
  16249. 8007512: 2b00 cmp r3, #0
  16250. 8007514: f000 8206 beq.w 8007924 <HAL_DMA_IRQHandler+0xe08>
  16251. {
  16252. /* Half transfer Callback for Memory 0 */
  16253. hdma->XferHalfCpltCallback(hdma);
  16254. 8007518: 687b ldr r3, [r7, #4]
  16255. 800751a: 6c1b ldr r3, [r3, #64] @ 0x40
  16256. 800751c: 6878 ldr r0, [r7, #4]
  16257. 800751e: 4798 blx r3
  16258. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16259. 8007520: e200 b.n 8007924 <HAL_DMA_IRQHandler+0xe08>
  16260. 8007522: bf00 nop
  16261. 8007524: 40020010 .word 0x40020010
  16262. 8007528: 40020028 .word 0x40020028
  16263. 800752c: 40020040 .word 0x40020040
  16264. 8007530: 40020058 .word 0x40020058
  16265. 8007534: 40020070 .word 0x40020070
  16266. 8007538: 40020088 .word 0x40020088
  16267. 800753c: 400200a0 .word 0x400200a0
  16268. 8007540: 400200b8 .word 0x400200b8
  16269. 8007544: 40020410 .word 0x40020410
  16270. 8007548: 40020428 .word 0x40020428
  16271. 800754c: 40020440 .word 0x40020440
  16272. 8007550: 40020458 .word 0x40020458
  16273. 8007554: 40020470 .word 0x40020470
  16274. 8007558: 40020488 .word 0x40020488
  16275. 800755c: 400204a0 .word 0x400204a0
  16276. 8007560: 400204b8 .word 0x400204b8
  16277. 8007564: 58025408 .word 0x58025408
  16278. 8007568: 5802541c .word 0x5802541c
  16279. 800756c: 58025430 .word 0x58025430
  16280. 8007570: 58025444 .word 0x58025444
  16281. 8007574: 58025458 .word 0x58025458
  16282. 8007578: 5802546c .word 0x5802546c
  16283. 800757c: 58025480 .word 0x58025480
  16284. 8007580: 58025494 .word 0x58025494
  16285. }
  16286. }
  16287. }
  16288. else
  16289. {
  16290. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  16291. 8007584: 693b ldr r3, [r7, #16]
  16292. 8007586: f003 0320 and.w r3, r3, #32
  16293. 800758a: 2b00 cmp r3, #0
  16294. 800758c: d160 bne.n 8007650 <HAL_DMA_IRQHandler+0xb34>
  16295. {
  16296. /* Disable the half transfer interrupt */
  16297. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  16298. 800758e: 687b ldr r3, [r7, #4]
  16299. 8007590: 681b ldr r3, [r3, #0]
  16300. 8007592: 4a7f ldr r2, [pc, #508] @ (8007790 <HAL_DMA_IRQHandler+0xc74>)
  16301. 8007594: 4293 cmp r3, r2
  16302. 8007596: d04a beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16303. 8007598: 687b ldr r3, [r7, #4]
  16304. 800759a: 681b ldr r3, [r3, #0]
  16305. 800759c: 4a7d ldr r2, [pc, #500] @ (8007794 <HAL_DMA_IRQHandler+0xc78>)
  16306. 800759e: 4293 cmp r3, r2
  16307. 80075a0: d045 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16308. 80075a2: 687b ldr r3, [r7, #4]
  16309. 80075a4: 681b ldr r3, [r3, #0]
  16310. 80075a6: 4a7c ldr r2, [pc, #496] @ (8007798 <HAL_DMA_IRQHandler+0xc7c>)
  16311. 80075a8: 4293 cmp r3, r2
  16312. 80075aa: d040 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16313. 80075ac: 687b ldr r3, [r7, #4]
  16314. 80075ae: 681b ldr r3, [r3, #0]
  16315. 80075b0: 4a7a ldr r2, [pc, #488] @ (800779c <HAL_DMA_IRQHandler+0xc80>)
  16316. 80075b2: 4293 cmp r3, r2
  16317. 80075b4: d03b beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16318. 80075b6: 687b ldr r3, [r7, #4]
  16319. 80075b8: 681b ldr r3, [r3, #0]
  16320. 80075ba: 4a79 ldr r2, [pc, #484] @ (80077a0 <HAL_DMA_IRQHandler+0xc84>)
  16321. 80075bc: 4293 cmp r3, r2
  16322. 80075be: d036 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16323. 80075c0: 687b ldr r3, [r7, #4]
  16324. 80075c2: 681b ldr r3, [r3, #0]
  16325. 80075c4: 4a77 ldr r2, [pc, #476] @ (80077a4 <HAL_DMA_IRQHandler+0xc88>)
  16326. 80075c6: 4293 cmp r3, r2
  16327. 80075c8: d031 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16328. 80075ca: 687b ldr r3, [r7, #4]
  16329. 80075cc: 681b ldr r3, [r3, #0]
  16330. 80075ce: 4a76 ldr r2, [pc, #472] @ (80077a8 <HAL_DMA_IRQHandler+0xc8c>)
  16331. 80075d0: 4293 cmp r3, r2
  16332. 80075d2: d02c beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16333. 80075d4: 687b ldr r3, [r7, #4]
  16334. 80075d6: 681b ldr r3, [r3, #0]
  16335. 80075d8: 4a74 ldr r2, [pc, #464] @ (80077ac <HAL_DMA_IRQHandler+0xc90>)
  16336. 80075da: 4293 cmp r3, r2
  16337. 80075dc: d027 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16338. 80075de: 687b ldr r3, [r7, #4]
  16339. 80075e0: 681b ldr r3, [r3, #0]
  16340. 80075e2: 4a73 ldr r2, [pc, #460] @ (80077b0 <HAL_DMA_IRQHandler+0xc94>)
  16341. 80075e4: 4293 cmp r3, r2
  16342. 80075e6: d022 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16343. 80075e8: 687b ldr r3, [r7, #4]
  16344. 80075ea: 681b ldr r3, [r3, #0]
  16345. 80075ec: 4a71 ldr r2, [pc, #452] @ (80077b4 <HAL_DMA_IRQHandler+0xc98>)
  16346. 80075ee: 4293 cmp r3, r2
  16347. 80075f0: d01d beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16348. 80075f2: 687b ldr r3, [r7, #4]
  16349. 80075f4: 681b ldr r3, [r3, #0]
  16350. 80075f6: 4a70 ldr r2, [pc, #448] @ (80077b8 <HAL_DMA_IRQHandler+0xc9c>)
  16351. 80075f8: 4293 cmp r3, r2
  16352. 80075fa: d018 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16353. 80075fc: 687b ldr r3, [r7, #4]
  16354. 80075fe: 681b ldr r3, [r3, #0]
  16355. 8007600: 4a6e ldr r2, [pc, #440] @ (80077bc <HAL_DMA_IRQHandler+0xca0>)
  16356. 8007602: 4293 cmp r3, r2
  16357. 8007604: d013 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16358. 8007606: 687b ldr r3, [r7, #4]
  16359. 8007608: 681b ldr r3, [r3, #0]
  16360. 800760a: 4a6d ldr r2, [pc, #436] @ (80077c0 <HAL_DMA_IRQHandler+0xca4>)
  16361. 800760c: 4293 cmp r3, r2
  16362. 800760e: d00e beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16363. 8007610: 687b ldr r3, [r7, #4]
  16364. 8007612: 681b ldr r3, [r3, #0]
  16365. 8007614: 4a6b ldr r2, [pc, #428] @ (80077c4 <HAL_DMA_IRQHandler+0xca8>)
  16366. 8007616: 4293 cmp r3, r2
  16367. 8007618: d009 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16368. 800761a: 687b ldr r3, [r7, #4]
  16369. 800761c: 681b ldr r3, [r3, #0]
  16370. 800761e: 4a6a ldr r2, [pc, #424] @ (80077c8 <HAL_DMA_IRQHandler+0xcac>)
  16371. 8007620: 4293 cmp r3, r2
  16372. 8007622: d004 beq.n 800762e <HAL_DMA_IRQHandler+0xb12>
  16373. 8007624: 687b ldr r3, [r7, #4]
  16374. 8007626: 681b ldr r3, [r3, #0]
  16375. 8007628: 4a68 ldr r2, [pc, #416] @ (80077cc <HAL_DMA_IRQHandler+0xcb0>)
  16376. 800762a: 4293 cmp r3, r2
  16377. 800762c: d108 bne.n 8007640 <HAL_DMA_IRQHandler+0xb24>
  16378. 800762e: 687b ldr r3, [r7, #4]
  16379. 8007630: 681b ldr r3, [r3, #0]
  16380. 8007632: 681a ldr r2, [r3, #0]
  16381. 8007634: 687b ldr r3, [r7, #4]
  16382. 8007636: 681b ldr r3, [r3, #0]
  16383. 8007638: f022 0208 bic.w r2, r2, #8
  16384. 800763c: 601a str r2, [r3, #0]
  16385. 800763e: e007 b.n 8007650 <HAL_DMA_IRQHandler+0xb34>
  16386. 8007640: 687b ldr r3, [r7, #4]
  16387. 8007642: 681b ldr r3, [r3, #0]
  16388. 8007644: 681a ldr r2, [r3, #0]
  16389. 8007646: 687b ldr r3, [r7, #4]
  16390. 8007648: 681b ldr r3, [r3, #0]
  16391. 800764a: f022 0204 bic.w r2, r2, #4
  16392. 800764e: 601a str r2, [r3, #0]
  16393. }
  16394. /* DMA peripheral state is not updated in Half Transfer */
  16395. /* but in Transfer Complete case */
  16396. if(hdma->XferHalfCpltCallback != NULL)
  16397. 8007650: 687b ldr r3, [r7, #4]
  16398. 8007652: 6c1b ldr r3, [r3, #64] @ 0x40
  16399. 8007654: 2b00 cmp r3, #0
  16400. 8007656: f000 8165 beq.w 8007924 <HAL_DMA_IRQHandler+0xe08>
  16401. {
  16402. /* Half transfer callback */
  16403. hdma->XferHalfCpltCallback(hdma);
  16404. 800765a: 687b ldr r3, [r7, #4]
  16405. 800765c: 6c1b ldr r3, [r3, #64] @ 0x40
  16406. 800765e: 6878 ldr r0, [r7, #4]
  16407. 8007660: 4798 blx r3
  16408. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16409. 8007662: e15f b.n 8007924 <HAL_DMA_IRQHandler+0xe08>
  16410. }
  16411. }
  16412. }
  16413. /* Transfer Complete Interrupt management ***********************************/
  16414. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  16415. 8007664: 687b ldr r3, [r7, #4]
  16416. 8007666: 6ddb ldr r3, [r3, #92] @ 0x5c
  16417. 8007668: f003 031f and.w r3, r3, #31
  16418. 800766c: 2202 movs r2, #2
  16419. 800766e: 409a lsls r2, r3
  16420. 8007670: 697b ldr r3, [r7, #20]
  16421. 8007672: 4013 ands r3, r2
  16422. 8007674: 2b00 cmp r3, #0
  16423. 8007676: f000 80c5 beq.w 8007804 <HAL_DMA_IRQHandler+0xce8>
  16424. 800767a: 693b ldr r3, [r7, #16]
  16425. 800767c: f003 0302 and.w r3, r3, #2
  16426. 8007680: 2b00 cmp r3, #0
  16427. 8007682: f000 80bf beq.w 8007804 <HAL_DMA_IRQHandler+0xce8>
  16428. {
  16429. /* Clear the transfer complete flag */
  16430. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  16431. 8007686: 687b ldr r3, [r7, #4]
  16432. 8007688: 6ddb ldr r3, [r3, #92] @ 0x5c
  16433. 800768a: f003 031f and.w r3, r3, #31
  16434. 800768e: 2202 movs r2, #2
  16435. 8007690: 409a lsls r2, r3
  16436. 8007692: 69fb ldr r3, [r7, #28]
  16437. 8007694: 605a str r2, [r3, #4]
  16438. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  16439. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16440. 8007696: 693b ldr r3, [r7, #16]
  16441. 8007698: f403 4300 and.w r3, r3, #32768 @ 0x8000
  16442. 800769c: 2b00 cmp r3, #0
  16443. 800769e: d018 beq.n 80076d2 <HAL_DMA_IRQHandler+0xbb6>
  16444. {
  16445. /* Current memory buffer used is Memory 0 */
  16446. if((ccr_reg & BDMA_CCR_CT) == 0U)
  16447. 80076a0: 693b ldr r3, [r7, #16]
  16448. 80076a2: f403 3380 and.w r3, r3, #65536 @ 0x10000
  16449. 80076a6: 2b00 cmp r3, #0
  16450. 80076a8: d109 bne.n 80076be <HAL_DMA_IRQHandler+0xba2>
  16451. {
  16452. if(hdma->XferM1CpltCallback != NULL)
  16453. 80076aa: 687b ldr r3, [r7, #4]
  16454. 80076ac: 6c5b ldr r3, [r3, #68] @ 0x44
  16455. 80076ae: 2b00 cmp r3, #0
  16456. 80076b0: f000 813a beq.w 8007928 <HAL_DMA_IRQHandler+0xe0c>
  16457. {
  16458. /* Transfer complete Callback for Memory 1 */
  16459. hdma->XferM1CpltCallback(hdma);
  16460. 80076b4: 687b ldr r3, [r7, #4]
  16461. 80076b6: 6c5b ldr r3, [r3, #68] @ 0x44
  16462. 80076b8: 6878 ldr r0, [r7, #4]
  16463. 80076ba: 4798 blx r3
  16464. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16465. 80076bc: e134 b.n 8007928 <HAL_DMA_IRQHandler+0xe0c>
  16466. }
  16467. }
  16468. /* Current memory buffer used is Memory 1 */
  16469. else
  16470. {
  16471. if(hdma->XferCpltCallback != NULL)
  16472. 80076be: 687b ldr r3, [r7, #4]
  16473. 80076c0: 6bdb ldr r3, [r3, #60] @ 0x3c
  16474. 80076c2: 2b00 cmp r3, #0
  16475. 80076c4: f000 8130 beq.w 8007928 <HAL_DMA_IRQHandler+0xe0c>
  16476. {
  16477. /* Transfer complete Callback for Memory 0 */
  16478. hdma->XferCpltCallback(hdma);
  16479. 80076c8: 687b ldr r3, [r7, #4]
  16480. 80076ca: 6bdb ldr r3, [r3, #60] @ 0x3c
  16481. 80076cc: 6878 ldr r0, [r7, #4]
  16482. 80076ce: 4798 blx r3
  16483. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16484. 80076d0: e12a b.n 8007928 <HAL_DMA_IRQHandler+0xe0c>
  16485. }
  16486. }
  16487. }
  16488. else
  16489. {
  16490. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  16491. 80076d2: 693b ldr r3, [r7, #16]
  16492. 80076d4: f003 0320 and.w r3, r3, #32
  16493. 80076d8: 2b00 cmp r3, #0
  16494. 80076da: f040 8089 bne.w 80077f0 <HAL_DMA_IRQHandler+0xcd4>
  16495. {
  16496. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  16497. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  16498. 80076de: 687b ldr r3, [r7, #4]
  16499. 80076e0: 681b ldr r3, [r3, #0]
  16500. 80076e2: 4a2b ldr r2, [pc, #172] @ (8007790 <HAL_DMA_IRQHandler+0xc74>)
  16501. 80076e4: 4293 cmp r3, r2
  16502. 80076e6: d04a beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16503. 80076e8: 687b ldr r3, [r7, #4]
  16504. 80076ea: 681b ldr r3, [r3, #0]
  16505. 80076ec: 4a29 ldr r2, [pc, #164] @ (8007794 <HAL_DMA_IRQHandler+0xc78>)
  16506. 80076ee: 4293 cmp r3, r2
  16507. 80076f0: d045 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16508. 80076f2: 687b ldr r3, [r7, #4]
  16509. 80076f4: 681b ldr r3, [r3, #0]
  16510. 80076f6: 4a28 ldr r2, [pc, #160] @ (8007798 <HAL_DMA_IRQHandler+0xc7c>)
  16511. 80076f8: 4293 cmp r3, r2
  16512. 80076fa: d040 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16513. 80076fc: 687b ldr r3, [r7, #4]
  16514. 80076fe: 681b ldr r3, [r3, #0]
  16515. 8007700: 4a26 ldr r2, [pc, #152] @ (800779c <HAL_DMA_IRQHandler+0xc80>)
  16516. 8007702: 4293 cmp r3, r2
  16517. 8007704: d03b beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16518. 8007706: 687b ldr r3, [r7, #4]
  16519. 8007708: 681b ldr r3, [r3, #0]
  16520. 800770a: 4a25 ldr r2, [pc, #148] @ (80077a0 <HAL_DMA_IRQHandler+0xc84>)
  16521. 800770c: 4293 cmp r3, r2
  16522. 800770e: d036 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16523. 8007710: 687b ldr r3, [r7, #4]
  16524. 8007712: 681b ldr r3, [r3, #0]
  16525. 8007714: 4a23 ldr r2, [pc, #140] @ (80077a4 <HAL_DMA_IRQHandler+0xc88>)
  16526. 8007716: 4293 cmp r3, r2
  16527. 8007718: d031 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16528. 800771a: 687b ldr r3, [r7, #4]
  16529. 800771c: 681b ldr r3, [r3, #0]
  16530. 800771e: 4a22 ldr r2, [pc, #136] @ (80077a8 <HAL_DMA_IRQHandler+0xc8c>)
  16531. 8007720: 4293 cmp r3, r2
  16532. 8007722: d02c beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16533. 8007724: 687b ldr r3, [r7, #4]
  16534. 8007726: 681b ldr r3, [r3, #0]
  16535. 8007728: 4a20 ldr r2, [pc, #128] @ (80077ac <HAL_DMA_IRQHandler+0xc90>)
  16536. 800772a: 4293 cmp r3, r2
  16537. 800772c: d027 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16538. 800772e: 687b ldr r3, [r7, #4]
  16539. 8007730: 681b ldr r3, [r3, #0]
  16540. 8007732: 4a1f ldr r2, [pc, #124] @ (80077b0 <HAL_DMA_IRQHandler+0xc94>)
  16541. 8007734: 4293 cmp r3, r2
  16542. 8007736: d022 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16543. 8007738: 687b ldr r3, [r7, #4]
  16544. 800773a: 681b ldr r3, [r3, #0]
  16545. 800773c: 4a1d ldr r2, [pc, #116] @ (80077b4 <HAL_DMA_IRQHandler+0xc98>)
  16546. 800773e: 4293 cmp r3, r2
  16547. 8007740: d01d beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16548. 8007742: 687b ldr r3, [r7, #4]
  16549. 8007744: 681b ldr r3, [r3, #0]
  16550. 8007746: 4a1c ldr r2, [pc, #112] @ (80077b8 <HAL_DMA_IRQHandler+0xc9c>)
  16551. 8007748: 4293 cmp r3, r2
  16552. 800774a: d018 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16553. 800774c: 687b ldr r3, [r7, #4]
  16554. 800774e: 681b ldr r3, [r3, #0]
  16555. 8007750: 4a1a ldr r2, [pc, #104] @ (80077bc <HAL_DMA_IRQHandler+0xca0>)
  16556. 8007752: 4293 cmp r3, r2
  16557. 8007754: d013 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16558. 8007756: 687b ldr r3, [r7, #4]
  16559. 8007758: 681b ldr r3, [r3, #0]
  16560. 800775a: 4a19 ldr r2, [pc, #100] @ (80077c0 <HAL_DMA_IRQHandler+0xca4>)
  16561. 800775c: 4293 cmp r3, r2
  16562. 800775e: d00e beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16563. 8007760: 687b ldr r3, [r7, #4]
  16564. 8007762: 681b ldr r3, [r3, #0]
  16565. 8007764: 4a17 ldr r2, [pc, #92] @ (80077c4 <HAL_DMA_IRQHandler+0xca8>)
  16566. 8007766: 4293 cmp r3, r2
  16567. 8007768: d009 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16568. 800776a: 687b ldr r3, [r7, #4]
  16569. 800776c: 681b ldr r3, [r3, #0]
  16570. 800776e: 4a16 ldr r2, [pc, #88] @ (80077c8 <HAL_DMA_IRQHandler+0xcac>)
  16571. 8007770: 4293 cmp r3, r2
  16572. 8007772: d004 beq.n 800777e <HAL_DMA_IRQHandler+0xc62>
  16573. 8007774: 687b ldr r3, [r7, #4]
  16574. 8007776: 681b ldr r3, [r3, #0]
  16575. 8007778: 4a14 ldr r2, [pc, #80] @ (80077cc <HAL_DMA_IRQHandler+0xcb0>)
  16576. 800777a: 4293 cmp r3, r2
  16577. 800777c: d128 bne.n 80077d0 <HAL_DMA_IRQHandler+0xcb4>
  16578. 800777e: 687b ldr r3, [r7, #4]
  16579. 8007780: 681b ldr r3, [r3, #0]
  16580. 8007782: 681a ldr r2, [r3, #0]
  16581. 8007784: 687b ldr r3, [r7, #4]
  16582. 8007786: 681b ldr r3, [r3, #0]
  16583. 8007788: f022 0214 bic.w r2, r2, #20
  16584. 800778c: 601a str r2, [r3, #0]
  16585. 800778e: e027 b.n 80077e0 <HAL_DMA_IRQHandler+0xcc4>
  16586. 8007790: 40020010 .word 0x40020010
  16587. 8007794: 40020028 .word 0x40020028
  16588. 8007798: 40020040 .word 0x40020040
  16589. 800779c: 40020058 .word 0x40020058
  16590. 80077a0: 40020070 .word 0x40020070
  16591. 80077a4: 40020088 .word 0x40020088
  16592. 80077a8: 400200a0 .word 0x400200a0
  16593. 80077ac: 400200b8 .word 0x400200b8
  16594. 80077b0: 40020410 .word 0x40020410
  16595. 80077b4: 40020428 .word 0x40020428
  16596. 80077b8: 40020440 .word 0x40020440
  16597. 80077bc: 40020458 .word 0x40020458
  16598. 80077c0: 40020470 .word 0x40020470
  16599. 80077c4: 40020488 .word 0x40020488
  16600. 80077c8: 400204a0 .word 0x400204a0
  16601. 80077cc: 400204b8 .word 0x400204b8
  16602. 80077d0: 687b ldr r3, [r7, #4]
  16603. 80077d2: 681b ldr r3, [r3, #0]
  16604. 80077d4: 681a ldr r2, [r3, #0]
  16605. 80077d6: 687b ldr r3, [r7, #4]
  16606. 80077d8: 681b ldr r3, [r3, #0]
  16607. 80077da: f022 020a bic.w r2, r2, #10
  16608. 80077de: 601a str r2, [r3, #0]
  16609. /* Change the DMA state */
  16610. hdma->State = HAL_DMA_STATE_READY;
  16611. 80077e0: 687b ldr r3, [r7, #4]
  16612. 80077e2: 2201 movs r2, #1
  16613. 80077e4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16614. /* Process Unlocked */
  16615. __HAL_UNLOCK(hdma);
  16616. 80077e8: 687b ldr r3, [r7, #4]
  16617. 80077ea: 2200 movs r2, #0
  16618. 80077ec: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16619. }
  16620. if(hdma->XferCpltCallback != NULL)
  16621. 80077f0: 687b ldr r3, [r7, #4]
  16622. 80077f2: 6bdb ldr r3, [r3, #60] @ 0x3c
  16623. 80077f4: 2b00 cmp r3, #0
  16624. 80077f6: f000 8097 beq.w 8007928 <HAL_DMA_IRQHandler+0xe0c>
  16625. {
  16626. /* Transfer complete callback */
  16627. hdma->XferCpltCallback(hdma);
  16628. 80077fa: 687b ldr r3, [r7, #4]
  16629. 80077fc: 6bdb ldr r3, [r3, #60] @ 0x3c
  16630. 80077fe: 6878 ldr r0, [r7, #4]
  16631. 8007800: 4798 blx r3
  16632. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16633. 8007802: e091 b.n 8007928 <HAL_DMA_IRQHandler+0xe0c>
  16634. }
  16635. }
  16636. }
  16637. /* Transfer Error Interrupt management **************************************/
  16638. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  16639. 8007804: 687b ldr r3, [r7, #4]
  16640. 8007806: 6ddb ldr r3, [r3, #92] @ 0x5c
  16641. 8007808: f003 031f and.w r3, r3, #31
  16642. 800780c: 2208 movs r2, #8
  16643. 800780e: 409a lsls r2, r3
  16644. 8007810: 697b ldr r3, [r7, #20]
  16645. 8007812: 4013 ands r3, r2
  16646. 8007814: 2b00 cmp r3, #0
  16647. 8007816: f000 8088 beq.w 800792a <HAL_DMA_IRQHandler+0xe0e>
  16648. 800781a: 693b ldr r3, [r7, #16]
  16649. 800781c: f003 0308 and.w r3, r3, #8
  16650. 8007820: 2b00 cmp r3, #0
  16651. 8007822: f000 8082 beq.w 800792a <HAL_DMA_IRQHandler+0xe0e>
  16652. {
  16653. /* When a DMA transfer error occurs */
  16654. /* A hardware clear of its EN bits is performed */
  16655. /* Disable ALL DMA IT */
  16656. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  16657. 8007826: 687b ldr r3, [r7, #4]
  16658. 8007828: 681b ldr r3, [r3, #0]
  16659. 800782a: 4a41 ldr r2, [pc, #260] @ (8007930 <HAL_DMA_IRQHandler+0xe14>)
  16660. 800782c: 4293 cmp r3, r2
  16661. 800782e: d04a beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16662. 8007830: 687b ldr r3, [r7, #4]
  16663. 8007832: 681b ldr r3, [r3, #0]
  16664. 8007834: 4a3f ldr r2, [pc, #252] @ (8007934 <HAL_DMA_IRQHandler+0xe18>)
  16665. 8007836: 4293 cmp r3, r2
  16666. 8007838: d045 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16667. 800783a: 687b ldr r3, [r7, #4]
  16668. 800783c: 681b ldr r3, [r3, #0]
  16669. 800783e: 4a3e ldr r2, [pc, #248] @ (8007938 <HAL_DMA_IRQHandler+0xe1c>)
  16670. 8007840: 4293 cmp r3, r2
  16671. 8007842: d040 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16672. 8007844: 687b ldr r3, [r7, #4]
  16673. 8007846: 681b ldr r3, [r3, #0]
  16674. 8007848: 4a3c ldr r2, [pc, #240] @ (800793c <HAL_DMA_IRQHandler+0xe20>)
  16675. 800784a: 4293 cmp r3, r2
  16676. 800784c: d03b beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16677. 800784e: 687b ldr r3, [r7, #4]
  16678. 8007850: 681b ldr r3, [r3, #0]
  16679. 8007852: 4a3b ldr r2, [pc, #236] @ (8007940 <HAL_DMA_IRQHandler+0xe24>)
  16680. 8007854: 4293 cmp r3, r2
  16681. 8007856: d036 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16682. 8007858: 687b ldr r3, [r7, #4]
  16683. 800785a: 681b ldr r3, [r3, #0]
  16684. 800785c: 4a39 ldr r2, [pc, #228] @ (8007944 <HAL_DMA_IRQHandler+0xe28>)
  16685. 800785e: 4293 cmp r3, r2
  16686. 8007860: d031 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16687. 8007862: 687b ldr r3, [r7, #4]
  16688. 8007864: 681b ldr r3, [r3, #0]
  16689. 8007866: 4a38 ldr r2, [pc, #224] @ (8007948 <HAL_DMA_IRQHandler+0xe2c>)
  16690. 8007868: 4293 cmp r3, r2
  16691. 800786a: d02c beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16692. 800786c: 687b ldr r3, [r7, #4]
  16693. 800786e: 681b ldr r3, [r3, #0]
  16694. 8007870: 4a36 ldr r2, [pc, #216] @ (800794c <HAL_DMA_IRQHandler+0xe30>)
  16695. 8007872: 4293 cmp r3, r2
  16696. 8007874: d027 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16697. 8007876: 687b ldr r3, [r7, #4]
  16698. 8007878: 681b ldr r3, [r3, #0]
  16699. 800787a: 4a35 ldr r2, [pc, #212] @ (8007950 <HAL_DMA_IRQHandler+0xe34>)
  16700. 800787c: 4293 cmp r3, r2
  16701. 800787e: d022 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16702. 8007880: 687b ldr r3, [r7, #4]
  16703. 8007882: 681b ldr r3, [r3, #0]
  16704. 8007884: 4a33 ldr r2, [pc, #204] @ (8007954 <HAL_DMA_IRQHandler+0xe38>)
  16705. 8007886: 4293 cmp r3, r2
  16706. 8007888: d01d beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16707. 800788a: 687b ldr r3, [r7, #4]
  16708. 800788c: 681b ldr r3, [r3, #0]
  16709. 800788e: 4a32 ldr r2, [pc, #200] @ (8007958 <HAL_DMA_IRQHandler+0xe3c>)
  16710. 8007890: 4293 cmp r3, r2
  16711. 8007892: d018 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16712. 8007894: 687b ldr r3, [r7, #4]
  16713. 8007896: 681b ldr r3, [r3, #0]
  16714. 8007898: 4a30 ldr r2, [pc, #192] @ (800795c <HAL_DMA_IRQHandler+0xe40>)
  16715. 800789a: 4293 cmp r3, r2
  16716. 800789c: d013 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16717. 800789e: 687b ldr r3, [r7, #4]
  16718. 80078a0: 681b ldr r3, [r3, #0]
  16719. 80078a2: 4a2f ldr r2, [pc, #188] @ (8007960 <HAL_DMA_IRQHandler+0xe44>)
  16720. 80078a4: 4293 cmp r3, r2
  16721. 80078a6: d00e beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16722. 80078a8: 687b ldr r3, [r7, #4]
  16723. 80078aa: 681b ldr r3, [r3, #0]
  16724. 80078ac: 4a2d ldr r2, [pc, #180] @ (8007964 <HAL_DMA_IRQHandler+0xe48>)
  16725. 80078ae: 4293 cmp r3, r2
  16726. 80078b0: d009 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16727. 80078b2: 687b ldr r3, [r7, #4]
  16728. 80078b4: 681b ldr r3, [r3, #0]
  16729. 80078b6: 4a2c ldr r2, [pc, #176] @ (8007968 <HAL_DMA_IRQHandler+0xe4c>)
  16730. 80078b8: 4293 cmp r3, r2
  16731. 80078ba: d004 beq.n 80078c6 <HAL_DMA_IRQHandler+0xdaa>
  16732. 80078bc: 687b ldr r3, [r7, #4]
  16733. 80078be: 681b ldr r3, [r3, #0]
  16734. 80078c0: 4a2a ldr r2, [pc, #168] @ (800796c <HAL_DMA_IRQHandler+0xe50>)
  16735. 80078c2: 4293 cmp r3, r2
  16736. 80078c4: d108 bne.n 80078d8 <HAL_DMA_IRQHandler+0xdbc>
  16737. 80078c6: 687b ldr r3, [r7, #4]
  16738. 80078c8: 681b ldr r3, [r3, #0]
  16739. 80078ca: 681a ldr r2, [r3, #0]
  16740. 80078cc: 687b ldr r3, [r7, #4]
  16741. 80078ce: 681b ldr r3, [r3, #0]
  16742. 80078d0: f022 021c bic.w r2, r2, #28
  16743. 80078d4: 601a str r2, [r3, #0]
  16744. 80078d6: e007 b.n 80078e8 <HAL_DMA_IRQHandler+0xdcc>
  16745. 80078d8: 687b ldr r3, [r7, #4]
  16746. 80078da: 681b ldr r3, [r3, #0]
  16747. 80078dc: 681a ldr r2, [r3, #0]
  16748. 80078de: 687b ldr r3, [r7, #4]
  16749. 80078e0: 681b ldr r3, [r3, #0]
  16750. 80078e2: f022 020e bic.w r2, r2, #14
  16751. 80078e6: 601a str r2, [r3, #0]
  16752. /* Clear all flags */
  16753. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  16754. 80078e8: 687b ldr r3, [r7, #4]
  16755. 80078ea: 6ddb ldr r3, [r3, #92] @ 0x5c
  16756. 80078ec: f003 031f and.w r3, r3, #31
  16757. 80078f0: 2201 movs r2, #1
  16758. 80078f2: 409a lsls r2, r3
  16759. 80078f4: 69fb ldr r3, [r7, #28]
  16760. 80078f6: 605a str r2, [r3, #4]
  16761. /* Update error code */
  16762. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  16763. 80078f8: 687b ldr r3, [r7, #4]
  16764. 80078fa: 2201 movs r2, #1
  16765. 80078fc: 655a str r2, [r3, #84] @ 0x54
  16766. /* Change the DMA state */
  16767. hdma->State = HAL_DMA_STATE_READY;
  16768. 80078fe: 687b ldr r3, [r7, #4]
  16769. 8007900: 2201 movs r2, #1
  16770. 8007902: f883 2035 strb.w r2, [r3, #53] @ 0x35
  16771. /* Process Unlocked */
  16772. __HAL_UNLOCK(hdma);
  16773. 8007906: 687b ldr r3, [r7, #4]
  16774. 8007908: 2200 movs r2, #0
  16775. 800790a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  16776. if (hdma->XferErrorCallback != NULL)
  16777. 800790e: 687b ldr r3, [r7, #4]
  16778. 8007910: 6cdb ldr r3, [r3, #76] @ 0x4c
  16779. 8007912: 2b00 cmp r3, #0
  16780. 8007914: d009 beq.n 800792a <HAL_DMA_IRQHandler+0xe0e>
  16781. {
  16782. /* Transfer error callback */
  16783. hdma->XferErrorCallback(hdma);
  16784. 8007916: 687b ldr r3, [r7, #4]
  16785. 8007918: 6cdb ldr r3, [r3, #76] @ 0x4c
  16786. 800791a: 6878 ldr r0, [r7, #4]
  16787. 800791c: 4798 blx r3
  16788. 800791e: e004 b.n 800792a <HAL_DMA_IRQHandler+0xe0e>
  16789. return;
  16790. 8007920: bf00 nop
  16791. 8007922: e002 b.n 800792a <HAL_DMA_IRQHandler+0xe0e>
  16792. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16793. 8007924: bf00 nop
  16794. 8007926: e000 b.n 800792a <HAL_DMA_IRQHandler+0xe0e>
  16795. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  16796. 8007928: bf00 nop
  16797. }
  16798. else
  16799. {
  16800. /* Nothing To Do */
  16801. }
  16802. }
  16803. 800792a: 3728 adds r7, #40 @ 0x28
  16804. 800792c: 46bd mov sp, r7
  16805. 800792e: bd80 pop {r7, pc}
  16806. 8007930: 40020010 .word 0x40020010
  16807. 8007934: 40020028 .word 0x40020028
  16808. 8007938: 40020040 .word 0x40020040
  16809. 800793c: 40020058 .word 0x40020058
  16810. 8007940: 40020070 .word 0x40020070
  16811. 8007944: 40020088 .word 0x40020088
  16812. 8007948: 400200a0 .word 0x400200a0
  16813. 800794c: 400200b8 .word 0x400200b8
  16814. 8007950: 40020410 .word 0x40020410
  16815. 8007954: 40020428 .word 0x40020428
  16816. 8007958: 40020440 .word 0x40020440
  16817. 800795c: 40020458 .word 0x40020458
  16818. 8007960: 40020470 .word 0x40020470
  16819. 8007964: 40020488 .word 0x40020488
  16820. 8007968: 400204a0 .word 0x400204a0
  16821. 800796c: 400204b8 .word 0x400204b8
  16822. 08007970 <DMA_CalcBaseAndBitshift>:
  16823. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  16824. * the configuration information for the specified DMA Stream.
  16825. * @retval Stream base address
  16826. */
  16827. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  16828. {
  16829. 8007970: b480 push {r7}
  16830. 8007972: b085 sub sp, #20
  16831. 8007974: af00 add r7, sp, #0
  16832. 8007976: 6078 str r0, [r7, #4]
  16833. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  16834. 8007978: 687b ldr r3, [r7, #4]
  16835. 800797a: 681b ldr r3, [r3, #0]
  16836. 800797c: 4a42 ldr r2, [pc, #264] @ (8007a88 <DMA_CalcBaseAndBitshift+0x118>)
  16837. 800797e: 4293 cmp r3, r2
  16838. 8007980: d04a beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16839. 8007982: 687b ldr r3, [r7, #4]
  16840. 8007984: 681b ldr r3, [r3, #0]
  16841. 8007986: 4a41 ldr r2, [pc, #260] @ (8007a8c <DMA_CalcBaseAndBitshift+0x11c>)
  16842. 8007988: 4293 cmp r3, r2
  16843. 800798a: d045 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16844. 800798c: 687b ldr r3, [r7, #4]
  16845. 800798e: 681b ldr r3, [r3, #0]
  16846. 8007990: 4a3f ldr r2, [pc, #252] @ (8007a90 <DMA_CalcBaseAndBitshift+0x120>)
  16847. 8007992: 4293 cmp r3, r2
  16848. 8007994: d040 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16849. 8007996: 687b ldr r3, [r7, #4]
  16850. 8007998: 681b ldr r3, [r3, #0]
  16851. 800799a: 4a3e ldr r2, [pc, #248] @ (8007a94 <DMA_CalcBaseAndBitshift+0x124>)
  16852. 800799c: 4293 cmp r3, r2
  16853. 800799e: d03b beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16854. 80079a0: 687b ldr r3, [r7, #4]
  16855. 80079a2: 681b ldr r3, [r3, #0]
  16856. 80079a4: 4a3c ldr r2, [pc, #240] @ (8007a98 <DMA_CalcBaseAndBitshift+0x128>)
  16857. 80079a6: 4293 cmp r3, r2
  16858. 80079a8: d036 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16859. 80079aa: 687b ldr r3, [r7, #4]
  16860. 80079ac: 681b ldr r3, [r3, #0]
  16861. 80079ae: 4a3b ldr r2, [pc, #236] @ (8007a9c <DMA_CalcBaseAndBitshift+0x12c>)
  16862. 80079b0: 4293 cmp r3, r2
  16863. 80079b2: d031 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16864. 80079b4: 687b ldr r3, [r7, #4]
  16865. 80079b6: 681b ldr r3, [r3, #0]
  16866. 80079b8: 4a39 ldr r2, [pc, #228] @ (8007aa0 <DMA_CalcBaseAndBitshift+0x130>)
  16867. 80079ba: 4293 cmp r3, r2
  16868. 80079bc: d02c beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16869. 80079be: 687b ldr r3, [r7, #4]
  16870. 80079c0: 681b ldr r3, [r3, #0]
  16871. 80079c2: 4a38 ldr r2, [pc, #224] @ (8007aa4 <DMA_CalcBaseAndBitshift+0x134>)
  16872. 80079c4: 4293 cmp r3, r2
  16873. 80079c6: d027 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16874. 80079c8: 687b ldr r3, [r7, #4]
  16875. 80079ca: 681b ldr r3, [r3, #0]
  16876. 80079cc: 4a36 ldr r2, [pc, #216] @ (8007aa8 <DMA_CalcBaseAndBitshift+0x138>)
  16877. 80079ce: 4293 cmp r3, r2
  16878. 80079d0: d022 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16879. 80079d2: 687b ldr r3, [r7, #4]
  16880. 80079d4: 681b ldr r3, [r3, #0]
  16881. 80079d6: 4a35 ldr r2, [pc, #212] @ (8007aac <DMA_CalcBaseAndBitshift+0x13c>)
  16882. 80079d8: 4293 cmp r3, r2
  16883. 80079da: d01d beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16884. 80079dc: 687b ldr r3, [r7, #4]
  16885. 80079de: 681b ldr r3, [r3, #0]
  16886. 80079e0: 4a33 ldr r2, [pc, #204] @ (8007ab0 <DMA_CalcBaseAndBitshift+0x140>)
  16887. 80079e2: 4293 cmp r3, r2
  16888. 80079e4: d018 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16889. 80079e6: 687b ldr r3, [r7, #4]
  16890. 80079e8: 681b ldr r3, [r3, #0]
  16891. 80079ea: 4a32 ldr r2, [pc, #200] @ (8007ab4 <DMA_CalcBaseAndBitshift+0x144>)
  16892. 80079ec: 4293 cmp r3, r2
  16893. 80079ee: d013 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16894. 80079f0: 687b ldr r3, [r7, #4]
  16895. 80079f2: 681b ldr r3, [r3, #0]
  16896. 80079f4: 4a30 ldr r2, [pc, #192] @ (8007ab8 <DMA_CalcBaseAndBitshift+0x148>)
  16897. 80079f6: 4293 cmp r3, r2
  16898. 80079f8: d00e beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16899. 80079fa: 687b ldr r3, [r7, #4]
  16900. 80079fc: 681b ldr r3, [r3, #0]
  16901. 80079fe: 4a2f ldr r2, [pc, #188] @ (8007abc <DMA_CalcBaseAndBitshift+0x14c>)
  16902. 8007a00: 4293 cmp r3, r2
  16903. 8007a02: d009 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16904. 8007a04: 687b ldr r3, [r7, #4]
  16905. 8007a06: 681b ldr r3, [r3, #0]
  16906. 8007a08: 4a2d ldr r2, [pc, #180] @ (8007ac0 <DMA_CalcBaseAndBitshift+0x150>)
  16907. 8007a0a: 4293 cmp r3, r2
  16908. 8007a0c: d004 beq.n 8007a18 <DMA_CalcBaseAndBitshift+0xa8>
  16909. 8007a0e: 687b ldr r3, [r7, #4]
  16910. 8007a10: 681b ldr r3, [r3, #0]
  16911. 8007a12: 4a2c ldr r2, [pc, #176] @ (8007ac4 <DMA_CalcBaseAndBitshift+0x154>)
  16912. 8007a14: 4293 cmp r3, r2
  16913. 8007a16: d101 bne.n 8007a1c <DMA_CalcBaseAndBitshift+0xac>
  16914. 8007a18: 2301 movs r3, #1
  16915. 8007a1a: e000 b.n 8007a1e <DMA_CalcBaseAndBitshift+0xae>
  16916. 8007a1c: 2300 movs r3, #0
  16917. 8007a1e: 2b00 cmp r3, #0
  16918. 8007a20: d024 beq.n 8007a6c <DMA_CalcBaseAndBitshift+0xfc>
  16919. {
  16920. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  16921. 8007a22: 687b ldr r3, [r7, #4]
  16922. 8007a24: 681b ldr r3, [r3, #0]
  16923. 8007a26: b2db uxtb r3, r3
  16924. 8007a28: 3b10 subs r3, #16
  16925. 8007a2a: 4a27 ldr r2, [pc, #156] @ (8007ac8 <DMA_CalcBaseAndBitshift+0x158>)
  16926. 8007a2c: fba2 2303 umull r2, r3, r2, r3
  16927. 8007a30: 091b lsrs r3, r3, #4
  16928. 8007a32: 60fb str r3, [r7, #12]
  16929. /* lookup table for necessary bitshift of flags within status registers */
  16930. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  16931. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  16932. 8007a34: 68fb ldr r3, [r7, #12]
  16933. 8007a36: f003 0307 and.w r3, r3, #7
  16934. 8007a3a: 4a24 ldr r2, [pc, #144] @ (8007acc <DMA_CalcBaseAndBitshift+0x15c>)
  16935. 8007a3c: 5cd3 ldrb r3, [r2, r3]
  16936. 8007a3e: 461a mov r2, r3
  16937. 8007a40: 687b ldr r3, [r7, #4]
  16938. 8007a42: 65da str r2, [r3, #92] @ 0x5c
  16939. if (stream_number > 3U)
  16940. 8007a44: 68fb ldr r3, [r7, #12]
  16941. 8007a46: 2b03 cmp r3, #3
  16942. 8007a48: d908 bls.n 8007a5c <DMA_CalcBaseAndBitshift+0xec>
  16943. {
  16944. /* return pointer to HISR and HIFCR */
  16945. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  16946. 8007a4a: 687b ldr r3, [r7, #4]
  16947. 8007a4c: 681b ldr r3, [r3, #0]
  16948. 8007a4e: 461a mov r2, r3
  16949. 8007a50: 4b1f ldr r3, [pc, #124] @ (8007ad0 <DMA_CalcBaseAndBitshift+0x160>)
  16950. 8007a52: 4013 ands r3, r2
  16951. 8007a54: 1d1a adds r2, r3, #4
  16952. 8007a56: 687b ldr r3, [r7, #4]
  16953. 8007a58: 659a str r2, [r3, #88] @ 0x58
  16954. 8007a5a: e00d b.n 8007a78 <DMA_CalcBaseAndBitshift+0x108>
  16955. }
  16956. else
  16957. {
  16958. /* return pointer to LISR and LIFCR */
  16959. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  16960. 8007a5c: 687b ldr r3, [r7, #4]
  16961. 8007a5e: 681b ldr r3, [r3, #0]
  16962. 8007a60: 461a mov r2, r3
  16963. 8007a62: 4b1b ldr r3, [pc, #108] @ (8007ad0 <DMA_CalcBaseAndBitshift+0x160>)
  16964. 8007a64: 4013 ands r3, r2
  16965. 8007a66: 687a ldr r2, [r7, #4]
  16966. 8007a68: 6593 str r3, [r2, #88] @ 0x58
  16967. 8007a6a: e005 b.n 8007a78 <DMA_CalcBaseAndBitshift+0x108>
  16968. }
  16969. }
  16970. else /* BDMA instance(s) */
  16971. {
  16972. /* return pointer to ISR and IFCR */
  16973. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  16974. 8007a6c: 687b ldr r3, [r7, #4]
  16975. 8007a6e: 681b ldr r3, [r3, #0]
  16976. 8007a70: f023 02ff bic.w r2, r3, #255 @ 0xff
  16977. 8007a74: 687b ldr r3, [r7, #4]
  16978. 8007a76: 659a str r2, [r3, #88] @ 0x58
  16979. }
  16980. return hdma->StreamBaseAddress;
  16981. 8007a78: 687b ldr r3, [r7, #4]
  16982. 8007a7a: 6d9b ldr r3, [r3, #88] @ 0x58
  16983. }
  16984. 8007a7c: 4618 mov r0, r3
  16985. 8007a7e: 3714 adds r7, #20
  16986. 8007a80: 46bd mov sp, r7
  16987. 8007a82: f85d 7b04 ldr.w r7, [sp], #4
  16988. 8007a86: 4770 bx lr
  16989. 8007a88: 40020010 .word 0x40020010
  16990. 8007a8c: 40020028 .word 0x40020028
  16991. 8007a90: 40020040 .word 0x40020040
  16992. 8007a94: 40020058 .word 0x40020058
  16993. 8007a98: 40020070 .word 0x40020070
  16994. 8007a9c: 40020088 .word 0x40020088
  16995. 8007aa0: 400200a0 .word 0x400200a0
  16996. 8007aa4: 400200b8 .word 0x400200b8
  16997. 8007aa8: 40020410 .word 0x40020410
  16998. 8007aac: 40020428 .word 0x40020428
  16999. 8007ab0: 40020440 .word 0x40020440
  17000. 8007ab4: 40020458 .word 0x40020458
  17001. 8007ab8: 40020470 .word 0x40020470
  17002. 8007abc: 40020488 .word 0x40020488
  17003. 8007ac0: 400204a0 .word 0x400204a0
  17004. 8007ac4: 400204b8 .word 0x400204b8
  17005. 8007ac8: aaaaaaab .word 0xaaaaaaab
  17006. 8007acc: 08031318 .word 0x08031318
  17007. 8007ad0: fffffc00 .word 0xfffffc00
  17008. 08007ad4 <DMA_CheckFifoParam>:
  17009. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17010. * the configuration information for the specified DMA Stream.
  17011. * @retval HAL status
  17012. */
  17013. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  17014. {
  17015. 8007ad4: b480 push {r7}
  17016. 8007ad6: b085 sub sp, #20
  17017. 8007ad8: af00 add r7, sp, #0
  17018. 8007ada: 6078 str r0, [r7, #4]
  17019. HAL_StatusTypeDef status = HAL_OK;
  17020. 8007adc: 2300 movs r3, #0
  17021. 8007ade: 73fb strb r3, [r7, #15]
  17022. /* Memory Data size equal to Byte */
  17023. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  17024. 8007ae0: 687b ldr r3, [r7, #4]
  17025. 8007ae2: 699b ldr r3, [r3, #24]
  17026. 8007ae4: 2b00 cmp r3, #0
  17027. 8007ae6: d120 bne.n 8007b2a <DMA_CheckFifoParam+0x56>
  17028. {
  17029. switch (hdma->Init.FIFOThreshold)
  17030. 8007ae8: 687b ldr r3, [r7, #4]
  17031. 8007aea: 6a9b ldr r3, [r3, #40] @ 0x28
  17032. 8007aec: 2b03 cmp r3, #3
  17033. 8007aee: d858 bhi.n 8007ba2 <DMA_CheckFifoParam+0xce>
  17034. 8007af0: a201 add r2, pc, #4 @ (adr r2, 8007af8 <DMA_CheckFifoParam+0x24>)
  17035. 8007af2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17036. 8007af6: bf00 nop
  17037. 8007af8: 08007b09 .word 0x08007b09
  17038. 8007afc: 08007b1b .word 0x08007b1b
  17039. 8007b00: 08007b09 .word 0x08007b09
  17040. 8007b04: 08007ba3 .word 0x08007ba3
  17041. {
  17042. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  17043. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  17044. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  17045. 8007b08: 687b ldr r3, [r7, #4]
  17046. 8007b0a: 6adb ldr r3, [r3, #44] @ 0x2c
  17047. 8007b0c: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  17048. 8007b10: 2b00 cmp r3, #0
  17049. 8007b12: d048 beq.n 8007ba6 <DMA_CheckFifoParam+0xd2>
  17050. {
  17051. status = HAL_ERROR;
  17052. 8007b14: 2301 movs r3, #1
  17053. 8007b16: 73fb strb r3, [r7, #15]
  17054. }
  17055. break;
  17056. 8007b18: e045 b.n 8007ba6 <DMA_CheckFifoParam+0xd2>
  17057. case DMA_FIFO_THRESHOLD_HALFFULL:
  17058. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  17059. 8007b1a: 687b ldr r3, [r7, #4]
  17060. 8007b1c: 6adb ldr r3, [r3, #44] @ 0x2c
  17061. 8007b1e: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  17062. 8007b22: d142 bne.n 8007baa <DMA_CheckFifoParam+0xd6>
  17063. {
  17064. status = HAL_ERROR;
  17065. 8007b24: 2301 movs r3, #1
  17066. 8007b26: 73fb strb r3, [r7, #15]
  17067. }
  17068. break;
  17069. 8007b28: e03f b.n 8007baa <DMA_CheckFifoParam+0xd6>
  17070. break;
  17071. }
  17072. }
  17073. /* Memory Data size equal to Half-Word */
  17074. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  17075. 8007b2a: 687b ldr r3, [r7, #4]
  17076. 8007b2c: 699b ldr r3, [r3, #24]
  17077. 8007b2e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  17078. 8007b32: d123 bne.n 8007b7c <DMA_CheckFifoParam+0xa8>
  17079. {
  17080. switch (hdma->Init.FIFOThreshold)
  17081. 8007b34: 687b ldr r3, [r7, #4]
  17082. 8007b36: 6a9b ldr r3, [r3, #40] @ 0x28
  17083. 8007b38: 2b03 cmp r3, #3
  17084. 8007b3a: d838 bhi.n 8007bae <DMA_CheckFifoParam+0xda>
  17085. 8007b3c: a201 add r2, pc, #4 @ (adr r2, 8007b44 <DMA_CheckFifoParam+0x70>)
  17086. 8007b3e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17087. 8007b42: bf00 nop
  17088. 8007b44: 08007b55 .word 0x08007b55
  17089. 8007b48: 08007b5b .word 0x08007b5b
  17090. 8007b4c: 08007b55 .word 0x08007b55
  17091. 8007b50: 08007b6d .word 0x08007b6d
  17092. {
  17093. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  17094. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  17095. status = HAL_ERROR;
  17096. 8007b54: 2301 movs r3, #1
  17097. 8007b56: 73fb strb r3, [r7, #15]
  17098. break;
  17099. 8007b58: e030 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17100. case DMA_FIFO_THRESHOLD_HALFFULL:
  17101. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  17102. 8007b5a: 687b ldr r3, [r7, #4]
  17103. 8007b5c: 6adb ldr r3, [r3, #44] @ 0x2c
  17104. 8007b5e: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  17105. 8007b62: 2b00 cmp r3, #0
  17106. 8007b64: d025 beq.n 8007bb2 <DMA_CheckFifoParam+0xde>
  17107. {
  17108. status = HAL_ERROR;
  17109. 8007b66: 2301 movs r3, #1
  17110. 8007b68: 73fb strb r3, [r7, #15]
  17111. }
  17112. break;
  17113. 8007b6a: e022 b.n 8007bb2 <DMA_CheckFifoParam+0xde>
  17114. case DMA_FIFO_THRESHOLD_FULL:
  17115. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  17116. 8007b6c: 687b ldr r3, [r7, #4]
  17117. 8007b6e: 6adb ldr r3, [r3, #44] @ 0x2c
  17118. 8007b70: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  17119. 8007b74: d11f bne.n 8007bb6 <DMA_CheckFifoParam+0xe2>
  17120. {
  17121. status = HAL_ERROR;
  17122. 8007b76: 2301 movs r3, #1
  17123. 8007b78: 73fb strb r3, [r7, #15]
  17124. }
  17125. break;
  17126. 8007b7a: e01c b.n 8007bb6 <DMA_CheckFifoParam+0xe2>
  17127. }
  17128. /* Memory Data size equal to Word */
  17129. else
  17130. {
  17131. switch (hdma->Init.FIFOThreshold)
  17132. 8007b7c: 687b ldr r3, [r7, #4]
  17133. 8007b7e: 6a9b ldr r3, [r3, #40] @ 0x28
  17134. 8007b80: 2b02 cmp r3, #2
  17135. 8007b82: d902 bls.n 8007b8a <DMA_CheckFifoParam+0xb6>
  17136. 8007b84: 2b03 cmp r3, #3
  17137. 8007b86: d003 beq.n 8007b90 <DMA_CheckFifoParam+0xbc>
  17138. status = HAL_ERROR;
  17139. }
  17140. break;
  17141. default:
  17142. break;
  17143. 8007b88: e018 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17144. status = HAL_ERROR;
  17145. 8007b8a: 2301 movs r3, #1
  17146. 8007b8c: 73fb strb r3, [r7, #15]
  17147. break;
  17148. 8007b8e: e015 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17149. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  17150. 8007b90: 687b ldr r3, [r7, #4]
  17151. 8007b92: 6adb ldr r3, [r3, #44] @ 0x2c
  17152. 8007b94: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  17153. 8007b98: 2b00 cmp r3, #0
  17154. 8007b9a: d00e beq.n 8007bba <DMA_CheckFifoParam+0xe6>
  17155. status = HAL_ERROR;
  17156. 8007b9c: 2301 movs r3, #1
  17157. 8007b9e: 73fb strb r3, [r7, #15]
  17158. break;
  17159. 8007ba0: e00b b.n 8007bba <DMA_CheckFifoParam+0xe6>
  17160. break;
  17161. 8007ba2: bf00 nop
  17162. 8007ba4: e00a b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17163. break;
  17164. 8007ba6: bf00 nop
  17165. 8007ba8: e008 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17166. break;
  17167. 8007baa: bf00 nop
  17168. 8007bac: e006 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17169. break;
  17170. 8007bae: bf00 nop
  17171. 8007bb0: e004 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17172. break;
  17173. 8007bb2: bf00 nop
  17174. 8007bb4: e002 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17175. break;
  17176. 8007bb6: bf00 nop
  17177. 8007bb8: e000 b.n 8007bbc <DMA_CheckFifoParam+0xe8>
  17178. break;
  17179. 8007bba: bf00 nop
  17180. }
  17181. }
  17182. return status;
  17183. 8007bbc: 7bfb ldrb r3, [r7, #15]
  17184. }
  17185. 8007bbe: 4618 mov r0, r3
  17186. 8007bc0: 3714 adds r7, #20
  17187. 8007bc2: 46bd mov sp, r7
  17188. 8007bc4: f85d 7b04 ldr.w r7, [sp], #4
  17189. 8007bc8: 4770 bx lr
  17190. 8007bca: bf00 nop
  17191. 08007bcc <DMA_CalcDMAMUXChannelBaseAndMask>:
  17192. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17193. * the configuration information for the specified DMA Stream.
  17194. * @retval HAL status
  17195. */
  17196. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  17197. {
  17198. 8007bcc: b480 push {r7}
  17199. 8007bce: b085 sub sp, #20
  17200. 8007bd0: af00 add r7, sp, #0
  17201. 8007bd2: 6078 str r0, [r7, #4]
  17202. uint32_t stream_number;
  17203. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  17204. 8007bd4: 687b ldr r3, [r7, #4]
  17205. 8007bd6: 681b ldr r3, [r3, #0]
  17206. 8007bd8: 60bb str r3, [r7, #8]
  17207. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  17208. 8007bda: 687b ldr r3, [r7, #4]
  17209. 8007bdc: 681b ldr r3, [r3, #0]
  17210. 8007bde: 4a38 ldr r2, [pc, #224] @ (8007cc0 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  17211. 8007be0: 4293 cmp r3, r2
  17212. 8007be2: d022 beq.n 8007c2a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17213. 8007be4: 687b ldr r3, [r7, #4]
  17214. 8007be6: 681b ldr r3, [r3, #0]
  17215. 8007be8: 4a36 ldr r2, [pc, #216] @ (8007cc4 <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  17216. 8007bea: 4293 cmp r3, r2
  17217. 8007bec: d01d beq.n 8007c2a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17218. 8007bee: 687b ldr r3, [r7, #4]
  17219. 8007bf0: 681b ldr r3, [r3, #0]
  17220. 8007bf2: 4a35 ldr r2, [pc, #212] @ (8007cc8 <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  17221. 8007bf4: 4293 cmp r3, r2
  17222. 8007bf6: d018 beq.n 8007c2a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17223. 8007bf8: 687b ldr r3, [r7, #4]
  17224. 8007bfa: 681b ldr r3, [r3, #0]
  17225. 8007bfc: 4a33 ldr r2, [pc, #204] @ (8007ccc <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  17226. 8007bfe: 4293 cmp r3, r2
  17227. 8007c00: d013 beq.n 8007c2a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17228. 8007c02: 687b ldr r3, [r7, #4]
  17229. 8007c04: 681b ldr r3, [r3, #0]
  17230. 8007c06: 4a32 ldr r2, [pc, #200] @ (8007cd0 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  17231. 8007c08: 4293 cmp r3, r2
  17232. 8007c0a: d00e beq.n 8007c2a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17233. 8007c0c: 687b ldr r3, [r7, #4]
  17234. 8007c0e: 681b ldr r3, [r3, #0]
  17235. 8007c10: 4a30 ldr r2, [pc, #192] @ (8007cd4 <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  17236. 8007c12: 4293 cmp r3, r2
  17237. 8007c14: d009 beq.n 8007c2a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17238. 8007c16: 687b ldr r3, [r7, #4]
  17239. 8007c18: 681b ldr r3, [r3, #0]
  17240. 8007c1a: 4a2f ldr r2, [pc, #188] @ (8007cd8 <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  17241. 8007c1c: 4293 cmp r3, r2
  17242. 8007c1e: d004 beq.n 8007c2a <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  17243. 8007c20: 687b ldr r3, [r7, #4]
  17244. 8007c22: 681b ldr r3, [r3, #0]
  17245. 8007c24: 4a2d ldr r2, [pc, #180] @ (8007cdc <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  17246. 8007c26: 4293 cmp r3, r2
  17247. 8007c28: d101 bne.n 8007c2e <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  17248. 8007c2a: 2301 movs r3, #1
  17249. 8007c2c: e000 b.n 8007c30 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  17250. 8007c2e: 2300 movs r3, #0
  17251. 8007c30: 2b00 cmp r3, #0
  17252. 8007c32: d01a beq.n 8007c6a <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  17253. {
  17254. /* BDMA Channels are connected to DMAMUX2 channels */
  17255. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  17256. 8007c34: 687b ldr r3, [r7, #4]
  17257. 8007c36: 681b ldr r3, [r3, #0]
  17258. 8007c38: b2db uxtb r3, r3
  17259. 8007c3a: 3b08 subs r3, #8
  17260. 8007c3c: 4a28 ldr r2, [pc, #160] @ (8007ce0 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  17261. 8007c3e: fba2 2303 umull r2, r3, r2, r3
  17262. 8007c42: 091b lsrs r3, r3, #4
  17263. 8007c44: 60fb str r3, [r7, #12]
  17264. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  17265. 8007c46: 68fa ldr r2, [r7, #12]
  17266. 8007c48: 4b26 ldr r3, [pc, #152] @ (8007ce4 <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  17267. 8007c4a: 4413 add r3, r2
  17268. 8007c4c: 009b lsls r3, r3, #2
  17269. 8007c4e: 461a mov r2, r3
  17270. 8007c50: 687b ldr r3, [r7, #4]
  17271. 8007c52: 661a str r2, [r3, #96] @ 0x60
  17272. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  17273. 8007c54: 687b ldr r3, [r7, #4]
  17274. 8007c56: 4a24 ldr r2, [pc, #144] @ (8007ce8 <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  17275. 8007c58: 665a str r2, [r3, #100] @ 0x64
  17276. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17277. 8007c5a: 68fb ldr r3, [r7, #12]
  17278. 8007c5c: f003 031f and.w r3, r3, #31
  17279. 8007c60: 2201 movs r2, #1
  17280. 8007c62: 409a lsls r2, r3
  17281. 8007c64: 687b ldr r3, [r7, #4]
  17282. 8007c66: 669a str r2, [r3, #104] @ 0x68
  17283. }
  17284. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  17285. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  17286. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17287. }
  17288. }
  17289. 8007c68: e024 b.n 8007cb4 <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  17290. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  17291. 8007c6a: 687b ldr r3, [r7, #4]
  17292. 8007c6c: 681b ldr r3, [r3, #0]
  17293. 8007c6e: b2db uxtb r3, r3
  17294. 8007c70: 3b10 subs r3, #16
  17295. 8007c72: 4a1e ldr r2, [pc, #120] @ (8007cec <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  17296. 8007c74: fba2 2303 umull r2, r3, r2, r3
  17297. 8007c78: 091b lsrs r3, r3, #4
  17298. 8007c7a: 60fb str r3, [r7, #12]
  17299. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  17300. 8007c7c: 68bb ldr r3, [r7, #8]
  17301. 8007c7e: 4a1c ldr r2, [pc, #112] @ (8007cf0 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  17302. 8007c80: 4293 cmp r3, r2
  17303. 8007c82: d806 bhi.n 8007c92 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  17304. 8007c84: 68bb ldr r3, [r7, #8]
  17305. 8007c86: 4a1b ldr r2, [pc, #108] @ (8007cf4 <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  17306. 8007c88: 4293 cmp r3, r2
  17307. 8007c8a: d902 bls.n 8007c92 <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  17308. stream_number += 8U;
  17309. 8007c8c: 68fb ldr r3, [r7, #12]
  17310. 8007c8e: 3308 adds r3, #8
  17311. 8007c90: 60fb str r3, [r7, #12]
  17312. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  17313. 8007c92: 68fa ldr r2, [r7, #12]
  17314. 8007c94: 4b18 ldr r3, [pc, #96] @ (8007cf8 <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  17315. 8007c96: 4413 add r3, r2
  17316. 8007c98: 009b lsls r3, r3, #2
  17317. 8007c9a: 461a mov r2, r3
  17318. 8007c9c: 687b ldr r3, [r7, #4]
  17319. 8007c9e: 661a str r2, [r3, #96] @ 0x60
  17320. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  17321. 8007ca0: 687b ldr r3, [r7, #4]
  17322. 8007ca2: 4a16 ldr r2, [pc, #88] @ (8007cfc <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  17323. 8007ca4: 665a str r2, [r3, #100] @ 0x64
  17324. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  17325. 8007ca6: 68fb ldr r3, [r7, #12]
  17326. 8007ca8: f003 031f and.w r3, r3, #31
  17327. 8007cac: 2201 movs r2, #1
  17328. 8007cae: 409a lsls r2, r3
  17329. 8007cb0: 687b ldr r3, [r7, #4]
  17330. 8007cb2: 669a str r2, [r3, #104] @ 0x68
  17331. }
  17332. 8007cb4: bf00 nop
  17333. 8007cb6: 3714 adds r7, #20
  17334. 8007cb8: 46bd mov sp, r7
  17335. 8007cba: f85d 7b04 ldr.w r7, [sp], #4
  17336. 8007cbe: 4770 bx lr
  17337. 8007cc0: 58025408 .word 0x58025408
  17338. 8007cc4: 5802541c .word 0x5802541c
  17339. 8007cc8: 58025430 .word 0x58025430
  17340. 8007ccc: 58025444 .word 0x58025444
  17341. 8007cd0: 58025458 .word 0x58025458
  17342. 8007cd4: 5802546c .word 0x5802546c
  17343. 8007cd8: 58025480 .word 0x58025480
  17344. 8007cdc: 58025494 .word 0x58025494
  17345. 8007ce0: cccccccd .word 0xcccccccd
  17346. 8007ce4: 16009600 .word 0x16009600
  17347. 8007ce8: 58025880 .word 0x58025880
  17348. 8007cec: aaaaaaab .word 0xaaaaaaab
  17349. 8007cf0: 400204b8 .word 0x400204b8
  17350. 8007cf4: 4002040f .word 0x4002040f
  17351. 8007cf8: 10008200 .word 0x10008200
  17352. 8007cfc: 40020880 .word 0x40020880
  17353. 08007d00 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  17354. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  17355. * the configuration information for the specified DMA Stream.
  17356. * @retval HAL status
  17357. */
  17358. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  17359. {
  17360. 8007d00: b480 push {r7}
  17361. 8007d02: b085 sub sp, #20
  17362. 8007d04: af00 add r7, sp, #0
  17363. 8007d06: 6078 str r0, [r7, #4]
  17364. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  17365. 8007d08: 687b ldr r3, [r7, #4]
  17366. 8007d0a: 685b ldr r3, [r3, #4]
  17367. 8007d0c: b2db uxtb r3, r3
  17368. 8007d0e: 60fb str r3, [r7, #12]
  17369. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  17370. 8007d10: 68fb ldr r3, [r7, #12]
  17371. 8007d12: 2b00 cmp r3, #0
  17372. 8007d14: d04a beq.n 8007dac <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  17373. 8007d16: 68fb ldr r3, [r7, #12]
  17374. 8007d18: 2b08 cmp r3, #8
  17375. 8007d1a: d847 bhi.n 8007dac <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  17376. {
  17377. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  17378. 8007d1c: 687b ldr r3, [r7, #4]
  17379. 8007d1e: 681b ldr r3, [r3, #0]
  17380. 8007d20: 4a25 ldr r2, [pc, #148] @ (8007db8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  17381. 8007d22: 4293 cmp r3, r2
  17382. 8007d24: d022 beq.n 8007d6c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17383. 8007d26: 687b ldr r3, [r7, #4]
  17384. 8007d28: 681b ldr r3, [r3, #0]
  17385. 8007d2a: 4a24 ldr r2, [pc, #144] @ (8007dbc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  17386. 8007d2c: 4293 cmp r3, r2
  17387. 8007d2e: d01d beq.n 8007d6c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17388. 8007d30: 687b ldr r3, [r7, #4]
  17389. 8007d32: 681b ldr r3, [r3, #0]
  17390. 8007d34: 4a22 ldr r2, [pc, #136] @ (8007dc0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  17391. 8007d36: 4293 cmp r3, r2
  17392. 8007d38: d018 beq.n 8007d6c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17393. 8007d3a: 687b ldr r3, [r7, #4]
  17394. 8007d3c: 681b ldr r3, [r3, #0]
  17395. 8007d3e: 4a21 ldr r2, [pc, #132] @ (8007dc4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  17396. 8007d40: 4293 cmp r3, r2
  17397. 8007d42: d013 beq.n 8007d6c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17398. 8007d44: 687b ldr r3, [r7, #4]
  17399. 8007d46: 681b ldr r3, [r3, #0]
  17400. 8007d48: 4a1f ldr r2, [pc, #124] @ (8007dc8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  17401. 8007d4a: 4293 cmp r3, r2
  17402. 8007d4c: d00e beq.n 8007d6c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17403. 8007d4e: 687b ldr r3, [r7, #4]
  17404. 8007d50: 681b ldr r3, [r3, #0]
  17405. 8007d52: 4a1e ldr r2, [pc, #120] @ (8007dcc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  17406. 8007d54: 4293 cmp r3, r2
  17407. 8007d56: d009 beq.n 8007d6c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17408. 8007d58: 687b ldr r3, [r7, #4]
  17409. 8007d5a: 681b ldr r3, [r3, #0]
  17410. 8007d5c: 4a1c ldr r2, [pc, #112] @ (8007dd0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  17411. 8007d5e: 4293 cmp r3, r2
  17412. 8007d60: d004 beq.n 8007d6c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  17413. 8007d62: 687b ldr r3, [r7, #4]
  17414. 8007d64: 681b ldr r3, [r3, #0]
  17415. 8007d66: 4a1b ldr r2, [pc, #108] @ (8007dd4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  17416. 8007d68: 4293 cmp r3, r2
  17417. 8007d6a: d101 bne.n 8007d70 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  17418. 8007d6c: 2301 movs r3, #1
  17419. 8007d6e: e000 b.n 8007d72 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  17420. 8007d70: 2300 movs r3, #0
  17421. 8007d72: 2b00 cmp r3, #0
  17422. 8007d74: d00a beq.n 8007d8c <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  17423. {
  17424. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  17425. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  17426. 8007d76: 68fa ldr r2, [r7, #12]
  17427. 8007d78: 4b17 ldr r3, [pc, #92] @ (8007dd8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  17428. 8007d7a: 4413 add r3, r2
  17429. 8007d7c: 009b lsls r3, r3, #2
  17430. 8007d7e: 461a mov r2, r3
  17431. 8007d80: 687b ldr r3, [r7, #4]
  17432. 8007d82: 66da str r2, [r3, #108] @ 0x6c
  17433. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  17434. 8007d84: 687b ldr r3, [r7, #4]
  17435. 8007d86: 4a15 ldr r2, [pc, #84] @ (8007ddc <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  17436. 8007d88: 671a str r2, [r3, #112] @ 0x70
  17437. 8007d8a: e009 b.n 8007da0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  17438. }
  17439. else
  17440. {
  17441. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  17442. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  17443. 8007d8c: 68fa ldr r2, [r7, #12]
  17444. 8007d8e: 4b14 ldr r3, [pc, #80] @ (8007de0 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  17445. 8007d90: 4413 add r3, r2
  17446. 8007d92: 009b lsls r3, r3, #2
  17447. 8007d94: 461a mov r2, r3
  17448. 8007d96: 687b ldr r3, [r7, #4]
  17449. 8007d98: 66da str r2, [r3, #108] @ 0x6c
  17450. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  17451. 8007d9a: 687b ldr r3, [r7, #4]
  17452. 8007d9c: 4a11 ldr r2, [pc, #68] @ (8007de4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  17453. 8007d9e: 671a str r2, [r3, #112] @ 0x70
  17454. }
  17455. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  17456. 8007da0: 68fb ldr r3, [r7, #12]
  17457. 8007da2: 3b01 subs r3, #1
  17458. 8007da4: 2201 movs r2, #1
  17459. 8007da6: 409a lsls r2, r3
  17460. 8007da8: 687b ldr r3, [r7, #4]
  17461. 8007daa: 675a str r2, [r3, #116] @ 0x74
  17462. }
  17463. }
  17464. 8007dac: bf00 nop
  17465. 8007dae: 3714 adds r7, #20
  17466. 8007db0: 46bd mov sp, r7
  17467. 8007db2: f85d 7b04 ldr.w r7, [sp], #4
  17468. 8007db6: 4770 bx lr
  17469. 8007db8: 58025408 .word 0x58025408
  17470. 8007dbc: 5802541c .word 0x5802541c
  17471. 8007dc0: 58025430 .word 0x58025430
  17472. 8007dc4: 58025444 .word 0x58025444
  17473. 8007dc8: 58025458 .word 0x58025458
  17474. 8007dcc: 5802546c .word 0x5802546c
  17475. 8007dd0: 58025480 .word 0x58025480
  17476. 8007dd4: 58025494 .word 0x58025494
  17477. 8007dd8: 1600963f .word 0x1600963f
  17478. 8007ddc: 58025940 .word 0x58025940
  17479. 8007de0: 1000823f .word 0x1000823f
  17480. 8007de4: 40020940 .word 0x40020940
  17481. 08007de8 <HAL_ETH_Init>:
  17482. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17483. * the configuration information for ETHERNET module
  17484. * @retval HAL status
  17485. */
  17486. HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth)
  17487. {
  17488. 8007de8: b580 push {r7, lr}
  17489. 8007dea: b084 sub sp, #16
  17490. 8007dec: af00 add r7, sp, #0
  17491. 8007dee: 6078 str r0, [r7, #4]
  17492. uint32_t tickstart;
  17493. if (heth == NULL)
  17494. 8007df0: 687b ldr r3, [r7, #4]
  17495. 8007df2: 2b00 cmp r3, #0
  17496. 8007df4: d101 bne.n 8007dfa <HAL_ETH_Init+0x12>
  17497. {
  17498. return HAL_ERROR;
  17499. 8007df6: 2301 movs r3, #1
  17500. 8007df8: e0e3 b.n 8007fc2 <HAL_ETH_Init+0x1da>
  17501. }
  17502. if (heth->gState == HAL_ETH_STATE_RESET)
  17503. 8007dfa: 687b ldr r3, [r7, #4]
  17504. 8007dfc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17505. 8007e00: 2b00 cmp r3, #0
  17506. 8007e02: d106 bne.n 8007e12 <HAL_ETH_Init+0x2a>
  17507. {
  17508. heth->gState = HAL_ETH_STATE_BUSY;
  17509. 8007e04: 687b ldr r3, [r7, #4]
  17510. 8007e06: 2223 movs r2, #35 @ 0x23
  17511. 8007e08: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17512. /* Init the low level hardware */
  17513. heth->MspInitCallback(heth);
  17514. #else
  17515. /* Init the low level hardware : GPIO, CLOCK, NVIC. */
  17516. HAL_ETH_MspInit(heth);
  17517. 8007e0c: 6878 ldr r0, [r7, #4]
  17518. 8007e0e: f008 fba1 bl 8010554 <HAL_ETH_MspInit>
  17519. #endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */
  17520. }
  17521. __HAL_RCC_SYSCFG_CLK_ENABLE();
  17522. 8007e12: 4b6e ldr r3, [pc, #440] @ (8007fcc <HAL_ETH_Init+0x1e4>)
  17523. 8007e14: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  17524. 8007e18: 4a6c ldr r2, [pc, #432] @ (8007fcc <HAL_ETH_Init+0x1e4>)
  17525. 8007e1a: f043 0302 orr.w r3, r3, #2
  17526. 8007e1e: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  17527. 8007e22: 4b6a ldr r3, [pc, #424] @ (8007fcc <HAL_ETH_Init+0x1e4>)
  17528. 8007e24: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  17529. 8007e28: f003 0302 and.w r3, r3, #2
  17530. 8007e2c: 60bb str r3, [r7, #8]
  17531. 8007e2e: 68bb ldr r3, [r7, #8]
  17532. if (heth->Init.MediaInterface == HAL_ETH_MII_MODE)
  17533. 8007e30: 687b ldr r3, [r7, #4]
  17534. 8007e32: 7a1b ldrb r3, [r3, #8]
  17535. 8007e34: 2b00 cmp r3, #0
  17536. 8007e36: d103 bne.n 8007e40 <HAL_ETH_Init+0x58>
  17537. {
  17538. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_MII);
  17539. 8007e38: 2000 movs r0, #0
  17540. 8007e3a: f7fd fa3d bl 80052b8 <HAL_SYSCFG_ETHInterfaceSelect>
  17541. 8007e3e: e003 b.n 8007e48 <HAL_ETH_Init+0x60>
  17542. }
  17543. else
  17544. {
  17545. HAL_SYSCFG_ETHInterfaceSelect(SYSCFG_ETH_RMII);
  17546. 8007e40: f44f 0000 mov.w r0, #8388608 @ 0x800000
  17547. 8007e44: f7fd fa38 bl 80052b8 <HAL_SYSCFG_ETHInterfaceSelect>
  17548. }
  17549. /* Dummy read to sync with ETH */
  17550. (void)SYSCFG->PMCR;
  17551. 8007e48: 4b61 ldr r3, [pc, #388] @ (8007fd0 <HAL_ETH_Init+0x1e8>)
  17552. 8007e4a: 685b ldr r3, [r3, #4]
  17553. /* Ethernet Software reset */
  17554. /* Set the SWR bit: resets all MAC subsystem internal registers and logic */
  17555. /* After reset all the registers holds their respective reset values */
  17556. SET_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR);
  17557. 8007e4c: 687b ldr r3, [r7, #4]
  17558. 8007e4e: 681b ldr r3, [r3, #0]
  17559. 8007e50: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17560. 8007e54: 681b ldr r3, [r3, #0]
  17561. 8007e56: 687a ldr r2, [r7, #4]
  17562. 8007e58: 6812 ldr r2, [r2, #0]
  17563. 8007e5a: f043 0301 orr.w r3, r3, #1
  17564. 8007e5e: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17565. 8007e62: 6013 str r3, [r2, #0]
  17566. /* Get tick */
  17567. tickstart = HAL_GetTick();
  17568. 8007e64: f7fd f9ec bl 8005240 <HAL_GetTick>
  17569. 8007e68: 60f8 str r0, [r7, #12]
  17570. /* Wait for software reset */
  17571. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  17572. 8007e6a: e011 b.n 8007e90 <HAL_ETH_Init+0xa8>
  17573. {
  17574. if (((HAL_GetTick() - tickstart) > ETH_SWRESET_TIMEOUT))
  17575. 8007e6c: f7fd f9e8 bl 8005240 <HAL_GetTick>
  17576. 8007e70: 4602 mov r2, r0
  17577. 8007e72: 68fb ldr r3, [r7, #12]
  17578. 8007e74: 1ad3 subs r3, r2, r3
  17579. 8007e76: f5b3 7ffa cmp.w r3, #500 @ 0x1f4
  17580. 8007e7a: d909 bls.n 8007e90 <HAL_ETH_Init+0xa8>
  17581. {
  17582. /* Set Error Code */
  17583. heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT;
  17584. 8007e7c: 687b ldr r3, [r7, #4]
  17585. 8007e7e: 2204 movs r2, #4
  17586. 8007e80: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17587. /* Set State as Error */
  17588. heth->gState = HAL_ETH_STATE_ERROR;
  17589. 8007e84: 687b ldr r3, [r7, #4]
  17590. 8007e86: 22e0 movs r2, #224 @ 0xe0
  17591. 8007e88: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17592. /* Return Error */
  17593. return HAL_ERROR;
  17594. 8007e8c: 2301 movs r3, #1
  17595. 8007e8e: e098 b.n 8007fc2 <HAL_ETH_Init+0x1da>
  17596. while (READ_BIT(heth->Instance->DMAMR, ETH_DMAMR_SWR) > 0U)
  17597. 8007e90: 687b ldr r3, [r7, #4]
  17598. 8007e92: 681b ldr r3, [r3, #0]
  17599. 8007e94: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17600. 8007e98: 681b ldr r3, [r3, #0]
  17601. 8007e9a: f003 0301 and.w r3, r3, #1
  17602. 8007e9e: 2b00 cmp r3, #0
  17603. 8007ea0: d1e4 bne.n 8007e6c <HAL_ETH_Init+0x84>
  17604. }
  17605. }
  17606. /*------------------ MDIO CSR Clock Range Configuration --------------------*/
  17607. HAL_ETH_SetMDIOClockRange(heth);
  17608. 8007ea2: 6878 ldr r0, [r7, #4]
  17609. 8007ea4: f000 ff1c bl 8008ce0 <HAL_ETH_SetMDIOClockRange>
  17610. /*------------------ MAC LPI 1US Tic Counter Configuration --------------------*/
  17611. WRITE_REG(heth->Instance->MAC1USTCR, (((uint32_t)HAL_RCC_GetHCLKFreq() / ETH_MAC_US_TICK) - 1U));
  17612. 8007ea8: f002 ff98 bl 800addc <HAL_RCC_GetHCLKFreq>
  17613. 8007eac: 4603 mov r3, r0
  17614. 8007eae: 4a49 ldr r2, [pc, #292] @ (8007fd4 <HAL_ETH_Init+0x1ec>)
  17615. 8007eb0: fba2 2303 umull r2, r3, r2, r3
  17616. 8007eb4: 0c9a lsrs r2, r3, #18
  17617. 8007eb6: 687b ldr r3, [r7, #4]
  17618. 8007eb8: 681b ldr r3, [r3, #0]
  17619. 8007eba: 3a01 subs r2, #1
  17620. 8007ebc: f8c3 20dc str.w r2, [r3, #220] @ 0xdc
  17621. /*------------------ MAC, MTL and DMA default Configuration ----------------*/
  17622. ETH_MACDMAConfig(heth);
  17623. 8007ec0: 6878 ldr r0, [r7, #4]
  17624. 8007ec2: f001 f90d bl 80090e0 <ETH_MACDMAConfig>
  17625. /* SET DSL to 64 bit */
  17626. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_DSL, ETH_DMACCR_DSL_64BIT);
  17627. 8007ec6: 687b ldr r3, [r7, #4]
  17628. 8007ec8: 681b ldr r3, [r3, #0]
  17629. 8007eca: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17630. 8007ece: f8d3 3100 ldr.w r3, [r3, #256] @ 0x100
  17631. 8007ed2: f423 13e0 bic.w r3, r3, #1835008 @ 0x1c0000
  17632. 8007ed6: 687a ldr r2, [r7, #4]
  17633. 8007ed8: 6812 ldr r2, [r2, #0]
  17634. 8007eda: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  17635. 8007ede: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17636. 8007ee2: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  17637. /* Set Receive Buffers Length (must be a multiple of 4) */
  17638. if ((heth->Init.RxBuffLen % 0x4U) != 0x0U)
  17639. 8007ee6: 687b ldr r3, [r7, #4]
  17640. 8007ee8: 695b ldr r3, [r3, #20]
  17641. 8007eea: f003 0303 and.w r3, r3, #3
  17642. 8007eee: 2b00 cmp r3, #0
  17643. 8007ef0: d009 beq.n 8007f06 <HAL_ETH_Init+0x11e>
  17644. {
  17645. /* Set Error Code */
  17646. heth->ErrorCode = HAL_ETH_ERROR_PARAM;
  17647. 8007ef2: 687b ldr r3, [r7, #4]
  17648. 8007ef4: 2201 movs r2, #1
  17649. 8007ef6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17650. /* Set State as Error */
  17651. heth->gState = HAL_ETH_STATE_ERROR;
  17652. 8007efa: 687b ldr r3, [r7, #4]
  17653. 8007efc: 22e0 movs r2, #224 @ 0xe0
  17654. 8007efe: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17655. /* Return Error */
  17656. return HAL_ERROR;
  17657. 8007f02: 2301 movs r3, #1
  17658. 8007f04: e05d b.n 8007fc2 <HAL_ETH_Init+0x1da>
  17659. }
  17660. else
  17661. {
  17662. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_RBSZ, ((heth->Init.RxBuffLen) << 1));
  17663. 8007f06: 687b ldr r3, [r7, #4]
  17664. 8007f08: 681b ldr r3, [r3, #0]
  17665. 8007f0a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17666. 8007f0e: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  17667. 8007f12: 4b31 ldr r3, [pc, #196] @ (8007fd8 <HAL_ETH_Init+0x1f0>)
  17668. 8007f14: 4013 ands r3, r2
  17669. 8007f16: 687a ldr r2, [r7, #4]
  17670. 8007f18: 6952 ldr r2, [r2, #20]
  17671. 8007f1a: 0051 lsls r1, r2, #1
  17672. 8007f1c: 687a ldr r2, [r7, #4]
  17673. 8007f1e: 6812 ldr r2, [r2, #0]
  17674. 8007f20: 430b orrs r3, r1
  17675. 8007f22: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17676. 8007f26: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  17677. }
  17678. /*------------------ DMA Tx Descriptors Configuration ----------------------*/
  17679. ETH_DMATxDescListInit(heth);
  17680. 8007f2a: 6878 ldr r0, [r7, #4]
  17681. 8007f2c: f001 f975 bl 800921a <ETH_DMATxDescListInit>
  17682. /*------------------ DMA Rx Descriptors Configuration ----------------------*/
  17683. ETH_DMARxDescListInit(heth);
  17684. 8007f30: 6878 ldr r0, [r7, #4]
  17685. 8007f32: f001 f9bb bl 80092ac <ETH_DMARxDescListInit>
  17686. /*--------------------- ETHERNET MAC Address Configuration ------------------*/
  17687. /* Set MAC addr bits 32 to 47 */
  17688. heth->Instance->MACA0HR = (((uint32_t)(heth->Init.MACAddr[5]) << 8) | (uint32_t)heth->Init.MACAddr[4]);
  17689. 8007f36: 687b ldr r3, [r7, #4]
  17690. 8007f38: 685b ldr r3, [r3, #4]
  17691. 8007f3a: 3305 adds r3, #5
  17692. 8007f3c: 781b ldrb r3, [r3, #0]
  17693. 8007f3e: 021a lsls r2, r3, #8
  17694. 8007f40: 687b ldr r3, [r7, #4]
  17695. 8007f42: 685b ldr r3, [r3, #4]
  17696. 8007f44: 3304 adds r3, #4
  17697. 8007f46: 781b ldrb r3, [r3, #0]
  17698. 8007f48: 4619 mov r1, r3
  17699. 8007f4a: 687b ldr r3, [r7, #4]
  17700. 8007f4c: 681b ldr r3, [r3, #0]
  17701. 8007f4e: 430a orrs r2, r1
  17702. 8007f50: f8c3 2300 str.w r2, [r3, #768] @ 0x300
  17703. /* Set MAC addr bits 0 to 31 */
  17704. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17705. 8007f54: 687b ldr r3, [r7, #4]
  17706. 8007f56: 685b ldr r3, [r3, #4]
  17707. 8007f58: 3303 adds r3, #3
  17708. 8007f5a: 781b ldrb r3, [r3, #0]
  17709. 8007f5c: 061a lsls r2, r3, #24
  17710. 8007f5e: 687b ldr r3, [r7, #4]
  17711. 8007f60: 685b ldr r3, [r3, #4]
  17712. 8007f62: 3302 adds r3, #2
  17713. 8007f64: 781b ldrb r3, [r3, #0]
  17714. 8007f66: 041b lsls r3, r3, #16
  17715. 8007f68: 431a orrs r2, r3
  17716. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  17717. 8007f6a: 687b ldr r3, [r7, #4]
  17718. 8007f6c: 685b ldr r3, [r3, #4]
  17719. 8007f6e: 3301 adds r3, #1
  17720. 8007f70: 781b ldrb r3, [r3, #0]
  17721. 8007f72: 021b lsls r3, r3, #8
  17722. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17723. 8007f74: 431a orrs r2, r3
  17724. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  17725. 8007f76: 687b ldr r3, [r7, #4]
  17726. 8007f78: 685b ldr r3, [r3, #4]
  17727. 8007f7a: 781b ldrb r3, [r3, #0]
  17728. 8007f7c: 4619 mov r1, r3
  17729. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17730. 8007f7e: 687b ldr r3, [r7, #4]
  17731. 8007f80: 681b ldr r3, [r3, #0]
  17732. ((uint32_t)(heth->Init.MACAddr[1]) << 8) | (uint32_t)heth->Init.MACAddr[0]);
  17733. 8007f82: 430a orrs r2, r1
  17734. heth->Instance->MACA0LR = (((uint32_t)(heth->Init.MACAddr[3]) << 24) | ((uint32_t)(heth->Init.MACAddr[2]) << 16) |
  17735. 8007f84: f8c3 2304 str.w r2, [r3, #772] @ 0x304
  17736. /* Disable Rx MMC Interrupts */
  17737. SET_BIT(heth->Instance->MMCRIMR, ETH_MMCRIMR_RXLPITRCIM | ETH_MMCRIMR_RXLPIUSCIM | \
  17738. 8007f88: 687b ldr r3, [r7, #4]
  17739. 8007f8a: 681b ldr r3, [r3, #0]
  17740. 8007f8c: f8d3 170c ldr.w r1, [r3, #1804] @ 0x70c
  17741. 8007f90: 687b ldr r3, [r7, #4]
  17742. 8007f92: 681a ldr r2, [r3, #0]
  17743. 8007f94: 4b11 ldr r3, [pc, #68] @ (8007fdc <HAL_ETH_Init+0x1f4>)
  17744. 8007f96: 430b orrs r3, r1
  17745. 8007f98: f8c2 370c str.w r3, [r2, #1804] @ 0x70c
  17746. ETH_MMCRIMR_RXUCGPIM | ETH_MMCRIMR_RXALGNERPIM | ETH_MMCRIMR_RXCRCERPIM);
  17747. /* Disable Tx MMC Interrupts */
  17748. SET_BIT(heth->Instance->MMCTIMR, ETH_MMCTIMR_TXLPITRCIM | ETH_MMCTIMR_TXLPIUSCIM | \
  17749. 8007f9c: 687b ldr r3, [r7, #4]
  17750. 8007f9e: 681b ldr r3, [r3, #0]
  17751. 8007fa0: f8d3 1710 ldr.w r1, [r3, #1808] @ 0x710
  17752. 8007fa4: 687b ldr r3, [r7, #4]
  17753. 8007fa6: 681a ldr r2, [r3, #0]
  17754. 8007fa8: 4b0d ldr r3, [pc, #52] @ (8007fe0 <HAL_ETH_Init+0x1f8>)
  17755. 8007faa: 430b orrs r3, r1
  17756. 8007fac: f8c2 3710 str.w r3, [r2, #1808] @ 0x710
  17757. ETH_MMCTIMR_TXGPKTIM | ETH_MMCTIMR_TXMCOLGPIM | ETH_MMCTIMR_TXSCOLGPIM);
  17758. heth->ErrorCode = HAL_ETH_ERROR_NONE;
  17759. 8007fb0: 687b ldr r3, [r7, #4]
  17760. 8007fb2: 2200 movs r2, #0
  17761. 8007fb4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  17762. heth->gState = HAL_ETH_STATE_READY;
  17763. 8007fb8: 687b ldr r3, [r7, #4]
  17764. 8007fba: 2210 movs r2, #16
  17765. 8007fbc: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17766. return HAL_OK;
  17767. 8007fc0: 2300 movs r3, #0
  17768. }
  17769. 8007fc2: 4618 mov r0, r3
  17770. 8007fc4: 3710 adds r7, #16
  17771. 8007fc6: 46bd mov sp, r7
  17772. 8007fc8: bd80 pop {r7, pc}
  17773. 8007fca: bf00 nop
  17774. 8007fcc: 58024400 .word 0x58024400
  17775. 8007fd0: 58000400 .word 0x58000400
  17776. 8007fd4: 431bde83 .word 0x431bde83
  17777. 8007fd8: ffff8001 .word 0xffff8001
  17778. 8007fdc: 0c020060 .word 0x0c020060
  17779. 8007fe0: 0c20c000 .word 0x0c20c000
  17780. 08007fe4 <HAL_ETH_Start_IT>:
  17781. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17782. * the configuration information for ETHERNET module
  17783. * @retval HAL status
  17784. */
  17785. HAL_StatusTypeDef HAL_ETH_Start_IT(ETH_HandleTypeDef *heth)
  17786. {
  17787. 8007fe4: b580 push {r7, lr}
  17788. 8007fe6: b082 sub sp, #8
  17789. 8007fe8: af00 add r7, sp, #0
  17790. 8007fea: 6078 str r0, [r7, #4]
  17791. if (heth->gState == HAL_ETH_STATE_READY)
  17792. 8007fec: 687b ldr r3, [r7, #4]
  17793. 8007fee: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17794. 8007ff2: 2b10 cmp r3, #16
  17795. 8007ff4: d165 bne.n 80080c2 <HAL_ETH_Start_IT+0xde>
  17796. {
  17797. heth->gState = HAL_ETH_STATE_BUSY;
  17798. 8007ff6: 687b ldr r3, [r7, #4]
  17799. 8007ff8: 2223 movs r2, #35 @ 0x23
  17800. 8007ffa: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17801. /* save IT mode to ETH Handle */
  17802. heth->RxDescList.ItMode = 1U;
  17803. 8007ffe: 687b ldr r3, [r7, #4]
  17804. 8008000: 2201 movs r2, #1
  17805. 8008002: 659a str r2, [r3, #88] @ 0x58
  17806. /* Set number of descriptors to build */
  17807. heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT;
  17808. 8008004: 687b ldr r3, [r7, #4]
  17809. 8008006: 2204 movs r2, #4
  17810. 8008008: 66da str r2, [r3, #108] @ 0x6c
  17811. /* Build all descriptors */
  17812. ETH_UpdateDescriptor(heth);
  17813. 800800a: 6878 ldr r0, [r7, #4]
  17814. 800800c: f000 f9e4 bl 80083d8 <ETH_UpdateDescriptor>
  17815. /* Enable the DMA transmission */
  17816. SET_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  17817. 8008010: 687b ldr r3, [r7, #4]
  17818. 8008012: 681b ldr r3, [r3, #0]
  17819. 8008014: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17820. 8008018: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  17821. 800801c: 687a ldr r2, [r7, #4]
  17822. 800801e: 6812 ldr r2, [r2, #0]
  17823. 8008020: f043 0301 orr.w r3, r3, #1
  17824. 8008024: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17825. 8008028: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  17826. /* Enable the DMA reception */
  17827. SET_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  17828. 800802c: 687b ldr r3, [r7, #4]
  17829. 800802e: 681b ldr r3, [r3, #0]
  17830. 8008030: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17831. 8008034: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  17832. 8008038: 687a ldr r2, [r7, #4]
  17833. 800803a: 6812 ldr r2, [r2, #0]
  17834. 800803c: f043 0301 orr.w r3, r3, #1
  17835. 8008040: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17836. 8008044: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  17837. /* Clear Tx and Rx process stopped flags */
  17838. heth->Instance->DMACSR |= (ETH_DMACSR_TPS | ETH_DMACSR_RPS);
  17839. 8008048: 687b ldr r3, [r7, #4]
  17840. 800804a: 681b ldr r3, [r3, #0]
  17841. 800804c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17842. 8008050: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  17843. 8008054: 687a ldr r2, [r7, #4]
  17844. 8008056: 6812 ldr r2, [r2, #0]
  17845. 8008058: f443 7381 orr.w r3, r3, #258 @ 0x102
  17846. 800805c: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17847. 8008060: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  17848. /* Set the Flush Transmit FIFO bit */
  17849. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  17850. 8008064: 687b ldr r3, [r7, #4]
  17851. 8008066: 681b ldr r3, [r3, #0]
  17852. 8008068: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  17853. 800806c: 687b ldr r3, [r7, #4]
  17854. 800806e: 681b ldr r3, [r3, #0]
  17855. 8008070: f042 0201 orr.w r2, r2, #1
  17856. 8008074: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  17857. /* Enable the MAC transmission */
  17858. SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  17859. 8008078: 687b ldr r3, [r7, #4]
  17860. 800807a: 681b ldr r3, [r3, #0]
  17861. 800807c: 681a ldr r2, [r3, #0]
  17862. 800807e: 687b ldr r3, [r7, #4]
  17863. 8008080: 681b ldr r3, [r3, #0]
  17864. 8008082: f042 0202 orr.w r2, r2, #2
  17865. 8008086: 601a str r2, [r3, #0]
  17866. /* Enable the MAC reception */
  17867. SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  17868. 8008088: 687b ldr r3, [r7, #4]
  17869. 800808a: 681b ldr r3, [r3, #0]
  17870. 800808c: 681a ldr r2, [r3, #0]
  17871. 800808e: 687b ldr r3, [r7, #4]
  17872. 8008090: 681b ldr r3, [r3, #0]
  17873. 8008092: f042 0201 orr.w r2, r2, #1
  17874. 8008096: 601a str r2, [r3, #0]
  17875. /* Enable ETH DMA interrupts:
  17876. - Tx complete interrupt
  17877. - Rx complete interrupt
  17878. - Fatal bus interrupt
  17879. */
  17880. __HAL_ETH_DMA_ENABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  17881. 8008098: 687b ldr r3, [r7, #4]
  17882. 800809a: 681b ldr r3, [r3, #0]
  17883. 800809c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17884. 80080a0: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  17885. 80080a4: 687b ldr r3, [r7, #4]
  17886. 80080a6: 681a ldr r2, [r3, #0]
  17887. 80080a8: f24d 03c1 movw r3, #53441 @ 0xd0c1
  17888. 80080ac: 430b orrs r3, r1
  17889. 80080ae: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17890. 80080b2: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  17891. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  17892. heth->gState = HAL_ETH_STATE_STARTED;
  17893. 80080b6: 687b ldr r3, [r7, #4]
  17894. 80080b8: 2223 movs r2, #35 @ 0x23
  17895. 80080ba: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17896. return HAL_OK;
  17897. 80080be: 2300 movs r3, #0
  17898. 80080c0: e000 b.n 80080c4 <HAL_ETH_Start_IT+0xe0>
  17899. }
  17900. else
  17901. {
  17902. return HAL_ERROR;
  17903. 80080c2: 2301 movs r3, #1
  17904. }
  17905. }
  17906. 80080c4: 4618 mov r0, r3
  17907. 80080c6: 3708 adds r7, #8
  17908. 80080c8: 46bd mov sp, r7
  17909. 80080ca: bd80 pop {r7, pc}
  17910. 080080cc <HAL_ETH_Stop_IT>:
  17911. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  17912. * the configuration information for ETHERNET module
  17913. * @retval HAL status
  17914. */
  17915. HAL_StatusTypeDef HAL_ETH_Stop_IT(ETH_HandleTypeDef *heth)
  17916. {
  17917. 80080cc: b480 push {r7}
  17918. 80080ce: b085 sub sp, #20
  17919. 80080d0: af00 add r7, sp, #0
  17920. 80080d2: 6078 str r0, [r7, #4]
  17921. ETH_DMADescTypeDef *dmarxdesc;
  17922. uint32_t descindex;
  17923. if (heth->gState == HAL_ETH_STATE_STARTED)
  17924. 80080d4: 687b ldr r3, [r7, #4]
  17925. 80080d6: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  17926. 80080da: 2b23 cmp r3, #35 @ 0x23
  17927. 80080dc: d165 bne.n 80081aa <HAL_ETH_Stop_IT+0xde>
  17928. {
  17929. /* Set the ETH peripheral state to BUSY */
  17930. heth->gState = HAL_ETH_STATE_BUSY;
  17931. 80080de: 687b ldr r3, [r7, #4]
  17932. 80080e0: 2223 movs r2, #35 @ 0x23
  17933. 80080e2: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  17934. /* Disable interrupts:
  17935. - Tx complete interrupt
  17936. - Rx complete interrupt
  17937. - Fatal bus interrupt
  17938. */
  17939. __HAL_ETH_DMA_DISABLE_IT(heth, (ETH_DMACIER_NIE | ETH_DMACIER_RIE | ETH_DMACIER_TIE |
  17940. 80080e6: 687b ldr r3, [r7, #4]
  17941. 80080e8: 681b ldr r3, [r3, #0]
  17942. 80080ea: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17943. 80080ee: f8d3 1134 ldr.w r1, [r3, #308] @ 0x134
  17944. 80080f2: 687b ldr r3, [r7, #4]
  17945. 80080f4: 681a ldr r2, [r3, #0]
  17946. 80080f6: 4b30 ldr r3, [pc, #192] @ (80081b8 <HAL_ETH_Stop_IT+0xec>)
  17947. 80080f8: 400b ands r3, r1
  17948. 80080fa: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17949. 80080fe: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  17950. ETH_DMACIER_FBEE | ETH_DMACIER_AIE | ETH_DMACIER_RBUE));
  17951. /* Disable the DMA transmission */
  17952. CLEAR_BIT(heth->Instance->DMACTCR, ETH_DMACTCR_ST);
  17953. 8008102: 687b ldr r3, [r7, #4]
  17954. 8008104: 681b ldr r3, [r3, #0]
  17955. 8008106: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17956. 800810a: f8d3 3104 ldr.w r3, [r3, #260] @ 0x104
  17957. 800810e: 687a ldr r2, [r7, #4]
  17958. 8008110: 6812 ldr r2, [r2, #0]
  17959. 8008112: f023 0301 bic.w r3, r3, #1
  17960. 8008116: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17961. 800811a: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  17962. /* Disable the DMA reception */
  17963. CLEAR_BIT(heth->Instance->DMACRCR, ETH_DMACRCR_SR);
  17964. 800811e: 687b ldr r3, [r7, #4]
  17965. 8008120: 681b ldr r3, [r3, #0]
  17966. 8008122: f503 5380 add.w r3, r3, #4096 @ 0x1000
  17967. 8008126: f8d3 3108 ldr.w r3, [r3, #264] @ 0x108
  17968. 800812a: 687a ldr r2, [r7, #4]
  17969. 800812c: 6812 ldr r2, [r2, #0]
  17970. 800812e: f023 0301 bic.w r3, r3, #1
  17971. 8008132: f502 5280 add.w r2, r2, #4096 @ 0x1000
  17972. 8008136: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  17973. /* Disable the MAC reception */
  17974. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE);
  17975. 800813a: 687b ldr r3, [r7, #4]
  17976. 800813c: 681b ldr r3, [r3, #0]
  17977. 800813e: 681a ldr r2, [r3, #0]
  17978. 8008140: 687b ldr r3, [r7, #4]
  17979. 8008142: 681b ldr r3, [r3, #0]
  17980. 8008144: f022 0201 bic.w r2, r2, #1
  17981. 8008148: 601a str r2, [r3, #0]
  17982. /* Set the Flush Transmit FIFO bit */
  17983. SET_BIT(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_FTQ);
  17984. 800814a: 687b ldr r3, [r7, #4]
  17985. 800814c: 681b ldr r3, [r3, #0]
  17986. 800814e: f8d3 2d00 ldr.w r2, [r3, #3328] @ 0xd00
  17987. 8008152: 687b ldr r3, [r7, #4]
  17988. 8008154: 681b ldr r3, [r3, #0]
  17989. 8008156: f042 0201 orr.w r2, r2, #1
  17990. 800815a: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  17991. /* Disable the MAC transmission */
  17992. CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE);
  17993. 800815e: 687b ldr r3, [r7, #4]
  17994. 8008160: 681b ldr r3, [r3, #0]
  17995. 8008162: 681a ldr r2, [r3, #0]
  17996. 8008164: 687b ldr r3, [r7, #4]
  17997. 8008166: 681b ldr r3, [r3, #0]
  17998. 8008168: f022 0202 bic.w r2, r2, #2
  17999. 800816c: 601a str r2, [r3, #0]
  18000. /* Clear IOC bit to all Rx descriptors */
  18001. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  18002. 800816e: 2300 movs r3, #0
  18003. 8008170: 60fb str r3, [r7, #12]
  18004. 8008172: e00e b.n 8008192 <HAL_ETH_Stop_IT+0xc6>
  18005. {
  18006. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descindex];
  18007. 8008174: 687b ldr r3, [r7, #4]
  18008. 8008176: 68fa ldr r2, [r7, #12]
  18009. 8008178: 3212 adds r2, #18
  18010. 800817a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18011. 800817e: 60bb str r3, [r7, #8]
  18012. CLEAR_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCRF_IOC);
  18013. 8008180: 68bb ldr r3, [r7, #8]
  18014. 8008182: 68db ldr r3, [r3, #12]
  18015. 8008184: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  18016. 8008188: 68bb ldr r3, [r7, #8]
  18017. 800818a: 60da str r2, [r3, #12]
  18018. for (descindex = 0; descindex < (uint32_t)ETH_RX_DESC_CNT; descindex++)
  18019. 800818c: 68fb ldr r3, [r7, #12]
  18020. 800818e: 3301 adds r3, #1
  18021. 8008190: 60fb str r3, [r7, #12]
  18022. 8008192: 68fb ldr r3, [r7, #12]
  18023. 8008194: 2b03 cmp r3, #3
  18024. 8008196: d9ed bls.n 8008174 <HAL_ETH_Stop_IT+0xa8>
  18025. }
  18026. heth->RxDescList.ItMode = 0U;
  18027. 8008198: 687b ldr r3, [r7, #4]
  18028. 800819a: 2200 movs r2, #0
  18029. 800819c: 659a str r2, [r3, #88] @ 0x58
  18030. heth->gState = HAL_ETH_STATE_READY;
  18031. 800819e: 687b ldr r3, [r7, #4]
  18032. 80081a0: 2210 movs r2, #16
  18033. 80081a2: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18034. /* Return function status */
  18035. return HAL_OK;
  18036. 80081a6: 2300 movs r3, #0
  18037. 80081a8: e000 b.n 80081ac <HAL_ETH_Stop_IT+0xe0>
  18038. }
  18039. else
  18040. {
  18041. return HAL_ERROR;
  18042. 80081aa: 2301 movs r3, #1
  18043. }
  18044. }
  18045. 80081ac: 4618 mov r0, r3
  18046. 80081ae: 3714 adds r7, #20
  18047. 80081b0: 46bd mov sp, r7
  18048. 80081b2: f85d 7b04 ldr.w r7, [sp], #4
  18049. 80081b6: 4770 bx lr
  18050. 80081b8: ffff2f3e .word 0xffff2f3e
  18051. 080081bc <HAL_ETH_Transmit_IT>:
  18052. * the configuration information for ETHERNET module
  18053. * @param pTxConfig: Hold the configuration of packet to be transmitted
  18054. * @retval HAL status
  18055. */
  18056. HAL_StatusTypeDef HAL_ETH_Transmit_IT(ETH_HandleTypeDef *heth, ETH_TxPacketConfigTypeDef *pTxConfig)
  18057. {
  18058. 80081bc: b580 push {r7, lr}
  18059. 80081be: b082 sub sp, #8
  18060. 80081c0: af00 add r7, sp, #0
  18061. 80081c2: 6078 str r0, [r7, #4]
  18062. 80081c4: 6039 str r1, [r7, #0]
  18063. if (pTxConfig == NULL)
  18064. 80081c6: 683b ldr r3, [r7, #0]
  18065. 80081c8: 2b00 cmp r3, #0
  18066. 80081ca: d109 bne.n 80081e0 <HAL_ETH_Transmit_IT+0x24>
  18067. {
  18068. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  18069. 80081cc: 687b ldr r3, [r7, #4]
  18070. 80081ce: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18071. 80081d2: f043 0201 orr.w r2, r3, #1
  18072. 80081d6: 687b ldr r3, [r7, #4]
  18073. 80081d8: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18074. return HAL_ERROR;
  18075. 80081dc: 2301 movs r3, #1
  18076. 80081de: e03a b.n 8008256 <HAL_ETH_Transmit_IT+0x9a>
  18077. }
  18078. if (heth->gState == HAL_ETH_STATE_STARTED)
  18079. 80081e0: 687b ldr r3, [r7, #4]
  18080. 80081e2: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18081. 80081e6: 2b23 cmp r3, #35 @ 0x23
  18082. 80081e8: d134 bne.n 8008254 <HAL_ETH_Transmit_IT+0x98>
  18083. {
  18084. /* Save the packet pointer to release. */
  18085. heth->TxDescList.CurrentPacketAddress = (uint32_t *)pTxConfig->pData;
  18086. 80081ea: 683b ldr r3, [r7, #0]
  18087. 80081ec: 6b5a ldr r2, [r3, #52] @ 0x34
  18088. 80081ee: 687b ldr r3, [r7, #4]
  18089. 80081f0: 63da str r2, [r3, #60] @ 0x3c
  18090. /* Config DMA Tx descriptor by Tx Packet info */
  18091. if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 1) != HAL_ETH_ERROR_NONE)
  18092. 80081f2: 2201 movs r2, #1
  18093. 80081f4: 6839 ldr r1, [r7, #0]
  18094. 80081f6: 6878 ldr r0, [r7, #4]
  18095. 80081f8: f001 f8b6 bl 8009368 <ETH_Prepare_Tx_Descriptors>
  18096. 80081fc: 4603 mov r3, r0
  18097. 80081fe: 2b00 cmp r3, #0
  18098. 8008200: d009 beq.n 8008216 <HAL_ETH_Transmit_IT+0x5a>
  18099. {
  18100. heth->ErrorCode |= HAL_ETH_ERROR_BUSY;
  18101. 8008202: 687b ldr r3, [r7, #4]
  18102. 8008204: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18103. 8008208: f043 0202 orr.w r2, r3, #2
  18104. 800820c: 687b ldr r3, [r7, #4]
  18105. 800820e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18106. return HAL_ERROR;
  18107. 8008212: 2301 movs r3, #1
  18108. 8008214: e01f b.n 8008256 <HAL_ETH_Transmit_IT+0x9a>
  18109. __ASM volatile ("dsb 0xF":::"memory");
  18110. 8008216: f3bf 8f4f dsb sy
  18111. }
  18112. 800821a: bf00 nop
  18113. /* Ensure completion of descriptor preparation before transmission start */
  18114. __DSB();
  18115. /* Incr current tx desc index */
  18116. INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U);
  18117. 800821c: 687b ldr r3, [r7, #4]
  18118. 800821e: 6a9b ldr r3, [r3, #40] @ 0x28
  18119. 8008220: 1c5a adds r2, r3, #1
  18120. 8008222: 687b ldr r3, [r7, #4]
  18121. 8008224: 629a str r2, [r3, #40] @ 0x28
  18122. 8008226: 687b ldr r3, [r7, #4]
  18123. 8008228: 6a9b ldr r3, [r3, #40] @ 0x28
  18124. 800822a: 2b03 cmp r3, #3
  18125. 800822c: d904 bls.n 8008238 <HAL_ETH_Transmit_IT+0x7c>
  18126. 800822e: 687b ldr r3, [r7, #4]
  18127. 8008230: 6a9b ldr r3, [r3, #40] @ 0x28
  18128. 8008232: 1f1a subs r2, r3, #4
  18129. 8008234: 687b ldr r3, [r7, #4]
  18130. 8008236: 629a str r2, [r3, #40] @ 0x28
  18131. /* Start transmission */
  18132. /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */
  18133. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc]));
  18134. 8008238: 687b ldr r3, [r7, #4]
  18135. 800823a: 6a99 ldr r1, [r3, #40] @ 0x28
  18136. 800823c: 687b ldr r3, [r7, #4]
  18137. 800823e: 681a ldr r2, [r3, #0]
  18138. 8008240: 687b ldr r3, [r7, #4]
  18139. 8008242: 3106 adds r1, #6
  18140. 8008244: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  18141. 8008248: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18142. 800824c: f8c2 3120 str.w r3, [r2, #288] @ 0x120
  18143. return HAL_OK;
  18144. 8008250: 2300 movs r3, #0
  18145. 8008252: e000 b.n 8008256 <HAL_ETH_Transmit_IT+0x9a>
  18146. }
  18147. else
  18148. {
  18149. return HAL_ERROR;
  18150. 8008254: 2301 movs r3, #1
  18151. }
  18152. }
  18153. 8008256: 4618 mov r0, r3
  18154. 8008258: 3708 adds r7, #8
  18155. 800825a: 46bd mov sp, r7
  18156. 800825c: bd80 pop {r7, pc}
  18157. 0800825e <HAL_ETH_ReadData>:
  18158. * the configuration information for ETHERNET module
  18159. * @param pAppBuff: Pointer to an application buffer to receive the packet.
  18160. * @retval HAL status
  18161. */
  18162. HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff)
  18163. {
  18164. 800825e: b580 push {r7, lr}
  18165. 8008260: b088 sub sp, #32
  18166. 8008262: af00 add r7, sp, #0
  18167. 8008264: 6078 str r0, [r7, #4]
  18168. 8008266: 6039 str r1, [r7, #0]
  18169. uint32_t descidx;
  18170. ETH_DMADescTypeDef *dmarxdesc;
  18171. uint32_t desccnt = 0U;
  18172. 8008268: 2300 movs r3, #0
  18173. 800826a: 617b str r3, [r7, #20]
  18174. uint32_t desccntmax;
  18175. uint32_t bufflength;
  18176. uint8_t rxdataready = 0U;
  18177. 800826c: 2300 movs r3, #0
  18178. 800826e: 74fb strb r3, [r7, #19]
  18179. if (pAppBuff == NULL)
  18180. 8008270: 683b ldr r3, [r7, #0]
  18181. 8008272: 2b00 cmp r3, #0
  18182. 8008274: d109 bne.n 800828a <HAL_ETH_ReadData+0x2c>
  18183. {
  18184. heth->ErrorCode |= HAL_ETH_ERROR_PARAM;
  18185. 8008276: 687b ldr r3, [r7, #4]
  18186. 8008278: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18187. 800827c: f043 0201 orr.w r2, r3, #1
  18188. 8008280: 687b ldr r3, [r7, #4]
  18189. 8008282: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18190. return HAL_ERROR;
  18191. 8008286: 2301 movs r3, #1
  18192. 8008288: e0a2 b.n 80083d0 <HAL_ETH_ReadData+0x172>
  18193. }
  18194. if (heth->gState != HAL_ETH_STATE_STARTED)
  18195. 800828a: 687b ldr r3, [r7, #4]
  18196. 800828c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  18197. 8008290: 2b23 cmp r3, #35 @ 0x23
  18198. 8008292: d001 beq.n 8008298 <HAL_ETH_ReadData+0x3a>
  18199. {
  18200. return HAL_ERROR;
  18201. 8008294: 2301 movs r3, #1
  18202. 8008296: e09b b.n 80083d0 <HAL_ETH_ReadData+0x172>
  18203. }
  18204. descidx = heth->RxDescList.RxDescIdx;
  18205. 8008298: 687b ldr r3, [r7, #4]
  18206. 800829a: 6ddb ldr r3, [r3, #92] @ 0x5c
  18207. 800829c: 61fb str r3, [r7, #28]
  18208. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18209. 800829e: 687b ldr r3, [r7, #4]
  18210. 80082a0: 69fa ldr r2, [r7, #28]
  18211. 80082a2: 3212 adds r2, #18
  18212. 80082a4: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18213. 80082a8: 61bb str r3, [r7, #24]
  18214. desccntmax = ETH_RX_DESC_CNT - heth->RxDescList.RxBuildDescCnt;
  18215. 80082aa: 687b ldr r3, [r7, #4]
  18216. 80082ac: 6edb ldr r3, [r3, #108] @ 0x6c
  18217. 80082ae: f1c3 0304 rsb r3, r3, #4
  18218. 80082b2: 60fb str r3, [r7, #12]
  18219. /* Check if descriptor is not owned by DMA */
  18220. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18221. 80082b4: e064 b.n 8008380 <HAL_ETH_ReadData+0x122>
  18222. && (rxdataready == 0U))
  18223. {
  18224. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_CTXT) != (uint32_t)RESET)
  18225. 80082b6: 69bb ldr r3, [r7, #24]
  18226. 80082b8: 68db ldr r3, [r3, #12]
  18227. 80082ba: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  18228. 80082be: 2b00 cmp r3, #0
  18229. 80082c0: d007 beq.n 80082d2 <HAL_ETH_ReadData+0x74>
  18230. {
  18231. /* Get timestamp high */
  18232. heth->RxDescList.TimeStamp.TimeStampHigh = dmarxdesc->DESC1;
  18233. 80082c2: 69bb ldr r3, [r7, #24]
  18234. 80082c4: 685a ldr r2, [r3, #4]
  18235. 80082c6: 687b ldr r3, [r7, #4]
  18236. 80082c8: 679a str r2, [r3, #120] @ 0x78
  18237. /* Get timestamp low */
  18238. heth->RxDescList.TimeStamp.TimeStampLow = dmarxdesc->DESC0;
  18239. 80082ca: 69bb ldr r3, [r7, #24]
  18240. 80082cc: 681a ldr r2, [r3, #0]
  18241. 80082ce: 687b ldr r3, [r7, #4]
  18242. 80082d0: 675a str r2, [r3, #116] @ 0x74
  18243. }
  18244. if ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET) || (heth->RxDescList.pRxStart != NULL))
  18245. 80082d2: 69bb ldr r3, [r7, #24]
  18246. 80082d4: 68db ldr r3, [r3, #12]
  18247. 80082d6: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18248. 80082da: 2b00 cmp r3, #0
  18249. 80082dc: d103 bne.n 80082e6 <HAL_ETH_ReadData+0x88>
  18250. 80082de: 687b ldr r3, [r7, #4]
  18251. 80082e0: 6fdb ldr r3, [r3, #124] @ 0x7c
  18252. 80082e2: 2b00 cmp r3, #0
  18253. 80082e4: d03a beq.n 800835c <HAL_ETH_ReadData+0xfe>
  18254. {
  18255. /* Check if first descriptor */
  18256. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_FD) != (uint32_t)RESET)
  18257. 80082e6: 69bb ldr r3, [r7, #24]
  18258. 80082e8: 68db ldr r3, [r3, #12]
  18259. 80082ea: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18260. 80082ee: 2b00 cmp r3, #0
  18261. 80082f0: d005 beq.n 80082fe <HAL_ETH_ReadData+0xa0>
  18262. {
  18263. heth->RxDescList.RxDescCnt = 0;
  18264. 80082f2: 687b ldr r3, [r7, #4]
  18265. 80082f4: 2200 movs r2, #0
  18266. 80082f6: 661a str r2, [r3, #96] @ 0x60
  18267. heth->RxDescList.RxDataLength = 0;
  18268. 80082f8: 687b ldr r3, [r7, #4]
  18269. 80082fa: 2200 movs r2, #0
  18270. 80082fc: 665a str r2, [r3, #100] @ 0x64
  18271. }
  18272. /* Get the Frame Length of the received packet: substruct 4 bytes of the CRC */
  18273. bufflength = READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_PL) - heth->RxDescList.RxDataLength;
  18274. 80082fe: 69bb ldr r3, [r7, #24]
  18275. 8008300: 68db ldr r3, [r3, #12]
  18276. 8008302: f3c3 020e ubfx r2, r3, #0, #15
  18277. 8008306: 687b ldr r3, [r7, #4]
  18278. 8008308: 6e5b ldr r3, [r3, #100] @ 0x64
  18279. 800830a: 1ad3 subs r3, r2, r3
  18280. 800830c: 60bb str r3, [r7, #8]
  18281. /* Check if last descriptor */
  18282. if (READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_LD) != (uint32_t)RESET)
  18283. 800830e: 69bb ldr r3, [r7, #24]
  18284. 8008310: 68db ldr r3, [r3, #12]
  18285. 8008312: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  18286. 8008316: 2b00 cmp r3, #0
  18287. 8008318: d005 beq.n 8008326 <HAL_ETH_ReadData+0xc8>
  18288. {
  18289. /* Save Last descriptor index */
  18290. heth->RxDescList.pRxLastRxDesc = dmarxdesc->DESC3;
  18291. 800831a: 69bb ldr r3, [r7, #24]
  18292. 800831c: 68da ldr r2, [r3, #12]
  18293. 800831e: 687b ldr r3, [r7, #4]
  18294. 8008320: 671a str r2, [r3, #112] @ 0x70
  18295. /* Packet ready */
  18296. rxdataready = 1;
  18297. 8008322: 2301 movs r3, #1
  18298. 8008324: 74fb strb r3, [r7, #19]
  18299. /*Call registered Link callback*/
  18300. heth->rxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18301. (uint8_t *)dmarxdesc->BackupAddr0, bufflength);
  18302. #else
  18303. /* Link callback */
  18304. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18305. 8008326: 687b ldr r3, [r7, #4]
  18306. 8008328: f103 007c add.w r0, r3, #124 @ 0x7c
  18307. 800832c: 687b ldr r3, [r7, #4]
  18308. 800832e: f103 0180 add.w r1, r3, #128 @ 0x80
  18309. (uint8_t *)dmarxdesc->BackupAddr0, (uint16_t) bufflength);
  18310. 8008332: 69bb ldr r3, [r7, #24]
  18311. 8008334: 691b ldr r3, [r3, #16]
  18312. HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd,
  18313. 8008336: 461a mov r2, r3
  18314. 8008338: 68bb ldr r3, [r7, #8]
  18315. 800833a: b29b uxth r3, r3
  18316. 800833c: f008 fb0c bl 8010958 <HAL_ETH_RxLinkCallback>
  18317. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18318. heth->RxDescList.RxDescCnt++;
  18319. 8008340: 687b ldr r3, [r7, #4]
  18320. 8008342: 6e1b ldr r3, [r3, #96] @ 0x60
  18321. 8008344: 1c5a adds r2, r3, #1
  18322. 8008346: 687b ldr r3, [r7, #4]
  18323. 8008348: 661a str r2, [r3, #96] @ 0x60
  18324. heth->RxDescList.RxDataLength += bufflength;
  18325. 800834a: 687b ldr r3, [r7, #4]
  18326. 800834c: 6e5a ldr r2, [r3, #100] @ 0x64
  18327. 800834e: 68bb ldr r3, [r7, #8]
  18328. 8008350: 441a add r2, r3
  18329. 8008352: 687b ldr r3, [r7, #4]
  18330. 8008354: 665a str r2, [r3, #100] @ 0x64
  18331. /* Clear buffer pointer */
  18332. dmarxdesc->BackupAddr0 = 0;
  18333. 8008356: 69bb ldr r3, [r7, #24]
  18334. 8008358: 2200 movs r2, #0
  18335. 800835a: 611a str r2, [r3, #16]
  18336. }
  18337. /* Increment current rx descriptor index */
  18338. INCR_RX_DESC_INDEX(descidx, 1U);
  18339. 800835c: 69fb ldr r3, [r7, #28]
  18340. 800835e: 3301 adds r3, #1
  18341. 8008360: 61fb str r3, [r7, #28]
  18342. 8008362: 69fb ldr r3, [r7, #28]
  18343. 8008364: 2b03 cmp r3, #3
  18344. 8008366: d902 bls.n 800836e <HAL_ETH_ReadData+0x110>
  18345. 8008368: 69fb ldr r3, [r7, #28]
  18346. 800836a: 3b04 subs r3, #4
  18347. 800836c: 61fb str r3, [r7, #28]
  18348. /* Get current descriptor address */
  18349. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18350. 800836e: 687b ldr r3, [r7, #4]
  18351. 8008370: 69fa ldr r2, [r7, #28]
  18352. 8008372: 3212 adds r2, #18
  18353. 8008374: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18354. 8008378: 61bb str r3, [r7, #24]
  18355. desccnt++;
  18356. 800837a: 697b ldr r3, [r7, #20]
  18357. 800837c: 3301 adds r3, #1
  18358. 800837e: 617b str r3, [r7, #20]
  18359. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18360. 8008380: 69bb ldr r3, [r7, #24]
  18361. 8008382: 68db ldr r3, [r3, #12]
  18362. && (rxdataready == 0U))
  18363. 8008384: 2b00 cmp r3, #0
  18364. 8008386: db06 blt.n 8008396 <HAL_ETH_ReadData+0x138>
  18365. while ((READ_BIT(dmarxdesc->DESC3, ETH_DMARXNDESCWBF_OWN) == (uint32_t)RESET) && (desccnt < desccntmax)
  18366. 8008388: 697a ldr r2, [r7, #20]
  18367. 800838a: 68fb ldr r3, [r7, #12]
  18368. 800838c: 429a cmp r2, r3
  18369. 800838e: d202 bcs.n 8008396 <HAL_ETH_ReadData+0x138>
  18370. && (rxdataready == 0U))
  18371. 8008390: 7cfb ldrb r3, [r7, #19]
  18372. 8008392: 2b00 cmp r3, #0
  18373. 8008394: d08f beq.n 80082b6 <HAL_ETH_ReadData+0x58>
  18374. }
  18375. heth->RxDescList.RxBuildDescCnt += desccnt;
  18376. 8008396: 687b ldr r3, [r7, #4]
  18377. 8008398: 6eda ldr r2, [r3, #108] @ 0x6c
  18378. 800839a: 697b ldr r3, [r7, #20]
  18379. 800839c: 441a add r2, r3
  18380. 800839e: 687b ldr r3, [r7, #4]
  18381. 80083a0: 66da str r2, [r3, #108] @ 0x6c
  18382. if ((heth->RxDescList.RxBuildDescCnt) != 0U)
  18383. 80083a2: 687b ldr r3, [r7, #4]
  18384. 80083a4: 6edb ldr r3, [r3, #108] @ 0x6c
  18385. 80083a6: 2b00 cmp r3, #0
  18386. 80083a8: d002 beq.n 80083b0 <HAL_ETH_ReadData+0x152>
  18387. {
  18388. /* Update Descriptors */
  18389. ETH_UpdateDescriptor(heth);
  18390. 80083aa: 6878 ldr r0, [r7, #4]
  18391. 80083ac: f000 f814 bl 80083d8 <ETH_UpdateDescriptor>
  18392. }
  18393. heth->RxDescList.RxDescIdx = descidx;
  18394. 80083b0: 687b ldr r3, [r7, #4]
  18395. 80083b2: 69fa ldr r2, [r7, #28]
  18396. 80083b4: 65da str r2, [r3, #92] @ 0x5c
  18397. if (rxdataready == 1U)
  18398. 80083b6: 7cfb ldrb r3, [r7, #19]
  18399. 80083b8: 2b01 cmp r3, #1
  18400. 80083ba: d108 bne.n 80083ce <HAL_ETH_ReadData+0x170>
  18401. {
  18402. /* Return received packet */
  18403. *pAppBuff = heth->RxDescList.pRxStart;
  18404. 80083bc: 687b ldr r3, [r7, #4]
  18405. 80083be: 6fda ldr r2, [r3, #124] @ 0x7c
  18406. 80083c0: 683b ldr r3, [r7, #0]
  18407. 80083c2: 601a str r2, [r3, #0]
  18408. /* Reset first element */
  18409. heth->RxDescList.pRxStart = NULL;
  18410. 80083c4: 687b ldr r3, [r7, #4]
  18411. 80083c6: 2200 movs r2, #0
  18412. 80083c8: 67da str r2, [r3, #124] @ 0x7c
  18413. return HAL_OK;
  18414. 80083ca: 2300 movs r3, #0
  18415. 80083cc: e000 b.n 80083d0 <HAL_ETH_ReadData+0x172>
  18416. }
  18417. /* Packet not ready */
  18418. return HAL_ERROR;
  18419. 80083ce: 2301 movs r3, #1
  18420. }
  18421. 80083d0: 4618 mov r0, r3
  18422. 80083d2: 3720 adds r7, #32
  18423. 80083d4: 46bd mov sp, r7
  18424. 80083d6: bd80 pop {r7, pc}
  18425. 080083d8 <ETH_UpdateDescriptor>:
  18426. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18427. * the configuration information for ETHERNET module
  18428. * @retval HAL status
  18429. */
  18430. static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
  18431. {
  18432. 80083d8: b580 push {r7, lr}
  18433. 80083da: b088 sub sp, #32
  18434. 80083dc: af00 add r7, sp, #0
  18435. 80083de: 6078 str r0, [r7, #4]
  18436. uint32_t descidx;
  18437. uint32_t tailidx;
  18438. uint32_t desccount;
  18439. ETH_DMADescTypeDef *dmarxdesc;
  18440. uint8_t *buff = NULL;
  18441. 80083e0: 2300 movs r3, #0
  18442. 80083e2: 60bb str r3, [r7, #8]
  18443. uint8_t allocStatus = 1U;
  18444. 80083e4: 2301 movs r3, #1
  18445. 80083e6: 74fb strb r3, [r7, #19]
  18446. descidx = heth->RxDescList.RxBuildDescIdx;
  18447. 80083e8: 687b ldr r3, [r7, #4]
  18448. 80083ea: 6e9b ldr r3, [r3, #104] @ 0x68
  18449. 80083ec: 61fb str r3, [r7, #28]
  18450. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18451. 80083ee: 687b ldr r3, [r7, #4]
  18452. 80083f0: 69fa ldr r2, [r7, #28]
  18453. 80083f2: 3212 adds r2, #18
  18454. 80083f4: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18455. 80083f8: 617b str r3, [r7, #20]
  18456. desccount = heth->RxDescList.RxBuildDescCnt;
  18457. 80083fa: 687b ldr r3, [r7, #4]
  18458. 80083fc: 6edb ldr r3, [r3, #108] @ 0x6c
  18459. 80083fe: 61bb str r3, [r7, #24]
  18460. while ((desccount > 0U) && (allocStatus != 0U))
  18461. 8008400: e038 b.n 8008474 <ETH_UpdateDescriptor+0x9c>
  18462. {
  18463. /* Check if a buffer's attached the descriptor */
  18464. if (READ_REG(dmarxdesc->BackupAddr0) == 0U)
  18465. 8008402: 697b ldr r3, [r7, #20]
  18466. 8008404: 691b ldr r3, [r3, #16]
  18467. 8008406: 2b00 cmp r3, #0
  18468. 8008408: d112 bne.n 8008430 <ETH_UpdateDescriptor+0x58>
  18469. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18470. /*Call registered Allocate callback*/
  18471. heth->rxAllocateCallback(&buff);
  18472. #else
  18473. /* Allocate callback */
  18474. HAL_ETH_RxAllocateCallback(&buff);
  18475. 800840a: f107 0308 add.w r3, r7, #8
  18476. 800840e: 4618 mov r0, r3
  18477. 8008410: f008 fa72 bl 80108f8 <HAL_ETH_RxAllocateCallback>
  18478. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18479. if (buff == NULL)
  18480. 8008414: 68bb ldr r3, [r7, #8]
  18481. 8008416: 2b00 cmp r3, #0
  18482. 8008418: d102 bne.n 8008420 <ETH_UpdateDescriptor+0x48>
  18483. {
  18484. allocStatus = 0U;
  18485. 800841a: 2300 movs r3, #0
  18486. 800841c: 74fb strb r3, [r7, #19]
  18487. 800841e: e007 b.n 8008430 <ETH_UpdateDescriptor+0x58>
  18488. }
  18489. else
  18490. {
  18491. WRITE_REG(dmarxdesc->BackupAddr0, (uint32_t)buff);
  18492. 8008420: 68bb ldr r3, [r7, #8]
  18493. 8008422: 461a mov r2, r3
  18494. 8008424: 697b ldr r3, [r7, #20]
  18495. 8008426: 611a str r2, [r3, #16]
  18496. WRITE_REG(dmarxdesc->DESC0, (uint32_t)buff);
  18497. 8008428: 68bb ldr r3, [r7, #8]
  18498. 800842a: 461a mov r2, r3
  18499. 800842c: 697b ldr r3, [r7, #20]
  18500. 800842e: 601a str r2, [r3, #0]
  18501. }
  18502. }
  18503. if (allocStatus != 0U)
  18504. 8008430: 7cfb ldrb r3, [r7, #19]
  18505. 8008432: 2b00 cmp r3, #0
  18506. 8008434: d01e beq.n 8008474 <ETH_UpdateDescriptor+0x9c>
  18507. {
  18508. if (heth->RxDescList.ItMode != 0U)
  18509. 8008436: 687b ldr r3, [r7, #4]
  18510. 8008438: 6d9b ldr r3, [r3, #88] @ 0x58
  18511. 800843a: 2b00 cmp r3, #0
  18512. 800843c: d004 beq.n 8008448 <ETH_UpdateDescriptor+0x70>
  18513. {
  18514. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V | ETH_DMARXNDESCRF_IOC);
  18515. 800843e: 697b ldr r3, [r7, #20]
  18516. 8008440: f04f 4241 mov.w r2, #3238002688 @ 0xc1000000
  18517. 8008444: 60da str r2, [r3, #12]
  18518. 8008446: e003 b.n 8008450 <ETH_UpdateDescriptor+0x78>
  18519. }
  18520. else
  18521. {
  18522. WRITE_REG(dmarxdesc->DESC3, ETH_DMARXNDESCRF_OWN | ETH_DMARXNDESCRF_BUF1V);
  18523. 8008448: 697b ldr r3, [r7, #20]
  18524. 800844a: f04f 4201 mov.w r2, #2164260864 @ 0x81000000
  18525. 800844e: 60da str r2, [r3, #12]
  18526. }
  18527. /* Increment current rx descriptor index */
  18528. INCR_RX_DESC_INDEX(descidx, 1U);
  18529. 8008450: 69fb ldr r3, [r7, #28]
  18530. 8008452: 3301 adds r3, #1
  18531. 8008454: 61fb str r3, [r7, #28]
  18532. 8008456: 69fb ldr r3, [r7, #28]
  18533. 8008458: 2b03 cmp r3, #3
  18534. 800845a: d902 bls.n 8008462 <ETH_UpdateDescriptor+0x8a>
  18535. 800845c: 69fb ldr r3, [r7, #28]
  18536. 800845e: 3b04 subs r3, #4
  18537. 8008460: 61fb str r3, [r7, #28]
  18538. /* Get current descriptor address */
  18539. dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx];
  18540. 8008462: 687b ldr r3, [r7, #4]
  18541. 8008464: 69fa ldr r2, [r7, #28]
  18542. 8008466: 3212 adds r2, #18
  18543. 8008468: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  18544. 800846c: 617b str r3, [r7, #20]
  18545. desccount--;
  18546. 800846e: 69bb ldr r3, [r7, #24]
  18547. 8008470: 3b01 subs r3, #1
  18548. 8008472: 61bb str r3, [r7, #24]
  18549. while ((desccount > 0U) && (allocStatus != 0U))
  18550. 8008474: 69bb ldr r3, [r7, #24]
  18551. 8008476: 2b00 cmp r3, #0
  18552. 8008478: d002 beq.n 8008480 <ETH_UpdateDescriptor+0xa8>
  18553. 800847a: 7cfb ldrb r3, [r7, #19]
  18554. 800847c: 2b00 cmp r3, #0
  18555. 800847e: d1c0 bne.n 8008402 <ETH_UpdateDescriptor+0x2a>
  18556. }
  18557. }
  18558. if (heth->RxDescList.RxBuildDescCnt != desccount)
  18559. 8008480: 687b ldr r3, [r7, #4]
  18560. 8008482: 6edb ldr r3, [r3, #108] @ 0x6c
  18561. 8008484: 69ba ldr r2, [r7, #24]
  18562. 8008486: 429a cmp r2, r3
  18563. 8008488: d01b beq.n 80084c2 <ETH_UpdateDescriptor+0xea>
  18564. {
  18565. /* Set the tail pointer index */
  18566. tailidx = (descidx + 1U) % ETH_RX_DESC_CNT;
  18567. 800848a: 69fb ldr r3, [r7, #28]
  18568. 800848c: 3301 adds r3, #1
  18569. 800848e: f003 0303 and.w r3, r3, #3
  18570. 8008492: 60fb str r3, [r7, #12]
  18571. __ASM volatile ("dmb 0xF":::"memory");
  18572. 8008494: f3bf 8f5f dmb sy
  18573. }
  18574. 8008498: bf00 nop
  18575. /* DMB instruction to avoid race condition */
  18576. __DMB();
  18577. /* Set the Tail pointer address */
  18578. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (tailidx))));
  18579. 800849a: 687b ldr r3, [r7, #4]
  18580. 800849c: 6919 ldr r1, [r3, #16]
  18581. 800849e: 68fa ldr r2, [r7, #12]
  18582. 80084a0: 4613 mov r3, r2
  18583. 80084a2: 005b lsls r3, r3, #1
  18584. 80084a4: 4413 add r3, r2
  18585. 80084a6: 00db lsls r3, r3, #3
  18586. 80084a8: 18ca adds r2, r1, r3
  18587. 80084aa: 687b ldr r3, [r7, #4]
  18588. 80084ac: 681b ldr r3, [r3, #0]
  18589. 80084ae: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18590. 80084b2: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  18591. heth->RxDescList.RxBuildDescIdx = descidx;
  18592. 80084b6: 687b ldr r3, [r7, #4]
  18593. 80084b8: 69fa ldr r2, [r7, #28]
  18594. 80084ba: 669a str r2, [r3, #104] @ 0x68
  18595. heth->RxDescList.RxBuildDescCnt = desccount;
  18596. 80084bc: 687b ldr r3, [r7, #4]
  18597. 80084be: 69ba ldr r2, [r7, #24]
  18598. 80084c0: 66da str r2, [r3, #108] @ 0x6c
  18599. }
  18600. }
  18601. 80084c2: bf00 nop
  18602. 80084c4: 3720 adds r7, #32
  18603. 80084c6: 46bd mov sp, r7
  18604. 80084c8: bd80 pop {r7, pc}
  18605. 080084ca <HAL_ETH_ReleaseTxPacket>:
  18606. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18607. * the configuration information for ETHERNET module
  18608. * @retval HAL status
  18609. */
  18610. HAL_StatusTypeDef HAL_ETH_ReleaseTxPacket(ETH_HandleTypeDef *heth)
  18611. {
  18612. 80084ca: b580 push {r7, lr}
  18613. 80084cc: b086 sub sp, #24
  18614. 80084ce: af00 add r7, sp, #0
  18615. 80084d0: 6078 str r0, [r7, #4]
  18616. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  18617. 80084d2: 687b ldr r3, [r7, #4]
  18618. 80084d4: 3318 adds r3, #24
  18619. 80084d6: 60bb str r3, [r7, #8]
  18620. uint32_t numOfBuf = dmatxdesclist->BuffersInUse;
  18621. 80084d8: 68bb ldr r3, [r7, #8]
  18622. 80084da: 6a9b ldr r3, [r3, #40] @ 0x28
  18623. 80084dc: 617b str r3, [r7, #20]
  18624. uint32_t idx = dmatxdesclist->releaseIndex;
  18625. 80084de: 68bb ldr r3, [r7, #8]
  18626. 80084e0: 6adb ldr r3, [r3, #44] @ 0x2c
  18627. 80084e2: 613b str r3, [r7, #16]
  18628. uint8_t pktTxStatus = 1U;
  18629. 80084e4: 2301 movs r3, #1
  18630. 80084e6: 73fb strb r3, [r7, #15]
  18631. #ifdef HAL_ETH_USE_PTP
  18632. ETH_TimeStampTypeDef *timestamp = &heth->TxTimestamp;
  18633. #endif /* HAL_ETH_USE_PTP */
  18634. /* Loop through buffers in use. */
  18635. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  18636. 80084e8: e047 b.n 800857a <HAL_ETH_ReleaseTxPacket+0xb0>
  18637. {
  18638. pktInUse = 1U;
  18639. 80084ea: 2301 movs r3, #1
  18640. 80084ec: 73bb strb r3, [r7, #14]
  18641. numOfBuf--;
  18642. 80084ee: 697b ldr r3, [r7, #20]
  18643. 80084f0: 3b01 subs r3, #1
  18644. 80084f2: 617b str r3, [r7, #20]
  18645. /* If no packet, just examine the next packet. */
  18646. if (dmatxdesclist->PacketAddress[idx] == NULL)
  18647. 80084f4: 68ba ldr r2, [r7, #8]
  18648. 80084f6: 693b ldr r3, [r7, #16]
  18649. 80084f8: 3304 adds r3, #4
  18650. 80084fa: 009b lsls r3, r3, #2
  18651. 80084fc: 4413 add r3, r2
  18652. 80084fe: 685b ldr r3, [r3, #4]
  18653. 8008500: 2b00 cmp r3, #0
  18654. 8008502: d10a bne.n 800851a <HAL_ETH_ReleaseTxPacket+0x50>
  18655. {
  18656. /* No packet in use, skip to next. */
  18657. INCR_TX_DESC_INDEX(idx, 1U);
  18658. 8008504: 693b ldr r3, [r7, #16]
  18659. 8008506: 3301 adds r3, #1
  18660. 8008508: 613b str r3, [r7, #16]
  18661. 800850a: 693b ldr r3, [r7, #16]
  18662. 800850c: 2b03 cmp r3, #3
  18663. 800850e: d902 bls.n 8008516 <HAL_ETH_ReleaseTxPacket+0x4c>
  18664. 8008510: 693b ldr r3, [r7, #16]
  18665. 8008512: 3b04 subs r3, #4
  18666. 8008514: 613b str r3, [r7, #16]
  18667. pktInUse = 0U;
  18668. 8008516: 2300 movs r3, #0
  18669. 8008518: 73bb strb r3, [r7, #14]
  18670. }
  18671. if (pktInUse != 0U)
  18672. 800851a: 7bbb ldrb r3, [r7, #14]
  18673. 800851c: 2b00 cmp r3, #0
  18674. 800851e: d02c beq.n 800857a <HAL_ETH_ReleaseTxPacket+0xb0>
  18675. {
  18676. /* Determine if the packet has been transmitted. */
  18677. if ((heth->Init.TxDesc[idx].DESC3 & ETH_DMATXNDESCRF_OWN) == 0U)
  18678. 8008520: 687b ldr r3, [r7, #4]
  18679. 8008522: 68d9 ldr r1, [r3, #12]
  18680. 8008524: 693a ldr r2, [r7, #16]
  18681. 8008526: 4613 mov r3, r2
  18682. 8008528: 005b lsls r3, r3, #1
  18683. 800852a: 4413 add r3, r2
  18684. 800852c: 00db lsls r3, r3, #3
  18685. 800852e: 440b add r3, r1
  18686. 8008530: 68db ldr r3, [r3, #12]
  18687. 8008532: 2b00 cmp r3, #0
  18688. 8008534: db1f blt.n 8008576 <HAL_ETH_ReleaseTxPacket+0xac>
  18689. {
  18690. HAL_ETH_TxPtpCallback(dmatxdesclist->PacketAddress[idx], timestamp);
  18691. }
  18692. #endif /* HAL_ETH_USE_PTP */
  18693. /* Release the packet. */
  18694. HAL_ETH_TxFreeCallback(dmatxdesclist->PacketAddress[idx]);
  18695. 8008536: 68ba ldr r2, [r7, #8]
  18696. 8008538: 693b ldr r3, [r7, #16]
  18697. 800853a: 3304 adds r3, #4
  18698. 800853c: 009b lsls r3, r3, #2
  18699. 800853e: 4413 add r3, r2
  18700. 8008540: 685b ldr r3, [r3, #4]
  18701. 8008542: 4618 mov r0, r3
  18702. 8008544: f008 fa70 bl 8010a28 <HAL_ETH_TxFreeCallback>
  18703. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18704. /* Clear the entry in the in-use array. */
  18705. dmatxdesclist->PacketAddress[idx] = NULL;
  18706. 8008548: 68ba ldr r2, [r7, #8]
  18707. 800854a: 693b ldr r3, [r7, #16]
  18708. 800854c: 3304 adds r3, #4
  18709. 800854e: 009b lsls r3, r3, #2
  18710. 8008550: 4413 add r3, r2
  18711. 8008552: 2200 movs r2, #0
  18712. 8008554: 605a str r2, [r3, #4]
  18713. /* Update the transmit relesae index and number of buffers in use. */
  18714. INCR_TX_DESC_INDEX(idx, 1U);
  18715. 8008556: 693b ldr r3, [r7, #16]
  18716. 8008558: 3301 adds r3, #1
  18717. 800855a: 613b str r3, [r7, #16]
  18718. 800855c: 693b ldr r3, [r7, #16]
  18719. 800855e: 2b03 cmp r3, #3
  18720. 8008560: d902 bls.n 8008568 <HAL_ETH_ReleaseTxPacket+0x9e>
  18721. 8008562: 693b ldr r3, [r7, #16]
  18722. 8008564: 3b04 subs r3, #4
  18723. 8008566: 613b str r3, [r7, #16]
  18724. dmatxdesclist->BuffersInUse = numOfBuf;
  18725. 8008568: 68bb ldr r3, [r7, #8]
  18726. 800856a: 697a ldr r2, [r7, #20]
  18727. 800856c: 629a str r2, [r3, #40] @ 0x28
  18728. dmatxdesclist->releaseIndex = idx;
  18729. 800856e: 68bb ldr r3, [r7, #8]
  18730. 8008570: 693a ldr r2, [r7, #16]
  18731. 8008572: 62da str r2, [r3, #44] @ 0x2c
  18732. 8008574: e001 b.n 800857a <HAL_ETH_ReleaseTxPacket+0xb0>
  18733. }
  18734. else
  18735. {
  18736. /* Get out of the loop! */
  18737. pktTxStatus = 0U;
  18738. 8008576: 2300 movs r3, #0
  18739. 8008578: 73fb strb r3, [r7, #15]
  18740. while ((numOfBuf != 0U) && (pktTxStatus != 0U))
  18741. 800857a: 697b ldr r3, [r7, #20]
  18742. 800857c: 2b00 cmp r3, #0
  18743. 800857e: d002 beq.n 8008586 <HAL_ETH_ReleaseTxPacket+0xbc>
  18744. 8008580: 7bfb ldrb r3, [r7, #15]
  18745. 8008582: 2b00 cmp r3, #0
  18746. 8008584: d1b1 bne.n 80084ea <HAL_ETH_ReleaseTxPacket+0x20>
  18747. }
  18748. }
  18749. }
  18750. return HAL_OK;
  18751. 8008586: 2300 movs r3, #0
  18752. }
  18753. 8008588: 4618 mov r0, r3
  18754. 800858a: 3718 adds r7, #24
  18755. 800858c: 46bd mov sp, r7
  18756. 800858e: bd80 pop {r7, pc}
  18757. 08008590 <HAL_ETH_IRQHandler>:
  18758. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  18759. * the configuration information for ETHERNET module
  18760. * @retval HAL status
  18761. */
  18762. void HAL_ETH_IRQHandler(ETH_HandleTypeDef *heth)
  18763. {
  18764. 8008590: b580 push {r7, lr}
  18765. 8008592: b086 sub sp, #24
  18766. 8008594: af00 add r7, sp, #0
  18767. 8008596: 6078 str r0, [r7, #4]
  18768. uint32_t mac_flag = READ_REG(heth->Instance->MACISR);
  18769. 8008598: 687b ldr r3, [r7, #4]
  18770. 800859a: 681b ldr r3, [r3, #0]
  18771. 800859c: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  18772. 80085a0: 617b str r3, [r7, #20]
  18773. uint32_t dma_flag = READ_REG(heth->Instance->DMACSR);
  18774. 80085a2: 687b ldr r3, [r7, #4]
  18775. 80085a4: 681b ldr r3, [r3, #0]
  18776. 80085a6: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18777. 80085aa: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  18778. 80085ae: 613b str r3, [r7, #16]
  18779. uint32_t dma_itsource = READ_REG(heth->Instance->DMACIER);
  18780. 80085b0: 687b ldr r3, [r7, #4]
  18781. 80085b2: 681b ldr r3, [r3, #0]
  18782. 80085b4: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18783. 80085b8: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  18784. 80085bc: 60fb str r3, [r7, #12]
  18785. uint32_t exti_d1_flag = READ_REG(EXTI_D1->PR3);
  18786. 80085be: 4b6d ldr r3, [pc, #436] @ (8008774 <HAL_ETH_IRQHandler+0x1e4>)
  18787. 80085c0: 6a9b ldr r3, [r3, #40] @ 0x28
  18788. 80085c2: 60bb str r3, [r7, #8]
  18789. #if defined(DUAL_CORE)
  18790. uint32_t exti_d2_flag = READ_REG(EXTI_D2->PR3);
  18791. #endif /* DUAL_CORE */
  18792. /* Packet received */
  18793. if (((dma_flag & ETH_DMACSR_RI) != 0U) && ((dma_itsource & ETH_DMACIER_RIE) != 0U))
  18794. 80085c4: 693b ldr r3, [r7, #16]
  18795. 80085c6: f003 0340 and.w r3, r3, #64 @ 0x40
  18796. 80085ca: 2b00 cmp r3, #0
  18797. 80085cc: d010 beq.n 80085f0 <HAL_ETH_IRQHandler+0x60>
  18798. 80085ce: 68fb ldr r3, [r7, #12]
  18799. 80085d0: f003 0340 and.w r3, r3, #64 @ 0x40
  18800. 80085d4: 2b00 cmp r3, #0
  18801. 80085d6: d00b beq.n 80085f0 <HAL_ETH_IRQHandler+0x60>
  18802. {
  18803. /* Clear the Eth DMA Rx IT pending bits */
  18804. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_RI | ETH_DMACSR_NIS);
  18805. 80085d8: 687b ldr r3, [r7, #4]
  18806. 80085da: 681b ldr r3, [r3, #0]
  18807. 80085dc: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18808. 80085e0: 461a mov r2, r3
  18809. 80085e2: f248 0340 movw r3, #32832 @ 0x8040
  18810. 80085e6: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  18811. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18812. /*Call registered Receive complete callback*/
  18813. heth->RxCpltCallback(heth);
  18814. #else
  18815. /* Receive complete callback */
  18816. HAL_ETH_RxCpltCallback(heth);
  18817. 80085ea: 6878 ldr r0, [r7, #4]
  18818. 80085ec: f007 fd0c bl 8010008 <HAL_ETH_RxCpltCallback>
  18819. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18820. }
  18821. /* Packet transmitted */
  18822. if (((dma_flag & ETH_DMACSR_TI) != 0U) && ((dma_itsource & ETH_DMACIER_TIE) != 0U))
  18823. 80085f0: 693b ldr r3, [r7, #16]
  18824. 80085f2: f003 0301 and.w r3, r3, #1
  18825. 80085f6: 2b00 cmp r3, #0
  18826. 80085f8: d010 beq.n 800861c <HAL_ETH_IRQHandler+0x8c>
  18827. 80085fa: 68fb ldr r3, [r7, #12]
  18828. 80085fc: f003 0301 and.w r3, r3, #1
  18829. 8008600: 2b00 cmp r3, #0
  18830. 8008602: d00b beq.n 800861c <HAL_ETH_IRQHandler+0x8c>
  18831. {
  18832. /* Clear the Eth DMA Tx IT pending bits */
  18833. __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMACSR_TI | ETH_DMACSR_NIS);
  18834. 8008604: 687b ldr r3, [r7, #4]
  18835. 8008606: 681b ldr r3, [r3, #0]
  18836. 8008608: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18837. 800860c: 461a mov r2, r3
  18838. 800860e: f248 0301 movw r3, #32769 @ 0x8001
  18839. 8008612: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  18840. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18841. /*Call registered Transmit complete callback*/
  18842. heth->TxCpltCallback(heth);
  18843. #else
  18844. /* Transfer complete callback */
  18845. HAL_ETH_TxCpltCallback(heth);
  18846. 8008616: 6878 ldr r0, [r7, #4]
  18847. 8008618: f007 fd06 bl 8010028 <HAL_ETH_TxCpltCallback>
  18848. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18849. }
  18850. /* ETH DMA Error */
  18851. if (((dma_flag & ETH_DMACSR_AIS) != 0U) && ((dma_itsource & ETH_DMACIER_AIE) != 0U))
  18852. 800861c: 693b ldr r3, [r7, #16]
  18853. 800861e: f403 4380 and.w r3, r3, #16384 @ 0x4000
  18854. 8008622: 2b00 cmp r3, #0
  18855. 8008624: d047 beq.n 80086b6 <HAL_ETH_IRQHandler+0x126>
  18856. 8008626: 68fb ldr r3, [r7, #12]
  18857. 8008628: f403 4380 and.w r3, r3, #16384 @ 0x4000
  18858. 800862c: 2b00 cmp r3, #0
  18859. 800862e: d042 beq.n 80086b6 <HAL_ETH_IRQHandler+0x126>
  18860. {
  18861. heth->ErrorCode |= HAL_ETH_ERROR_DMA;
  18862. 8008630: 687b ldr r3, [r7, #4]
  18863. 8008632: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18864. 8008636: f043 0208 orr.w r2, r3, #8
  18865. 800863a: 687b ldr r3, [r7, #4]
  18866. 800863c: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18867. /* if fatal bus error occurred */
  18868. if ((dma_flag & ETH_DMACSR_FBE) != 0U)
  18869. 8008640: 693b ldr r3, [r7, #16]
  18870. 8008642: f403 5380 and.w r3, r3, #4096 @ 0x1000
  18871. 8008646: 2b00 cmp r3, #0
  18872. 8008648: d01e beq.n 8008688 <HAL_ETH_IRQHandler+0xf8>
  18873. {
  18874. /* Get DMA error code */
  18875. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_FBE | ETH_DMACSR_TPS | ETH_DMACSR_RPS));
  18876. 800864a: 687b ldr r3, [r7, #4]
  18877. 800864c: 681b ldr r3, [r3, #0]
  18878. 800864e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18879. 8008652: f8d3 2160 ldr.w r2, [r3, #352] @ 0x160
  18880. 8008656: f241 1302 movw r3, #4354 @ 0x1102
  18881. 800865a: 4013 ands r3, r2
  18882. 800865c: 687a ldr r2, [r7, #4]
  18883. 800865e: f8c2 308c str.w r3, [r2, #140] @ 0x8c
  18884. /* Disable all interrupts */
  18885. __HAL_ETH_DMA_DISABLE_IT(heth, ETH_DMACIER_NIE | ETH_DMACIER_AIE);
  18886. 8008662: 687b ldr r3, [r7, #4]
  18887. 8008664: 681b ldr r3, [r3, #0]
  18888. 8008666: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18889. 800866a: f8d3 3134 ldr.w r3, [r3, #308] @ 0x134
  18890. 800866e: 687a ldr r2, [r7, #4]
  18891. 8008670: 6812 ldr r2, [r2, #0]
  18892. 8008672: f423 4340 bic.w r3, r3, #49152 @ 0xc000
  18893. 8008676: f502 5280 add.w r2, r2, #4096 @ 0x1000
  18894. 800867a: f8c2 3134 str.w r3, [r2, #308] @ 0x134
  18895. /* Set HAL state to ERROR */
  18896. heth->gState = HAL_ETH_STATE_ERROR;
  18897. 800867e: 687b ldr r3, [r7, #4]
  18898. 8008680: 22e0 movs r2, #224 @ 0xe0
  18899. 8008682: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18900. 8008686: e013 b.n 80086b0 <HAL_ETH_IRQHandler+0x120>
  18901. }
  18902. else
  18903. {
  18904. /* Get DMA error status */
  18905. heth->DMAErrorCode = READ_BIT(heth->Instance->DMACSR, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  18906. 8008688: 687b ldr r3, [r7, #4]
  18907. 800868a: 681b ldr r3, [r3, #0]
  18908. 800868c: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18909. 8008690: f8d3 3160 ldr.w r3, [r3, #352] @ 0x160
  18910. 8008694: f403 42cd and.w r2, r3, #26240 @ 0x6680
  18911. 8008698: 687b ldr r3, [r7, #4]
  18912. 800869a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  18913. ETH_DMACSR_RBU | ETH_DMACSR_AIS));
  18914. /* Clear the interrupt summary flag */
  18915. __HAL_ETH_DMA_CLEAR_IT(heth, (ETH_DMACSR_CDE | ETH_DMACSR_ETI | ETH_DMACSR_RWT |
  18916. 800869e: 687b ldr r3, [r7, #4]
  18917. 80086a0: 681b ldr r3, [r3, #0]
  18918. 80086a2: f503 5380 add.w r3, r3, #4096 @ 0x1000
  18919. 80086a6: 461a mov r2, r3
  18920. 80086a8: f44f 43cd mov.w r3, #26240 @ 0x6680
  18921. 80086ac: f8c2 3160 str.w r3, [r2, #352] @ 0x160
  18922. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18923. /* Call registered Error callback*/
  18924. heth->ErrorCallback(heth);
  18925. #else
  18926. /* Ethernet DMA Error callback */
  18927. HAL_ETH_ErrorCallback(heth);
  18928. 80086b0: 6878 ldr r0, [r7, #4]
  18929. 80086b2: f007 fcc9 bl 8010048 <HAL_ETH_ErrorCallback>
  18930. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18931. }
  18932. /* ETH MAC Error IT */
  18933. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  18934. 80086b6: 697b ldr r3, [r7, #20]
  18935. 80086b8: f403 4380 and.w r3, r3, #16384 @ 0x4000
  18936. 80086bc: 2b00 cmp r3, #0
  18937. 80086be: d104 bne.n 80086ca <HAL_ETH_IRQHandler+0x13a>
  18938. ((mac_flag & ETH_MACIER_TXSTSIE) == ETH_MACIER_TXSTSIE))
  18939. 80086c0: 697b ldr r3, [r7, #20]
  18940. 80086c2: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18941. if (((mac_flag & ETH_MACIER_RXSTSIE) == ETH_MACIER_RXSTSIE) || \
  18942. 80086c6: 2b00 cmp r3, #0
  18943. 80086c8: d019 beq.n 80086fe <HAL_ETH_IRQHandler+0x16e>
  18944. {
  18945. heth->ErrorCode |= HAL_ETH_ERROR_MAC;
  18946. 80086ca: 687b ldr r3, [r7, #4]
  18947. 80086cc: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  18948. 80086d0: f043 0210 orr.w r2, r3, #16
  18949. 80086d4: 687b ldr r3, [r7, #4]
  18950. 80086d6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  18951. /* Get MAC Rx Tx status and clear Status register pending bit */
  18952. heth->MACErrorCode = READ_REG(heth->Instance->MACRXTXSR);
  18953. 80086da: 687b ldr r3, [r7, #4]
  18954. 80086dc: 681b ldr r3, [r3, #0]
  18955. 80086de: f8d3 20b8 ldr.w r2, [r3, #184] @ 0xb8
  18956. 80086e2: 687b ldr r3, [r7, #4]
  18957. 80086e4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  18958. heth->gState = HAL_ETH_STATE_ERROR;
  18959. 80086e8: 687b ldr r3, [r7, #4]
  18960. 80086ea: 22e0 movs r2, #224 @ 0xe0
  18961. 80086ec: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  18962. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18963. /* Call registered Error callback*/
  18964. heth->ErrorCallback(heth);
  18965. #else
  18966. /* Ethernet Error callback */
  18967. HAL_ETH_ErrorCallback(heth);
  18968. 80086f0: 6878 ldr r0, [r7, #4]
  18969. 80086f2: f007 fca9 bl 8010048 <HAL_ETH_ErrorCallback>
  18970. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  18971. heth->MACErrorCode = (uint32_t)(0x0U);
  18972. 80086f6: 687b ldr r3, [r7, #4]
  18973. 80086f8: 2200 movs r2, #0
  18974. 80086fa: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  18975. }
  18976. /* ETH PMT IT */
  18977. if ((mac_flag & ETH_MAC_PMT_IT) != 0U)
  18978. 80086fe: 697b ldr r3, [r7, #20]
  18979. 8008700: f003 0310 and.w r3, r3, #16
  18980. 8008704: 2b00 cmp r3, #0
  18981. 8008706: d00f beq.n 8008728 <HAL_ETH_IRQHandler+0x198>
  18982. {
  18983. /* Get MAC Wake-up source and clear the status register pending bit */
  18984. heth->MACWakeUpEvent = READ_BIT(heth->Instance->MACPCSR, (ETH_MACPCSR_RWKPRCVD | ETH_MACPCSR_MGKPRCVD));
  18985. 8008708: 687b ldr r3, [r7, #4]
  18986. 800870a: 681b ldr r3, [r3, #0]
  18987. 800870c: f8d3 30c0 ldr.w r3, [r3, #192] @ 0xc0
  18988. 8008710: f003 0260 and.w r2, r3, #96 @ 0x60
  18989. 8008714: 687b ldr r3, [r7, #4]
  18990. 8008716: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  18991. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  18992. /* Call registered PMT callback*/
  18993. heth->PMTCallback(heth);
  18994. #else
  18995. /* Ethernet PMT callback */
  18996. HAL_ETH_PMTCallback(heth);
  18997. 800871a: 6878 ldr r0, [r7, #4]
  18998. 800871c: f000 f82c bl 8008778 <HAL_ETH_PMTCallback>
  18999. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19000. heth->MACWakeUpEvent = (uint32_t)(0x0U);
  19001. 8008720: 687b ldr r3, [r7, #4]
  19002. 8008722: 2200 movs r2, #0
  19003. 8008724: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  19004. }
  19005. /* ETH EEE IT */
  19006. if ((mac_flag & ETH_MAC_LPI_IT) != 0U)
  19007. 8008728: 697b ldr r3, [r7, #20]
  19008. 800872a: f003 0320 and.w r3, r3, #32
  19009. 800872e: 2b00 cmp r3, #0
  19010. 8008730: d00f beq.n 8008752 <HAL_ETH_IRQHandler+0x1c2>
  19011. {
  19012. /* Get MAC LPI interrupt source and clear the status register pending bit */
  19013. heth->MACLPIEvent = READ_BIT(heth->Instance->MACLCSR, 0x0000000FU);
  19014. 8008732: 687b ldr r3, [r7, #4]
  19015. 8008734: 681b ldr r3, [r3, #0]
  19016. 8008736: f8d3 30d0 ldr.w r3, [r3, #208] @ 0xd0
  19017. 800873a: f003 020f and.w r2, r3, #15
  19018. 800873e: 687b ldr r3, [r7, #4]
  19019. 8008740: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  19020. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19021. /* Call registered EEE callback*/
  19022. heth->EEECallback(heth);
  19023. #else
  19024. /* Ethernet EEE callback */
  19025. HAL_ETH_EEECallback(heth);
  19026. 8008744: 6878 ldr r0, [r7, #4]
  19027. 8008746: f000 f821 bl 800878c <HAL_ETH_EEECallback>
  19028. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19029. heth->MACLPIEvent = (uint32_t)(0x0U);
  19030. 800874a: 687b ldr r3, [r7, #4]
  19031. 800874c: 2200 movs r2, #0
  19032. 800874e: f8c3 2098 str.w r2, [r3, #152] @ 0x98
  19033. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19034. }
  19035. }
  19036. #else /* DUAL_CORE not defined */
  19037. /* check ETH WAKEUP exti flag */
  19038. if ((exti_d1_flag & ETH_WAKEUP_EXTI_LINE) != 0U)
  19039. 8008752: 68bb ldr r3, [r7, #8]
  19040. 8008754: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  19041. 8008758: 2b00 cmp r3, #0
  19042. 800875a: d006 beq.n 800876a <HAL_ETH_IRQHandler+0x1da>
  19043. {
  19044. /* Clear ETH WAKEUP Exti pending bit */
  19045. __HAL_ETH_WAKEUP_EXTI_CLEAR_FLAG(ETH_WAKEUP_EXTI_LINE);
  19046. 800875c: 4b05 ldr r3, [pc, #20] @ (8008774 <HAL_ETH_IRQHandler+0x1e4>)
  19047. 800875e: f44f 0280 mov.w r2, #4194304 @ 0x400000
  19048. 8008762: 629a str r2, [r3, #40] @ 0x28
  19049. #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1)
  19050. /* Call registered WakeUp callback*/
  19051. heth->WakeUpCallback(heth);
  19052. #else
  19053. /* ETH WAKEUP callback */
  19054. HAL_ETH_WakeUpCallback(heth);
  19055. 8008764: 6878 ldr r0, [r7, #4]
  19056. 8008766: f000 f81b bl 80087a0 <HAL_ETH_WakeUpCallback>
  19057. #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */
  19058. }
  19059. #endif /* DUAL_CORE */
  19060. }
  19061. 800876a: bf00 nop
  19062. 800876c: 3718 adds r7, #24
  19063. 800876e: 46bd mov sp, r7
  19064. 8008770: bd80 pop {r7, pc}
  19065. 8008772: bf00 nop
  19066. 8008774: 58000080 .word 0x58000080
  19067. 08008778 <HAL_ETH_PMTCallback>:
  19068. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19069. * the configuration information for ETHERNET module
  19070. * @retval None
  19071. */
  19072. __weak void HAL_ETH_PMTCallback(ETH_HandleTypeDef *heth)
  19073. {
  19074. 8008778: b480 push {r7}
  19075. 800877a: b083 sub sp, #12
  19076. 800877c: af00 add r7, sp, #0
  19077. 800877e: 6078 str r0, [r7, #4]
  19078. /* Prevent unused argument(s) compilation warning */
  19079. UNUSED(heth);
  19080. /* NOTE : This function Should not be modified, when the callback is needed,
  19081. the HAL_ETH_PMTCallback could be implemented in the user file
  19082. */
  19083. }
  19084. 8008780: bf00 nop
  19085. 8008782: 370c adds r7, #12
  19086. 8008784: 46bd mov sp, r7
  19087. 8008786: f85d 7b04 ldr.w r7, [sp], #4
  19088. 800878a: 4770 bx lr
  19089. 0800878c <HAL_ETH_EEECallback>:
  19090. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19091. * the configuration information for ETHERNET module
  19092. * @retval None
  19093. */
  19094. __weak void HAL_ETH_EEECallback(ETH_HandleTypeDef *heth)
  19095. {
  19096. 800878c: b480 push {r7}
  19097. 800878e: b083 sub sp, #12
  19098. 8008790: af00 add r7, sp, #0
  19099. 8008792: 6078 str r0, [r7, #4]
  19100. /* Prevent unused argument(s) compilation warning */
  19101. UNUSED(heth);
  19102. /* NOTE : This function Should not be modified, when the callback is needed,
  19103. the HAL_ETH_EEECallback could be implemented in the user file
  19104. */
  19105. }
  19106. 8008794: bf00 nop
  19107. 8008796: 370c adds r7, #12
  19108. 8008798: 46bd mov sp, r7
  19109. 800879a: f85d 7b04 ldr.w r7, [sp], #4
  19110. 800879e: 4770 bx lr
  19111. 080087a0 <HAL_ETH_WakeUpCallback>:
  19112. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19113. * the configuration information for ETHERNET module
  19114. * @retval None
  19115. */
  19116. __weak void HAL_ETH_WakeUpCallback(ETH_HandleTypeDef *heth)
  19117. {
  19118. 80087a0: b480 push {r7}
  19119. 80087a2: b083 sub sp, #12
  19120. 80087a4: af00 add r7, sp, #0
  19121. 80087a6: 6078 str r0, [r7, #4]
  19122. /* Prevent unused argument(s) compilation warning */
  19123. UNUSED(heth);
  19124. /* NOTE : This function Should not be modified, when the callback is needed,
  19125. the HAL_ETH_WakeUpCallback could be implemented in the user file
  19126. */
  19127. }
  19128. 80087a8: bf00 nop
  19129. 80087aa: 370c adds r7, #12
  19130. 80087ac: 46bd mov sp, r7
  19131. 80087ae: f85d 7b04 ldr.w r7, [sp], #4
  19132. 80087b2: 4770 bx lr
  19133. 080087b4 <HAL_ETH_ReadPHYRegister>:
  19134. * @param pRegValue: parameter to hold read value
  19135. * @retval HAL status
  19136. */
  19137. HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  19138. uint32_t *pRegValue)
  19139. {
  19140. 80087b4: b580 push {r7, lr}
  19141. 80087b6: b086 sub sp, #24
  19142. 80087b8: af00 add r7, sp, #0
  19143. 80087ba: 60f8 str r0, [r7, #12]
  19144. 80087bc: 60b9 str r1, [r7, #8]
  19145. 80087be: 607a str r2, [r7, #4]
  19146. 80087c0: 603b str r3, [r7, #0]
  19147. uint32_t tickstart;
  19148. uint32_t tmpreg;
  19149. /* Check for the Busy flag */
  19150. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  19151. 80087c2: 68fb ldr r3, [r7, #12]
  19152. 80087c4: 681b ldr r3, [r3, #0]
  19153. 80087c6: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19154. 80087ca: f003 0301 and.w r3, r3, #1
  19155. 80087ce: 2b00 cmp r3, #0
  19156. 80087d0: d001 beq.n 80087d6 <HAL_ETH_ReadPHYRegister+0x22>
  19157. {
  19158. return HAL_ERROR;
  19159. 80087d2: 2301 movs r3, #1
  19160. 80087d4: e03e b.n 8008854 <HAL_ETH_ReadPHYRegister+0xa0>
  19161. }
  19162. /* Get the MACMDIOAR value */
  19163. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  19164. 80087d6: 68fb ldr r3, [r7, #12]
  19165. 80087d8: 681b ldr r3, [r3, #0]
  19166. 80087da: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19167. 80087de: 617b str r3, [r7, #20]
  19168. - Set the PHY device address
  19169. - Set the PHY register address
  19170. - Set the read mode
  19171. - Set the MII Busy bit */
  19172. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  19173. 80087e0: 697b ldr r3, [r7, #20]
  19174. 80087e2: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  19175. 80087e6: 68bb ldr r3, [r7, #8]
  19176. 80087e8: 055b lsls r3, r3, #21
  19177. 80087ea: 4313 orrs r3, r2
  19178. 80087ec: 617b str r3, [r7, #20]
  19179. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  19180. 80087ee: 697b ldr r3, [r7, #20]
  19181. 80087f0: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  19182. 80087f4: 687b ldr r3, [r7, #4]
  19183. 80087f6: 041b lsls r3, r3, #16
  19184. 80087f8: 4313 orrs r3, r2
  19185. 80087fa: 617b str r3, [r7, #20]
  19186. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_RD);
  19187. 80087fc: 697b ldr r3, [r7, #20]
  19188. 80087fe: f043 030c orr.w r3, r3, #12
  19189. 8008802: 617b str r3, [r7, #20]
  19190. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  19191. 8008804: 697b ldr r3, [r7, #20]
  19192. 8008806: f043 0301 orr.w r3, r3, #1
  19193. 800880a: 617b str r3, [r7, #20]
  19194. /* Write the result value into the MDII Address register */
  19195. WRITE_REG(heth->Instance->MACMDIOAR, tmpreg);
  19196. 800880c: 68fb ldr r3, [r7, #12]
  19197. 800880e: 681b ldr r3, [r3, #0]
  19198. 8008810: 697a ldr r2, [r7, #20]
  19199. 8008812: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  19200. tickstart = HAL_GetTick();
  19201. 8008816: f7fc fd13 bl 8005240 <HAL_GetTick>
  19202. 800881a: 6138 str r0, [r7, #16]
  19203. /* Wait for the Busy flag */
  19204. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19205. 800881c: e009 b.n 8008832 <HAL_ETH_ReadPHYRegister+0x7e>
  19206. {
  19207. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  19208. 800881e: f7fc fd0f bl 8005240 <HAL_GetTick>
  19209. 8008822: 4602 mov r2, r0
  19210. 8008824: 693b ldr r3, [r7, #16]
  19211. 8008826: 1ad3 subs r3, r2, r3
  19212. 8008828: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  19213. 800882c: d901 bls.n 8008832 <HAL_ETH_ReadPHYRegister+0x7e>
  19214. {
  19215. return HAL_ERROR;
  19216. 800882e: 2301 movs r3, #1
  19217. 8008830: e010 b.n 8008854 <HAL_ETH_ReadPHYRegister+0xa0>
  19218. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19219. 8008832: 68fb ldr r3, [r7, #12]
  19220. 8008834: 681b ldr r3, [r3, #0]
  19221. 8008836: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19222. 800883a: f003 0301 and.w r3, r3, #1
  19223. 800883e: 2b00 cmp r3, #0
  19224. 8008840: d1ed bne.n 800881e <HAL_ETH_ReadPHYRegister+0x6a>
  19225. }
  19226. }
  19227. /* Get MACMIIDR value */
  19228. WRITE_REG(*pRegValue, (uint16_t)heth->Instance->MACMDIODR);
  19229. 8008842: 68fb ldr r3, [r7, #12]
  19230. 8008844: 681b ldr r3, [r3, #0]
  19231. 8008846: f8d3 3204 ldr.w r3, [r3, #516] @ 0x204
  19232. 800884a: b29b uxth r3, r3
  19233. 800884c: 461a mov r2, r3
  19234. 800884e: 683b ldr r3, [r7, #0]
  19235. 8008850: 601a str r2, [r3, #0]
  19236. return HAL_OK;
  19237. 8008852: 2300 movs r3, #0
  19238. }
  19239. 8008854: 4618 mov r0, r3
  19240. 8008856: 3718 adds r7, #24
  19241. 8008858: 46bd mov sp, r7
  19242. 800885a: bd80 pop {r7, pc}
  19243. 0800885c <HAL_ETH_WritePHYRegister>:
  19244. * @param RegValue: the value to write
  19245. * @retval HAL status
  19246. */
  19247. HAL_StatusTypeDef HAL_ETH_WritePHYRegister(const ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg,
  19248. uint32_t RegValue)
  19249. {
  19250. 800885c: b580 push {r7, lr}
  19251. 800885e: b086 sub sp, #24
  19252. 8008860: af00 add r7, sp, #0
  19253. 8008862: 60f8 str r0, [r7, #12]
  19254. 8008864: 60b9 str r1, [r7, #8]
  19255. 8008866: 607a str r2, [r7, #4]
  19256. 8008868: 603b str r3, [r7, #0]
  19257. uint32_t tickstart;
  19258. uint32_t tmpreg;
  19259. /* Check for the Busy flag */
  19260. if (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) != (uint32_t)RESET)
  19261. 800886a: 68fb ldr r3, [r7, #12]
  19262. 800886c: 681b ldr r3, [r3, #0]
  19263. 800886e: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19264. 8008872: f003 0301 and.w r3, r3, #1
  19265. 8008876: 2b00 cmp r3, #0
  19266. 8008878: d001 beq.n 800887e <HAL_ETH_WritePHYRegister+0x22>
  19267. {
  19268. return HAL_ERROR;
  19269. 800887a: 2301 movs r3, #1
  19270. 800887c: e03c b.n 80088f8 <HAL_ETH_WritePHYRegister+0x9c>
  19271. }
  19272. /* Get the MACMDIOAR value */
  19273. WRITE_REG(tmpreg, heth->Instance->MACMDIOAR);
  19274. 800887e: 68fb ldr r3, [r7, #12]
  19275. 8008880: 681b ldr r3, [r3, #0]
  19276. 8008882: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19277. 8008886: 617b str r3, [r7, #20]
  19278. - Set the PHY device address
  19279. - Set the PHY register address
  19280. - Set the write mode
  19281. - Set the MII Busy bit */
  19282. MODIFY_REG(tmpreg, ETH_MACMDIOAR_PA, (PHYAddr << 21));
  19283. 8008888: 697b ldr r3, [r7, #20]
  19284. 800888a: f023 7278 bic.w r2, r3, #65011712 @ 0x3e00000
  19285. 800888e: 68bb ldr r3, [r7, #8]
  19286. 8008890: 055b lsls r3, r3, #21
  19287. 8008892: 4313 orrs r3, r2
  19288. 8008894: 617b str r3, [r7, #20]
  19289. MODIFY_REG(tmpreg, ETH_MACMDIOAR_RDA, (PHYReg << 16));
  19290. 8008896: 697b ldr r3, [r7, #20]
  19291. 8008898: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
  19292. 800889c: 687b ldr r3, [r7, #4]
  19293. 800889e: 041b lsls r3, r3, #16
  19294. 80088a0: 4313 orrs r3, r2
  19295. 80088a2: 617b str r3, [r7, #20]
  19296. MODIFY_REG(tmpreg, ETH_MACMDIOAR_MOC, ETH_MACMDIOAR_MOC_WR);
  19297. 80088a4: 697b ldr r3, [r7, #20]
  19298. 80088a6: f023 030c bic.w r3, r3, #12
  19299. 80088aa: f043 0304 orr.w r3, r3, #4
  19300. 80088ae: 617b str r3, [r7, #20]
  19301. SET_BIT(tmpreg, ETH_MACMDIOAR_MB);
  19302. 80088b0: 697b ldr r3, [r7, #20]
  19303. 80088b2: f043 0301 orr.w r3, r3, #1
  19304. 80088b6: 617b str r3, [r7, #20]
  19305. /* Give the value to the MII data register */
  19306. WRITE_REG(ETH->MACMDIODR, (uint16_t)RegValue);
  19307. 80088b8: 683b ldr r3, [r7, #0]
  19308. 80088ba: b29a uxth r2, r3
  19309. 80088bc: 4b10 ldr r3, [pc, #64] @ (8008900 <HAL_ETH_WritePHYRegister+0xa4>)
  19310. 80088be: f8c3 2204 str.w r2, [r3, #516] @ 0x204
  19311. /* Write the result value into the MII Address register */
  19312. WRITE_REG(ETH->MACMDIOAR, tmpreg);
  19313. 80088c2: 4a0f ldr r2, [pc, #60] @ (8008900 <HAL_ETH_WritePHYRegister+0xa4>)
  19314. 80088c4: 697b ldr r3, [r7, #20]
  19315. 80088c6: f8c2 3200 str.w r3, [r2, #512] @ 0x200
  19316. tickstart = HAL_GetTick();
  19317. 80088ca: f7fc fcb9 bl 8005240 <HAL_GetTick>
  19318. 80088ce: 6138 str r0, [r7, #16]
  19319. /* Wait for the Busy flag */
  19320. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19321. 80088d0: e009 b.n 80088e6 <HAL_ETH_WritePHYRegister+0x8a>
  19322. {
  19323. if (((HAL_GetTick() - tickstart) > ETH_MDIO_BUS_TIMEOUT))
  19324. 80088d2: f7fc fcb5 bl 8005240 <HAL_GetTick>
  19325. 80088d6: 4602 mov r2, r0
  19326. 80088d8: 693b ldr r3, [r7, #16]
  19327. 80088da: 1ad3 subs r3, r2, r3
  19328. 80088dc: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  19329. 80088e0: d901 bls.n 80088e6 <HAL_ETH_WritePHYRegister+0x8a>
  19330. {
  19331. return HAL_ERROR;
  19332. 80088e2: 2301 movs r3, #1
  19333. 80088e4: e008 b.n 80088f8 <HAL_ETH_WritePHYRegister+0x9c>
  19334. while (READ_BIT(heth->Instance->MACMDIOAR, ETH_MACMDIOAR_MB) > 0U)
  19335. 80088e6: 68fb ldr r3, [r7, #12]
  19336. 80088e8: 681b ldr r3, [r3, #0]
  19337. 80088ea: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19338. 80088ee: f003 0301 and.w r3, r3, #1
  19339. 80088f2: 2b00 cmp r3, #0
  19340. 80088f4: d1ed bne.n 80088d2 <HAL_ETH_WritePHYRegister+0x76>
  19341. }
  19342. }
  19343. return HAL_OK;
  19344. 80088f6: 2300 movs r3, #0
  19345. }
  19346. 80088f8: 4618 mov r0, r3
  19347. 80088fa: 3718 adds r7, #24
  19348. 80088fc: 46bd mov sp, r7
  19349. 80088fe: bd80 pop {r7, pc}
  19350. 8008900: 40028000 .word 0x40028000
  19351. 08008904 <HAL_ETH_GetMACConfig>:
  19352. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that will hold
  19353. * the configuration of the MAC.
  19354. * @retval HAL Status
  19355. */
  19356. HAL_StatusTypeDef HAL_ETH_GetMACConfig(const ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  19357. {
  19358. 8008904: b480 push {r7}
  19359. 8008906: b083 sub sp, #12
  19360. 8008908: af00 add r7, sp, #0
  19361. 800890a: 6078 str r0, [r7, #4]
  19362. 800890c: 6039 str r1, [r7, #0]
  19363. if (macconf == NULL)
  19364. 800890e: 683b ldr r3, [r7, #0]
  19365. 8008910: 2b00 cmp r3, #0
  19366. 8008912: d101 bne.n 8008918 <HAL_ETH_GetMACConfig+0x14>
  19367. {
  19368. return HAL_ERROR;
  19369. 8008914: 2301 movs r3, #1
  19370. 8008916: e1c3 b.n 8008ca0 <HAL_ETH_GetMACConfig+0x39c>
  19371. }
  19372. /* Get MAC parameters */
  19373. macconf->PreambleLength = READ_BIT(heth->Instance->MACCR, ETH_MACCR_PRELEN);
  19374. 8008918: 687b ldr r3, [r7, #4]
  19375. 800891a: 681b ldr r3, [r3, #0]
  19376. 800891c: 681b ldr r3, [r3, #0]
  19377. 800891e: f003 020c and.w r2, r3, #12
  19378. 8008922: 683b ldr r3, [r7, #0]
  19379. 8008924: 62da str r2, [r3, #44] @ 0x2c
  19380. macconf->DeferralCheck = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DC) >> 4) > 0U) ? ENABLE : DISABLE;
  19381. 8008926: 687b ldr r3, [r7, #4]
  19382. 8008928: 681b ldr r3, [r3, #0]
  19383. 800892a: 681b ldr r3, [r3, #0]
  19384. 800892c: f003 0310 and.w r3, r3, #16
  19385. 8008930: 2b00 cmp r3, #0
  19386. 8008932: bf14 ite ne
  19387. 8008934: 2301 movne r3, #1
  19388. 8008936: 2300 moveq r3, #0
  19389. 8008938: b2db uxtb r3, r3
  19390. 800893a: 461a mov r2, r3
  19391. 800893c: 683b ldr r3, [r7, #0]
  19392. 800893e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  19393. macconf->BackOffLimit = READ_BIT(heth->Instance->MACCR, ETH_MACCR_BL);
  19394. 8008942: 687b ldr r3, [r7, #4]
  19395. 8008944: 681b ldr r3, [r3, #0]
  19396. 8008946: 681b ldr r3, [r3, #0]
  19397. 8008948: f003 0260 and.w r2, r3, #96 @ 0x60
  19398. 800894c: 683b ldr r3, [r7, #0]
  19399. 800894e: 625a str r2, [r3, #36] @ 0x24
  19400. macconf->RetryTransmission = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DR) >> 8) == 0U) ? ENABLE : DISABLE;
  19401. 8008950: 687b ldr r3, [r7, #4]
  19402. 8008952: 681b ldr r3, [r3, #0]
  19403. 8008954: 681b ldr r3, [r3, #0]
  19404. 8008956: f403 7380 and.w r3, r3, #256 @ 0x100
  19405. 800895a: 2b00 cmp r3, #0
  19406. 800895c: bf0c ite eq
  19407. 800895e: 2301 moveq r3, #1
  19408. 8008960: 2300 movne r3, #0
  19409. 8008962: b2db uxtb r3, r3
  19410. 8008964: 461a mov r2, r3
  19411. 8008966: 683b ldr r3, [r7, #0]
  19412. 8008968: f883 2020 strb.w r2, [r3, #32]
  19413. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  19414. 800896c: 687b ldr r3, [r7, #4]
  19415. 800896e: 681b ldr r3, [r3, #0]
  19416. 8008970: 681b ldr r3, [r3, #0]
  19417. 8008972: f403 7300 and.w r3, r3, #512 @ 0x200
  19418. ? ENABLE : DISABLE;
  19419. 8008976: 2b00 cmp r3, #0
  19420. 8008978: bf14 ite ne
  19421. 800897a: 2301 movne r3, #1
  19422. 800897c: 2300 moveq r3, #0
  19423. 800897e: b2db uxtb r3, r3
  19424. 8008980: 461a mov r2, r3
  19425. macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DCRS) >> 9) > 0U)
  19426. 8008982: 683b ldr r3, [r7, #0]
  19427. 8008984: 77da strb r2, [r3, #31]
  19428. macconf->ReceiveOwn = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DO) >> 10) == 0U) ? ENABLE : DISABLE;
  19429. 8008986: 687b ldr r3, [r7, #4]
  19430. 8008988: 681b ldr r3, [r3, #0]
  19431. 800898a: 681b ldr r3, [r3, #0]
  19432. 800898c: f403 6380 and.w r3, r3, #1024 @ 0x400
  19433. 8008990: 2b00 cmp r3, #0
  19434. 8008992: bf0c ite eq
  19435. 8008994: 2301 moveq r3, #1
  19436. 8008996: 2300 movne r3, #0
  19437. 8008998: b2db uxtb r3, r3
  19438. 800899a: 461a mov r2, r3
  19439. 800899c: 683b ldr r3, [r7, #0]
  19440. 800899e: 779a strb r2, [r3, #30]
  19441. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  19442. 80089a0: 687b ldr r3, [r7, #4]
  19443. 80089a2: 681b ldr r3, [r3, #0]
  19444. 80089a4: 681b ldr r3, [r3, #0]
  19445. ETH_MACCR_ECRSFD) >> 11) > 0U) ? ENABLE : DISABLE;
  19446. 80089a6: f403 6300 and.w r3, r3, #2048 @ 0x800
  19447. 80089aa: 2b00 cmp r3, #0
  19448. 80089ac: bf14 ite ne
  19449. 80089ae: 2301 movne r3, #1
  19450. 80089b0: 2300 moveq r3, #0
  19451. 80089b2: b2db uxtb r3, r3
  19452. 80089b4: 461a mov r2, r3
  19453. macconf->CarrierSenseBeforeTransmit = ((READ_BIT(heth->Instance->MACCR,
  19454. 80089b6: 683b ldr r3, [r7, #0]
  19455. 80089b8: 775a strb r2, [r3, #29]
  19456. macconf->LoopbackMode = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_LM) >> 12) > 0U) ? ENABLE : DISABLE;
  19457. 80089ba: 687b ldr r3, [r7, #4]
  19458. 80089bc: 681b ldr r3, [r3, #0]
  19459. 80089be: 681b ldr r3, [r3, #0]
  19460. 80089c0: f403 5380 and.w r3, r3, #4096 @ 0x1000
  19461. 80089c4: 2b00 cmp r3, #0
  19462. 80089c6: bf14 ite ne
  19463. 80089c8: 2301 movne r3, #1
  19464. 80089ca: 2300 moveq r3, #0
  19465. 80089cc: b2db uxtb r3, r3
  19466. 80089ce: 461a mov r2, r3
  19467. 80089d0: 683b ldr r3, [r7, #0]
  19468. 80089d2: 771a strb r2, [r3, #28]
  19469. macconf->DuplexMode = READ_BIT(heth->Instance->MACCR, ETH_MACCR_DM);
  19470. 80089d4: 687b ldr r3, [r7, #4]
  19471. 80089d6: 681b ldr r3, [r3, #0]
  19472. 80089d8: 681b ldr r3, [r3, #0]
  19473. 80089da: f403 5200 and.w r2, r3, #8192 @ 0x2000
  19474. 80089de: 683b ldr r3, [r7, #0]
  19475. 80089e0: 619a str r2, [r3, #24]
  19476. macconf->Speed = READ_BIT(heth->Instance->MACCR, ETH_MACCR_FES);
  19477. 80089e2: 687b ldr r3, [r7, #4]
  19478. 80089e4: 681b ldr r3, [r3, #0]
  19479. 80089e6: 681b ldr r3, [r3, #0]
  19480. 80089e8: f403 4280 and.w r2, r3, #16384 @ 0x4000
  19481. 80089ec: 683b ldr r3, [r7, #0]
  19482. 80089ee: 615a str r2, [r3, #20]
  19483. macconf->JumboPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JE) >> 16) > 0U) ? ENABLE : DISABLE;
  19484. 80089f0: 687b ldr r3, [r7, #4]
  19485. 80089f2: 681b ldr r3, [r3, #0]
  19486. 80089f4: 681b ldr r3, [r3, #0]
  19487. 80089f6: f403 3380 and.w r3, r3, #65536 @ 0x10000
  19488. 80089fa: 2b00 cmp r3, #0
  19489. 80089fc: bf14 ite ne
  19490. 80089fe: 2301 movne r3, #1
  19491. 8008a00: 2300 moveq r3, #0
  19492. 8008a02: b2db uxtb r3, r3
  19493. 8008a04: 461a mov r2, r3
  19494. 8008a06: 683b ldr r3, [r7, #0]
  19495. 8008a08: 749a strb r2, [r3, #18]
  19496. macconf->Jabber = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JD) >> 17) == 0U) ? ENABLE : DISABLE;
  19497. 8008a0a: 687b ldr r3, [r7, #4]
  19498. 8008a0c: 681b ldr r3, [r3, #0]
  19499. 8008a0e: 681b ldr r3, [r3, #0]
  19500. 8008a10: f403 3300 and.w r3, r3, #131072 @ 0x20000
  19501. 8008a14: 2b00 cmp r3, #0
  19502. 8008a16: bf0c ite eq
  19503. 8008a18: 2301 moveq r3, #1
  19504. 8008a1a: 2300 movne r3, #0
  19505. 8008a1c: b2db uxtb r3, r3
  19506. 8008a1e: 461a mov r2, r3
  19507. 8008a20: 683b ldr r3, [r7, #0]
  19508. 8008a22: 745a strb r2, [r3, #17]
  19509. macconf->Watchdog = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_WD) >> 19) == 0U) ? ENABLE : DISABLE;
  19510. 8008a24: 687b ldr r3, [r7, #4]
  19511. 8008a26: 681b ldr r3, [r3, #0]
  19512. 8008a28: 681b ldr r3, [r3, #0]
  19513. 8008a2a: f403 2300 and.w r3, r3, #524288 @ 0x80000
  19514. 8008a2e: 2b00 cmp r3, #0
  19515. 8008a30: bf0c ite eq
  19516. 8008a32: 2301 moveq r3, #1
  19517. 8008a34: 2300 movne r3, #0
  19518. 8008a36: b2db uxtb r3, r3
  19519. 8008a38: 461a mov r2, r3
  19520. 8008a3a: 683b ldr r3, [r7, #0]
  19521. 8008a3c: 741a strb r2, [r3, #16]
  19522. macconf->AutomaticPadCRCStrip = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_ACS) >> 20) > 0U) ? ENABLE : DISABLE;
  19523. 8008a3e: 687b ldr r3, [r7, #4]
  19524. 8008a40: 681b ldr r3, [r3, #0]
  19525. 8008a42: 681b ldr r3, [r3, #0]
  19526. 8008a44: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  19527. 8008a48: 2b00 cmp r3, #0
  19528. 8008a4a: bf14 ite ne
  19529. 8008a4c: 2301 movne r3, #1
  19530. 8008a4e: 2300 moveq r3, #0
  19531. 8008a50: b2db uxtb r3, r3
  19532. 8008a52: 461a mov r2, r3
  19533. 8008a54: 683b ldr r3, [r7, #0]
  19534. 8008a56: 73da strb r2, [r3, #15]
  19535. macconf->CRCStripTypePacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CST) >> 21) > 0U) ? ENABLE : DISABLE;
  19536. 8008a58: 687b ldr r3, [r7, #4]
  19537. 8008a5a: 681b ldr r3, [r3, #0]
  19538. 8008a5c: 681b ldr r3, [r3, #0]
  19539. 8008a5e: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  19540. 8008a62: 2b00 cmp r3, #0
  19541. 8008a64: bf14 ite ne
  19542. 8008a66: 2301 movne r3, #1
  19543. 8008a68: 2300 moveq r3, #0
  19544. 8008a6a: b2db uxtb r3, r3
  19545. 8008a6c: 461a mov r2, r3
  19546. 8008a6e: 683b ldr r3, [r7, #0]
  19547. 8008a70: 739a strb r2, [r3, #14]
  19548. macconf->Support2KPacket = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_S2KP) >> 22) > 0U) ? ENABLE : DISABLE;
  19549. 8008a72: 687b ldr r3, [r7, #4]
  19550. 8008a74: 681b ldr r3, [r3, #0]
  19551. 8008a76: 681b ldr r3, [r3, #0]
  19552. 8008a78: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  19553. 8008a7c: 2b00 cmp r3, #0
  19554. 8008a7e: bf14 ite ne
  19555. 8008a80: 2301 movne r3, #1
  19556. 8008a82: 2300 moveq r3, #0
  19557. 8008a84: b2db uxtb r3, r3
  19558. 8008a86: 461a mov r2, r3
  19559. 8008a88: 683b ldr r3, [r7, #0]
  19560. 8008a8a: 735a strb r2, [r3, #13]
  19561. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  19562. 8008a8c: 687b ldr r3, [r7, #4]
  19563. 8008a8e: 681b ldr r3, [r3, #0]
  19564. 8008a90: 681b ldr r3, [r3, #0]
  19565. ETH_MACCR_GPSLCE) >> 23) > 0U) ? ENABLE : DISABLE;
  19566. 8008a92: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  19567. 8008a96: 2b00 cmp r3, #0
  19568. 8008a98: bf14 ite ne
  19569. 8008a9a: 2301 movne r3, #1
  19570. 8008a9c: 2300 moveq r3, #0
  19571. 8008a9e: b2db uxtb r3, r3
  19572. 8008aa0: 461a mov r2, r3
  19573. macconf->GiantPacketSizeLimitControl = ((READ_BIT(heth->Instance->MACCR,
  19574. 8008aa2: 683b ldr r3, [r7, #0]
  19575. 8008aa4: 731a strb r2, [r3, #12]
  19576. macconf->InterPacketGapVal = READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPG);
  19577. 8008aa6: 687b ldr r3, [r7, #4]
  19578. 8008aa8: 681b ldr r3, [r3, #0]
  19579. 8008aaa: 681b ldr r3, [r3, #0]
  19580. 8008aac: f003 62e0 and.w r2, r3, #117440512 @ 0x7000000
  19581. 8008ab0: 683b ldr r3, [r7, #0]
  19582. 8008ab2: 609a str r2, [r3, #8]
  19583. macconf->ChecksumOffload = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPC) >> 27) > 0U) ? ENABLE : DISABLE;
  19584. 8008ab4: 687b ldr r3, [r7, #4]
  19585. 8008ab6: 681b ldr r3, [r3, #0]
  19586. 8008ab8: 681b ldr r3, [r3, #0]
  19587. 8008aba: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  19588. 8008abe: 2b00 cmp r3, #0
  19589. 8008ac0: bf14 ite ne
  19590. 8008ac2: 2301 movne r3, #1
  19591. 8008ac4: 2300 moveq r3, #0
  19592. 8008ac6: b2db uxtb r3, r3
  19593. 8008ac8: 461a mov r2, r3
  19594. 8008aca: 683b ldr r3, [r7, #0]
  19595. 8008acc: 711a strb r2, [r3, #4]
  19596. macconf->SourceAddrControl = READ_BIT(heth->Instance->MACCR, ETH_MACCR_SARC);
  19597. 8008ace: 687b ldr r3, [r7, #4]
  19598. 8008ad0: 681b ldr r3, [r3, #0]
  19599. 8008ad2: 681b ldr r3, [r3, #0]
  19600. 8008ad4: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000
  19601. 8008ad8: 683b ldr r3, [r7, #0]
  19602. 8008ada: 601a str r2, [r3, #0]
  19603. macconf->GiantPacketSizeLimit = READ_BIT(heth->Instance->MACECR, ETH_MACECR_GPSL);
  19604. 8008adc: 687b ldr r3, [r7, #4]
  19605. 8008ade: 681b ldr r3, [r3, #0]
  19606. 8008ae0: 685b ldr r3, [r3, #4]
  19607. 8008ae2: f3c3 020d ubfx r2, r3, #0, #14
  19608. 8008ae6: 683b ldr r3, [r7, #0]
  19609. 8008ae8: 635a str r2, [r3, #52] @ 0x34
  19610. macconf->CRCCheckingRxPackets = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_DCRCC) >> 16) == 0U) ? ENABLE : DISABLE;
  19611. 8008aea: 687b ldr r3, [r7, #4]
  19612. 8008aec: 681b ldr r3, [r3, #0]
  19613. 8008aee: 685b ldr r3, [r3, #4]
  19614. 8008af0: f403 3380 and.w r3, r3, #65536 @ 0x10000
  19615. 8008af4: 2b00 cmp r3, #0
  19616. 8008af6: bf0c ite eq
  19617. 8008af8: 2301 moveq r3, #1
  19618. 8008afa: 2300 movne r3, #0
  19619. 8008afc: b2db uxtb r3, r3
  19620. 8008afe: 461a mov r2, r3
  19621. 8008b00: 683b ldr r3, [r7, #0]
  19622. 8008b02: f883 2032 strb.w r2, [r3, #50] @ 0x32
  19623. macconf->SlowProtocolDetect = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_SPEN) >> 17) > 0U) ? ENABLE : DISABLE;
  19624. 8008b06: 687b ldr r3, [r7, #4]
  19625. 8008b08: 681b ldr r3, [r3, #0]
  19626. 8008b0a: 685b ldr r3, [r3, #4]
  19627. 8008b0c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  19628. 8008b10: 2b00 cmp r3, #0
  19629. 8008b12: bf14 ite ne
  19630. 8008b14: 2301 movne r3, #1
  19631. 8008b16: 2300 moveq r3, #0
  19632. 8008b18: b2db uxtb r3, r3
  19633. 8008b1a: 461a mov r2, r3
  19634. 8008b1c: 683b ldr r3, [r7, #0]
  19635. 8008b1e: f883 2031 strb.w r2, [r3, #49] @ 0x31
  19636. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  19637. 8008b22: 687b ldr r3, [r7, #4]
  19638. 8008b24: 681b ldr r3, [r3, #0]
  19639. 8008b26: 685b ldr r3, [r3, #4]
  19640. ETH_MACECR_USP) >> 18) > 0U) ? ENABLE : DISABLE;
  19641. 8008b28: f403 2380 and.w r3, r3, #262144 @ 0x40000
  19642. 8008b2c: 2b00 cmp r3, #0
  19643. 8008b2e: bf14 ite ne
  19644. 8008b30: 2301 movne r3, #1
  19645. 8008b32: 2300 moveq r3, #0
  19646. 8008b34: b2db uxtb r3, r3
  19647. 8008b36: 461a mov r2, r3
  19648. macconf->UnicastSlowProtocolPacketDetect = ((READ_BIT(heth->Instance->MACECR,
  19649. 8008b38: 683b ldr r3, [r7, #0]
  19650. 8008b3a: f883 2030 strb.w r2, [r3, #48] @ 0x30
  19651. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  19652. 8008b3e: 687b ldr r3, [r7, #4]
  19653. 8008b40: 681b ldr r3, [r3, #0]
  19654. 8008b42: 685b ldr r3, [r3, #4]
  19655. 8008b44: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  19656. ? ENABLE : DISABLE;
  19657. 8008b48: 2b00 cmp r3, #0
  19658. 8008b4a: bf14 ite ne
  19659. 8008b4c: 2301 movne r3, #1
  19660. 8008b4e: 2300 moveq r3, #0
  19661. 8008b50: b2db uxtb r3, r3
  19662. 8008b52: 461a mov r2, r3
  19663. macconf->ExtendedInterPacketGap = ((READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPGEN) >> 24) > 0U)
  19664. 8008b54: 683b ldr r3, [r7, #0]
  19665. 8008b56: f883 2038 strb.w r2, [r3, #56] @ 0x38
  19666. macconf->ExtendedInterPacketGapVal = READ_BIT(heth->Instance->MACECR, ETH_MACECR_EIPG) >> 25;
  19667. 8008b5a: 687b ldr r3, [r7, #4]
  19668. 8008b5c: 681b ldr r3, [r3, #0]
  19669. 8008b5e: 685b ldr r3, [r3, #4]
  19670. 8008b60: 0e5b lsrs r3, r3, #25
  19671. 8008b62: f003 021f and.w r2, r3, #31
  19672. 8008b66: 683b ldr r3, [r7, #0]
  19673. 8008b68: 63da str r2, [r3, #60] @ 0x3c
  19674. macconf->ProgrammableWatchdog = ((READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_PWE) >> 8) > 0U) ? ENABLE : DISABLE;
  19675. 8008b6a: 687b ldr r3, [r7, #4]
  19676. 8008b6c: 681b ldr r3, [r3, #0]
  19677. 8008b6e: 68db ldr r3, [r3, #12]
  19678. 8008b70: f403 7380 and.w r3, r3, #256 @ 0x100
  19679. 8008b74: 2b00 cmp r3, #0
  19680. 8008b76: bf14 ite ne
  19681. 8008b78: 2301 movne r3, #1
  19682. 8008b7a: 2300 moveq r3, #0
  19683. 8008b7c: b2db uxtb r3, r3
  19684. 8008b7e: 461a mov r2, r3
  19685. 8008b80: 683b ldr r3, [r7, #0]
  19686. 8008b82: f883 2040 strb.w r2, [r3, #64] @ 0x40
  19687. macconf->WatchdogTimeout = READ_BIT(heth->Instance->MACWTR, ETH_MACWTR_WTO);
  19688. 8008b86: 687b ldr r3, [r7, #4]
  19689. 8008b88: 681b ldr r3, [r3, #0]
  19690. 8008b8a: 68db ldr r3, [r3, #12]
  19691. 8008b8c: f003 020f and.w r2, r3, #15
  19692. 8008b90: 683b ldr r3, [r7, #0]
  19693. 8008b92: 645a str r2, [r3, #68] @ 0x44
  19694. macconf->TransmitFlowControl = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_TFE) >> 1) > 0U) ? ENABLE : DISABLE;
  19695. 8008b94: 687b ldr r3, [r7, #4]
  19696. 8008b96: 681b ldr r3, [r3, #0]
  19697. 8008b98: 6f1b ldr r3, [r3, #112] @ 0x70
  19698. 8008b9a: f003 0302 and.w r3, r3, #2
  19699. 8008b9e: 2b00 cmp r3, #0
  19700. 8008ba0: bf14 ite ne
  19701. 8008ba2: 2301 movne r3, #1
  19702. 8008ba4: 2300 moveq r3, #0
  19703. 8008ba6: b2db uxtb r3, r3
  19704. 8008ba8: 461a mov r2, r3
  19705. 8008baa: 683b ldr r3, [r7, #0]
  19706. 8008bac: f883 2054 strb.w r2, [r3, #84] @ 0x54
  19707. macconf->ZeroQuantaPause = ((READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_DZPQ) >> 7) == 0U) ? ENABLE : DISABLE;
  19708. 8008bb0: 687b ldr r3, [r7, #4]
  19709. 8008bb2: 681b ldr r3, [r3, #0]
  19710. 8008bb4: 6f1b ldr r3, [r3, #112] @ 0x70
  19711. 8008bb6: f003 0380 and.w r3, r3, #128 @ 0x80
  19712. 8008bba: 2b00 cmp r3, #0
  19713. 8008bbc: bf0c ite eq
  19714. 8008bbe: 2301 moveq r3, #1
  19715. 8008bc0: 2300 movne r3, #0
  19716. 8008bc2: b2db uxtb r3, r3
  19717. 8008bc4: 461a mov r2, r3
  19718. 8008bc6: 683b ldr r3, [r7, #0]
  19719. 8008bc8: f883 204c strb.w r2, [r3, #76] @ 0x4c
  19720. macconf->PauseLowThreshold = READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PLT);
  19721. 8008bcc: 687b ldr r3, [r7, #4]
  19722. 8008bce: 681b ldr r3, [r3, #0]
  19723. 8008bd0: 6f1b ldr r3, [r3, #112] @ 0x70
  19724. 8008bd2: f003 0270 and.w r2, r3, #112 @ 0x70
  19725. 8008bd6: 683b ldr r3, [r7, #0]
  19726. 8008bd8: 651a str r2, [r3, #80] @ 0x50
  19727. macconf->PauseTime = (READ_BIT(heth->Instance->MACTFCR, ETH_MACTFCR_PT) >> 16);
  19728. 8008bda: 687b ldr r3, [r7, #4]
  19729. 8008bdc: 681b ldr r3, [r3, #0]
  19730. 8008bde: 6f1b ldr r3, [r3, #112] @ 0x70
  19731. 8008be0: 0c1b lsrs r3, r3, #16
  19732. 8008be2: b29a uxth r2, r3
  19733. 8008be4: 683b ldr r3, [r7, #0]
  19734. 8008be6: 649a str r2, [r3, #72] @ 0x48
  19735. macconf->ReceiveFlowControl = (READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_RFE) > 0U) ? ENABLE : DISABLE;
  19736. 8008be8: 687b ldr r3, [r7, #4]
  19737. 8008bea: 681b ldr r3, [r3, #0]
  19738. 8008bec: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  19739. 8008bf0: f003 0301 and.w r3, r3, #1
  19740. 8008bf4: 2b00 cmp r3, #0
  19741. 8008bf6: bf14 ite ne
  19742. 8008bf8: 2301 movne r3, #1
  19743. 8008bfa: 2300 moveq r3, #0
  19744. 8008bfc: b2db uxtb r3, r3
  19745. 8008bfe: 461a mov r2, r3
  19746. 8008c00: 683b ldr r3, [r7, #0]
  19747. 8008c02: f883 2056 strb.w r2, [r3, #86] @ 0x56
  19748. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  19749. 8008c06: 687b ldr r3, [r7, #4]
  19750. 8008c08: 681b ldr r3, [r3, #0]
  19751. 8008c0a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  19752. 8008c0e: f003 0302 and.w r3, r3, #2
  19753. ? ENABLE : DISABLE;
  19754. 8008c12: 2b00 cmp r3, #0
  19755. 8008c14: bf14 ite ne
  19756. 8008c16: 2301 movne r3, #1
  19757. 8008c18: 2300 moveq r3, #0
  19758. 8008c1a: b2db uxtb r3, r3
  19759. 8008c1c: 461a mov r2, r3
  19760. macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACRFCR, ETH_MACRFCR_UP) >> 1) > 0U)
  19761. 8008c1e: 683b ldr r3, [r7, #0]
  19762. 8008c20: f883 2055 strb.w r2, [r3, #85] @ 0x55
  19763. macconf->TransmitQueueMode = READ_BIT(heth->Instance->MTLTQOMR, (ETH_MTLTQOMR_TTC | ETH_MTLTQOMR_TSF));
  19764. 8008c24: 687b ldr r3, [r7, #4]
  19765. 8008c26: 681b ldr r3, [r3, #0]
  19766. 8008c28: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  19767. 8008c2c: f003 0272 and.w r2, r3, #114 @ 0x72
  19768. 8008c30: 683b ldr r3, [r7, #0]
  19769. 8008c32: 659a str r2, [r3, #88] @ 0x58
  19770. macconf->ReceiveQueueMode = READ_BIT(heth->Instance->MTLRQOMR, (ETH_MTLRQOMR_RTC | ETH_MTLRQOMR_RSF));
  19771. 8008c34: 687b ldr r3, [r7, #4]
  19772. 8008c36: 681b ldr r3, [r3, #0]
  19773. 8008c38: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19774. 8008c3c: f003 0223 and.w r2, r3, #35 @ 0x23
  19775. 8008c40: 683b ldr r3, [r7, #0]
  19776. 8008c42: 65da str r2, [r3, #92] @ 0x5c
  19777. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19778. 8008c44: 687b ldr r3, [r7, #4]
  19779. 8008c46: 681b ldr r3, [r3, #0]
  19780. 8008c48: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19781. ETH_MTLRQOMR_FUP) >> 3) > 0U) ? ENABLE : DISABLE;
  19782. 8008c4c: f003 0308 and.w r3, r3, #8
  19783. 8008c50: 2b00 cmp r3, #0
  19784. 8008c52: bf14 ite ne
  19785. 8008c54: 2301 movne r3, #1
  19786. 8008c56: 2300 moveq r3, #0
  19787. 8008c58: b2db uxtb r3, r3
  19788. 8008c5a: 461a mov r2, r3
  19789. macconf->ForwardRxUndersizedGoodPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19790. 8008c5c: 683b ldr r3, [r7, #0]
  19791. 8008c5e: f883 2062 strb.w r2, [r3, #98] @ 0x62
  19792. macconf->ForwardRxErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_FEP) >> 4) > 0U) ? ENABLE : DISABLE;
  19793. 8008c62: 687b ldr r3, [r7, #4]
  19794. 8008c64: 681b ldr r3, [r3, #0]
  19795. 8008c66: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19796. 8008c6a: f003 0310 and.w r3, r3, #16
  19797. 8008c6e: 2b00 cmp r3, #0
  19798. 8008c70: bf14 ite ne
  19799. 8008c72: 2301 movne r3, #1
  19800. 8008c74: 2300 moveq r3, #0
  19801. 8008c76: b2db uxtb r3, r3
  19802. 8008c78: 461a mov r2, r3
  19803. 8008c7a: 683b ldr r3, [r7, #0]
  19804. 8008c7c: f883 2061 strb.w r2, [r3, #97] @ 0x61
  19805. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19806. 8008c80: 687b ldr r3, [r7, #4]
  19807. 8008c82: 681b ldr r3, [r3, #0]
  19808. 8008c84: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  19809. ETH_MTLRQOMR_DISTCPEF) >> 6) == 0U) ? ENABLE : DISABLE;
  19810. 8008c88: f003 0340 and.w r3, r3, #64 @ 0x40
  19811. 8008c8c: 2b00 cmp r3, #0
  19812. 8008c8e: bf0c ite eq
  19813. 8008c90: 2301 moveq r3, #1
  19814. 8008c92: 2300 movne r3, #0
  19815. 8008c94: b2db uxtb r3, r3
  19816. 8008c96: 461a mov r2, r3
  19817. macconf->DropTCPIPChecksumErrorPacket = ((READ_BIT(heth->Instance->MTLRQOMR,
  19818. 8008c98: 683b ldr r3, [r7, #0]
  19819. 8008c9a: f883 2060 strb.w r2, [r3, #96] @ 0x60
  19820. return HAL_OK;
  19821. 8008c9e: 2300 movs r3, #0
  19822. }
  19823. 8008ca0: 4618 mov r0, r3
  19824. 8008ca2: 370c adds r7, #12
  19825. 8008ca4: 46bd mov sp, r7
  19826. 8008ca6: f85d 7b04 ldr.w r7, [sp], #4
  19827. 8008caa: 4770 bx lr
  19828. 08008cac <HAL_ETH_SetMACConfig>:
  19829. * @param macconf: pointer to a ETH_MACConfigTypeDef structure that contains
  19830. * the configuration of the MAC.
  19831. * @retval HAL status
  19832. */
  19833. HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf)
  19834. {
  19835. 8008cac: b580 push {r7, lr}
  19836. 8008cae: b082 sub sp, #8
  19837. 8008cb0: af00 add r7, sp, #0
  19838. 8008cb2: 6078 str r0, [r7, #4]
  19839. 8008cb4: 6039 str r1, [r7, #0]
  19840. if (macconf == NULL)
  19841. 8008cb6: 683b ldr r3, [r7, #0]
  19842. 8008cb8: 2b00 cmp r3, #0
  19843. 8008cba: d101 bne.n 8008cc0 <HAL_ETH_SetMACConfig+0x14>
  19844. {
  19845. return HAL_ERROR;
  19846. 8008cbc: 2301 movs r3, #1
  19847. 8008cbe: e00b b.n 8008cd8 <HAL_ETH_SetMACConfig+0x2c>
  19848. }
  19849. if (heth->gState == HAL_ETH_STATE_READY)
  19850. 8008cc0: 687b ldr r3, [r7, #4]
  19851. 8008cc2: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  19852. 8008cc6: 2b10 cmp r3, #16
  19853. 8008cc8: d105 bne.n 8008cd6 <HAL_ETH_SetMACConfig+0x2a>
  19854. {
  19855. ETH_SetMACConfig(heth, macconf);
  19856. 8008cca: 6839 ldr r1, [r7, #0]
  19857. 8008ccc: 6878 ldr r0, [r7, #4]
  19858. 8008cce: f000 f865 bl 8008d9c <ETH_SetMACConfig>
  19859. return HAL_OK;
  19860. 8008cd2: 2300 movs r3, #0
  19861. 8008cd4: e000 b.n 8008cd8 <HAL_ETH_SetMACConfig+0x2c>
  19862. }
  19863. else
  19864. {
  19865. return HAL_ERROR;
  19866. 8008cd6: 2301 movs r3, #1
  19867. }
  19868. }
  19869. 8008cd8: 4618 mov r0, r3
  19870. 8008cda: 3708 adds r7, #8
  19871. 8008cdc: 46bd mov sp, r7
  19872. 8008cde: bd80 pop {r7, pc}
  19873. 08008ce0 <HAL_ETH_SetMDIOClockRange>:
  19874. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19875. * the configuration information for ETHERNET module
  19876. * @retval None
  19877. */
  19878. void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth)
  19879. {
  19880. 8008ce0: b580 push {r7, lr}
  19881. 8008ce2: b084 sub sp, #16
  19882. 8008ce4: af00 add r7, sp, #0
  19883. 8008ce6: 6078 str r0, [r7, #4]
  19884. uint32_t hclk;
  19885. uint32_t tmpreg;
  19886. /* Get the ETHERNET MACMDIOAR value */
  19887. tmpreg = (heth->Instance)->MACMDIOAR;
  19888. 8008ce8: 687b ldr r3, [r7, #4]
  19889. 8008cea: 681b ldr r3, [r3, #0]
  19890. 8008cec: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
  19891. 8008cf0: 60fb str r3, [r7, #12]
  19892. /* Clear CSR Clock Range bits */
  19893. tmpreg &= ~ETH_MACMDIOAR_CR;
  19894. 8008cf2: 68fb ldr r3, [r7, #12]
  19895. 8008cf4: f423 6370 bic.w r3, r3, #3840 @ 0xf00
  19896. 8008cf8: 60fb str r3, [r7, #12]
  19897. /* Get hclk frequency value */
  19898. hclk = HAL_RCC_GetHCLKFreq();
  19899. 8008cfa: f002 f86f bl 800addc <HAL_RCC_GetHCLKFreq>
  19900. 8008cfe: 60b8 str r0, [r7, #8]
  19901. /* Set CR bits depending on hclk value */
  19902. if (hclk < 35000000U)
  19903. 8008d00: 68bb ldr r3, [r7, #8]
  19904. 8008d02: 4a1a ldr r2, [pc, #104] @ (8008d6c <HAL_ETH_SetMDIOClockRange+0x8c>)
  19905. 8008d04: 4293 cmp r3, r2
  19906. 8008d06: d804 bhi.n 8008d12 <HAL_ETH_SetMDIOClockRange+0x32>
  19907. {
  19908. /* CSR Clock Range between 0-35 MHz */
  19909. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV16;
  19910. 8008d08: 68fb ldr r3, [r7, #12]
  19911. 8008d0a: f443 7300 orr.w r3, r3, #512 @ 0x200
  19912. 8008d0e: 60fb str r3, [r7, #12]
  19913. 8008d10: e022 b.n 8008d58 <HAL_ETH_SetMDIOClockRange+0x78>
  19914. }
  19915. else if (hclk < 60000000U)
  19916. 8008d12: 68bb ldr r3, [r7, #8]
  19917. 8008d14: 4a16 ldr r2, [pc, #88] @ (8008d70 <HAL_ETH_SetMDIOClockRange+0x90>)
  19918. 8008d16: 4293 cmp r3, r2
  19919. 8008d18: d204 bcs.n 8008d24 <HAL_ETH_SetMDIOClockRange+0x44>
  19920. {
  19921. /* CSR Clock Range between 35-60 MHz */
  19922. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV26;
  19923. 8008d1a: 68fb ldr r3, [r7, #12]
  19924. 8008d1c: f443 7340 orr.w r3, r3, #768 @ 0x300
  19925. 8008d20: 60fb str r3, [r7, #12]
  19926. 8008d22: e019 b.n 8008d58 <HAL_ETH_SetMDIOClockRange+0x78>
  19927. }
  19928. else if (hclk < 100000000U)
  19929. 8008d24: 68bb ldr r3, [r7, #8]
  19930. 8008d26: 4a13 ldr r2, [pc, #76] @ (8008d74 <HAL_ETH_SetMDIOClockRange+0x94>)
  19931. 8008d28: 4293 cmp r3, r2
  19932. 8008d2a: d915 bls.n 8008d58 <HAL_ETH_SetMDIOClockRange+0x78>
  19933. {
  19934. /* CSR Clock Range between 60-100 MHz */
  19935. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV42;
  19936. }
  19937. else if (hclk < 150000000U)
  19938. 8008d2c: 68bb ldr r3, [r7, #8]
  19939. 8008d2e: 4a12 ldr r2, [pc, #72] @ (8008d78 <HAL_ETH_SetMDIOClockRange+0x98>)
  19940. 8008d30: 4293 cmp r3, r2
  19941. 8008d32: d804 bhi.n 8008d3e <HAL_ETH_SetMDIOClockRange+0x5e>
  19942. {
  19943. /* CSR Clock Range between 100-150 MHz */
  19944. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV62;
  19945. 8008d34: 68fb ldr r3, [r7, #12]
  19946. 8008d36: f443 7380 orr.w r3, r3, #256 @ 0x100
  19947. 8008d3a: 60fb str r3, [r7, #12]
  19948. 8008d3c: e00c b.n 8008d58 <HAL_ETH_SetMDIOClockRange+0x78>
  19949. }
  19950. else if (hclk < 250000000U)
  19951. 8008d3e: 68bb ldr r3, [r7, #8]
  19952. 8008d40: 4a0e ldr r2, [pc, #56] @ (8008d7c <HAL_ETH_SetMDIOClockRange+0x9c>)
  19953. 8008d42: 4293 cmp r3, r2
  19954. 8008d44: d804 bhi.n 8008d50 <HAL_ETH_SetMDIOClockRange+0x70>
  19955. {
  19956. /* CSR Clock Range between 150-250 MHz */
  19957. tmpreg |= (uint32_t)ETH_MACMDIOAR_CR_DIV102;
  19958. 8008d46: 68fb ldr r3, [r7, #12]
  19959. 8008d48: f443 6380 orr.w r3, r3, #1024 @ 0x400
  19960. 8008d4c: 60fb str r3, [r7, #12]
  19961. 8008d4e: e003 b.n 8008d58 <HAL_ETH_SetMDIOClockRange+0x78>
  19962. }
  19963. else /* (hclk >= 250000000U) */
  19964. {
  19965. /* CSR Clock >= 250 MHz */
  19966. tmpreg |= (uint32_t)(ETH_MACMDIOAR_CR_DIV124);
  19967. 8008d50: 68fb ldr r3, [r7, #12]
  19968. 8008d52: f443 63a0 orr.w r3, r3, #1280 @ 0x500
  19969. 8008d56: 60fb str r3, [r7, #12]
  19970. }
  19971. /* Configure the CSR Clock Range */
  19972. (heth->Instance)->MACMDIOAR = (uint32_t)tmpreg;
  19973. 8008d58: 687b ldr r3, [r7, #4]
  19974. 8008d5a: 681b ldr r3, [r3, #0]
  19975. 8008d5c: 68fa ldr r2, [r7, #12]
  19976. 8008d5e: f8c3 2200 str.w r2, [r3, #512] @ 0x200
  19977. }
  19978. 8008d62: bf00 nop
  19979. 8008d64: 3710 adds r7, #16
  19980. 8008d66: 46bd mov sp, r7
  19981. 8008d68: bd80 pop {r7, pc}
  19982. 8008d6a: bf00 nop
  19983. 8008d6c: 02160ebf .word 0x02160ebf
  19984. 8008d70: 03938700 .word 0x03938700
  19985. 8008d74: 05f5e0ff .word 0x05f5e0ff
  19986. 8008d78: 08f0d17f .word 0x08f0d17f
  19987. 8008d7c: 0ee6b27f .word 0x0ee6b27f
  19988. 08008d80 <HAL_ETH_GetDMAError>:
  19989. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  19990. * the configuration information for ETHERNET module
  19991. * @retval ETH DMA Error Code
  19992. */
  19993. uint32_t HAL_ETH_GetDMAError(const ETH_HandleTypeDef *heth)
  19994. {
  19995. 8008d80: b480 push {r7}
  19996. 8008d82: b083 sub sp, #12
  19997. 8008d84: af00 add r7, sp, #0
  19998. 8008d86: 6078 str r0, [r7, #4]
  19999. return heth->DMAErrorCode;
  20000. 8008d88: 687b ldr r3, [r7, #4]
  20001. 8008d8a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  20002. }
  20003. 8008d8e: 4618 mov r0, r3
  20004. 8008d90: 370c adds r7, #12
  20005. 8008d92: 46bd mov sp, r7
  20006. 8008d94: f85d 7b04 ldr.w r7, [sp], #4
  20007. 8008d98: 4770 bx lr
  20008. ...
  20009. 08008d9c <ETH_SetMACConfig>:
  20010. /** @addtogroup ETH_Private_Functions ETH Private Functions
  20011. * @{
  20012. */
  20013. static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, const ETH_MACConfigTypeDef *macconf)
  20014. {
  20015. 8008d9c: b480 push {r7}
  20016. 8008d9e: b085 sub sp, #20
  20017. 8008da0: af00 add r7, sp, #0
  20018. 8008da2: 6078 str r0, [r7, #4]
  20019. 8008da4: 6039 str r1, [r7, #0]
  20020. uint32_t macregval;
  20021. /*------------------------ MACCR Configuration --------------------*/
  20022. macregval = (macconf->InterPacketGapVal |
  20023. 8008da6: 683b ldr r3, [r7, #0]
  20024. 8008da8: 689a ldr r2, [r3, #8]
  20025. macconf->SourceAddrControl |
  20026. 8008daa: 683b ldr r3, [r7, #0]
  20027. 8008dac: 681b ldr r3, [r3, #0]
  20028. macregval = (macconf->InterPacketGapVal |
  20029. 8008dae: 431a orrs r2, r3
  20030. ((uint32_t)macconf->ChecksumOffload << 27) |
  20031. 8008db0: 683b ldr r3, [r7, #0]
  20032. 8008db2: 791b ldrb r3, [r3, #4]
  20033. 8008db4: 06db lsls r3, r3, #27
  20034. macconf->SourceAddrControl |
  20035. 8008db6: 431a orrs r2, r3
  20036. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  20037. 8008db8: 683b ldr r3, [r7, #0]
  20038. 8008dba: 7b1b ldrb r3, [r3, #12]
  20039. 8008dbc: 05db lsls r3, r3, #23
  20040. ((uint32_t)macconf->ChecksumOffload << 27) |
  20041. 8008dbe: 431a orrs r2, r3
  20042. ((uint32_t)macconf->Support2KPacket << 22) |
  20043. 8008dc0: 683b ldr r3, [r7, #0]
  20044. 8008dc2: 7b5b ldrb r3, [r3, #13]
  20045. 8008dc4: 059b lsls r3, r3, #22
  20046. ((uint32_t)macconf->GiantPacketSizeLimitControl << 23) |
  20047. 8008dc6: 431a orrs r2, r3
  20048. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  20049. 8008dc8: 683b ldr r3, [r7, #0]
  20050. 8008dca: 7b9b ldrb r3, [r3, #14]
  20051. 8008dcc: 055b lsls r3, r3, #21
  20052. ((uint32_t)macconf->Support2KPacket << 22) |
  20053. 8008dce: 431a orrs r2, r3
  20054. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  20055. 8008dd0: 683b ldr r3, [r7, #0]
  20056. 8008dd2: 7bdb ldrb r3, [r3, #15]
  20057. 8008dd4: 051b lsls r3, r3, #20
  20058. ((uint32_t)macconf->CRCStripTypePacket << 21) |
  20059. 8008dd6: 4313 orrs r3, r2
  20060. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  20061. 8008dd8: 683a ldr r2, [r7, #0]
  20062. 8008dda: 7c12 ldrb r2, [r2, #16]
  20063. 8008ddc: 2a00 cmp r2, #0
  20064. 8008dde: d102 bne.n 8008de6 <ETH_SetMACConfig+0x4a>
  20065. 8008de0: f44f 2200 mov.w r2, #524288 @ 0x80000
  20066. 8008de4: e000 b.n 8008de8 <ETH_SetMACConfig+0x4c>
  20067. 8008de6: 2200 movs r2, #0
  20068. ((uint32_t)macconf->AutomaticPadCRCStrip << 20) |
  20069. 8008de8: 4313 orrs r3, r2
  20070. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  20071. 8008dea: 683a ldr r2, [r7, #0]
  20072. 8008dec: 7c52 ldrb r2, [r2, #17]
  20073. 8008dee: 2a00 cmp r2, #0
  20074. 8008df0: d102 bne.n 8008df8 <ETH_SetMACConfig+0x5c>
  20075. 8008df2: f44f 3200 mov.w r2, #131072 @ 0x20000
  20076. 8008df6: e000 b.n 8008dfa <ETH_SetMACConfig+0x5e>
  20077. 8008df8: 2200 movs r2, #0
  20078. ((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 19) |
  20079. 8008dfa: 431a orrs r2, r3
  20080. ((uint32_t)macconf->JumboPacket << 16) |
  20081. 8008dfc: 683b ldr r3, [r7, #0]
  20082. 8008dfe: 7c9b ldrb r3, [r3, #18]
  20083. 8008e00: 041b lsls r3, r3, #16
  20084. ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 17) |
  20085. 8008e02: 431a orrs r2, r3
  20086. macconf->Speed |
  20087. 8008e04: 683b ldr r3, [r7, #0]
  20088. 8008e06: 695b ldr r3, [r3, #20]
  20089. ((uint32_t)macconf->JumboPacket << 16) |
  20090. 8008e08: 431a orrs r2, r3
  20091. macconf->DuplexMode |
  20092. 8008e0a: 683b ldr r3, [r7, #0]
  20093. 8008e0c: 699b ldr r3, [r3, #24]
  20094. macconf->Speed |
  20095. 8008e0e: 431a orrs r2, r3
  20096. ((uint32_t)macconf->LoopbackMode << 12) |
  20097. 8008e10: 683b ldr r3, [r7, #0]
  20098. 8008e12: 7f1b ldrb r3, [r3, #28]
  20099. 8008e14: 031b lsls r3, r3, #12
  20100. macconf->DuplexMode |
  20101. 8008e16: 431a orrs r2, r3
  20102. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  20103. 8008e18: 683b ldr r3, [r7, #0]
  20104. 8008e1a: 7f5b ldrb r3, [r3, #29]
  20105. 8008e1c: 02db lsls r3, r3, #11
  20106. ((uint32_t)macconf->LoopbackMode << 12) |
  20107. 8008e1e: 4313 orrs r3, r2
  20108. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  20109. 8008e20: 683a ldr r2, [r7, #0]
  20110. 8008e22: 7f92 ldrb r2, [r2, #30]
  20111. 8008e24: 2a00 cmp r2, #0
  20112. 8008e26: d102 bne.n 8008e2e <ETH_SetMACConfig+0x92>
  20113. 8008e28: f44f 6280 mov.w r2, #1024 @ 0x400
  20114. 8008e2c: e000 b.n 8008e30 <ETH_SetMACConfig+0x94>
  20115. 8008e2e: 2200 movs r2, #0
  20116. ((uint32_t)macconf->CarrierSenseBeforeTransmit << 11) |
  20117. 8008e30: 431a orrs r2, r3
  20118. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  20119. 8008e32: 683b ldr r3, [r7, #0]
  20120. 8008e34: 7fdb ldrb r3, [r3, #31]
  20121. 8008e36: 025b lsls r3, r3, #9
  20122. ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 10) |
  20123. 8008e38: 4313 orrs r3, r2
  20124. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  20125. 8008e3a: 683a ldr r2, [r7, #0]
  20126. 8008e3c: f892 2020 ldrb.w r2, [r2, #32]
  20127. 8008e40: 2a00 cmp r2, #0
  20128. 8008e42: d102 bne.n 8008e4a <ETH_SetMACConfig+0xae>
  20129. 8008e44: f44f 7280 mov.w r2, #256 @ 0x100
  20130. 8008e48: e000 b.n 8008e4c <ETH_SetMACConfig+0xb0>
  20131. 8008e4a: 2200 movs r2, #0
  20132. ((uint32_t)macconf->CarrierSenseDuringTransmit << 9) |
  20133. 8008e4c: 431a orrs r2, r3
  20134. macconf->BackOffLimit |
  20135. 8008e4e: 683b ldr r3, [r7, #0]
  20136. 8008e50: 6a5b ldr r3, [r3, #36] @ 0x24
  20137. ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 8) |
  20138. 8008e52: 431a orrs r2, r3
  20139. ((uint32_t)macconf->DeferralCheck << 4) |
  20140. 8008e54: 683b ldr r3, [r7, #0]
  20141. 8008e56: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  20142. 8008e5a: 011b lsls r3, r3, #4
  20143. macconf->BackOffLimit |
  20144. 8008e5c: 431a orrs r2, r3
  20145. macconf->PreambleLength);
  20146. 8008e5e: 683b ldr r3, [r7, #0]
  20147. 8008e60: 6adb ldr r3, [r3, #44] @ 0x2c
  20148. macregval = (macconf->InterPacketGapVal |
  20149. 8008e62: 4313 orrs r3, r2
  20150. 8008e64: 60fb str r3, [r7, #12]
  20151. /* Write to MACCR */
  20152. MODIFY_REG(heth->Instance->MACCR, ETH_MACCR_MASK, macregval);
  20153. 8008e66: 687b ldr r3, [r7, #4]
  20154. 8008e68: 681b ldr r3, [r3, #0]
  20155. 8008e6a: 681a ldr r2, [r3, #0]
  20156. 8008e6c: 4b56 ldr r3, [pc, #344] @ (8008fc8 <ETH_SetMACConfig+0x22c>)
  20157. 8008e6e: 4013 ands r3, r2
  20158. 8008e70: 687a ldr r2, [r7, #4]
  20159. 8008e72: 6812 ldr r2, [r2, #0]
  20160. 8008e74: 68f9 ldr r1, [r7, #12]
  20161. 8008e76: 430b orrs r3, r1
  20162. 8008e78: 6013 str r3, [r2, #0]
  20163. /*------------------------ MACECR Configuration --------------------*/
  20164. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  20165. 8008e7a: 683b ldr r3, [r7, #0]
  20166. 8008e7c: 6bdb ldr r3, [r3, #60] @ 0x3c
  20167. 8008e7e: 065a lsls r2, r3, #25
  20168. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  20169. 8008e80: 683b ldr r3, [r7, #0]
  20170. 8008e82: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  20171. 8008e86: 061b lsls r3, r3, #24
  20172. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  20173. 8008e88: 431a orrs r2, r3
  20174. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  20175. 8008e8a: 683b ldr r3, [r7, #0]
  20176. 8008e8c: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  20177. 8008e90: 049b lsls r3, r3, #18
  20178. ((uint32_t)macconf->ExtendedInterPacketGap << 24) |
  20179. 8008e92: 431a orrs r2, r3
  20180. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  20181. 8008e94: 683b ldr r3, [r7, #0]
  20182. 8008e96: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  20183. 8008e9a: 045b lsls r3, r3, #17
  20184. ((uint32_t)macconf->UnicastSlowProtocolPacketDetect << 18) |
  20185. 8008e9c: 4313 orrs r3, r2
  20186. ((uint32_t)((macconf->CRCCheckingRxPackets == DISABLE) ? 1U : 0U) << 16) |
  20187. 8008e9e: 683a ldr r2, [r7, #0]
  20188. 8008ea0: f892 2032 ldrb.w r2, [r2, #50] @ 0x32
  20189. 8008ea4: 2a00 cmp r2, #0
  20190. 8008ea6: d102 bne.n 8008eae <ETH_SetMACConfig+0x112>
  20191. 8008ea8: f44f 3280 mov.w r2, #65536 @ 0x10000
  20192. 8008eac: e000 b.n 8008eb0 <ETH_SetMACConfig+0x114>
  20193. 8008eae: 2200 movs r2, #0
  20194. ((uint32_t)macconf->SlowProtocolDetect << 17) |
  20195. 8008eb0: 431a orrs r2, r3
  20196. macconf->GiantPacketSizeLimit);
  20197. 8008eb2: 683b ldr r3, [r7, #0]
  20198. 8008eb4: 6b5b ldr r3, [r3, #52] @ 0x34
  20199. macregval = ((macconf->ExtendedInterPacketGapVal << 25) |
  20200. 8008eb6: 4313 orrs r3, r2
  20201. 8008eb8: 60fb str r3, [r7, #12]
  20202. /* Write to MACECR */
  20203. MODIFY_REG(heth->Instance->MACECR, ETH_MACECR_MASK, macregval);
  20204. 8008eba: 687b ldr r3, [r7, #4]
  20205. 8008ebc: 681b ldr r3, [r3, #0]
  20206. 8008ebe: 685a ldr r2, [r3, #4]
  20207. 8008ec0: 4b42 ldr r3, [pc, #264] @ (8008fcc <ETH_SetMACConfig+0x230>)
  20208. 8008ec2: 4013 ands r3, r2
  20209. 8008ec4: 687a ldr r2, [r7, #4]
  20210. 8008ec6: 6812 ldr r2, [r2, #0]
  20211. 8008ec8: 68f9 ldr r1, [r7, #12]
  20212. 8008eca: 430b orrs r3, r1
  20213. 8008ecc: 6053 str r3, [r2, #4]
  20214. /*------------------------ MACWTR Configuration --------------------*/
  20215. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  20216. 8008ece: 683b ldr r3, [r7, #0]
  20217. 8008ed0: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  20218. 8008ed4: 021a lsls r2, r3, #8
  20219. macconf->WatchdogTimeout);
  20220. 8008ed6: 683b ldr r3, [r7, #0]
  20221. 8008ed8: 6c5b ldr r3, [r3, #68] @ 0x44
  20222. macregval = (((uint32_t)macconf->ProgrammableWatchdog << 8) |
  20223. 8008eda: 4313 orrs r3, r2
  20224. 8008edc: 60fb str r3, [r7, #12]
  20225. /* Write to MACWTR */
  20226. MODIFY_REG(heth->Instance->MACWTR, ETH_MACWTR_MASK, macregval);
  20227. 8008ede: 687b ldr r3, [r7, #4]
  20228. 8008ee0: 681b ldr r3, [r3, #0]
  20229. 8008ee2: 68da ldr r2, [r3, #12]
  20230. 8008ee4: 4b3a ldr r3, [pc, #232] @ (8008fd0 <ETH_SetMACConfig+0x234>)
  20231. 8008ee6: 4013 ands r3, r2
  20232. 8008ee8: 687a ldr r2, [r7, #4]
  20233. 8008eea: 6812 ldr r2, [r2, #0]
  20234. 8008eec: 68f9 ldr r1, [r7, #12]
  20235. 8008eee: 430b orrs r3, r1
  20236. 8008ef0: 60d3 str r3, [r2, #12]
  20237. /*------------------------ MACTFCR Configuration --------------------*/
  20238. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  20239. 8008ef2: 683b ldr r3, [r7, #0]
  20240. 8008ef4: f893 3054 ldrb.w r3, [r3, #84] @ 0x54
  20241. 8008ef8: 005a lsls r2, r3, #1
  20242. macconf->PauseLowThreshold |
  20243. 8008efa: 683b ldr r3, [r7, #0]
  20244. 8008efc: 6d1b ldr r3, [r3, #80] @ 0x50
  20245. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  20246. 8008efe: 4313 orrs r3, r2
  20247. ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7) |
  20248. 8008f00: 683a ldr r2, [r7, #0]
  20249. 8008f02: f892 204c ldrb.w r2, [r2, #76] @ 0x4c
  20250. 8008f06: 2a00 cmp r2, #0
  20251. 8008f08: d101 bne.n 8008f0e <ETH_SetMACConfig+0x172>
  20252. 8008f0a: 2280 movs r2, #128 @ 0x80
  20253. 8008f0c: e000 b.n 8008f10 <ETH_SetMACConfig+0x174>
  20254. 8008f0e: 2200 movs r2, #0
  20255. macconf->PauseLowThreshold |
  20256. 8008f10: 431a orrs r2, r3
  20257. (macconf->PauseTime << 16));
  20258. 8008f12: 683b ldr r3, [r7, #0]
  20259. 8008f14: 6c9b ldr r3, [r3, #72] @ 0x48
  20260. 8008f16: 041b lsls r3, r3, #16
  20261. macregval = (((uint32_t)macconf->TransmitFlowControl << 1) |
  20262. 8008f18: 4313 orrs r3, r2
  20263. 8008f1a: 60fb str r3, [r7, #12]
  20264. /* Write to MACTFCR */
  20265. MODIFY_REG(heth->Instance->MACTFCR, ETH_MACTFCR_MASK, macregval);
  20266. 8008f1c: 687b ldr r3, [r7, #4]
  20267. 8008f1e: 681b ldr r3, [r3, #0]
  20268. 8008f20: 6f1a ldr r2, [r3, #112] @ 0x70
  20269. 8008f22: f64f 730d movw r3, #65293 @ 0xff0d
  20270. 8008f26: 4013 ands r3, r2
  20271. 8008f28: 687a ldr r2, [r7, #4]
  20272. 8008f2a: 6812 ldr r2, [r2, #0]
  20273. 8008f2c: 68f9 ldr r1, [r7, #12]
  20274. 8008f2e: 430b orrs r3, r1
  20275. 8008f30: 6713 str r3, [r2, #112] @ 0x70
  20276. /*------------------------ MACRFCR Configuration --------------------*/
  20277. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  20278. 8008f32: 683b ldr r3, [r7, #0]
  20279. 8008f34: f893 3056 ldrb.w r3, [r3, #86] @ 0x56
  20280. 8008f38: 461a mov r2, r3
  20281. ((uint32_t)macconf->UnicastPausePacketDetect << 1));
  20282. 8008f3a: 683b ldr r3, [r7, #0]
  20283. 8008f3c: f893 3055 ldrb.w r3, [r3, #85] @ 0x55
  20284. 8008f40: 005b lsls r3, r3, #1
  20285. macregval = ((uint32_t)macconf->ReceiveFlowControl |
  20286. 8008f42: 4313 orrs r3, r2
  20287. 8008f44: 60fb str r3, [r7, #12]
  20288. /* Write to MACRFCR */
  20289. MODIFY_REG(heth->Instance->MACRFCR, ETH_MACRFCR_MASK, macregval);
  20290. 8008f46: 687b ldr r3, [r7, #4]
  20291. 8008f48: 681b ldr r3, [r3, #0]
  20292. 8008f4a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  20293. 8008f4e: f023 0103 bic.w r1, r3, #3
  20294. 8008f52: 687b ldr r3, [r7, #4]
  20295. 8008f54: 681b ldr r3, [r3, #0]
  20296. 8008f56: 68fa ldr r2, [r7, #12]
  20297. 8008f58: 430a orrs r2, r1
  20298. 8008f5a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  20299. /*------------------------ MTLTQOMR Configuration --------------------*/
  20300. /* Write to MTLTQOMR */
  20301. MODIFY_REG(heth->Instance->MTLTQOMR, ETH_MTLTQOMR_MASK, macconf->TransmitQueueMode);
  20302. 8008f5e: 687b ldr r3, [r7, #4]
  20303. 8008f60: 681b ldr r3, [r3, #0]
  20304. 8008f62: f8d3 3d00 ldr.w r3, [r3, #3328] @ 0xd00
  20305. 8008f66: f023 0172 bic.w r1, r3, #114 @ 0x72
  20306. 8008f6a: 683b ldr r3, [r7, #0]
  20307. 8008f6c: 6d9a ldr r2, [r3, #88] @ 0x58
  20308. 8008f6e: 687b ldr r3, [r7, #4]
  20309. 8008f70: 681b ldr r3, [r3, #0]
  20310. 8008f72: 430a orrs r2, r1
  20311. 8008f74: f8c3 2d00 str.w r2, [r3, #3328] @ 0xd00
  20312. /*------------------------ MTLRQOMR Configuration --------------------*/
  20313. macregval = (macconf->ReceiveQueueMode |
  20314. 8008f78: 683b ldr r3, [r7, #0]
  20315. 8008f7a: 6ddb ldr r3, [r3, #92] @ 0x5c
  20316. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  20317. 8008f7c: 683a ldr r2, [r7, #0]
  20318. 8008f7e: f892 2060 ldrb.w r2, [r2, #96] @ 0x60
  20319. 8008f82: 2a00 cmp r2, #0
  20320. 8008f84: d101 bne.n 8008f8a <ETH_SetMACConfig+0x1ee>
  20321. 8008f86: 2240 movs r2, #64 @ 0x40
  20322. 8008f88: e000 b.n 8008f8c <ETH_SetMACConfig+0x1f0>
  20323. 8008f8a: 2200 movs r2, #0
  20324. macregval = (macconf->ReceiveQueueMode |
  20325. 8008f8c: 431a orrs r2, r3
  20326. ((uint32_t)macconf->ForwardRxErrorPacket << 4) |
  20327. 8008f8e: 683b ldr r3, [r7, #0]
  20328. 8008f90: f893 3061 ldrb.w r3, [r3, #97] @ 0x61
  20329. 8008f94: 011b lsls r3, r3, #4
  20330. ((uint32_t)((macconf->DropTCPIPChecksumErrorPacket == DISABLE) ? 1U : 0U) << 6) |
  20331. 8008f96: 431a orrs r2, r3
  20332. ((uint32_t)macconf->ForwardRxUndersizedGoodPacket << 3));
  20333. 8008f98: 683b ldr r3, [r7, #0]
  20334. 8008f9a: f893 3062 ldrb.w r3, [r3, #98] @ 0x62
  20335. 8008f9e: 00db lsls r3, r3, #3
  20336. macregval = (macconf->ReceiveQueueMode |
  20337. 8008fa0: 4313 orrs r3, r2
  20338. 8008fa2: 60fb str r3, [r7, #12]
  20339. /* Write to MTLRQOMR */
  20340. MODIFY_REG(heth->Instance->MTLRQOMR, ETH_MTLRQOMR_MASK, macregval);
  20341. 8008fa4: 687b ldr r3, [r7, #4]
  20342. 8008fa6: 681b ldr r3, [r3, #0]
  20343. 8008fa8: f8d3 3d30 ldr.w r3, [r3, #3376] @ 0xd30
  20344. 8008fac: f023 017b bic.w r1, r3, #123 @ 0x7b
  20345. 8008fb0: 687b ldr r3, [r7, #4]
  20346. 8008fb2: 681b ldr r3, [r3, #0]
  20347. 8008fb4: 68fa ldr r2, [r7, #12]
  20348. 8008fb6: 430a orrs r2, r1
  20349. 8008fb8: f8c3 2d30 str.w r2, [r3, #3376] @ 0xd30
  20350. }
  20351. 8008fbc: bf00 nop
  20352. 8008fbe: 3714 adds r7, #20
  20353. 8008fc0: 46bd mov sp, r7
  20354. 8008fc2: f85d 7b04 ldr.w r7, [sp], #4
  20355. 8008fc6: 4770 bx lr
  20356. 8008fc8: 00048083 .word 0x00048083
  20357. 8008fcc: c0f88000 .word 0xc0f88000
  20358. 8008fd0: fffffef0 .word 0xfffffef0
  20359. 08008fd4 <ETH_SetDMAConfig>:
  20360. static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, const ETH_DMAConfigTypeDef *dmaconf)
  20361. {
  20362. 8008fd4: b480 push {r7}
  20363. 8008fd6: b085 sub sp, #20
  20364. 8008fd8: af00 add r7, sp, #0
  20365. 8008fda: 6078 str r0, [r7, #4]
  20366. 8008fdc: 6039 str r1, [r7, #0]
  20367. uint32_t dmaregval;
  20368. /*------------------------ DMAMR Configuration --------------------*/
  20369. MODIFY_REG(heth->Instance->DMAMR, ETH_DMAMR_MASK, dmaconf->DMAArbitration);
  20370. 8008fde: 687b ldr r3, [r7, #4]
  20371. 8008fe0: 681b ldr r3, [r3, #0]
  20372. 8008fe2: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20373. 8008fe6: 681a ldr r2, [r3, #0]
  20374. 8008fe8: 4b38 ldr r3, [pc, #224] @ (80090cc <ETH_SetDMAConfig+0xf8>)
  20375. 8008fea: 4013 ands r3, r2
  20376. 8008fec: 683a ldr r2, [r7, #0]
  20377. 8008fee: 6811 ldr r1, [r2, #0]
  20378. 8008ff0: 687a ldr r2, [r7, #4]
  20379. 8008ff2: 6812 ldr r2, [r2, #0]
  20380. 8008ff4: 430b orrs r3, r1
  20381. 8008ff6: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20382. 8008ffa: 6013 str r3, [r2, #0]
  20383. /*------------------------ DMASBMR Configuration --------------------*/
  20384. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20385. 8008ffc: 683b ldr r3, [r7, #0]
  20386. 8008ffe: 791b ldrb r3, [r3, #4]
  20387. 8009000: 031a lsls r2, r3, #12
  20388. dmaconf->BurstMode |
  20389. 8009002: 683b ldr r3, [r7, #0]
  20390. 8009004: 689b ldr r3, [r3, #8]
  20391. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20392. 8009006: 431a orrs r2, r3
  20393. ((uint32_t)dmaconf->RebuildINCRxBurst << 15));
  20394. 8009008: 683b ldr r3, [r7, #0]
  20395. 800900a: 7b1b ldrb r3, [r3, #12]
  20396. 800900c: 03db lsls r3, r3, #15
  20397. dmaregval = (((uint32_t)dmaconf->AddressAlignedBeats << 12) |
  20398. 800900e: 4313 orrs r3, r2
  20399. 8009010: 60fb str r3, [r7, #12]
  20400. MODIFY_REG(heth->Instance->DMASBMR, ETH_DMASBMR_MASK, dmaregval);
  20401. 8009012: 687b ldr r3, [r7, #4]
  20402. 8009014: 681b ldr r3, [r3, #0]
  20403. 8009016: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20404. 800901a: 685a ldr r2, [r3, #4]
  20405. 800901c: 4b2c ldr r3, [pc, #176] @ (80090d0 <ETH_SetDMAConfig+0xfc>)
  20406. 800901e: 4013 ands r3, r2
  20407. 8009020: 687a ldr r2, [r7, #4]
  20408. 8009022: 6812 ldr r2, [r2, #0]
  20409. 8009024: 68f9 ldr r1, [r7, #12]
  20410. 8009026: 430b orrs r3, r1
  20411. 8009028: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20412. 800902c: 6053 str r3, [r2, #4]
  20413. /*------------------------ DMACCR Configuration --------------------*/
  20414. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  20415. 800902e: 683b ldr r3, [r7, #0]
  20416. 8009030: 7b5b ldrb r3, [r3, #13]
  20417. 8009032: 041a lsls r2, r3, #16
  20418. dmaconf->MaximumSegmentSize);
  20419. 8009034: 683b ldr r3, [r7, #0]
  20420. 8009036: 6a1b ldr r3, [r3, #32]
  20421. dmaregval = (((uint32_t)dmaconf->PBLx8Mode << 16) |
  20422. 8009038: 4313 orrs r3, r2
  20423. 800903a: 60fb str r3, [r7, #12]
  20424. MODIFY_REG(heth->Instance->DMACCR, ETH_DMACCR_MASK, dmaregval);
  20425. 800903c: 687b ldr r3, [r7, #4]
  20426. 800903e: 681b ldr r3, [r3, #0]
  20427. 8009040: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20428. 8009044: f8d3 2100 ldr.w r2, [r3, #256] @ 0x100
  20429. 8009048: 4b22 ldr r3, [pc, #136] @ (80090d4 <ETH_SetDMAConfig+0x100>)
  20430. 800904a: 4013 ands r3, r2
  20431. 800904c: 687a ldr r2, [r7, #4]
  20432. 800904e: 6812 ldr r2, [r2, #0]
  20433. 8009050: 68f9 ldr r1, [r7, #12]
  20434. 8009052: 430b orrs r3, r1
  20435. 8009054: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20436. 8009058: f8c2 3100 str.w r3, [r2, #256] @ 0x100
  20437. /*------------------------ DMACTCR Configuration --------------------*/
  20438. dmaregval = (dmaconf->TxDMABurstLength |
  20439. 800905c: 683b ldr r3, [r7, #0]
  20440. 800905e: 691a ldr r2, [r3, #16]
  20441. ((uint32_t)dmaconf->SecondPacketOperate << 4) |
  20442. 8009060: 683b ldr r3, [r7, #0]
  20443. 8009062: 7d1b ldrb r3, [r3, #20]
  20444. 8009064: 011b lsls r3, r3, #4
  20445. dmaregval = (dmaconf->TxDMABurstLength |
  20446. 8009066: 431a orrs r2, r3
  20447. ((uint32_t)dmaconf->TCPSegmentation << 12));
  20448. 8009068: 683b ldr r3, [r7, #0]
  20449. 800906a: 7f5b ldrb r3, [r3, #29]
  20450. 800906c: 031b lsls r3, r3, #12
  20451. dmaregval = (dmaconf->TxDMABurstLength |
  20452. 800906e: 4313 orrs r3, r2
  20453. 8009070: 60fb str r3, [r7, #12]
  20454. MODIFY_REG(heth->Instance->DMACTCR, ETH_DMACTCR_MASK, dmaregval);
  20455. 8009072: 687b ldr r3, [r7, #4]
  20456. 8009074: 681b ldr r3, [r3, #0]
  20457. 8009076: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20458. 800907a: f8d3 2104 ldr.w r2, [r3, #260] @ 0x104
  20459. 800907e: 4b16 ldr r3, [pc, #88] @ (80090d8 <ETH_SetDMAConfig+0x104>)
  20460. 8009080: 4013 ands r3, r2
  20461. 8009082: 687a ldr r2, [r7, #4]
  20462. 8009084: 6812 ldr r2, [r2, #0]
  20463. 8009086: 68f9 ldr r1, [r7, #12]
  20464. 8009088: 430b orrs r3, r1
  20465. 800908a: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20466. 800908e: f8c2 3104 str.w r3, [r2, #260] @ 0x104
  20467. /*------------------------ DMACRCR Configuration --------------------*/
  20468. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  20469. 8009092: 683b ldr r3, [r7, #0]
  20470. 8009094: 7f1b ldrb r3, [r3, #28]
  20471. 8009096: 07da lsls r2, r3, #31
  20472. dmaconf->RxDMABurstLength);
  20473. 8009098: 683b ldr r3, [r7, #0]
  20474. 800909a: 699b ldr r3, [r3, #24]
  20475. dmaregval = (((uint32_t)dmaconf->FlushRxPacket << 31) |
  20476. 800909c: 4313 orrs r3, r2
  20477. 800909e: 60fb str r3, [r7, #12]
  20478. /* Write to DMACRCR */
  20479. MODIFY_REG(heth->Instance->DMACRCR, ETH_DMACRCR_MASK, dmaregval);
  20480. 80090a0: 687b ldr r3, [r7, #4]
  20481. 80090a2: 681b ldr r3, [r3, #0]
  20482. 80090a4: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20483. 80090a8: f8d3 2108 ldr.w r2, [r3, #264] @ 0x108
  20484. 80090ac: 4b0b ldr r3, [pc, #44] @ (80090dc <ETH_SetDMAConfig+0x108>)
  20485. 80090ae: 4013 ands r3, r2
  20486. 80090b0: 687a ldr r2, [r7, #4]
  20487. 80090b2: 6812 ldr r2, [r2, #0]
  20488. 80090b4: 68f9 ldr r1, [r7, #12]
  20489. 80090b6: 430b orrs r3, r1
  20490. 80090b8: f502 5280 add.w r2, r2, #4096 @ 0x1000
  20491. 80090bc: f8c2 3108 str.w r3, [r2, #264] @ 0x108
  20492. }
  20493. 80090c0: bf00 nop
  20494. 80090c2: 3714 adds r7, #20
  20495. 80090c4: 46bd mov sp, r7
  20496. 80090c6: f85d 7b04 ldr.w r7, [sp], #4
  20497. 80090ca: 4770 bx lr
  20498. 80090cc: ffff87fd .word 0xffff87fd
  20499. 80090d0: ffff2ffe .word 0xffff2ffe
  20500. 80090d4: fffec000 .word 0xfffec000
  20501. 80090d8: ffc0efef .word 0xffc0efef
  20502. 80090dc: 7fc0ffff .word 0x7fc0ffff
  20503. 080090e0 <ETH_MACDMAConfig>:
  20504. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20505. * the configuration information for ETHERNET module
  20506. * @retval HAL status
  20507. */
  20508. static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth)
  20509. {
  20510. 80090e0: b580 push {r7, lr}
  20511. 80090e2: b0a4 sub sp, #144 @ 0x90
  20512. 80090e4: af00 add r7, sp, #0
  20513. 80090e6: 6078 str r0, [r7, #4]
  20514. ETH_MACConfigTypeDef macDefaultConf;
  20515. ETH_DMAConfigTypeDef dmaDefaultConf;
  20516. /*--------------- ETHERNET MAC registers default Configuration --------------*/
  20517. macDefaultConf.AutomaticPadCRCStrip = ENABLE;
  20518. 80090e8: 2301 movs r3, #1
  20519. 80090ea: f887 303b strb.w r3, [r7, #59] @ 0x3b
  20520. macDefaultConf.BackOffLimit = ETH_BACKOFFLIMIT_10;
  20521. 80090ee: 2300 movs r3, #0
  20522. 80090f0: 653b str r3, [r7, #80] @ 0x50
  20523. macDefaultConf.CarrierSenseBeforeTransmit = DISABLE;
  20524. 80090f2: 2300 movs r3, #0
  20525. 80090f4: f887 3049 strb.w r3, [r7, #73] @ 0x49
  20526. macDefaultConf.CarrierSenseDuringTransmit = DISABLE;
  20527. 80090f8: 2300 movs r3, #0
  20528. 80090fa: f887 304b strb.w r3, [r7, #75] @ 0x4b
  20529. macDefaultConf.ChecksumOffload = ENABLE;
  20530. 80090fe: 2301 movs r3, #1
  20531. 8009100: f887 3030 strb.w r3, [r7, #48] @ 0x30
  20532. macDefaultConf.CRCCheckingRxPackets = ENABLE;
  20533. 8009104: 2301 movs r3, #1
  20534. 8009106: f887 305e strb.w r3, [r7, #94] @ 0x5e
  20535. macDefaultConf.CRCStripTypePacket = ENABLE;
  20536. 800910a: 2301 movs r3, #1
  20537. 800910c: f887 303a strb.w r3, [r7, #58] @ 0x3a
  20538. macDefaultConf.DeferralCheck = DISABLE;
  20539. 8009110: 2300 movs r3, #0
  20540. 8009112: f887 3054 strb.w r3, [r7, #84] @ 0x54
  20541. macDefaultConf.DropTCPIPChecksumErrorPacket = ENABLE;
  20542. 8009116: 2301 movs r3, #1
  20543. 8009118: f887 308c strb.w r3, [r7, #140] @ 0x8c
  20544. macDefaultConf.DuplexMode = ETH_FULLDUPLEX_MODE;
  20545. 800911c: f44f 5300 mov.w r3, #8192 @ 0x2000
  20546. 8009120: 647b str r3, [r7, #68] @ 0x44
  20547. macDefaultConf.ExtendedInterPacketGap = DISABLE;
  20548. 8009122: 2300 movs r3, #0
  20549. 8009124: f887 3064 strb.w r3, [r7, #100] @ 0x64
  20550. macDefaultConf.ExtendedInterPacketGapVal = 0x0U;
  20551. 8009128: 2300 movs r3, #0
  20552. 800912a: 66bb str r3, [r7, #104] @ 0x68
  20553. macDefaultConf.ForwardRxErrorPacket = DISABLE;
  20554. 800912c: 2300 movs r3, #0
  20555. 800912e: f887 308d strb.w r3, [r7, #141] @ 0x8d
  20556. macDefaultConf.ForwardRxUndersizedGoodPacket = DISABLE;
  20557. 8009132: 2300 movs r3, #0
  20558. 8009134: f887 308e strb.w r3, [r7, #142] @ 0x8e
  20559. macDefaultConf.GiantPacketSizeLimit = 0x618U;
  20560. 8009138: f44f 63c3 mov.w r3, #1560 @ 0x618
  20561. 800913c: 663b str r3, [r7, #96] @ 0x60
  20562. macDefaultConf.GiantPacketSizeLimitControl = DISABLE;
  20563. 800913e: 2300 movs r3, #0
  20564. 8009140: f887 3038 strb.w r3, [r7, #56] @ 0x38
  20565. macDefaultConf.InterPacketGapVal = ETH_INTERPACKETGAP_96BIT;
  20566. 8009144: 2300 movs r3, #0
  20567. 8009146: 637b str r3, [r7, #52] @ 0x34
  20568. macDefaultConf.Jabber = ENABLE;
  20569. 8009148: 2301 movs r3, #1
  20570. 800914a: f887 303d strb.w r3, [r7, #61] @ 0x3d
  20571. macDefaultConf.JumboPacket = DISABLE;
  20572. 800914e: 2300 movs r3, #0
  20573. 8009150: f887 303e strb.w r3, [r7, #62] @ 0x3e
  20574. macDefaultConf.LoopbackMode = DISABLE;
  20575. 8009154: 2300 movs r3, #0
  20576. 8009156: f887 3048 strb.w r3, [r7, #72] @ 0x48
  20577. macDefaultConf.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS_4;
  20578. 800915a: 2300 movs r3, #0
  20579. 800915c: 67fb str r3, [r7, #124] @ 0x7c
  20580. macDefaultConf.PauseTime = 0x0U;
  20581. 800915e: 2300 movs r3, #0
  20582. 8009160: 677b str r3, [r7, #116] @ 0x74
  20583. macDefaultConf.PreambleLength = ETH_PREAMBLELENGTH_7;
  20584. 8009162: 2300 movs r3, #0
  20585. 8009164: 65bb str r3, [r7, #88] @ 0x58
  20586. macDefaultConf.ProgrammableWatchdog = DISABLE;
  20587. 8009166: 2300 movs r3, #0
  20588. 8009168: f887 306c strb.w r3, [r7, #108] @ 0x6c
  20589. macDefaultConf.ReceiveFlowControl = DISABLE;
  20590. 800916c: 2300 movs r3, #0
  20591. 800916e: f887 3082 strb.w r3, [r7, #130] @ 0x82
  20592. macDefaultConf.ReceiveOwn = ENABLE;
  20593. 8009172: 2301 movs r3, #1
  20594. 8009174: f887 304a strb.w r3, [r7, #74] @ 0x4a
  20595. macDefaultConf.ReceiveQueueMode = ETH_RECEIVESTOREFORWARD;
  20596. 8009178: 2320 movs r3, #32
  20597. 800917a: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  20598. macDefaultConf.RetryTransmission = ENABLE;
  20599. 800917e: 2301 movs r3, #1
  20600. 8009180: f887 304c strb.w r3, [r7, #76] @ 0x4c
  20601. macDefaultConf.SlowProtocolDetect = DISABLE;
  20602. 8009184: 2300 movs r3, #0
  20603. 8009186: f887 305d strb.w r3, [r7, #93] @ 0x5d
  20604. macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0;
  20605. 800918a: f04f 5340 mov.w r3, #805306368 @ 0x30000000
  20606. 800918e: 62fb str r3, [r7, #44] @ 0x2c
  20607. macDefaultConf.Speed = ETH_SPEED_100M;
  20608. 8009190: f44f 4380 mov.w r3, #16384 @ 0x4000
  20609. 8009194: 643b str r3, [r7, #64] @ 0x40
  20610. macDefaultConf.Support2KPacket = DISABLE;
  20611. 8009196: 2300 movs r3, #0
  20612. 8009198: f887 3039 strb.w r3, [r7, #57] @ 0x39
  20613. macDefaultConf.TransmitQueueMode = ETH_TRANSMITSTOREFORWARD;
  20614. 800919c: 2302 movs r3, #2
  20615. 800919e: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  20616. macDefaultConf.TransmitFlowControl = DISABLE;
  20617. 80091a2: 2300 movs r3, #0
  20618. 80091a4: f887 3080 strb.w r3, [r7, #128] @ 0x80
  20619. macDefaultConf.UnicastPausePacketDetect = DISABLE;
  20620. 80091a8: 2300 movs r3, #0
  20621. 80091aa: f887 3081 strb.w r3, [r7, #129] @ 0x81
  20622. macDefaultConf.UnicastSlowProtocolPacketDetect = DISABLE;
  20623. 80091ae: 2300 movs r3, #0
  20624. 80091b0: f887 305c strb.w r3, [r7, #92] @ 0x5c
  20625. macDefaultConf.Watchdog = ENABLE;
  20626. 80091b4: 2301 movs r3, #1
  20627. 80091b6: f887 303c strb.w r3, [r7, #60] @ 0x3c
  20628. macDefaultConf.WatchdogTimeout = ETH_MACWTR_WTO_2KB;
  20629. 80091ba: 2300 movs r3, #0
  20630. 80091bc: 673b str r3, [r7, #112] @ 0x70
  20631. macDefaultConf.ZeroQuantaPause = ENABLE;
  20632. 80091be: 2301 movs r3, #1
  20633. 80091c0: f887 3078 strb.w r3, [r7, #120] @ 0x78
  20634. /* MAC default configuration */
  20635. ETH_SetMACConfig(heth, &macDefaultConf);
  20636. 80091c4: f107 032c add.w r3, r7, #44 @ 0x2c
  20637. 80091c8: 4619 mov r1, r3
  20638. 80091ca: 6878 ldr r0, [r7, #4]
  20639. 80091cc: f7ff fde6 bl 8008d9c <ETH_SetMACConfig>
  20640. /*--------------- ETHERNET DMA registers default Configuration --------------*/
  20641. dmaDefaultConf.AddressAlignedBeats = ENABLE;
  20642. 80091d0: 2301 movs r3, #1
  20643. 80091d2: 733b strb r3, [r7, #12]
  20644. dmaDefaultConf.BurstMode = ETH_BURSTLENGTH_FIXED;
  20645. 80091d4: 2301 movs r3, #1
  20646. 80091d6: 613b str r3, [r7, #16]
  20647. dmaDefaultConf.DMAArbitration = ETH_DMAARBITRATION_RX1_TX1;
  20648. 80091d8: 2300 movs r3, #0
  20649. 80091da: 60bb str r3, [r7, #8]
  20650. dmaDefaultConf.FlushRxPacket = DISABLE;
  20651. 80091dc: 2300 movs r3, #0
  20652. 80091de: f887 3024 strb.w r3, [r7, #36] @ 0x24
  20653. dmaDefaultConf.PBLx8Mode = DISABLE;
  20654. 80091e2: 2300 movs r3, #0
  20655. 80091e4: 757b strb r3, [r7, #21]
  20656. dmaDefaultConf.RebuildINCRxBurst = DISABLE;
  20657. 80091e6: 2300 movs r3, #0
  20658. 80091e8: 753b strb r3, [r7, #20]
  20659. dmaDefaultConf.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT;
  20660. 80091ea: f44f 1300 mov.w r3, #2097152 @ 0x200000
  20661. 80091ee: 623b str r3, [r7, #32]
  20662. dmaDefaultConf.SecondPacketOperate = DISABLE;
  20663. 80091f0: 2300 movs r3, #0
  20664. 80091f2: 773b strb r3, [r7, #28]
  20665. dmaDefaultConf.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT;
  20666. 80091f4: f44f 1300 mov.w r3, #2097152 @ 0x200000
  20667. 80091f8: 61bb str r3, [r7, #24]
  20668. dmaDefaultConf.TCPSegmentation = DISABLE;
  20669. 80091fa: 2300 movs r3, #0
  20670. 80091fc: f887 3025 strb.w r3, [r7, #37] @ 0x25
  20671. dmaDefaultConf.MaximumSegmentSize = ETH_SEGMENT_SIZE_DEFAULT;
  20672. 8009200: f44f 7306 mov.w r3, #536 @ 0x218
  20673. 8009204: 62bb str r3, [r7, #40] @ 0x28
  20674. /* DMA default configuration */
  20675. ETH_SetDMAConfig(heth, &dmaDefaultConf);
  20676. 8009206: f107 0308 add.w r3, r7, #8
  20677. 800920a: 4619 mov r1, r3
  20678. 800920c: 6878 ldr r0, [r7, #4]
  20679. 800920e: f7ff fee1 bl 8008fd4 <ETH_SetDMAConfig>
  20680. }
  20681. 8009212: bf00 nop
  20682. 8009214: 3790 adds r7, #144 @ 0x90
  20683. 8009216: 46bd mov sp, r7
  20684. 8009218: bd80 pop {r7, pc}
  20685. 0800921a <ETH_DMATxDescListInit>:
  20686. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20687. * the configuration information for ETHERNET module
  20688. * @retval None
  20689. */
  20690. static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth)
  20691. {
  20692. 800921a: b480 push {r7}
  20693. 800921c: b085 sub sp, #20
  20694. 800921e: af00 add r7, sp, #0
  20695. 8009220: 6078 str r0, [r7, #4]
  20696. ETH_DMADescTypeDef *dmatxdesc;
  20697. uint32_t i;
  20698. /* Fill each DMATxDesc descriptor with the right values */
  20699. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  20700. 8009222: 2300 movs r3, #0
  20701. 8009224: 60fb str r3, [r7, #12]
  20702. 8009226: e01d b.n 8009264 <ETH_DMATxDescListInit+0x4a>
  20703. {
  20704. dmatxdesc = heth->Init.TxDesc + i;
  20705. 8009228: 687b ldr r3, [r7, #4]
  20706. 800922a: 68d9 ldr r1, [r3, #12]
  20707. 800922c: 68fa ldr r2, [r7, #12]
  20708. 800922e: 4613 mov r3, r2
  20709. 8009230: 005b lsls r3, r3, #1
  20710. 8009232: 4413 add r3, r2
  20711. 8009234: 00db lsls r3, r3, #3
  20712. 8009236: 440b add r3, r1
  20713. 8009238: 60bb str r3, [r7, #8]
  20714. WRITE_REG(dmatxdesc->DESC0, 0x0U);
  20715. 800923a: 68bb ldr r3, [r7, #8]
  20716. 800923c: 2200 movs r2, #0
  20717. 800923e: 601a str r2, [r3, #0]
  20718. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  20719. 8009240: 68bb ldr r3, [r7, #8]
  20720. 8009242: 2200 movs r2, #0
  20721. 8009244: 605a str r2, [r3, #4]
  20722. WRITE_REG(dmatxdesc->DESC2, 0x0U);
  20723. 8009246: 68bb ldr r3, [r7, #8]
  20724. 8009248: 2200 movs r2, #0
  20725. 800924a: 609a str r2, [r3, #8]
  20726. WRITE_REG(dmatxdesc->DESC3, 0x0U);
  20727. 800924c: 68bb ldr r3, [r7, #8]
  20728. 800924e: 2200 movs r2, #0
  20729. 8009250: 60da str r2, [r3, #12]
  20730. WRITE_REG(heth->TxDescList.TxDesc[i], (uint32_t)dmatxdesc);
  20731. 8009252: 68b9 ldr r1, [r7, #8]
  20732. 8009254: 687b ldr r3, [r7, #4]
  20733. 8009256: 68fa ldr r2, [r7, #12]
  20734. 8009258: 3206 adds r2, #6
  20735. 800925a: f843 1022 str.w r1, [r3, r2, lsl #2]
  20736. for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++)
  20737. 800925e: 68fb ldr r3, [r7, #12]
  20738. 8009260: 3301 adds r3, #1
  20739. 8009262: 60fb str r3, [r7, #12]
  20740. 8009264: 68fb ldr r3, [r7, #12]
  20741. 8009266: 2b03 cmp r3, #3
  20742. 8009268: d9de bls.n 8009228 <ETH_DMATxDescListInit+0xe>
  20743. }
  20744. heth->TxDescList.CurTxDesc = 0;
  20745. 800926a: 687b ldr r3, [r7, #4]
  20746. 800926c: 2200 movs r2, #0
  20747. 800926e: 629a str r2, [r3, #40] @ 0x28
  20748. /* Set Transmit Descriptor Ring Length */
  20749. WRITE_REG(heth->Instance->DMACTDRLR, (ETH_TX_DESC_CNT - 1U));
  20750. 8009270: 687b ldr r3, [r7, #4]
  20751. 8009272: 681b ldr r3, [r3, #0]
  20752. 8009274: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20753. 8009278: 461a mov r2, r3
  20754. 800927a: 2303 movs r3, #3
  20755. 800927c: f8c2 312c str.w r3, [r2, #300] @ 0x12c
  20756. /* Set Transmit Descriptor List Address */
  20757. WRITE_REG(heth->Instance->DMACTDLAR, (uint32_t) heth->Init.TxDesc);
  20758. 8009280: 687b ldr r3, [r7, #4]
  20759. 8009282: 68da ldr r2, [r3, #12]
  20760. 8009284: 687b ldr r3, [r7, #4]
  20761. 8009286: 681b ldr r3, [r3, #0]
  20762. 8009288: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20763. 800928c: f8c3 2114 str.w r2, [r3, #276] @ 0x114
  20764. /* Set Transmit Descriptor Tail pointer */
  20765. WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc);
  20766. 8009290: 687b ldr r3, [r7, #4]
  20767. 8009292: 68da ldr r2, [r3, #12]
  20768. 8009294: 687b ldr r3, [r7, #4]
  20769. 8009296: 681b ldr r3, [r3, #0]
  20770. 8009298: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20771. 800929c: f8c3 2120 str.w r2, [r3, #288] @ 0x120
  20772. }
  20773. 80092a0: bf00 nop
  20774. 80092a2: 3714 adds r7, #20
  20775. 80092a4: 46bd mov sp, r7
  20776. 80092a6: f85d 7b04 ldr.w r7, [sp], #4
  20777. 80092aa: 4770 bx lr
  20778. 080092ac <ETH_DMARxDescListInit>:
  20779. * @param heth: pointer to a ETH_HandleTypeDef structure that contains
  20780. * the configuration information for ETHERNET module
  20781. * @retval None
  20782. */
  20783. static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth)
  20784. {
  20785. 80092ac: b480 push {r7}
  20786. 80092ae: b085 sub sp, #20
  20787. 80092b0: af00 add r7, sp, #0
  20788. 80092b2: 6078 str r0, [r7, #4]
  20789. ETH_DMADescTypeDef *dmarxdesc;
  20790. uint32_t i;
  20791. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  20792. 80092b4: 2300 movs r3, #0
  20793. 80092b6: 60fb str r3, [r7, #12]
  20794. 80092b8: e023 b.n 8009302 <ETH_DMARxDescListInit+0x56>
  20795. {
  20796. dmarxdesc = heth->Init.RxDesc + i;
  20797. 80092ba: 687b ldr r3, [r7, #4]
  20798. 80092bc: 6919 ldr r1, [r3, #16]
  20799. 80092be: 68fa ldr r2, [r7, #12]
  20800. 80092c0: 4613 mov r3, r2
  20801. 80092c2: 005b lsls r3, r3, #1
  20802. 80092c4: 4413 add r3, r2
  20803. 80092c6: 00db lsls r3, r3, #3
  20804. 80092c8: 440b add r3, r1
  20805. 80092ca: 60bb str r3, [r7, #8]
  20806. WRITE_REG(dmarxdesc->DESC0, 0x0U);
  20807. 80092cc: 68bb ldr r3, [r7, #8]
  20808. 80092ce: 2200 movs r2, #0
  20809. 80092d0: 601a str r2, [r3, #0]
  20810. WRITE_REG(dmarxdesc->DESC1, 0x0U);
  20811. 80092d2: 68bb ldr r3, [r7, #8]
  20812. 80092d4: 2200 movs r2, #0
  20813. 80092d6: 605a str r2, [r3, #4]
  20814. WRITE_REG(dmarxdesc->DESC2, 0x0U);
  20815. 80092d8: 68bb ldr r3, [r7, #8]
  20816. 80092da: 2200 movs r2, #0
  20817. 80092dc: 609a str r2, [r3, #8]
  20818. WRITE_REG(dmarxdesc->DESC3, 0x0U);
  20819. 80092de: 68bb ldr r3, [r7, #8]
  20820. 80092e0: 2200 movs r2, #0
  20821. 80092e2: 60da str r2, [r3, #12]
  20822. WRITE_REG(dmarxdesc->BackupAddr0, 0x0U);
  20823. 80092e4: 68bb ldr r3, [r7, #8]
  20824. 80092e6: 2200 movs r2, #0
  20825. 80092e8: 611a str r2, [r3, #16]
  20826. WRITE_REG(dmarxdesc->BackupAddr1, 0x0U);
  20827. 80092ea: 68bb ldr r3, [r7, #8]
  20828. 80092ec: 2200 movs r2, #0
  20829. 80092ee: 615a str r2, [r3, #20]
  20830. /* Set Rx descritors addresses */
  20831. WRITE_REG(heth->RxDescList.RxDesc[i], (uint32_t)dmarxdesc);
  20832. 80092f0: 68b9 ldr r1, [r7, #8]
  20833. 80092f2: 687b ldr r3, [r7, #4]
  20834. 80092f4: 68fa ldr r2, [r7, #12]
  20835. 80092f6: 3212 adds r2, #18
  20836. 80092f8: f843 1022 str.w r1, [r3, r2, lsl #2]
  20837. for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++)
  20838. 80092fc: 68fb ldr r3, [r7, #12]
  20839. 80092fe: 3301 adds r3, #1
  20840. 8009300: 60fb str r3, [r7, #12]
  20841. 8009302: 68fb ldr r3, [r7, #12]
  20842. 8009304: 2b03 cmp r3, #3
  20843. 8009306: d9d8 bls.n 80092ba <ETH_DMARxDescListInit+0xe>
  20844. }
  20845. WRITE_REG(heth->RxDescList.RxDescIdx, 0U);
  20846. 8009308: 687b ldr r3, [r7, #4]
  20847. 800930a: 2200 movs r2, #0
  20848. 800930c: 65da str r2, [r3, #92] @ 0x5c
  20849. WRITE_REG(heth->RxDescList.RxDescCnt, 0U);
  20850. 800930e: 687b ldr r3, [r7, #4]
  20851. 8009310: 2200 movs r2, #0
  20852. 8009312: 661a str r2, [r3, #96] @ 0x60
  20853. WRITE_REG(heth->RxDescList.RxBuildDescIdx, 0U);
  20854. 8009314: 687b ldr r3, [r7, #4]
  20855. 8009316: 2200 movs r2, #0
  20856. 8009318: 669a str r2, [r3, #104] @ 0x68
  20857. WRITE_REG(heth->RxDescList.RxBuildDescCnt, 0U);
  20858. 800931a: 687b ldr r3, [r7, #4]
  20859. 800931c: 2200 movs r2, #0
  20860. 800931e: 66da str r2, [r3, #108] @ 0x6c
  20861. WRITE_REG(heth->RxDescList.ItMode, 0U);
  20862. 8009320: 687b ldr r3, [r7, #4]
  20863. 8009322: 2200 movs r2, #0
  20864. 8009324: 659a str r2, [r3, #88] @ 0x58
  20865. /* Set Receive Descriptor Ring Length */
  20866. WRITE_REG(heth->Instance->DMACRDRLR, ((uint32_t)(ETH_RX_DESC_CNT - 1U)));
  20867. 8009326: 687b ldr r3, [r7, #4]
  20868. 8009328: 681b ldr r3, [r3, #0]
  20869. 800932a: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20870. 800932e: 461a mov r2, r3
  20871. 8009330: 2303 movs r3, #3
  20872. 8009332: f8c2 3130 str.w r3, [r2, #304] @ 0x130
  20873. /* Set Receive Descriptor List Address */
  20874. WRITE_REG(heth->Instance->DMACRDLAR, (uint32_t) heth->Init.RxDesc);
  20875. 8009336: 687b ldr r3, [r7, #4]
  20876. 8009338: 691a ldr r2, [r3, #16]
  20877. 800933a: 687b ldr r3, [r7, #4]
  20878. 800933c: 681b ldr r3, [r3, #0]
  20879. 800933e: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20880. 8009342: f8c3 211c str.w r2, [r3, #284] @ 0x11c
  20881. /* Set Receive Descriptor Tail pointer Address */
  20882. WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U))));
  20883. 8009346: 687b ldr r3, [r7, #4]
  20884. 8009348: 691b ldr r3, [r3, #16]
  20885. 800934a: f103 0248 add.w r2, r3, #72 @ 0x48
  20886. 800934e: 687b ldr r3, [r7, #4]
  20887. 8009350: 681b ldr r3, [r3, #0]
  20888. 8009352: f503 5380 add.w r3, r3, #4096 @ 0x1000
  20889. 8009356: f8c3 2128 str.w r2, [r3, #296] @ 0x128
  20890. }
  20891. 800935a: bf00 nop
  20892. 800935c: 3714 adds r7, #20
  20893. 800935e: 46bd mov sp, r7
  20894. 8009360: f85d 7b04 ldr.w r7, [sp], #4
  20895. 8009364: 4770 bx lr
  20896. ...
  20897. 08009368 <ETH_Prepare_Tx_Descriptors>:
  20898. * @param ItMode: Enable or disable Tx EOT interrept
  20899. * @retval Status
  20900. */
  20901. static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, const ETH_TxPacketConfigTypeDef *pTxConfig,
  20902. uint32_t ItMode)
  20903. {
  20904. 8009368: b480 push {r7}
  20905. 800936a: b091 sub sp, #68 @ 0x44
  20906. 800936c: af00 add r7, sp, #0
  20907. 800936e: 60f8 str r0, [r7, #12]
  20908. 8009370: 60b9 str r1, [r7, #8]
  20909. 8009372: 607a str r2, [r7, #4]
  20910. ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList;
  20911. 8009374: 68fb ldr r3, [r7, #12]
  20912. 8009376: 3318 adds r3, #24
  20913. 8009378: 627b str r3, [r7, #36] @ 0x24
  20914. uint32_t descidx = dmatxdesclist->CurTxDesc;
  20915. 800937a: 6a7b ldr r3, [r7, #36] @ 0x24
  20916. 800937c: 691b ldr r3, [r3, #16]
  20917. 800937e: 63fb str r3, [r7, #60] @ 0x3c
  20918. uint32_t firstdescidx = dmatxdesclist->CurTxDesc;
  20919. 8009380: 6a7b ldr r3, [r7, #36] @ 0x24
  20920. 8009382: 691b ldr r3, [r3, #16]
  20921. 8009384: 623b str r3, [r7, #32]
  20922. uint32_t idx;
  20923. uint32_t descnbr = 0;
  20924. 8009386: 2300 movs r3, #0
  20925. 8009388: 637b str r3, [r7, #52] @ 0x34
  20926. ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  20927. 800938a: 6a7b ldr r3, [r7, #36] @ 0x24
  20928. 800938c: 6bfa ldr r2, [r7, #60] @ 0x3c
  20929. 800938e: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  20930. 8009392: 633b str r3, [r7, #48] @ 0x30
  20931. ETH_BufferTypeDef *txbuffer = pTxConfig->TxBuffer;
  20932. 8009394: 68bb ldr r3, [r7, #8]
  20933. 8009396: 689b ldr r3, [r3, #8]
  20934. 8009398: 62fb str r3, [r7, #44] @ 0x2c
  20935. uint32_t bd_count = 0;
  20936. 800939a: 2300 movs r3, #0
  20937. 800939c: 62bb str r3, [r7, #40] @ 0x28
  20938. uint32_t primask_bit;
  20939. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  20940. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  20941. 800939e: 6b3b ldr r3, [r7, #48] @ 0x30
  20942. 80093a0: 68db ldr r3, [r3, #12]
  20943. 80093a2: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  20944. 80093a6: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  20945. 80093aa: d007 beq.n 80093bc <ETH_Prepare_Tx_Descriptors+0x54>
  20946. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  20947. 80093ac: 6a7a ldr r2, [r7, #36] @ 0x24
  20948. 80093ae: 6bfb ldr r3, [r7, #60] @ 0x3c
  20949. 80093b0: 3304 adds r3, #4
  20950. 80093b2: 009b lsls r3, r3, #2
  20951. 80093b4: 4413 add r3, r2
  20952. 80093b6: 685b ldr r3, [r3, #4]
  20953. 80093b8: 2b00 cmp r3, #0
  20954. 80093ba: d001 beq.n 80093c0 <ETH_Prepare_Tx_Descriptors+0x58>
  20955. {
  20956. return HAL_ETH_ERROR_BUSY;
  20957. 80093bc: 2302 movs r3, #2
  20958. 80093be: e266 b.n 800988e <ETH_Prepare_Tx_Descriptors+0x526>
  20959. /***************************************************************************/
  20960. /***************** Context descriptor configuration (Optional) **********/
  20961. /***************************************************************************/
  20962. /* If VLAN tag is enabled for this packet */
  20963. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  20964. 80093c0: 68bb ldr r3, [r7, #8]
  20965. 80093c2: 681b ldr r3, [r3, #0]
  20966. 80093c4: f003 0304 and.w r3, r3, #4
  20967. 80093c8: 2b00 cmp r3, #0
  20968. 80093ca: d044 beq.n 8009456 <ETH_Prepare_Tx_Descriptors+0xee>
  20969. {
  20970. /* Set vlan tag value */
  20971. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_VT, pTxConfig->VlanTag);
  20972. 80093cc: 6b3b ldr r3, [r7, #48] @ 0x30
  20973. 80093ce: 68da ldr r2, [r3, #12]
  20974. 80093d0: 4b75 ldr r3, [pc, #468] @ (80095a8 <ETH_Prepare_Tx_Descriptors+0x240>)
  20975. 80093d2: 4013 ands r3, r2
  20976. 80093d4: 68ba ldr r2, [r7, #8]
  20977. 80093d6: 6a52 ldr r2, [r2, #36] @ 0x24
  20978. 80093d8: 431a orrs r2, r3
  20979. 80093da: 6b3b ldr r3, [r7, #48] @ 0x30
  20980. 80093dc: 60da str r2, [r3, #12]
  20981. /* Set vlan tag valid bit */
  20982. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_VLTV);
  20983. 80093de: 6b3b ldr r3, [r7, #48] @ 0x30
  20984. 80093e0: 68db ldr r3, [r3, #12]
  20985. 80093e2: f443 3280 orr.w r2, r3, #65536 @ 0x10000
  20986. 80093e6: 6b3b ldr r3, [r7, #48] @ 0x30
  20987. 80093e8: 60da str r2, [r3, #12]
  20988. /* Set the descriptor as the vlan input source */
  20989. SET_BIT(heth->Instance->MACVIR, ETH_MACVIR_VLTI);
  20990. 80093ea: 68fb ldr r3, [r7, #12]
  20991. 80093ec: 681b ldr r3, [r3, #0]
  20992. 80093ee: 6e1a ldr r2, [r3, #96] @ 0x60
  20993. 80093f0: 68fb ldr r3, [r7, #12]
  20994. 80093f2: 681b ldr r3, [r3, #0]
  20995. 80093f4: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  20996. 80093f8: 661a str r2, [r3, #96] @ 0x60
  20997. /* if inner VLAN is enabled */
  20998. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_INNERVLANTAG) != (uint32_t)RESET)
  20999. 80093fa: 68bb ldr r3, [r7, #8]
  21000. 80093fc: 681b ldr r3, [r3, #0]
  21001. 80093fe: f003 0308 and.w r3, r3, #8
  21002. 8009402: 2b00 cmp r3, #0
  21003. 8009404: d027 beq.n 8009456 <ETH_Prepare_Tx_Descriptors+0xee>
  21004. {
  21005. /* Set inner vlan tag value */
  21006. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_IVT, (pTxConfig->InnerVlanTag << 16));
  21007. 8009406: 6b3b ldr r3, [r7, #48] @ 0x30
  21008. 8009408: 689b ldr r3, [r3, #8]
  21009. 800940a: b29a uxth r2, r3
  21010. 800940c: 68bb ldr r3, [r7, #8]
  21011. 800940e: 6adb ldr r3, [r3, #44] @ 0x2c
  21012. 8009410: 041b lsls r3, r3, #16
  21013. 8009412: 431a orrs r2, r3
  21014. 8009414: 6b3b ldr r3, [r7, #48] @ 0x30
  21015. 8009416: 609a str r2, [r3, #8]
  21016. /* Set inner vlan tag valid bit */
  21017. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_IVLTV);
  21018. 8009418: 6b3b ldr r3, [r7, #48] @ 0x30
  21019. 800941a: 68db ldr r3, [r3, #12]
  21020. 800941c: f443 3200 orr.w r2, r3, #131072 @ 0x20000
  21021. 8009420: 6b3b ldr r3, [r7, #48] @ 0x30
  21022. 8009422: 60da str r2, [r3, #12]
  21023. /* Set Vlan Tag control */
  21024. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXCDESC_IVTIR, pTxConfig->InnerVlanCtrl);
  21025. 8009424: 6b3b ldr r3, [r7, #48] @ 0x30
  21026. 8009426: 68db ldr r3, [r3, #12]
  21027. 8009428: f423 2240 bic.w r2, r3, #786432 @ 0xc0000
  21028. 800942c: 68bb ldr r3, [r7, #8]
  21029. 800942e: 6b1b ldr r3, [r3, #48] @ 0x30
  21030. 8009430: 431a orrs r2, r3
  21031. 8009432: 6b3b ldr r3, [r7, #48] @ 0x30
  21032. 8009434: 60da str r2, [r3, #12]
  21033. /* Set the descriptor as the inner vlan input source */
  21034. SET_BIT(heth->Instance->MACIVIR, ETH_MACIVIR_VLTI);
  21035. 8009436: 68fb ldr r3, [r7, #12]
  21036. 8009438: 681b ldr r3, [r3, #0]
  21037. 800943a: 6e5a ldr r2, [r3, #100] @ 0x64
  21038. 800943c: 68fb ldr r3, [r7, #12]
  21039. 800943e: 681b ldr r3, [r3, #0]
  21040. 8009440: f442 1280 orr.w r2, r2, #1048576 @ 0x100000
  21041. 8009444: 665a str r2, [r3, #100] @ 0x64
  21042. /* Enable double VLAN processing */
  21043. SET_BIT(heth->Instance->MACVTR, ETH_MACVTR_EDVLP);
  21044. 8009446: 68fb ldr r3, [r7, #12]
  21045. 8009448: 681b ldr r3, [r3, #0]
  21046. 800944a: 6d1a ldr r2, [r3, #80] @ 0x50
  21047. 800944c: 68fb ldr r3, [r7, #12]
  21048. 800944e: 681b ldr r3, [r3, #0]
  21049. 8009450: f042 6280 orr.w r2, r2, #67108864 @ 0x4000000
  21050. 8009454: 651a str r2, [r3, #80] @ 0x50
  21051. }
  21052. }
  21053. /* if tcp segmentation is enabled for this packet */
  21054. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  21055. 8009456: 68bb ldr r3, [r7, #8]
  21056. 8009458: 681b ldr r3, [r3, #0]
  21057. 800945a: f003 0310 and.w r3, r3, #16
  21058. 800945e: 2b00 cmp r3, #0
  21059. 8009460: d00e beq.n 8009480 <ETH_Prepare_Tx_Descriptors+0x118>
  21060. {
  21061. /* Set MSS value */
  21062. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXCDESC_MSS, pTxConfig->MaxSegmentSize);
  21063. 8009462: 6b3b ldr r3, [r7, #48] @ 0x30
  21064. 8009464: 689a ldr r2, [r3, #8]
  21065. 8009466: 4b51 ldr r3, [pc, #324] @ (80095ac <ETH_Prepare_Tx_Descriptors+0x244>)
  21066. 8009468: 4013 ands r3, r2
  21067. 800946a: 68ba ldr r2, [r7, #8]
  21068. 800946c: 6992 ldr r2, [r2, #24]
  21069. 800946e: 431a orrs r2, r3
  21070. 8009470: 6b3b ldr r3, [r7, #48] @ 0x30
  21071. 8009472: 609a str r2, [r3, #8]
  21072. /* Set MSS valid bit */
  21073. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_TCMSSV);
  21074. 8009474: 6b3b ldr r3, [r7, #48] @ 0x30
  21075. 8009476: 68db ldr r3, [r3, #12]
  21076. 8009478: f043 6280 orr.w r2, r3, #67108864 @ 0x4000000
  21077. 800947c: 6b3b ldr r3, [r7, #48] @ 0x30
  21078. 800947e: 60da str r2, [r3, #12]
  21079. }
  21080. if ((READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  21081. 8009480: 68bb ldr r3, [r7, #8]
  21082. 8009482: 681b ldr r3, [r3, #0]
  21083. 8009484: f003 0304 and.w r3, r3, #4
  21084. 8009488: 2b00 cmp r3, #0
  21085. 800948a: d105 bne.n 8009498 <ETH_Prepare_Tx_Descriptors+0x130>
  21086. || (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET))
  21087. 800948c: 68bb ldr r3, [r7, #8]
  21088. 800948e: 681b ldr r3, [r3, #0]
  21089. 8009490: f003 0310 and.w r3, r3, #16
  21090. 8009494: 2b00 cmp r3, #0
  21091. 8009496: d036 beq.n 8009506 <ETH_Prepare_Tx_Descriptors+0x19e>
  21092. {
  21093. /* Set as context descriptor */
  21094. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_CTXT);
  21095. 8009498: 6b3b ldr r3, [r7, #48] @ 0x30
  21096. 800949a: 68db ldr r3, [r3, #12]
  21097. 800949c: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000
  21098. 80094a0: 6b3b ldr r3, [r7, #48] @ 0x30
  21099. 80094a2: 60da str r2, [r3, #12]
  21100. __ASM volatile ("dmb 0xF":::"memory");
  21101. 80094a4: f3bf 8f5f dmb sy
  21102. }
  21103. 80094a8: bf00 nop
  21104. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21105. __DMB();
  21106. /* Set own bit */
  21107. SET_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  21108. 80094aa: 6b3b ldr r3, [r7, #48] @ 0x30
  21109. 80094ac: 68db ldr r3, [r3, #12]
  21110. 80094ae: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21111. 80094b2: 6b3b ldr r3, [r7, #48] @ 0x30
  21112. 80094b4: 60da str r2, [r3, #12]
  21113. /* Increment current tx descriptor index */
  21114. INCR_TX_DESC_INDEX(descidx, 1U);
  21115. 80094b6: 6bfb ldr r3, [r7, #60] @ 0x3c
  21116. 80094b8: 3301 adds r3, #1
  21117. 80094ba: 63fb str r3, [r7, #60] @ 0x3c
  21118. 80094bc: 6bfb ldr r3, [r7, #60] @ 0x3c
  21119. 80094be: 2b03 cmp r3, #3
  21120. 80094c0: d902 bls.n 80094c8 <ETH_Prepare_Tx_Descriptors+0x160>
  21121. 80094c2: 6bfb ldr r3, [r7, #60] @ 0x3c
  21122. 80094c4: 3b04 subs r3, #4
  21123. 80094c6: 63fb str r3, [r7, #60] @ 0x3c
  21124. /* Get current descriptor address */
  21125. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21126. 80094c8: 6a7b ldr r3, [r7, #36] @ 0x24
  21127. 80094ca: 6bfa ldr r2, [r7, #60] @ 0x3c
  21128. 80094cc: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21129. 80094d0: 633b str r3, [r7, #48] @ 0x30
  21130. descnbr += 1U;
  21131. 80094d2: 6b7b ldr r3, [r7, #52] @ 0x34
  21132. 80094d4: 3301 adds r3, #1
  21133. 80094d6: 637b str r3, [r7, #52] @ 0x34
  21134. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  21135. if (READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCWBF_OWN) == ETH_DMATXNDESCWBF_OWN)
  21136. 80094d8: 6b3b ldr r3, [r7, #48] @ 0x30
  21137. 80094da: 68db ldr r3, [r3, #12]
  21138. 80094dc: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  21139. 80094e0: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  21140. 80094e4: d10f bne.n 8009506 <ETH_Prepare_Tx_Descriptors+0x19e>
  21141. {
  21142. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[firstdescidx];
  21143. 80094e6: 6a7b ldr r3, [r7, #36] @ 0x24
  21144. 80094e8: 6a3a ldr r2, [r7, #32]
  21145. 80094ea: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21146. 80094ee: 633b str r3, [r7, #48] @ 0x30
  21147. __ASM volatile ("dmb 0xF":::"memory");
  21148. 80094f0: f3bf 8f5f dmb sy
  21149. }
  21150. 80094f4: bf00 nop
  21151. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21152. __DMB();
  21153. /* Clear own bit */
  21154. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXCDESC_OWN);
  21155. 80094f6: 6b3b ldr r3, [r7, #48] @ 0x30
  21156. 80094f8: 68db ldr r3, [r3, #12]
  21157. 80094fa: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  21158. 80094fe: 6b3b ldr r3, [r7, #48] @ 0x30
  21159. 8009500: 60da str r2, [r3, #12]
  21160. return HAL_ETH_ERROR_BUSY;
  21161. 8009502: 2302 movs r3, #2
  21162. 8009504: e1c3 b.n 800988e <ETH_Prepare_Tx_Descriptors+0x526>
  21163. /***************************************************************************/
  21164. /***************** Normal descriptors configuration *****************/
  21165. /***************************************************************************/
  21166. descnbr += 1U;
  21167. 8009506: 6b7b ldr r3, [r7, #52] @ 0x34
  21168. 8009508: 3301 adds r3, #1
  21169. 800950a: 637b str r3, [r7, #52] @ 0x34
  21170. /* Set header or buffer 1 address */
  21171. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  21172. 800950c: 6afb ldr r3, [r7, #44] @ 0x2c
  21173. 800950e: 681b ldr r3, [r3, #0]
  21174. 8009510: 461a mov r2, r3
  21175. 8009512: 6b3b ldr r3, [r7, #48] @ 0x30
  21176. 8009514: 601a str r2, [r3, #0]
  21177. /* Set header or buffer 1 Length */
  21178. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  21179. 8009516: 6b3b ldr r3, [r7, #48] @ 0x30
  21180. 8009518: 689a ldr r2, [r3, #8]
  21181. 800951a: 4b24 ldr r3, [pc, #144] @ (80095ac <ETH_Prepare_Tx_Descriptors+0x244>)
  21182. 800951c: 4013 ands r3, r2
  21183. 800951e: 6afa ldr r2, [r7, #44] @ 0x2c
  21184. 8009520: 6852 ldr r2, [r2, #4]
  21185. 8009522: 431a orrs r2, r3
  21186. 8009524: 6b3b ldr r3, [r7, #48] @ 0x30
  21187. 8009526: 609a str r2, [r3, #8]
  21188. if (txbuffer->next != NULL)
  21189. 8009528: 6afb ldr r3, [r7, #44] @ 0x2c
  21190. 800952a: 689b ldr r3, [r3, #8]
  21191. 800952c: 2b00 cmp r3, #0
  21192. 800952e: d012 beq.n 8009556 <ETH_Prepare_Tx_Descriptors+0x1ee>
  21193. {
  21194. txbuffer = txbuffer->next;
  21195. 8009530: 6afb ldr r3, [r7, #44] @ 0x2c
  21196. 8009532: 689b ldr r3, [r3, #8]
  21197. 8009534: 62fb str r3, [r7, #44] @ 0x2c
  21198. /* Set buffer 2 address */
  21199. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  21200. 8009536: 6afb ldr r3, [r7, #44] @ 0x2c
  21201. 8009538: 681b ldr r3, [r3, #0]
  21202. 800953a: 461a mov r2, r3
  21203. 800953c: 6b3b ldr r3, [r7, #48] @ 0x30
  21204. 800953e: 605a str r2, [r3, #4]
  21205. /* Set buffer 2 Length */
  21206. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  21207. 8009540: 6b3b ldr r3, [r7, #48] @ 0x30
  21208. 8009542: 689a ldr r2, [r3, #8]
  21209. 8009544: 4b1a ldr r3, [pc, #104] @ (80095b0 <ETH_Prepare_Tx_Descriptors+0x248>)
  21210. 8009546: 4013 ands r3, r2
  21211. 8009548: 6afa ldr r2, [r7, #44] @ 0x2c
  21212. 800954a: 6852 ldr r2, [r2, #4]
  21213. 800954c: 0412 lsls r2, r2, #16
  21214. 800954e: 431a orrs r2, r3
  21215. 8009550: 6b3b ldr r3, [r7, #48] @ 0x30
  21216. 8009552: 609a str r2, [r3, #8]
  21217. 8009554: e008 b.n 8009568 <ETH_Prepare_Tx_Descriptors+0x200>
  21218. }
  21219. else
  21220. {
  21221. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  21222. 8009556: 6b3b ldr r3, [r7, #48] @ 0x30
  21223. 8009558: 2200 movs r2, #0
  21224. 800955a: 605a str r2, [r3, #4]
  21225. /* Set buffer 2 Length */
  21226. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  21227. 800955c: 6b3b ldr r3, [r7, #48] @ 0x30
  21228. 800955e: 689a ldr r2, [r3, #8]
  21229. 8009560: 4b13 ldr r3, [pc, #76] @ (80095b0 <ETH_Prepare_Tx_Descriptors+0x248>)
  21230. 8009562: 4013 ands r3, r2
  21231. 8009564: 6b3a ldr r2, [r7, #48] @ 0x30
  21232. 8009566: 6093 str r3, [r2, #8]
  21233. }
  21234. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  21235. 8009568: 68bb ldr r3, [r7, #8]
  21236. 800956a: 681b ldr r3, [r3, #0]
  21237. 800956c: f003 0310 and.w r3, r3, #16
  21238. 8009570: 2b00 cmp r3, #0
  21239. 8009572: d021 beq.n 80095b8 <ETH_Prepare_Tx_Descriptors+0x250>
  21240. {
  21241. /* Set TCP Header length */
  21242. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_THL, (pTxConfig->TCPHeaderLen << 19));
  21243. 8009574: 6b3b ldr r3, [r7, #48] @ 0x30
  21244. 8009576: 68db ldr r3, [r3, #12]
  21245. 8009578: f423 02f0 bic.w r2, r3, #7864320 @ 0x780000
  21246. 800957c: 68bb ldr r3, [r7, #8]
  21247. 800957e: 6a1b ldr r3, [r3, #32]
  21248. 8009580: 04db lsls r3, r3, #19
  21249. 8009582: 431a orrs r2, r3
  21250. 8009584: 6b3b ldr r3, [r7, #48] @ 0x30
  21251. 8009586: 60da str r2, [r3, #12]
  21252. /* Set TCP payload length */
  21253. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  21254. 8009588: 6b3b ldr r3, [r7, #48] @ 0x30
  21255. 800958a: 68da ldr r2, [r3, #12]
  21256. 800958c: 4b09 ldr r3, [pc, #36] @ (80095b4 <ETH_Prepare_Tx_Descriptors+0x24c>)
  21257. 800958e: 4013 ands r3, r2
  21258. 8009590: 68ba ldr r2, [r7, #8]
  21259. 8009592: 69d2 ldr r2, [r2, #28]
  21260. 8009594: 431a orrs r2, r3
  21261. 8009596: 6b3b ldr r3, [r7, #48] @ 0x30
  21262. 8009598: 60da str r2, [r3, #12]
  21263. /* Set TCP Segmentation Enabled bit */
  21264. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  21265. 800959a: 6b3b ldr r3, [r7, #48] @ 0x30
  21266. 800959c: 68db ldr r3, [r3, #12]
  21267. 800959e: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  21268. 80095a2: 6b3b ldr r3, [r7, #48] @ 0x30
  21269. 80095a4: 60da str r2, [r3, #12]
  21270. 80095a6: e02e b.n 8009606 <ETH_Prepare_Tx_Descriptors+0x29e>
  21271. 80095a8: ffff0000 .word 0xffff0000
  21272. 80095ac: ffffc000 .word 0xffffc000
  21273. 80095b0: c000ffff .word 0xc000ffff
  21274. 80095b4: fffc0000 .word 0xfffc0000
  21275. }
  21276. else
  21277. {
  21278. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  21279. 80095b8: 6b3b ldr r3, [r7, #48] @ 0x30
  21280. 80095ba: 68da ldr r2, [r3, #12]
  21281. 80095bc: 4b7b ldr r3, [pc, #492] @ (80097ac <ETH_Prepare_Tx_Descriptors+0x444>)
  21282. 80095be: 4013 ands r3, r2
  21283. 80095c0: 68ba ldr r2, [r7, #8]
  21284. 80095c2: 6852 ldr r2, [r2, #4]
  21285. 80095c4: 431a orrs r2, r3
  21286. 80095c6: 6b3b ldr r3, [r7, #48] @ 0x30
  21287. 80095c8: 60da str r2, [r3, #12]
  21288. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  21289. 80095ca: 68bb ldr r3, [r7, #8]
  21290. 80095cc: 681b ldr r3, [r3, #0]
  21291. 80095ce: f003 0301 and.w r3, r3, #1
  21292. 80095d2: 2b00 cmp r3, #0
  21293. 80095d4: d008 beq.n 80095e8 <ETH_Prepare_Tx_Descriptors+0x280>
  21294. {
  21295. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  21296. 80095d6: 6b3b ldr r3, [r7, #48] @ 0x30
  21297. 80095d8: 68db ldr r3, [r3, #12]
  21298. 80095da: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  21299. 80095de: 68bb ldr r3, [r7, #8]
  21300. 80095e0: 695b ldr r3, [r3, #20]
  21301. 80095e2: 431a orrs r2, r3
  21302. 80095e4: 6b3b ldr r3, [r7, #48] @ 0x30
  21303. 80095e6: 60da str r2, [r3, #12]
  21304. }
  21305. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CRCPAD) != (uint32_t)RESET)
  21306. 80095e8: 68bb ldr r3, [r7, #8]
  21307. 80095ea: 681b ldr r3, [r3, #0]
  21308. 80095ec: f003 0320 and.w r3, r3, #32
  21309. 80095f0: 2b00 cmp r3, #0
  21310. 80095f2: d008 beq.n 8009606 <ETH_Prepare_Tx_Descriptors+0x29e>
  21311. {
  21312. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CPC, pTxConfig->CRCPadCtrl);
  21313. 80095f4: 6b3b ldr r3, [r7, #48] @ 0x30
  21314. 80095f6: 68db ldr r3, [r3, #12]
  21315. 80095f8: f023 6240 bic.w r2, r3, #201326592 @ 0xc000000
  21316. 80095fc: 68bb ldr r3, [r7, #8]
  21317. 80095fe: 691b ldr r3, [r3, #16]
  21318. 8009600: 431a orrs r2, r3
  21319. 8009602: 6b3b ldr r3, [r7, #48] @ 0x30
  21320. 8009604: 60da str r2, [r3, #12]
  21321. }
  21322. }
  21323. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != (uint32_t)RESET)
  21324. 8009606: 68bb ldr r3, [r7, #8]
  21325. 8009608: 681b ldr r3, [r3, #0]
  21326. 800960a: f003 0304 and.w r3, r3, #4
  21327. 800960e: 2b00 cmp r3, #0
  21328. 8009610: d008 beq.n 8009624 <ETH_Prepare_Tx_Descriptors+0x2bc>
  21329. {
  21330. /* Set Vlan Tag control */
  21331. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_VTIR, pTxConfig->VlanCtrl);
  21332. 8009612: 6b3b ldr r3, [r7, #48] @ 0x30
  21333. 8009614: 689b ldr r3, [r3, #8]
  21334. 8009616: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  21335. 800961a: 68bb ldr r3, [r7, #8]
  21336. 800961c: 6a9b ldr r3, [r3, #40] @ 0x28
  21337. 800961e: 431a orrs r2, r3
  21338. 8009620: 6b3b ldr r3, [r7, #48] @ 0x30
  21339. 8009622: 609a str r2, [r3, #8]
  21340. }
  21341. /* Mark it as First Descriptor */
  21342. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  21343. 8009624: 6b3b ldr r3, [r7, #48] @ 0x30
  21344. 8009626: 68db ldr r3, [r3, #12]
  21345. 8009628: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000
  21346. 800962c: 6b3b ldr r3, [r7, #48] @ 0x30
  21347. 800962e: 60da str r2, [r3, #12]
  21348. /* Mark it as NORMAL descriptor */
  21349. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  21350. 8009630: 6b3b ldr r3, [r7, #48] @ 0x30
  21351. 8009632: 68db ldr r3, [r3, #12]
  21352. 8009634: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  21353. 8009638: 6b3b ldr r3, [r7, #48] @ 0x30
  21354. 800963a: 60da str r2, [r3, #12]
  21355. __ASM volatile ("dmb 0xF":::"memory");
  21356. 800963c: f3bf 8f5f dmb sy
  21357. }
  21358. 8009640: bf00 nop
  21359. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21360. __DMB();
  21361. /* set OWN bit of FIRST descriptor */
  21362. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21363. 8009642: 6b3b ldr r3, [r7, #48] @ 0x30
  21364. 8009644: 68db ldr r3, [r3, #12]
  21365. 8009646: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21366. 800964a: 6b3b ldr r3, [r7, #48] @ 0x30
  21367. 800964c: 60da str r2, [r3, #12]
  21368. /* If source address insertion/replacement is enabled for this packet */
  21369. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_SAIC) != (uint32_t)RESET)
  21370. 800964e: 68bb ldr r3, [r7, #8]
  21371. 8009650: 681b ldr r3, [r3, #0]
  21372. 8009652: f003 0302 and.w r3, r3, #2
  21373. 8009656: 2b00 cmp r3, #0
  21374. 8009658: f000 80da beq.w 8009810 <ETH_Prepare_Tx_Descriptors+0x4a8>
  21375. {
  21376. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_SAIC, pTxConfig->SrcAddrCtrl);
  21377. 800965c: 6b3b ldr r3, [r7, #48] @ 0x30
  21378. 800965e: 68db ldr r3, [r3, #12]
  21379. 8009660: f023 7260 bic.w r2, r3, #58720256 @ 0x3800000
  21380. 8009664: 68bb ldr r3, [r7, #8]
  21381. 8009666: 68db ldr r3, [r3, #12]
  21382. 8009668: 431a orrs r2, r3
  21383. 800966a: 6b3b ldr r3, [r7, #48] @ 0x30
  21384. 800966c: 60da str r2, [r3, #12]
  21385. }
  21386. /* only if the packet is split into more than one descriptors > 1 */
  21387. while (txbuffer->next != NULL)
  21388. 800966e: e0cf b.n 8009810 <ETH_Prepare_Tx_Descriptors+0x4a8>
  21389. {
  21390. /* Clear the LD bit of previous descriptor */
  21391. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  21392. 8009670: 6b3b ldr r3, [r7, #48] @ 0x30
  21393. 8009672: 68db ldr r3, [r3, #12]
  21394. 8009674: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000
  21395. 8009678: 6b3b ldr r3, [r7, #48] @ 0x30
  21396. 800967a: 60da str r2, [r3, #12]
  21397. /* Increment current tx descriptor index */
  21398. INCR_TX_DESC_INDEX(descidx, 1U);
  21399. 800967c: 6bfb ldr r3, [r7, #60] @ 0x3c
  21400. 800967e: 3301 adds r3, #1
  21401. 8009680: 63fb str r3, [r7, #60] @ 0x3c
  21402. 8009682: 6bfb ldr r3, [r7, #60] @ 0x3c
  21403. 8009684: 2b03 cmp r3, #3
  21404. 8009686: d902 bls.n 800968e <ETH_Prepare_Tx_Descriptors+0x326>
  21405. 8009688: 6bfb ldr r3, [r7, #60] @ 0x3c
  21406. 800968a: 3b04 subs r3, #4
  21407. 800968c: 63fb str r3, [r7, #60] @ 0x3c
  21408. /* Get current descriptor address */
  21409. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21410. 800968e: 6a7b ldr r3, [r7, #36] @ 0x24
  21411. 8009690: 6bfa ldr r2, [r7, #60] @ 0x3c
  21412. 8009692: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21413. 8009696: 633b str r3, [r7, #48] @ 0x30
  21414. /* Clear the FD bit of new Descriptor */
  21415. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FD);
  21416. 8009698: 6b3b ldr r3, [r7, #48] @ 0x30
  21417. 800969a: 68db ldr r3, [r3, #12]
  21418. 800969c: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000
  21419. 80096a0: 6b3b ldr r3, [r7, #48] @ 0x30
  21420. 80096a2: 60da str r2, [r3, #12]
  21421. /* Current Tx Descriptor Owned by DMA: cannot be used by the application */
  21422. if ((READ_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN) == ETH_DMATXNDESCRF_OWN)
  21423. 80096a4: 6b3b ldr r3, [r7, #48] @ 0x30
  21424. 80096a6: 68db ldr r3, [r3, #12]
  21425. 80096a8: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  21426. 80096ac: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  21427. 80096b0: d007 beq.n 80096c2 <ETH_Prepare_Tx_Descriptors+0x35a>
  21428. || (dmatxdesclist->PacketAddress[descidx] != NULL))
  21429. 80096b2: 6a7a ldr r2, [r7, #36] @ 0x24
  21430. 80096b4: 6bfb ldr r3, [r7, #60] @ 0x3c
  21431. 80096b6: 3304 adds r3, #4
  21432. 80096b8: 009b lsls r3, r3, #2
  21433. 80096ba: 4413 add r3, r2
  21434. 80096bc: 685b ldr r3, [r3, #4]
  21435. 80096be: 2b00 cmp r3, #0
  21436. 80096c0: d029 beq.n 8009716 <ETH_Prepare_Tx_Descriptors+0x3ae>
  21437. {
  21438. descidx = firstdescidx;
  21439. 80096c2: 6a3b ldr r3, [r7, #32]
  21440. 80096c4: 63fb str r3, [r7, #60] @ 0x3c
  21441. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21442. 80096c6: 6a7b ldr r3, [r7, #36] @ 0x24
  21443. 80096c8: 6bfa ldr r2, [r7, #60] @ 0x3c
  21444. 80096ca: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21445. 80096ce: 633b str r3, [r7, #48] @ 0x30
  21446. /* clear previous desc own bit */
  21447. for (idx = 0; idx < descnbr; idx ++)
  21448. 80096d0: 2300 movs r3, #0
  21449. 80096d2: 63bb str r3, [r7, #56] @ 0x38
  21450. 80096d4: e019 b.n 800970a <ETH_Prepare_Tx_Descriptors+0x3a2>
  21451. __ASM volatile ("dmb 0xF":::"memory");
  21452. 80096d6: f3bf 8f5f dmb sy
  21453. }
  21454. 80096da: bf00 nop
  21455. {
  21456. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21457. __DMB();
  21458. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21459. 80096dc: 6b3b ldr r3, [r7, #48] @ 0x30
  21460. 80096de: 68db ldr r3, [r3, #12]
  21461. 80096e0: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  21462. 80096e4: 6b3b ldr r3, [r7, #48] @ 0x30
  21463. 80096e6: 60da str r2, [r3, #12]
  21464. /* Increment current tx descriptor index */
  21465. INCR_TX_DESC_INDEX(descidx, 1U);
  21466. 80096e8: 6bfb ldr r3, [r7, #60] @ 0x3c
  21467. 80096ea: 3301 adds r3, #1
  21468. 80096ec: 63fb str r3, [r7, #60] @ 0x3c
  21469. 80096ee: 6bfb ldr r3, [r7, #60] @ 0x3c
  21470. 80096f0: 2b03 cmp r3, #3
  21471. 80096f2: d902 bls.n 80096fa <ETH_Prepare_Tx_Descriptors+0x392>
  21472. 80096f4: 6bfb ldr r3, [r7, #60] @ 0x3c
  21473. 80096f6: 3b04 subs r3, #4
  21474. 80096f8: 63fb str r3, [r7, #60] @ 0x3c
  21475. /* Get current descriptor address */
  21476. dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx];
  21477. 80096fa: 6a7b ldr r3, [r7, #36] @ 0x24
  21478. 80096fc: 6bfa ldr r2, [r7, #60] @ 0x3c
  21479. 80096fe: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21480. 8009702: 633b str r3, [r7, #48] @ 0x30
  21481. for (idx = 0; idx < descnbr; idx ++)
  21482. 8009704: 6bbb ldr r3, [r7, #56] @ 0x38
  21483. 8009706: 3301 adds r3, #1
  21484. 8009708: 63bb str r3, [r7, #56] @ 0x38
  21485. 800970a: 6bba ldr r2, [r7, #56] @ 0x38
  21486. 800970c: 6b7b ldr r3, [r7, #52] @ 0x34
  21487. 800970e: 429a cmp r2, r3
  21488. 8009710: d3e1 bcc.n 80096d6 <ETH_Prepare_Tx_Descriptors+0x36e>
  21489. }
  21490. return HAL_ETH_ERROR_BUSY;
  21491. 8009712: 2302 movs r3, #2
  21492. 8009714: e0bb b.n 800988e <ETH_Prepare_Tx_Descriptors+0x526>
  21493. }
  21494. descnbr += 1U;
  21495. 8009716: 6b7b ldr r3, [r7, #52] @ 0x34
  21496. 8009718: 3301 adds r3, #1
  21497. 800971a: 637b str r3, [r7, #52] @ 0x34
  21498. /* Get the next Tx buffer in the list */
  21499. txbuffer = txbuffer->next;
  21500. 800971c: 6afb ldr r3, [r7, #44] @ 0x2c
  21501. 800971e: 689b ldr r3, [r3, #8]
  21502. 8009720: 62fb str r3, [r7, #44] @ 0x2c
  21503. /* Set header or buffer 1 address */
  21504. WRITE_REG(dmatxdesc->DESC0, (uint32_t)txbuffer->buffer);
  21505. 8009722: 6afb ldr r3, [r7, #44] @ 0x2c
  21506. 8009724: 681b ldr r3, [r3, #0]
  21507. 8009726: 461a mov r2, r3
  21508. 8009728: 6b3b ldr r3, [r7, #48] @ 0x30
  21509. 800972a: 601a str r2, [r3, #0]
  21510. /* Set header or buffer 1 Length */
  21511. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B1L, txbuffer->len);
  21512. 800972c: 6b3b ldr r3, [r7, #48] @ 0x30
  21513. 800972e: 689a ldr r2, [r3, #8]
  21514. 8009730: 4b1f ldr r3, [pc, #124] @ (80097b0 <ETH_Prepare_Tx_Descriptors+0x448>)
  21515. 8009732: 4013 ands r3, r2
  21516. 8009734: 6afa ldr r2, [r7, #44] @ 0x2c
  21517. 8009736: 6852 ldr r2, [r2, #4]
  21518. 8009738: 431a orrs r2, r3
  21519. 800973a: 6b3b ldr r3, [r7, #48] @ 0x30
  21520. 800973c: 609a str r2, [r3, #8]
  21521. if (txbuffer->next != NULL)
  21522. 800973e: 6afb ldr r3, [r7, #44] @ 0x2c
  21523. 8009740: 689b ldr r3, [r3, #8]
  21524. 8009742: 2b00 cmp r3, #0
  21525. 8009744: d012 beq.n 800976c <ETH_Prepare_Tx_Descriptors+0x404>
  21526. {
  21527. /* Get the next Tx buffer in the list */
  21528. txbuffer = txbuffer->next;
  21529. 8009746: 6afb ldr r3, [r7, #44] @ 0x2c
  21530. 8009748: 689b ldr r3, [r3, #8]
  21531. 800974a: 62fb str r3, [r7, #44] @ 0x2c
  21532. /* Set buffer 2 address */
  21533. WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
  21534. 800974c: 6afb ldr r3, [r7, #44] @ 0x2c
  21535. 800974e: 681b ldr r3, [r3, #0]
  21536. 8009750: 461a mov r2, r3
  21537. 8009752: 6b3b ldr r3, [r7, #48] @ 0x30
  21538. 8009754: 605a str r2, [r3, #4]
  21539. /* Set buffer 2 Length */
  21540. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
  21541. 8009756: 6b3b ldr r3, [r7, #48] @ 0x30
  21542. 8009758: 689a ldr r2, [r3, #8]
  21543. 800975a: 4b16 ldr r3, [pc, #88] @ (80097b4 <ETH_Prepare_Tx_Descriptors+0x44c>)
  21544. 800975c: 4013 ands r3, r2
  21545. 800975e: 6afa ldr r2, [r7, #44] @ 0x2c
  21546. 8009760: 6852 ldr r2, [r2, #4]
  21547. 8009762: 0412 lsls r2, r2, #16
  21548. 8009764: 431a orrs r2, r3
  21549. 8009766: 6b3b ldr r3, [r7, #48] @ 0x30
  21550. 8009768: 609a str r2, [r3, #8]
  21551. 800976a: e008 b.n 800977e <ETH_Prepare_Tx_Descriptors+0x416>
  21552. }
  21553. else
  21554. {
  21555. WRITE_REG(dmatxdesc->DESC1, 0x0U);
  21556. 800976c: 6b3b ldr r3, [r7, #48] @ 0x30
  21557. 800976e: 2200 movs r2, #0
  21558. 8009770: 605a str r2, [r3, #4]
  21559. /* Set buffer 2 Length */
  21560. MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, 0x0U);
  21561. 8009772: 6b3b ldr r3, [r7, #48] @ 0x30
  21562. 8009774: 689a ldr r2, [r3, #8]
  21563. 8009776: 4b0f ldr r3, [pc, #60] @ (80097b4 <ETH_Prepare_Tx_Descriptors+0x44c>)
  21564. 8009778: 4013 ands r3, r2
  21565. 800977a: 6b3a ldr r2, [r7, #48] @ 0x30
  21566. 800977c: 6093 str r3, [r2, #8]
  21567. }
  21568. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_TSO) != (uint32_t)RESET)
  21569. 800977e: 68bb ldr r3, [r7, #8]
  21570. 8009780: 681b ldr r3, [r3, #0]
  21571. 8009782: f003 0310 and.w r3, r3, #16
  21572. 8009786: 2b00 cmp r3, #0
  21573. 8009788: d018 beq.n 80097bc <ETH_Prepare_Tx_Descriptors+0x454>
  21574. {
  21575. /* Set TCP payload length */
  21576. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TPL, pTxConfig->PayloadLen);
  21577. 800978a: 6b3b ldr r3, [r7, #48] @ 0x30
  21578. 800978c: 68da ldr r2, [r3, #12]
  21579. 800978e: 4b0a ldr r3, [pc, #40] @ (80097b8 <ETH_Prepare_Tx_Descriptors+0x450>)
  21580. 8009790: 4013 ands r3, r2
  21581. 8009792: 68ba ldr r2, [r7, #8]
  21582. 8009794: 69d2 ldr r2, [r2, #28]
  21583. 8009796: 431a orrs r2, r3
  21584. 8009798: 6b3b ldr r3, [r7, #48] @ 0x30
  21585. 800979a: 60da str r2, [r3, #12]
  21586. /* Set TCP Segmentation Enabled bit */
  21587. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_TSE);
  21588. 800979c: 6b3b ldr r3, [r7, #48] @ 0x30
  21589. 800979e: 68db ldr r3, [r3, #12]
  21590. 80097a0: f443 2280 orr.w r2, r3, #262144 @ 0x40000
  21591. 80097a4: 6b3b ldr r3, [r7, #48] @ 0x30
  21592. 80097a6: 60da str r2, [r3, #12]
  21593. 80097a8: e020 b.n 80097ec <ETH_Prepare_Tx_Descriptors+0x484>
  21594. 80097aa: bf00 nop
  21595. 80097ac: ffff8000 .word 0xffff8000
  21596. 80097b0: ffffc000 .word 0xffffc000
  21597. 80097b4: c000ffff .word 0xc000ffff
  21598. 80097b8: fffc0000 .word 0xfffc0000
  21599. }
  21600. else
  21601. {
  21602. /* Set the packet length */
  21603. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_FL, pTxConfig->Length);
  21604. 80097bc: 6b3b ldr r3, [r7, #48] @ 0x30
  21605. 80097be: 68da ldr r2, [r3, #12]
  21606. 80097c0: 4b36 ldr r3, [pc, #216] @ (800989c <ETH_Prepare_Tx_Descriptors+0x534>)
  21607. 80097c2: 4013 ands r3, r2
  21608. 80097c4: 68ba ldr r2, [r7, #8]
  21609. 80097c6: 6852 ldr r2, [r2, #4]
  21610. 80097c8: 431a orrs r2, r3
  21611. 80097ca: 6b3b ldr r3, [r7, #48] @ 0x30
  21612. 80097cc: 60da str r2, [r3, #12]
  21613. if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != (uint32_t)RESET)
  21614. 80097ce: 68bb ldr r3, [r7, #8]
  21615. 80097d0: 681b ldr r3, [r3, #0]
  21616. 80097d2: f003 0301 and.w r3, r3, #1
  21617. 80097d6: 2b00 cmp r3, #0
  21618. 80097d8: d008 beq.n 80097ec <ETH_Prepare_Tx_Descriptors+0x484>
  21619. {
  21620. /* Checksum Insertion Control */
  21621. MODIFY_REG(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CIC, pTxConfig->ChecksumCtrl);
  21622. 80097da: 6b3b ldr r3, [r7, #48] @ 0x30
  21623. 80097dc: 68db ldr r3, [r3, #12]
  21624. 80097de: f423 3240 bic.w r2, r3, #196608 @ 0x30000
  21625. 80097e2: 68bb ldr r3, [r7, #8]
  21626. 80097e4: 695b ldr r3, [r3, #20]
  21627. 80097e6: 431a orrs r2, r3
  21628. 80097e8: 6b3b ldr r3, [r7, #48] @ 0x30
  21629. 80097ea: 60da str r2, [r3, #12]
  21630. }
  21631. }
  21632. bd_count += 1U;
  21633. 80097ec: 6abb ldr r3, [r7, #40] @ 0x28
  21634. 80097ee: 3301 adds r3, #1
  21635. 80097f0: 62bb str r3, [r7, #40] @ 0x28
  21636. __ASM volatile ("dmb 0xF":::"memory");
  21637. 80097f2: f3bf 8f5f dmb sy
  21638. }
  21639. 80097f6: bf00 nop
  21640. /* Ensure rest of descriptor is written to RAM before the OWN bit */
  21641. __DMB();
  21642. /* Set Own bit */
  21643. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_OWN);
  21644. 80097f8: 6b3b ldr r3, [r7, #48] @ 0x30
  21645. 80097fa: 68db ldr r3, [r3, #12]
  21646. 80097fc: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21647. 8009800: 6b3b ldr r3, [r7, #48] @ 0x30
  21648. 8009802: 60da str r2, [r3, #12]
  21649. /* Mark it as NORMAL descriptor */
  21650. CLEAR_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_CTXT);
  21651. 8009804: 6b3b ldr r3, [r7, #48] @ 0x30
  21652. 8009806: 68db ldr r3, [r3, #12]
  21653. 8009808: f023 4280 bic.w r2, r3, #1073741824 @ 0x40000000
  21654. 800980c: 6b3b ldr r3, [r7, #48] @ 0x30
  21655. 800980e: 60da str r2, [r3, #12]
  21656. while (txbuffer->next != NULL)
  21657. 8009810: 6afb ldr r3, [r7, #44] @ 0x2c
  21658. 8009812: 689b ldr r3, [r3, #8]
  21659. 8009814: 2b00 cmp r3, #0
  21660. 8009816: f47f af2b bne.w 8009670 <ETH_Prepare_Tx_Descriptors+0x308>
  21661. }
  21662. if (ItMode != ((uint32_t)RESET))
  21663. 800981a: 687b ldr r3, [r7, #4]
  21664. 800981c: 2b00 cmp r3, #0
  21665. 800981e: d006 beq.n 800982e <ETH_Prepare_Tx_Descriptors+0x4c6>
  21666. {
  21667. /* Set Interrupt on completion bit */
  21668. SET_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  21669. 8009820: 6b3b ldr r3, [r7, #48] @ 0x30
  21670. 8009822: 689b ldr r3, [r3, #8]
  21671. 8009824: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  21672. 8009828: 6b3b ldr r3, [r7, #48] @ 0x30
  21673. 800982a: 609a str r2, [r3, #8]
  21674. 800982c: e005 b.n 800983a <ETH_Prepare_Tx_Descriptors+0x4d2>
  21675. }
  21676. else
  21677. {
  21678. /* Clear Interrupt on completion bit */
  21679. CLEAR_BIT(dmatxdesc->DESC2, ETH_DMATXNDESCRF_IOC);
  21680. 800982e: 6b3b ldr r3, [r7, #48] @ 0x30
  21681. 8009830: 689b ldr r3, [r3, #8]
  21682. 8009832: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  21683. 8009836: 6b3b ldr r3, [r7, #48] @ 0x30
  21684. 8009838: 609a str r2, [r3, #8]
  21685. }
  21686. /* Mark it as LAST descriptor */
  21687. SET_BIT(dmatxdesc->DESC3, ETH_DMATXNDESCRF_LD);
  21688. 800983a: 6b3b ldr r3, [r7, #48] @ 0x30
  21689. 800983c: 68db ldr r3, [r3, #12]
  21690. 800983e: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  21691. 8009842: 6b3b ldr r3, [r7, #48] @ 0x30
  21692. 8009844: 60da str r2, [r3, #12]
  21693. /* Save the current packet address to expose it to the application */
  21694. dmatxdesclist->PacketAddress[descidx] = dmatxdesclist->CurrentPacketAddress;
  21695. 8009846: 6a7b ldr r3, [r7, #36] @ 0x24
  21696. 8009848: 6a5a ldr r2, [r3, #36] @ 0x24
  21697. 800984a: 6a79 ldr r1, [r7, #36] @ 0x24
  21698. 800984c: 6bfb ldr r3, [r7, #60] @ 0x3c
  21699. 800984e: 3304 adds r3, #4
  21700. 8009850: 009b lsls r3, r3, #2
  21701. 8009852: 440b add r3, r1
  21702. 8009854: 605a str r2, [r3, #4]
  21703. dmatxdesclist->CurTxDesc = descidx;
  21704. 8009856: 6a7b ldr r3, [r7, #36] @ 0x24
  21705. 8009858: 6bfa ldr r2, [r7, #60] @ 0x3c
  21706. 800985a: 611a str r2, [r3, #16]
  21707. __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
  21708. 800985c: f3ef 8310 mrs r3, PRIMASK
  21709. 8009860: 613b str r3, [r7, #16]
  21710. return(result);
  21711. 8009862: 693b ldr r3, [r7, #16]
  21712. /* Enter critical section */
  21713. primask_bit = __get_PRIMASK();
  21714. 8009864: 61fb str r3, [r7, #28]
  21715. 8009866: 2301 movs r3, #1
  21716. 8009868: 617b str r3, [r7, #20]
  21717. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  21718. 800986a: 697b ldr r3, [r7, #20]
  21719. 800986c: f383 8810 msr PRIMASK, r3
  21720. }
  21721. 8009870: bf00 nop
  21722. __set_PRIMASK(1);
  21723. dmatxdesclist->BuffersInUse += bd_count + 1U;
  21724. 8009872: 6a7b ldr r3, [r7, #36] @ 0x24
  21725. 8009874: 6a9a ldr r2, [r3, #40] @ 0x28
  21726. 8009876: 6abb ldr r3, [r7, #40] @ 0x28
  21727. 8009878: 4413 add r3, r2
  21728. 800987a: 1c5a adds r2, r3, #1
  21729. 800987c: 6a7b ldr r3, [r7, #36] @ 0x24
  21730. 800987e: 629a str r2, [r3, #40] @ 0x28
  21731. 8009880: 69fb ldr r3, [r7, #28]
  21732. 8009882: 61bb str r3, [r7, #24]
  21733. __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  21734. 8009884: 69bb ldr r3, [r7, #24]
  21735. 8009886: f383 8810 msr PRIMASK, r3
  21736. }
  21737. 800988a: bf00 nop
  21738. /* Exit critical section: restore previous priority mask */
  21739. __set_PRIMASK(primask_bit);
  21740. /* Return function status */
  21741. return HAL_ETH_ERROR_NONE;
  21742. 800988c: 2300 movs r3, #0
  21743. }
  21744. 800988e: 4618 mov r0, r3
  21745. 8009890: 3744 adds r7, #68 @ 0x44
  21746. 8009892: 46bd mov sp, r7
  21747. 8009894: f85d 7b04 ldr.w r7, [sp], #4
  21748. 8009898: 4770 bx lr
  21749. 800989a: bf00 nop
  21750. 800989c: ffff8000 .word 0xffff8000
  21751. 080098a0 <HAL_GPIO_Init>:
  21752. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  21753. * the configuration information for the specified GPIO peripheral.
  21754. * @retval None
  21755. */
  21756. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  21757. {
  21758. 80098a0: b480 push {r7}
  21759. 80098a2: b089 sub sp, #36 @ 0x24
  21760. 80098a4: af00 add r7, sp, #0
  21761. 80098a6: 6078 str r0, [r7, #4]
  21762. 80098a8: 6039 str r1, [r7, #0]
  21763. uint32_t position = 0x00U;
  21764. 80098aa: 2300 movs r3, #0
  21765. 80098ac: 61fb str r3, [r7, #28]
  21766. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  21767. #if defined(DUAL_CORE) && defined(CORE_CM4)
  21768. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  21769. #else
  21770. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  21771. 80098ae: 4b89 ldr r3, [pc, #548] @ (8009ad4 <HAL_GPIO_Init+0x234>)
  21772. 80098b0: 617b str r3, [r7, #20]
  21773. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  21774. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  21775. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  21776. /* Configure the port pins */
  21777. while (((GPIO_Init->Pin) >> position) != 0x00U)
  21778. 80098b2: e194 b.n 8009bde <HAL_GPIO_Init+0x33e>
  21779. {
  21780. /* Get current io position */
  21781. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  21782. 80098b4: 683b ldr r3, [r7, #0]
  21783. 80098b6: 681a ldr r2, [r3, #0]
  21784. 80098b8: 2101 movs r1, #1
  21785. 80098ba: 69fb ldr r3, [r7, #28]
  21786. 80098bc: fa01 f303 lsl.w r3, r1, r3
  21787. 80098c0: 4013 ands r3, r2
  21788. 80098c2: 613b str r3, [r7, #16]
  21789. if (iocurrent != 0x00U)
  21790. 80098c4: 693b ldr r3, [r7, #16]
  21791. 80098c6: 2b00 cmp r3, #0
  21792. 80098c8: f000 8186 beq.w 8009bd8 <HAL_GPIO_Init+0x338>
  21793. {
  21794. /*--------------------- GPIO Mode Configuration ------------------------*/
  21795. /* In case of Output or Alternate function mode selection */
  21796. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  21797. 80098cc: 683b ldr r3, [r7, #0]
  21798. 80098ce: 685b ldr r3, [r3, #4]
  21799. 80098d0: f003 0303 and.w r3, r3, #3
  21800. 80098d4: 2b01 cmp r3, #1
  21801. 80098d6: d005 beq.n 80098e4 <HAL_GPIO_Init+0x44>
  21802. 80098d8: 683b ldr r3, [r7, #0]
  21803. 80098da: 685b ldr r3, [r3, #4]
  21804. 80098dc: f003 0303 and.w r3, r3, #3
  21805. 80098e0: 2b02 cmp r3, #2
  21806. 80098e2: d130 bne.n 8009946 <HAL_GPIO_Init+0xa6>
  21807. {
  21808. /* Check the Speed parameter */
  21809. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  21810. /* Configure the IO Speed */
  21811. temp = GPIOx->OSPEEDR;
  21812. 80098e4: 687b ldr r3, [r7, #4]
  21813. 80098e6: 689b ldr r3, [r3, #8]
  21814. 80098e8: 61bb str r3, [r7, #24]
  21815. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  21816. 80098ea: 69fb ldr r3, [r7, #28]
  21817. 80098ec: 005b lsls r3, r3, #1
  21818. 80098ee: 2203 movs r2, #3
  21819. 80098f0: fa02 f303 lsl.w r3, r2, r3
  21820. 80098f4: 43db mvns r3, r3
  21821. 80098f6: 69ba ldr r2, [r7, #24]
  21822. 80098f8: 4013 ands r3, r2
  21823. 80098fa: 61bb str r3, [r7, #24]
  21824. temp |= (GPIO_Init->Speed << (position * 2U));
  21825. 80098fc: 683b ldr r3, [r7, #0]
  21826. 80098fe: 68da ldr r2, [r3, #12]
  21827. 8009900: 69fb ldr r3, [r7, #28]
  21828. 8009902: 005b lsls r3, r3, #1
  21829. 8009904: fa02 f303 lsl.w r3, r2, r3
  21830. 8009908: 69ba ldr r2, [r7, #24]
  21831. 800990a: 4313 orrs r3, r2
  21832. 800990c: 61bb str r3, [r7, #24]
  21833. GPIOx->OSPEEDR = temp;
  21834. 800990e: 687b ldr r3, [r7, #4]
  21835. 8009910: 69ba ldr r2, [r7, #24]
  21836. 8009912: 609a str r2, [r3, #8]
  21837. /* Configure the IO Output Type */
  21838. temp = GPIOx->OTYPER;
  21839. 8009914: 687b ldr r3, [r7, #4]
  21840. 8009916: 685b ldr r3, [r3, #4]
  21841. 8009918: 61bb str r3, [r7, #24]
  21842. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  21843. 800991a: 2201 movs r2, #1
  21844. 800991c: 69fb ldr r3, [r7, #28]
  21845. 800991e: fa02 f303 lsl.w r3, r2, r3
  21846. 8009922: 43db mvns r3, r3
  21847. 8009924: 69ba ldr r2, [r7, #24]
  21848. 8009926: 4013 ands r3, r2
  21849. 8009928: 61bb str r3, [r7, #24]
  21850. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  21851. 800992a: 683b ldr r3, [r7, #0]
  21852. 800992c: 685b ldr r3, [r3, #4]
  21853. 800992e: 091b lsrs r3, r3, #4
  21854. 8009930: f003 0201 and.w r2, r3, #1
  21855. 8009934: 69fb ldr r3, [r7, #28]
  21856. 8009936: fa02 f303 lsl.w r3, r2, r3
  21857. 800993a: 69ba ldr r2, [r7, #24]
  21858. 800993c: 4313 orrs r3, r2
  21859. 800993e: 61bb str r3, [r7, #24]
  21860. GPIOx->OTYPER = temp;
  21861. 8009940: 687b ldr r3, [r7, #4]
  21862. 8009942: 69ba ldr r2, [r7, #24]
  21863. 8009944: 605a str r2, [r3, #4]
  21864. }
  21865. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  21866. 8009946: 683b ldr r3, [r7, #0]
  21867. 8009948: 685b ldr r3, [r3, #4]
  21868. 800994a: f003 0303 and.w r3, r3, #3
  21869. 800994e: 2b03 cmp r3, #3
  21870. 8009950: d017 beq.n 8009982 <HAL_GPIO_Init+0xe2>
  21871. {
  21872. /* Check the Pull parameter */
  21873. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  21874. /* Activate the Pull-up or Pull down resistor for the current IO */
  21875. temp = GPIOx->PUPDR;
  21876. 8009952: 687b ldr r3, [r7, #4]
  21877. 8009954: 68db ldr r3, [r3, #12]
  21878. 8009956: 61bb str r3, [r7, #24]
  21879. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  21880. 8009958: 69fb ldr r3, [r7, #28]
  21881. 800995a: 005b lsls r3, r3, #1
  21882. 800995c: 2203 movs r2, #3
  21883. 800995e: fa02 f303 lsl.w r3, r2, r3
  21884. 8009962: 43db mvns r3, r3
  21885. 8009964: 69ba ldr r2, [r7, #24]
  21886. 8009966: 4013 ands r3, r2
  21887. 8009968: 61bb str r3, [r7, #24]
  21888. temp |= ((GPIO_Init->Pull) << (position * 2U));
  21889. 800996a: 683b ldr r3, [r7, #0]
  21890. 800996c: 689a ldr r2, [r3, #8]
  21891. 800996e: 69fb ldr r3, [r7, #28]
  21892. 8009970: 005b lsls r3, r3, #1
  21893. 8009972: fa02 f303 lsl.w r3, r2, r3
  21894. 8009976: 69ba ldr r2, [r7, #24]
  21895. 8009978: 4313 orrs r3, r2
  21896. 800997a: 61bb str r3, [r7, #24]
  21897. GPIOx->PUPDR = temp;
  21898. 800997c: 687b ldr r3, [r7, #4]
  21899. 800997e: 69ba ldr r2, [r7, #24]
  21900. 8009980: 60da str r2, [r3, #12]
  21901. }
  21902. /* In case of Alternate function mode selection */
  21903. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  21904. 8009982: 683b ldr r3, [r7, #0]
  21905. 8009984: 685b ldr r3, [r3, #4]
  21906. 8009986: f003 0303 and.w r3, r3, #3
  21907. 800998a: 2b02 cmp r3, #2
  21908. 800998c: d123 bne.n 80099d6 <HAL_GPIO_Init+0x136>
  21909. /* Check the Alternate function parameters */
  21910. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  21911. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  21912. /* Configure Alternate function mapped with the current IO */
  21913. temp = GPIOx->AFR[position >> 3U];
  21914. 800998e: 69fb ldr r3, [r7, #28]
  21915. 8009990: 08da lsrs r2, r3, #3
  21916. 8009992: 687b ldr r3, [r7, #4]
  21917. 8009994: 3208 adds r2, #8
  21918. 8009996: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  21919. 800999a: 61bb str r3, [r7, #24]
  21920. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  21921. 800999c: 69fb ldr r3, [r7, #28]
  21922. 800999e: f003 0307 and.w r3, r3, #7
  21923. 80099a2: 009b lsls r3, r3, #2
  21924. 80099a4: 220f movs r2, #15
  21925. 80099a6: fa02 f303 lsl.w r3, r2, r3
  21926. 80099aa: 43db mvns r3, r3
  21927. 80099ac: 69ba ldr r2, [r7, #24]
  21928. 80099ae: 4013 ands r3, r2
  21929. 80099b0: 61bb str r3, [r7, #24]
  21930. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  21931. 80099b2: 683b ldr r3, [r7, #0]
  21932. 80099b4: 691a ldr r2, [r3, #16]
  21933. 80099b6: 69fb ldr r3, [r7, #28]
  21934. 80099b8: f003 0307 and.w r3, r3, #7
  21935. 80099bc: 009b lsls r3, r3, #2
  21936. 80099be: fa02 f303 lsl.w r3, r2, r3
  21937. 80099c2: 69ba ldr r2, [r7, #24]
  21938. 80099c4: 4313 orrs r3, r2
  21939. 80099c6: 61bb str r3, [r7, #24]
  21940. GPIOx->AFR[position >> 3U] = temp;
  21941. 80099c8: 69fb ldr r3, [r7, #28]
  21942. 80099ca: 08da lsrs r2, r3, #3
  21943. 80099cc: 687b ldr r3, [r7, #4]
  21944. 80099ce: 3208 adds r2, #8
  21945. 80099d0: 69b9 ldr r1, [r7, #24]
  21946. 80099d2: f843 1022 str.w r1, [r3, r2, lsl #2]
  21947. }
  21948. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  21949. temp = GPIOx->MODER;
  21950. 80099d6: 687b ldr r3, [r7, #4]
  21951. 80099d8: 681b ldr r3, [r3, #0]
  21952. 80099da: 61bb str r3, [r7, #24]
  21953. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  21954. 80099dc: 69fb ldr r3, [r7, #28]
  21955. 80099de: 005b lsls r3, r3, #1
  21956. 80099e0: 2203 movs r2, #3
  21957. 80099e2: fa02 f303 lsl.w r3, r2, r3
  21958. 80099e6: 43db mvns r3, r3
  21959. 80099e8: 69ba ldr r2, [r7, #24]
  21960. 80099ea: 4013 ands r3, r2
  21961. 80099ec: 61bb str r3, [r7, #24]
  21962. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  21963. 80099ee: 683b ldr r3, [r7, #0]
  21964. 80099f0: 685b ldr r3, [r3, #4]
  21965. 80099f2: f003 0203 and.w r2, r3, #3
  21966. 80099f6: 69fb ldr r3, [r7, #28]
  21967. 80099f8: 005b lsls r3, r3, #1
  21968. 80099fa: fa02 f303 lsl.w r3, r2, r3
  21969. 80099fe: 69ba ldr r2, [r7, #24]
  21970. 8009a00: 4313 orrs r3, r2
  21971. 8009a02: 61bb str r3, [r7, #24]
  21972. GPIOx->MODER = temp;
  21973. 8009a04: 687b ldr r3, [r7, #4]
  21974. 8009a06: 69ba ldr r2, [r7, #24]
  21975. 8009a08: 601a str r2, [r3, #0]
  21976. /*--------------------- EXTI Mode Configuration ------------------------*/
  21977. /* Configure the External Interrupt or event for the current IO */
  21978. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  21979. 8009a0a: 683b ldr r3, [r7, #0]
  21980. 8009a0c: 685b ldr r3, [r3, #4]
  21981. 8009a0e: f403 3340 and.w r3, r3, #196608 @ 0x30000
  21982. 8009a12: 2b00 cmp r3, #0
  21983. 8009a14: f000 80e0 beq.w 8009bd8 <HAL_GPIO_Init+0x338>
  21984. {
  21985. /* Enable SYSCFG Clock */
  21986. __HAL_RCC_SYSCFG_CLK_ENABLE();
  21987. 8009a18: 4b2f ldr r3, [pc, #188] @ (8009ad8 <HAL_GPIO_Init+0x238>)
  21988. 8009a1a: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  21989. 8009a1e: 4a2e ldr r2, [pc, #184] @ (8009ad8 <HAL_GPIO_Init+0x238>)
  21990. 8009a20: f043 0302 orr.w r3, r3, #2
  21991. 8009a24: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  21992. 8009a28: 4b2b ldr r3, [pc, #172] @ (8009ad8 <HAL_GPIO_Init+0x238>)
  21993. 8009a2a: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  21994. 8009a2e: f003 0302 and.w r3, r3, #2
  21995. 8009a32: 60fb str r3, [r7, #12]
  21996. 8009a34: 68fb ldr r3, [r7, #12]
  21997. temp = SYSCFG->EXTICR[position >> 2U];
  21998. 8009a36: 4a29 ldr r2, [pc, #164] @ (8009adc <HAL_GPIO_Init+0x23c>)
  21999. 8009a38: 69fb ldr r3, [r7, #28]
  22000. 8009a3a: 089b lsrs r3, r3, #2
  22001. 8009a3c: 3302 adds r3, #2
  22002. 8009a3e: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  22003. 8009a42: 61bb str r3, [r7, #24]
  22004. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  22005. 8009a44: 69fb ldr r3, [r7, #28]
  22006. 8009a46: f003 0303 and.w r3, r3, #3
  22007. 8009a4a: 009b lsls r3, r3, #2
  22008. 8009a4c: 220f movs r2, #15
  22009. 8009a4e: fa02 f303 lsl.w r3, r2, r3
  22010. 8009a52: 43db mvns r3, r3
  22011. 8009a54: 69ba ldr r2, [r7, #24]
  22012. 8009a56: 4013 ands r3, r2
  22013. 8009a58: 61bb str r3, [r7, #24]
  22014. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  22015. 8009a5a: 687b ldr r3, [r7, #4]
  22016. 8009a5c: 4a20 ldr r2, [pc, #128] @ (8009ae0 <HAL_GPIO_Init+0x240>)
  22017. 8009a5e: 4293 cmp r3, r2
  22018. 8009a60: d052 beq.n 8009b08 <HAL_GPIO_Init+0x268>
  22019. 8009a62: 687b ldr r3, [r7, #4]
  22020. 8009a64: 4a1f ldr r2, [pc, #124] @ (8009ae4 <HAL_GPIO_Init+0x244>)
  22021. 8009a66: 4293 cmp r3, r2
  22022. 8009a68: d031 beq.n 8009ace <HAL_GPIO_Init+0x22e>
  22023. 8009a6a: 687b ldr r3, [r7, #4]
  22024. 8009a6c: 4a1e ldr r2, [pc, #120] @ (8009ae8 <HAL_GPIO_Init+0x248>)
  22025. 8009a6e: 4293 cmp r3, r2
  22026. 8009a70: d02b beq.n 8009aca <HAL_GPIO_Init+0x22a>
  22027. 8009a72: 687b ldr r3, [r7, #4]
  22028. 8009a74: 4a1d ldr r2, [pc, #116] @ (8009aec <HAL_GPIO_Init+0x24c>)
  22029. 8009a76: 4293 cmp r3, r2
  22030. 8009a78: d025 beq.n 8009ac6 <HAL_GPIO_Init+0x226>
  22031. 8009a7a: 687b ldr r3, [r7, #4]
  22032. 8009a7c: 4a1c ldr r2, [pc, #112] @ (8009af0 <HAL_GPIO_Init+0x250>)
  22033. 8009a7e: 4293 cmp r3, r2
  22034. 8009a80: d01f beq.n 8009ac2 <HAL_GPIO_Init+0x222>
  22035. 8009a82: 687b ldr r3, [r7, #4]
  22036. 8009a84: 4a1b ldr r2, [pc, #108] @ (8009af4 <HAL_GPIO_Init+0x254>)
  22037. 8009a86: 4293 cmp r3, r2
  22038. 8009a88: d019 beq.n 8009abe <HAL_GPIO_Init+0x21e>
  22039. 8009a8a: 687b ldr r3, [r7, #4]
  22040. 8009a8c: 4a1a ldr r2, [pc, #104] @ (8009af8 <HAL_GPIO_Init+0x258>)
  22041. 8009a8e: 4293 cmp r3, r2
  22042. 8009a90: d013 beq.n 8009aba <HAL_GPIO_Init+0x21a>
  22043. 8009a92: 687b ldr r3, [r7, #4]
  22044. 8009a94: 4a19 ldr r2, [pc, #100] @ (8009afc <HAL_GPIO_Init+0x25c>)
  22045. 8009a96: 4293 cmp r3, r2
  22046. 8009a98: d00d beq.n 8009ab6 <HAL_GPIO_Init+0x216>
  22047. 8009a9a: 687b ldr r3, [r7, #4]
  22048. 8009a9c: 4a18 ldr r2, [pc, #96] @ (8009b00 <HAL_GPIO_Init+0x260>)
  22049. 8009a9e: 4293 cmp r3, r2
  22050. 8009aa0: d007 beq.n 8009ab2 <HAL_GPIO_Init+0x212>
  22051. 8009aa2: 687b ldr r3, [r7, #4]
  22052. 8009aa4: 4a17 ldr r2, [pc, #92] @ (8009b04 <HAL_GPIO_Init+0x264>)
  22053. 8009aa6: 4293 cmp r3, r2
  22054. 8009aa8: d101 bne.n 8009aae <HAL_GPIO_Init+0x20e>
  22055. 8009aaa: 2309 movs r3, #9
  22056. 8009aac: e02d b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22057. 8009aae: 230a movs r3, #10
  22058. 8009ab0: e02b b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22059. 8009ab2: 2308 movs r3, #8
  22060. 8009ab4: e029 b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22061. 8009ab6: 2307 movs r3, #7
  22062. 8009ab8: e027 b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22063. 8009aba: 2306 movs r3, #6
  22064. 8009abc: e025 b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22065. 8009abe: 2305 movs r3, #5
  22066. 8009ac0: e023 b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22067. 8009ac2: 2304 movs r3, #4
  22068. 8009ac4: e021 b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22069. 8009ac6: 2303 movs r3, #3
  22070. 8009ac8: e01f b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22071. 8009aca: 2302 movs r3, #2
  22072. 8009acc: e01d b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22073. 8009ace: 2301 movs r3, #1
  22074. 8009ad0: e01b b.n 8009b0a <HAL_GPIO_Init+0x26a>
  22075. 8009ad2: bf00 nop
  22076. 8009ad4: 58000080 .word 0x58000080
  22077. 8009ad8: 58024400 .word 0x58024400
  22078. 8009adc: 58000400 .word 0x58000400
  22079. 8009ae0: 58020000 .word 0x58020000
  22080. 8009ae4: 58020400 .word 0x58020400
  22081. 8009ae8: 58020800 .word 0x58020800
  22082. 8009aec: 58020c00 .word 0x58020c00
  22083. 8009af0: 58021000 .word 0x58021000
  22084. 8009af4: 58021400 .word 0x58021400
  22085. 8009af8: 58021800 .word 0x58021800
  22086. 8009afc: 58021c00 .word 0x58021c00
  22087. 8009b00: 58022000 .word 0x58022000
  22088. 8009b04: 58022400 .word 0x58022400
  22089. 8009b08: 2300 movs r3, #0
  22090. 8009b0a: 69fa ldr r2, [r7, #28]
  22091. 8009b0c: f002 0203 and.w r2, r2, #3
  22092. 8009b10: 0092 lsls r2, r2, #2
  22093. 8009b12: 4093 lsls r3, r2
  22094. 8009b14: 69ba ldr r2, [r7, #24]
  22095. 8009b16: 4313 orrs r3, r2
  22096. 8009b18: 61bb str r3, [r7, #24]
  22097. SYSCFG->EXTICR[position >> 2U] = temp;
  22098. 8009b1a: 4938 ldr r1, [pc, #224] @ (8009bfc <HAL_GPIO_Init+0x35c>)
  22099. 8009b1c: 69fb ldr r3, [r7, #28]
  22100. 8009b1e: 089b lsrs r3, r3, #2
  22101. 8009b20: 3302 adds r3, #2
  22102. 8009b22: 69ba ldr r2, [r7, #24]
  22103. 8009b24: f841 2023 str.w r2, [r1, r3, lsl #2]
  22104. /* Clear Rising Falling edge configuration */
  22105. temp = EXTI->RTSR1;
  22106. 8009b28: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22107. 8009b2c: 681b ldr r3, [r3, #0]
  22108. 8009b2e: 61bb str r3, [r7, #24]
  22109. temp &= ~(iocurrent);
  22110. 8009b30: 693b ldr r3, [r7, #16]
  22111. 8009b32: 43db mvns r3, r3
  22112. 8009b34: 69ba ldr r2, [r7, #24]
  22113. 8009b36: 4013 ands r3, r2
  22114. 8009b38: 61bb str r3, [r7, #24]
  22115. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  22116. 8009b3a: 683b ldr r3, [r7, #0]
  22117. 8009b3c: 685b ldr r3, [r3, #4]
  22118. 8009b3e: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  22119. 8009b42: 2b00 cmp r3, #0
  22120. 8009b44: d003 beq.n 8009b4e <HAL_GPIO_Init+0x2ae>
  22121. {
  22122. temp |= iocurrent;
  22123. 8009b46: 69ba ldr r2, [r7, #24]
  22124. 8009b48: 693b ldr r3, [r7, #16]
  22125. 8009b4a: 4313 orrs r3, r2
  22126. 8009b4c: 61bb str r3, [r7, #24]
  22127. }
  22128. EXTI->RTSR1 = temp;
  22129. 8009b4e: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22130. 8009b52: 69bb ldr r3, [r7, #24]
  22131. 8009b54: 6013 str r3, [r2, #0]
  22132. temp = EXTI->FTSR1;
  22133. 8009b56: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22134. 8009b5a: 685b ldr r3, [r3, #4]
  22135. 8009b5c: 61bb str r3, [r7, #24]
  22136. temp &= ~(iocurrent);
  22137. 8009b5e: 693b ldr r3, [r7, #16]
  22138. 8009b60: 43db mvns r3, r3
  22139. 8009b62: 69ba ldr r2, [r7, #24]
  22140. 8009b64: 4013 ands r3, r2
  22141. 8009b66: 61bb str r3, [r7, #24]
  22142. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  22143. 8009b68: 683b ldr r3, [r7, #0]
  22144. 8009b6a: 685b ldr r3, [r3, #4]
  22145. 8009b6c: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  22146. 8009b70: 2b00 cmp r3, #0
  22147. 8009b72: d003 beq.n 8009b7c <HAL_GPIO_Init+0x2dc>
  22148. {
  22149. temp |= iocurrent;
  22150. 8009b74: 69ba ldr r2, [r7, #24]
  22151. 8009b76: 693b ldr r3, [r7, #16]
  22152. 8009b78: 4313 orrs r3, r2
  22153. 8009b7a: 61bb str r3, [r7, #24]
  22154. }
  22155. EXTI->FTSR1 = temp;
  22156. 8009b7c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22157. 8009b80: 69bb ldr r3, [r7, #24]
  22158. 8009b82: 6053 str r3, [r2, #4]
  22159. temp = EXTI_CurrentCPU->EMR1;
  22160. 8009b84: 697b ldr r3, [r7, #20]
  22161. 8009b86: 685b ldr r3, [r3, #4]
  22162. 8009b88: 61bb str r3, [r7, #24]
  22163. temp &= ~(iocurrent);
  22164. 8009b8a: 693b ldr r3, [r7, #16]
  22165. 8009b8c: 43db mvns r3, r3
  22166. 8009b8e: 69ba ldr r2, [r7, #24]
  22167. 8009b90: 4013 ands r3, r2
  22168. 8009b92: 61bb str r3, [r7, #24]
  22169. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  22170. 8009b94: 683b ldr r3, [r7, #0]
  22171. 8009b96: 685b ldr r3, [r3, #4]
  22172. 8009b98: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22173. 8009b9c: 2b00 cmp r3, #0
  22174. 8009b9e: d003 beq.n 8009ba8 <HAL_GPIO_Init+0x308>
  22175. {
  22176. temp |= iocurrent;
  22177. 8009ba0: 69ba ldr r2, [r7, #24]
  22178. 8009ba2: 693b ldr r3, [r7, #16]
  22179. 8009ba4: 4313 orrs r3, r2
  22180. 8009ba6: 61bb str r3, [r7, #24]
  22181. }
  22182. EXTI_CurrentCPU->EMR1 = temp;
  22183. 8009ba8: 697b ldr r3, [r7, #20]
  22184. 8009baa: 69ba ldr r2, [r7, #24]
  22185. 8009bac: 605a str r2, [r3, #4]
  22186. /* Clear EXTI line configuration */
  22187. temp = EXTI_CurrentCPU->IMR1;
  22188. 8009bae: 697b ldr r3, [r7, #20]
  22189. 8009bb0: 681b ldr r3, [r3, #0]
  22190. 8009bb2: 61bb str r3, [r7, #24]
  22191. temp &= ~(iocurrent);
  22192. 8009bb4: 693b ldr r3, [r7, #16]
  22193. 8009bb6: 43db mvns r3, r3
  22194. 8009bb8: 69ba ldr r2, [r7, #24]
  22195. 8009bba: 4013 ands r3, r2
  22196. 8009bbc: 61bb str r3, [r7, #24]
  22197. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  22198. 8009bbe: 683b ldr r3, [r7, #0]
  22199. 8009bc0: 685b ldr r3, [r3, #4]
  22200. 8009bc2: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22201. 8009bc6: 2b00 cmp r3, #0
  22202. 8009bc8: d003 beq.n 8009bd2 <HAL_GPIO_Init+0x332>
  22203. {
  22204. temp |= iocurrent;
  22205. 8009bca: 69ba ldr r2, [r7, #24]
  22206. 8009bcc: 693b ldr r3, [r7, #16]
  22207. 8009bce: 4313 orrs r3, r2
  22208. 8009bd0: 61bb str r3, [r7, #24]
  22209. }
  22210. EXTI_CurrentCPU->IMR1 = temp;
  22211. 8009bd2: 697b ldr r3, [r7, #20]
  22212. 8009bd4: 69ba ldr r2, [r7, #24]
  22213. 8009bd6: 601a str r2, [r3, #0]
  22214. }
  22215. }
  22216. position++;
  22217. 8009bd8: 69fb ldr r3, [r7, #28]
  22218. 8009bda: 3301 adds r3, #1
  22219. 8009bdc: 61fb str r3, [r7, #28]
  22220. while (((GPIO_Init->Pin) >> position) != 0x00U)
  22221. 8009bde: 683b ldr r3, [r7, #0]
  22222. 8009be0: 681a ldr r2, [r3, #0]
  22223. 8009be2: 69fb ldr r3, [r7, #28]
  22224. 8009be4: fa22 f303 lsr.w r3, r2, r3
  22225. 8009be8: 2b00 cmp r3, #0
  22226. 8009bea: f47f ae63 bne.w 80098b4 <HAL_GPIO_Init+0x14>
  22227. }
  22228. }
  22229. 8009bee: bf00 nop
  22230. 8009bf0: bf00 nop
  22231. 8009bf2: 3724 adds r7, #36 @ 0x24
  22232. 8009bf4: 46bd mov sp, r7
  22233. 8009bf6: f85d 7b04 ldr.w r7, [sp], #4
  22234. 8009bfa: 4770 bx lr
  22235. 8009bfc: 58000400 .word 0x58000400
  22236. 08009c00 <HAL_GPIO_WritePin>:
  22237. * @arg GPIO_PIN_RESET: to clear the port pin
  22238. * @arg GPIO_PIN_SET: to set the port pin
  22239. * @retval None
  22240. */
  22241. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  22242. {
  22243. 8009c00: b480 push {r7}
  22244. 8009c02: b083 sub sp, #12
  22245. 8009c04: af00 add r7, sp, #0
  22246. 8009c06: 6078 str r0, [r7, #4]
  22247. 8009c08: 460b mov r3, r1
  22248. 8009c0a: 807b strh r3, [r7, #2]
  22249. 8009c0c: 4613 mov r3, r2
  22250. 8009c0e: 707b strb r3, [r7, #1]
  22251. /* Check the parameters */
  22252. assert_param(IS_GPIO_PIN(GPIO_Pin));
  22253. assert_param(IS_GPIO_PIN_ACTION(PinState));
  22254. if (PinState != GPIO_PIN_RESET)
  22255. 8009c10: 787b ldrb r3, [r7, #1]
  22256. 8009c12: 2b00 cmp r3, #0
  22257. 8009c14: d003 beq.n 8009c1e <HAL_GPIO_WritePin+0x1e>
  22258. {
  22259. GPIOx->BSRR = GPIO_Pin;
  22260. 8009c16: 887a ldrh r2, [r7, #2]
  22261. 8009c18: 687b ldr r3, [r7, #4]
  22262. 8009c1a: 619a str r2, [r3, #24]
  22263. }
  22264. else
  22265. {
  22266. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  22267. }
  22268. }
  22269. 8009c1c: e003 b.n 8009c26 <HAL_GPIO_WritePin+0x26>
  22270. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  22271. 8009c1e: 887b ldrh r3, [r7, #2]
  22272. 8009c20: 041a lsls r2, r3, #16
  22273. 8009c22: 687b ldr r3, [r7, #4]
  22274. 8009c24: 619a str r2, [r3, #24]
  22275. }
  22276. 8009c26: bf00 nop
  22277. 8009c28: 370c adds r7, #12
  22278. 8009c2a: 46bd mov sp, r7
  22279. 8009c2c: f85d 7b04 ldr.w r7, [sp], #4
  22280. 8009c30: 4770 bx lr
  22281. ...
  22282. 08009c34 <HAL_PWR_ConfigPVD>:
  22283. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  22284. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  22285. * @retval None.
  22286. */
  22287. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  22288. {
  22289. 8009c34: b480 push {r7}
  22290. 8009c36: b083 sub sp, #12
  22291. 8009c38: af00 add r7, sp, #0
  22292. 8009c3a: 6078 str r0, [r7, #4]
  22293. /* Check the PVD configuration parameter */
  22294. if (sConfigPVD == NULL)
  22295. 8009c3c: 687b ldr r3, [r7, #4]
  22296. 8009c3e: 2b00 cmp r3, #0
  22297. 8009c40: d069 beq.n 8009d16 <HAL_PWR_ConfigPVD+0xe2>
  22298. /* Check the parameters */
  22299. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  22300. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  22301. /* Set PLS[7:5] bits according to PVDLevel value */
  22302. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  22303. 8009c42: 4b38 ldr r3, [pc, #224] @ (8009d24 <HAL_PWR_ConfigPVD+0xf0>)
  22304. 8009c44: 681b ldr r3, [r3, #0]
  22305. 8009c46: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  22306. 8009c4a: 687b ldr r3, [r7, #4]
  22307. 8009c4c: 681b ldr r3, [r3, #0]
  22308. 8009c4e: 4935 ldr r1, [pc, #212] @ (8009d24 <HAL_PWR_ConfigPVD+0xf0>)
  22309. 8009c50: 4313 orrs r3, r2
  22310. 8009c52: 600b str r3, [r1, #0]
  22311. /* Clear previous config */
  22312. #if !defined (DUAL_CORE)
  22313. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  22314. 8009c54: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22315. 8009c58: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  22316. 8009c5c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22317. 8009c60: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22318. 8009c64: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  22319. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  22320. 8009c68: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22321. 8009c6c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  22322. 8009c70: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22323. 8009c74: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22324. 8009c78: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  22325. #endif /* !defined (DUAL_CORE) */
  22326. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  22327. 8009c7c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22328. 8009c80: 681b ldr r3, [r3, #0]
  22329. 8009c82: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22330. 8009c86: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22331. 8009c8a: 6013 str r3, [r2, #0]
  22332. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  22333. 8009c8c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22334. 8009c90: 685b ldr r3, [r3, #4]
  22335. 8009c92: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22336. 8009c96: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22337. 8009c9a: 6053 str r3, [r2, #4]
  22338. #if !defined (DUAL_CORE)
  22339. /* Interrupt mode configuration */
  22340. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  22341. 8009c9c: 687b ldr r3, [r7, #4]
  22342. 8009c9e: 685b ldr r3, [r3, #4]
  22343. 8009ca0: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22344. 8009ca4: 2b00 cmp r3, #0
  22345. 8009ca6: d009 beq.n 8009cbc <HAL_PWR_ConfigPVD+0x88>
  22346. {
  22347. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  22348. 8009ca8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22349. 8009cac: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  22350. 8009cb0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22351. 8009cb4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22352. 8009cb8: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  22353. }
  22354. /* Event mode configuration */
  22355. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  22356. 8009cbc: 687b ldr r3, [r7, #4]
  22357. 8009cbe: 685b ldr r3, [r3, #4]
  22358. 8009cc0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22359. 8009cc4: 2b00 cmp r3, #0
  22360. 8009cc6: d009 beq.n 8009cdc <HAL_PWR_ConfigPVD+0xa8>
  22361. {
  22362. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  22363. 8009cc8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22364. 8009ccc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  22365. 8009cd0: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22366. 8009cd4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22367. 8009cd8: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  22368. }
  22369. #endif /* !defined (DUAL_CORE) */
  22370. /* Rising edge configuration */
  22371. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  22372. 8009cdc: 687b ldr r3, [r7, #4]
  22373. 8009cde: 685b ldr r3, [r3, #4]
  22374. 8009ce0: f003 0301 and.w r3, r3, #1
  22375. 8009ce4: 2b00 cmp r3, #0
  22376. 8009ce6: d007 beq.n 8009cf8 <HAL_PWR_ConfigPVD+0xc4>
  22377. {
  22378. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  22379. 8009ce8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22380. 8009cec: 681b ldr r3, [r3, #0]
  22381. 8009cee: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22382. 8009cf2: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22383. 8009cf6: 6013 str r3, [r2, #0]
  22384. }
  22385. /* Falling edge configuration */
  22386. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  22387. 8009cf8: 687b ldr r3, [r7, #4]
  22388. 8009cfa: 685b ldr r3, [r3, #4]
  22389. 8009cfc: f003 0302 and.w r3, r3, #2
  22390. 8009d00: 2b00 cmp r3, #0
  22391. 8009d02: d009 beq.n 8009d18 <HAL_PWR_ConfigPVD+0xe4>
  22392. {
  22393. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  22394. 8009d04: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22395. 8009d08: 685b ldr r3, [r3, #4]
  22396. 8009d0a: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22397. 8009d0e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22398. 8009d12: 6053 str r3, [r2, #4]
  22399. 8009d14: e000 b.n 8009d18 <HAL_PWR_ConfigPVD+0xe4>
  22400. return;
  22401. 8009d16: bf00 nop
  22402. }
  22403. }
  22404. 8009d18: 370c adds r7, #12
  22405. 8009d1a: 46bd mov sp, r7
  22406. 8009d1c: f85d 7b04 ldr.w r7, [sp], #4
  22407. 8009d20: 4770 bx lr
  22408. 8009d22: bf00 nop
  22409. 8009d24: 58024800 .word 0x58024800
  22410. 08009d28 <HAL_PWR_EnablePVD>:
  22411. /**
  22412. * @brief Enable the Programmable Voltage Detector (PVD).
  22413. * @retval None.
  22414. */
  22415. void HAL_PWR_EnablePVD (void)
  22416. {
  22417. 8009d28: b480 push {r7}
  22418. 8009d2a: af00 add r7, sp, #0
  22419. /* Enable the power voltage detector */
  22420. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  22421. 8009d2c: 4b05 ldr r3, [pc, #20] @ (8009d44 <HAL_PWR_EnablePVD+0x1c>)
  22422. 8009d2e: 681b ldr r3, [r3, #0]
  22423. 8009d30: 4a04 ldr r2, [pc, #16] @ (8009d44 <HAL_PWR_EnablePVD+0x1c>)
  22424. 8009d32: f043 0310 orr.w r3, r3, #16
  22425. 8009d36: 6013 str r3, [r2, #0]
  22426. }
  22427. 8009d38: bf00 nop
  22428. 8009d3a: 46bd mov sp, r7
  22429. 8009d3c: f85d 7b04 ldr.w r7, [sp], #4
  22430. 8009d40: 4770 bx lr
  22431. 8009d42: bf00 nop
  22432. 8009d44: 58024800 .word 0x58024800
  22433. 08009d48 <HAL_PWREx_ConfigSupply>:
  22434. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  22435. * regulator.
  22436. * @retval HAL status.
  22437. */
  22438. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  22439. {
  22440. 8009d48: b580 push {r7, lr}
  22441. 8009d4a: b084 sub sp, #16
  22442. 8009d4c: af00 add r7, sp, #0
  22443. 8009d4e: 6078 str r0, [r7, #4]
  22444. /* Check the parameters */
  22445. assert_param (IS_PWR_SUPPLY (SupplySource));
  22446. /* Check if supply source was configured */
  22447. #if defined (PWR_FLAG_SCUEN)
  22448. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  22449. 8009d50: 4b19 ldr r3, [pc, #100] @ (8009db8 <HAL_PWREx_ConfigSupply+0x70>)
  22450. 8009d52: 68db ldr r3, [r3, #12]
  22451. 8009d54: f003 0304 and.w r3, r3, #4
  22452. 8009d58: 2b04 cmp r3, #4
  22453. 8009d5a: d00a beq.n 8009d72 <HAL_PWREx_ConfigSupply+0x2a>
  22454. #else
  22455. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  22456. #endif /* defined (PWR_FLAG_SCUEN) */
  22457. {
  22458. /* Check supply configuration */
  22459. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  22460. 8009d5c: 4b16 ldr r3, [pc, #88] @ (8009db8 <HAL_PWREx_ConfigSupply+0x70>)
  22461. 8009d5e: 68db ldr r3, [r3, #12]
  22462. 8009d60: f003 0307 and.w r3, r3, #7
  22463. 8009d64: 687a ldr r2, [r7, #4]
  22464. 8009d66: 429a cmp r2, r3
  22465. 8009d68: d001 beq.n 8009d6e <HAL_PWREx_ConfigSupply+0x26>
  22466. {
  22467. /* Supply configuration update locked, can't apply a new supply config */
  22468. return HAL_ERROR;
  22469. 8009d6a: 2301 movs r3, #1
  22470. 8009d6c: e01f b.n 8009dae <HAL_PWREx_ConfigSupply+0x66>
  22471. else
  22472. {
  22473. /* Supply configuration update locked, but new supply configuration
  22474. matches with old supply configuration : nothing to do
  22475. */
  22476. return HAL_OK;
  22477. 8009d6e: 2300 movs r3, #0
  22478. 8009d70: e01d b.n 8009dae <HAL_PWREx_ConfigSupply+0x66>
  22479. }
  22480. }
  22481. /* Set the power supply configuration */
  22482. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  22483. 8009d72: 4b11 ldr r3, [pc, #68] @ (8009db8 <HAL_PWREx_ConfigSupply+0x70>)
  22484. 8009d74: 68db ldr r3, [r3, #12]
  22485. 8009d76: f023 0207 bic.w r2, r3, #7
  22486. 8009d7a: 490f ldr r1, [pc, #60] @ (8009db8 <HAL_PWREx_ConfigSupply+0x70>)
  22487. 8009d7c: 687b ldr r3, [r7, #4]
  22488. 8009d7e: 4313 orrs r3, r2
  22489. 8009d80: 60cb str r3, [r1, #12]
  22490. /* Get tick */
  22491. tickstart = HAL_GetTick ();
  22492. 8009d82: f7fb fa5d bl 8005240 <HAL_GetTick>
  22493. 8009d86: 60f8 str r0, [r7, #12]
  22494. /* Wait till voltage level flag is set */
  22495. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  22496. 8009d88: e009 b.n 8009d9e <HAL_PWREx_ConfigSupply+0x56>
  22497. {
  22498. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  22499. 8009d8a: f7fb fa59 bl 8005240 <HAL_GetTick>
  22500. 8009d8e: 4602 mov r2, r0
  22501. 8009d90: 68fb ldr r3, [r7, #12]
  22502. 8009d92: 1ad3 subs r3, r2, r3
  22503. 8009d94: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  22504. 8009d98: d901 bls.n 8009d9e <HAL_PWREx_ConfigSupply+0x56>
  22505. {
  22506. return HAL_ERROR;
  22507. 8009d9a: 2301 movs r3, #1
  22508. 8009d9c: e007 b.n 8009dae <HAL_PWREx_ConfigSupply+0x66>
  22509. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  22510. 8009d9e: 4b06 ldr r3, [pc, #24] @ (8009db8 <HAL_PWREx_ConfigSupply+0x70>)
  22511. 8009da0: 685b ldr r3, [r3, #4]
  22512. 8009da2: f403 5300 and.w r3, r3, #8192 @ 0x2000
  22513. 8009da6: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  22514. 8009daa: d1ee bne.n 8009d8a <HAL_PWREx_ConfigSupply+0x42>
  22515. }
  22516. }
  22517. }
  22518. #endif /* defined (SMPS) */
  22519. return HAL_OK;
  22520. 8009dac: 2300 movs r3, #0
  22521. }
  22522. 8009dae: 4618 mov r0, r3
  22523. 8009db0: 3710 adds r7, #16
  22524. 8009db2: 46bd mov sp, r7
  22525. 8009db4: bd80 pop {r7, pc}
  22526. 8009db6: bf00 nop
  22527. 8009db8: 58024800 .word 0x58024800
  22528. 08009dbc <HAL_PWREx_ConfigAVD>:
  22529. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  22530. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  22531. * @retval None.
  22532. */
  22533. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  22534. {
  22535. 8009dbc: b480 push {r7}
  22536. 8009dbe: b083 sub sp, #12
  22537. 8009dc0: af00 add r7, sp, #0
  22538. 8009dc2: 6078 str r0, [r7, #4]
  22539. /* Check the parameters */
  22540. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  22541. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  22542. /* Set the ALS[18:17] bits according to AVDLevel value */
  22543. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  22544. 8009dc4: 4b37 ldr r3, [pc, #220] @ (8009ea4 <HAL_PWREx_ConfigAVD+0xe8>)
  22545. 8009dc6: 681b ldr r3, [r3, #0]
  22546. 8009dc8: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  22547. 8009dcc: 687b ldr r3, [r7, #4]
  22548. 8009dce: 681b ldr r3, [r3, #0]
  22549. 8009dd0: 4934 ldr r1, [pc, #208] @ (8009ea4 <HAL_PWREx_ConfigAVD+0xe8>)
  22550. 8009dd2: 4313 orrs r3, r2
  22551. 8009dd4: 600b str r3, [r1, #0]
  22552. /* Clear any previous config */
  22553. #if !defined (DUAL_CORE)
  22554. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  22555. 8009dd6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22556. 8009dda: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  22557. 8009dde: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22558. 8009de2: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22559. 8009de6: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  22560. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  22561. 8009dea: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22562. 8009dee: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  22563. 8009df2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22564. 8009df6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22565. 8009dfa: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  22566. #endif /* !defined (DUAL_CORE) */
  22567. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  22568. 8009dfe: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22569. 8009e02: 681b ldr r3, [r3, #0]
  22570. 8009e04: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22571. 8009e08: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22572. 8009e0c: 6013 str r3, [r2, #0]
  22573. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  22574. 8009e0e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22575. 8009e12: 685b ldr r3, [r3, #4]
  22576. 8009e14: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22577. 8009e18: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22578. 8009e1c: 6053 str r3, [r2, #4]
  22579. #if !defined (DUAL_CORE)
  22580. /* Configure the interrupt mode */
  22581. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  22582. 8009e1e: 687b ldr r3, [r7, #4]
  22583. 8009e20: 685b ldr r3, [r3, #4]
  22584. 8009e22: f403 3380 and.w r3, r3, #65536 @ 0x10000
  22585. 8009e26: 2b00 cmp r3, #0
  22586. 8009e28: d009 beq.n 8009e3e <HAL_PWREx_ConfigAVD+0x82>
  22587. {
  22588. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  22589. 8009e2a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22590. 8009e2e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  22591. 8009e32: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22592. 8009e36: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22593. 8009e3a: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  22594. }
  22595. /* Configure the event mode */
  22596. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  22597. 8009e3e: 687b ldr r3, [r7, #4]
  22598. 8009e40: 685b ldr r3, [r3, #4]
  22599. 8009e42: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22600. 8009e46: 2b00 cmp r3, #0
  22601. 8009e48: d009 beq.n 8009e5e <HAL_PWREx_ConfigAVD+0xa2>
  22602. {
  22603. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  22604. 8009e4a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22605. 8009e4e: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  22606. 8009e52: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22607. 8009e56: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22608. 8009e5a: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  22609. }
  22610. #endif /* !defined (DUAL_CORE) */
  22611. /* Rising edge configuration */
  22612. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  22613. 8009e5e: 687b ldr r3, [r7, #4]
  22614. 8009e60: 685b ldr r3, [r3, #4]
  22615. 8009e62: f003 0301 and.w r3, r3, #1
  22616. 8009e66: 2b00 cmp r3, #0
  22617. 8009e68: d007 beq.n 8009e7a <HAL_PWREx_ConfigAVD+0xbe>
  22618. {
  22619. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  22620. 8009e6a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22621. 8009e6e: 681b ldr r3, [r3, #0]
  22622. 8009e70: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22623. 8009e74: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22624. 8009e78: 6013 str r3, [r2, #0]
  22625. }
  22626. /* Falling edge configuration */
  22627. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  22628. 8009e7a: 687b ldr r3, [r7, #4]
  22629. 8009e7c: 685b ldr r3, [r3, #4]
  22630. 8009e7e: f003 0302 and.w r3, r3, #2
  22631. 8009e82: 2b00 cmp r3, #0
  22632. 8009e84: d007 beq.n 8009e96 <HAL_PWREx_ConfigAVD+0xda>
  22633. {
  22634. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  22635. 8009e86: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  22636. 8009e8a: 685b ldr r3, [r3, #4]
  22637. 8009e8c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  22638. 8009e90: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22639. 8009e94: 6053 str r3, [r2, #4]
  22640. }
  22641. }
  22642. 8009e96: bf00 nop
  22643. 8009e98: 370c adds r7, #12
  22644. 8009e9a: 46bd mov sp, r7
  22645. 8009e9c: f85d 7b04 ldr.w r7, [sp], #4
  22646. 8009ea0: 4770 bx lr
  22647. 8009ea2: bf00 nop
  22648. 8009ea4: 58024800 .word 0x58024800
  22649. 08009ea8 <HAL_PWREx_EnableAVD>:
  22650. /**
  22651. * @brief Enable the Analog Voltage Detector (AVD).
  22652. * @retval None.
  22653. */
  22654. void HAL_PWREx_EnableAVD (void)
  22655. {
  22656. 8009ea8: b480 push {r7}
  22657. 8009eaa: af00 add r7, sp, #0
  22658. /* Enable the Analog Voltage Detector */
  22659. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  22660. 8009eac: 4b05 ldr r3, [pc, #20] @ (8009ec4 <HAL_PWREx_EnableAVD+0x1c>)
  22661. 8009eae: 681b ldr r3, [r3, #0]
  22662. 8009eb0: 4a04 ldr r2, [pc, #16] @ (8009ec4 <HAL_PWREx_EnableAVD+0x1c>)
  22663. 8009eb2: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22664. 8009eb6: 6013 str r3, [r2, #0]
  22665. }
  22666. 8009eb8: bf00 nop
  22667. 8009eba: 46bd mov sp, r7
  22668. 8009ebc: f85d 7b04 ldr.w r7, [sp], #4
  22669. 8009ec0: 4770 bx lr
  22670. 8009ec2: bf00 nop
  22671. 8009ec4: 58024800 .word 0x58024800
  22672. 08009ec8 <HAL_RCC_OscConfig>:
  22673. * supported by this function. User should request a transition to HSE Off
  22674. * first and then HSE On or HSE Bypass.
  22675. * @retval HAL status
  22676. */
  22677. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  22678. {
  22679. 8009ec8: b580 push {r7, lr}
  22680. 8009eca: b08c sub sp, #48 @ 0x30
  22681. 8009ecc: af00 add r7, sp, #0
  22682. 8009ece: 6078 str r0, [r7, #4]
  22683. uint32_t tickstart;
  22684. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  22685. /* Check Null pointer */
  22686. if (RCC_OscInitStruct == NULL)
  22687. 8009ed0: 687b ldr r3, [r7, #4]
  22688. 8009ed2: 2b00 cmp r3, #0
  22689. 8009ed4: d102 bne.n 8009edc <HAL_RCC_OscConfig+0x14>
  22690. {
  22691. return HAL_ERROR;
  22692. 8009ed6: 2301 movs r3, #1
  22693. 8009ed8: f000 bc48 b.w 800a76c <HAL_RCC_OscConfig+0x8a4>
  22694. }
  22695. /* Check the parameters */
  22696. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  22697. /*------------------------------- HSE Configuration ------------------------*/
  22698. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  22699. 8009edc: 687b ldr r3, [r7, #4]
  22700. 8009ede: 681b ldr r3, [r3, #0]
  22701. 8009ee0: f003 0301 and.w r3, r3, #1
  22702. 8009ee4: 2b00 cmp r3, #0
  22703. 8009ee6: f000 8088 beq.w 8009ffa <HAL_RCC_OscConfig+0x132>
  22704. {
  22705. /* Check the parameters */
  22706. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  22707. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  22708. 8009eea: 4b99 ldr r3, [pc, #612] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22709. 8009eec: 691b ldr r3, [r3, #16]
  22710. 8009eee: f003 0338 and.w r3, r3, #56 @ 0x38
  22711. 8009ef2: 62fb str r3, [r7, #44] @ 0x2c
  22712. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  22713. 8009ef4: 4b96 ldr r3, [pc, #600] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22714. 8009ef6: 6a9b ldr r3, [r3, #40] @ 0x28
  22715. 8009ef8: 62bb str r3, [r7, #40] @ 0x28
  22716. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  22717. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  22718. 8009efa: 6afb ldr r3, [r7, #44] @ 0x2c
  22719. 8009efc: 2b10 cmp r3, #16
  22720. 8009efe: d007 beq.n 8009f10 <HAL_RCC_OscConfig+0x48>
  22721. 8009f00: 6afb ldr r3, [r7, #44] @ 0x2c
  22722. 8009f02: 2b18 cmp r3, #24
  22723. 8009f04: d111 bne.n 8009f2a <HAL_RCC_OscConfig+0x62>
  22724. 8009f06: 6abb ldr r3, [r7, #40] @ 0x28
  22725. 8009f08: f003 0303 and.w r3, r3, #3
  22726. 8009f0c: 2b02 cmp r3, #2
  22727. 8009f0e: d10c bne.n 8009f2a <HAL_RCC_OscConfig+0x62>
  22728. {
  22729. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  22730. 8009f10: 4b8f ldr r3, [pc, #572] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22731. 8009f12: 681b ldr r3, [r3, #0]
  22732. 8009f14: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22733. 8009f18: 2b00 cmp r3, #0
  22734. 8009f1a: d06d beq.n 8009ff8 <HAL_RCC_OscConfig+0x130>
  22735. 8009f1c: 687b ldr r3, [r7, #4]
  22736. 8009f1e: 685b ldr r3, [r3, #4]
  22737. 8009f20: 2b00 cmp r3, #0
  22738. 8009f22: d169 bne.n 8009ff8 <HAL_RCC_OscConfig+0x130>
  22739. {
  22740. return HAL_ERROR;
  22741. 8009f24: 2301 movs r3, #1
  22742. 8009f26: f000 bc21 b.w 800a76c <HAL_RCC_OscConfig+0x8a4>
  22743. }
  22744. }
  22745. else
  22746. {
  22747. /* Set the new HSE configuration ---------------------------------------*/
  22748. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  22749. 8009f2a: 687b ldr r3, [r7, #4]
  22750. 8009f2c: 685b ldr r3, [r3, #4]
  22751. 8009f2e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  22752. 8009f32: d106 bne.n 8009f42 <HAL_RCC_OscConfig+0x7a>
  22753. 8009f34: 4b86 ldr r3, [pc, #536] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22754. 8009f36: 681b ldr r3, [r3, #0]
  22755. 8009f38: 4a85 ldr r2, [pc, #532] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22756. 8009f3a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22757. 8009f3e: 6013 str r3, [r2, #0]
  22758. 8009f40: e02e b.n 8009fa0 <HAL_RCC_OscConfig+0xd8>
  22759. 8009f42: 687b ldr r3, [r7, #4]
  22760. 8009f44: 685b ldr r3, [r3, #4]
  22761. 8009f46: 2b00 cmp r3, #0
  22762. 8009f48: d10c bne.n 8009f64 <HAL_RCC_OscConfig+0x9c>
  22763. 8009f4a: 4b81 ldr r3, [pc, #516] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22764. 8009f4c: 681b ldr r3, [r3, #0]
  22765. 8009f4e: 4a80 ldr r2, [pc, #512] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22766. 8009f50: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22767. 8009f54: 6013 str r3, [r2, #0]
  22768. 8009f56: 4b7e ldr r3, [pc, #504] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22769. 8009f58: 681b ldr r3, [r3, #0]
  22770. 8009f5a: 4a7d ldr r2, [pc, #500] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22771. 8009f5c: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  22772. 8009f60: 6013 str r3, [r2, #0]
  22773. 8009f62: e01d b.n 8009fa0 <HAL_RCC_OscConfig+0xd8>
  22774. 8009f64: 687b ldr r3, [r7, #4]
  22775. 8009f66: 685b ldr r3, [r3, #4]
  22776. 8009f68: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  22777. 8009f6c: d10c bne.n 8009f88 <HAL_RCC_OscConfig+0xc0>
  22778. 8009f6e: 4b78 ldr r3, [pc, #480] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22779. 8009f70: 681b ldr r3, [r3, #0]
  22780. 8009f72: 4a77 ldr r2, [pc, #476] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22781. 8009f74: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  22782. 8009f78: 6013 str r3, [r2, #0]
  22783. 8009f7a: 4b75 ldr r3, [pc, #468] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22784. 8009f7c: 681b ldr r3, [r3, #0]
  22785. 8009f7e: 4a74 ldr r2, [pc, #464] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22786. 8009f80: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  22787. 8009f84: 6013 str r3, [r2, #0]
  22788. 8009f86: e00b b.n 8009fa0 <HAL_RCC_OscConfig+0xd8>
  22789. 8009f88: 4b71 ldr r3, [pc, #452] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22790. 8009f8a: 681b ldr r3, [r3, #0]
  22791. 8009f8c: 4a70 ldr r2, [pc, #448] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22792. 8009f8e: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  22793. 8009f92: 6013 str r3, [r2, #0]
  22794. 8009f94: 4b6e ldr r3, [pc, #440] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22795. 8009f96: 681b ldr r3, [r3, #0]
  22796. 8009f98: 4a6d ldr r2, [pc, #436] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22797. 8009f9a: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  22798. 8009f9e: 6013 str r3, [r2, #0]
  22799. /* Check the HSE State */
  22800. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  22801. 8009fa0: 687b ldr r3, [r7, #4]
  22802. 8009fa2: 685b ldr r3, [r3, #4]
  22803. 8009fa4: 2b00 cmp r3, #0
  22804. 8009fa6: d013 beq.n 8009fd0 <HAL_RCC_OscConfig+0x108>
  22805. {
  22806. /* Get Start Tick*/
  22807. tickstart = HAL_GetTick();
  22808. 8009fa8: f7fb f94a bl 8005240 <HAL_GetTick>
  22809. 8009fac: 6278 str r0, [r7, #36] @ 0x24
  22810. /* Wait till HSE is ready */
  22811. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  22812. 8009fae: e008 b.n 8009fc2 <HAL_RCC_OscConfig+0xfa>
  22813. {
  22814. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  22815. 8009fb0: f7fb f946 bl 8005240 <HAL_GetTick>
  22816. 8009fb4: 4602 mov r2, r0
  22817. 8009fb6: 6a7b ldr r3, [r7, #36] @ 0x24
  22818. 8009fb8: 1ad3 subs r3, r2, r3
  22819. 8009fba: 2b64 cmp r3, #100 @ 0x64
  22820. 8009fbc: d901 bls.n 8009fc2 <HAL_RCC_OscConfig+0xfa>
  22821. {
  22822. return HAL_TIMEOUT;
  22823. 8009fbe: 2303 movs r3, #3
  22824. 8009fc0: e3d4 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  22825. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  22826. 8009fc2: 4b63 ldr r3, [pc, #396] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22827. 8009fc4: 681b ldr r3, [r3, #0]
  22828. 8009fc6: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22829. 8009fca: 2b00 cmp r3, #0
  22830. 8009fcc: d0f0 beq.n 8009fb0 <HAL_RCC_OscConfig+0xe8>
  22831. 8009fce: e014 b.n 8009ffa <HAL_RCC_OscConfig+0x132>
  22832. }
  22833. }
  22834. else
  22835. {
  22836. /* Get Start Tick*/
  22837. tickstart = HAL_GetTick();
  22838. 8009fd0: f7fb f936 bl 8005240 <HAL_GetTick>
  22839. 8009fd4: 6278 str r0, [r7, #36] @ 0x24
  22840. /* Wait till HSE is disabled */
  22841. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  22842. 8009fd6: e008 b.n 8009fea <HAL_RCC_OscConfig+0x122>
  22843. {
  22844. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  22845. 8009fd8: f7fb f932 bl 8005240 <HAL_GetTick>
  22846. 8009fdc: 4602 mov r2, r0
  22847. 8009fde: 6a7b ldr r3, [r7, #36] @ 0x24
  22848. 8009fe0: 1ad3 subs r3, r2, r3
  22849. 8009fe2: 2b64 cmp r3, #100 @ 0x64
  22850. 8009fe4: d901 bls.n 8009fea <HAL_RCC_OscConfig+0x122>
  22851. {
  22852. return HAL_TIMEOUT;
  22853. 8009fe6: 2303 movs r3, #3
  22854. 8009fe8: e3c0 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  22855. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  22856. 8009fea: 4b59 ldr r3, [pc, #356] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22857. 8009fec: 681b ldr r3, [r3, #0]
  22858. 8009fee: f403 3300 and.w r3, r3, #131072 @ 0x20000
  22859. 8009ff2: 2b00 cmp r3, #0
  22860. 8009ff4: d1f0 bne.n 8009fd8 <HAL_RCC_OscConfig+0x110>
  22861. 8009ff6: e000 b.n 8009ffa <HAL_RCC_OscConfig+0x132>
  22862. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  22863. 8009ff8: bf00 nop
  22864. }
  22865. }
  22866. }
  22867. }
  22868. /*----------------------------- HSI Configuration --------------------------*/
  22869. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  22870. 8009ffa: 687b ldr r3, [r7, #4]
  22871. 8009ffc: 681b ldr r3, [r3, #0]
  22872. 8009ffe: f003 0302 and.w r3, r3, #2
  22873. 800a002: 2b00 cmp r3, #0
  22874. 800a004: f000 80ca beq.w 800a19c <HAL_RCC_OscConfig+0x2d4>
  22875. /* Check the parameters */
  22876. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  22877. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  22878. /* When the HSI is used as system clock it will not be disabled */
  22879. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  22880. 800a008: 4b51 ldr r3, [pc, #324] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22881. 800a00a: 691b ldr r3, [r3, #16]
  22882. 800a00c: f003 0338 and.w r3, r3, #56 @ 0x38
  22883. 800a010: 623b str r3, [r7, #32]
  22884. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  22885. 800a012: 4b4f ldr r3, [pc, #316] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22886. 800a014: 6a9b ldr r3, [r3, #40] @ 0x28
  22887. 800a016: 61fb str r3, [r7, #28]
  22888. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  22889. 800a018: 6a3b ldr r3, [r7, #32]
  22890. 800a01a: 2b00 cmp r3, #0
  22891. 800a01c: d007 beq.n 800a02e <HAL_RCC_OscConfig+0x166>
  22892. 800a01e: 6a3b ldr r3, [r7, #32]
  22893. 800a020: 2b18 cmp r3, #24
  22894. 800a022: d156 bne.n 800a0d2 <HAL_RCC_OscConfig+0x20a>
  22895. 800a024: 69fb ldr r3, [r7, #28]
  22896. 800a026: f003 0303 and.w r3, r3, #3
  22897. 800a02a: 2b00 cmp r3, #0
  22898. 800a02c: d151 bne.n 800a0d2 <HAL_RCC_OscConfig+0x20a>
  22899. {
  22900. /* When HSI is used as system clock it will not be disabled */
  22901. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22902. 800a02e: 4b48 ldr r3, [pc, #288] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22903. 800a030: 681b ldr r3, [r3, #0]
  22904. 800a032: f003 0304 and.w r3, r3, #4
  22905. 800a036: 2b00 cmp r3, #0
  22906. 800a038: d005 beq.n 800a046 <HAL_RCC_OscConfig+0x17e>
  22907. 800a03a: 687b ldr r3, [r7, #4]
  22908. 800a03c: 68db ldr r3, [r3, #12]
  22909. 800a03e: 2b00 cmp r3, #0
  22910. 800a040: d101 bne.n 800a046 <HAL_RCC_OscConfig+0x17e>
  22911. {
  22912. return HAL_ERROR;
  22913. 800a042: 2301 movs r3, #1
  22914. 800a044: e392 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  22915. }
  22916. /* Otherwise, only HSI division and calibration are allowed */
  22917. else
  22918. {
  22919. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  22920. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  22921. 800a046: 4b42 ldr r3, [pc, #264] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22922. 800a048: 681b ldr r3, [r3, #0]
  22923. 800a04a: f023 0219 bic.w r2, r3, #25
  22924. 800a04e: 687b ldr r3, [r7, #4]
  22925. 800a050: 68db ldr r3, [r3, #12]
  22926. 800a052: 493f ldr r1, [pc, #252] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22927. 800a054: 4313 orrs r3, r2
  22928. 800a056: 600b str r3, [r1, #0]
  22929. /* Get Start Tick*/
  22930. tickstart = HAL_GetTick();
  22931. 800a058: f7fb f8f2 bl 8005240 <HAL_GetTick>
  22932. 800a05c: 6278 str r0, [r7, #36] @ 0x24
  22933. /* Wait till HSI is ready */
  22934. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  22935. 800a05e: e008 b.n 800a072 <HAL_RCC_OscConfig+0x1aa>
  22936. {
  22937. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  22938. 800a060: f7fb f8ee bl 8005240 <HAL_GetTick>
  22939. 800a064: 4602 mov r2, r0
  22940. 800a066: 6a7b ldr r3, [r7, #36] @ 0x24
  22941. 800a068: 1ad3 subs r3, r2, r3
  22942. 800a06a: 2b02 cmp r3, #2
  22943. 800a06c: d901 bls.n 800a072 <HAL_RCC_OscConfig+0x1aa>
  22944. {
  22945. return HAL_TIMEOUT;
  22946. 800a06e: 2303 movs r3, #3
  22947. 800a070: e37c b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  22948. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  22949. 800a072: 4b37 ldr r3, [pc, #220] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22950. 800a074: 681b ldr r3, [r3, #0]
  22951. 800a076: f003 0304 and.w r3, r3, #4
  22952. 800a07a: 2b00 cmp r3, #0
  22953. 800a07c: d0f0 beq.n 800a060 <HAL_RCC_OscConfig+0x198>
  22954. }
  22955. }
  22956. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  22957. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  22958. 800a07e: f7fb f90f bl 80052a0 <HAL_GetREVID>
  22959. 800a082: 4603 mov r3, r0
  22960. 800a084: f241 0203 movw r2, #4099 @ 0x1003
  22961. 800a088: 4293 cmp r3, r2
  22962. 800a08a: d817 bhi.n 800a0bc <HAL_RCC_OscConfig+0x1f4>
  22963. 800a08c: 687b ldr r3, [r7, #4]
  22964. 800a08e: 691b ldr r3, [r3, #16]
  22965. 800a090: 2b40 cmp r3, #64 @ 0x40
  22966. 800a092: d108 bne.n 800a0a6 <HAL_RCC_OscConfig+0x1de>
  22967. 800a094: 4b2e ldr r3, [pc, #184] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22968. 800a096: 685b ldr r3, [r3, #4]
  22969. 800a098: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  22970. 800a09c: 4a2c ldr r2, [pc, #176] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22971. 800a09e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  22972. 800a0a2: 6053 str r3, [r2, #4]
  22973. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22974. 800a0a4: e07a b.n 800a19c <HAL_RCC_OscConfig+0x2d4>
  22975. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  22976. 800a0a6: 4b2a ldr r3, [pc, #168] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22977. 800a0a8: 685b ldr r3, [r3, #4]
  22978. 800a0aa: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  22979. 800a0ae: 687b ldr r3, [r7, #4]
  22980. 800a0b0: 691b ldr r3, [r3, #16]
  22981. 800a0b2: 031b lsls r3, r3, #12
  22982. 800a0b4: 4926 ldr r1, [pc, #152] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22983. 800a0b6: 4313 orrs r3, r2
  22984. 800a0b8: 604b str r3, [r1, #4]
  22985. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22986. 800a0ba: e06f b.n 800a19c <HAL_RCC_OscConfig+0x2d4>
  22987. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  22988. 800a0bc: 4b24 ldr r3, [pc, #144] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22989. 800a0be: 685b ldr r3, [r3, #4]
  22990. 800a0c0: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  22991. 800a0c4: 687b ldr r3, [r7, #4]
  22992. 800a0c6: 691b ldr r3, [r3, #16]
  22993. 800a0c8: 061b lsls r3, r3, #24
  22994. 800a0ca: 4921 ldr r1, [pc, #132] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  22995. 800a0cc: 4313 orrs r3, r2
  22996. 800a0ce: 604b str r3, [r1, #4]
  22997. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  22998. 800a0d0: e064 b.n 800a19c <HAL_RCC_OscConfig+0x2d4>
  22999. }
  23000. else
  23001. {
  23002. /* Check the HSI State */
  23003. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  23004. 800a0d2: 687b ldr r3, [r7, #4]
  23005. 800a0d4: 68db ldr r3, [r3, #12]
  23006. 800a0d6: 2b00 cmp r3, #0
  23007. 800a0d8: d047 beq.n 800a16a <HAL_RCC_OscConfig+0x2a2>
  23008. {
  23009. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  23010. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  23011. 800a0da: 4b1d ldr r3, [pc, #116] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  23012. 800a0dc: 681b ldr r3, [r3, #0]
  23013. 800a0de: f023 0219 bic.w r2, r3, #25
  23014. 800a0e2: 687b ldr r3, [r7, #4]
  23015. 800a0e4: 68db ldr r3, [r3, #12]
  23016. 800a0e6: 491a ldr r1, [pc, #104] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  23017. 800a0e8: 4313 orrs r3, r2
  23018. 800a0ea: 600b str r3, [r1, #0]
  23019. /* Get Start Tick*/
  23020. tickstart = HAL_GetTick();
  23021. 800a0ec: f7fb f8a8 bl 8005240 <HAL_GetTick>
  23022. 800a0f0: 6278 str r0, [r7, #36] @ 0x24
  23023. /* Wait till HSI is ready */
  23024. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  23025. 800a0f2: e008 b.n 800a106 <HAL_RCC_OscConfig+0x23e>
  23026. {
  23027. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  23028. 800a0f4: f7fb f8a4 bl 8005240 <HAL_GetTick>
  23029. 800a0f8: 4602 mov r2, r0
  23030. 800a0fa: 6a7b ldr r3, [r7, #36] @ 0x24
  23031. 800a0fc: 1ad3 subs r3, r2, r3
  23032. 800a0fe: 2b02 cmp r3, #2
  23033. 800a100: d901 bls.n 800a106 <HAL_RCC_OscConfig+0x23e>
  23034. {
  23035. return HAL_TIMEOUT;
  23036. 800a102: 2303 movs r3, #3
  23037. 800a104: e332 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23038. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  23039. 800a106: 4b12 ldr r3, [pc, #72] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  23040. 800a108: 681b ldr r3, [r3, #0]
  23041. 800a10a: f003 0304 and.w r3, r3, #4
  23042. 800a10e: 2b00 cmp r3, #0
  23043. 800a110: d0f0 beq.n 800a0f4 <HAL_RCC_OscConfig+0x22c>
  23044. }
  23045. }
  23046. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  23047. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  23048. 800a112: f7fb f8c5 bl 80052a0 <HAL_GetREVID>
  23049. 800a116: 4603 mov r3, r0
  23050. 800a118: f241 0203 movw r2, #4099 @ 0x1003
  23051. 800a11c: 4293 cmp r3, r2
  23052. 800a11e: d819 bhi.n 800a154 <HAL_RCC_OscConfig+0x28c>
  23053. 800a120: 687b ldr r3, [r7, #4]
  23054. 800a122: 691b ldr r3, [r3, #16]
  23055. 800a124: 2b40 cmp r3, #64 @ 0x40
  23056. 800a126: d108 bne.n 800a13a <HAL_RCC_OscConfig+0x272>
  23057. 800a128: 4b09 ldr r3, [pc, #36] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  23058. 800a12a: 685b ldr r3, [r3, #4]
  23059. 800a12c: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  23060. 800a130: 4a07 ldr r2, [pc, #28] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  23061. 800a132: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  23062. 800a136: 6053 str r3, [r2, #4]
  23063. 800a138: e030 b.n 800a19c <HAL_RCC_OscConfig+0x2d4>
  23064. 800a13a: 4b05 ldr r3, [pc, #20] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  23065. 800a13c: 685b ldr r3, [r3, #4]
  23066. 800a13e: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  23067. 800a142: 687b ldr r3, [r7, #4]
  23068. 800a144: 691b ldr r3, [r3, #16]
  23069. 800a146: 031b lsls r3, r3, #12
  23070. 800a148: 4901 ldr r1, [pc, #4] @ (800a150 <HAL_RCC_OscConfig+0x288>)
  23071. 800a14a: 4313 orrs r3, r2
  23072. 800a14c: 604b str r3, [r1, #4]
  23073. 800a14e: e025 b.n 800a19c <HAL_RCC_OscConfig+0x2d4>
  23074. 800a150: 58024400 .word 0x58024400
  23075. 800a154: 4b9a ldr r3, [pc, #616] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23076. 800a156: 685b ldr r3, [r3, #4]
  23077. 800a158: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  23078. 800a15c: 687b ldr r3, [r7, #4]
  23079. 800a15e: 691b ldr r3, [r3, #16]
  23080. 800a160: 061b lsls r3, r3, #24
  23081. 800a162: 4997 ldr r1, [pc, #604] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23082. 800a164: 4313 orrs r3, r2
  23083. 800a166: 604b str r3, [r1, #4]
  23084. 800a168: e018 b.n 800a19c <HAL_RCC_OscConfig+0x2d4>
  23085. }
  23086. else
  23087. {
  23088. /* Disable the Internal High Speed oscillator (HSI). */
  23089. __HAL_RCC_HSI_DISABLE();
  23090. 800a16a: 4b95 ldr r3, [pc, #596] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23091. 800a16c: 681b ldr r3, [r3, #0]
  23092. 800a16e: 4a94 ldr r2, [pc, #592] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23093. 800a170: f023 0301 bic.w r3, r3, #1
  23094. 800a174: 6013 str r3, [r2, #0]
  23095. /* Get Start Tick*/
  23096. tickstart = HAL_GetTick();
  23097. 800a176: f7fb f863 bl 8005240 <HAL_GetTick>
  23098. 800a17a: 6278 str r0, [r7, #36] @ 0x24
  23099. /* Wait till HSI is disabled */
  23100. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  23101. 800a17c: e008 b.n 800a190 <HAL_RCC_OscConfig+0x2c8>
  23102. {
  23103. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  23104. 800a17e: f7fb f85f bl 8005240 <HAL_GetTick>
  23105. 800a182: 4602 mov r2, r0
  23106. 800a184: 6a7b ldr r3, [r7, #36] @ 0x24
  23107. 800a186: 1ad3 subs r3, r2, r3
  23108. 800a188: 2b02 cmp r3, #2
  23109. 800a18a: d901 bls.n 800a190 <HAL_RCC_OscConfig+0x2c8>
  23110. {
  23111. return HAL_TIMEOUT;
  23112. 800a18c: 2303 movs r3, #3
  23113. 800a18e: e2ed b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23114. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  23115. 800a190: 4b8b ldr r3, [pc, #556] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23116. 800a192: 681b ldr r3, [r3, #0]
  23117. 800a194: f003 0304 and.w r3, r3, #4
  23118. 800a198: 2b00 cmp r3, #0
  23119. 800a19a: d1f0 bne.n 800a17e <HAL_RCC_OscConfig+0x2b6>
  23120. }
  23121. }
  23122. }
  23123. }
  23124. /*----------------------------- CSI Configuration --------------------------*/
  23125. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  23126. 800a19c: 687b ldr r3, [r7, #4]
  23127. 800a19e: 681b ldr r3, [r3, #0]
  23128. 800a1a0: f003 0310 and.w r3, r3, #16
  23129. 800a1a4: 2b00 cmp r3, #0
  23130. 800a1a6: f000 80a9 beq.w 800a2fc <HAL_RCC_OscConfig+0x434>
  23131. /* Check the parameters */
  23132. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  23133. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  23134. /* When the CSI is used as system clock it will not disabled */
  23135. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  23136. 800a1aa: 4b85 ldr r3, [pc, #532] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23137. 800a1ac: 691b ldr r3, [r3, #16]
  23138. 800a1ae: f003 0338 and.w r3, r3, #56 @ 0x38
  23139. 800a1b2: 61bb str r3, [r7, #24]
  23140. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  23141. 800a1b4: 4b82 ldr r3, [pc, #520] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23142. 800a1b6: 6a9b ldr r3, [r3, #40] @ 0x28
  23143. 800a1b8: 617b str r3, [r7, #20]
  23144. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  23145. 800a1ba: 69bb ldr r3, [r7, #24]
  23146. 800a1bc: 2b08 cmp r3, #8
  23147. 800a1be: d007 beq.n 800a1d0 <HAL_RCC_OscConfig+0x308>
  23148. 800a1c0: 69bb ldr r3, [r7, #24]
  23149. 800a1c2: 2b18 cmp r3, #24
  23150. 800a1c4: d13a bne.n 800a23c <HAL_RCC_OscConfig+0x374>
  23151. 800a1c6: 697b ldr r3, [r7, #20]
  23152. 800a1c8: f003 0303 and.w r3, r3, #3
  23153. 800a1cc: 2b01 cmp r3, #1
  23154. 800a1ce: d135 bne.n 800a23c <HAL_RCC_OscConfig+0x374>
  23155. {
  23156. /* When CSI is used as system clock it will not disabled */
  23157. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23158. 800a1d0: 4b7b ldr r3, [pc, #492] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23159. 800a1d2: 681b ldr r3, [r3, #0]
  23160. 800a1d4: f403 7380 and.w r3, r3, #256 @ 0x100
  23161. 800a1d8: 2b00 cmp r3, #0
  23162. 800a1da: d005 beq.n 800a1e8 <HAL_RCC_OscConfig+0x320>
  23163. 800a1dc: 687b ldr r3, [r7, #4]
  23164. 800a1de: 69db ldr r3, [r3, #28]
  23165. 800a1e0: 2b80 cmp r3, #128 @ 0x80
  23166. 800a1e2: d001 beq.n 800a1e8 <HAL_RCC_OscConfig+0x320>
  23167. {
  23168. return HAL_ERROR;
  23169. 800a1e4: 2301 movs r3, #1
  23170. 800a1e6: e2c1 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23171. }
  23172. /* Otherwise, just the calibration is allowed */
  23173. else
  23174. {
  23175. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  23176. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23177. 800a1e8: f7fb f85a bl 80052a0 <HAL_GetREVID>
  23178. 800a1ec: 4603 mov r3, r0
  23179. 800a1ee: f241 0203 movw r2, #4099 @ 0x1003
  23180. 800a1f2: 4293 cmp r3, r2
  23181. 800a1f4: d817 bhi.n 800a226 <HAL_RCC_OscConfig+0x35e>
  23182. 800a1f6: 687b ldr r3, [r7, #4]
  23183. 800a1f8: 6a1b ldr r3, [r3, #32]
  23184. 800a1fa: 2b20 cmp r3, #32
  23185. 800a1fc: d108 bne.n 800a210 <HAL_RCC_OscConfig+0x348>
  23186. 800a1fe: 4b70 ldr r3, [pc, #448] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23187. 800a200: 685b ldr r3, [r3, #4]
  23188. 800a202: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  23189. 800a206: 4a6e ldr r2, [pc, #440] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23190. 800a208: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  23191. 800a20c: 6053 str r3, [r2, #4]
  23192. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23193. 800a20e: e075 b.n 800a2fc <HAL_RCC_OscConfig+0x434>
  23194. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23195. 800a210: 4b6b ldr r3, [pc, #428] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23196. 800a212: 685b ldr r3, [r3, #4]
  23197. 800a214: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  23198. 800a218: 687b ldr r3, [r7, #4]
  23199. 800a21a: 6a1b ldr r3, [r3, #32]
  23200. 800a21c: 069b lsls r3, r3, #26
  23201. 800a21e: 4968 ldr r1, [pc, #416] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23202. 800a220: 4313 orrs r3, r2
  23203. 800a222: 604b str r3, [r1, #4]
  23204. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23205. 800a224: e06a b.n 800a2fc <HAL_RCC_OscConfig+0x434>
  23206. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23207. 800a226: 4b66 ldr r3, [pc, #408] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23208. 800a228: 68db ldr r3, [r3, #12]
  23209. 800a22a: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  23210. 800a22e: 687b ldr r3, [r7, #4]
  23211. 800a230: 6a1b ldr r3, [r3, #32]
  23212. 800a232: 061b lsls r3, r3, #24
  23213. 800a234: 4962 ldr r1, [pc, #392] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23214. 800a236: 4313 orrs r3, r2
  23215. 800a238: 60cb str r3, [r1, #12]
  23216. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  23217. 800a23a: e05f b.n 800a2fc <HAL_RCC_OscConfig+0x434>
  23218. }
  23219. }
  23220. else
  23221. {
  23222. /* Check the CSI State */
  23223. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  23224. 800a23c: 687b ldr r3, [r7, #4]
  23225. 800a23e: 69db ldr r3, [r3, #28]
  23226. 800a240: 2b00 cmp r3, #0
  23227. 800a242: d042 beq.n 800a2ca <HAL_RCC_OscConfig+0x402>
  23228. {
  23229. /* Enable the Internal High Speed oscillator (CSI). */
  23230. __HAL_RCC_CSI_ENABLE();
  23231. 800a244: 4b5e ldr r3, [pc, #376] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23232. 800a246: 681b ldr r3, [r3, #0]
  23233. 800a248: 4a5d ldr r2, [pc, #372] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23234. 800a24a: f043 0380 orr.w r3, r3, #128 @ 0x80
  23235. 800a24e: 6013 str r3, [r2, #0]
  23236. /* Get Start Tick*/
  23237. tickstart = HAL_GetTick();
  23238. 800a250: f7fa fff6 bl 8005240 <HAL_GetTick>
  23239. 800a254: 6278 str r0, [r7, #36] @ 0x24
  23240. /* Wait till CSI is ready */
  23241. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  23242. 800a256: e008 b.n 800a26a <HAL_RCC_OscConfig+0x3a2>
  23243. {
  23244. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  23245. 800a258: f7fa fff2 bl 8005240 <HAL_GetTick>
  23246. 800a25c: 4602 mov r2, r0
  23247. 800a25e: 6a7b ldr r3, [r7, #36] @ 0x24
  23248. 800a260: 1ad3 subs r3, r2, r3
  23249. 800a262: 2b02 cmp r3, #2
  23250. 800a264: d901 bls.n 800a26a <HAL_RCC_OscConfig+0x3a2>
  23251. {
  23252. return HAL_TIMEOUT;
  23253. 800a266: 2303 movs r3, #3
  23254. 800a268: e280 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23255. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  23256. 800a26a: 4b55 ldr r3, [pc, #340] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23257. 800a26c: 681b ldr r3, [r3, #0]
  23258. 800a26e: f403 7380 and.w r3, r3, #256 @ 0x100
  23259. 800a272: 2b00 cmp r3, #0
  23260. 800a274: d0f0 beq.n 800a258 <HAL_RCC_OscConfig+0x390>
  23261. }
  23262. }
  23263. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  23264. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  23265. 800a276: f7fb f813 bl 80052a0 <HAL_GetREVID>
  23266. 800a27a: 4603 mov r3, r0
  23267. 800a27c: f241 0203 movw r2, #4099 @ 0x1003
  23268. 800a280: 4293 cmp r3, r2
  23269. 800a282: d817 bhi.n 800a2b4 <HAL_RCC_OscConfig+0x3ec>
  23270. 800a284: 687b ldr r3, [r7, #4]
  23271. 800a286: 6a1b ldr r3, [r3, #32]
  23272. 800a288: 2b20 cmp r3, #32
  23273. 800a28a: d108 bne.n 800a29e <HAL_RCC_OscConfig+0x3d6>
  23274. 800a28c: 4b4c ldr r3, [pc, #304] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23275. 800a28e: 685b ldr r3, [r3, #4]
  23276. 800a290: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  23277. 800a294: 4a4a ldr r2, [pc, #296] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23278. 800a296: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  23279. 800a29a: 6053 str r3, [r2, #4]
  23280. 800a29c: e02e b.n 800a2fc <HAL_RCC_OscConfig+0x434>
  23281. 800a29e: 4b48 ldr r3, [pc, #288] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23282. 800a2a0: 685b ldr r3, [r3, #4]
  23283. 800a2a2: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  23284. 800a2a6: 687b ldr r3, [r7, #4]
  23285. 800a2a8: 6a1b ldr r3, [r3, #32]
  23286. 800a2aa: 069b lsls r3, r3, #26
  23287. 800a2ac: 4944 ldr r1, [pc, #272] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23288. 800a2ae: 4313 orrs r3, r2
  23289. 800a2b0: 604b str r3, [r1, #4]
  23290. 800a2b2: e023 b.n 800a2fc <HAL_RCC_OscConfig+0x434>
  23291. 800a2b4: 4b42 ldr r3, [pc, #264] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23292. 800a2b6: 68db ldr r3, [r3, #12]
  23293. 800a2b8: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  23294. 800a2bc: 687b ldr r3, [r7, #4]
  23295. 800a2be: 6a1b ldr r3, [r3, #32]
  23296. 800a2c0: 061b lsls r3, r3, #24
  23297. 800a2c2: 493f ldr r1, [pc, #252] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23298. 800a2c4: 4313 orrs r3, r2
  23299. 800a2c6: 60cb str r3, [r1, #12]
  23300. 800a2c8: e018 b.n 800a2fc <HAL_RCC_OscConfig+0x434>
  23301. }
  23302. else
  23303. {
  23304. /* Disable the Internal High Speed oscillator (CSI). */
  23305. __HAL_RCC_CSI_DISABLE();
  23306. 800a2ca: 4b3d ldr r3, [pc, #244] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23307. 800a2cc: 681b ldr r3, [r3, #0]
  23308. 800a2ce: 4a3c ldr r2, [pc, #240] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23309. 800a2d0: f023 0380 bic.w r3, r3, #128 @ 0x80
  23310. 800a2d4: 6013 str r3, [r2, #0]
  23311. /* Get Start Tick*/
  23312. tickstart = HAL_GetTick();
  23313. 800a2d6: f7fa ffb3 bl 8005240 <HAL_GetTick>
  23314. 800a2da: 6278 str r0, [r7, #36] @ 0x24
  23315. /* Wait till CSI is disabled */
  23316. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  23317. 800a2dc: e008 b.n 800a2f0 <HAL_RCC_OscConfig+0x428>
  23318. {
  23319. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  23320. 800a2de: f7fa ffaf bl 8005240 <HAL_GetTick>
  23321. 800a2e2: 4602 mov r2, r0
  23322. 800a2e4: 6a7b ldr r3, [r7, #36] @ 0x24
  23323. 800a2e6: 1ad3 subs r3, r2, r3
  23324. 800a2e8: 2b02 cmp r3, #2
  23325. 800a2ea: d901 bls.n 800a2f0 <HAL_RCC_OscConfig+0x428>
  23326. {
  23327. return HAL_TIMEOUT;
  23328. 800a2ec: 2303 movs r3, #3
  23329. 800a2ee: e23d b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23330. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  23331. 800a2f0: 4b33 ldr r3, [pc, #204] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23332. 800a2f2: 681b ldr r3, [r3, #0]
  23333. 800a2f4: f403 7380 and.w r3, r3, #256 @ 0x100
  23334. 800a2f8: 2b00 cmp r3, #0
  23335. 800a2fa: d1f0 bne.n 800a2de <HAL_RCC_OscConfig+0x416>
  23336. }
  23337. }
  23338. }
  23339. }
  23340. /*------------------------------ LSI Configuration -------------------------*/
  23341. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  23342. 800a2fc: 687b ldr r3, [r7, #4]
  23343. 800a2fe: 681b ldr r3, [r3, #0]
  23344. 800a300: f003 0308 and.w r3, r3, #8
  23345. 800a304: 2b00 cmp r3, #0
  23346. 800a306: d036 beq.n 800a376 <HAL_RCC_OscConfig+0x4ae>
  23347. {
  23348. /* Check the parameters */
  23349. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  23350. /* Check the LSI State */
  23351. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  23352. 800a308: 687b ldr r3, [r7, #4]
  23353. 800a30a: 695b ldr r3, [r3, #20]
  23354. 800a30c: 2b00 cmp r3, #0
  23355. 800a30e: d019 beq.n 800a344 <HAL_RCC_OscConfig+0x47c>
  23356. {
  23357. /* Enable the Internal Low Speed oscillator (LSI). */
  23358. __HAL_RCC_LSI_ENABLE();
  23359. 800a310: 4b2b ldr r3, [pc, #172] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23360. 800a312: 6f5b ldr r3, [r3, #116] @ 0x74
  23361. 800a314: 4a2a ldr r2, [pc, #168] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23362. 800a316: f043 0301 orr.w r3, r3, #1
  23363. 800a31a: 6753 str r3, [r2, #116] @ 0x74
  23364. /* Get Start Tick*/
  23365. tickstart = HAL_GetTick();
  23366. 800a31c: f7fa ff90 bl 8005240 <HAL_GetTick>
  23367. 800a320: 6278 str r0, [r7, #36] @ 0x24
  23368. /* Wait till LSI is ready */
  23369. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  23370. 800a322: e008 b.n 800a336 <HAL_RCC_OscConfig+0x46e>
  23371. {
  23372. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  23373. 800a324: f7fa ff8c bl 8005240 <HAL_GetTick>
  23374. 800a328: 4602 mov r2, r0
  23375. 800a32a: 6a7b ldr r3, [r7, #36] @ 0x24
  23376. 800a32c: 1ad3 subs r3, r2, r3
  23377. 800a32e: 2b02 cmp r3, #2
  23378. 800a330: d901 bls.n 800a336 <HAL_RCC_OscConfig+0x46e>
  23379. {
  23380. return HAL_TIMEOUT;
  23381. 800a332: 2303 movs r3, #3
  23382. 800a334: e21a b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23383. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  23384. 800a336: 4b22 ldr r3, [pc, #136] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23385. 800a338: 6f5b ldr r3, [r3, #116] @ 0x74
  23386. 800a33a: f003 0302 and.w r3, r3, #2
  23387. 800a33e: 2b00 cmp r3, #0
  23388. 800a340: d0f0 beq.n 800a324 <HAL_RCC_OscConfig+0x45c>
  23389. 800a342: e018 b.n 800a376 <HAL_RCC_OscConfig+0x4ae>
  23390. }
  23391. }
  23392. else
  23393. {
  23394. /* Disable the Internal Low Speed oscillator (LSI). */
  23395. __HAL_RCC_LSI_DISABLE();
  23396. 800a344: 4b1e ldr r3, [pc, #120] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23397. 800a346: 6f5b ldr r3, [r3, #116] @ 0x74
  23398. 800a348: 4a1d ldr r2, [pc, #116] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23399. 800a34a: f023 0301 bic.w r3, r3, #1
  23400. 800a34e: 6753 str r3, [r2, #116] @ 0x74
  23401. /* Get Start Tick*/
  23402. tickstart = HAL_GetTick();
  23403. 800a350: f7fa ff76 bl 8005240 <HAL_GetTick>
  23404. 800a354: 6278 str r0, [r7, #36] @ 0x24
  23405. /* Wait till LSI is ready */
  23406. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  23407. 800a356: e008 b.n 800a36a <HAL_RCC_OscConfig+0x4a2>
  23408. {
  23409. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  23410. 800a358: f7fa ff72 bl 8005240 <HAL_GetTick>
  23411. 800a35c: 4602 mov r2, r0
  23412. 800a35e: 6a7b ldr r3, [r7, #36] @ 0x24
  23413. 800a360: 1ad3 subs r3, r2, r3
  23414. 800a362: 2b02 cmp r3, #2
  23415. 800a364: d901 bls.n 800a36a <HAL_RCC_OscConfig+0x4a2>
  23416. {
  23417. return HAL_TIMEOUT;
  23418. 800a366: 2303 movs r3, #3
  23419. 800a368: e200 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23420. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  23421. 800a36a: 4b15 ldr r3, [pc, #84] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23422. 800a36c: 6f5b ldr r3, [r3, #116] @ 0x74
  23423. 800a36e: f003 0302 and.w r3, r3, #2
  23424. 800a372: 2b00 cmp r3, #0
  23425. 800a374: d1f0 bne.n 800a358 <HAL_RCC_OscConfig+0x490>
  23426. }
  23427. }
  23428. }
  23429. /*------------------------------ HSI48 Configuration -------------------------*/
  23430. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  23431. 800a376: 687b ldr r3, [r7, #4]
  23432. 800a378: 681b ldr r3, [r3, #0]
  23433. 800a37a: f003 0320 and.w r3, r3, #32
  23434. 800a37e: 2b00 cmp r3, #0
  23435. 800a380: d039 beq.n 800a3f6 <HAL_RCC_OscConfig+0x52e>
  23436. {
  23437. /* Check the parameters */
  23438. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  23439. /* Check the HSI48 State */
  23440. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  23441. 800a382: 687b ldr r3, [r7, #4]
  23442. 800a384: 699b ldr r3, [r3, #24]
  23443. 800a386: 2b00 cmp r3, #0
  23444. 800a388: d01c beq.n 800a3c4 <HAL_RCC_OscConfig+0x4fc>
  23445. {
  23446. /* Enable the Internal Low Speed oscillator (HSI48). */
  23447. __HAL_RCC_HSI48_ENABLE();
  23448. 800a38a: 4b0d ldr r3, [pc, #52] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23449. 800a38c: 681b ldr r3, [r3, #0]
  23450. 800a38e: 4a0c ldr r2, [pc, #48] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23451. 800a390: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  23452. 800a394: 6013 str r3, [r2, #0]
  23453. /* Get time-out */
  23454. tickstart = HAL_GetTick();
  23455. 800a396: f7fa ff53 bl 8005240 <HAL_GetTick>
  23456. 800a39a: 6278 str r0, [r7, #36] @ 0x24
  23457. /* Wait till HSI48 is ready */
  23458. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  23459. 800a39c: e008 b.n 800a3b0 <HAL_RCC_OscConfig+0x4e8>
  23460. {
  23461. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  23462. 800a39e: f7fa ff4f bl 8005240 <HAL_GetTick>
  23463. 800a3a2: 4602 mov r2, r0
  23464. 800a3a4: 6a7b ldr r3, [r7, #36] @ 0x24
  23465. 800a3a6: 1ad3 subs r3, r2, r3
  23466. 800a3a8: 2b02 cmp r3, #2
  23467. 800a3aa: d901 bls.n 800a3b0 <HAL_RCC_OscConfig+0x4e8>
  23468. {
  23469. return HAL_TIMEOUT;
  23470. 800a3ac: 2303 movs r3, #3
  23471. 800a3ae: e1dd b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23472. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  23473. 800a3b0: 4b03 ldr r3, [pc, #12] @ (800a3c0 <HAL_RCC_OscConfig+0x4f8>)
  23474. 800a3b2: 681b ldr r3, [r3, #0]
  23475. 800a3b4: f403 5300 and.w r3, r3, #8192 @ 0x2000
  23476. 800a3b8: 2b00 cmp r3, #0
  23477. 800a3ba: d0f0 beq.n 800a39e <HAL_RCC_OscConfig+0x4d6>
  23478. 800a3bc: e01b b.n 800a3f6 <HAL_RCC_OscConfig+0x52e>
  23479. 800a3be: bf00 nop
  23480. 800a3c0: 58024400 .word 0x58024400
  23481. }
  23482. }
  23483. else
  23484. {
  23485. /* Disable the Internal Low Speed oscillator (HSI48). */
  23486. __HAL_RCC_HSI48_DISABLE();
  23487. 800a3c4: 4b9b ldr r3, [pc, #620] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23488. 800a3c6: 681b ldr r3, [r3, #0]
  23489. 800a3c8: 4a9a ldr r2, [pc, #616] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23490. 800a3ca: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  23491. 800a3ce: 6013 str r3, [r2, #0]
  23492. /* Get time-out */
  23493. tickstart = HAL_GetTick();
  23494. 800a3d0: f7fa ff36 bl 8005240 <HAL_GetTick>
  23495. 800a3d4: 6278 str r0, [r7, #36] @ 0x24
  23496. /* Wait till HSI48 is ready */
  23497. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  23498. 800a3d6: e008 b.n 800a3ea <HAL_RCC_OscConfig+0x522>
  23499. {
  23500. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  23501. 800a3d8: f7fa ff32 bl 8005240 <HAL_GetTick>
  23502. 800a3dc: 4602 mov r2, r0
  23503. 800a3de: 6a7b ldr r3, [r7, #36] @ 0x24
  23504. 800a3e0: 1ad3 subs r3, r2, r3
  23505. 800a3e2: 2b02 cmp r3, #2
  23506. 800a3e4: d901 bls.n 800a3ea <HAL_RCC_OscConfig+0x522>
  23507. {
  23508. return HAL_TIMEOUT;
  23509. 800a3e6: 2303 movs r3, #3
  23510. 800a3e8: e1c0 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23511. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  23512. 800a3ea: 4b92 ldr r3, [pc, #584] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23513. 800a3ec: 681b ldr r3, [r3, #0]
  23514. 800a3ee: f403 5300 and.w r3, r3, #8192 @ 0x2000
  23515. 800a3f2: 2b00 cmp r3, #0
  23516. 800a3f4: d1f0 bne.n 800a3d8 <HAL_RCC_OscConfig+0x510>
  23517. }
  23518. }
  23519. }
  23520. }
  23521. /*------------------------------ LSE Configuration -------------------------*/
  23522. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  23523. 800a3f6: 687b ldr r3, [r7, #4]
  23524. 800a3f8: 681b ldr r3, [r3, #0]
  23525. 800a3fa: f003 0304 and.w r3, r3, #4
  23526. 800a3fe: 2b00 cmp r3, #0
  23527. 800a400: f000 8081 beq.w 800a506 <HAL_RCC_OscConfig+0x63e>
  23528. {
  23529. /* Check the parameters */
  23530. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  23531. /* Enable write access to Backup domain */
  23532. PWR->CR1 |= PWR_CR1_DBP;
  23533. 800a404: 4b8c ldr r3, [pc, #560] @ (800a638 <HAL_RCC_OscConfig+0x770>)
  23534. 800a406: 681b ldr r3, [r3, #0]
  23535. 800a408: 4a8b ldr r2, [pc, #556] @ (800a638 <HAL_RCC_OscConfig+0x770>)
  23536. 800a40a: f443 7380 orr.w r3, r3, #256 @ 0x100
  23537. 800a40e: 6013 str r3, [r2, #0]
  23538. /* Wait for Backup domain Write protection disable */
  23539. tickstart = HAL_GetTick();
  23540. 800a410: f7fa ff16 bl 8005240 <HAL_GetTick>
  23541. 800a414: 6278 str r0, [r7, #36] @ 0x24
  23542. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  23543. 800a416: e008 b.n 800a42a <HAL_RCC_OscConfig+0x562>
  23544. {
  23545. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  23546. 800a418: f7fa ff12 bl 8005240 <HAL_GetTick>
  23547. 800a41c: 4602 mov r2, r0
  23548. 800a41e: 6a7b ldr r3, [r7, #36] @ 0x24
  23549. 800a420: 1ad3 subs r3, r2, r3
  23550. 800a422: 2b64 cmp r3, #100 @ 0x64
  23551. 800a424: d901 bls.n 800a42a <HAL_RCC_OscConfig+0x562>
  23552. {
  23553. return HAL_TIMEOUT;
  23554. 800a426: 2303 movs r3, #3
  23555. 800a428: e1a0 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23556. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  23557. 800a42a: 4b83 ldr r3, [pc, #524] @ (800a638 <HAL_RCC_OscConfig+0x770>)
  23558. 800a42c: 681b ldr r3, [r3, #0]
  23559. 800a42e: f403 7380 and.w r3, r3, #256 @ 0x100
  23560. 800a432: 2b00 cmp r3, #0
  23561. 800a434: d0f0 beq.n 800a418 <HAL_RCC_OscConfig+0x550>
  23562. }
  23563. }
  23564. /* Set the new LSE configuration -----------------------------------------*/
  23565. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  23566. 800a436: 687b ldr r3, [r7, #4]
  23567. 800a438: 689b ldr r3, [r3, #8]
  23568. 800a43a: 2b01 cmp r3, #1
  23569. 800a43c: d106 bne.n 800a44c <HAL_RCC_OscConfig+0x584>
  23570. 800a43e: 4b7d ldr r3, [pc, #500] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23571. 800a440: 6f1b ldr r3, [r3, #112] @ 0x70
  23572. 800a442: 4a7c ldr r2, [pc, #496] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23573. 800a444: f043 0301 orr.w r3, r3, #1
  23574. 800a448: 6713 str r3, [r2, #112] @ 0x70
  23575. 800a44a: e02d b.n 800a4a8 <HAL_RCC_OscConfig+0x5e0>
  23576. 800a44c: 687b ldr r3, [r7, #4]
  23577. 800a44e: 689b ldr r3, [r3, #8]
  23578. 800a450: 2b00 cmp r3, #0
  23579. 800a452: d10c bne.n 800a46e <HAL_RCC_OscConfig+0x5a6>
  23580. 800a454: 4b77 ldr r3, [pc, #476] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23581. 800a456: 6f1b ldr r3, [r3, #112] @ 0x70
  23582. 800a458: 4a76 ldr r2, [pc, #472] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23583. 800a45a: f023 0301 bic.w r3, r3, #1
  23584. 800a45e: 6713 str r3, [r2, #112] @ 0x70
  23585. 800a460: 4b74 ldr r3, [pc, #464] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23586. 800a462: 6f1b ldr r3, [r3, #112] @ 0x70
  23587. 800a464: 4a73 ldr r2, [pc, #460] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23588. 800a466: f023 0304 bic.w r3, r3, #4
  23589. 800a46a: 6713 str r3, [r2, #112] @ 0x70
  23590. 800a46c: e01c b.n 800a4a8 <HAL_RCC_OscConfig+0x5e0>
  23591. 800a46e: 687b ldr r3, [r7, #4]
  23592. 800a470: 689b ldr r3, [r3, #8]
  23593. 800a472: 2b05 cmp r3, #5
  23594. 800a474: d10c bne.n 800a490 <HAL_RCC_OscConfig+0x5c8>
  23595. 800a476: 4b6f ldr r3, [pc, #444] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23596. 800a478: 6f1b ldr r3, [r3, #112] @ 0x70
  23597. 800a47a: 4a6e ldr r2, [pc, #440] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23598. 800a47c: f043 0304 orr.w r3, r3, #4
  23599. 800a480: 6713 str r3, [r2, #112] @ 0x70
  23600. 800a482: 4b6c ldr r3, [pc, #432] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23601. 800a484: 6f1b ldr r3, [r3, #112] @ 0x70
  23602. 800a486: 4a6b ldr r2, [pc, #428] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23603. 800a488: f043 0301 orr.w r3, r3, #1
  23604. 800a48c: 6713 str r3, [r2, #112] @ 0x70
  23605. 800a48e: e00b b.n 800a4a8 <HAL_RCC_OscConfig+0x5e0>
  23606. 800a490: 4b68 ldr r3, [pc, #416] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23607. 800a492: 6f1b ldr r3, [r3, #112] @ 0x70
  23608. 800a494: 4a67 ldr r2, [pc, #412] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23609. 800a496: f023 0301 bic.w r3, r3, #1
  23610. 800a49a: 6713 str r3, [r2, #112] @ 0x70
  23611. 800a49c: 4b65 ldr r3, [pc, #404] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23612. 800a49e: 6f1b ldr r3, [r3, #112] @ 0x70
  23613. 800a4a0: 4a64 ldr r2, [pc, #400] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23614. 800a4a2: f023 0304 bic.w r3, r3, #4
  23615. 800a4a6: 6713 str r3, [r2, #112] @ 0x70
  23616. /* Check the LSE State */
  23617. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  23618. 800a4a8: 687b ldr r3, [r7, #4]
  23619. 800a4aa: 689b ldr r3, [r3, #8]
  23620. 800a4ac: 2b00 cmp r3, #0
  23621. 800a4ae: d015 beq.n 800a4dc <HAL_RCC_OscConfig+0x614>
  23622. {
  23623. /* Get Start Tick*/
  23624. tickstart = HAL_GetTick();
  23625. 800a4b0: f7fa fec6 bl 8005240 <HAL_GetTick>
  23626. 800a4b4: 6278 str r0, [r7, #36] @ 0x24
  23627. /* Wait till LSE is ready */
  23628. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  23629. 800a4b6: e00a b.n 800a4ce <HAL_RCC_OscConfig+0x606>
  23630. {
  23631. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  23632. 800a4b8: f7fa fec2 bl 8005240 <HAL_GetTick>
  23633. 800a4bc: 4602 mov r2, r0
  23634. 800a4be: 6a7b ldr r3, [r7, #36] @ 0x24
  23635. 800a4c0: 1ad3 subs r3, r2, r3
  23636. 800a4c2: f241 3288 movw r2, #5000 @ 0x1388
  23637. 800a4c6: 4293 cmp r3, r2
  23638. 800a4c8: d901 bls.n 800a4ce <HAL_RCC_OscConfig+0x606>
  23639. {
  23640. return HAL_TIMEOUT;
  23641. 800a4ca: 2303 movs r3, #3
  23642. 800a4cc: e14e b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23643. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  23644. 800a4ce: 4b59 ldr r3, [pc, #356] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23645. 800a4d0: 6f1b ldr r3, [r3, #112] @ 0x70
  23646. 800a4d2: f003 0302 and.w r3, r3, #2
  23647. 800a4d6: 2b00 cmp r3, #0
  23648. 800a4d8: d0ee beq.n 800a4b8 <HAL_RCC_OscConfig+0x5f0>
  23649. 800a4da: e014 b.n 800a506 <HAL_RCC_OscConfig+0x63e>
  23650. }
  23651. }
  23652. else
  23653. {
  23654. /* Get Start Tick*/
  23655. tickstart = HAL_GetTick();
  23656. 800a4dc: f7fa feb0 bl 8005240 <HAL_GetTick>
  23657. 800a4e0: 6278 str r0, [r7, #36] @ 0x24
  23658. /* Wait till LSE is disabled */
  23659. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  23660. 800a4e2: e00a b.n 800a4fa <HAL_RCC_OscConfig+0x632>
  23661. {
  23662. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  23663. 800a4e4: f7fa feac bl 8005240 <HAL_GetTick>
  23664. 800a4e8: 4602 mov r2, r0
  23665. 800a4ea: 6a7b ldr r3, [r7, #36] @ 0x24
  23666. 800a4ec: 1ad3 subs r3, r2, r3
  23667. 800a4ee: f241 3288 movw r2, #5000 @ 0x1388
  23668. 800a4f2: 4293 cmp r3, r2
  23669. 800a4f4: d901 bls.n 800a4fa <HAL_RCC_OscConfig+0x632>
  23670. {
  23671. return HAL_TIMEOUT;
  23672. 800a4f6: 2303 movs r3, #3
  23673. 800a4f8: e138 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23674. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  23675. 800a4fa: 4b4e ldr r3, [pc, #312] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23676. 800a4fc: 6f1b ldr r3, [r3, #112] @ 0x70
  23677. 800a4fe: f003 0302 and.w r3, r3, #2
  23678. 800a502: 2b00 cmp r3, #0
  23679. 800a504: d1ee bne.n 800a4e4 <HAL_RCC_OscConfig+0x61c>
  23680. }
  23681. }
  23682. /*-------------------------------- PLL Configuration -----------------------*/
  23683. /* Check the parameters */
  23684. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  23685. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  23686. 800a506: 687b ldr r3, [r7, #4]
  23687. 800a508: 6a5b ldr r3, [r3, #36] @ 0x24
  23688. 800a50a: 2b00 cmp r3, #0
  23689. 800a50c: f000 812d beq.w 800a76a <HAL_RCC_OscConfig+0x8a2>
  23690. {
  23691. /* Check if the PLL is used as system clock or not */
  23692. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  23693. 800a510: 4b48 ldr r3, [pc, #288] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23694. 800a512: 691b ldr r3, [r3, #16]
  23695. 800a514: f003 0338 and.w r3, r3, #56 @ 0x38
  23696. 800a518: 2b18 cmp r3, #24
  23697. 800a51a: f000 80bd beq.w 800a698 <HAL_RCC_OscConfig+0x7d0>
  23698. {
  23699. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  23700. 800a51e: 687b ldr r3, [r7, #4]
  23701. 800a520: 6a5b ldr r3, [r3, #36] @ 0x24
  23702. 800a522: 2b02 cmp r3, #2
  23703. 800a524: f040 809e bne.w 800a664 <HAL_RCC_OscConfig+0x79c>
  23704. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  23705. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  23706. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  23707. /* Disable the main PLL. */
  23708. __HAL_RCC_PLL_DISABLE();
  23709. 800a528: 4b42 ldr r3, [pc, #264] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23710. 800a52a: 681b ldr r3, [r3, #0]
  23711. 800a52c: 4a41 ldr r2, [pc, #260] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23712. 800a52e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  23713. 800a532: 6013 str r3, [r2, #0]
  23714. /* Get Start Tick*/
  23715. tickstart = HAL_GetTick();
  23716. 800a534: f7fa fe84 bl 8005240 <HAL_GetTick>
  23717. 800a538: 6278 str r0, [r7, #36] @ 0x24
  23718. /* Wait till PLL is disabled */
  23719. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23720. 800a53a: e008 b.n 800a54e <HAL_RCC_OscConfig+0x686>
  23721. {
  23722. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  23723. 800a53c: f7fa fe80 bl 8005240 <HAL_GetTick>
  23724. 800a540: 4602 mov r2, r0
  23725. 800a542: 6a7b ldr r3, [r7, #36] @ 0x24
  23726. 800a544: 1ad3 subs r3, r2, r3
  23727. 800a546: 2b02 cmp r3, #2
  23728. 800a548: d901 bls.n 800a54e <HAL_RCC_OscConfig+0x686>
  23729. {
  23730. return HAL_TIMEOUT;
  23731. 800a54a: 2303 movs r3, #3
  23732. 800a54c: e10e b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23733. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23734. 800a54e: 4b39 ldr r3, [pc, #228] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23735. 800a550: 681b ldr r3, [r3, #0]
  23736. 800a552: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  23737. 800a556: 2b00 cmp r3, #0
  23738. 800a558: d1f0 bne.n 800a53c <HAL_RCC_OscConfig+0x674>
  23739. }
  23740. }
  23741. /* Configure the main PLL clock source, multiplication and division factors. */
  23742. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  23743. 800a55a: 4b36 ldr r3, [pc, #216] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23744. 800a55c: 6a9a ldr r2, [r3, #40] @ 0x28
  23745. 800a55e: 4b37 ldr r3, [pc, #220] @ (800a63c <HAL_RCC_OscConfig+0x774>)
  23746. 800a560: 4013 ands r3, r2
  23747. 800a562: 687a ldr r2, [r7, #4]
  23748. 800a564: 6a91 ldr r1, [r2, #40] @ 0x28
  23749. 800a566: 687a ldr r2, [r7, #4]
  23750. 800a568: 6ad2 ldr r2, [r2, #44] @ 0x2c
  23751. 800a56a: 0112 lsls r2, r2, #4
  23752. 800a56c: 430a orrs r2, r1
  23753. 800a56e: 4931 ldr r1, [pc, #196] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23754. 800a570: 4313 orrs r3, r2
  23755. 800a572: 628b str r3, [r1, #40] @ 0x28
  23756. 800a574: 687b ldr r3, [r7, #4]
  23757. 800a576: 6b1b ldr r3, [r3, #48] @ 0x30
  23758. 800a578: 3b01 subs r3, #1
  23759. 800a57a: f3c3 0208 ubfx r2, r3, #0, #9
  23760. 800a57e: 687b ldr r3, [r7, #4]
  23761. 800a580: 6b5b ldr r3, [r3, #52] @ 0x34
  23762. 800a582: 3b01 subs r3, #1
  23763. 800a584: 025b lsls r3, r3, #9
  23764. 800a586: b29b uxth r3, r3
  23765. 800a588: 431a orrs r2, r3
  23766. 800a58a: 687b ldr r3, [r7, #4]
  23767. 800a58c: 6b9b ldr r3, [r3, #56] @ 0x38
  23768. 800a58e: 3b01 subs r3, #1
  23769. 800a590: 041b lsls r3, r3, #16
  23770. 800a592: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  23771. 800a596: 431a orrs r2, r3
  23772. 800a598: 687b ldr r3, [r7, #4]
  23773. 800a59a: 6bdb ldr r3, [r3, #60] @ 0x3c
  23774. 800a59c: 3b01 subs r3, #1
  23775. 800a59e: 061b lsls r3, r3, #24
  23776. 800a5a0: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  23777. 800a5a4: 4923 ldr r1, [pc, #140] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23778. 800a5a6: 4313 orrs r3, r2
  23779. 800a5a8: 630b str r3, [r1, #48] @ 0x30
  23780. RCC_OscInitStruct->PLL.PLLP,
  23781. RCC_OscInitStruct->PLL.PLLQ,
  23782. RCC_OscInitStruct->PLL.PLLR);
  23783. /* Disable PLLFRACN . */
  23784. __HAL_RCC_PLLFRACN_DISABLE();
  23785. 800a5aa: 4b22 ldr r3, [pc, #136] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23786. 800a5ac: 6adb ldr r3, [r3, #44] @ 0x2c
  23787. 800a5ae: 4a21 ldr r2, [pc, #132] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23788. 800a5b0: f023 0301 bic.w r3, r3, #1
  23789. 800a5b4: 62d3 str r3, [r2, #44] @ 0x2c
  23790. /* Configure PLL PLL1FRACN */
  23791. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  23792. 800a5b6: 4b1f ldr r3, [pc, #124] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23793. 800a5b8: 6b5a ldr r2, [r3, #52] @ 0x34
  23794. 800a5ba: 4b21 ldr r3, [pc, #132] @ (800a640 <HAL_RCC_OscConfig+0x778>)
  23795. 800a5bc: 4013 ands r3, r2
  23796. 800a5be: 687a ldr r2, [r7, #4]
  23797. 800a5c0: 6c92 ldr r2, [r2, #72] @ 0x48
  23798. 800a5c2: 00d2 lsls r2, r2, #3
  23799. 800a5c4: 491b ldr r1, [pc, #108] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23800. 800a5c6: 4313 orrs r3, r2
  23801. 800a5c8: 634b str r3, [r1, #52] @ 0x34
  23802. /* Select PLL1 input reference frequency range: VCI */
  23803. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  23804. 800a5ca: 4b1a ldr r3, [pc, #104] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23805. 800a5cc: 6adb ldr r3, [r3, #44] @ 0x2c
  23806. 800a5ce: f023 020c bic.w r2, r3, #12
  23807. 800a5d2: 687b ldr r3, [r7, #4]
  23808. 800a5d4: 6c1b ldr r3, [r3, #64] @ 0x40
  23809. 800a5d6: 4917 ldr r1, [pc, #92] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23810. 800a5d8: 4313 orrs r3, r2
  23811. 800a5da: 62cb str r3, [r1, #44] @ 0x2c
  23812. /* Select PLL1 output frequency range : VCO */
  23813. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  23814. 800a5dc: 4b15 ldr r3, [pc, #84] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23815. 800a5de: 6adb ldr r3, [r3, #44] @ 0x2c
  23816. 800a5e0: f023 0202 bic.w r2, r3, #2
  23817. 800a5e4: 687b ldr r3, [r7, #4]
  23818. 800a5e6: 6c5b ldr r3, [r3, #68] @ 0x44
  23819. 800a5e8: 4912 ldr r1, [pc, #72] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23820. 800a5ea: 4313 orrs r3, r2
  23821. 800a5ec: 62cb str r3, [r1, #44] @ 0x2c
  23822. /* Enable PLL System Clock output. */
  23823. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  23824. 800a5ee: 4b11 ldr r3, [pc, #68] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23825. 800a5f0: 6adb ldr r3, [r3, #44] @ 0x2c
  23826. 800a5f2: 4a10 ldr r2, [pc, #64] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23827. 800a5f4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  23828. 800a5f8: 62d3 str r3, [r2, #44] @ 0x2c
  23829. /* Enable PLL1Q Clock output. */
  23830. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  23831. 800a5fa: 4b0e ldr r3, [pc, #56] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23832. 800a5fc: 6adb ldr r3, [r3, #44] @ 0x2c
  23833. 800a5fe: 4a0d ldr r2, [pc, #52] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23834. 800a600: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  23835. 800a604: 62d3 str r3, [r2, #44] @ 0x2c
  23836. /* Enable PLL1R Clock output. */
  23837. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  23838. 800a606: 4b0b ldr r3, [pc, #44] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23839. 800a608: 6adb ldr r3, [r3, #44] @ 0x2c
  23840. 800a60a: 4a0a ldr r2, [pc, #40] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23841. 800a60c: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  23842. 800a610: 62d3 str r3, [r2, #44] @ 0x2c
  23843. /* Enable PLL1FRACN . */
  23844. __HAL_RCC_PLLFRACN_ENABLE();
  23845. 800a612: 4b08 ldr r3, [pc, #32] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23846. 800a614: 6adb ldr r3, [r3, #44] @ 0x2c
  23847. 800a616: 4a07 ldr r2, [pc, #28] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23848. 800a618: f043 0301 orr.w r3, r3, #1
  23849. 800a61c: 62d3 str r3, [r2, #44] @ 0x2c
  23850. /* Enable the main PLL. */
  23851. __HAL_RCC_PLL_ENABLE();
  23852. 800a61e: 4b05 ldr r3, [pc, #20] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23853. 800a620: 681b ldr r3, [r3, #0]
  23854. 800a622: 4a04 ldr r2, [pc, #16] @ (800a634 <HAL_RCC_OscConfig+0x76c>)
  23855. 800a624: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  23856. 800a628: 6013 str r3, [r2, #0]
  23857. /* Get Start Tick*/
  23858. tickstart = HAL_GetTick();
  23859. 800a62a: f7fa fe09 bl 8005240 <HAL_GetTick>
  23860. 800a62e: 6278 str r0, [r7, #36] @ 0x24
  23861. /* Wait till PLL is ready */
  23862. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  23863. 800a630: e011 b.n 800a656 <HAL_RCC_OscConfig+0x78e>
  23864. 800a632: bf00 nop
  23865. 800a634: 58024400 .word 0x58024400
  23866. 800a638: 58024800 .word 0x58024800
  23867. 800a63c: fffffc0c .word 0xfffffc0c
  23868. 800a640: ffff0007 .word 0xffff0007
  23869. {
  23870. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  23871. 800a644: f7fa fdfc bl 8005240 <HAL_GetTick>
  23872. 800a648: 4602 mov r2, r0
  23873. 800a64a: 6a7b ldr r3, [r7, #36] @ 0x24
  23874. 800a64c: 1ad3 subs r3, r2, r3
  23875. 800a64e: 2b02 cmp r3, #2
  23876. 800a650: d901 bls.n 800a656 <HAL_RCC_OscConfig+0x78e>
  23877. {
  23878. return HAL_TIMEOUT;
  23879. 800a652: 2303 movs r3, #3
  23880. 800a654: e08a b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23881. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  23882. 800a656: 4b47 ldr r3, [pc, #284] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  23883. 800a658: 681b ldr r3, [r3, #0]
  23884. 800a65a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  23885. 800a65e: 2b00 cmp r3, #0
  23886. 800a660: d0f0 beq.n 800a644 <HAL_RCC_OscConfig+0x77c>
  23887. 800a662: e082 b.n 800a76a <HAL_RCC_OscConfig+0x8a2>
  23888. }
  23889. }
  23890. else
  23891. {
  23892. /* Disable the main PLL. */
  23893. __HAL_RCC_PLL_DISABLE();
  23894. 800a664: 4b43 ldr r3, [pc, #268] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  23895. 800a666: 681b ldr r3, [r3, #0]
  23896. 800a668: 4a42 ldr r2, [pc, #264] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  23897. 800a66a: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  23898. 800a66e: 6013 str r3, [r2, #0]
  23899. /* Get Start Tick*/
  23900. tickstart = HAL_GetTick();
  23901. 800a670: f7fa fde6 bl 8005240 <HAL_GetTick>
  23902. 800a674: 6278 str r0, [r7, #36] @ 0x24
  23903. /* Wait till PLL is disabled */
  23904. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23905. 800a676: e008 b.n 800a68a <HAL_RCC_OscConfig+0x7c2>
  23906. {
  23907. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  23908. 800a678: f7fa fde2 bl 8005240 <HAL_GetTick>
  23909. 800a67c: 4602 mov r2, r0
  23910. 800a67e: 6a7b ldr r3, [r7, #36] @ 0x24
  23911. 800a680: 1ad3 subs r3, r2, r3
  23912. 800a682: 2b02 cmp r3, #2
  23913. 800a684: d901 bls.n 800a68a <HAL_RCC_OscConfig+0x7c2>
  23914. {
  23915. return HAL_TIMEOUT;
  23916. 800a686: 2303 movs r3, #3
  23917. 800a688: e070 b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  23918. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  23919. 800a68a: 4b3a ldr r3, [pc, #232] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  23920. 800a68c: 681b ldr r3, [r3, #0]
  23921. 800a68e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  23922. 800a692: 2b00 cmp r3, #0
  23923. 800a694: d1f0 bne.n 800a678 <HAL_RCC_OscConfig+0x7b0>
  23924. 800a696: e068 b.n 800a76a <HAL_RCC_OscConfig+0x8a2>
  23925. }
  23926. }
  23927. else
  23928. {
  23929. /* Do not return HAL_ERROR if request repeats the current configuration */
  23930. temp1_pllckcfg = RCC->PLLCKSELR;
  23931. 800a698: 4b36 ldr r3, [pc, #216] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  23932. 800a69a: 6a9b ldr r3, [r3, #40] @ 0x28
  23933. 800a69c: 613b str r3, [r7, #16]
  23934. temp2_pllckcfg = RCC->PLL1DIVR;
  23935. 800a69e: 4b35 ldr r3, [pc, #212] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  23936. 800a6a0: 6b1b ldr r3, [r3, #48] @ 0x30
  23937. 800a6a2: 60fb str r3, [r7, #12]
  23938. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  23939. 800a6a4: 687b ldr r3, [r7, #4]
  23940. 800a6a6: 6a5b ldr r3, [r3, #36] @ 0x24
  23941. 800a6a8: 2b01 cmp r3, #1
  23942. 800a6aa: d031 beq.n 800a710 <HAL_RCC_OscConfig+0x848>
  23943. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  23944. 800a6ac: 693b ldr r3, [r7, #16]
  23945. 800a6ae: f003 0203 and.w r2, r3, #3
  23946. 800a6b2: 687b ldr r3, [r7, #4]
  23947. 800a6b4: 6a9b ldr r3, [r3, #40] @ 0x28
  23948. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  23949. 800a6b6: 429a cmp r2, r3
  23950. 800a6b8: d12a bne.n 800a710 <HAL_RCC_OscConfig+0x848>
  23951. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  23952. 800a6ba: 693b ldr r3, [r7, #16]
  23953. 800a6bc: 091b lsrs r3, r3, #4
  23954. 800a6be: f003 023f and.w r2, r3, #63 @ 0x3f
  23955. 800a6c2: 687b ldr r3, [r7, #4]
  23956. 800a6c4: 6adb ldr r3, [r3, #44] @ 0x2c
  23957. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  23958. 800a6c6: 429a cmp r2, r3
  23959. 800a6c8: d122 bne.n 800a710 <HAL_RCC_OscConfig+0x848>
  23960. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  23961. 800a6ca: 68fb ldr r3, [r7, #12]
  23962. 800a6cc: f3c3 0208 ubfx r2, r3, #0, #9
  23963. 800a6d0: 687b ldr r3, [r7, #4]
  23964. 800a6d2: 6b1b ldr r3, [r3, #48] @ 0x30
  23965. 800a6d4: 3b01 subs r3, #1
  23966. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  23967. 800a6d6: 429a cmp r2, r3
  23968. 800a6d8: d11a bne.n 800a710 <HAL_RCC_OscConfig+0x848>
  23969. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  23970. 800a6da: 68fb ldr r3, [r7, #12]
  23971. 800a6dc: 0a5b lsrs r3, r3, #9
  23972. 800a6de: f003 027f and.w r2, r3, #127 @ 0x7f
  23973. 800a6e2: 687b ldr r3, [r7, #4]
  23974. 800a6e4: 6b5b ldr r3, [r3, #52] @ 0x34
  23975. 800a6e6: 3b01 subs r3, #1
  23976. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  23977. 800a6e8: 429a cmp r2, r3
  23978. 800a6ea: d111 bne.n 800a710 <HAL_RCC_OscConfig+0x848>
  23979. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  23980. 800a6ec: 68fb ldr r3, [r7, #12]
  23981. 800a6ee: 0c1b lsrs r3, r3, #16
  23982. 800a6f0: f003 027f and.w r2, r3, #127 @ 0x7f
  23983. 800a6f4: 687b ldr r3, [r7, #4]
  23984. 800a6f6: 6b9b ldr r3, [r3, #56] @ 0x38
  23985. 800a6f8: 3b01 subs r3, #1
  23986. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  23987. 800a6fa: 429a cmp r2, r3
  23988. 800a6fc: d108 bne.n 800a710 <HAL_RCC_OscConfig+0x848>
  23989. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  23990. 800a6fe: 68fb ldr r3, [r7, #12]
  23991. 800a700: 0e1b lsrs r3, r3, #24
  23992. 800a702: f003 027f and.w r2, r3, #127 @ 0x7f
  23993. 800a706: 687b ldr r3, [r7, #4]
  23994. 800a708: 6bdb ldr r3, [r3, #60] @ 0x3c
  23995. 800a70a: 3b01 subs r3, #1
  23996. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  23997. 800a70c: 429a cmp r2, r3
  23998. 800a70e: d001 beq.n 800a714 <HAL_RCC_OscConfig+0x84c>
  23999. {
  24000. return HAL_ERROR;
  24001. 800a710: 2301 movs r3, #1
  24002. 800a712: e02b b.n 800a76c <HAL_RCC_OscConfig+0x8a4>
  24003. }
  24004. else
  24005. {
  24006. /* Check if only fractional part needs to be updated */
  24007. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  24008. 800a714: 4b17 ldr r3, [pc, #92] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  24009. 800a716: 6b5b ldr r3, [r3, #52] @ 0x34
  24010. 800a718: 08db lsrs r3, r3, #3
  24011. 800a71a: f3c3 030c ubfx r3, r3, #0, #13
  24012. 800a71e: 613b str r3, [r7, #16]
  24013. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  24014. 800a720: 687b ldr r3, [r7, #4]
  24015. 800a722: 6c9b ldr r3, [r3, #72] @ 0x48
  24016. 800a724: 693a ldr r2, [r7, #16]
  24017. 800a726: 429a cmp r2, r3
  24018. 800a728: d01f beq.n 800a76a <HAL_RCC_OscConfig+0x8a2>
  24019. {
  24020. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  24021. /* Disable PLL1FRACEN */
  24022. __HAL_RCC_PLLFRACN_DISABLE();
  24023. 800a72a: 4b12 ldr r3, [pc, #72] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  24024. 800a72c: 6adb ldr r3, [r3, #44] @ 0x2c
  24025. 800a72e: 4a11 ldr r2, [pc, #68] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  24026. 800a730: f023 0301 bic.w r3, r3, #1
  24027. 800a734: 62d3 str r3, [r2, #44] @ 0x2c
  24028. /* Get Start Tick*/
  24029. tickstart = HAL_GetTick();
  24030. 800a736: f7fa fd83 bl 8005240 <HAL_GetTick>
  24031. 800a73a: 6278 str r0, [r7, #36] @ 0x24
  24032. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  24033. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  24034. 800a73c: bf00 nop
  24035. 800a73e: f7fa fd7f bl 8005240 <HAL_GetTick>
  24036. 800a742: 4602 mov r2, r0
  24037. 800a744: 6a7b ldr r3, [r7, #36] @ 0x24
  24038. 800a746: 4293 cmp r3, r2
  24039. 800a748: d0f9 beq.n 800a73e <HAL_RCC_OscConfig+0x876>
  24040. {
  24041. }
  24042. /* Configure PLL1 PLL1FRACN */
  24043. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  24044. 800a74a: 4b0a ldr r3, [pc, #40] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  24045. 800a74c: 6b5a ldr r2, [r3, #52] @ 0x34
  24046. 800a74e: 4b0a ldr r3, [pc, #40] @ (800a778 <HAL_RCC_OscConfig+0x8b0>)
  24047. 800a750: 4013 ands r3, r2
  24048. 800a752: 687a ldr r2, [r7, #4]
  24049. 800a754: 6c92 ldr r2, [r2, #72] @ 0x48
  24050. 800a756: 00d2 lsls r2, r2, #3
  24051. 800a758: 4906 ldr r1, [pc, #24] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  24052. 800a75a: 4313 orrs r3, r2
  24053. 800a75c: 634b str r3, [r1, #52] @ 0x34
  24054. /* Enable PLL1FRACEN to latch new value. */
  24055. __HAL_RCC_PLLFRACN_ENABLE();
  24056. 800a75e: 4b05 ldr r3, [pc, #20] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  24057. 800a760: 6adb ldr r3, [r3, #44] @ 0x2c
  24058. 800a762: 4a04 ldr r2, [pc, #16] @ (800a774 <HAL_RCC_OscConfig+0x8ac>)
  24059. 800a764: f043 0301 orr.w r3, r3, #1
  24060. 800a768: 62d3 str r3, [r2, #44] @ 0x2c
  24061. }
  24062. }
  24063. }
  24064. }
  24065. return HAL_OK;
  24066. 800a76a: 2300 movs r3, #0
  24067. }
  24068. 800a76c: 4618 mov r0, r3
  24069. 800a76e: 3730 adds r7, #48 @ 0x30
  24070. 800a770: 46bd mov sp, r7
  24071. 800a772: bd80 pop {r7, pc}
  24072. 800a774: 58024400 .word 0x58024400
  24073. 800a778: ffff0007 .word 0xffff0007
  24074. 0800a77c <HAL_RCC_ClockConfig>:
  24075. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  24076. * (for more details refer to section above "Initialization/de-initialization functions")
  24077. * @retval None
  24078. */
  24079. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  24080. {
  24081. 800a77c: b580 push {r7, lr}
  24082. 800a77e: b086 sub sp, #24
  24083. 800a780: af00 add r7, sp, #0
  24084. 800a782: 6078 str r0, [r7, #4]
  24085. 800a784: 6039 str r1, [r7, #0]
  24086. HAL_StatusTypeDef halstatus;
  24087. uint32_t tickstart;
  24088. uint32_t common_system_clock;
  24089. /* Check Null pointer */
  24090. if (RCC_ClkInitStruct == NULL)
  24091. 800a786: 687b ldr r3, [r7, #4]
  24092. 800a788: 2b00 cmp r3, #0
  24093. 800a78a: d101 bne.n 800a790 <HAL_RCC_ClockConfig+0x14>
  24094. {
  24095. return HAL_ERROR;
  24096. 800a78c: 2301 movs r3, #1
  24097. 800a78e: e19c b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24098. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  24099. must be correctly programmed according to the frequency of the CPU clock
  24100. (HCLK) and the supply voltage of the device. */
  24101. /* Increasing the CPU frequency */
  24102. if (FLatency > __HAL_FLASH_GET_LATENCY())
  24103. 800a790: 4b8a ldr r3, [pc, #552] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24104. 800a792: 681b ldr r3, [r3, #0]
  24105. 800a794: f003 030f and.w r3, r3, #15
  24106. 800a798: 683a ldr r2, [r7, #0]
  24107. 800a79a: 429a cmp r2, r3
  24108. 800a79c: d910 bls.n 800a7c0 <HAL_RCC_ClockConfig+0x44>
  24109. {
  24110. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  24111. __HAL_FLASH_SET_LATENCY(FLatency);
  24112. 800a79e: 4b87 ldr r3, [pc, #540] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24113. 800a7a0: 681b ldr r3, [r3, #0]
  24114. 800a7a2: f023 020f bic.w r2, r3, #15
  24115. 800a7a6: 4985 ldr r1, [pc, #532] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24116. 800a7a8: 683b ldr r3, [r7, #0]
  24117. 800a7aa: 4313 orrs r3, r2
  24118. 800a7ac: 600b str r3, [r1, #0]
  24119. /* Check that the new number of wait states is taken into account to access the Flash
  24120. memory by reading the FLASH_ACR register */
  24121. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  24122. 800a7ae: 4b83 ldr r3, [pc, #524] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24123. 800a7b0: 681b ldr r3, [r3, #0]
  24124. 800a7b2: f003 030f and.w r3, r3, #15
  24125. 800a7b6: 683a ldr r2, [r7, #0]
  24126. 800a7b8: 429a cmp r2, r3
  24127. 800a7ba: d001 beq.n 800a7c0 <HAL_RCC_ClockConfig+0x44>
  24128. {
  24129. return HAL_ERROR;
  24130. 800a7bc: 2301 movs r3, #1
  24131. 800a7be: e184 b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24132. }
  24133. /* Increasing the BUS frequency divider */
  24134. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  24135. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  24136. 800a7c0: 687b ldr r3, [r7, #4]
  24137. 800a7c2: 681b ldr r3, [r3, #0]
  24138. 800a7c4: f003 0304 and.w r3, r3, #4
  24139. 800a7c8: 2b00 cmp r3, #0
  24140. 800a7ca: d010 beq.n 800a7ee <HAL_RCC_ClockConfig+0x72>
  24141. {
  24142. #if defined (RCC_D1CFGR_D1PPRE)
  24143. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  24144. 800a7cc: 687b ldr r3, [r7, #4]
  24145. 800a7ce: 691a ldr r2, [r3, #16]
  24146. 800a7d0: 4b7b ldr r3, [pc, #492] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24147. 800a7d2: 699b ldr r3, [r3, #24]
  24148. 800a7d4: f003 0370 and.w r3, r3, #112 @ 0x70
  24149. 800a7d8: 429a cmp r2, r3
  24150. 800a7da: d908 bls.n 800a7ee <HAL_RCC_ClockConfig+0x72>
  24151. {
  24152. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  24153. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  24154. 800a7dc: 4b78 ldr r3, [pc, #480] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24155. 800a7de: 699b ldr r3, [r3, #24]
  24156. 800a7e0: f023 0270 bic.w r2, r3, #112 @ 0x70
  24157. 800a7e4: 687b ldr r3, [r7, #4]
  24158. 800a7e6: 691b ldr r3, [r3, #16]
  24159. 800a7e8: 4975 ldr r1, [pc, #468] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24160. 800a7ea: 4313 orrs r3, r2
  24161. 800a7ec: 618b str r3, [r1, #24]
  24162. }
  24163. #endif
  24164. }
  24165. /*-------------------------- PCLK1 Configuration ---------------------------*/
  24166. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  24167. 800a7ee: 687b ldr r3, [r7, #4]
  24168. 800a7f0: 681b ldr r3, [r3, #0]
  24169. 800a7f2: f003 0308 and.w r3, r3, #8
  24170. 800a7f6: 2b00 cmp r3, #0
  24171. 800a7f8: d010 beq.n 800a81c <HAL_RCC_ClockConfig+0xa0>
  24172. {
  24173. #if defined (RCC_D2CFGR_D2PPRE1)
  24174. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  24175. 800a7fa: 687b ldr r3, [r7, #4]
  24176. 800a7fc: 695a ldr r2, [r3, #20]
  24177. 800a7fe: 4b70 ldr r3, [pc, #448] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24178. 800a800: 69db ldr r3, [r3, #28]
  24179. 800a802: f003 0370 and.w r3, r3, #112 @ 0x70
  24180. 800a806: 429a cmp r2, r3
  24181. 800a808: d908 bls.n 800a81c <HAL_RCC_ClockConfig+0xa0>
  24182. {
  24183. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  24184. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  24185. 800a80a: 4b6d ldr r3, [pc, #436] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24186. 800a80c: 69db ldr r3, [r3, #28]
  24187. 800a80e: f023 0270 bic.w r2, r3, #112 @ 0x70
  24188. 800a812: 687b ldr r3, [r7, #4]
  24189. 800a814: 695b ldr r3, [r3, #20]
  24190. 800a816: 496a ldr r1, [pc, #424] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24191. 800a818: 4313 orrs r3, r2
  24192. 800a81a: 61cb str r3, [r1, #28]
  24193. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  24194. }
  24195. #endif
  24196. }
  24197. /*-------------------------- PCLK2 Configuration ---------------------------*/
  24198. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  24199. 800a81c: 687b ldr r3, [r7, #4]
  24200. 800a81e: 681b ldr r3, [r3, #0]
  24201. 800a820: f003 0310 and.w r3, r3, #16
  24202. 800a824: 2b00 cmp r3, #0
  24203. 800a826: d010 beq.n 800a84a <HAL_RCC_ClockConfig+0xce>
  24204. {
  24205. #if defined(RCC_D2CFGR_D2PPRE2)
  24206. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  24207. 800a828: 687b ldr r3, [r7, #4]
  24208. 800a82a: 699a ldr r2, [r3, #24]
  24209. 800a82c: 4b64 ldr r3, [pc, #400] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24210. 800a82e: 69db ldr r3, [r3, #28]
  24211. 800a830: f403 63e0 and.w r3, r3, #1792 @ 0x700
  24212. 800a834: 429a cmp r2, r3
  24213. 800a836: d908 bls.n 800a84a <HAL_RCC_ClockConfig+0xce>
  24214. {
  24215. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  24216. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  24217. 800a838: 4b61 ldr r3, [pc, #388] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24218. 800a83a: 69db ldr r3, [r3, #28]
  24219. 800a83c: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  24220. 800a840: 687b ldr r3, [r7, #4]
  24221. 800a842: 699b ldr r3, [r3, #24]
  24222. 800a844: 495e ldr r1, [pc, #376] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24223. 800a846: 4313 orrs r3, r2
  24224. 800a848: 61cb str r3, [r1, #28]
  24225. }
  24226. #endif
  24227. }
  24228. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  24229. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  24230. 800a84a: 687b ldr r3, [r7, #4]
  24231. 800a84c: 681b ldr r3, [r3, #0]
  24232. 800a84e: f003 0320 and.w r3, r3, #32
  24233. 800a852: 2b00 cmp r3, #0
  24234. 800a854: d010 beq.n 800a878 <HAL_RCC_ClockConfig+0xfc>
  24235. {
  24236. #if defined(RCC_D3CFGR_D3PPRE)
  24237. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  24238. 800a856: 687b ldr r3, [r7, #4]
  24239. 800a858: 69da ldr r2, [r3, #28]
  24240. 800a85a: 4b59 ldr r3, [pc, #356] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24241. 800a85c: 6a1b ldr r3, [r3, #32]
  24242. 800a85e: f003 0370 and.w r3, r3, #112 @ 0x70
  24243. 800a862: 429a cmp r2, r3
  24244. 800a864: d908 bls.n 800a878 <HAL_RCC_ClockConfig+0xfc>
  24245. {
  24246. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  24247. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  24248. 800a866: 4b56 ldr r3, [pc, #344] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24249. 800a868: 6a1b ldr r3, [r3, #32]
  24250. 800a86a: f023 0270 bic.w r2, r3, #112 @ 0x70
  24251. 800a86e: 687b ldr r3, [r7, #4]
  24252. 800a870: 69db ldr r3, [r3, #28]
  24253. 800a872: 4953 ldr r1, [pc, #332] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24254. 800a874: 4313 orrs r3, r2
  24255. 800a876: 620b str r3, [r1, #32]
  24256. }
  24257. #endif
  24258. }
  24259. /*-------------------------- HCLK Configuration --------------------------*/
  24260. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  24261. 800a878: 687b ldr r3, [r7, #4]
  24262. 800a87a: 681b ldr r3, [r3, #0]
  24263. 800a87c: f003 0302 and.w r3, r3, #2
  24264. 800a880: 2b00 cmp r3, #0
  24265. 800a882: d010 beq.n 800a8a6 <HAL_RCC_ClockConfig+0x12a>
  24266. {
  24267. #if defined (RCC_D1CFGR_HPRE)
  24268. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  24269. 800a884: 687b ldr r3, [r7, #4]
  24270. 800a886: 68da ldr r2, [r3, #12]
  24271. 800a888: 4b4d ldr r3, [pc, #308] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24272. 800a88a: 699b ldr r3, [r3, #24]
  24273. 800a88c: f003 030f and.w r3, r3, #15
  24274. 800a890: 429a cmp r2, r3
  24275. 800a892: d908 bls.n 800a8a6 <HAL_RCC_ClockConfig+0x12a>
  24276. {
  24277. /* Set the new HCLK clock divider */
  24278. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  24279. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  24280. 800a894: 4b4a ldr r3, [pc, #296] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24281. 800a896: 699b ldr r3, [r3, #24]
  24282. 800a898: f023 020f bic.w r2, r3, #15
  24283. 800a89c: 687b ldr r3, [r7, #4]
  24284. 800a89e: 68db ldr r3, [r3, #12]
  24285. 800a8a0: 4947 ldr r1, [pc, #284] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24286. 800a8a2: 4313 orrs r3, r2
  24287. 800a8a4: 618b str r3, [r1, #24]
  24288. }
  24289. #endif
  24290. }
  24291. /*------------------------- SYSCLK Configuration -------------------------*/
  24292. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  24293. 800a8a6: 687b ldr r3, [r7, #4]
  24294. 800a8a8: 681b ldr r3, [r3, #0]
  24295. 800a8aa: f003 0301 and.w r3, r3, #1
  24296. 800a8ae: 2b00 cmp r3, #0
  24297. 800a8b0: d055 beq.n 800a95e <HAL_RCC_ClockConfig+0x1e2>
  24298. {
  24299. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  24300. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  24301. #if defined(RCC_D1CFGR_D1CPRE)
  24302. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  24303. 800a8b2: 4b43 ldr r3, [pc, #268] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24304. 800a8b4: 699b ldr r3, [r3, #24]
  24305. 800a8b6: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  24306. 800a8ba: 687b ldr r3, [r7, #4]
  24307. 800a8bc: 689b ldr r3, [r3, #8]
  24308. 800a8be: 4940 ldr r1, [pc, #256] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24309. 800a8c0: 4313 orrs r3, r2
  24310. 800a8c2: 618b str r3, [r1, #24]
  24311. #else
  24312. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  24313. #endif
  24314. /* HSE is selected as System Clock Source */
  24315. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  24316. 800a8c4: 687b ldr r3, [r7, #4]
  24317. 800a8c6: 685b ldr r3, [r3, #4]
  24318. 800a8c8: 2b02 cmp r3, #2
  24319. 800a8ca: d107 bne.n 800a8dc <HAL_RCC_ClockConfig+0x160>
  24320. {
  24321. /* Check the HSE ready flag */
  24322. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  24323. 800a8cc: 4b3c ldr r3, [pc, #240] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24324. 800a8ce: 681b ldr r3, [r3, #0]
  24325. 800a8d0: f403 3300 and.w r3, r3, #131072 @ 0x20000
  24326. 800a8d4: 2b00 cmp r3, #0
  24327. 800a8d6: d121 bne.n 800a91c <HAL_RCC_ClockConfig+0x1a0>
  24328. {
  24329. return HAL_ERROR;
  24330. 800a8d8: 2301 movs r3, #1
  24331. 800a8da: e0f6 b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24332. }
  24333. }
  24334. /* PLL is selected as System Clock Source */
  24335. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  24336. 800a8dc: 687b ldr r3, [r7, #4]
  24337. 800a8de: 685b ldr r3, [r3, #4]
  24338. 800a8e0: 2b03 cmp r3, #3
  24339. 800a8e2: d107 bne.n 800a8f4 <HAL_RCC_ClockConfig+0x178>
  24340. {
  24341. /* Check the PLL ready flag */
  24342. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  24343. 800a8e4: 4b36 ldr r3, [pc, #216] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24344. 800a8e6: 681b ldr r3, [r3, #0]
  24345. 800a8e8: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  24346. 800a8ec: 2b00 cmp r3, #0
  24347. 800a8ee: d115 bne.n 800a91c <HAL_RCC_ClockConfig+0x1a0>
  24348. {
  24349. return HAL_ERROR;
  24350. 800a8f0: 2301 movs r3, #1
  24351. 800a8f2: e0ea b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24352. }
  24353. }
  24354. /* CSI is selected as System Clock Source */
  24355. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  24356. 800a8f4: 687b ldr r3, [r7, #4]
  24357. 800a8f6: 685b ldr r3, [r3, #4]
  24358. 800a8f8: 2b01 cmp r3, #1
  24359. 800a8fa: d107 bne.n 800a90c <HAL_RCC_ClockConfig+0x190>
  24360. {
  24361. /* Check the PLL ready flag */
  24362. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  24363. 800a8fc: 4b30 ldr r3, [pc, #192] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24364. 800a8fe: 681b ldr r3, [r3, #0]
  24365. 800a900: f403 7380 and.w r3, r3, #256 @ 0x100
  24366. 800a904: 2b00 cmp r3, #0
  24367. 800a906: d109 bne.n 800a91c <HAL_RCC_ClockConfig+0x1a0>
  24368. {
  24369. return HAL_ERROR;
  24370. 800a908: 2301 movs r3, #1
  24371. 800a90a: e0de b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24372. }
  24373. /* HSI is selected as System Clock Source */
  24374. else
  24375. {
  24376. /* Check the HSI ready flag */
  24377. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  24378. 800a90c: 4b2c ldr r3, [pc, #176] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24379. 800a90e: 681b ldr r3, [r3, #0]
  24380. 800a910: f003 0304 and.w r3, r3, #4
  24381. 800a914: 2b00 cmp r3, #0
  24382. 800a916: d101 bne.n 800a91c <HAL_RCC_ClockConfig+0x1a0>
  24383. {
  24384. return HAL_ERROR;
  24385. 800a918: 2301 movs r3, #1
  24386. 800a91a: e0d6 b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24387. }
  24388. }
  24389. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  24390. 800a91c: 4b28 ldr r3, [pc, #160] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24391. 800a91e: 691b ldr r3, [r3, #16]
  24392. 800a920: f023 0207 bic.w r2, r3, #7
  24393. 800a924: 687b ldr r3, [r7, #4]
  24394. 800a926: 685b ldr r3, [r3, #4]
  24395. 800a928: 4925 ldr r1, [pc, #148] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24396. 800a92a: 4313 orrs r3, r2
  24397. 800a92c: 610b str r3, [r1, #16]
  24398. /* Get Start Tick*/
  24399. tickstart = HAL_GetTick();
  24400. 800a92e: f7fa fc87 bl 8005240 <HAL_GetTick>
  24401. 800a932: 6178 str r0, [r7, #20]
  24402. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  24403. 800a934: e00a b.n 800a94c <HAL_RCC_ClockConfig+0x1d0>
  24404. {
  24405. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  24406. 800a936: f7fa fc83 bl 8005240 <HAL_GetTick>
  24407. 800a93a: 4602 mov r2, r0
  24408. 800a93c: 697b ldr r3, [r7, #20]
  24409. 800a93e: 1ad3 subs r3, r2, r3
  24410. 800a940: f241 3288 movw r2, #5000 @ 0x1388
  24411. 800a944: 4293 cmp r3, r2
  24412. 800a946: d901 bls.n 800a94c <HAL_RCC_ClockConfig+0x1d0>
  24413. {
  24414. return HAL_TIMEOUT;
  24415. 800a948: 2303 movs r3, #3
  24416. 800a94a: e0be b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24417. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  24418. 800a94c: 4b1c ldr r3, [pc, #112] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24419. 800a94e: 691b ldr r3, [r3, #16]
  24420. 800a950: f003 0238 and.w r2, r3, #56 @ 0x38
  24421. 800a954: 687b ldr r3, [r7, #4]
  24422. 800a956: 685b ldr r3, [r3, #4]
  24423. 800a958: 00db lsls r3, r3, #3
  24424. 800a95a: 429a cmp r2, r3
  24425. 800a95c: d1eb bne.n 800a936 <HAL_RCC_ClockConfig+0x1ba>
  24426. }
  24427. /* Decreasing the BUS frequency divider */
  24428. /*-------------------------- HCLK Configuration --------------------------*/
  24429. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  24430. 800a95e: 687b ldr r3, [r7, #4]
  24431. 800a960: 681b ldr r3, [r3, #0]
  24432. 800a962: f003 0302 and.w r3, r3, #2
  24433. 800a966: 2b00 cmp r3, #0
  24434. 800a968: d010 beq.n 800a98c <HAL_RCC_ClockConfig+0x210>
  24435. {
  24436. #if defined(RCC_D1CFGR_HPRE)
  24437. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  24438. 800a96a: 687b ldr r3, [r7, #4]
  24439. 800a96c: 68da ldr r2, [r3, #12]
  24440. 800a96e: 4b14 ldr r3, [pc, #80] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24441. 800a970: 699b ldr r3, [r3, #24]
  24442. 800a972: f003 030f and.w r3, r3, #15
  24443. 800a976: 429a cmp r2, r3
  24444. 800a978: d208 bcs.n 800a98c <HAL_RCC_ClockConfig+0x210>
  24445. {
  24446. /* Set the new HCLK clock divider */
  24447. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  24448. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  24449. 800a97a: 4b11 ldr r3, [pc, #68] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24450. 800a97c: 699b ldr r3, [r3, #24]
  24451. 800a97e: f023 020f bic.w r2, r3, #15
  24452. 800a982: 687b ldr r3, [r7, #4]
  24453. 800a984: 68db ldr r3, [r3, #12]
  24454. 800a986: 490e ldr r1, [pc, #56] @ (800a9c0 <HAL_RCC_ClockConfig+0x244>)
  24455. 800a988: 4313 orrs r3, r2
  24456. 800a98a: 618b str r3, [r1, #24]
  24457. }
  24458. #endif
  24459. }
  24460. /* Decreasing the number of wait states because of lower CPU frequency */
  24461. if (FLatency < __HAL_FLASH_GET_LATENCY())
  24462. 800a98c: 4b0b ldr r3, [pc, #44] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24463. 800a98e: 681b ldr r3, [r3, #0]
  24464. 800a990: f003 030f and.w r3, r3, #15
  24465. 800a994: 683a ldr r2, [r7, #0]
  24466. 800a996: 429a cmp r2, r3
  24467. 800a998: d214 bcs.n 800a9c4 <HAL_RCC_ClockConfig+0x248>
  24468. {
  24469. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  24470. __HAL_FLASH_SET_LATENCY(FLatency);
  24471. 800a99a: 4b08 ldr r3, [pc, #32] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24472. 800a99c: 681b ldr r3, [r3, #0]
  24473. 800a99e: f023 020f bic.w r2, r3, #15
  24474. 800a9a2: 4906 ldr r1, [pc, #24] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24475. 800a9a4: 683b ldr r3, [r7, #0]
  24476. 800a9a6: 4313 orrs r3, r2
  24477. 800a9a8: 600b str r3, [r1, #0]
  24478. /* Check that the new number of wait states is taken into account to access the Flash
  24479. memory by reading the FLASH_ACR register */
  24480. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  24481. 800a9aa: 4b04 ldr r3, [pc, #16] @ (800a9bc <HAL_RCC_ClockConfig+0x240>)
  24482. 800a9ac: 681b ldr r3, [r3, #0]
  24483. 800a9ae: f003 030f and.w r3, r3, #15
  24484. 800a9b2: 683a ldr r2, [r7, #0]
  24485. 800a9b4: 429a cmp r2, r3
  24486. 800a9b6: d005 beq.n 800a9c4 <HAL_RCC_ClockConfig+0x248>
  24487. {
  24488. return HAL_ERROR;
  24489. 800a9b8: 2301 movs r3, #1
  24490. 800a9ba: e086 b.n 800aaca <HAL_RCC_ClockConfig+0x34e>
  24491. 800a9bc: 52002000 .word 0x52002000
  24492. 800a9c0: 58024400 .word 0x58024400
  24493. }
  24494. }
  24495. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  24496. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  24497. 800a9c4: 687b ldr r3, [r7, #4]
  24498. 800a9c6: 681b ldr r3, [r3, #0]
  24499. 800a9c8: f003 0304 and.w r3, r3, #4
  24500. 800a9cc: 2b00 cmp r3, #0
  24501. 800a9ce: d010 beq.n 800a9f2 <HAL_RCC_ClockConfig+0x276>
  24502. {
  24503. #if defined(RCC_D1CFGR_D1PPRE)
  24504. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  24505. 800a9d0: 687b ldr r3, [r7, #4]
  24506. 800a9d2: 691a ldr r2, [r3, #16]
  24507. 800a9d4: 4b3f ldr r3, [pc, #252] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24508. 800a9d6: 699b ldr r3, [r3, #24]
  24509. 800a9d8: f003 0370 and.w r3, r3, #112 @ 0x70
  24510. 800a9dc: 429a cmp r2, r3
  24511. 800a9de: d208 bcs.n 800a9f2 <HAL_RCC_ClockConfig+0x276>
  24512. {
  24513. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  24514. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  24515. 800a9e0: 4b3c ldr r3, [pc, #240] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24516. 800a9e2: 699b ldr r3, [r3, #24]
  24517. 800a9e4: f023 0270 bic.w r2, r3, #112 @ 0x70
  24518. 800a9e8: 687b ldr r3, [r7, #4]
  24519. 800a9ea: 691b ldr r3, [r3, #16]
  24520. 800a9ec: 4939 ldr r1, [pc, #228] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24521. 800a9ee: 4313 orrs r3, r2
  24522. 800a9f0: 618b str r3, [r1, #24]
  24523. }
  24524. #endif
  24525. }
  24526. /*-------------------------- PCLK1 Configuration ---------------------------*/
  24527. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  24528. 800a9f2: 687b ldr r3, [r7, #4]
  24529. 800a9f4: 681b ldr r3, [r3, #0]
  24530. 800a9f6: f003 0308 and.w r3, r3, #8
  24531. 800a9fa: 2b00 cmp r3, #0
  24532. 800a9fc: d010 beq.n 800aa20 <HAL_RCC_ClockConfig+0x2a4>
  24533. {
  24534. #if defined(RCC_D2CFGR_D2PPRE1)
  24535. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  24536. 800a9fe: 687b ldr r3, [r7, #4]
  24537. 800aa00: 695a ldr r2, [r3, #20]
  24538. 800aa02: 4b34 ldr r3, [pc, #208] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24539. 800aa04: 69db ldr r3, [r3, #28]
  24540. 800aa06: f003 0370 and.w r3, r3, #112 @ 0x70
  24541. 800aa0a: 429a cmp r2, r3
  24542. 800aa0c: d208 bcs.n 800aa20 <HAL_RCC_ClockConfig+0x2a4>
  24543. {
  24544. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  24545. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  24546. 800aa0e: 4b31 ldr r3, [pc, #196] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24547. 800aa10: 69db ldr r3, [r3, #28]
  24548. 800aa12: f023 0270 bic.w r2, r3, #112 @ 0x70
  24549. 800aa16: 687b ldr r3, [r7, #4]
  24550. 800aa18: 695b ldr r3, [r3, #20]
  24551. 800aa1a: 492e ldr r1, [pc, #184] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24552. 800aa1c: 4313 orrs r3, r2
  24553. 800aa1e: 61cb str r3, [r1, #28]
  24554. }
  24555. #endif
  24556. }
  24557. /*-------------------------- PCLK2 Configuration ---------------------------*/
  24558. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  24559. 800aa20: 687b ldr r3, [r7, #4]
  24560. 800aa22: 681b ldr r3, [r3, #0]
  24561. 800aa24: f003 0310 and.w r3, r3, #16
  24562. 800aa28: 2b00 cmp r3, #0
  24563. 800aa2a: d010 beq.n 800aa4e <HAL_RCC_ClockConfig+0x2d2>
  24564. {
  24565. #if defined (RCC_D2CFGR_D2PPRE2)
  24566. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  24567. 800aa2c: 687b ldr r3, [r7, #4]
  24568. 800aa2e: 699a ldr r2, [r3, #24]
  24569. 800aa30: 4b28 ldr r3, [pc, #160] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24570. 800aa32: 69db ldr r3, [r3, #28]
  24571. 800aa34: f403 63e0 and.w r3, r3, #1792 @ 0x700
  24572. 800aa38: 429a cmp r2, r3
  24573. 800aa3a: d208 bcs.n 800aa4e <HAL_RCC_ClockConfig+0x2d2>
  24574. {
  24575. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  24576. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  24577. 800aa3c: 4b25 ldr r3, [pc, #148] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24578. 800aa3e: 69db ldr r3, [r3, #28]
  24579. 800aa40: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  24580. 800aa44: 687b ldr r3, [r7, #4]
  24581. 800aa46: 699b ldr r3, [r3, #24]
  24582. 800aa48: 4922 ldr r1, [pc, #136] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24583. 800aa4a: 4313 orrs r3, r2
  24584. 800aa4c: 61cb str r3, [r1, #28]
  24585. }
  24586. #endif
  24587. }
  24588. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  24589. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  24590. 800aa4e: 687b ldr r3, [r7, #4]
  24591. 800aa50: 681b ldr r3, [r3, #0]
  24592. 800aa52: f003 0320 and.w r3, r3, #32
  24593. 800aa56: 2b00 cmp r3, #0
  24594. 800aa58: d010 beq.n 800aa7c <HAL_RCC_ClockConfig+0x300>
  24595. {
  24596. #if defined(RCC_D3CFGR_D3PPRE)
  24597. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  24598. 800aa5a: 687b ldr r3, [r7, #4]
  24599. 800aa5c: 69da ldr r2, [r3, #28]
  24600. 800aa5e: 4b1d ldr r3, [pc, #116] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24601. 800aa60: 6a1b ldr r3, [r3, #32]
  24602. 800aa62: f003 0370 and.w r3, r3, #112 @ 0x70
  24603. 800aa66: 429a cmp r2, r3
  24604. 800aa68: d208 bcs.n 800aa7c <HAL_RCC_ClockConfig+0x300>
  24605. {
  24606. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  24607. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  24608. 800aa6a: 4b1a ldr r3, [pc, #104] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24609. 800aa6c: 6a1b ldr r3, [r3, #32]
  24610. 800aa6e: f023 0270 bic.w r2, r3, #112 @ 0x70
  24611. 800aa72: 687b ldr r3, [r7, #4]
  24612. 800aa74: 69db ldr r3, [r3, #28]
  24613. 800aa76: 4917 ldr r1, [pc, #92] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24614. 800aa78: 4313 orrs r3, r2
  24615. 800aa7a: 620b str r3, [r1, #32]
  24616. #endif
  24617. }
  24618. /* Update the SystemCoreClock global variable */
  24619. #if defined(RCC_D1CFGR_D1CPRE)
  24620. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  24621. 800aa7c: f000 f834 bl 800aae8 <HAL_RCC_GetSysClockFreq>
  24622. 800aa80: 4602 mov r2, r0
  24623. 800aa82: 4b14 ldr r3, [pc, #80] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24624. 800aa84: 699b ldr r3, [r3, #24]
  24625. 800aa86: 0a1b lsrs r3, r3, #8
  24626. 800aa88: f003 030f and.w r3, r3, #15
  24627. 800aa8c: 4912 ldr r1, [pc, #72] @ (800aad8 <HAL_RCC_ClockConfig+0x35c>)
  24628. 800aa8e: 5ccb ldrb r3, [r1, r3]
  24629. 800aa90: f003 031f and.w r3, r3, #31
  24630. 800aa94: fa22 f303 lsr.w r3, r2, r3
  24631. 800aa98: 613b str r3, [r7, #16]
  24632. #else
  24633. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  24634. #endif
  24635. #if defined(RCC_D1CFGR_HPRE)
  24636. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  24637. 800aa9a: 4b0e ldr r3, [pc, #56] @ (800aad4 <HAL_RCC_ClockConfig+0x358>)
  24638. 800aa9c: 699b ldr r3, [r3, #24]
  24639. 800aa9e: f003 030f and.w r3, r3, #15
  24640. 800aaa2: 4a0d ldr r2, [pc, #52] @ (800aad8 <HAL_RCC_ClockConfig+0x35c>)
  24641. 800aaa4: 5cd3 ldrb r3, [r2, r3]
  24642. 800aaa6: f003 031f and.w r3, r3, #31
  24643. 800aaaa: 693a ldr r2, [r7, #16]
  24644. 800aaac: fa22 f303 lsr.w r3, r2, r3
  24645. 800aab0: 4a0a ldr r2, [pc, #40] @ (800aadc <HAL_RCC_ClockConfig+0x360>)
  24646. 800aab2: 6013 str r3, [r2, #0]
  24647. #endif
  24648. #if defined(DUAL_CORE) && defined(CORE_CM4)
  24649. SystemCoreClock = SystemD2Clock;
  24650. #else
  24651. SystemCoreClock = common_system_clock;
  24652. 800aab4: 4a0a ldr r2, [pc, #40] @ (800aae0 <HAL_RCC_ClockConfig+0x364>)
  24653. 800aab6: 693b ldr r3, [r7, #16]
  24654. 800aab8: 6013 str r3, [r2, #0]
  24655. #endif /* DUAL_CORE && CORE_CM4 */
  24656. /* Configure the source of time base considering new system clocks settings*/
  24657. halstatus = HAL_InitTick(uwTickPrio);
  24658. 800aaba: 4b0a ldr r3, [pc, #40] @ (800aae4 <HAL_RCC_ClockConfig+0x368>)
  24659. 800aabc: 681b ldr r3, [r3, #0]
  24660. 800aabe: 4618 mov r0, r3
  24661. 800aac0: f7f9 f816 bl 8003af0 <HAL_InitTick>
  24662. 800aac4: 4603 mov r3, r0
  24663. 800aac6: 73fb strb r3, [r7, #15]
  24664. return halstatus;
  24665. 800aac8: 7bfb ldrb r3, [r7, #15]
  24666. }
  24667. 800aaca: 4618 mov r0, r3
  24668. 800aacc: 3718 adds r7, #24
  24669. 800aace: 46bd mov sp, r7
  24670. 800aad0: bd80 pop {r7, pc}
  24671. 800aad2: bf00 nop
  24672. 800aad4: 58024400 .word 0x58024400
  24673. 800aad8: 08031308 .word 0x08031308
  24674. 800aadc: 24000010 .word 0x24000010
  24675. 800aae0: 2400000c .word 0x2400000c
  24676. 800aae4: 2400002c .word 0x2400002c
  24677. 0800aae8 <HAL_RCC_GetSysClockFreq>:
  24678. *
  24679. *
  24680. * @retval SYSCLK frequency
  24681. */
  24682. uint32_t HAL_RCC_GetSysClockFreq(void)
  24683. {
  24684. 800aae8: b480 push {r7}
  24685. 800aaea: b089 sub sp, #36 @ 0x24
  24686. 800aaec: af00 add r7, sp, #0
  24687. float_t fracn1, pllvco;
  24688. uint32_t sysclockfreq;
  24689. /* Get SYSCLK source -------------------------------------------------------*/
  24690. switch (RCC->CFGR & RCC_CFGR_SWS)
  24691. 800aaee: 4bb3 ldr r3, [pc, #716] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24692. 800aaf0: 691b ldr r3, [r3, #16]
  24693. 800aaf2: f003 0338 and.w r3, r3, #56 @ 0x38
  24694. 800aaf6: 2b18 cmp r3, #24
  24695. 800aaf8: f200 8155 bhi.w 800ada6 <HAL_RCC_GetSysClockFreq+0x2be>
  24696. 800aafc: a201 add r2, pc, #4 @ (adr r2, 800ab04 <HAL_RCC_GetSysClockFreq+0x1c>)
  24697. 800aafe: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24698. 800ab02: bf00 nop
  24699. 800ab04: 0800ab69 .word 0x0800ab69
  24700. 800ab08: 0800ada7 .word 0x0800ada7
  24701. 800ab0c: 0800ada7 .word 0x0800ada7
  24702. 800ab10: 0800ada7 .word 0x0800ada7
  24703. 800ab14: 0800ada7 .word 0x0800ada7
  24704. 800ab18: 0800ada7 .word 0x0800ada7
  24705. 800ab1c: 0800ada7 .word 0x0800ada7
  24706. 800ab20: 0800ada7 .word 0x0800ada7
  24707. 800ab24: 0800ab8f .word 0x0800ab8f
  24708. 800ab28: 0800ada7 .word 0x0800ada7
  24709. 800ab2c: 0800ada7 .word 0x0800ada7
  24710. 800ab30: 0800ada7 .word 0x0800ada7
  24711. 800ab34: 0800ada7 .word 0x0800ada7
  24712. 800ab38: 0800ada7 .word 0x0800ada7
  24713. 800ab3c: 0800ada7 .word 0x0800ada7
  24714. 800ab40: 0800ada7 .word 0x0800ada7
  24715. 800ab44: 0800ab95 .word 0x0800ab95
  24716. 800ab48: 0800ada7 .word 0x0800ada7
  24717. 800ab4c: 0800ada7 .word 0x0800ada7
  24718. 800ab50: 0800ada7 .word 0x0800ada7
  24719. 800ab54: 0800ada7 .word 0x0800ada7
  24720. 800ab58: 0800ada7 .word 0x0800ada7
  24721. 800ab5c: 0800ada7 .word 0x0800ada7
  24722. 800ab60: 0800ada7 .word 0x0800ada7
  24723. 800ab64: 0800ab9b .word 0x0800ab9b
  24724. {
  24725. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  24726. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  24727. 800ab68: 4b94 ldr r3, [pc, #592] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24728. 800ab6a: 681b ldr r3, [r3, #0]
  24729. 800ab6c: f003 0320 and.w r3, r3, #32
  24730. 800ab70: 2b00 cmp r3, #0
  24731. 800ab72: d009 beq.n 800ab88 <HAL_RCC_GetSysClockFreq+0xa0>
  24732. {
  24733. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  24734. 800ab74: 4b91 ldr r3, [pc, #580] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24735. 800ab76: 681b ldr r3, [r3, #0]
  24736. 800ab78: 08db lsrs r3, r3, #3
  24737. 800ab7a: f003 0303 and.w r3, r3, #3
  24738. 800ab7e: 4a90 ldr r2, [pc, #576] @ (800adc0 <HAL_RCC_GetSysClockFreq+0x2d8>)
  24739. 800ab80: fa22 f303 lsr.w r3, r2, r3
  24740. 800ab84: 61bb str r3, [r7, #24]
  24741. else
  24742. {
  24743. sysclockfreq = (uint32_t) HSI_VALUE;
  24744. }
  24745. break;
  24746. 800ab86: e111 b.n 800adac <HAL_RCC_GetSysClockFreq+0x2c4>
  24747. sysclockfreq = (uint32_t) HSI_VALUE;
  24748. 800ab88: 4b8d ldr r3, [pc, #564] @ (800adc0 <HAL_RCC_GetSysClockFreq+0x2d8>)
  24749. 800ab8a: 61bb str r3, [r7, #24]
  24750. break;
  24751. 800ab8c: e10e b.n 800adac <HAL_RCC_GetSysClockFreq+0x2c4>
  24752. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  24753. sysclockfreq = CSI_VALUE;
  24754. 800ab8e: 4b8d ldr r3, [pc, #564] @ (800adc4 <HAL_RCC_GetSysClockFreq+0x2dc>)
  24755. 800ab90: 61bb str r3, [r7, #24]
  24756. break;
  24757. 800ab92: e10b b.n 800adac <HAL_RCC_GetSysClockFreq+0x2c4>
  24758. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  24759. sysclockfreq = HSE_VALUE;
  24760. 800ab94: 4b8c ldr r3, [pc, #560] @ (800adc8 <HAL_RCC_GetSysClockFreq+0x2e0>)
  24761. 800ab96: 61bb str r3, [r7, #24]
  24762. break;
  24763. 800ab98: e108 b.n 800adac <HAL_RCC_GetSysClockFreq+0x2c4>
  24764. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  24765. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  24766. SYSCLK = PLL_VCO / PLLR
  24767. */
  24768. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  24769. 800ab9a: 4b88 ldr r3, [pc, #544] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24770. 800ab9c: 6a9b ldr r3, [r3, #40] @ 0x28
  24771. 800ab9e: f003 0303 and.w r3, r3, #3
  24772. 800aba2: 617b str r3, [r7, #20]
  24773. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  24774. 800aba4: 4b85 ldr r3, [pc, #532] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24775. 800aba6: 6a9b ldr r3, [r3, #40] @ 0x28
  24776. 800aba8: 091b lsrs r3, r3, #4
  24777. 800abaa: f003 033f and.w r3, r3, #63 @ 0x3f
  24778. 800abae: 613b str r3, [r7, #16]
  24779. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  24780. 800abb0: 4b82 ldr r3, [pc, #520] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24781. 800abb2: 6adb ldr r3, [r3, #44] @ 0x2c
  24782. 800abb4: f003 0301 and.w r3, r3, #1
  24783. 800abb8: 60fb str r3, [r7, #12]
  24784. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  24785. 800abba: 4b80 ldr r3, [pc, #512] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24786. 800abbc: 6b5b ldr r3, [r3, #52] @ 0x34
  24787. 800abbe: 08db lsrs r3, r3, #3
  24788. 800abc0: f3c3 030c ubfx r3, r3, #0, #13
  24789. 800abc4: 68fa ldr r2, [r7, #12]
  24790. 800abc6: fb02 f303 mul.w r3, r2, r3
  24791. 800abca: ee07 3a90 vmov s15, r3
  24792. 800abce: eef8 7a67 vcvt.f32.u32 s15, s15
  24793. 800abd2: edc7 7a02 vstr s15, [r7, #8]
  24794. if (pllm != 0U)
  24795. 800abd6: 693b ldr r3, [r7, #16]
  24796. 800abd8: 2b00 cmp r3, #0
  24797. 800abda: f000 80e1 beq.w 800ada0 <HAL_RCC_GetSysClockFreq+0x2b8>
  24798. 800abde: 697b ldr r3, [r7, #20]
  24799. 800abe0: 2b02 cmp r3, #2
  24800. 800abe2: f000 8083 beq.w 800acec <HAL_RCC_GetSysClockFreq+0x204>
  24801. 800abe6: 697b ldr r3, [r7, #20]
  24802. 800abe8: 2b02 cmp r3, #2
  24803. 800abea: f200 80a1 bhi.w 800ad30 <HAL_RCC_GetSysClockFreq+0x248>
  24804. 800abee: 697b ldr r3, [r7, #20]
  24805. 800abf0: 2b00 cmp r3, #0
  24806. 800abf2: d003 beq.n 800abfc <HAL_RCC_GetSysClockFreq+0x114>
  24807. 800abf4: 697b ldr r3, [r7, #20]
  24808. 800abf6: 2b01 cmp r3, #1
  24809. 800abf8: d056 beq.n 800aca8 <HAL_RCC_GetSysClockFreq+0x1c0>
  24810. 800abfa: e099 b.n 800ad30 <HAL_RCC_GetSysClockFreq+0x248>
  24811. {
  24812. switch (pllsource)
  24813. {
  24814. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  24815. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  24816. 800abfc: 4b6f ldr r3, [pc, #444] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24817. 800abfe: 681b ldr r3, [r3, #0]
  24818. 800ac00: f003 0320 and.w r3, r3, #32
  24819. 800ac04: 2b00 cmp r3, #0
  24820. 800ac06: d02d beq.n 800ac64 <HAL_RCC_GetSysClockFreq+0x17c>
  24821. {
  24822. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  24823. 800ac08: 4b6c ldr r3, [pc, #432] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24824. 800ac0a: 681b ldr r3, [r3, #0]
  24825. 800ac0c: 08db lsrs r3, r3, #3
  24826. 800ac0e: f003 0303 and.w r3, r3, #3
  24827. 800ac12: 4a6b ldr r2, [pc, #428] @ (800adc0 <HAL_RCC_GetSysClockFreq+0x2d8>)
  24828. 800ac14: fa22 f303 lsr.w r3, r2, r3
  24829. 800ac18: 607b str r3, [r7, #4]
  24830. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24831. 800ac1a: 687b ldr r3, [r7, #4]
  24832. 800ac1c: ee07 3a90 vmov s15, r3
  24833. 800ac20: eef8 6a67 vcvt.f32.u32 s13, s15
  24834. 800ac24: 693b ldr r3, [r7, #16]
  24835. 800ac26: ee07 3a90 vmov s15, r3
  24836. 800ac2a: eef8 7a67 vcvt.f32.u32 s15, s15
  24837. 800ac2e: ee86 7aa7 vdiv.f32 s14, s13, s15
  24838. 800ac32: 4b62 ldr r3, [pc, #392] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24839. 800ac34: 6b1b ldr r3, [r3, #48] @ 0x30
  24840. 800ac36: f3c3 0308 ubfx r3, r3, #0, #9
  24841. 800ac3a: ee07 3a90 vmov s15, r3
  24842. 800ac3e: eef8 6a67 vcvt.f32.u32 s13, s15
  24843. 800ac42: ed97 6a02 vldr s12, [r7, #8]
  24844. 800ac46: eddf 5a61 vldr s11, [pc, #388] @ 800adcc <HAL_RCC_GetSysClockFreq+0x2e4>
  24845. 800ac4a: eec6 7a25 vdiv.f32 s15, s12, s11
  24846. 800ac4e: ee76 7aa7 vadd.f32 s15, s13, s15
  24847. 800ac52: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24848. 800ac56: ee77 7aa6 vadd.f32 s15, s15, s13
  24849. 800ac5a: ee67 7a27 vmul.f32 s15, s14, s15
  24850. 800ac5e: edc7 7a07 vstr s15, [r7, #28]
  24851. }
  24852. else
  24853. {
  24854. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24855. }
  24856. break;
  24857. 800ac62: e087 b.n 800ad74 <HAL_RCC_GetSysClockFreq+0x28c>
  24858. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24859. 800ac64: 693b ldr r3, [r7, #16]
  24860. 800ac66: ee07 3a90 vmov s15, r3
  24861. 800ac6a: eef8 7a67 vcvt.f32.u32 s15, s15
  24862. 800ac6e: eddf 6a58 vldr s13, [pc, #352] @ 800add0 <HAL_RCC_GetSysClockFreq+0x2e8>
  24863. 800ac72: ee86 7aa7 vdiv.f32 s14, s13, s15
  24864. 800ac76: 4b51 ldr r3, [pc, #324] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24865. 800ac78: 6b1b ldr r3, [r3, #48] @ 0x30
  24866. 800ac7a: f3c3 0308 ubfx r3, r3, #0, #9
  24867. 800ac7e: ee07 3a90 vmov s15, r3
  24868. 800ac82: eef8 6a67 vcvt.f32.u32 s13, s15
  24869. 800ac86: ed97 6a02 vldr s12, [r7, #8]
  24870. 800ac8a: eddf 5a50 vldr s11, [pc, #320] @ 800adcc <HAL_RCC_GetSysClockFreq+0x2e4>
  24871. 800ac8e: eec6 7a25 vdiv.f32 s15, s12, s11
  24872. 800ac92: ee76 7aa7 vadd.f32 s15, s13, s15
  24873. 800ac96: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24874. 800ac9a: ee77 7aa6 vadd.f32 s15, s15, s13
  24875. 800ac9e: ee67 7a27 vmul.f32 s15, s14, s15
  24876. 800aca2: edc7 7a07 vstr s15, [r7, #28]
  24877. break;
  24878. 800aca6: e065 b.n 800ad74 <HAL_RCC_GetSysClockFreq+0x28c>
  24879. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  24880. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24881. 800aca8: 693b ldr r3, [r7, #16]
  24882. 800acaa: ee07 3a90 vmov s15, r3
  24883. 800acae: eef8 7a67 vcvt.f32.u32 s15, s15
  24884. 800acb2: eddf 6a48 vldr s13, [pc, #288] @ 800add4 <HAL_RCC_GetSysClockFreq+0x2ec>
  24885. 800acb6: ee86 7aa7 vdiv.f32 s14, s13, s15
  24886. 800acba: 4b40 ldr r3, [pc, #256] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24887. 800acbc: 6b1b ldr r3, [r3, #48] @ 0x30
  24888. 800acbe: f3c3 0308 ubfx r3, r3, #0, #9
  24889. 800acc2: ee07 3a90 vmov s15, r3
  24890. 800acc6: eef8 6a67 vcvt.f32.u32 s13, s15
  24891. 800acca: ed97 6a02 vldr s12, [r7, #8]
  24892. 800acce: eddf 5a3f vldr s11, [pc, #252] @ 800adcc <HAL_RCC_GetSysClockFreq+0x2e4>
  24893. 800acd2: eec6 7a25 vdiv.f32 s15, s12, s11
  24894. 800acd6: ee76 7aa7 vadd.f32 s15, s13, s15
  24895. 800acda: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24896. 800acde: ee77 7aa6 vadd.f32 s15, s15, s13
  24897. 800ace2: ee67 7a27 vmul.f32 s15, s14, s15
  24898. 800ace6: edc7 7a07 vstr s15, [r7, #28]
  24899. break;
  24900. 800acea: e043 b.n 800ad74 <HAL_RCC_GetSysClockFreq+0x28c>
  24901. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  24902. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24903. 800acec: 693b ldr r3, [r7, #16]
  24904. 800acee: ee07 3a90 vmov s15, r3
  24905. 800acf2: eef8 7a67 vcvt.f32.u32 s15, s15
  24906. 800acf6: eddf 6a38 vldr s13, [pc, #224] @ 800add8 <HAL_RCC_GetSysClockFreq+0x2f0>
  24907. 800acfa: ee86 7aa7 vdiv.f32 s14, s13, s15
  24908. 800acfe: 4b2f ldr r3, [pc, #188] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24909. 800ad00: 6b1b ldr r3, [r3, #48] @ 0x30
  24910. 800ad02: f3c3 0308 ubfx r3, r3, #0, #9
  24911. 800ad06: ee07 3a90 vmov s15, r3
  24912. 800ad0a: eef8 6a67 vcvt.f32.u32 s13, s15
  24913. 800ad0e: ed97 6a02 vldr s12, [r7, #8]
  24914. 800ad12: eddf 5a2e vldr s11, [pc, #184] @ 800adcc <HAL_RCC_GetSysClockFreq+0x2e4>
  24915. 800ad16: eec6 7a25 vdiv.f32 s15, s12, s11
  24916. 800ad1a: ee76 7aa7 vadd.f32 s15, s13, s15
  24917. 800ad1e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24918. 800ad22: ee77 7aa6 vadd.f32 s15, s15, s13
  24919. 800ad26: ee67 7a27 vmul.f32 s15, s14, s15
  24920. 800ad2a: edc7 7a07 vstr s15, [r7, #28]
  24921. break;
  24922. 800ad2e: e021 b.n 800ad74 <HAL_RCC_GetSysClockFreq+0x28c>
  24923. default:
  24924. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  24925. 800ad30: 693b ldr r3, [r7, #16]
  24926. 800ad32: ee07 3a90 vmov s15, r3
  24927. 800ad36: eef8 7a67 vcvt.f32.u32 s15, s15
  24928. 800ad3a: eddf 6a26 vldr s13, [pc, #152] @ 800add4 <HAL_RCC_GetSysClockFreq+0x2ec>
  24929. 800ad3e: ee86 7aa7 vdiv.f32 s14, s13, s15
  24930. 800ad42: 4b1e ldr r3, [pc, #120] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24931. 800ad44: 6b1b ldr r3, [r3, #48] @ 0x30
  24932. 800ad46: f3c3 0308 ubfx r3, r3, #0, #9
  24933. 800ad4a: ee07 3a90 vmov s15, r3
  24934. 800ad4e: eef8 6a67 vcvt.f32.u32 s13, s15
  24935. 800ad52: ed97 6a02 vldr s12, [r7, #8]
  24936. 800ad56: eddf 5a1d vldr s11, [pc, #116] @ 800adcc <HAL_RCC_GetSysClockFreq+0x2e4>
  24937. 800ad5a: eec6 7a25 vdiv.f32 s15, s12, s11
  24938. 800ad5e: ee76 7aa7 vadd.f32 s15, s13, s15
  24939. 800ad62: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  24940. 800ad66: ee77 7aa6 vadd.f32 s15, s15, s13
  24941. 800ad6a: ee67 7a27 vmul.f32 s15, s14, s15
  24942. 800ad6e: edc7 7a07 vstr s15, [r7, #28]
  24943. break;
  24944. 800ad72: bf00 nop
  24945. }
  24946. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  24947. 800ad74: 4b11 ldr r3, [pc, #68] @ (800adbc <HAL_RCC_GetSysClockFreq+0x2d4>)
  24948. 800ad76: 6b1b ldr r3, [r3, #48] @ 0x30
  24949. 800ad78: 0a5b lsrs r3, r3, #9
  24950. 800ad7a: f003 037f and.w r3, r3, #127 @ 0x7f
  24951. 800ad7e: 3301 adds r3, #1
  24952. 800ad80: 603b str r3, [r7, #0]
  24953. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  24954. 800ad82: 683b ldr r3, [r7, #0]
  24955. 800ad84: ee07 3a90 vmov s15, r3
  24956. 800ad88: eeb8 7a67 vcvt.f32.u32 s14, s15
  24957. 800ad8c: edd7 6a07 vldr s13, [r7, #28]
  24958. 800ad90: eec6 7a87 vdiv.f32 s15, s13, s14
  24959. 800ad94: eefc 7ae7 vcvt.u32.f32 s15, s15
  24960. 800ad98: ee17 3a90 vmov r3, s15
  24961. 800ad9c: 61bb str r3, [r7, #24]
  24962. }
  24963. else
  24964. {
  24965. sysclockfreq = 0U;
  24966. }
  24967. break;
  24968. 800ad9e: e005 b.n 800adac <HAL_RCC_GetSysClockFreq+0x2c4>
  24969. sysclockfreq = 0U;
  24970. 800ada0: 2300 movs r3, #0
  24971. 800ada2: 61bb str r3, [r7, #24]
  24972. break;
  24973. 800ada4: e002 b.n 800adac <HAL_RCC_GetSysClockFreq+0x2c4>
  24974. default:
  24975. sysclockfreq = CSI_VALUE;
  24976. 800ada6: 4b07 ldr r3, [pc, #28] @ (800adc4 <HAL_RCC_GetSysClockFreq+0x2dc>)
  24977. 800ada8: 61bb str r3, [r7, #24]
  24978. break;
  24979. 800adaa: bf00 nop
  24980. }
  24981. return sysclockfreq;
  24982. 800adac: 69bb ldr r3, [r7, #24]
  24983. }
  24984. 800adae: 4618 mov r0, r3
  24985. 800adb0: 3724 adds r7, #36 @ 0x24
  24986. 800adb2: 46bd mov sp, r7
  24987. 800adb4: f85d 7b04 ldr.w r7, [sp], #4
  24988. 800adb8: 4770 bx lr
  24989. 800adba: bf00 nop
  24990. 800adbc: 58024400 .word 0x58024400
  24991. 800adc0: 03d09000 .word 0x03d09000
  24992. 800adc4: 003d0900 .word 0x003d0900
  24993. 800adc8: 017d7840 .word 0x017d7840
  24994. 800adcc: 46000000 .word 0x46000000
  24995. 800add0: 4c742400 .word 0x4c742400
  24996. 800add4: 4a742400 .word 0x4a742400
  24997. 800add8: 4bbebc20 .word 0x4bbebc20
  24998. 0800addc <HAL_RCC_GetHCLKFreq>:
  24999. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  25000. * and updated within this function
  25001. * @retval HCLK frequency
  25002. */
  25003. uint32_t HAL_RCC_GetHCLKFreq(void)
  25004. {
  25005. 800addc: b580 push {r7, lr}
  25006. 800adde: b082 sub sp, #8
  25007. 800ade0: af00 add r7, sp, #0
  25008. uint32_t common_system_clock;
  25009. #if defined(RCC_D1CFGR_D1CPRE)
  25010. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  25011. 800ade2: f7ff fe81 bl 800aae8 <HAL_RCC_GetSysClockFreq>
  25012. 800ade6: 4602 mov r2, r0
  25013. 800ade8: 4b10 ldr r3, [pc, #64] @ (800ae2c <HAL_RCC_GetHCLKFreq+0x50>)
  25014. 800adea: 699b ldr r3, [r3, #24]
  25015. 800adec: 0a1b lsrs r3, r3, #8
  25016. 800adee: f003 030f and.w r3, r3, #15
  25017. 800adf2: 490f ldr r1, [pc, #60] @ (800ae30 <HAL_RCC_GetHCLKFreq+0x54>)
  25018. 800adf4: 5ccb ldrb r3, [r1, r3]
  25019. 800adf6: f003 031f and.w r3, r3, #31
  25020. 800adfa: fa22 f303 lsr.w r3, r2, r3
  25021. 800adfe: 607b str r3, [r7, #4]
  25022. #else
  25023. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  25024. #endif
  25025. #if defined(RCC_D1CFGR_HPRE)
  25026. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  25027. 800ae00: 4b0a ldr r3, [pc, #40] @ (800ae2c <HAL_RCC_GetHCLKFreq+0x50>)
  25028. 800ae02: 699b ldr r3, [r3, #24]
  25029. 800ae04: f003 030f and.w r3, r3, #15
  25030. 800ae08: 4a09 ldr r2, [pc, #36] @ (800ae30 <HAL_RCC_GetHCLKFreq+0x54>)
  25031. 800ae0a: 5cd3 ldrb r3, [r2, r3]
  25032. 800ae0c: f003 031f and.w r3, r3, #31
  25033. 800ae10: 687a ldr r2, [r7, #4]
  25034. 800ae12: fa22 f303 lsr.w r3, r2, r3
  25035. 800ae16: 4a07 ldr r2, [pc, #28] @ (800ae34 <HAL_RCC_GetHCLKFreq+0x58>)
  25036. 800ae18: 6013 str r3, [r2, #0]
  25037. #endif
  25038. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25039. SystemCoreClock = SystemD2Clock;
  25040. #else
  25041. SystemCoreClock = common_system_clock;
  25042. 800ae1a: 4a07 ldr r2, [pc, #28] @ (800ae38 <HAL_RCC_GetHCLKFreq+0x5c>)
  25043. 800ae1c: 687b ldr r3, [r7, #4]
  25044. 800ae1e: 6013 str r3, [r2, #0]
  25045. #endif /* DUAL_CORE && CORE_CM4 */
  25046. return SystemD2Clock;
  25047. 800ae20: 4b04 ldr r3, [pc, #16] @ (800ae34 <HAL_RCC_GetHCLKFreq+0x58>)
  25048. 800ae22: 681b ldr r3, [r3, #0]
  25049. }
  25050. 800ae24: 4618 mov r0, r3
  25051. 800ae26: 3708 adds r7, #8
  25052. 800ae28: 46bd mov sp, r7
  25053. 800ae2a: bd80 pop {r7, pc}
  25054. 800ae2c: 58024400 .word 0x58024400
  25055. 800ae30: 08031308 .word 0x08031308
  25056. 800ae34: 24000010 .word 0x24000010
  25057. 800ae38: 2400000c .word 0x2400000c
  25058. 0800ae3c <HAL_RCC_GetPCLK1Freq>:
  25059. * @note Each time PCLK1 changes, this function must be called to update the
  25060. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  25061. * @retval PCLK1 frequency
  25062. */
  25063. uint32_t HAL_RCC_GetPCLK1Freq(void)
  25064. {
  25065. 800ae3c: b580 push {r7, lr}
  25066. 800ae3e: af00 add r7, sp, #0
  25067. #if defined (RCC_D2CFGR_D2PPRE1)
  25068. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  25069. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  25070. 800ae40: f7ff ffcc bl 800addc <HAL_RCC_GetHCLKFreq>
  25071. 800ae44: 4602 mov r2, r0
  25072. 800ae46: 4b06 ldr r3, [pc, #24] @ (800ae60 <HAL_RCC_GetPCLK1Freq+0x24>)
  25073. 800ae48: 69db ldr r3, [r3, #28]
  25074. 800ae4a: 091b lsrs r3, r3, #4
  25075. 800ae4c: f003 0307 and.w r3, r3, #7
  25076. 800ae50: 4904 ldr r1, [pc, #16] @ (800ae64 <HAL_RCC_GetPCLK1Freq+0x28>)
  25077. 800ae52: 5ccb ldrb r3, [r1, r3]
  25078. 800ae54: f003 031f and.w r3, r3, #31
  25079. 800ae58: fa22 f303 lsr.w r3, r2, r3
  25080. #else
  25081. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  25082. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  25083. #endif
  25084. }
  25085. 800ae5c: 4618 mov r0, r3
  25086. 800ae5e: bd80 pop {r7, pc}
  25087. 800ae60: 58024400 .word 0x58024400
  25088. 800ae64: 08031308 .word 0x08031308
  25089. 0800ae68 <HAL_RCC_GetPCLK2Freq>:
  25090. * @note Each time PCLK2 changes, this function must be called to update the
  25091. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  25092. * @retval PCLK1 frequency
  25093. */
  25094. uint32_t HAL_RCC_GetPCLK2Freq(void)
  25095. {
  25096. 800ae68: b580 push {r7, lr}
  25097. 800ae6a: af00 add r7, sp, #0
  25098. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  25099. #if defined(RCC_D2CFGR_D2PPRE2)
  25100. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  25101. 800ae6c: f7ff ffb6 bl 800addc <HAL_RCC_GetHCLKFreq>
  25102. 800ae70: 4602 mov r2, r0
  25103. 800ae72: 4b06 ldr r3, [pc, #24] @ (800ae8c <HAL_RCC_GetPCLK2Freq+0x24>)
  25104. 800ae74: 69db ldr r3, [r3, #28]
  25105. 800ae76: 0a1b lsrs r3, r3, #8
  25106. 800ae78: f003 0307 and.w r3, r3, #7
  25107. 800ae7c: 4904 ldr r1, [pc, #16] @ (800ae90 <HAL_RCC_GetPCLK2Freq+0x28>)
  25108. 800ae7e: 5ccb ldrb r3, [r1, r3]
  25109. 800ae80: f003 031f and.w r3, r3, #31
  25110. 800ae84: fa22 f303 lsr.w r3, r2, r3
  25111. #else
  25112. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  25113. #endif
  25114. }
  25115. 800ae88: 4618 mov r0, r3
  25116. 800ae8a: bd80 pop {r7, pc}
  25117. 800ae8c: 58024400 .word 0x58024400
  25118. 800ae90: 08031308 .word 0x08031308
  25119. 0800ae94 <HAL_RCC_GetClockConfig>:
  25120. * will be configured.
  25121. * @param pFLatency: Pointer on the Flash Latency.
  25122. * @retval None
  25123. */
  25124. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  25125. {
  25126. 800ae94: b480 push {r7}
  25127. 800ae96: b083 sub sp, #12
  25128. 800ae98: af00 add r7, sp, #0
  25129. 800ae9a: 6078 str r0, [r7, #4]
  25130. 800ae9c: 6039 str r1, [r7, #0]
  25131. /* Set all possible values for the Clock type parameter --------------------*/
  25132. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  25133. 800ae9e: 687b ldr r3, [r7, #4]
  25134. 800aea0: 223f movs r2, #63 @ 0x3f
  25135. 800aea2: 601a str r2, [r3, #0]
  25136. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  25137. /* Get the SYSCLK configuration --------------------------------------------*/
  25138. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  25139. 800aea4: 4b1a ldr r3, [pc, #104] @ (800af10 <HAL_RCC_GetClockConfig+0x7c>)
  25140. 800aea6: 691b ldr r3, [r3, #16]
  25141. 800aea8: f003 0207 and.w r2, r3, #7
  25142. 800aeac: 687b ldr r3, [r7, #4]
  25143. 800aeae: 605a str r2, [r3, #4]
  25144. #if defined(RCC_D1CFGR_D1CPRE)
  25145. /* Get the SYSCLK configuration ----------------------------------------------*/
  25146. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  25147. 800aeb0: 4b17 ldr r3, [pc, #92] @ (800af10 <HAL_RCC_GetClockConfig+0x7c>)
  25148. 800aeb2: 699b ldr r3, [r3, #24]
  25149. 800aeb4: f403 6270 and.w r2, r3, #3840 @ 0xf00
  25150. 800aeb8: 687b ldr r3, [r7, #4]
  25151. 800aeba: 609a str r2, [r3, #8]
  25152. /* Get the D1HCLK configuration ----------------------------------------------*/
  25153. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  25154. 800aebc: 4b14 ldr r3, [pc, #80] @ (800af10 <HAL_RCC_GetClockConfig+0x7c>)
  25155. 800aebe: 699b ldr r3, [r3, #24]
  25156. 800aec0: f003 020f and.w r2, r3, #15
  25157. 800aec4: 687b ldr r3, [r7, #4]
  25158. 800aec6: 60da str r2, [r3, #12]
  25159. /* Get the APB3 configuration ----------------------------------------------*/
  25160. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  25161. 800aec8: 4b11 ldr r3, [pc, #68] @ (800af10 <HAL_RCC_GetClockConfig+0x7c>)
  25162. 800aeca: 699b ldr r3, [r3, #24]
  25163. 800aecc: f003 0270 and.w r2, r3, #112 @ 0x70
  25164. 800aed0: 687b ldr r3, [r7, #4]
  25165. 800aed2: 611a str r2, [r3, #16]
  25166. /* Get the APB1 configuration ----------------------------------------------*/
  25167. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  25168. 800aed4: 4b0e ldr r3, [pc, #56] @ (800af10 <HAL_RCC_GetClockConfig+0x7c>)
  25169. 800aed6: 69db ldr r3, [r3, #28]
  25170. 800aed8: f003 0270 and.w r2, r3, #112 @ 0x70
  25171. 800aedc: 687b ldr r3, [r7, #4]
  25172. 800aede: 615a str r2, [r3, #20]
  25173. /* Get the APB2 configuration ----------------------------------------------*/
  25174. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  25175. 800aee0: 4b0b ldr r3, [pc, #44] @ (800af10 <HAL_RCC_GetClockConfig+0x7c>)
  25176. 800aee2: 69db ldr r3, [r3, #28]
  25177. 800aee4: f403 62e0 and.w r2, r3, #1792 @ 0x700
  25178. 800aee8: 687b ldr r3, [r7, #4]
  25179. 800aeea: 619a str r2, [r3, #24]
  25180. /* Get the APB4 configuration ----------------------------------------------*/
  25181. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  25182. 800aeec: 4b08 ldr r3, [pc, #32] @ (800af10 <HAL_RCC_GetClockConfig+0x7c>)
  25183. 800aeee: 6a1b ldr r3, [r3, #32]
  25184. 800aef0: f003 0270 and.w r2, r3, #112 @ 0x70
  25185. 800aef4: 687b ldr r3, [r7, #4]
  25186. 800aef6: 61da str r2, [r3, #28]
  25187. /* Get the APB4 configuration ----------------------------------------------*/
  25188. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  25189. #endif
  25190. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  25191. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  25192. 800aef8: 4b06 ldr r3, [pc, #24] @ (800af14 <HAL_RCC_GetClockConfig+0x80>)
  25193. 800aefa: 681b ldr r3, [r3, #0]
  25194. 800aefc: f003 020f and.w r2, r3, #15
  25195. 800af00: 683b ldr r3, [r7, #0]
  25196. 800af02: 601a str r2, [r3, #0]
  25197. }
  25198. 800af04: bf00 nop
  25199. 800af06: 370c adds r7, #12
  25200. 800af08: 46bd mov sp, r7
  25201. 800af0a: f85d 7b04 ldr.w r7, [sp], #4
  25202. 800af0e: 4770 bx lr
  25203. 800af10: 58024400 .word 0x58024400
  25204. 800af14: 52002000 .word 0x52002000
  25205. 0800af18 <HAL_RCCEx_PeriphCLKConfig>:
  25206. * (*) : Available on some STM32H7 lines only.
  25207. *
  25208. * @retval HAL status
  25209. */
  25210. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  25211. {
  25212. 800af18: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  25213. 800af1c: b0c8 sub sp, #288 @ 0x120
  25214. 800af1e: af00 add r7, sp, #0
  25215. 800af20: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  25216. uint32_t tmpreg;
  25217. uint32_t tickstart;
  25218. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  25219. 800af24: 2300 movs r3, #0
  25220. 800af26: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25221. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  25222. 800af2a: 2300 movs r3, #0
  25223. 800af2c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25224. /*---------------------------- SPDIFRX configuration -------------------------------*/
  25225. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  25226. 800af30: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25227. 800af34: e9d3 2300 ldrd r2, r3, [r3]
  25228. 800af38: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  25229. 800af3c: 2500 movs r5, #0
  25230. 800af3e: ea54 0305 orrs.w r3, r4, r5
  25231. 800af42: d049 beq.n 800afd8 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  25232. {
  25233. switch (PeriphClkInit->SpdifrxClockSelection)
  25234. 800af44: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25235. 800af48: 6e9b ldr r3, [r3, #104] @ 0x68
  25236. 800af4a: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  25237. 800af4e: d02f beq.n 800afb0 <HAL_RCCEx_PeriphCLKConfig+0x98>
  25238. 800af50: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  25239. 800af54: d828 bhi.n 800afa8 <HAL_RCCEx_PeriphCLKConfig+0x90>
  25240. 800af56: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  25241. 800af5a: d01a beq.n 800af92 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  25242. 800af5c: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  25243. 800af60: d822 bhi.n 800afa8 <HAL_RCCEx_PeriphCLKConfig+0x90>
  25244. 800af62: 2b00 cmp r3, #0
  25245. 800af64: d003 beq.n 800af6e <HAL_RCCEx_PeriphCLKConfig+0x56>
  25246. 800af66: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  25247. 800af6a: d007 beq.n 800af7c <HAL_RCCEx_PeriphCLKConfig+0x64>
  25248. 800af6c: e01c b.n 800afa8 <HAL_RCCEx_PeriphCLKConfig+0x90>
  25249. {
  25250. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  25251. /* Enable PLL1Q Clock output generated form System PLL . */
  25252. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25253. 800af6e: 4bb8 ldr r3, [pc, #736] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25254. 800af70: 6adb ldr r3, [r3, #44] @ 0x2c
  25255. 800af72: 4ab7 ldr r2, [pc, #732] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25256. 800af74: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25257. 800af78: 62d3 str r3, [r2, #44] @ 0x2c
  25258. /* SPDIFRX clock source configuration done later after clock selection check */
  25259. break;
  25260. 800af7a: e01a b.n 800afb2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25261. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  25262. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  25263. 800af7c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25264. 800af80: 3308 adds r3, #8
  25265. 800af82: 2102 movs r1, #2
  25266. 800af84: 4618 mov r0, r3
  25267. 800af86: f001 fc73 bl 800c870 <RCCEx_PLL2_Config>
  25268. 800af8a: 4603 mov r3, r0
  25269. 800af8c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25270. /* SPDIFRX clock source configuration done later after clock selection check */
  25271. break;
  25272. 800af90: e00f b.n 800afb2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25273. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  25274. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  25275. 800af92: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25276. 800af96: 3328 adds r3, #40 @ 0x28
  25277. 800af98: 2102 movs r1, #2
  25278. 800af9a: 4618 mov r0, r3
  25279. 800af9c: f001 fd1a bl 800c9d4 <RCCEx_PLL3_Config>
  25280. 800afa0: 4603 mov r3, r0
  25281. 800afa2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25282. /* SPDIFRX clock source configuration done later after clock selection check */
  25283. break;
  25284. 800afa6: e004 b.n 800afb2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25285. /* Internal OSC clock is used as source of SPDIFRX clock*/
  25286. /* SPDIFRX clock source configuration done later after clock selection check */
  25287. break;
  25288. default:
  25289. ret = HAL_ERROR;
  25290. 800afa8: 2301 movs r3, #1
  25291. 800afaa: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25292. break;
  25293. 800afae: e000 b.n 800afb2 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  25294. break;
  25295. 800afb0: bf00 nop
  25296. }
  25297. if (ret == HAL_OK)
  25298. 800afb2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25299. 800afb6: 2b00 cmp r3, #0
  25300. 800afb8: d10a bne.n 800afd0 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  25301. {
  25302. /* Set the source of SPDIFRX clock*/
  25303. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  25304. 800afba: 4ba5 ldr r3, [pc, #660] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25305. 800afbc: 6d1b ldr r3, [r3, #80] @ 0x50
  25306. 800afbe: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  25307. 800afc2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25308. 800afc6: 6e9b ldr r3, [r3, #104] @ 0x68
  25309. 800afc8: 4aa1 ldr r2, [pc, #644] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25310. 800afca: 430b orrs r3, r1
  25311. 800afcc: 6513 str r3, [r2, #80] @ 0x50
  25312. 800afce: e003 b.n 800afd8 <HAL_RCCEx_PeriphCLKConfig+0xc0>
  25313. }
  25314. else
  25315. {
  25316. /* set overall return value */
  25317. status = ret;
  25318. 800afd0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25319. 800afd4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25320. }
  25321. }
  25322. /*---------------------------- SAI1 configuration -------------------------------*/
  25323. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  25324. 800afd8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25325. 800afdc: e9d3 2300 ldrd r2, r3, [r3]
  25326. 800afe0: f402 7880 and.w r8, r2, #256 @ 0x100
  25327. 800afe4: f04f 0900 mov.w r9, #0
  25328. 800afe8: ea58 0309 orrs.w r3, r8, r9
  25329. 800afec: d047 beq.n 800b07e <HAL_RCCEx_PeriphCLKConfig+0x166>
  25330. {
  25331. switch (PeriphClkInit->Sai1ClockSelection)
  25332. 800afee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25333. 800aff2: 6d9b ldr r3, [r3, #88] @ 0x58
  25334. 800aff4: 2b04 cmp r3, #4
  25335. 800aff6: d82a bhi.n 800b04e <HAL_RCCEx_PeriphCLKConfig+0x136>
  25336. 800aff8: a201 add r2, pc, #4 @ (adr r2, 800b000 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  25337. 800affa: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  25338. 800affe: bf00 nop
  25339. 800b000: 0800b015 .word 0x0800b015
  25340. 800b004: 0800b023 .word 0x0800b023
  25341. 800b008: 0800b039 .word 0x0800b039
  25342. 800b00c: 0800b057 .word 0x0800b057
  25343. 800b010: 0800b057 .word 0x0800b057
  25344. {
  25345. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  25346. /* Enable SAI Clock output generated form System PLL . */
  25347. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25348. 800b014: 4b8e ldr r3, [pc, #568] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25349. 800b016: 6adb ldr r3, [r3, #44] @ 0x2c
  25350. 800b018: 4a8d ldr r2, [pc, #564] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25351. 800b01a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25352. 800b01e: 62d3 str r3, [r2, #44] @ 0x2c
  25353. /* SAI1 clock source configuration done later after clock selection check */
  25354. break;
  25355. 800b020: e01a b.n 800b058 <HAL_RCCEx_PeriphCLKConfig+0x140>
  25356. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  25357. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25358. 800b022: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25359. 800b026: 3308 adds r3, #8
  25360. 800b028: 2100 movs r1, #0
  25361. 800b02a: 4618 mov r0, r3
  25362. 800b02c: f001 fc20 bl 800c870 <RCCEx_PLL2_Config>
  25363. 800b030: 4603 mov r3, r0
  25364. 800b032: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25365. /* SAI1 clock source configuration done later after clock selection check */
  25366. break;
  25367. 800b036: e00f b.n 800b058 <HAL_RCCEx_PeriphCLKConfig+0x140>
  25368. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  25369. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25370. 800b038: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25371. 800b03c: 3328 adds r3, #40 @ 0x28
  25372. 800b03e: 2100 movs r1, #0
  25373. 800b040: 4618 mov r0, r3
  25374. 800b042: f001 fcc7 bl 800c9d4 <RCCEx_PLL3_Config>
  25375. 800b046: 4603 mov r3, r0
  25376. 800b048: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25377. /* SAI1 clock source configuration done later after clock selection check */
  25378. break;
  25379. 800b04c: e004 b.n 800b058 <HAL_RCCEx_PeriphCLKConfig+0x140>
  25380. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  25381. /* SAI1 clock source configuration done later after clock selection check */
  25382. break;
  25383. default:
  25384. ret = HAL_ERROR;
  25385. 800b04e: 2301 movs r3, #1
  25386. 800b050: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25387. break;
  25388. 800b054: e000 b.n 800b058 <HAL_RCCEx_PeriphCLKConfig+0x140>
  25389. break;
  25390. 800b056: bf00 nop
  25391. }
  25392. if (ret == HAL_OK)
  25393. 800b058: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25394. 800b05c: 2b00 cmp r3, #0
  25395. 800b05e: d10a bne.n 800b076 <HAL_RCCEx_PeriphCLKConfig+0x15e>
  25396. {
  25397. /* Set the source of SAI1 clock*/
  25398. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  25399. 800b060: 4b7b ldr r3, [pc, #492] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25400. 800b062: 6d1b ldr r3, [r3, #80] @ 0x50
  25401. 800b064: f023 0107 bic.w r1, r3, #7
  25402. 800b068: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25403. 800b06c: 6d9b ldr r3, [r3, #88] @ 0x58
  25404. 800b06e: 4a78 ldr r2, [pc, #480] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25405. 800b070: 430b orrs r3, r1
  25406. 800b072: 6513 str r3, [r2, #80] @ 0x50
  25407. 800b074: e003 b.n 800b07e <HAL_RCCEx_PeriphCLKConfig+0x166>
  25408. }
  25409. else
  25410. {
  25411. /* set overall return value */
  25412. status = ret;
  25413. 800b076: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25414. 800b07a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25415. }
  25416. }
  25417. #if defined(SAI3)
  25418. /*---------------------------- SAI2/3 configuration -------------------------------*/
  25419. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  25420. 800b07e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25421. 800b082: e9d3 2300 ldrd r2, r3, [r3]
  25422. 800b086: f402 7a00 and.w sl, r2, #512 @ 0x200
  25423. 800b08a: f04f 0b00 mov.w fp, #0
  25424. 800b08e: ea5a 030b orrs.w r3, sl, fp
  25425. 800b092: d04c beq.n 800b12e <HAL_RCCEx_PeriphCLKConfig+0x216>
  25426. {
  25427. switch (PeriphClkInit->Sai23ClockSelection)
  25428. 800b094: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25429. 800b098: 6ddb ldr r3, [r3, #92] @ 0x5c
  25430. 800b09a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  25431. 800b09e: d030 beq.n 800b102 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  25432. 800b0a0: f5b3 7f80 cmp.w r3, #256 @ 0x100
  25433. 800b0a4: d829 bhi.n 800b0fa <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  25434. 800b0a6: 2bc0 cmp r3, #192 @ 0xc0
  25435. 800b0a8: d02d beq.n 800b106 <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  25436. 800b0aa: 2bc0 cmp r3, #192 @ 0xc0
  25437. 800b0ac: d825 bhi.n 800b0fa <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  25438. 800b0ae: 2b80 cmp r3, #128 @ 0x80
  25439. 800b0b0: d018 beq.n 800b0e4 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  25440. 800b0b2: 2b80 cmp r3, #128 @ 0x80
  25441. 800b0b4: d821 bhi.n 800b0fa <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  25442. 800b0b6: 2b00 cmp r3, #0
  25443. 800b0b8: d002 beq.n 800b0c0 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  25444. 800b0ba: 2b40 cmp r3, #64 @ 0x40
  25445. 800b0bc: d007 beq.n 800b0ce <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  25446. 800b0be: e01c b.n 800b0fa <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  25447. {
  25448. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  25449. /* Enable SAI Clock output generated form System PLL . */
  25450. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25451. 800b0c0: 4b63 ldr r3, [pc, #396] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25452. 800b0c2: 6adb ldr r3, [r3, #44] @ 0x2c
  25453. 800b0c4: 4a62 ldr r2, [pc, #392] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25454. 800b0c6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25455. 800b0ca: 62d3 str r3, [r2, #44] @ 0x2c
  25456. /* SAI2/3 clock source configuration done later after clock selection check */
  25457. break;
  25458. 800b0cc: e01c b.n 800b108 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  25459. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  25460. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25461. 800b0ce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25462. 800b0d2: 3308 adds r3, #8
  25463. 800b0d4: 2100 movs r1, #0
  25464. 800b0d6: 4618 mov r0, r3
  25465. 800b0d8: f001 fbca bl 800c870 <RCCEx_PLL2_Config>
  25466. 800b0dc: 4603 mov r3, r0
  25467. 800b0de: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25468. /* SAI2/3 clock source configuration done later after clock selection check */
  25469. break;
  25470. 800b0e2: e011 b.n 800b108 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  25471. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  25472. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25473. 800b0e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25474. 800b0e8: 3328 adds r3, #40 @ 0x28
  25475. 800b0ea: 2100 movs r1, #0
  25476. 800b0ec: 4618 mov r0, r3
  25477. 800b0ee: f001 fc71 bl 800c9d4 <RCCEx_PLL3_Config>
  25478. 800b0f2: 4603 mov r3, r0
  25479. 800b0f4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25480. /* SAI2/3 clock source configuration done later after clock selection check */
  25481. break;
  25482. 800b0f8: e006 b.n 800b108 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  25483. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  25484. /* SAI2/3 clock source configuration done later after clock selection check */
  25485. break;
  25486. default:
  25487. ret = HAL_ERROR;
  25488. 800b0fa: 2301 movs r3, #1
  25489. 800b0fc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25490. break;
  25491. 800b100: e002 b.n 800b108 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  25492. break;
  25493. 800b102: bf00 nop
  25494. 800b104: e000 b.n 800b108 <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  25495. break;
  25496. 800b106: bf00 nop
  25497. }
  25498. if (ret == HAL_OK)
  25499. 800b108: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25500. 800b10c: 2b00 cmp r3, #0
  25501. 800b10e: d10a bne.n 800b126 <HAL_RCCEx_PeriphCLKConfig+0x20e>
  25502. {
  25503. /* Set the source of SAI2/3 clock*/
  25504. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  25505. 800b110: 4b4f ldr r3, [pc, #316] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25506. 800b112: 6d1b ldr r3, [r3, #80] @ 0x50
  25507. 800b114: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  25508. 800b118: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25509. 800b11c: 6ddb ldr r3, [r3, #92] @ 0x5c
  25510. 800b11e: 4a4c ldr r2, [pc, #304] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25511. 800b120: 430b orrs r3, r1
  25512. 800b122: 6513 str r3, [r2, #80] @ 0x50
  25513. 800b124: e003 b.n 800b12e <HAL_RCCEx_PeriphCLKConfig+0x216>
  25514. }
  25515. else
  25516. {
  25517. /* set overall return value */
  25518. status = ret;
  25519. 800b126: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25520. 800b12a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25521. }
  25522. #endif /*SAI2B*/
  25523. #if defined(SAI4)
  25524. /*---------------------------- SAI4A configuration -------------------------------*/
  25525. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  25526. 800b12e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25527. 800b132: e9d3 2300 ldrd r2, r3, [r3]
  25528. 800b136: f402 6380 and.w r3, r2, #1024 @ 0x400
  25529. 800b13a: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  25530. 800b13e: 2300 movs r3, #0
  25531. 800b140: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  25532. 800b144: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  25533. 800b148: 460b mov r3, r1
  25534. 800b14a: 4313 orrs r3, r2
  25535. 800b14c: d053 beq.n 800b1f6 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  25536. {
  25537. switch (PeriphClkInit->Sai4AClockSelection)
  25538. 800b14e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25539. 800b152: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  25540. 800b156: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  25541. 800b15a: d035 beq.n 800b1c8 <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  25542. 800b15c: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  25543. 800b160: d82e bhi.n 800b1c0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25544. 800b162: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  25545. 800b166: d031 beq.n 800b1cc <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  25546. 800b168: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  25547. 800b16c: d828 bhi.n 800b1c0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25548. 800b16e: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  25549. 800b172: d01a beq.n 800b1aa <HAL_RCCEx_PeriphCLKConfig+0x292>
  25550. 800b174: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  25551. 800b178: d822 bhi.n 800b1c0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25552. 800b17a: 2b00 cmp r3, #0
  25553. 800b17c: d003 beq.n 800b186 <HAL_RCCEx_PeriphCLKConfig+0x26e>
  25554. 800b17e: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  25555. 800b182: d007 beq.n 800b194 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  25556. 800b184: e01c b.n 800b1c0 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  25557. {
  25558. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  25559. /* Enable SAI Clock output generated form System PLL . */
  25560. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25561. 800b186: 4b32 ldr r3, [pc, #200] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25562. 800b188: 6adb ldr r3, [r3, #44] @ 0x2c
  25563. 800b18a: 4a31 ldr r2, [pc, #196] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25564. 800b18c: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25565. 800b190: 62d3 str r3, [r2, #44] @ 0x2c
  25566. /* SAI1 clock source configuration done later after clock selection check */
  25567. break;
  25568. 800b192: e01c b.n 800b1ce <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25569. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  25570. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25571. 800b194: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25572. 800b198: 3308 adds r3, #8
  25573. 800b19a: 2100 movs r1, #0
  25574. 800b19c: 4618 mov r0, r3
  25575. 800b19e: f001 fb67 bl 800c870 <RCCEx_PLL2_Config>
  25576. 800b1a2: 4603 mov r3, r0
  25577. 800b1a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25578. /* SAI2 clock source configuration done later after clock selection check */
  25579. break;
  25580. 800b1a8: e011 b.n 800b1ce <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25581. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  25582. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25583. 800b1aa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25584. 800b1ae: 3328 adds r3, #40 @ 0x28
  25585. 800b1b0: 2100 movs r1, #0
  25586. 800b1b2: 4618 mov r0, r3
  25587. 800b1b4: f001 fc0e bl 800c9d4 <RCCEx_PLL3_Config>
  25588. 800b1b8: 4603 mov r3, r0
  25589. 800b1ba: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25590. /* SAI1 clock source configuration done later after clock selection check */
  25591. break;
  25592. 800b1be: e006 b.n 800b1ce <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25593. /* SAI4A clock source configuration done later after clock selection check */
  25594. break;
  25595. #endif /* RCC_VER_3_0 */
  25596. default:
  25597. ret = HAL_ERROR;
  25598. 800b1c0: 2301 movs r3, #1
  25599. 800b1c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25600. break;
  25601. 800b1c6: e002 b.n 800b1ce <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25602. break;
  25603. 800b1c8: bf00 nop
  25604. 800b1ca: e000 b.n 800b1ce <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  25605. break;
  25606. 800b1cc: bf00 nop
  25607. }
  25608. if (ret == HAL_OK)
  25609. 800b1ce: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25610. 800b1d2: 2b00 cmp r3, #0
  25611. 800b1d4: d10b bne.n 800b1ee <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  25612. {
  25613. /* Set the source of SAI4A clock*/
  25614. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  25615. 800b1d6: 4b1e ldr r3, [pc, #120] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25616. 800b1d8: 6d9b ldr r3, [r3, #88] @ 0x58
  25617. 800b1da: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  25618. 800b1de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25619. 800b1e2: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  25620. 800b1e6: 4a1a ldr r2, [pc, #104] @ (800b250 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  25621. 800b1e8: 430b orrs r3, r1
  25622. 800b1ea: 6593 str r3, [r2, #88] @ 0x58
  25623. 800b1ec: e003 b.n 800b1f6 <HAL_RCCEx_PeriphCLKConfig+0x2de>
  25624. }
  25625. else
  25626. {
  25627. /* set overall return value */
  25628. status = ret;
  25629. 800b1ee: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25630. 800b1f2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25631. }
  25632. }
  25633. /*---------------------------- SAI4B configuration -------------------------------*/
  25634. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  25635. 800b1f6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25636. 800b1fa: e9d3 2300 ldrd r2, r3, [r3]
  25637. 800b1fe: f402 6300 and.w r3, r2, #2048 @ 0x800
  25638. 800b202: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  25639. 800b206: 2300 movs r3, #0
  25640. 800b208: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  25641. 800b20c: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  25642. 800b210: 460b mov r3, r1
  25643. 800b212: 4313 orrs r3, r2
  25644. 800b214: d056 beq.n 800b2c4 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  25645. {
  25646. switch (PeriphClkInit->Sai4BClockSelection)
  25647. 800b216: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25648. 800b21a: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  25649. 800b21e: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  25650. 800b222: d038 beq.n 800b296 <HAL_RCCEx_PeriphCLKConfig+0x37e>
  25651. 800b224: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  25652. 800b228: d831 bhi.n 800b28e <HAL_RCCEx_PeriphCLKConfig+0x376>
  25653. 800b22a: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  25654. 800b22e: d034 beq.n 800b29a <HAL_RCCEx_PeriphCLKConfig+0x382>
  25655. 800b230: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  25656. 800b234: d82b bhi.n 800b28e <HAL_RCCEx_PeriphCLKConfig+0x376>
  25657. 800b236: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  25658. 800b23a: d01d beq.n 800b278 <HAL_RCCEx_PeriphCLKConfig+0x360>
  25659. 800b23c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  25660. 800b240: d825 bhi.n 800b28e <HAL_RCCEx_PeriphCLKConfig+0x376>
  25661. 800b242: 2b00 cmp r3, #0
  25662. 800b244: d006 beq.n 800b254 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  25663. 800b246: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  25664. 800b24a: d00a beq.n 800b262 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  25665. 800b24c: e01f b.n 800b28e <HAL_RCCEx_PeriphCLKConfig+0x376>
  25666. 800b24e: bf00 nop
  25667. 800b250: 58024400 .word 0x58024400
  25668. {
  25669. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  25670. /* Enable SAI Clock output generated form System PLL . */
  25671. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25672. 800b254: 4ba2 ldr r3, [pc, #648] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25673. 800b256: 6adb ldr r3, [r3, #44] @ 0x2c
  25674. 800b258: 4aa1 ldr r2, [pc, #644] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25675. 800b25a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25676. 800b25e: 62d3 str r3, [r2, #44] @ 0x2c
  25677. /* SAI1 clock source configuration done later after clock selection check */
  25678. break;
  25679. 800b260: e01c b.n 800b29c <HAL_RCCEx_PeriphCLKConfig+0x384>
  25680. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  25681. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25682. 800b262: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25683. 800b266: 3308 adds r3, #8
  25684. 800b268: 2100 movs r1, #0
  25685. 800b26a: 4618 mov r0, r3
  25686. 800b26c: f001 fb00 bl 800c870 <RCCEx_PLL2_Config>
  25687. 800b270: 4603 mov r3, r0
  25688. 800b272: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25689. /* SAI2 clock source configuration done later after clock selection check */
  25690. break;
  25691. 800b276: e011 b.n 800b29c <HAL_RCCEx_PeriphCLKConfig+0x384>
  25692. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  25693. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25694. 800b278: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25695. 800b27c: 3328 adds r3, #40 @ 0x28
  25696. 800b27e: 2100 movs r1, #0
  25697. 800b280: 4618 mov r0, r3
  25698. 800b282: f001 fba7 bl 800c9d4 <RCCEx_PLL3_Config>
  25699. 800b286: 4603 mov r3, r0
  25700. 800b288: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25701. /* SAI1 clock source configuration done later after clock selection check */
  25702. break;
  25703. 800b28c: e006 b.n 800b29c <HAL_RCCEx_PeriphCLKConfig+0x384>
  25704. /* SAI4B clock source configuration done later after clock selection check */
  25705. break;
  25706. #endif /* RCC_VER_3_0 */
  25707. default:
  25708. ret = HAL_ERROR;
  25709. 800b28e: 2301 movs r3, #1
  25710. 800b290: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25711. break;
  25712. 800b294: e002 b.n 800b29c <HAL_RCCEx_PeriphCLKConfig+0x384>
  25713. break;
  25714. 800b296: bf00 nop
  25715. 800b298: e000 b.n 800b29c <HAL_RCCEx_PeriphCLKConfig+0x384>
  25716. break;
  25717. 800b29a: bf00 nop
  25718. }
  25719. if (ret == HAL_OK)
  25720. 800b29c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25721. 800b2a0: 2b00 cmp r3, #0
  25722. 800b2a2: d10b bne.n 800b2bc <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  25723. {
  25724. /* Set the source of SAI4B clock*/
  25725. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  25726. 800b2a4: 4b8e ldr r3, [pc, #568] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25727. 800b2a6: 6d9b ldr r3, [r3, #88] @ 0x58
  25728. 800b2a8: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  25729. 800b2ac: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25730. 800b2b0: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  25731. 800b2b4: 4a8a ldr r2, [pc, #552] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25732. 800b2b6: 430b orrs r3, r1
  25733. 800b2b8: 6593 str r3, [r2, #88] @ 0x58
  25734. 800b2ba: e003 b.n 800b2c4 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  25735. }
  25736. else
  25737. {
  25738. /* set overall return value */
  25739. status = ret;
  25740. 800b2bc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25741. 800b2c0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25742. }
  25743. #endif /*SAI4*/
  25744. #if defined(QUADSPI)
  25745. /*---------------------------- QSPI configuration -------------------------------*/
  25746. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  25747. 800b2c4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25748. 800b2c8: e9d3 2300 ldrd r2, r3, [r3]
  25749. 800b2cc: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  25750. 800b2d0: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  25751. 800b2d4: 2300 movs r3, #0
  25752. 800b2d6: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  25753. 800b2da: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  25754. 800b2de: 460b mov r3, r1
  25755. 800b2e0: 4313 orrs r3, r2
  25756. 800b2e2: d03a beq.n 800b35a <HAL_RCCEx_PeriphCLKConfig+0x442>
  25757. {
  25758. switch (PeriphClkInit->QspiClockSelection)
  25759. 800b2e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25760. 800b2e8: 6cdb ldr r3, [r3, #76] @ 0x4c
  25761. 800b2ea: 2b30 cmp r3, #48 @ 0x30
  25762. 800b2ec: d01f beq.n 800b32e <HAL_RCCEx_PeriphCLKConfig+0x416>
  25763. 800b2ee: 2b30 cmp r3, #48 @ 0x30
  25764. 800b2f0: d819 bhi.n 800b326 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  25765. 800b2f2: 2b20 cmp r3, #32
  25766. 800b2f4: d00c beq.n 800b310 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  25767. 800b2f6: 2b20 cmp r3, #32
  25768. 800b2f8: d815 bhi.n 800b326 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  25769. 800b2fa: 2b00 cmp r3, #0
  25770. 800b2fc: d019 beq.n 800b332 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  25771. 800b2fe: 2b10 cmp r3, #16
  25772. 800b300: d111 bne.n 800b326 <HAL_RCCEx_PeriphCLKConfig+0x40e>
  25773. {
  25774. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  25775. /* Enable QSPI Clock output generated form System PLL . */
  25776. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25777. 800b302: 4b77 ldr r3, [pc, #476] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25778. 800b304: 6adb ldr r3, [r3, #44] @ 0x2c
  25779. 800b306: 4a76 ldr r2, [pc, #472] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25780. 800b308: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25781. 800b30c: 62d3 str r3, [r2, #44] @ 0x2c
  25782. /* QSPI clock source configuration done later after clock selection check */
  25783. break;
  25784. 800b30e: e011 b.n 800b334 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25785. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  25786. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  25787. 800b310: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25788. 800b314: 3308 adds r3, #8
  25789. 800b316: 2102 movs r1, #2
  25790. 800b318: 4618 mov r0, r3
  25791. 800b31a: f001 faa9 bl 800c870 <RCCEx_PLL2_Config>
  25792. 800b31e: 4603 mov r3, r0
  25793. 800b320: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25794. /* QSPI clock source configuration done later after clock selection check */
  25795. break;
  25796. 800b324: e006 b.n 800b334 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25797. case RCC_QSPICLKSOURCE_D1HCLK:
  25798. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  25799. break;
  25800. default:
  25801. ret = HAL_ERROR;
  25802. 800b326: 2301 movs r3, #1
  25803. 800b328: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25804. break;
  25805. 800b32c: e002 b.n 800b334 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25806. break;
  25807. 800b32e: bf00 nop
  25808. 800b330: e000 b.n 800b334 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  25809. break;
  25810. 800b332: bf00 nop
  25811. }
  25812. if (ret == HAL_OK)
  25813. 800b334: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25814. 800b338: 2b00 cmp r3, #0
  25815. 800b33a: d10a bne.n 800b352 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  25816. {
  25817. /* Set the source of QSPI clock*/
  25818. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  25819. 800b33c: 4b68 ldr r3, [pc, #416] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25820. 800b33e: 6cdb ldr r3, [r3, #76] @ 0x4c
  25821. 800b340: f023 0130 bic.w r1, r3, #48 @ 0x30
  25822. 800b344: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25823. 800b348: 6cdb ldr r3, [r3, #76] @ 0x4c
  25824. 800b34a: 4a65 ldr r2, [pc, #404] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25825. 800b34c: 430b orrs r3, r1
  25826. 800b34e: 64d3 str r3, [r2, #76] @ 0x4c
  25827. 800b350: e003 b.n 800b35a <HAL_RCCEx_PeriphCLKConfig+0x442>
  25828. }
  25829. else
  25830. {
  25831. /* set overall return value */
  25832. status = ret;
  25833. 800b352: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25834. 800b356: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25835. }
  25836. }
  25837. #endif /*OCTOSPI*/
  25838. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  25839. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  25840. 800b35a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25841. 800b35e: e9d3 2300 ldrd r2, r3, [r3]
  25842. 800b362: f402 5380 and.w r3, r2, #4096 @ 0x1000
  25843. 800b366: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  25844. 800b36a: 2300 movs r3, #0
  25845. 800b36c: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  25846. 800b370: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  25847. 800b374: 460b mov r3, r1
  25848. 800b376: 4313 orrs r3, r2
  25849. 800b378: d051 beq.n 800b41e <HAL_RCCEx_PeriphCLKConfig+0x506>
  25850. {
  25851. switch (PeriphClkInit->Spi123ClockSelection)
  25852. 800b37a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25853. 800b37e: 6e1b ldr r3, [r3, #96] @ 0x60
  25854. 800b380: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  25855. 800b384: d035 beq.n 800b3f2 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  25856. 800b386: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  25857. 800b38a: d82e bhi.n 800b3ea <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25858. 800b38c: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  25859. 800b390: d031 beq.n 800b3f6 <HAL_RCCEx_PeriphCLKConfig+0x4de>
  25860. 800b392: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  25861. 800b396: d828 bhi.n 800b3ea <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25862. 800b398: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25863. 800b39c: d01a beq.n 800b3d4 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  25864. 800b39e: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  25865. 800b3a2: d822 bhi.n 800b3ea <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25866. 800b3a4: 2b00 cmp r3, #0
  25867. 800b3a6: d003 beq.n 800b3b0 <HAL_RCCEx_PeriphCLKConfig+0x498>
  25868. 800b3a8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  25869. 800b3ac: d007 beq.n 800b3be <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  25870. 800b3ae: e01c b.n 800b3ea <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  25871. {
  25872. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  25873. /* Enable SPI Clock output generated form System PLL . */
  25874. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  25875. 800b3b0: 4b4b ldr r3, [pc, #300] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25876. 800b3b2: 6adb ldr r3, [r3, #44] @ 0x2c
  25877. 800b3b4: 4a4a ldr r2, [pc, #296] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25878. 800b3b6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  25879. 800b3ba: 62d3 str r3, [r2, #44] @ 0x2c
  25880. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25881. break;
  25882. 800b3bc: e01c b.n 800b3f8 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25883. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  25884. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  25885. 800b3be: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25886. 800b3c2: 3308 adds r3, #8
  25887. 800b3c4: 2100 movs r1, #0
  25888. 800b3c6: 4618 mov r0, r3
  25889. 800b3c8: f001 fa52 bl 800c870 <RCCEx_PLL2_Config>
  25890. 800b3cc: 4603 mov r3, r0
  25891. 800b3ce: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25892. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25893. break;
  25894. 800b3d2: e011 b.n 800b3f8 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25895. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  25896. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  25897. 800b3d4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25898. 800b3d8: 3328 adds r3, #40 @ 0x28
  25899. 800b3da: 2100 movs r1, #0
  25900. 800b3dc: 4618 mov r0, r3
  25901. 800b3de: f001 faf9 bl 800c9d4 <RCCEx_PLL3_Config>
  25902. 800b3e2: 4603 mov r3, r0
  25903. 800b3e4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25904. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25905. break;
  25906. 800b3e8: e006 b.n 800b3f8 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25907. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  25908. /* SPI1/2/3 clock source configuration done later after clock selection check */
  25909. break;
  25910. default:
  25911. ret = HAL_ERROR;
  25912. 800b3ea: 2301 movs r3, #1
  25913. 800b3ec: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25914. break;
  25915. 800b3f0: e002 b.n 800b3f8 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25916. break;
  25917. 800b3f2: bf00 nop
  25918. 800b3f4: e000 b.n 800b3f8 <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  25919. break;
  25920. 800b3f6: bf00 nop
  25921. }
  25922. if (ret == HAL_OK)
  25923. 800b3f8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25924. 800b3fc: 2b00 cmp r3, #0
  25925. 800b3fe: d10a bne.n 800b416 <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  25926. {
  25927. /* Set the source of SPI1/2/3 clock*/
  25928. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  25929. 800b400: 4b37 ldr r3, [pc, #220] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25930. 800b402: 6d1b ldr r3, [r3, #80] @ 0x50
  25931. 800b404: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  25932. 800b408: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25933. 800b40c: 6e1b ldr r3, [r3, #96] @ 0x60
  25934. 800b40e: 4a34 ldr r2, [pc, #208] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  25935. 800b410: 430b orrs r3, r1
  25936. 800b412: 6513 str r3, [r2, #80] @ 0x50
  25937. 800b414: e003 b.n 800b41e <HAL_RCCEx_PeriphCLKConfig+0x506>
  25938. }
  25939. else
  25940. {
  25941. /* set overall return value */
  25942. status = ret;
  25943. 800b416: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  25944. 800b41a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  25945. }
  25946. }
  25947. /*---------------------------- SPI4/5 configuration -------------------------------*/
  25948. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  25949. 800b41e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25950. 800b422: e9d3 2300 ldrd r2, r3, [r3]
  25951. 800b426: f402 5300 and.w r3, r2, #8192 @ 0x2000
  25952. 800b42a: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  25953. 800b42e: 2300 movs r3, #0
  25954. 800b430: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  25955. 800b434: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  25956. 800b438: 460b mov r3, r1
  25957. 800b43a: 4313 orrs r3, r2
  25958. 800b43c: d056 beq.n 800b4ec <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  25959. {
  25960. switch (PeriphClkInit->Spi45ClockSelection)
  25961. 800b43e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25962. 800b442: 6e5b ldr r3, [r3, #100] @ 0x64
  25963. 800b444: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  25964. 800b448: d033 beq.n 800b4b2 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  25965. 800b44a: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  25966. 800b44e: d82c bhi.n 800b4aa <HAL_RCCEx_PeriphCLKConfig+0x592>
  25967. 800b450: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  25968. 800b454: d02f beq.n 800b4b6 <HAL_RCCEx_PeriphCLKConfig+0x59e>
  25969. 800b456: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  25970. 800b45a: d826 bhi.n 800b4aa <HAL_RCCEx_PeriphCLKConfig+0x592>
  25971. 800b45c: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  25972. 800b460: d02b beq.n 800b4ba <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  25973. 800b462: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  25974. 800b466: d820 bhi.n 800b4aa <HAL_RCCEx_PeriphCLKConfig+0x592>
  25975. 800b468: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  25976. 800b46c: d012 beq.n 800b494 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  25977. 800b46e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  25978. 800b472: d81a bhi.n 800b4aa <HAL_RCCEx_PeriphCLKConfig+0x592>
  25979. 800b474: 2b00 cmp r3, #0
  25980. 800b476: d022 beq.n 800b4be <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  25981. 800b478: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  25982. 800b47c: d115 bne.n 800b4aa <HAL_RCCEx_PeriphCLKConfig+0x592>
  25983. /* SPI4/5 clock source configuration done later after clock selection check */
  25984. break;
  25985. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  25986. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  25987. 800b47e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  25988. 800b482: 3308 adds r3, #8
  25989. 800b484: 2101 movs r1, #1
  25990. 800b486: 4618 mov r0, r3
  25991. 800b488: f001 f9f2 bl 800c870 <RCCEx_PLL2_Config>
  25992. 800b48c: 4603 mov r3, r0
  25993. 800b48e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  25994. /* SPI4/5 clock source configuration done later after clock selection check */
  25995. break;
  25996. 800b492: e015 b.n 800b4c0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  25997. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  25998. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  25999. 800b494: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26000. 800b498: 3328 adds r3, #40 @ 0x28
  26001. 800b49a: 2101 movs r1, #1
  26002. 800b49c: 4618 mov r0, r3
  26003. 800b49e: f001 fa99 bl 800c9d4 <RCCEx_PLL3_Config>
  26004. 800b4a2: 4603 mov r3, r0
  26005. 800b4a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26006. /* SPI4/5 clock source configuration done later after clock selection check */
  26007. break;
  26008. 800b4a8: e00a b.n 800b4c0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26009. /* HSE, oscillator is used as source of SPI4/5 clock */
  26010. /* SPI4/5 clock source configuration done later after clock selection check */
  26011. break;
  26012. default:
  26013. ret = HAL_ERROR;
  26014. 800b4aa: 2301 movs r3, #1
  26015. 800b4ac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26016. break;
  26017. 800b4b0: e006 b.n 800b4c0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26018. break;
  26019. 800b4b2: bf00 nop
  26020. 800b4b4: e004 b.n 800b4c0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26021. break;
  26022. 800b4b6: bf00 nop
  26023. 800b4b8: e002 b.n 800b4c0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26024. break;
  26025. 800b4ba: bf00 nop
  26026. 800b4bc: e000 b.n 800b4c0 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  26027. break;
  26028. 800b4be: bf00 nop
  26029. }
  26030. if (ret == HAL_OK)
  26031. 800b4c0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26032. 800b4c4: 2b00 cmp r3, #0
  26033. 800b4c6: d10d bne.n 800b4e4 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  26034. {
  26035. /* Set the source of SPI4/5 clock*/
  26036. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  26037. 800b4c8: 4b05 ldr r3, [pc, #20] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26038. 800b4ca: 6d1b ldr r3, [r3, #80] @ 0x50
  26039. 800b4cc: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  26040. 800b4d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26041. 800b4d4: 6e5b ldr r3, [r3, #100] @ 0x64
  26042. 800b4d6: 4a02 ldr r2, [pc, #8] @ (800b4e0 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  26043. 800b4d8: 430b orrs r3, r1
  26044. 800b4da: 6513 str r3, [r2, #80] @ 0x50
  26045. 800b4dc: e006 b.n 800b4ec <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  26046. 800b4de: bf00 nop
  26047. 800b4e0: 58024400 .word 0x58024400
  26048. }
  26049. else
  26050. {
  26051. /* set overall return value */
  26052. status = ret;
  26053. 800b4e4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26054. 800b4e8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26055. }
  26056. }
  26057. /*---------------------------- SPI6 configuration -------------------------------*/
  26058. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  26059. 800b4ec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26060. 800b4f0: e9d3 2300 ldrd r2, r3, [r3]
  26061. 800b4f4: f402 4380 and.w r3, r2, #16384 @ 0x4000
  26062. 800b4f8: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  26063. 800b4fc: 2300 movs r3, #0
  26064. 800b4fe: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  26065. 800b502: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  26066. 800b506: 460b mov r3, r1
  26067. 800b508: 4313 orrs r3, r2
  26068. 800b50a: d055 beq.n 800b5b8 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  26069. {
  26070. switch (PeriphClkInit->Spi6ClockSelection)
  26071. 800b50c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26072. 800b510: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  26073. 800b514: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26074. 800b518: d033 beq.n 800b582 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  26075. 800b51a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26076. 800b51e: d82c bhi.n 800b57a <HAL_RCCEx_PeriphCLKConfig+0x662>
  26077. 800b520: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26078. 800b524: d02f beq.n 800b586 <HAL_RCCEx_PeriphCLKConfig+0x66e>
  26079. 800b526: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26080. 800b52a: d826 bhi.n 800b57a <HAL_RCCEx_PeriphCLKConfig+0x662>
  26081. 800b52c: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26082. 800b530: d02b beq.n 800b58a <HAL_RCCEx_PeriphCLKConfig+0x672>
  26083. 800b532: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26084. 800b536: d820 bhi.n 800b57a <HAL_RCCEx_PeriphCLKConfig+0x662>
  26085. 800b538: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26086. 800b53c: d012 beq.n 800b564 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  26087. 800b53e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26088. 800b542: d81a bhi.n 800b57a <HAL_RCCEx_PeriphCLKConfig+0x662>
  26089. 800b544: 2b00 cmp r3, #0
  26090. 800b546: d022 beq.n 800b58e <HAL_RCCEx_PeriphCLKConfig+0x676>
  26091. 800b548: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  26092. 800b54c: d115 bne.n 800b57a <HAL_RCCEx_PeriphCLKConfig+0x662>
  26093. /* SPI6 clock source configuration done later after clock selection check */
  26094. break;
  26095. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  26096. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26097. 800b54e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26098. 800b552: 3308 adds r3, #8
  26099. 800b554: 2101 movs r1, #1
  26100. 800b556: 4618 mov r0, r3
  26101. 800b558: f001 f98a bl 800c870 <RCCEx_PLL2_Config>
  26102. 800b55c: 4603 mov r3, r0
  26103. 800b55e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26104. /* SPI6 clock source configuration done later after clock selection check */
  26105. break;
  26106. 800b562: e015 b.n 800b590 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26107. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  26108. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26109. 800b564: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26110. 800b568: 3328 adds r3, #40 @ 0x28
  26111. 800b56a: 2101 movs r1, #1
  26112. 800b56c: 4618 mov r0, r3
  26113. 800b56e: f001 fa31 bl 800c9d4 <RCCEx_PLL3_Config>
  26114. 800b572: 4603 mov r3, r0
  26115. 800b574: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26116. /* SPI6 clock source configuration done later after clock selection check */
  26117. break;
  26118. 800b578: e00a b.n 800b590 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26119. /* SPI6 clock source configuration done later after clock selection check */
  26120. break;
  26121. #endif
  26122. default:
  26123. ret = HAL_ERROR;
  26124. 800b57a: 2301 movs r3, #1
  26125. 800b57c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26126. break;
  26127. 800b580: e006 b.n 800b590 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26128. break;
  26129. 800b582: bf00 nop
  26130. 800b584: e004 b.n 800b590 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26131. break;
  26132. 800b586: bf00 nop
  26133. 800b588: e002 b.n 800b590 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26134. break;
  26135. 800b58a: bf00 nop
  26136. 800b58c: e000 b.n 800b590 <HAL_RCCEx_PeriphCLKConfig+0x678>
  26137. break;
  26138. 800b58e: bf00 nop
  26139. }
  26140. if (ret == HAL_OK)
  26141. 800b590: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26142. 800b594: 2b00 cmp r3, #0
  26143. 800b596: d10b bne.n 800b5b0 <HAL_RCCEx_PeriphCLKConfig+0x698>
  26144. {
  26145. /* Set the source of SPI6 clock*/
  26146. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  26147. 800b598: 4ba3 ldr r3, [pc, #652] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26148. 800b59a: 6d9b ldr r3, [r3, #88] @ 0x58
  26149. 800b59c: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  26150. 800b5a0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26151. 800b5a4: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  26152. 800b5a8: 4a9f ldr r2, [pc, #636] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26153. 800b5aa: 430b orrs r3, r1
  26154. 800b5ac: 6593 str r3, [r2, #88] @ 0x58
  26155. 800b5ae: e003 b.n 800b5b8 <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  26156. }
  26157. else
  26158. {
  26159. /* set overall return value */
  26160. status = ret;
  26161. 800b5b0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26162. 800b5b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26163. }
  26164. #endif /*DSI*/
  26165. #if defined(FDCAN1) || defined(FDCAN2)
  26166. /*---------------------------- FDCAN configuration -------------------------------*/
  26167. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  26168. 800b5b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26169. 800b5bc: e9d3 2300 ldrd r2, r3, [r3]
  26170. 800b5c0: f402 4300 and.w r3, r2, #32768 @ 0x8000
  26171. 800b5c4: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  26172. 800b5c8: 2300 movs r3, #0
  26173. 800b5ca: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  26174. 800b5ce: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  26175. 800b5d2: 460b mov r3, r1
  26176. 800b5d4: 4313 orrs r3, r2
  26177. 800b5d6: d037 beq.n 800b648 <HAL_RCCEx_PeriphCLKConfig+0x730>
  26178. {
  26179. switch (PeriphClkInit->FdcanClockSelection)
  26180. 800b5d8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26181. 800b5dc: 6f1b ldr r3, [r3, #112] @ 0x70
  26182. 800b5de: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26183. 800b5e2: d00e beq.n 800b602 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  26184. 800b5e4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26185. 800b5e8: d816 bhi.n 800b618 <HAL_RCCEx_PeriphCLKConfig+0x700>
  26186. 800b5ea: 2b00 cmp r3, #0
  26187. 800b5ec: d018 beq.n 800b620 <HAL_RCCEx_PeriphCLKConfig+0x708>
  26188. 800b5ee: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  26189. 800b5f2: d111 bne.n 800b618 <HAL_RCCEx_PeriphCLKConfig+0x700>
  26190. {
  26191. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  26192. /* Enable FDCAN Clock output generated form System PLL . */
  26193. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26194. 800b5f4: 4b8c ldr r3, [pc, #560] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26195. 800b5f6: 6adb ldr r3, [r3, #44] @ 0x2c
  26196. 800b5f8: 4a8b ldr r2, [pc, #556] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26197. 800b5fa: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26198. 800b5fe: 62d3 str r3, [r2, #44] @ 0x2c
  26199. /* FDCAN clock source configuration done later after clock selection check */
  26200. break;
  26201. 800b600: e00f b.n 800b622 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  26202. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  26203. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26204. 800b602: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26205. 800b606: 3308 adds r3, #8
  26206. 800b608: 2101 movs r1, #1
  26207. 800b60a: 4618 mov r0, r3
  26208. 800b60c: f001 f930 bl 800c870 <RCCEx_PLL2_Config>
  26209. 800b610: 4603 mov r3, r0
  26210. 800b612: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26211. /* FDCAN clock source configuration done later after clock selection check */
  26212. break;
  26213. 800b616: e004 b.n 800b622 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  26214. /* HSE is used as clock source for FDCAN*/
  26215. /* FDCAN clock source configuration done later after clock selection check */
  26216. break;
  26217. default:
  26218. ret = HAL_ERROR;
  26219. 800b618: 2301 movs r3, #1
  26220. 800b61a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26221. break;
  26222. 800b61e: e000 b.n 800b622 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  26223. break;
  26224. 800b620: bf00 nop
  26225. }
  26226. if (ret == HAL_OK)
  26227. 800b622: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26228. 800b626: 2b00 cmp r3, #0
  26229. 800b628: d10a bne.n 800b640 <HAL_RCCEx_PeriphCLKConfig+0x728>
  26230. {
  26231. /* Set the source of FDCAN clock*/
  26232. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  26233. 800b62a: 4b7f ldr r3, [pc, #508] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26234. 800b62c: 6d1b ldr r3, [r3, #80] @ 0x50
  26235. 800b62e: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  26236. 800b632: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26237. 800b636: 6f1b ldr r3, [r3, #112] @ 0x70
  26238. 800b638: 4a7b ldr r2, [pc, #492] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26239. 800b63a: 430b orrs r3, r1
  26240. 800b63c: 6513 str r3, [r2, #80] @ 0x50
  26241. 800b63e: e003 b.n 800b648 <HAL_RCCEx_PeriphCLKConfig+0x730>
  26242. }
  26243. else
  26244. {
  26245. /* set overall return value */
  26246. status = ret;
  26247. 800b640: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26248. 800b644: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26249. }
  26250. }
  26251. #endif /*FDCAN1 || FDCAN2*/
  26252. /*---------------------------- FMC configuration -------------------------------*/
  26253. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  26254. 800b648: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26255. 800b64c: e9d3 2300 ldrd r2, r3, [r3]
  26256. 800b650: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  26257. 800b654: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  26258. 800b658: 2300 movs r3, #0
  26259. 800b65a: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  26260. 800b65e: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  26261. 800b662: 460b mov r3, r1
  26262. 800b664: 4313 orrs r3, r2
  26263. 800b666: d039 beq.n 800b6dc <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  26264. {
  26265. switch (PeriphClkInit->FmcClockSelection)
  26266. 800b668: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26267. 800b66c: 6c9b ldr r3, [r3, #72] @ 0x48
  26268. 800b66e: 2b03 cmp r3, #3
  26269. 800b670: d81c bhi.n 800b6ac <HAL_RCCEx_PeriphCLKConfig+0x794>
  26270. 800b672: a201 add r2, pc, #4 @ (adr r2, 800b678 <HAL_RCCEx_PeriphCLKConfig+0x760>)
  26271. 800b674: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26272. 800b678: 0800b6b5 .word 0x0800b6b5
  26273. 800b67c: 0800b689 .word 0x0800b689
  26274. 800b680: 0800b697 .word 0x0800b697
  26275. 800b684: 0800b6b5 .word 0x0800b6b5
  26276. {
  26277. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  26278. /* Enable FMC Clock output generated form System PLL . */
  26279. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  26280. 800b688: 4b67 ldr r3, [pc, #412] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26281. 800b68a: 6adb ldr r3, [r3, #44] @ 0x2c
  26282. 800b68c: 4a66 ldr r2, [pc, #408] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26283. 800b68e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26284. 800b692: 62d3 str r3, [r2, #44] @ 0x2c
  26285. /* FMC clock source configuration done later after clock selection check */
  26286. break;
  26287. 800b694: e00f b.n 800b6b6 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  26288. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  26289. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  26290. 800b696: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26291. 800b69a: 3308 adds r3, #8
  26292. 800b69c: 2102 movs r1, #2
  26293. 800b69e: 4618 mov r0, r3
  26294. 800b6a0: f001 f8e6 bl 800c870 <RCCEx_PLL2_Config>
  26295. 800b6a4: 4603 mov r3, r0
  26296. 800b6a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26297. /* FMC clock source configuration done later after clock selection check */
  26298. break;
  26299. 800b6aa: e004 b.n 800b6b6 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  26300. case RCC_FMCCLKSOURCE_HCLK:
  26301. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  26302. break;
  26303. default:
  26304. ret = HAL_ERROR;
  26305. 800b6ac: 2301 movs r3, #1
  26306. 800b6ae: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26307. break;
  26308. 800b6b2: e000 b.n 800b6b6 <HAL_RCCEx_PeriphCLKConfig+0x79e>
  26309. break;
  26310. 800b6b4: bf00 nop
  26311. }
  26312. if (ret == HAL_OK)
  26313. 800b6b6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26314. 800b6ba: 2b00 cmp r3, #0
  26315. 800b6bc: d10a bne.n 800b6d4 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  26316. {
  26317. /* Set the source of FMC clock*/
  26318. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  26319. 800b6be: 4b5a ldr r3, [pc, #360] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26320. 800b6c0: 6cdb ldr r3, [r3, #76] @ 0x4c
  26321. 800b6c2: f023 0103 bic.w r1, r3, #3
  26322. 800b6c6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26323. 800b6ca: 6c9b ldr r3, [r3, #72] @ 0x48
  26324. 800b6cc: 4a56 ldr r2, [pc, #344] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26325. 800b6ce: 430b orrs r3, r1
  26326. 800b6d0: 64d3 str r3, [r2, #76] @ 0x4c
  26327. 800b6d2: e003 b.n 800b6dc <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  26328. }
  26329. else
  26330. {
  26331. /* set overall return value */
  26332. status = ret;
  26333. 800b6d4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26334. 800b6d8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26335. }
  26336. }
  26337. /*---------------------------- RTC configuration -------------------------------*/
  26338. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  26339. 800b6dc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26340. 800b6e0: e9d3 2300 ldrd r2, r3, [r3]
  26341. 800b6e4: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  26342. 800b6e8: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  26343. 800b6ec: 2300 movs r3, #0
  26344. 800b6ee: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  26345. 800b6f2: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  26346. 800b6f6: 460b mov r3, r1
  26347. 800b6f8: 4313 orrs r3, r2
  26348. 800b6fa: f000 809f beq.w 800b83c <HAL_RCCEx_PeriphCLKConfig+0x924>
  26349. {
  26350. /* check for RTC Parameters used to output RTCCLK */
  26351. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  26352. /* Enable write access to Backup domain */
  26353. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  26354. 800b6fe: 4b4b ldr r3, [pc, #300] @ (800b82c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  26355. 800b700: 681b ldr r3, [r3, #0]
  26356. 800b702: 4a4a ldr r2, [pc, #296] @ (800b82c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  26357. 800b704: f443 7380 orr.w r3, r3, #256 @ 0x100
  26358. 800b708: 6013 str r3, [r2, #0]
  26359. /* Wait for Backup domain Write protection disable */
  26360. tickstart = HAL_GetTick();
  26361. 800b70a: f7f9 fd99 bl 8005240 <HAL_GetTick>
  26362. 800b70e: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  26363. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26364. 800b712: e00b b.n 800b72c <HAL_RCCEx_PeriphCLKConfig+0x814>
  26365. {
  26366. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  26367. 800b714: f7f9 fd94 bl 8005240 <HAL_GetTick>
  26368. 800b718: 4602 mov r2, r0
  26369. 800b71a: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  26370. 800b71e: 1ad3 subs r3, r2, r3
  26371. 800b720: 2b64 cmp r3, #100 @ 0x64
  26372. 800b722: d903 bls.n 800b72c <HAL_RCCEx_PeriphCLKConfig+0x814>
  26373. {
  26374. ret = HAL_TIMEOUT;
  26375. 800b724: 2303 movs r3, #3
  26376. 800b726: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26377. break;
  26378. 800b72a: e005 b.n 800b738 <HAL_RCCEx_PeriphCLKConfig+0x820>
  26379. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  26380. 800b72c: 4b3f ldr r3, [pc, #252] @ (800b82c <HAL_RCCEx_PeriphCLKConfig+0x914>)
  26381. 800b72e: 681b ldr r3, [r3, #0]
  26382. 800b730: f403 7380 and.w r3, r3, #256 @ 0x100
  26383. 800b734: 2b00 cmp r3, #0
  26384. 800b736: d0ed beq.n 800b714 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  26385. }
  26386. }
  26387. if (ret == HAL_OK)
  26388. 800b738: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26389. 800b73c: 2b00 cmp r3, #0
  26390. 800b73e: d179 bne.n 800b834 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  26391. {
  26392. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  26393. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  26394. 800b740: 4b39 ldr r3, [pc, #228] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26395. 800b742: 6f1a ldr r2, [r3, #112] @ 0x70
  26396. 800b744: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26397. 800b748: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  26398. 800b74c: 4053 eors r3, r2
  26399. 800b74e: f403 7340 and.w r3, r3, #768 @ 0x300
  26400. 800b752: 2b00 cmp r3, #0
  26401. 800b754: d015 beq.n 800b782 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  26402. {
  26403. /* Store the content of BDCR register before the reset of Backup Domain */
  26404. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  26405. 800b756: 4b34 ldr r3, [pc, #208] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26406. 800b758: 6f1b ldr r3, [r3, #112] @ 0x70
  26407. 800b75a: f423 7340 bic.w r3, r3, #768 @ 0x300
  26408. 800b75e: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  26409. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  26410. __HAL_RCC_BACKUPRESET_FORCE();
  26411. 800b762: 4b31 ldr r3, [pc, #196] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26412. 800b764: 6f1b ldr r3, [r3, #112] @ 0x70
  26413. 800b766: 4a30 ldr r2, [pc, #192] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26414. 800b768: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26415. 800b76c: 6713 str r3, [r2, #112] @ 0x70
  26416. __HAL_RCC_BACKUPRESET_RELEASE();
  26417. 800b76e: 4b2e ldr r3, [pc, #184] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26418. 800b770: 6f1b ldr r3, [r3, #112] @ 0x70
  26419. 800b772: 4a2d ldr r2, [pc, #180] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26420. 800b774: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26421. 800b778: 6713 str r3, [r2, #112] @ 0x70
  26422. /* Restore the Content of BDCR register */
  26423. RCC->BDCR = tmpreg;
  26424. 800b77a: 4a2b ldr r2, [pc, #172] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26425. 800b77c: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  26426. 800b780: 6713 str r3, [r2, #112] @ 0x70
  26427. }
  26428. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  26429. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  26430. 800b782: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26431. 800b786: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  26432. 800b78a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  26433. 800b78e: d118 bne.n 800b7c2 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  26434. {
  26435. /* Get Start Tick*/
  26436. tickstart = HAL_GetTick();
  26437. 800b790: f7f9 fd56 bl 8005240 <HAL_GetTick>
  26438. 800b794: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  26439. /* Wait till LSE is ready */
  26440. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26441. 800b798: e00d b.n 800b7b6 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  26442. {
  26443. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  26444. 800b79a: f7f9 fd51 bl 8005240 <HAL_GetTick>
  26445. 800b79e: 4602 mov r2, r0
  26446. 800b7a0: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  26447. 800b7a4: 1ad2 subs r2, r2, r3
  26448. 800b7a6: f241 3388 movw r3, #5000 @ 0x1388
  26449. 800b7aa: 429a cmp r2, r3
  26450. 800b7ac: d903 bls.n 800b7b6 <HAL_RCCEx_PeriphCLKConfig+0x89e>
  26451. {
  26452. ret = HAL_TIMEOUT;
  26453. 800b7ae: 2303 movs r3, #3
  26454. 800b7b0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26455. break;
  26456. 800b7b4: e005 b.n 800b7c2 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  26457. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  26458. 800b7b6: 4b1c ldr r3, [pc, #112] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26459. 800b7b8: 6f1b ldr r3, [r3, #112] @ 0x70
  26460. 800b7ba: f003 0302 and.w r3, r3, #2
  26461. 800b7be: 2b00 cmp r3, #0
  26462. 800b7c0: d0eb beq.n 800b79a <HAL_RCCEx_PeriphCLKConfig+0x882>
  26463. }
  26464. }
  26465. }
  26466. if (ret == HAL_OK)
  26467. 800b7c2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26468. 800b7c6: 2b00 cmp r3, #0
  26469. 800b7c8: d129 bne.n 800b81e <HAL_RCCEx_PeriphCLKConfig+0x906>
  26470. {
  26471. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  26472. 800b7ca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26473. 800b7ce: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  26474. 800b7d2: f403 7340 and.w r3, r3, #768 @ 0x300
  26475. 800b7d6: f5b3 7f40 cmp.w r3, #768 @ 0x300
  26476. 800b7da: d10e bne.n 800b7fa <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  26477. 800b7dc: 4b12 ldr r3, [pc, #72] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26478. 800b7de: 691b ldr r3, [r3, #16]
  26479. 800b7e0: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  26480. 800b7e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26481. 800b7e8: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  26482. 800b7ec: 091a lsrs r2, r3, #4
  26483. 800b7ee: 4b10 ldr r3, [pc, #64] @ (800b830 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  26484. 800b7f0: 4013 ands r3, r2
  26485. 800b7f2: 4a0d ldr r2, [pc, #52] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26486. 800b7f4: 430b orrs r3, r1
  26487. 800b7f6: 6113 str r3, [r2, #16]
  26488. 800b7f8: e005 b.n 800b806 <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  26489. 800b7fa: 4b0b ldr r3, [pc, #44] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26490. 800b7fc: 691b ldr r3, [r3, #16]
  26491. 800b7fe: 4a0a ldr r2, [pc, #40] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26492. 800b800: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  26493. 800b804: 6113 str r3, [r2, #16]
  26494. 800b806: 4b08 ldr r3, [pc, #32] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26495. 800b808: 6f19 ldr r1, [r3, #112] @ 0x70
  26496. 800b80a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26497. 800b80e: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  26498. 800b812: f3c3 030b ubfx r3, r3, #0, #12
  26499. 800b816: 4a04 ldr r2, [pc, #16] @ (800b828 <HAL_RCCEx_PeriphCLKConfig+0x910>)
  26500. 800b818: 430b orrs r3, r1
  26501. 800b81a: 6713 str r3, [r2, #112] @ 0x70
  26502. 800b81c: e00e b.n 800b83c <HAL_RCCEx_PeriphCLKConfig+0x924>
  26503. }
  26504. else
  26505. {
  26506. /* set overall return value */
  26507. status = ret;
  26508. 800b81e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26509. 800b822: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26510. 800b826: e009 b.n 800b83c <HAL_RCCEx_PeriphCLKConfig+0x924>
  26511. 800b828: 58024400 .word 0x58024400
  26512. 800b82c: 58024800 .word 0x58024800
  26513. 800b830: 00ffffcf .word 0x00ffffcf
  26514. }
  26515. }
  26516. else
  26517. {
  26518. /* set overall return value */
  26519. status = ret;
  26520. 800b834: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26521. 800b838: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26522. }
  26523. }
  26524. /*-------------------------- USART1/6 configuration --------------------------*/
  26525. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  26526. 800b83c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26527. 800b840: e9d3 2300 ldrd r2, r3, [r3]
  26528. 800b844: f002 0301 and.w r3, r2, #1
  26529. 800b848: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  26530. 800b84c: 2300 movs r3, #0
  26531. 800b84e: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  26532. 800b852: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  26533. 800b856: 460b mov r3, r1
  26534. 800b858: 4313 orrs r3, r2
  26535. 800b85a: f000 8089 beq.w 800b970 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  26536. {
  26537. switch (PeriphClkInit->Usart16ClockSelection)
  26538. 800b85e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26539. 800b862: 6fdb ldr r3, [r3, #124] @ 0x7c
  26540. 800b864: 2b28 cmp r3, #40 @ 0x28
  26541. 800b866: d86b bhi.n 800b940 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  26542. 800b868: a201 add r2, pc, #4 @ (adr r2, 800b870 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  26543. 800b86a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26544. 800b86e: bf00 nop
  26545. 800b870: 0800b949 .word 0x0800b949
  26546. 800b874: 0800b941 .word 0x0800b941
  26547. 800b878: 0800b941 .word 0x0800b941
  26548. 800b87c: 0800b941 .word 0x0800b941
  26549. 800b880: 0800b941 .word 0x0800b941
  26550. 800b884: 0800b941 .word 0x0800b941
  26551. 800b888: 0800b941 .word 0x0800b941
  26552. 800b88c: 0800b941 .word 0x0800b941
  26553. 800b890: 0800b915 .word 0x0800b915
  26554. 800b894: 0800b941 .word 0x0800b941
  26555. 800b898: 0800b941 .word 0x0800b941
  26556. 800b89c: 0800b941 .word 0x0800b941
  26557. 800b8a0: 0800b941 .word 0x0800b941
  26558. 800b8a4: 0800b941 .word 0x0800b941
  26559. 800b8a8: 0800b941 .word 0x0800b941
  26560. 800b8ac: 0800b941 .word 0x0800b941
  26561. 800b8b0: 0800b92b .word 0x0800b92b
  26562. 800b8b4: 0800b941 .word 0x0800b941
  26563. 800b8b8: 0800b941 .word 0x0800b941
  26564. 800b8bc: 0800b941 .word 0x0800b941
  26565. 800b8c0: 0800b941 .word 0x0800b941
  26566. 800b8c4: 0800b941 .word 0x0800b941
  26567. 800b8c8: 0800b941 .word 0x0800b941
  26568. 800b8cc: 0800b941 .word 0x0800b941
  26569. 800b8d0: 0800b949 .word 0x0800b949
  26570. 800b8d4: 0800b941 .word 0x0800b941
  26571. 800b8d8: 0800b941 .word 0x0800b941
  26572. 800b8dc: 0800b941 .word 0x0800b941
  26573. 800b8e0: 0800b941 .word 0x0800b941
  26574. 800b8e4: 0800b941 .word 0x0800b941
  26575. 800b8e8: 0800b941 .word 0x0800b941
  26576. 800b8ec: 0800b941 .word 0x0800b941
  26577. 800b8f0: 0800b949 .word 0x0800b949
  26578. 800b8f4: 0800b941 .word 0x0800b941
  26579. 800b8f8: 0800b941 .word 0x0800b941
  26580. 800b8fc: 0800b941 .word 0x0800b941
  26581. 800b900: 0800b941 .word 0x0800b941
  26582. 800b904: 0800b941 .word 0x0800b941
  26583. 800b908: 0800b941 .word 0x0800b941
  26584. 800b90c: 0800b941 .word 0x0800b941
  26585. 800b910: 0800b949 .word 0x0800b949
  26586. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  26587. /* USART1/6 clock source configuration done later after clock selection check */
  26588. break;
  26589. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  26590. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26591. 800b914: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26592. 800b918: 3308 adds r3, #8
  26593. 800b91a: 2101 movs r1, #1
  26594. 800b91c: 4618 mov r0, r3
  26595. 800b91e: f000 ffa7 bl 800c870 <RCCEx_PLL2_Config>
  26596. 800b922: 4603 mov r3, r0
  26597. 800b924: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26598. /* USART1/6 clock source configuration done later after clock selection check */
  26599. break;
  26600. 800b928: e00f b.n 800b94a <HAL_RCCEx_PeriphCLKConfig+0xa32>
  26601. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  26602. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26603. 800b92a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26604. 800b92e: 3328 adds r3, #40 @ 0x28
  26605. 800b930: 2101 movs r1, #1
  26606. 800b932: 4618 mov r0, r3
  26607. 800b934: f001 f84e bl 800c9d4 <RCCEx_PLL3_Config>
  26608. 800b938: 4603 mov r3, r0
  26609. 800b93a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26610. /* USART1/6 clock source configuration done later after clock selection check */
  26611. break;
  26612. 800b93e: e004 b.n 800b94a <HAL_RCCEx_PeriphCLKConfig+0xa32>
  26613. /* LSE, oscillator is used as source of USART1/6 clock */
  26614. /* USART1/6 clock source configuration done later after clock selection check */
  26615. break;
  26616. default:
  26617. ret = HAL_ERROR;
  26618. 800b940: 2301 movs r3, #1
  26619. 800b942: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26620. break;
  26621. 800b946: e000 b.n 800b94a <HAL_RCCEx_PeriphCLKConfig+0xa32>
  26622. break;
  26623. 800b948: bf00 nop
  26624. }
  26625. if (ret == HAL_OK)
  26626. 800b94a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26627. 800b94e: 2b00 cmp r3, #0
  26628. 800b950: d10a bne.n 800b968 <HAL_RCCEx_PeriphCLKConfig+0xa50>
  26629. {
  26630. /* Set the source of USART1/6 clock */
  26631. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  26632. 800b952: 4bbf ldr r3, [pc, #764] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26633. 800b954: 6d5b ldr r3, [r3, #84] @ 0x54
  26634. 800b956: f023 0138 bic.w r1, r3, #56 @ 0x38
  26635. 800b95a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26636. 800b95e: 6fdb ldr r3, [r3, #124] @ 0x7c
  26637. 800b960: 4abb ldr r2, [pc, #748] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26638. 800b962: 430b orrs r3, r1
  26639. 800b964: 6553 str r3, [r2, #84] @ 0x54
  26640. 800b966: e003 b.n 800b970 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  26641. }
  26642. else
  26643. {
  26644. /* set overall return value */
  26645. status = ret;
  26646. 800b968: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26647. 800b96c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26648. }
  26649. }
  26650. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  26651. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  26652. 800b970: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26653. 800b974: e9d3 2300 ldrd r2, r3, [r3]
  26654. 800b978: f002 0302 and.w r3, r2, #2
  26655. 800b97c: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  26656. 800b980: 2300 movs r3, #0
  26657. 800b982: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  26658. 800b986: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  26659. 800b98a: 460b mov r3, r1
  26660. 800b98c: 4313 orrs r3, r2
  26661. 800b98e: d041 beq.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  26662. {
  26663. switch (PeriphClkInit->Usart234578ClockSelection)
  26664. 800b990: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26665. 800b994: 6f9b ldr r3, [r3, #120] @ 0x78
  26666. 800b996: 2b05 cmp r3, #5
  26667. 800b998: d824 bhi.n 800b9e4 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  26668. 800b99a: a201 add r2, pc, #4 @ (adr r2, 800b9a0 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  26669. 800b99c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26670. 800b9a0: 0800b9ed .word 0x0800b9ed
  26671. 800b9a4: 0800b9b9 .word 0x0800b9b9
  26672. 800b9a8: 0800b9cf .word 0x0800b9cf
  26673. 800b9ac: 0800b9ed .word 0x0800b9ed
  26674. 800b9b0: 0800b9ed .word 0x0800b9ed
  26675. 800b9b4: 0800b9ed .word 0x0800b9ed
  26676. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  26677. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26678. break;
  26679. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  26680. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26681. 800b9b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26682. 800b9bc: 3308 adds r3, #8
  26683. 800b9be: 2101 movs r1, #1
  26684. 800b9c0: 4618 mov r0, r3
  26685. 800b9c2: f000 ff55 bl 800c870 <RCCEx_PLL2_Config>
  26686. 800b9c6: 4603 mov r3, r0
  26687. 800b9c8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26688. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26689. break;
  26690. 800b9cc: e00f b.n 800b9ee <HAL_RCCEx_PeriphCLKConfig+0xad6>
  26691. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  26692. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26693. 800b9ce: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26694. 800b9d2: 3328 adds r3, #40 @ 0x28
  26695. 800b9d4: 2101 movs r1, #1
  26696. 800b9d6: 4618 mov r0, r3
  26697. 800b9d8: f000 fffc bl 800c9d4 <RCCEx_PLL3_Config>
  26698. 800b9dc: 4603 mov r3, r0
  26699. 800b9de: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26700. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26701. break;
  26702. 800b9e2: e004 b.n 800b9ee <HAL_RCCEx_PeriphCLKConfig+0xad6>
  26703. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  26704. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  26705. break;
  26706. default:
  26707. ret = HAL_ERROR;
  26708. 800b9e4: 2301 movs r3, #1
  26709. 800b9e6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26710. break;
  26711. 800b9ea: e000 b.n 800b9ee <HAL_RCCEx_PeriphCLKConfig+0xad6>
  26712. break;
  26713. 800b9ec: bf00 nop
  26714. }
  26715. if (ret == HAL_OK)
  26716. 800b9ee: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26717. 800b9f2: 2b00 cmp r3, #0
  26718. 800b9f4: d10a bne.n 800ba0c <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  26719. {
  26720. /* Set the source of USART2/3/4/5/7/8 clock */
  26721. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  26722. 800b9f6: 4b96 ldr r3, [pc, #600] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26723. 800b9f8: 6d5b ldr r3, [r3, #84] @ 0x54
  26724. 800b9fa: f023 0107 bic.w r1, r3, #7
  26725. 800b9fe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26726. 800ba02: 6f9b ldr r3, [r3, #120] @ 0x78
  26727. 800ba04: 4a92 ldr r2, [pc, #584] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26728. 800ba06: 430b orrs r3, r1
  26729. 800ba08: 6553 str r3, [r2, #84] @ 0x54
  26730. 800ba0a: e003 b.n 800ba14 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  26731. }
  26732. else
  26733. {
  26734. /* set overall return value */
  26735. status = ret;
  26736. 800ba0c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26737. 800ba10: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26738. }
  26739. }
  26740. /*-------------------------- LPUART1 Configuration -------------------------*/
  26741. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  26742. 800ba14: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26743. 800ba18: e9d3 2300 ldrd r2, r3, [r3]
  26744. 800ba1c: f002 0304 and.w r3, r2, #4
  26745. 800ba20: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  26746. 800ba24: 2300 movs r3, #0
  26747. 800ba26: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  26748. 800ba2a: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  26749. 800ba2e: 460b mov r3, r1
  26750. 800ba30: 4313 orrs r3, r2
  26751. 800ba32: d044 beq.n 800babe <HAL_RCCEx_PeriphCLKConfig+0xba6>
  26752. {
  26753. switch (PeriphClkInit->Lpuart1ClockSelection)
  26754. 800ba34: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26755. 800ba38: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  26756. 800ba3c: 2b05 cmp r3, #5
  26757. 800ba3e: d825 bhi.n 800ba8c <HAL_RCCEx_PeriphCLKConfig+0xb74>
  26758. 800ba40: a201 add r2, pc, #4 @ (adr r2, 800ba48 <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  26759. 800ba42: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  26760. 800ba46: bf00 nop
  26761. 800ba48: 0800ba95 .word 0x0800ba95
  26762. 800ba4c: 0800ba61 .word 0x0800ba61
  26763. 800ba50: 0800ba77 .word 0x0800ba77
  26764. 800ba54: 0800ba95 .word 0x0800ba95
  26765. 800ba58: 0800ba95 .word 0x0800ba95
  26766. 800ba5c: 0800ba95 .word 0x0800ba95
  26767. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  26768. /* LPUART1 clock source configuration done later after clock selection check */
  26769. break;
  26770. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  26771. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  26772. 800ba60: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26773. 800ba64: 3308 adds r3, #8
  26774. 800ba66: 2101 movs r1, #1
  26775. 800ba68: 4618 mov r0, r3
  26776. 800ba6a: f000 ff01 bl 800c870 <RCCEx_PLL2_Config>
  26777. 800ba6e: 4603 mov r3, r0
  26778. 800ba70: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26779. /* LPUART1 clock source configuration done later after clock selection check */
  26780. break;
  26781. 800ba74: e00f b.n 800ba96 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  26782. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  26783. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  26784. 800ba76: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26785. 800ba7a: 3328 adds r3, #40 @ 0x28
  26786. 800ba7c: 2101 movs r1, #1
  26787. 800ba7e: 4618 mov r0, r3
  26788. 800ba80: f000 ffa8 bl 800c9d4 <RCCEx_PLL3_Config>
  26789. 800ba84: 4603 mov r3, r0
  26790. 800ba86: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26791. /* LPUART1 clock source configuration done later after clock selection check */
  26792. break;
  26793. 800ba8a: e004 b.n 800ba96 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  26794. /* LSE, oscillator is used as source of LPUART1 clock */
  26795. /* LPUART1 clock source configuration done later after clock selection check */
  26796. break;
  26797. default:
  26798. ret = HAL_ERROR;
  26799. 800ba8c: 2301 movs r3, #1
  26800. 800ba8e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26801. break;
  26802. 800ba92: e000 b.n 800ba96 <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  26803. break;
  26804. 800ba94: bf00 nop
  26805. }
  26806. if (ret == HAL_OK)
  26807. 800ba96: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26808. 800ba9a: 2b00 cmp r3, #0
  26809. 800ba9c: d10b bne.n 800bab6 <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  26810. {
  26811. /* Set the source of LPUART1 clock */
  26812. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  26813. 800ba9e: 4b6c ldr r3, [pc, #432] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26814. 800baa0: 6d9b ldr r3, [r3, #88] @ 0x58
  26815. 800baa2: f023 0107 bic.w r1, r3, #7
  26816. 800baa6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26817. 800baaa: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  26818. 800baae: 4a68 ldr r2, [pc, #416] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26819. 800bab0: 430b orrs r3, r1
  26820. 800bab2: 6593 str r3, [r2, #88] @ 0x58
  26821. 800bab4: e003 b.n 800babe <HAL_RCCEx_PeriphCLKConfig+0xba6>
  26822. }
  26823. else
  26824. {
  26825. /* set overall return value */
  26826. status = ret;
  26827. 800bab6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26828. 800baba: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26829. }
  26830. }
  26831. /*---------------------------- LPTIM1 configuration -------------------------------*/
  26832. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  26833. 800babe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26834. 800bac2: e9d3 2300 ldrd r2, r3, [r3]
  26835. 800bac6: f002 0320 and.w r3, r2, #32
  26836. 800baca: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  26837. 800bace: 2300 movs r3, #0
  26838. 800bad0: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  26839. 800bad4: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  26840. 800bad8: 460b mov r3, r1
  26841. 800bada: 4313 orrs r3, r2
  26842. 800badc: d055 beq.n 800bb8a <HAL_RCCEx_PeriphCLKConfig+0xc72>
  26843. {
  26844. switch (PeriphClkInit->Lptim1ClockSelection)
  26845. 800bade: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26846. 800bae2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  26847. 800bae6: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26848. 800baea: d033 beq.n 800bb54 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  26849. 800baec: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  26850. 800baf0: d82c bhi.n 800bb4c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26851. 800baf2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26852. 800baf6: d02f beq.n 800bb58 <HAL_RCCEx_PeriphCLKConfig+0xc40>
  26853. 800baf8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  26854. 800bafc: d826 bhi.n 800bb4c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26855. 800bafe: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26856. 800bb02: d02b beq.n 800bb5c <HAL_RCCEx_PeriphCLKConfig+0xc44>
  26857. 800bb04: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  26858. 800bb08: d820 bhi.n 800bb4c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26859. 800bb0a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26860. 800bb0e: d012 beq.n 800bb36 <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  26861. 800bb10: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  26862. 800bb14: d81a bhi.n 800bb4c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26863. 800bb16: 2b00 cmp r3, #0
  26864. 800bb18: d022 beq.n 800bb60 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  26865. 800bb1a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  26866. 800bb1e: d115 bne.n 800bb4c <HAL_RCCEx_PeriphCLKConfig+0xc34>
  26867. /* LPTIM1 clock source configuration done later after clock selection check */
  26868. break;
  26869. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  26870. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26871. 800bb20: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26872. 800bb24: 3308 adds r3, #8
  26873. 800bb26: 2100 movs r1, #0
  26874. 800bb28: 4618 mov r0, r3
  26875. 800bb2a: f000 fea1 bl 800c870 <RCCEx_PLL2_Config>
  26876. 800bb2e: 4603 mov r3, r0
  26877. 800bb30: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26878. /* LPTIM1 clock source configuration done later after clock selection check */
  26879. break;
  26880. 800bb34: e015 b.n 800bb62 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26881. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  26882. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  26883. 800bb36: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26884. 800bb3a: 3328 adds r3, #40 @ 0x28
  26885. 800bb3c: 2102 movs r1, #2
  26886. 800bb3e: 4618 mov r0, r3
  26887. 800bb40: f000 ff48 bl 800c9d4 <RCCEx_PLL3_Config>
  26888. 800bb44: 4603 mov r3, r0
  26889. 800bb46: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26890. /* LPTIM1 clock source configuration done later after clock selection check */
  26891. break;
  26892. 800bb4a: e00a b.n 800bb62 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26893. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  26894. /* LPTIM1 clock source configuration done later after clock selection check */
  26895. break;
  26896. default:
  26897. ret = HAL_ERROR;
  26898. 800bb4c: 2301 movs r3, #1
  26899. 800bb4e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26900. break;
  26901. 800bb52: e006 b.n 800bb62 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26902. break;
  26903. 800bb54: bf00 nop
  26904. 800bb56: e004 b.n 800bb62 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26905. break;
  26906. 800bb58: bf00 nop
  26907. 800bb5a: e002 b.n 800bb62 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26908. break;
  26909. 800bb5c: bf00 nop
  26910. 800bb5e: e000 b.n 800bb62 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  26911. break;
  26912. 800bb60: bf00 nop
  26913. }
  26914. if (ret == HAL_OK)
  26915. 800bb62: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26916. 800bb66: 2b00 cmp r3, #0
  26917. 800bb68: d10b bne.n 800bb82 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  26918. {
  26919. /* Set the source of LPTIM1 clock*/
  26920. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  26921. 800bb6a: 4b39 ldr r3, [pc, #228] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26922. 800bb6c: 6d5b ldr r3, [r3, #84] @ 0x54
  26923. 800bb6e: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  26924. 800bb72: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26925. 800bb76: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  26926. 800bb7a: 4a35 ldr r2, [pc, #212] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  26927. 800bb7c: 430b orrs r3, r1
  26928. 800bb7e: 6553 str r3, [r2, #84] @ 0x54
  26929. 800bb80: e003 b.n 800bb8a <HAL_RCCEx_PeriphCLKConfig+0xc72>
  26930. }
  26931. else
  26932. {
  26933. /* set overall return value */
  26934. status = ret;
  26935. 800bb82: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  26936. 800bb86: f887 311e strb.w r3, [r7, #286] @ 0x11e
  26937. }
  26938. }
  26939. /*---------------------------- LPTIM2 configuration -------------------------------*/
  26940. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  26941. 800bb8a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26942. 800bb8e: e9d3 2300 ldrd r2, r3, [r3]
  26943. 800bb92: f002 0340 and.w r3, r2, #64 @ 0x40
  26944. 800bb96: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  26945. 800bb9a: 2300 movs r3, #0
  26946. 800bb9c: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  26947. 800bba0: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  26948. 800bba4: 460b mov r3, r1
  26949. 800bba6: 4313 orrs r3, r2
  26950. 800bba8: d058 beq.n 800bc5c <HAL_RCCEx_PeriphCLKConfig+0xd44>
  26951. {
  26952. switch (PeriphClkInit->Lptim2ClockSelection)
  26953. 800bbaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26954. 800bbae: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  26955. 800bbb2: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  26956. 800bbb6: d033 beq.n 800bc20 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  26957. 800bbb8: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  26958. 800bbbc: d82c bhi.n 800bc18 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26959. 800bbbe: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  26960. 800bbc2: d02f beq.n 800bc24 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  26961. 800bbc4: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  26962. 800bbc8: d826 bhi.n 800bc18 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26963. 800bbca: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  26964. 800bbce: d02b beq.n 800bc28 <HAL_RCCEx_PeriphCLKConfig+0xd10>
  26965. 800bbd0: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  26966. 800bbd4: d820 bhi.n 800bc18 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26967. 800bbd6: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  26968. 800bbda: d012 beq.n 800bc02 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  26969. 800bbdc: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  26970. 800bbe0: d81a bhi.n 800bc18 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26971. 800bbe2: 2b00 cmp r3, #0
  26972. 800bbe4: d022 beq.n 800bc2c <HAL_RCCEx_PeriphCLKConfig+0xd14>
  26973. 800bbe6: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  26974. 800bbea: d115 bne.n 800bc18 <HAL_RCCEx_PeriphCLKConfig+0xd00>
  26975. /* LPTIM2 clock source configuration done later after clock selection check */
  26976. break;
  26977. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  26978. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  26979. 800bbec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26980. 800bbf0: 3308 adds r3, #8
  26981. 800bbf2: 2100 movs r1, #0
  26982. 800bbf4: 4618 mov r0, r3
  26983. 800bbf6: f000 fe3b bl 800c870 <RCCEx_PLL2_Config>
  26984. 800bbfa: 4603 mov r3, r0
  26985. 800bbfc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26986. /* LPTIM2 clock source configuration done later after clock selection check */
  26987. break;
  26988. 800bc00: e015 b.n 800bc2e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  26989. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  26990. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  26991. 800bc02: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  26992. 800bc06: 3328 adds r3, #40 @ 0x28
  26993. 800bc08: 2102 movs r1, #2
  26994. 800bc0a: 4618 mov r0, r3
  26995. 800bc0c: f000 fee2 bl 800c9d4 <RCCEx_PLL3_Config>
  26996. 800bc10: 4603 mov r3, r0
  26997. 800bc12: f887 311f strb.w r3, [r7, #287] @ 0x11f
  26998. /* LPTIM2 clock source configuration done later after clock selection check */
  26999. break;
  27000. 800bc16: e00a b.n 800bc2e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27001. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  27002. /* LPTIM2 clock source configuration done later after clock selection check */
  27003. break;
  27004. default:
  27005. ret = HAL_ERROR;
  27006. 800bc18: 2301 movs r3, #1
  27007. 800bc1a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27008. break;
  27009. 800bc1e: e006 b.n 800bc2e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27010. break;
  27011. 800bc20: bf00 nop
  27012. 800bc22: e004 b.n 800bc2e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27013. break;
  27014. 800bc24: bf00 nop
  27015. 800bc26: e002 b.n 800bc2e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27016. break;
  27017. 800bc28: bf00 nop
  27018. 800bc2a: e000 b.n 800bc2e <HAL_RCCEx_PeriphCLKConfig+0xd16>
  27019. break;
  27020. 800bc2c: bf00 nop
  27021. }
  27022. if (ret == HAL_OK)
  27023. 800bc2e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27024. 800bc32: 2b00 cmp r3, #0
  27025. 800bc34: d10e bne.n 800bc54 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  27026. {
  27027. /* Set the source of LPTIM2 clock*/
  27028. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  27029. 800bc36: 4b06 ldr r3, [pc, #24] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27030. 800bc38: 6d9b ldr r3, [r3, #88] @ 0x58
  27031. 800bc3a: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  27032. 800bc3e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27033. 800bc42: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  27034. 800bc46: 4a02 ldr r2, [pc, #8] @ (800bc50 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  27035. 800bc48: 430b orrs r3, r1
  27036. 800bc4a: 6593 str r3, [r2, #88] @ 0x58
  27037. 800bc4c: e006 b.n 800bc5c <HAL_RCCEx_PeriphCLKConfig+0xd44>
  27038. 800bc4e: bf00 nop
  27039. 800bc50: 58024400 .word 0x58024400
  27040. }
  27041. else
  27042. {
  27043. /* set overall return value */
  27044. status = ret;
  27045. 800bc54: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27046. 800bc58: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27047. }
  27048. }
  27049. /*---------------------------- LPTIM345 configuration -------------------------------*/
  27050. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  27051. 800bc5c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27052. 800bc60: e9d3 2300 ldrd r2, r3, [r3]
  27053. 800bc64: f002 0380 and.w r3, r2, #128 @ 0x80
  27054. 800bc68: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  27055. 800bc6c: 2300 movs r3, #0
  27056. 800bc6e: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  27057. 800bc72: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  27058. 800bc76: 460b mov r3, r1
  27059. 800bc78: 4313 orrs r3, r2
  27060. 800bc7a: d055 beq.n 800bd28 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  27061. {
  27062. switch (PeriphClkInit->Lptim345ClockSelection)
  27063. 800bc7c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27064. 800bc80: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  27065. 800bc84: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  27066. 800bc88: d033 beq.n 800bcf2 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  27067. 800bc8a: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  27068. 800bc8e: d82c bhi.n 800bcea <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27069. 800bc90: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  27070. 800bc94: d02f beq.n 800bcf6 <HAL_RCCEx_PeriphCLKConfig+0xdde>
  27071. 800bc96: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  27072. 800bc9a: d826 bhi.n 800bcea <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27073. 800bc9c: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  27074. 800bca0: d02b beq.n 800bcfa <HAL_RCCEx_PeriphCLKConfig+0xde2>
  27075. 800bca2: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  27076. 800bca6: d820 bhi.n 800bcea <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27077. 800bca8: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  27078. 800bcac: d012 beq.n 800bcd4 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  27079. 800bcae: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  27080. 800bcb2: d81a bhi.n 800bcea <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27081. 800bcb4: 2b00 cmp r3, #0
  27082. 800bcb6: d022 beq.n 800bcfe <HAL_RCCEx_PeriphCLKConfig+0xde6>
  27083. 800bcb8: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  27084. 800bcbc: d115 bne.n 800bcea <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  27085. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  27086. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27087. break;
  27088. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  27089. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27090. 800bcbe: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27091. 800bcc2: 3308 adds r3, #8
  27092. 800bcc4: 2100 movs r1, #0
  27093. 800bcc6: 4618 mov r0, r3
  27094. 800bcc8: f000 fdd2 bl 800c870 <RCCEx_PLL2_Config>
  27095. 800bccc: 4603 mov r3, r0
  27096. 800bcce: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27097. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27098. break;
  27099. 800bcd2: e015 b.n 800bd00 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27100. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  27101. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27102. 800bcd4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27103. 800bcd8: 3328 adds r3, #40 @ 0x28
  27104. 800bcda: 2102 movs r1, #2
  27105. 800bcdc: 4618 mov r0, r3
  27106. 800bcde: f000 fe79 bl 800c9d4 <RCCEx_PLL3_Config>
  27107. 800bce2: 4603 mov r3, r0
  27108. 800bce4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27109. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27110. break;
  27111. 800bce8: e00a b.n 800bd00 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27112. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  27113. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  27114. break;
  27115. default:
  27116. ret = HAL_ERROR;
  27117. 800bcea: 2301 movs r3, #1
  27118. 800bcec: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27119. break;
  27120. 800bcf0: e006 b.n 800bd00 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27121. break;
  27122. 800bcf2: bf00 nop
  27123. 800bcf4: e004 b.n 800bd00 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27124. break;
  27125. 800bcf6: bf00 nop
  27126. 800bcf8: e002 b.n 800bd00 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27127. break;
  27128. 800bcfa: bf00 nop
  27129. 800bcfc: e000 b.n 800bd00 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  27130. break;
  27131. 800bcfe: bf00 nop
  27132. }
  27133. if (ret == HAL_OK)
  27134. 800bd00: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27135. 800bd04: 2b00 cmp r3, #0
  27136. 800bd06: d10b bne.n 800bd20 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  27137. {
  27138. /* Set the source of LPTIM3/4/5 clock */
  27139. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  27140. 800bd08: 4bbb ldr r3, [pc, #748] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27141. 800bd0a: 6d9b ldr r3, [r3, #88] @ 0x58
  27142. 800bd0c: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  27143. 800bd10: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27144. 800bd14: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  27145. 800bd18: 4ab7 ldr r2, [pc, #732] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27146. 800bd1a: 430b orrs r3, r1
  27147. 800bd1c: 6593 str r3, [r2, #88] @ 0x58
  27148. 800bd1e: e003 b.n 800bd28 <HAL_RCCEx_PeriphCLKConfig+0xe10>
  27149. }
  27150. else
  27151. {
  27152. /* set overall return value */
  27153. status = ret;
  27154. 800bd20: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27155. 800bd24: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27156. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  27157. }
  27158. #else
  27159. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  27160. 800bd28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27161. 800bd2c: e9d3 2300 ldrd r2, r3, [r3]
  27162. 800bd30: f002 0308 and.w r3, r2, #8
  27163. 800bd34: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  27164. 800bd38: 2300 movs r3, #0
  27165. 800bd3a: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  27166. 800bd3e: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  27167. 800bd42: 460b mov r3, r1
  27168. 800bd44: 4313 orrs r3, r2
  27169. 800bd46: d01e beq.n 800bd86 <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  27170. {
  27171. /* Check the parameters */
  27172. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  27173. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  27174. 800bd48: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27175. 800bd4c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  27176. 800bd50: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  27177. 800bd54: d10c bne.n 800bd70 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  27178. {
  27179. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  27180. 800bd56: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27181. 800bd5a: 3328 adds r3, #40 @ 0x28
  27182. 800bd5c: 2102 movs r1, #2
  27183. 800bd5e: 4618 mov r0, r3
  27184. 800bd60: f000 fe38 bl 800c9d4 <RCCEx_PLL3_Config>
  27185. 800bd64: 4603 mov r3, r0
  27186. 800bd66: 2b00 cmp r3, #0
  27187. 800bd68: d002 beq.n 800bd70 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  27188. {
  27189. status = HAL_ERROR;
  27190. 800bd6a: 2301 movs r3, #1
  27191. 800bd6c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27192. }
  27193. }
  27194. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  27195. 800bd70: 4ba1 ldr r3, [pc, #644] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27196. 800bd72: 6d5b ldr r3, [r3, #84] @ 0x54
  27197. 800bd74: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  27198. 800bd78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27199. 800bd7c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  27200. 800bd80: 4a9d ldr r2, [pc, #628] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27201. 800bd82: 430b orrs r3, r1
  27202. 800bd84: 6553 str r3, [r2, #84] @ 0x54
  27203. }
  27204. #endif /* I2C5 */
  27205. /*------------------------------ I2C4 Configuration ------------------------*/
  27206. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  27207. 800bd86: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27208. 800bd8a: e9d3 2300 ldrd r2, r3, [r3]
  27209. 800bd8e: f002 0310 and.w r3, r2, #16
  27210. 800bd92: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  27211. 800bd96: 2300 movs r3, #0
  27212. 800bd98: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  27213. 800bd9c: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  27214. 800bda0: 460b mov r3, r1
  27215. 800bda2: 4313 orrs r3, r2
  27216. 800bda4: d01e beq.n 800bde4 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  27217. {
  27218. /* Check the parameters */
  27219. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  27220. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  27221. 800bda6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27222. 800bdaa: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  27223. 800bdae: f5b3 7f80 cmp.w r3, #256 @ 0x100
  27224. 800bdb2: d10c bne.n 800bdce <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  27225. {
  27226. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  27227. 800bdb4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27228. 800bdb8: 3328 adds r3, #40 @ 0x28
  27229. 800bdba: 2102 movs r1, #2
  27230. 800bdbc: 4618 mov r0, r3
  27231. 800bdbe: f000 fe09 bl 800c9d4 <RCCEx_PLL3_Config>
  27232. 800bdc2: 4603 mov r3, r0
  27233. 800bdc4: 2b00 cmp r3, #0
  27234. 800bdc6: d002 beq.n 800bdce <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  27235. {
  27236. status = HAL_ERROR;
  27237. 800bdc8: 2301 movs r3, #1
  27238. 800bdca: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27239. }
  27240. }
  27241. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  27242. 800bdce: 4b8a ldr r3, [pc, #552] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27243. 800bdd0: 6d9b ldr r3, [r3, #88] @ 0x58
  27244. 800bdd2: f423 7140 bic.w r1, r3, #768 @ 0x300
  27245. 800bdd6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27246. 800bdda: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  27247. 800bdde: 4a86 ldr r2, [pc, #536] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27248. 800bde0: 430b orrs r3, r1
  27249. 800bde2: 6593 str r3, [r2, #88] @ 0x58
  27250. }
  27251. /*---------------------------- ADC configuration -------------------------------*/
  27252. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  27253. 800bde4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27254. 800bde8: e9d3 2300 ldrd r2, r3, [r3]
  27255. 800bdec: f402 2300 and.w r3, r2, #524288 @ 0x80000
  27256. 800bdf0: 67bb str r3, [r7, #120] @ 0x78
  27257. 800bdf2: 2300 movs r3, #0
  27258. 800bdf4: 67fb str r3, [r7, #124] @ 0x7c
  27259. 800bdf6: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  27260. 800bdfa: 460b mov r3, r1
  27261. 800bdfc: 4313 orrs r3, r2
  27262. 800bdfe: d03e beq.n 800be7e <HAL_RCCEx_PeriphCLKConfig+0xf66>
  27263. {
  27264. switch (PeriphClkInit->AdcClockSelection)
  27265. 800be00: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27266. 800be04: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  27267. 800be08: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  27268. 800be0c: d022 beq.n 800be54 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  27269. 800be0e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  27270. 800be12: d81b bhi.n 800be4c <HAL_RCCEx_PeriphCLKConfig+0xf34>
  27271. 800be14: 2b00 cmp r3, #0
  27272. 800be16: d003 beq.n 800be20 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  27273. 800be18: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  27274. 800be1c: d00b beq.n 800be36 <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  27275. 800be1e: e015 b.n 800be4c <HAL_RCCEx_PeriphCLKConfig+0xf34>
  27276. {
  27277. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  27278. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27279. 800be20: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27280. 800be24: 3308 adds r3, #8
  27281. 800be26: 2100 movs r1, #0
  27282. 800be28: 4618 mov r0, r3
  27283. 800be2a: f000 fd21 bl 800c870 <RCCEx_PLL2_Config>
  27284. 800be2e: 4603 mov r3, r0
  27285. 800be30: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27286. /* ADC clock source configuration done later after clock selection check */
  27287. break;
  27288. 800be34: e00f b.n 800be56 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  27289. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  27290. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27291. 800be36: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27292. 800be3a: 3328 adds r3, #40 @ 0x28
  27293. 800be3c: 2102 movs r1, #2
  27294. 800be3e: 4618 mov r0, r3
  27295. 800be40: f000 fdc8 bl 800c9d4 <RCCEx_PLL3_Config>
  27296. 800be44: 4603 mov r3, r0
  27297. 800be46: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27298. /* ADC clock source configuration done later after clock selection check */
  27299. break;
  27300. 800be4a: e004 b.n 800be56 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  27301. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  27302. /* ADC clock source configuration done later after clock selection check */
  27303. break;
  27304. default:
  27305. ret = HAL_ERROR;
  27306. 800be4c: 2301 movs r3, #1
  27307. 800be4e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27308. break;
  27309. 800be52: e000 b.n 800be56 <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  27310. break;
  27311. 800be54: bf00 nop
  27312. }
  27313. if (ret == HAL_OK)
  27314. 800be56: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27315. 800be5a: 2b00 cmp r3, #0
  27316. 800be5c: d10b bne.n 800be76 <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  27317. {
  27318. /* Set the source of ADC clock*/
  27319. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  27320. 800be5e: 4b66 ldr r3, [pc, #408] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27321. 800be60: 6d9b ldr r3, [r3, #88] @ 0x58
  27322. 800be62: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  27323. 800be66: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27324. 800be6a: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  27325. 800be6e: 4a62 ldr r2, [pc, #392] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27326. 800be70: 430b orrs r3, r1
  27327. 800be72: 6593 str r3, [r2, #88] @ 0x58
  27328. 800be74: e003 b.n 800be7e <HAL_RCCEx_PeriphCLKConfig+0xf66>
  27329. }
  27330. else
  27331. {
  27332. /* set overall return value */
  27333. status = ret;
  27334. 800be76: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27335. 800be7a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27336. }
  27337. }
  27338. /*------------------------------ USB Configuration -------------------------*/
  27339. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  27340. 800be7e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27341. 800be82: e9d3 2300 ldrd r2, r3, [r3]
  27342. 800be86: f402 2380 and.w r3, r2, #262144 @ 0x40000
  27343. 800be8a: 673b str r3, [r7, #112] @ 0x70
  27344. 800be8c: 2300 movs r3, #0
  27345. 800be8e: 677b str r3, [r7, #116] @ 0x74
  27346. 800be90: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  27347. 800be94: 460b mov r3, r1
  27348. 800be96: 4313 orrs r3, r2
  27349. 800be98: d03b beq.n 800bf12 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  27350. {
  27351. switch (PeriphClkInit->UsbClockSelection)
  27352. 800be9a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27353. 800be9e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  27354. 800bea2: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  27355. 800bea6: d01f beq.n 800bee8 <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  27356. 800bea8: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  27357. 800beac: d818 bhi.n 800bee0 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  27358. 800beae: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  27359. 800beb2: d003 beq.n 800bebc <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  27360. 800beb4: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  27361. 800beb8: d007 beq.n 800beca <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  27362. 800beba: e011 b.n 800bee0 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  27363. {
  27364. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  27365. /* Enable USB Clock output generated form System USB . */
  27366. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27367. 800bebc: 4b4e ldr r3, [pc, #312] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27368. 800bebe: 6adb ldr r3, [r3, #44] @ 0x2c
  27369. 800bec0: 4a4d ldr r2, [pc, #308] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27370. 800bec2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27371. 800bec6: 62d3 str r3, [r2, #44] @ 0x2c
  27372. /* USB clock source configuration done later after clock selection check */
  27373. break;
  27374. 800bec8: e00f b.n 800beea <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  27375. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  27376. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  27377. 800beca: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27378. 800bece: 3328 adds r3, #40 @ 0x28
  27379. 800bed0: 2101 movs r1, #1
  27380. 800bed2: 4618 mov r0, r3
  27381. 800bed4: f000 fd7e bl 800c9d4 <RCCEx_PLL3_Config>
  27382. 800bed8: 4603 mov r3, r0
  27383. 800beda: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27384. /* USB clock source configuration done later after clock selection check */
  27385. break;
  27386. 800bede: e004 b.n 800beea <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  27387. /* HSI48 oscillator is used as source of USB clock */
  27388. /* USB clock source configuration done later after clock selection check */
  27389. break;
  27390. default:
  27391. ret = HAL_ERROR;
  27392. 800bee0: 2301 movs r3, #1
  27393. 800bee2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27394. break;
  27395. 800bee6: e000 b.n 800beea <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  27396. break;
  27397. 800bee8: bf00 nop
  27398. }
  27399. if (ret == HAL_OK)
  27400. 800beea: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27401. 800beee: 2b00 cmp r3, #0
  27402. 800bef0: d10b bne.n 800bf0a <HAL_RCCEx_PeriphCLKConfig+0xff2>
  27403. {
  27404. /* Set the source of USB clock*/
  27405. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  27406. 800bef2: 4b41 ldr r3, [pc, #260] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27407. 800bef4: 6d5b ldr r3, [r3, #84] @ 0x54
  27408. 800bef6: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  27409. 800befa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27410. 800befe: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  27411. 800bf02: 4a3d ldr r2, [pc, #244] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27412. 800bf04: 430b orrs r3, r1
  27413. 800bf06: 6553 str r3, [r2, #84] @ 0x54
  27414. 800bf08: e003 b.n 800bf12 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  27415. }
  27416. else
  27417. {
  27418. /* set overall return value */
  27419. status = ret;
  27420. 800bf0a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27421. 800bf0e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27422. }
  27423. }
  27424. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  27425. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  27426. 800bf12: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27427. 800bf16: e9d3 2300 ldrd r2, r3, [r3]
  27428. 800bf1a: f402 3380 and.w r3, r2, #65536 @ 0x10000
  27429. 800bf1e: 66bb str r3, [r7, #104] @ 0x68
  27430. 800bf20: 2300 movs r3, #0
  27431. 800bf22: 66fb str r3, [r7, #108] @ 0x6c
  27432. 800bf24: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  27433. 800bf28: 460b mov r3, r1
  27434. 800bf2a: 4313 orrs r3, r2
  27435. 800bf2c: d031 beq.n 800bf92 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  27436. {
  27437. /* Check the parameters */
  27438. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  27439. switch (PeriphClkInit->SdmmcClockSelection)
  27440. 800bf2e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27441. 800bf32: 6d1b ldr r3, [r3, #80] @ 0x50
  27442. 800bf34: 2b00 cmp r3, #0
  27443. 800bf36: d003 beq.n 800bf40 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  27444. 800bf38: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  27445. 800bf3c: d007 beq.n 800bf4e <HAL_RCCEx_PeriphCLKConfig+0x1036>
  27446. 800bf3e: e011 b.n 800bf64 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  27447. {
  27448. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  27449. /* Enable SDMMC Clock output generated form System PLL . */
  27450. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27451. 800bf40: 4b2d ldr r3, [pc, #180] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27452. 800bf42: 6adb ldr r3, [r3, #44] @ 0x2c
  27453. 800bf44: 4a2c ldr r2, [pc, #176] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27454. 800bf46: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27455. 800bf4a: 62d3 str r3, [r2, #44] @ 0x2c
  27456. /* SDMMC clock source configuration done later after clock selection check */
  27457. break;
  27458. 800bf4c: e00e b.n 800bf6c <HAL_RCCEx_PeriphCLKConfig+0x1054>
  27459. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  27460. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  27461. 800bf4e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27462. 800bf52: 3308 adds r3, #8
  27463. 800bf54: 2102 movs r1, #2
  27464. 800bf56: 4618 mov r0, r3
  27465. 800bf58: f000 fc8a bl 800c870 <RCCEx_PLL2_Config>
  27466. 800bf5c: 4603 mov r3, r0
  27467. 800bf5e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27468. /* SDMMC clock source configuration done later after clock selection check */
  27469. break;
  27470. 800bf62: e003 b.n 800bf6c <HAL_RCCEx_PeriphCLKConfig+0x1054>
  27471. default:
  27472. ret = HAL_ERROR;
  27473. 800bf64: 2301 movs r3, #1
  27474. 800bf66: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27475. break;
  27476. 800bf6a: bf00 nop
  27477. }
  27478. if (ret == HAL_OK)
  27479. 800bf6c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27480. 800bf70: 2b00 cmp r3, #0
  27481. 800bf72: d10a bne.n 800bf8a <HAL_RCCEx_PeriphCLKConfig+0x1072>
  27482. {
  27483. /* Set the source of SDMMC clock*/
  27484. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  27485. 800bf74: 4b20 ldr r3, [pc, #128] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27486. 800bf76: 6cdb ldr r3, [r3, #76] @ 0x4c
  27487. 800bf78: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  27488. 800bf7c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27489. 800bf80: 6d1b ldr r3, [r3, #80] @ 0x50
  27490. 800bf82: 4a1d ldr r2, [pc, #116] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27491. 800bf84: 430b orrs r3, r1
  27492. 800bf86: 64d3 str r3, [r2, #76] @ 0x4c
  27493. 800bf88: e003 b.n 800bf92 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  27494. }
  27495. else
  27496. {
  27497. /* set overall return value */
  27498. status = ret;
  27499. 800bf8a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27500. 800bf8e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27501. }
  27502. }
  27503. #endif /* LTDC */
  27504. /*------------------------------ RNG Configuration -------------------------*/
  27505. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  27506. 800bf92: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27507. 800bf96: e9d3 2300 ldrd r2, r3, [r3]
  27508. 800bf9a: f402 3300 and.w r3, r2, #131072 @ 0x20000
  27509. 800bf9e: 663b str r3, [r7, #96] @ 0x60
  27510. 800bfa0: 2300 movs r3, #0
  27511. 800bfa2: 667b str r3, [r7, #100] @ 0x64
  27512. 800bfa4: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  27513. 800bfa8: 460b mov r3, r1
  27514. 800bfaa: 4313 orrs r3, r2
  27515. 800bfac: d03b beq.n 800c026 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  27516. {
  27517. switch (PeriphClkInit->RngClockSelection)
  27518. 800bfae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27519. 800bfb2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  27520. 800bfb6: f5b3 7f40 cmp.w r3, #768 @ 0x300
  27521. 800bfba: d018 beq.n 800bfee <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  27522. 800bfbc: f5b3 7f40 cmp.w r3, #768 @ 0x300
  27523. 800bfc0: d811 bhi.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  27524. 800bfc2: f5b3 7f00 cmp.w r3, #512 @ 0x200
  27525. 800bfc6: d014 beq.n 800bff2 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  27526. 800bfc8: f5b3 7f00 cmp.w r3, #512 @ 0x200
  27527. 800bfcc: d80b bhi.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  27528. 800bfce: 2b00 cmp r3, #0
  27529. 800bfd0: d014 beq.n 800bffc <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  27530. 800bfd2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  27531. 800bfd6: d106 bne.n 800bfe6 <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  27532. {
  27533. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  27534. /* Enable RNG Clock output generated form System RNG . */
  27535. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27536. 800bfd8: 4b07 ldr r3, [pc, #28] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27537. 800bfda: 6adb ldr r3, [r3, #44] @ 0x2c
  27538. 800bfdc: 4a06 ldr r2, [pc, #24] @ (800bff8 <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  27539. 800bfde: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27540. 800bfe2: 62d3 str r3, [r2, #44] @ 0x2c
  27541. /* RNG clock source configuration done later after clock selection check */
  27542. break;
  27543. 800bfe4: e00b b.n 800bffe <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27544. /* HSI48 oscillator is used as source of RNG clock */
  27545. /* RNG clock source configuration done later after clock selection check */
  27546. break;
  27547. default:
  27548. ret = HAL_ERROR;
  27549. 800bfe6: 2301 movs r3, #1
  27550. 800bfe8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27551. break;
  27552. 800bfec: e007 b.n 800bffe <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27553. break;
  27554. 800bfee: bf00 nop
  27555. 800bff0: e005 b.n 800bffe <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27556. break;
  27557. 800bff2: bf00 nop
  27558. 800bff4: e003 b.n 800bffe <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  27559. 800bff6: bf00 nop
  27560. 800bff8: 58024400 .word 0x58024400
  27561. break;
  27562. 800bffc: bf00 nop
  27563. }
  27564. if (ret == HAL_OK)
  27565. 800bffe: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27566. 800c002: 2b00 cmp r3, #0
  27567. 800c004: d10b bne.n 800c01e <HAL_RCCEx_PeriphCLKConfig+0x1106>
  27568. {
  27569. /* Set the source of RNG clock*/
  27570. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  27571. 800c006: 4bba ldr r3, [pc, #744] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27572. 800c008: 6d5b ldr r3, [r3, #84] @ 0x54
  27573. 800c00a: f423 7140 bic.w r1, r3, #768 @ 0x300
  27574. 800c00e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27575. 800c012: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  27576. 800c016: 4ab6 ldr r2, [pc, #728] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27577. 800c018: 430b orrs r3, r1
  27578. 800c01a: 6553 str r3, [r2, #84] @ 0x54
  27579. 800c01c: e003 b.n 800c026 <HAL_RCCEx_PeriphCLKConfig+0x110e>
  27580. }
  27581. else
  27582. {
  27583. /* set overall return value */
  27584. status = ret;
  27585. 800c01e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27586. 800c022: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27587. }
  27588. }
  27589. /*------------------------------ SWPMI1 Configuration ------------------------*/
  27590. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  27591. 800c026: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27592. 800c02a: e9d3 2300 ldrd r2, r3, [r3]
  27593. 800c02e: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  27594. 800c032: 65bb str r3, [r7, #88] @ 0x58
  27595. 800c034: 2300 movs r3, #0
  27596. 800c036: 65fb str r3, [r7, #92] @ 0x5c
  27597. 800c038: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  27598. 800c03c: 460b mov r3, r1
  27599. 800c03e: 4313 orrs r3, r2
  27600. 800c040: d009 beq.n 800c056 <HAL_RCCEx_PeriphCLKConfig+0x113e>
  27601. {
  27602. /* Check the parameters */
  27603. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  27604. /* Configure the SWPMI1 interface clock source */
  27605. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  27606. 800c042: 4bab ldr r3, [pc, #684] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27607. 800c044: 6d1b ldr r3, [r3, #80] @ 0x50
  27608. 800c046: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  27609. 800c04a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27610. 800c04e: 6f5b ldr r3, [r3, #116] @ 0x74
  27611. 800c050: 4aa7 ldr r2, [pc, #668] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27612. 800c052: 430b orrs r3, r1
  27613. 800c054: 6513 str r3, [r2, #80] @ 0x50
  27614. }
  27615. #if defined(HRTIM1)
  27616. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  27617. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  27618. 800c056: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27619. 800c05a: e9d3 2300 ldrd r2, r3, [r3]
  27620. 800c05e: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  27621. 800c062: 653b str r3, [r7, #80] @ 0x50
  27622. 800c064: 2300 movs r3, #0
  27623. 800c066: 657b str r3, [r7, #84] @ 0x54
  27624. 800c068: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  27625. 800c06c: 460b mov r3, r1
  27626. 800c06e: 4313 orrs r3, r2
  27627. 800c070: d00a beq.n 800c088 <HAL_RCCEx_PeriphCLKConfig+0x1170>
  27628. {
  27629. /* Check the parameters */
  27630. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  27631. /* Configure the HRTIM1 clock source */
  27632. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  27633. 800c072: 4b9f ldr r3, [pc, #636] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27634. 800c074: 691b ldr r3, [r3, #16]
  27635. 800c076: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  27636. 800c07a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27637. 800c07e: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  27638. 800c082: 4a9b ldr r2, [pc, #620] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27639. 800c084: 430b orrs r3, r1
  27640. 800c086: 6113 str r3, [r2, #16]
  27641. }
  27642. #endif /*HRTIM1*/
  27643. /*------------------------------ DFSDM1 Configuration ------------------------*/
  27644. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  27645. 800c088: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27646. 800c08c: e9d3 2300 ldrd r2, r3, [r3]
  27647. 800c090: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  27648. 800c094: 64bb str r3, [r7, #72] @ 0x48
  27649. 800c096: 2300 movs r3, #0
  27650. 800c098: 64fb str r3, [r7, #76] @ 0x4c
  27651. 800c09a: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  27652. 800c09e: 460b mov r3, r1
  27653. 800c0a0: 4313 orrs r3, r2
  27654. 800c0a2: d009 beq.n 800c0b8 <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  27655. {
  27656. /* Check the parameters */
  27657. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  27658. /* Configure the DFSDM1 interface clock source */
  27659. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  27660. 800c0a4: 4b92 ldr r3, [pc, #584] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27661. 800c0a6: 6d1b ldr r3, [r3, #80] @ 0x50
  27662. 800c0a8: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  27663. 800c0ac: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27664. 800c0b0: 6edb ldr r3, [r3, #108] @ 0x6c
  27665. 800c0b2: 4a8f ldr r2, [pc, #572] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27666. 800c0b4: 430b orrs r3, r1
  27667. 800c0b6: 6513 str r3, [r2, #80] @ 0x50
  27668. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  27669. }
  27670. #endif /* DFSDM2 */
  27671. /*------------------------------------ TIM configuration --------------------------------------*/
  27672. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  27673. 800c0b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27674. 800c0bc: e9d3 2300 ldrd r2, r3, [r3]
  27675. 800c0c0: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  27676. 800c0c4: 643b str r3, [r7, #64] @ 0x40
  27677. 800c0c6: 2300 movs r3, #0
  27678. 800c0c8: 647b str r3, [r7, #68] @ 0x44
  27679. 800c0ca: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  27680. 800c0ce: 460b mov r3, r1
  27681. 800c0d0: 4313 orrs r3, r2
  27682. 800c0d2: d00e beq.n 800c0f2 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  27683. {
  27684. /* Check the parameters */
  27685. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  27686. /* Configure Timer Prescaler */
  27687. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  27688. 800c0d4: 4b86 ldr r3, [pc, #536] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27689. 800c0d6: 691b ldr r3, [r3, #16]
  27690. 800c0d8: 4a85 ldr r2, [pc, #532] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27691. 800c0da: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  27692. 800c0de: 6113 str r3, [r2, #16]
  27693. 800c0e0: 4b83 ldr r3, [pc, #524] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27694. 800c0e2: 6919 ldr r1, [r3, #16]
  27695. 800c0e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27696. 800c0e8: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  27697. 800c0ec: 4a80 ldr r2, [pc, #512] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27698. 800c0ee: 430b orrs r3, r1
  27699. 800c0f0: 6113 str r3, [r2, #16]
  27700. }
  27701. /*------------------------------------ CKPER configuration --------------------------------------*/
  27702. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  27703. 800c0f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27704. 800c0f6: e9d3 2300 ldrd r2, r3, [r3]
  27705. 800c0fa: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  27706. 800c0fe: 63bb str r3, [r7, #56] @ 0x38
  27707. 800c100: 2300 movs r3, #0
  27708. 800c102: 63fb str r3, [r7, #60] @ 0x3c
  27709. 800c104: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  27710. 800c108: 460b mov r3, r1
  27711. 800c10a: 4313 orrs r3, r2
  27712. 800c10c: d009 beq.n 800c122 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  27713. {
  27714. /* Check the parameters */
  27715. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  27716. /* Configure the CKPER clock source */
  27717. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  27718. 800c10e: 4b78 ldr r3, [pc, #480] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27719. 800c110: 6cdb ldr r3, [r3, #76] @ 0x4c
  27720. 800c112: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  27721. 800c116: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27722. 800c11a: 6d5b ldr r3, [r3, #84] @ 0x54
  27723. 800c11c: 4a74 ldr r2, [pc, #464] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27724. 800c11e: 430b orrs r3, r1
  27725. 800c120: 64d3 str r3, [r2, #76] @ 0x4c
  27726. }
  27727. /*------------------------------ CEC Configuration ------------------------*/
  27728. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  27729. 800c122: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27730. 800c126: e9d3 2300 ldrd r2, r3, [r3]
  27731. 800c12a: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  27732. 800c12e: 633b str r3, [r7, #48] @ 0x30
  27733. 800c130: 2300 movs r3, #0
  27734. 800c132: 637b str r3, [r7, #52] @ 0x34
  27735. 800c134: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  27736. 800c138: 460b mov r3, r1
  27737. 800c13a: 4313 orrs r3, r2
  27738. 800c13c: d00a beq.n 800c154 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  27739. {
  27740. /* Check the parameters */
  27741. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  27742. /* Configure the CEC interface clock source */
  27743. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  27744. 800c13e: 4b6c ldr r3, [pc, #432] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27745. 800c140: 6d5b ldr r3, [r3, #84] @ 0x54
  27746. 800c142: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  27747. 800c146: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27748. 800c14a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  27749. 800c14e: 4a68 ldr r2, [pc, #416] @ (800c2f0 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  27750. 800c150: 430b orrs r3, r1
  27751. 800c152: 6553 str r3, [r2, #84] @ 0x54
  27752. }
  27753. /*---------------------------- PLL2 configuration -------------------------------*/
  27754. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  27755. 800c154: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27756. 800c158: e9d3 2300 ldrd r2, r3, [r3]
  27757. 800c15c: 2100 movs r1, #0
  27758. 800c15e: 62b9 str r1, [r7, #40] @ 0x28
  27759. 800c160: f003 0301 and.w r3, r3, #1
  27760. 800c164: 62fb str r3, [r7, #44] @ 0x2c
  27761. 800c166: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  27762. 800c16a: 460b mov r3, r1
  27763. 800c16c: 4313 orrs r3, r2
  27764. 800c16e: d011 beq.n 800c194 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  27765. {
  27766. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  27767. 800c170: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27768. 800c174: 3308 adds r3, #8
  27769. 800c176: 2100 movs r1, #0
  27770. 800c178: 4618 mov r0, r3
  27771. 800c17a: f000 fb79 bl 800c870 <RCCEx_PLL2_Config>
  27772. 800c17e: 4603 mov r3, r0
  27773. 800c180: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27774. if (ret == HAL_OK)
  27775. 800c184: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27776. 800c188: 2b00 cmp r3, #0
  27777. 800c18a: d003 beq.n 800c194 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  27778. /*Nothing to do*/
  27779. }
  27780. else
  27781. {
  27782. /* set overall return value */
  27783. status = ret;
  27784. 800c18c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27785. 800c190: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27786. }
  27787. }
  27788. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  27789. 800c194: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27790. 800c198: e9d3 2300 ldrd r2, r3, [r3]
  27791. 800c19c: 2100 movs r1, #0
  27792. 800c19e: 6239 str r1, [r7, #32]
  27793. 800c1a0: f003 0302 and.w r3, r3, #2
  27794. 800c1a4: 627b str r3, [r7, #36] @ 0x24
  27795. 800c1a6: e9d7 1208 ldrd r1, r2, [r7, #32]
  27796. 800c1aa: 460b mov r3, r1
  27797. 800c1ac: 4313 orrs r3, r2
  27798. 800c1ae: d011 beq.n 800c1d4 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  27799. {
  27800. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  27801. 800c1b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27802. 800c1b4: 3308 adds r3, #8
  27803. 800c1b6: 2101 movs r1, #1
  27804. 800c1b8: 4618 mov r0, r3
  27805. 800c1ba: f000 fb59 bl 800c870 <RCCEx_PLL2_Config>
  27806. 800c1be: 4603 mov r3, r0
  27807. 800c1c0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27808. if (ret == HAL_OK)
  27809. 800c1c4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27810. 800c1c8: 2b00 cmp r3, #0
  27811. 800c1ca: d003 beq.n 800c1d4 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  27812. /*Nothing to do*/
  27813. }
  27814. else
  27815. {
  27816. /* set overall return value */
  27817. status = ret;
  27818. 800c1cc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27819. 800c1d0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27820. }
  27821. }
  27822. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  27823. 800c1d4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27824. 800c1d8: e9d3 2300 ldrd r2, r3, [r3]
  27825. 800c1dc: 2100 movs r1, #0
  27826. 800c1de: 61b9 str r1, [r7, #24]
  27827. 800c1e0: f003 0304 and.w r3, r3, #4
  27828. 800c1e4: 61fb str r3, [r7, #28]
  27829. 800c1e6: e9d7 1206 ldrd r1, r2, [r7, #24]
  27830. 800c1ea: 460b mov r3, r1
  27831. 800c1ec: 4313 orrs r3, r2
  27832. 800c1ee: d011 beq.n 800c214 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  27833. {
  27834. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  27835. 800c1f0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27836. 800c1f4: 3308 adds r3, #8
  27837. 800c1f6: 2102 movs r1, #2
  27838. 800c1f8: 4618 mov r0, r3
  27839. 800c1fa: f000 fb39 bl 800c870 <RCCEx_PLL2_Config>
  27840. 800c1fe: 4603 mov r3, r0
  27841. 800c200: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27842. if (ret == HAL_OK)
  27843. 800c204: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27844. 800c208: 2b00 cmp r3, #0
  27845. 800c20a: d003 beq.n 800c214 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  27846. /*Nothing to do*/
  27847. }
  27848. else
  27849. {
  27850. /* set overall return value */
  27851. status = ret;
  27852. 800c20c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27853. 800c210: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27854. }
  27855. }
  27856. /*---------------------------- PLL3 configuration -------------------------------*/
  27857. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  27858. 800c214: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27859. 800c218: e9d3 2300 ldrd r2, r3, [r3]
  27860. 800c21c: 2100 movs r1, #0
  27861. 800c21e: 6139 str r1, [r7, #16]
  27862. 800c220: f003 0308 and.w r3, r3, #8
  27863. 800c224: 617b str r3, [r7, #20]
  27864. 800c226: e9d7 1204 ldrd r1, r2, [r7, #16]
  27865. 800c22a: 460b mov r3, r1
  27866. 800c22c: 4313 orrs r3, r2
  27867. 800c22e: d011 beq.n 800c254 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  27868. {
  27869. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  27870. 800c230: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27871. 800c234: 3328 adds r3, #40 @ 0x28
  27872. 800c236: 2100 movs r1, #0
  27873. 800c238: 4618 mov r0, r3
  27874. 800c23a: f000 fbcb bl 800c9d4 <RCCEx_PLL3_Config>
  27875. 800c23e: 4603 mov r3, r0
  27876. 800c240: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27877. if (ret == HAL_OK)
  27878. 800c244: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27879. 800c248: 2b00 cmp r3, #0
  27880. 800c24a: d003 beq.n 800c254 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  27881. /*Nothing to do*/
  27882. }
  27883. else
  27884. {
  27885. /* set overall return value */
  27886. status = ret;
  27887. 800c24c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27888. 800c250: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27889. }
  27890. }
  27891. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  27892. 800c254: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27893. 800c258: e9d3 2300 ldrd r2, r3, [r3]
  27894. 800c25c: 2100 movs r1, #0
  27895. 800c25e: 60b9 str r1, [r7, #8]
  27896. 800c260: f003 0310 and.w r3, r3, #16
  27897. 800c264: 60fb str r3, [r7, #12]
  27898. 800c266: e9d7 1202 ldrd r1, r2, [r7, #8]
  27899. 800c26a: 460b mov r3, r1
  27900. 800c26c: 4313 orrs r3, r2
  27901. 800c26e: d011 beq.n 800c294 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  27902. {
  27903. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  27904. 800c270: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27905. 800c274: 3328 adds r3, #40 @ 0x28
  27906. 800c276: 2101 movs r1, #1
  27907. 800c278: 4618 mov r0, r3
  27908. 800c27a: f000 fbab bl 800c9d4 <RCCEx_PLL3_Config>
  27909. 800c27e: 4603 mov r3, r0
  27910. 800c280: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27911. if (ret == HAL_OK)
  27912. 800c284: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27913. 800c288: 2b00 cmp r3, #0
  27914. 800c28a: d003 beq.n 800c294 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  27915. /*Nothing to do*/
  27916. }
  27917. else
  27918. {
  27919. /* set overall return value */
  27920. status = ret;
  27921. 800c28c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27922. 800c290: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27923. }
  27924. }
  27925. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  27926. 800c294: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27927. 800c298: e9d3 2300 ldrd r2, r3, [r3]
  27928. 800c29c: 2100 movs r1, #0
  27929. 800c29e: 6039 str r1, [r7, #0]
  27930. 800c2a0: f003 0320 and.w r3, r3, #32
  27931. 800c2a4: 607b str r3, [r7, #4]
  27932. 800c2a6: e9d7 1200 ldrd r1, r2, [r7]
  27933. 800c2aa: 460b mov r3, r1
  27934. 800c2ac: 4313 orrs r3, r2
  27935. 800c2ae: d011 beq.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  27936. {
  27937. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  27938. 800c2b0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  27939. 800c2b4: 3328 adds r3, #40 @ 0x28
  27940. 800c2b6: 2102 movs r1, #2
  27941. 800c2b8: 4618 mov r0, r3
  27942. 800c2ba: f000 fb8b bl 800c9d4 <RCCEx_PLL3_Config>
  27943. 800c2be: 4603 mov r3, r0
  27944. 800c2c0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  27945. if (ret == HAL_OK)
  27946. 800c2c4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27947. 800c2c8: 2b00 cmp r3, #0
  27948. 800c2ca: d003 beq.n 800c2d4 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  27949. /*Nothing to do*/
  27950. }
  27951. else
  27952. {
  27953. /* set overall return value */
  27954. status = ret;
  27955. 800c2cc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  27956. 800c2d0: f887 311e strb.w r3, [r7, #286] @ 0x11e
  27957. }
  27958. }
  27959. if (status == HAL_OK)
  27960. 800c2d4: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  27961. 800c2d8: 2b00 cmp r3, #0
  27962. 800c2da: d101 bne.n 800c2e0 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  27963. {
  27964. return HAL_OK;
  27965. 800c2dc: 2300 movs r3, #0
  27966. 800c2de: e000 b.n 800c2e2 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  27967. }
  27968. return HAL_ERROR;
  27969. 800c2e0: 2301 movs r3, #1
  27970. }
  27971. 800c2e2: 4618 mov r0, r3
  27972. 800c2e4: f507 7790 add.w r7, r7, #288 @ 0x120
  27973. 800c2e8: 46bd mov sp, r7
  27974. 800c2ea: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  27975. 800c2ee: bf00 nop
  27976. 800c2f0: 58024400 .word 0x58024400
  27977. 0800c2f4 <HAL_RCCEx_GetD3PCLK1Freq>:
  27978. * @note Each time D3PCLK1 changes, this function must be called to update the
  27979. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  27980. * @retval D3PCLK1 frequency
  27981. */
  27982. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  27983. {
  27984. 800c2f4: b580 push {r7, lr}
  27985. 800c2f6: af00 add r7, sp, #0
  27986. #if defined(RCC_D3CFGR_D3PPRE)
  27987. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  27988. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  27989. 800c2f8: f7fe fd70 bl 800addc <HAL_RCC_GetHCLKFreq>
  27990. 800c2fc: 4602 mov r2, r0
  27991. 800c2fe: 4b06 ldr r3, [pc, #24] @ (800c318 <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  27992. 800c300: 6a1b ldr r3, [r3, #32]
  27993. 800c302: 091b lsrs r3, r3, #4
  27994. 800c304: f003 0307 and.w r3, r3, #7
  27995. 800c308: 4904 ldr r1, [pc, #16] @ (800c31c <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  27996. 800c30a: 5ccb ldrb r3, [r1, r3]
  27997. 800c30c: f003 031f and.w r3, r3, #31
  27998. 800c310: fa22 f303 lsr.w r3, r2, r3
  27999. #else
  28000. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  28001. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  28002. #endif
  28003. }
  28004. 800c314: 4618 mov r0, r3
  28005. 800c316: bd80 pop {r7, pc}
  28006. 800c318: 58024400 .word 0x58024400
  28007. 800c31c: 08031308 .word 0x08031308
  28008. 0800c320 <HAL_RCCEx_GetPLL2ClockFreq>:
  28009. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  28010. * @param PLL2_Clocks structure.
  28011. * @retval None
  28012. */
  28013. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  28014. {
  28015. 800c320: b480 push {r7}
  28016. 800c322: b089 sub sp, #36 @ 0x24
  28017. 800c324: af00 add r7, sp, #0
  28018. 800c326: 6078 str r0, [r7, #4]
  28019. float_t fracn2, pll2vco;
  28020. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  28021. PLL2xCLK = PLL2_VCO / PLL2x
  28022. */
  28023. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28024. 800c328: 4ba1 ldr r3, [pc, #644] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28025. 800c32a: 6a9b ldr r3, [r3, #40] @ 0x28
  28026. 800c32c: f003 0303 and.w r3, r3, #3
  28027. 800c330: 61bb str r3, [r7, #24]
  28028. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  28029. 800c332: 4b9f ldr r3, [pc, #636] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28030. 800c334: 6a9b ldr r3, [r3, #40] @ 0x28
  28031. 800c336: 0b1b lsrs r3, r3, #12
  28032. 800c338: f003 033f and.w r3, r3, #63 @ 0x3f
  28033. 800c33c: 617b str r3, [r7, #20]
  28034. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  28035. 800c33e: 4b9c ldr r3, [pc, #624] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28036. 800c340: 6adb ldr r3, [r3, #44] @ 0x2c
  28037. 800c342: 091b lsrs r3, r3, #4
  28038. 800c344: f003 0301 and.w r3, r3, #1
  28039. 800c348: 613b str r3, [r7, #16]
  28040. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  28041. 800c34a: 4b99 ldr r3, [pc, #612] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28042. 800c34c: 6bdb ldr r3, [r3, #60] @ 0x3c
  28043. 800c34e: 08db lsrs r3, r3, #3
  28044. 800c350: f3c3 030c ubfx r3, r3, #0, #13
  28045. 800c354: 693a ldr r2, [r7, #16]
  28046. 800c356: fb02 f303 mul.w r3, r2, r3
  28047. 800c35a: ee07 3a90 vmov s15, r3
  28048. 800c35e: eef8 7a67 vcvt.f32.u32 s15, s15
  28049. 800c362: edc7 7a03 vstr s15, [r7, #12]
  28050. if (pll2m != 0U)
  28051. 800c366: 697b ldr r3, [r7, #20]
  28052. 800c368: 2b00 cmp r3, #0
  28053. 800c36a: f000 8111 beq.w 800c590 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  28054. {
  28055. switch (pllsource)
  28056. 800c36e: 69bb ldr r3, [r7, #24]
  28057. 800c370: 2b02 cmp r3, #2
  28058. 800c372: f000 8083 beq.w 800c47c <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  28059. 800c376: 69bb ldr r3, [r7, #24]
  28060. 800c378: 2b02 cmp r3, #2
  28061. 800c37a: f200 80a1 bhi.w 800c4c0 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  28062. 800c37e: 69bb ldr r3, [r7, #24]
  28063. 800c380: 2b00 cmp r3, #0
  28064. 800c382: d003 beq.n 800c38c <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  28065. 800c384: 69bb ldr r3, [r7, #24]
  28066. 800c386: 2b01 cmp r3, #1
  28067. 800c388: d056 beq.n 800c438 <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  28068. 800c38a: e099 b.n 800c4c0 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  28069. {
  28070. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28071. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28072. 800c38c: 4b88 ldr r3, [pc, #544] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28073. 800c38e: 681b ldr r3, [r3, #0]
  28074. 800c390: f003 0320 and.w r3, r3, #32
  28075. 800c394: 2b00 cmp r3, #0
  28076. 800c396: d02d beq.n 800c3f4 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  28077. {
  28078. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28079. 800c398: 4b85 ldr r3, [pc, #532] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28080. 800c39a: 681b ldr r3, [r3, #0]
  28081. 800c39c: 08db lsrs r3, r3, #3
  28082. 800c39e: f003 0303 and.w r3, r3, #3
  28083. 800c3a2: 4a84 ldr r2, [pc, #528] @ (800c5b4 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  28084. 800c3a4: fa22 f303 lsr.w r3, r2, r3
  28085. 800c3a8: 60bb str r3, [r7, #8]
  28086. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28087. 800c3aa: 68bb ldr r3, [r7, #8]
  28088. 800c3ac: ee07 3a90 vmov s15, r3
  28089. 800c3b0: eef8 6a67 vcvt.f32.u32 s13, s15
  28090. 800c3b4: 697b ldr r3, [r7, #20]
  28091. 800c3b6: ee07 3a90 vmov s15, r3
  28092. 800c3ba: eef8 7a67 vcvt.f32.u32 s15, s15
  28093. 800c3be: ee86 7aa7 vdiv.f32 s14, s13, s15
  28094. 800c3c2: 4b7b ldr r3, [pc, #492] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28095. 800c3c4: 6b9b ldr r3, [r3, #56] @ 0x38
  28096. 800c3c6: f3c3 0308 ubfx r3, r3, #0, #9
  28097. 800c3ca: ee07 3a90 vmov s15, r3
  28098. 800c3ce: eef8 6a67 vcvt.f32.u32 s13, s15
  28099. 800c3d2: ed97 6a03 vldr s12, [r7, #12]
  28100. 800c3d6: eddf 5a78 vldr s11, [pc, #480] @ 800c5b8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28101. 800c3da: eec6 7a25 vdiv.f32 s15, s12, s11
  28102. 800c3de: ee76 7aa7 vadd.f32 s15, s13, s15
  28103. 800c3e2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28104. 800c3e6: ee77 7aa6 vadd.f32 s15, s15, s13
  28105. 800c3ea: ee67 7a27 vmul.f32 s15, s14, s15
  28106. 800c3ee: edc7 7a07 vstr s15, [r7, #28]
  28107. }
  28108. else
  28109. {
  28110. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28111. }
  28112. break;
  28113. 800c3f2: e087 b.n 800c504 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28114. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28115. 800c3f4: 697b ldr r3, [r7, #20]
  28116. 800c3f6: ee07 3a90 vmov s15, r3
  28117. 800c3fa: eef8 7a67 vcvt.f32.u32 s15, s15
  28118. 800c3fe: eddf 6a6f vldr s13, [pc, #444] @ 800c5bc <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  28119. 800c402: ee86 7aa7 vdiv.f32 s14, s13, s15
  28120. 800c406: 4b6a ldr r3, [pc, #424] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28121. 800c408: 6b9b ldr r3, [r3, #56] @ 0x38
  28122. 800c40a: f3c3 0308 ubfx r3, r3, #0, #9
  28123. 800c40e: ee07 3a90 vmov s15, r3
  28124. 800c412: eef8 6a67 vcvt.f32.u32 s13, s15
  28125. 800c416: ed97 6a03 vldr s12, [r7, #12]
  28126. 800c41a: eddf 5a67 vldr s11, [pc, #412] @ 800c5b8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28127. 800c41e: eec6 7a25 vdiv.f32 s15, s12, s11
  28128. 800c422: ee76 7aa7 vadd.f32 s15, s13, s15
  28129. 800c426: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28130. 800c42a: ee77 7aa6 vadd.f32 s15, s15, s13
  28131. 800c42e: ee67 7a27 vmul.f32 s15, s14, s15
  28132. 800c432: edc7 7a07 vstr s15, [r7, #28]
  28133. break;
  28134. 800c436: e065 b.n 800c504 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28135. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28136. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28137. 800c438: 697b ldr r3, [r7, #20]
  28138. 800c43a: ee07 3a90 vmov s15, r3
  28139. 800c43e: eef8 7a67 vcvt.f32.u32 s15, s15
  28140. 800c442: eddf 6a5f vldr s13, [pc, #380] @ 800c5c0 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  28141. 800c446: ee86 7aa7 vdiv.f32 s14, s13, s15
  28142. 800c44a: 4b59 ldr r3, [pc, #356] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28143. 800c44c: 6b9b ldr r3, [r3, #56] @ 0x38
  28144. 800c44e: f3c3 0308 ubfx r3, r3, #0, #9
  28145. 800c452: ee07 3a90 vmov s15, r3
  28146. 800c456: eef8 6a67 vcvt.f32.u32 s13, s15
  28147. 800c45a: ed97 6a03 vldr s12, [r7, #12]
  28148. 800c45e: eddf 5a56 vldr s11, [pc, #344] @ 800c5b8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28149. 800c462: eec6 7a25 vdiv.f32 s15, s12, s11
  28150. 800c466: ee76 7aa7 vadd.f32 s15, s13, s15
  28151. 800c46a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28152. 800c46e: ee77 7aa6 vadd.f32 s15, s15, s13
  28153. 800c472: ee67 7a27 vmul.f32 s15, s14, s15
  28154. 800c476: edc7 7a07 vstr s15, [r7, #28]
  28155. break;
  28156. 800c47a: e043 b.n 800c504 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28157. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28158. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28159. 800c47c: 697b ldr r3, [r7, #20]
  28160. 800c47e: ee07 3a90 vmov s15, r3
  28161. 800c482: eef8 7a67 vcvt.f32.u32 s15, s15
  28162. 800c486: eddf 6a4f vldr s13, [pc, #316] @ 800c5c4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  28163. 800c48a: ee86 7aa7 vdiv.f32 s14, s13, s15
  28164. 800c48e: 4b48 ldr r3, [pc, #288] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28165. 800c490: 6b9b ldr r3, [r3, #56] @ 0x38
  28166. 800c492: f3c3 0308 ubfx r3, r3, #0, #9
  28167. 800c496: ee07 3a90 vmov s15, r3
  28168. 800c49a: eef8 6a67 vcvt.f32.u32 s13, s15
  28169. 800c49e: ed97 6a03 vldr s12, [r7, #12]
  28170. 800c4a2: eddf 5a45 vldr s11, [pc, #276] @ 800c5b8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28171. 800c4a6: eec6 7a25 vdiv.f32 s15, s12, s11
  28172. 800c4aa: ee76 7aa7 vadd.f32 s15, s13, s15
  28173. 800c4ae: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28174. 800c4b2: ee77 7aa6 vadd.f32 s15, s15, s13
  28175. 800c4b6: ee67 7a27 vmul.f32 s15, s14, s15
  28176. 800c4ba: edc7 7a07 vstr s15, [r7, #28]
  28177. break;
  28178. 800c4be: e021 b.n 800c504 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  28179. default:
  28180. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  28181. 800c4c0: 697b ldr r3, [r7, #20]
  28182. 800c4c2: ee07 3a90 vmov s15, r3
  28183. 800c4c6: eef8 7a67 vcvt.f32.u32 s15, s15
  28184. 800c4ca: eddf 6a3d vldr s13, [pc, #244] @ 800c5c0 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  28185. 800c4ce: ee86 7aa7 vdiv.f32 s14, s13, s15
  28186. 800c4d2: 4b37 ldr r3, [pc, #220] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28187. 800c4d4: 6b9b ldr r3, [r3, #56] @ 0x38
  28188. 800c4d6: f3c3 0308 ubfx r3, r3, #0, #9
  28189. 800c4da: ee07 3a90 vmov s15, r3
  28190. 800c4de: eef8 6a67 vcvt.f32.u32 s13, s15
  28191. 800c4e2: ed97 6a03 vldr s12, [r7, #12]
  28192. 800c4e6: eddf 5a34 vldr s11, [pc, #208] @ 800c5b8 <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  28193. 800c4ea: eec6 7a25 vdiv.f32 s15, s12, s11
  28194. 800c4ee: ee76 7aa7 vadd.f32 s15, s13, s15
  28195. 800c4f2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28196. 800c4f6: ee77 7aa6 vadd.f32 s15, s15, s13
  28197. 800c4fa: ee67 7a27 vmul.f32 s15, s14, s15
  28198. 800c4fe: edc7 7a07 vstr s15, [r7, #28]
  28199. break;
  28200. 800c502: bf00 nop
  28201. }
  28202. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  28203. 800c504: 4b2a ldr r3, [pc, #168] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28204. 800c506: 6b9b ldr r3, [r3, #56] @ 0x38
  28205. 800c508: 0a5b lsrs r3, r3, #9
  28206. 800c50a: f003 037f and.w r3, r3, #127 @ 0x7f
  28207. 800c50e: ee07 3a90 vmov s15, r3
  28208. 800c512: eef8 7a67 vcvt.f32.u32 s15, s15
  28209. 800c516: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28210. 800c51a: ee37 7a87 vadd.f32 s14, s15, s14
  28211. 800c51e: edd7 6a07 vldr s13, [r7, #28]
  28212. 800c522: eec6 7a87 vdiv.f32 s15, s13, s14
  28213. 800c526: eefc 7ae7 vcvt.u32.f32 s15, s15
  28214. 800c52a: ee17 2a90 vmov r2, s15
  28215. 800c52e: 687b ldr r3, [r7, #4]
  28216. 800c530: 601a str r2, [r3, #0]
  28217. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  28218. 800c532: 4b1f ldr r3, [pc, #124] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28219. 800c534: 6b9b ldr r3, [r3, #56] @ 0x38
  28220. 800c536: 0c1b lsrs r3, r3, #16
  28221. 800c538: f003 037f and.w r3, r3, #127 @ 0x7f
  28222. 800c53c: ee07 3a90 vmov s15, r3
  28223. 800c540: eef8 7a67 vcvt.f32.u32 s15, s15
  28224. 800c544: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28225. 800c548: ee37 7a87 vadd.f32 s14, s15, s14
  28226. 800c54c: edd7 6a07 vldr s13, [r7, #28]
  28227. 800c550: eec6 7a87 vdiv.f32 s15, s13, s14
  28228. 800c554: eefc 7ae7 vcvt.u32.f32 s15, s15
  28229. 800c558: ee17 2a90 vmov r2, s15
  28230. 800c55c: 687b ldr r3, [r7, #4]
  28231. 800c55e: 605a str r2, [r3, #4]
  28232. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  28233. 800c560: 4b13 ldr r3, [pc, #76] @ (800c5b0 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  28234. 800c562: 6b9b ldr r3, [r3, #56] @ 0x38
  28235. 800c564: 0e1b lsrs r3, r3, #24
  28236. 800c566: f003 037f and.w r3, r3, #127 @ 0x7f
  28237. 800c56a: ee07 3a90 vmov s15, r3
  28238. 800c56e: eef8 7a67 vcvt.f32.u32 s15, s15
  28239. 800c572: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28240. 800c576: ee37 7a87 vadd.f32 s14, s15, s14
  28241. 800c57a: edd7 6a07 vldr s13, [r7, #28]
  28242. 800c57e: eec6 7a87 vdiv.f32 s15, s13, s14
  28243. 800c582: eefc 7ae7 vcvt.u32.f32 s15, s15
  28244. 800c586: ee17 2a90 vmov r2, s15
  28245. 800c58a: 687b ldr r3, [r7, #4]
  28246. 800c58c: 609a str r2, [r3, #8]
  28247. {
  28248. PLL2_Clocks->PLL2_P_Frequency = 0U;
  28249. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  28250. PLL2_Clocks->PLL2_R_Frequency = 0U;
  28251. }
  28252. }
  28253. 800c58e: e008 b.n 800c5a2 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  28254. PLL2_Clocks->PLL2_P_Frequency = 0U;
  28255. 800c590: 687b ldr r3, [r7, #4]
  28256. 800c592: 2200 movs r2, #0
  28257. 800c594: 601a str r2, [r3, #0]
  28258. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  28259. 800c596: 687b ldr r3, [r7, #4]
  28260. 800c598: 2200 movs r2, #0
  28261. 800c59a: 605a str r2, [r3, #4]
  28262. PLL2_Clocks->PLL2_R_Frequency = 0U;
  28263. 800c59c: 687b ldr r3, [r7, #4]
  28264. 800c59e: 2200 movs r2, #0
  28265. 800c5a0: 609a str r2, [r3, #8]
  28266. }
  28267. 800c5a2: bf00 nop
  28268. 800c5a4: 3724 adds r7, #36 @ 0x24
  28269. 800c5a6: 46bd mov sp, r7
  28270. 800c5a8: f85d 7b04 ldr.w r7, [sp], #4
  28271. 800c5ac: 4770 bx lr
  28272. 800c5ae: bf00 nop
  28273. 800c5b0: 58024400 .word 0x58024400
  28274. 800c5b4: 03d09000 .word 0x03d09000
  28275. 800c5b8: 46000000 .word 0x46000000
  28276. 800c5bc: 4c742400 .word 0x4c742400
  28277. 800c5c0: 4a742400 .word 0x4a742400
  28278. 800c5c4: 4bbebc20 .word 0x4bbebc20
  28279. 0800c5c8 <HAL_RCCEx_GetPLL3ClockFreq>:
  28280. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  28281. * @param PLL3_Clocks structure.
  28282. * @retval None
  28283. */
  28284. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  28285. {
  28286. 800c5c8: b480 push {r7}
  28287. 800c5ca: b089 sub sp, #36 @ 0x24
  28288. 800c5cc: af00 add r7, sp, #0
  28289. 800c5ce: 6078 str r0, [r7, #4]
  28290. float_t fracn3, pll3vco;
  28291. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  28292. PLL3xCLK = PLL3_VCO / PLLxR
  28293. */
  28294. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28295. 800c5d0: 4ba1 ldr r3, [pc, #644] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28296. 800c5d2: 6a9b ldr r3, [r3, #40] @ 0x28
  28297. 800c5d4: f003 0303 and.w r3, r3, #3
  28298. 800c5d8: 61bb str r3, [r7, #24]
  28299. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  28300. 800c5da: 4b9f ldr r3, [pc, #636] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28301. 800c5dc: 6a9b ldr r3, [r3, #40] @ 0x28
  28302. 800c5de: 0d1b lsrs r3, r3, #20
  28303. 800c5e0: f003 033f and.w r3, r3, #63 @ 0x3f
  28304. 800c5e4: 617b str r3, [r7, #20]
  28305. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  28306. 800c5e6: 4b9c ldr r3, [pc, #624] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28307. 800c5e8: 6adb ldr r3, [r3, #44] @ 0x2c
  28308. 800c5ea: 0a1b lsrs r3, r3, #8
  28309. 800c5ec: f003 0301 and.w r3, r3, #1
  28310. 800c5f0: 613b str r3, [r7, #16]
  28311. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  28312. 800c5f2: 4b99 ldr r3, [pc, #612] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28313. 800c5f4: 6c5b ldr r3, [r3, #68] @ 0x44
  28314. 800c5f6: 08db lsrs r3, r3, #3
  28315. 800c5f8: f3c3 030c ubfx r3, r3, #0, #13
  28316. 800c5fc: 693a ldr r2, [r7, #16]
  28317. 800c5fe: fb02 f303 mul.w r3, r2, r3
  28318. 800c602: ee07 3a90 vmov s15, r3
  28319. 800c606: eef8 7a67 vcvt.f32.u32 s15, s15
  28320. 800c60a: edc7 7a03 vstr s15, [r7, #12]
  28321. if (pll3m != 0U)
  28322. 800c60e: 697b ldr r3, [r7, #20]
  28323. 800c610: 2b00 cmp r3, #0
  28324. 800c612: f000 8111 beq.w 800c838 <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  28325. {
  28326. switch (pllsource)
  28327. 800c616: 69bb ldr r3, [r7, #24]
  28328. 800c618: 2b02 cmp r3, #2
  28329. 800c61a: f000 8083 beq.w 800c724 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  28330. 800c61e: 69bb ldr r3, [r7, #24]
  28331. 800c620: 2b02 cmp r3, #2
  28332. 800c622: f200 80a1 bhi.w 800c768 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  28333. 800c626: 69bb ldr r3, [r7, #24]
  28334. 800c628: 2b00 cmp r3, #0
  28335. 800c62a: d003 beq.n 800c634 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  28336. 800c62c: 69bb ldr r3, [r7, #24]
  28337. 800c62e: 2b01 cmp r3, #1
  28338. 800c630: d056 beq.n 800c6e0 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  28339. 800c632: e099 b.n 800c768 <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  28340. {
  28341. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28342. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28343. 800c634: 4b88 ldr r3, [pc, #544] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28344. 800c636: 681b ldr r3, [r3, #0]
  28345. 800c638: f003 0320 and.w r3, r3, #32
  28346. 800c63c: 2b00 cmp r3, #0
  28347. 800c63e: d02d beq.n 800c69c <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  28348. {
  28349. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28350. 800c640: 4b85 ldr r3, [pc, #532] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28351. 800c642: 681b ldr r3, [r3, #0]
  28352. 800c644: 08db lsrs r3, r3, #3
  28353. 800c646: f003 0303 and.w r3, r3, #3
  28354. 800c64a: 4a84 ldr r2, [pc, #528] @ (800c85c <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  28355. 800c64c: fa22 f303 lsr.w r3, r2, r3
  28356. 800c650: 60bb str r3, [r7, #8]
  28357. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28358. 800c652: 68bb ldr r3, [r7, #8]
  28359. 800c654: ee07 3a90 vmov s15, r3
  28360. 800c658: eef8 6a67 vcvt.f32.u32 s13, s15
  28361. 800c65c: 697b ldr r3, [r7, #20]
  28362. 800c65e: ee07 3a90 vmov s15, r3
  28363. 800c662: eef8 7a67 vcvt.f32.u32 s15, s15
  28364. 800c666: ee86 7aa7 vdiv.f32 s14, s13, s15
  28365. 800c66a: 4b7b ldr r3, [pc, #492] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28366. 800c66c: 6c1b ldr r3, [r3, #64] @ 0x40
  28367. 800c66e: f3c3 0308 ubfx r3, r3, #0, #9
  28368. 800c672: ee07 3a90 vmov s15, r3
  28369. 800c676: eef8 6a67 vcvt.f32.u32 s13, s15
  28370. 800c67a: ed97 6a03 vldr s12, [r7, #12]
  28371. 800c67e: eddf 5a78 vldr s11, [pc, #480] @ 800c860 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  28372. 800c682: eec6 7a25 vdiv.f32 s15, s12, s11
  28373. 800c686: ee76 7aa7 vadd.f32 s15, s13, s15
  28374. 800c68a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28375. 800c68e: ee77 7aa6 vadd.f32 s15, s15, s13
  28376. 800c692: ee67 7a27 vmul.f32 s15, s14, s15
  28377. 800c696: edc7 7a07 vstr s15, [r7, #28]
  28378. }
  28379. else
  28380. {
  28381. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28382. }
  28383. break;
  28384. 800c69a: e087 b.n 800c7ac <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  28385. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28386. 800c69c: 697b ldr r3, [r7, #20]
  28387. 800c69e: ee07 3a90 vmov s15, r3
  28388. 800c6a2: eef8 7a67 vcvt.f32.u32 s15, s15
  28389. 800c6a6: eddf 6a6f vldr s13, [pc, #444] @ 800c864 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  28390. 800c6aa: ee86 7aa7 vdiv.f32 s14, s13, s15
  28391. 800c6ae: 4b6a ldr r3, [pc, #424] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28392. 800c6b0: 6c1b ldr r3, [r3, #64] @ 0x40
  28393. 800c6b2: f3c3 0308 ubfx r3, r3, #0, #9
  28394. 800c6b6: ee07 3a90 vmov s15, r3
  28395. 800c6ba: eef8 6a67 vcvt.f32.u32 s13, s15
  28396. 800c6be: ed97 6a03 vldr s12, [r7, #12]
  28397. 800c6c2: eddf 5a67 vldr s11, [pc, #412] @ 800c860 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  28398. 800c6c6: eec6 7a25 vdiv.f32 s15, s12, s11
  28399. 800c6ca: ee76 7aa7 vadd.f32 s15, s13, s15
  28400. 800c6ce: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28401. 800c6d2: ee77 7aa6 vadd.f32 s15, s15, s13
  28402. 800c6d6: ee67 7a27 vmul.f32 s15, s14, s15
  28403. 800c6da: edc7 7a07 vstr s15, [r7, #28]
  28404. break;
  28405. 800c6de: e065 b.n 800c7ac <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  28406. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28407. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28408. 800c6e0: 697b ldr r3, [r7, #20]
  28409. 800c6e2: ee07 3a90 vmov s15, r3
  28410. 800c6e6: eef8 7a67 vcvt.f32.u32 s15, s15
  28411. 800c6ea: eddf 6a5f vldr s13, [pc, #380] @ 800c868 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  28412. 800c6ee: ee86 7aa7 vdiv.f32 s14, s13, s15
  28413. 800c6f2: 4b59 ldr r3, [pc, #356] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28414. 800c6f4: 6c1b ldr r3, [r3, #64] @ 0x40
  28415. 800c6f6: f3c3 0308 ubfx r3, r3, #0, #9
  28416. 800c6fa: ee07 3a90 vmov s15, r3
  28417. 800c6fe: eef8 6a67 vcvt.f32.u32 s13, s15
  28418. 800c702: ed97 6a03 vldr s12, [r7, #12]
  28419. 800c706: eddf 5a56 vldr s11, [pc, #344] @ 800c860 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  28420. 800c70a: eec6 7a25 vdiv.f32 s15, s12, s11
  28421. 800c70e: ee76 7aa7 vadd.f32 s15, s13, s15
  28422. 800c712: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28423. 800c716: ee77 7aa6 vadd.f32 s15, s15, s13
  28424. 800c71a: ee67 7a27 vmul.f32 s15, s14, s15
  28425. 800c71e: edc7 7a07 vstr s15, [r7, #28]
  28426. break;
  28427. 800c722: e043 b.n 800c7ac <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  28428. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28429. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28430. 800c724: 697b ldr r3, [r7, #20]
  28431. 800c726: ee07 3a90 vmov s15, r3
  28432. 800c72a: eef8 7a67 vcvt.f32.u32 s15, s15
  28433. 800c72e: eddf 6a4f vldr s13, [pc, #316] @ 800c86c <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  28434. 800c732: ee86 7aa7 vdiv.f32 s14, s13, s15
  28435. 800c736: 4b48 ldr r3, [pc, #288] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28436. 800c738: 6c1b ldr r3, [r3, #64] @ 0x40
  28437. 800c73a: f3c3 0308 ubfx r3, r3, #0, #9
  28438. 800c73e: ee07 3a90 vmov s15, r3
  28439. 800c742: eef8 6a67 vcvt.f32.u32 s13, s15
  28440. 800c746: ed97 6a03 vldr s12, [r7, #12]
  28441. 800c74a: eddf 5a45 vldr s11, [pc, #276] @ 800c860 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  28442. 800c74e: eec6 7a25 vdiv.f32 s15, s12, s11
  28443. 800c752: ee76 7aa7 vadd.f32 s15, s13, s15
  28444. 800c756: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28445. 800c75a: ee77 7aa6 vadd.f32 s15, s15, s13
  28446. 800c75e: ee67 7a27 vmul.f32 s15, s14, s15
  28447. 800c762: edc7 7a07 vstr s15, [r7, #28]
  28448. break;
  28449. 800c766: e021 b.n 800c7ac <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  28450. default:
  28451. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  28452. 800c768: 697b ldr r3, [r7, #20]
  28453. 800c76a: ee07 3a90 vmov s15, r3
  28454. 800c76e: eef8 7a67 vcvt.f32.u32 s15, s15
  28455. 800c772: eddf 6a3d vldr s13, [pc, #244] @ 800c868 <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  28456. 800c776: ee86 7aa7 vdiv.f32 s14, s13, s15
  28457. 800c77a: 4b37 ldr r3, [pc, #220] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28458. 800c77c: 6c1b ldr r3, [r3, #64] @ 0x40
  28459. 800c77e: f3c3 0308 ubfx r3, r3, #0, #9
  28460. 800c782: ee07 3a90 vmov s15, r3
  28461. 800c786: eef8 6a67 vcvt.f32.u32 s13, s15
  28462. 800c78a: ed97 6a03 vldr s12, [r7, #12]
  28463. 800c78e: eddf 5a34 vldr s11, [pc, #208] @ 800c860 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  28464. 800c792: eec6 7a25 vdiv.f32 s15, s12, s11
  28465. 800c796: ee76 7aa7 vadd.f32 s15, s13, s15
  28466. 800c79a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28467. 800c79e: ee77 7aa6 vadd.f32 s15, s15, s13
  28468. 800c7a2: ee67 7a27 vmul.f32 s15, s14, s15
  28469. 800c7a6: edc7 7a07 vstr s15, [r7, #28]
  28470. break;
  28471. 800c7aa: bf00 nop
  28472. }
  28473. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  28474. 800c7ac: 4b2a ldr r3, [pc, #168] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28475. 800c7ae: 6c1b ldr r3, [r3, #64] @ 0x40
  28476. 800c7b0: 0a5b lsrs r3, r3, #9
  28477. 800c7b2: f003 037f and.w r3, r3, #127 @ 0x7f
  28478. 800c7b6: ee07 3a90 vmov s15, r3
  28479. 800c7ba: eef8 7a67 vcvt.f32.u32 s15, s15
  28480. 800c7be: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28481. 800c7c2: ee37 7a87 vadd.f32 s14, s15, s14
  28482. 800c7c6: edd7 6a07 vldr s13, [r7, #28]
  28483. 800c7ca: eec6 7a87 vdiv.f32 s15, s13, s14
  28484. 800c7ce: eefc 7ae7 vcvt.u32.f32 s15, s15
  28485. 800c7d2: ee17 2a90 vmov r2, s15
  28486. 800c7d6: 687b ldr r3, [r7, #4]
  28487. 800c7d8: 601a str r2, [r3, #0]
  28488. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  28489. 800c7da: 4b1f ldr r3, [pc, #124] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28490. 800c7dc: 6c1b ldr r3, [r3, #64] @ 0x40
  28491. 800c7de: 0c1b lsrs r3, r3, #16
  28492. 800c7e0: f003 037f and.w r3, r3, #127 @ 0x7f
  28493. 800c7e4: ee07 3a90 vmov s15, r3
  28494. 800c7e8: eef8 7a67 vcvt.f32.u32 s15, s15
  28495. 800c7ec: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28496. 800c7f0: ee37 7a87 vadd.f32 s14, s15, s14
  28497. 800c7f4: edd7 6a07 vldr s13, [r7, #28]
  28498. 800c7f8: eec6 7a87 vdiv.f32 s15, s13, s14
  28499. 800c7fc: eefc 7ae7 vcvt.u32.f32 s15, s15
  28500. 800c800: ee17 2a90 vmov r2, s15
  28501. 800c804: 687b ldr r3, [r7, #4]
  28502. 800c806: 605a str r2, [r3, #4]
  28503. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  28504. 800c808: 4b13 ldr r3, [pc, #76] @ (800c858 <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  28505. 800c80a: 6c1b ldr r3, [r3, #64] @ 0x40
  28506. 800c80c: 0e1b lsrs r3, r3, #24
  28507. 800c80e: f003 037f and.w r3, r3, #127 @ 0x7f
  28508. 800c812: ee07 3a90 vmov s15, r3
  28509. 800c816: eef8 7a67 vcvt.f32.u32 s15, s15
  28510. 800c81a: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  28511. 800c81e: ee37 7a87 vadd.f32 s14, s15, s14
  28512. 800c822: edd7 6a07 vldr s13, [r7, #28]
  28513. 800c826: eec6 7a87 vdiv.f32 s15, s13, s14
  28514. 800c82a: eefc 7ae7 vcvt.u32.f32 s15, s15
  28515. 800c82e: ee17 2a90 vmov r2, s15
  28516. 800c832: 687b ldr r3, [r7, #4]
  28517. 800c834: 609a str r2, [r3, #8]
  28518. PLL3_Clocks->PLL3_P_Frequency = 0U;
  28519. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  28520. PLL3_Clocks->PLL3_R_Frequency = 0U;
  28521. }
  28522. }
  28523. 800c836: e008 b.n 800c84a <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  28524. PLL3_Clocks->PLL3_P_Frequency = 0U;
  28525. 800c838: 687b ldr r3, [r7, #4]
  28526. 800c83a: 2200 movs r2, #0
  28527. 800c83c: 601a str r2, [r3, #0]
  28528. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  28529. 800c83e: 687b ldr r3, [r7, #4]
  28530. 800c840: 2200 movs r2, #0
  28531. 800c842: 605a str r2, [r3, #4]
  28532. PLL3_Clocks->PLL3_R_Frequency = 0U;
  28533. 800c844: 687b ldr r3, [r7, #4]
  28534. 800c846: 2200 movs r2, #0
  28535. 800c848: 609a str r2, [r3, #8]
  28536. }
  28537. 800c84a: bf00 nop
  28538. 800c84c: 3724 adds r7, #36 @ 0x24
  28539. 800c84e: 46bd mov sp, r7
  28540. 800c850: f85d 7b04 ldr.w r7, [sp], #4
  28541. 800c854: 4770 bx lr
  28542. 800c856: bf00 nop
  28543. 800c858: 58024400 .word 0x58024400
  28544. 800c85c: 03d09000 .word 0x03d09000
  28545. 800c860: 46000000 .word 0x46000000
  28546. 800c864: 4c742400 .word 0x4c742400
  28547. 800c868: 4a742400 .word 0x4a742400
  28548. 800c86c: 4bbebc20 .word 0x4bbebc20
  28549. 0800c870 <RCCEx_PLL2_Config>:
  28550. * @note PLL2 is temporary disabled to apply new parameters
  28551. *
  28552. * @retval HAL status
  28553. */
  28554. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  28555. {
  28556. 800c870: b580 push {r7, lr}
  28557. 800c872: b084 sub sp, #16
  28558. 800c874: af00 add r7, sp, #0
  28559. 800c876: 6078 str r0, [r7, #4]
  28560. 800c878: 6039 str r1, [r7, #0]
  28561. uint32_t tickstart;
  28562. HAL_StatusTypeDef status = HAL_OK;
  28563. 800c87a: 2300 movs r3, #0
  28564. 800c87c: 73fb strb r3, [r7, #15]
  28565. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  28566. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  28567. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  28568. /* Check that PLL2 OSC clock source is already set */
  28569. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  28570. 800c87e: 4b53 ldr r3, [pc, #332] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28571. 800c880: 6a9b ldr r3, [r3, #40] @ 0x28
  28572. 800c882: f003 0303 and.w r3, r3, #3
  28573. 800c886: 2b03 cmp r3, #3
  28574. 800c888: d101 bne.n 800c88e <RCCEx_PLL2_Config+0x1e>
  28575. {
  28576. return HAL_ERROR;
  28577. 800c88a: 2301 movs r3, #1
  28578. 800c88c: e099 b.n 800c9c2 <RCCEx_PLL2_Config+0x152>
  28579. else
  28580. {
  28581. /* Disable PLL2. */
  28582. __HAL_RCC_PLL2_DISABLE();
  28583. 800c88e: 4b4f ldr r3, [pc, #316] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28584. 800c890: 681b ldr r3, [r3, #0]
  28585. 800c892: 4a4e ldr r2, [pc, #312] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28586. 800c894: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  28587. 800c898: 6013 str r3, [r2, #0]
  28588. /* Get Start Tick*/
  28589. tickstart = HAL_GetTick();
  28590. 800c89a: f7f8 fcd1 bl 8005240 <HAL_GetTick>
  28591. 800c89e: 60b8 str r0, [r7, #8]
  28592. /* Wait till PLL is disabled */
  28593. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  28594. 800c8a0: e008 b.n 800c8b4 <RCCEx_PLL2_Config+0x44>
  28595. {
  28596. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  28597. 800c8a2: f7f8 fccd bl 8005240 <HAL_GetTick>
  28598. 800c8a6: 4602 mov r2, r0
  28599. 800c8a8: 68bb ldr r3, [r7, #8]
  28600. 800c8aa: 1ad3 subs r3, r2, r3
  28601. 800c8ac: 2b02 cmp r3, #2
  28602. 800c8ae: d901 bls.n 800c8b4 <RCCEx_PLL2_Config+0x44>
  28603. {
  28604. return HAL_TIMEOUT;
  28605. 800c8b0: 2303 movs r3, #3
  28606. 800c8b2: e086 b.n 800c9c2 <RCCEx_PLL2_Config+0x152>
  28607. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  28608. 800c8b4: 4b45 ldr r3, [pc, #276] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28609. 800c8b6: 681b ldr r3, [r3, #0]
  28610. 800c8b8: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  28611. 800c8bc: 2b00 cmp r3, #0
  28612. 800c8be: d1f0 bne.n 800c8a2 <RCCEx_PLL2_Config+0x32>
  28613. }
  28614. }
  28615. /* Configure PLL2 multiplication and division factors. */
  28616. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  28617. 800c8c0: 4b42 ldr r3, [pc, #264] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28618. 800c8c2: 6a9b ldr r3, [r3, #40] @ 0x28
  28619. 800c8c4: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  28620. 800c8c8: 687b ldr r3, [r7, #4]
  28621. 800c8ca: 681b ldr r3, [r3, #0]
  28622. 800c8cc: 031b lsls r3, r3, #12
  28623. 800c8ce: 493f ldr r1, [pc, #252] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28624. 800c8d0: 4313 orrs r3, r2
  28625. 800c8d2: 628b str r3, [r1, #40] @ 0x28
  28626. 800c8d4: 687b ldr r3, [r7, #4]
  28627. 800c8d6: 685b ldr r3, [r3, #4]
  28628. 800c8d8: 3b01 subs r3, #1
  28629. 800c8da: f3c3 0208 ubfx r2, r3, #0, #9
  28630. 800c8de: 687b ldr r3, [r7, #4]
  28631. 800c8e0: 689b ldr r3, [r3, #8]
  28632. 800c8e2: 3b01 subs r3, #1
  28633. 800c8e4: 025b lsls r3, r3, #9
  28634. 800c8e6: b29b uxth r3, r3
  28635. 800c8e8: 431a orrs r2, r3
  28636. 800c8ea: 687b ldr r3, [r7, #4]
  28637. 800c8ec: 68db ldr r3, [r3, #12]
  28638. 800c8ee: 3b01 subs r3, #1
  28639. 800c8f0: 041b lsls r3, r3, #16
  28640. 800c8f2: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  28641. 800c8f6: 431a orrs r2, r3
  28642. 800c8f8: 687b ldr r3, [r7, #4]
  28643. 800c8fa: 691b ldr r3, [r3, #16]
  28644. 800c8fc: 3b01 subs r3, #1
  28645. 800c8fe: 061b lsls r3, r3, #24
  28646. 800c900: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  28647. 800c904: 4931 ldr r1, [pc, #196] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28648. 800c906: 4313 orrs r3, r2
  28649. 800c908: 638b str r3, [r1, #56] @ 0x38
  28650. pll2->PLL2P,
  28651. pll2->PLL2Q,
  28652. pll2->PLL2R);
  28653. /* Select PLL2 input reference frequency range: VCI */
  28654. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  28655. 800c90a: 4b30 ldr r3, [pc, #192] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28656. 800c90c: 6adb ldr r3, [r3, #44] @ 0x2c
  28657. 800c90e: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  28658. 800c912: 687b ldr r3, [r7, #4]
  28659. 800c914: 695b ldr r3, [r3, #20]
  28660. 800c916: 492d ldr r1, [pc, #180] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28661. 800c918: 4313 orrs r3, r2
  28662. 800c91a: 62cb str r3, [r1, #44] @ 0x2c
  28663. /* Select PLL2 output frequency range : VCO */
  28664. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  28665. 800c91c: 4b2b ldr r3, [pc, #172] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28666. 800c91e: 6adb ldr r3, [r3, #44] @ 0x2c
  28667. 800c920: f023 0220 bic.w r2, r3, #32
  28668. 800c924: 687b ldr r3, [r7, #4]
  28669. 800c926: 699b ldr r3, [r3, #24]
  28670. 800c928: 4928 ldr r1, [pc, #160] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28671. 800c92a: 4313 orrs r3, r2
  28672. 800c92c: 62cb str r3, [r1, #44] @ 0x2c
  28673. /* Disable PLL2FRACN . */
  28674. __HAL_RCC_PLL2FRACN_DISABLE();
  28675. 800c92e: 4b27 ldr r3, [pc, #156] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28676. 800c930: 6adb ldr r3, [r3, #44] @ 0x2c
  28677. 800c932: 4a26 ldr r2, [pc, #152] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28678. 800c934: f023 0310 bic.w r3, r3, #16
  28679. 800c938: 62d3 str r3, [r2, #44] @ 0x2c
  28680. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  28681. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  28682. 800c93a: 4b24 ldr r3, [pc, #144] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28683. 800c93c: 6bda ldr r2, [r3, #60] @ 0x3c
  28684. 800c93e: 4b24 ldr r3, [pc, #144] @ (800c9d0 <RCCEx_PLL2_Config+0x160>)
  28685. 800c940: 4013 ands r3, r2
  28686. 800c942: 687a ldr r2, [r7, #4]
  28687. 800c944: 69d2 ldr r2, [r2, #28]
  28688. 800c946: 00d2 lsls r2, r2, #3
  28689. 800c948: 4920 ldr r1, [pc, #128] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28690. 800c94a: 4313 orrs r3, r2
  28691. 800c94c: 63cb str r3, [r1, #60] @ 0x3c
  28692. /* Enable PLL2FRACN . */
  28693. __HAL_RCC_PLL2FRACN_ENABLE();
  28694. 800c94e: 4b1f ldr r3, [pc, #124] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28695. 800c950: 6adb ldr r3, [r3, #44] @ 0x2c
  28696. 800c952: 4a1e ldr r2, [pc, #120] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28697. 800c954: f043 0310 orr.w r3, r3, #16
  28698. 800c958: 62d3 str r3, [r2, #44] @ 0x2c
  28699. /* Enable the PLL2 clock output */
  28700. if (Divider == DIVIDER_P_UPDATE)
  28701. 800c95a: 683b ldr r3, [r7, #0]
  28702. 800c95c: 2b00 cmp r3, #0
  28703. 800c95e: d106 bne.n 800c96e <RCCEx_PLL2_Config+0xfe>
  28704. {
  28705. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  28706. 800c960: 4b1a ldr r3, [pc, #104] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28707. 800c962: 6adb ldr r3, [r3, #44] @ 0x2c
  28708. 800c964: 4a19 ldr r2, [pc, #100] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28709. 800c966: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  28710. 800c96a: 62d3 str r3, [r2, #44] @ 0x2c
  28711. 800c96c: e00f b.n 800c98e <RCCEx_PLL2_Config+0x11e>
  28712. }
  28713. else if (Divider == DIVIDER_Q_UPDATE)
  28714. 800c96e: 683b ldr r3, [r7, #0]
  28715. 800c970: 2b01 cmp r3, #1
  28716. 800c972: d106 bne.n 800c982 <RCCEx_PLL2_Config+0x112>
  28717. {
  28718. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  28719. 800c974: 4b15 ldr r3, [pc, #84] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28720. 800c976: 6adb ldr r3, [r3, #44] @ 0x2c
  28721. 800c978: 4a14 ldr r2, [pc, #80] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28722. 800c97a: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  28723. 800c97e: 62d3 str r3, [r2, #44] @ 0x2c
  28724. 800c980: e005 b.n 800c98e <RCCEx_PLL2_Config+0x11e>
  28725. }
  28726. else
  28727. {
  28728. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  28729. 800c982: 4b12 ldr r3, [pc, #72] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28730. 800c984: 6adb ldr r3, [r3, #44] @ 0x2c
  28731. 800c986: 4a11 ldr r2, [pc, #68] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28732. 800c988: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  28733. 800c98c: 62d3 str r3, [r2, #44] @ 0x2c
  28734. }
  28735. /* Enable PLL2. */
  28736. __HAL_RCC_PLL2_ENABLE();
  28737. 800c98e: 4b0f ldr r3, [pc, #60] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28738. 800c990: 681b ldr r3, [r3, #0]
  28739. 800c992: 4a0e ldr r2, [pc, #56] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28740. 800c994: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  28741. 800c998: 6013 str r3, [r2, #0]
  28742. /* Get Start Tick*/
  28743. tickstart = HAL_GetTick();
  28744. 800c99a: f7f8 fc51 bl 8005240 <HAL_GetTick>
  28745. 800c99e: 60b8 str r0, [r7, #8]
  28746. /* Wait till PLL2 is ready */
  28747. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  28748. 800c9a0: e008 b.n 800c9b4 <RCCEx_PLL2_Config+0x144>
  28749. {
  28750. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  28751. 800c9a2: f7f8 fc4d bl 8005240 <HAL_GetTick>
  28752. 800c9a6: 4602 mov r2, r0
  28753. 800c9a8: 68bb ldr r3, [r7, #8]
  28754. 800c9aa: 1ad3 subs r3, r2, r3
  28755. 800c9ac: 2b02 cmp r3, #2
  28756. 800c9ae: d901 bls.n 800c9b4 <RCCEx_PLL2_Config+0x144>
  28757. {
  28758. return HAL_TIMEOUT;
  28759. 800c9b0: 2303 movs r3, #3
  28760. 800c9b2: e006 b.n 800c9c2 <RCCEx_PLL2_Config+0x152>
  28761. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  28762. 800c9b4: 4b05 ldr r3, [pc, #20] @ (800c9cc <RCCEx_PLL2_Config+0x15c>)
  28763. 800c9b6: 681b ldr r3, [r3, #0]
  28764. 800c9b8: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  28765. 800c9bc: 2b00 cmp r3, #0
  28766. 800c9be: d0f0 beq.n 800c9a2 <RCCEx_PLL2_Config+0x132>
  28767. }
  28768. }
  28769. return status;
  28770. 800c9c0: 7bfb ldrb r3, [r7, #15]
  28771. }
  28772. 800c9c2: 4618 mov r0, r3
  28773. 800c9c4: 3710 adds r7, #16
  28774. 800c9c6: 46bd mov sp, r7
  28775. 800c9c8: bd80 pop {r7, pc}
  28776. 800c9ca: bf00 nop
  28777. 800c9cc: 58024400 .word 0x58024400
  28778. 800c9d0: ffff0007 .word 0xffff0007
  28779. 0800c9d4 <RCCEx_PLL3_Config>:
  28780. * @note PLL3 is temporary disabled to apply new parameters
  28781. *
  28782. * @retval HAL status
  28783. */
  28784. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  28785. {
  28786. 800c9d4: b580 push {r7, lr}
  28787. 800c9d6: b084 sub sp, #16
  28788. 800c9d8: af00 add r7, sp, #0
  28789. 800c9da: 6078 str r0, [r7, #4]
  28790. 800c9dc: 6039 str r1, [r7, #0]
  28791. uint32_t tickstart;
  28792. HAL_StatusTypeDef status = HAL_OK;
  28793. 800c9de: 2300 movs r3, #0
  28794. 800c9e0: 73fb strb r3, [r7, #15]
  28795. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  28796. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  28797. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  28798. /* Check that PLL3 OSC clock source is already set */
  28799. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  28800. 800c9e2: 4b53 ldr r3, [pc, #332] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28801. 800c9e4: 6a9b ldr r3, [r3, #40] @ 0x28
  28802. 800c9e6: f003 0303 and.w r3, r3, #3
  28803. 800c9ea: 2b03 cmp r3, #3
  28804. 800c9ec: d101 bne.n 800c9f2 <RCCEx_PLL3_Config+0x1e>
  28805. {
  28806. return HAL_ERROR;
  28807. 800c9ee: 2301 movs r3, #1
  28808. 800c9f0: e099 b.n 800cb26 <RCCEx_PLL3_Config+0x152>
  28809. else
  28810. {
  28811. /* Disable PLL3. */
  28812. __HAL_RCC_PLL3_DISABLE();
  28813. 800c9f2: 4b4f ldr r3, [pc, #316] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28814. 800c9f4: 681b ldr r3, [r3, #0]
  28815. 800c9f6: 4a4e ldr r2, [pc, #312] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28816. 800c9f8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  28817. 800c9fc: 6013 str r3, [r2, #0]
  28818. /* Get Start Tick*/
  28819. tickstart = HAL_GetTick();
  28820. 800c9fe: f7f8 fc1f bl 8005240 <HAL_GetTick>
  28821. 800ca02: 60b8 str r0, [r7, #8]
  28822. /* Wait till PLL3 is ready */
  28823. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  28824. 800ca04: e008 b.n 800ca18 <RCCEx_PLL3_Config+0x44>
  28825. {
  28826. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  28827. 800ca06: f7f8 fc1b bl 8005240 <HAL_GetTick>
  28828. 800ca0a: 4602 mov r2, r0
  28829. 800ca0c: 68bb ldr r3, [r7, #8]
  28830. 800ca0e: 1ad3 subs r3, r2, r3
  28831. 800ca10: 2b02 cmp r3, #2
  28832. 800ca12: d901 bls.n 800ca18 <RCCEx_PLL3_Config+0x44>
  28833. {
  28834. return HAL_TIMEOUT;
  28835. 800ca14: 2303 movs r3, #3
  28836. 800ca16: e086 b.n 800cb26 <RCCEx_PLL3_Config+0x152>
  28837. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  28838. 800ca18: 4b45 ldr r3, [pc, #276] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28839. 800ca1a: 681b ldr r3, [r3, #0]
  28840. 800ca1c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  28841. 800ca20: 2b00 cmp r3, #0
  28842. 800ca22: d1f0 bne.n 800ca06 <RCCEx_PLL3_Config+0x32>
  28843. }
  28844. }
  28845. /* Configure the PLL3 multiplication and division factors. */
  28846. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  28847. 800ca24: 4b42 ldr r3, [pc, #264] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28848. 800ca26: 6a9b ldr r3, [r3, #40] @ 0x28
  28849. 800ca28: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  28850. 800ca2c: 687b ldr r3, [r7, #4]
  28851. 800ca2e: 681b ldr r3, [r3, #0]
  28852. 800ca30: 051b lsls r3, r3, #20
  28853. 800ca32: 493f ldr r1, [pc, #252] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28854. 800ca34: 4313 orrs r3, r2
  28855. 800ca36: 628b str r3, [r1, #40] @ 0x28
  28856. 800ca38: 687b ldr r3, [r7, #4]
  28857. 800ca3a: 685b ldr r3, [r3, #4]
  28858. 800ca3c: 3b01 subs r3, #1
  28859. 800ca3e: f3c3 0208 ubfx r2, r3, #0, #9
  28860. 800ca42: 687b ldr r3, [r7, #4]
  28861. 800ca44: 689b ldr r3, [r3, #8]
  28862. 800ca46: 3b01 subs r3, #1
  28863. 800ca48: 025b lsls r3, r3, #9
  28864. 800ca4a: b29b uxth r3, r3
  28865. 800ca4c: 431a orrs r2, r3
  28866. 800ca4e: 687b ldr r3, [r7, #4]
  28867. 800ca50: 68db ldr r3, [r3, #12]
  28868. 800ca52: 3b01 subs r3, #1
  28869. 800ca54: 041b lsls r3, r3, #16
  28870. 800ca56: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  28871. 800ca5a: 431a orrs r2, r3
  28872. 800ca5c: 687b ldr r3, [r7, #4]
  28873. 800ca5e: 691b ldr r3, [r3, #16]
  28874. 800ca60: 3b01 subs r3, #1
  28875. 800ca62: 061b lsls r3, r3, #24
  28876. 800ca64: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  28877. 800ca68: 4931 ldr r1, [pc, #196] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28878. 800ca6a: 4313 orrs r3, r2
  28879. 800ca6c: 640b str r3, [r1, #64] @ 0x40
  28880. pll3->PLL3P,
  28881. pll3->PLL3Q,
  28882. pll3->PLL3R);
  28883. /* Select PLL3 input reference frequency range: VCI */
  28884. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  28885. 800ca6e: 4b30 ldr r3, [pc, #192] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28886. 800ca70: 6adb ldr r3, [r3, #44] @ 0x2c
  28887. 800ca72: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  28888. 800ca76: 687b ldr r3, [r7, #4]
  28889. 800ca78: 695b ldr r3, [r3, #20]
  28890. 800ca7a: 492d ldr r1, [pc, #180] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28891. 800ca7c: 4313 orrs r3, r2
  28892. 800ca7e: 62cb str r3, [r1, #44] @ 0x2c
  28893. /* Select PLL3 output frequency range : VCO */
  28894. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  28895. 800ca80: 4b2b ldr r3, [pc, #172] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28896. 800ca82: 6adb ldr r3, [r3, #44] @ 0x2c
  28897. 800ca84: f423 7200 bic.w r2, r3, #512 @ 0x200
  28898. 800ca88: 687b ldr r3, [r7, #4]
  28899. 800ca8a: 699b ldr r3, [r3, #24]
  28900. 800ca8c: 4928 ldr r1, [pc, #160] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28901. 800ca8e: 4313 orrs r3, r2
  28902. 800ca90: 62cb str r3, [r1, #44] @ 0x2c
  28903. /* Disable PLL3FRACN . */
  28904. __HAL_RCC_PLL3FRACN_DISABLE();
  28905. 800ca92: 4b27 ldr r3, [pc, #156] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28906. 800ca94: 6adb ldr r3, [r3, #44] @ 0x2c
  28907. 800ca96: 4a26 ldr r2, [pc, #152] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28908. 800ca98: f423 7380 bic.w r3, r3, #256 @ 0x100
  28909. 800ca9c: 62d3 str r3, [r2, #44] @ 0x2c
  28910. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  28911. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  28912. 800ca9e: 4b24 ldr r3, [pc, #144] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28913. 800caa0: 6c5a ldr r2, [r3, #68] @ 0x44
  28914. 800caa2: 4b24 ldr r3, [pc, #144] @ (800cb34 <RCCEx_PLL3_Config+0x160>)
  28915. 800caa4: 4013 ands r3, r2
  28916. 800caa6: 687a ldr r2, [r7, #4]
  28917. 800caa8: 69d2 ldr r2, [r2, #28]
  28918. 800caaa: 00d2 lsls r2, r2, #3
  28919. 800caac: 4920 ldr r1, [pc, #128] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28920. 800caae: 4313 orrs r3, r2
  28921. 800cab0: 644b str r3, [r1, #68] @ 0x44
  28922. /* Enable PLL3FRACN . */
  28923. __HAL_RCC_PLL3FRACN_ENABLE();
  28924. 800cab2: 4b1f ldr r3, [pc, #124] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28925. 800cab4: 6adb ldr r3, [r3, #44] @ 0x2c
  28926. 800cab6: 4a1e ldr r2, [pc, #120] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28927. 800cab8: f443 7380 orr.w r3, r3, #256 @ 0x100
  28928. 800cabc: 62d3 str r3, [r2, #44] @ 0x2c
  28929. /* Enable the PLL3 clock output */
  28930. if (Divider == DIVIDER_P_UPDATE)
  28931. 800cabe: 683b ldr r3, [r7, #0]
  28932. 800cac0: 2b00 cmp r3, #0
  28933. 800cac2: d106 bne.n 800cad2 <RCCEx_PLL3_Config+0xfe>
  28934. {
  28935. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  28936. 800cac4: 4b1a ldr r3, [pc, #104] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28937. 800cac6: 6adb ldr r3, [r3, #44] @ 0x2c
  28938. 800cac8: 4a19 ldr r2, [pc, #100] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28939. 800caca: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  28940. 800cace: 62d3 str r3, [r2, #44] @ 0x2c
  28941. 800cad0: e00f b.n 800caf2 <RCCEx_PLL3_Config+0x11e>
  28942. }
  28943. else if (Divider == DIVIDER_Q_UPDATE)
  28944. 800cad2: 683b ldr r3, [r7, #0]
  28945. 800cad4: 2b01 cmp r3, #1
  28946. 800cad6: d106 bne.n 800cae6 <RCCEx_PLL3_Config+0x112>
  28947. {
  28948. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  28949. 800cad8: 4b15 ldr r3, [pc, #84] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28950. 800cada: 6adb ldr r3, [r3, #44] @ 0x2c
  28951. 800cadc: 4a14 ldr r2, [pc, #80] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28952. 800cade: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  28953. 800cae2: 62d3 str r3, [r2, #44] @ 0x2c
  28954. 800cae4: e005 b.n 800caf2 <RCCEx_PLL3_Config+0x11e>
  28955. }
  28956. else
  28957. {
  28958. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  28959. 800cae6: 4b12 ldr r3, [pc, #72] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28960. 800cae8: 6adb ldr r3, [r3, #44] @ 0x2c
  28961. 800caea: 4a11 ldr r2, [pc, #68] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28962. 800caec: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  28963. 800caf0: 62d3 str r3, [r2, #44] @ 0x2c
  28964. }
  28965. /* Enable PLL3. */
  28966. __HAL_RCC_PLL3_ENABLE();
  28967. 800caf2: 4b0f ldr r3, [pc, #60] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28968. 800caf4: 681b ldr r3, [r3, #0]
  28969. 800caf6: 4a0e ldr r2, [pc, #56] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28970. 800caf8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  28971. 800cafc: 6013 str r3, [r2, #0]
  28972. /* Get Start Tick*/
  28973. tickstart = HAL_GetTick();
  28974. 800cafe: f7f8 fb9f bl 8005240 <HAL_GetTick>
  28975. 800cb02: 60b8 str r0, [r7, #8]
  28976. /* Wait till PLL3 is ready */
  28977. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  28978. 800cb04: e008 b.n 800cb18 <RCCEx_PLL3_Config+0x144>
  28979. {
  28980. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  28981. 800cb06: f7f8 fb9b bl 8005240 <HAL_GetTick>
  28982. 800cb0a: 4602 mov r2, r0
  28983. 800cb0c: 68bb ldr r3, [r7, #8]
  28984. 800cb0e: 1ad3 subs r3, r2, r3
  28985. 800cb10: 2b02 cmp r3, #2
  28986. 800cb12: d901 bls.n 800cb18 <RCCEx_PLL3_Config+0x144>
  28987. {
  28988. return HAL_TIMEOUT;
  28989. 800cb14: 2303 movs r3, #3
  28990. 800cb16: e006 b.n 800cb26 <RCCEx_PLL3_Config+0x152>
  28991. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  28992. 800cb18: 4b05 ldr r3, [pc, #20] @ (800cb30 <RCCEx_PLL3_Config+0x15c>)
  28993. 800cb1a: 681b ldr r3, [r3, #0]
  28994. 800cb1c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  28995. 800cb20: 2b00 cmp r3, #0
  28996. 800cb22: d0f0 beq.n 800cb06 <RCCEx_PLL3_Config+0x132>
  28997. }
  28998. }
  28999. return status;
  29000. 800cb24: 7bfb ldrb r3, [r7, #15]
  29001. }
  29002. 800cb26: 4618 mov r0, r3
  29003. 800cb28: 3710 adds r7, #16
  29004. 800cb2a: 46bd mov sp, r7
  29005. 800cb2c: bd80 pop {r7, pc}
  29006. 800cb2e: bf00 nop
  29007. 800cb30: 58024400 .word 0x58024400
  29008. 800cb34: ffff0007 .word 0xffff0007
  29009. 0800cb38 <HAL_RNG_Init>:
  29010. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  29011. * the configuration information for RNG.
  29012. * @retval HAL status
  29013. */
  29014. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  29015. {
  29016. 800cb38: b580 push {r7, lr}
  29017. 800cb3a: b084 sub sp, #16
  29018. 800cb3c: af00 add r7, sp, #0
  29019. 800cb3e: 6078 str r0, [r7, #4]
  29020. uint32_t tickstart;
  29021. /* Check the RNG handle allocation */
  29022. if (hrng == NULL)
  29023. 800cb40: 687b ldr r3, [r7, #4]
  29024. 800cb42: 2b00 cmp r3, #0
  29025. 800cb44: d101 bne.n 800cb4a <HAL_RNG_Init+0x12>
  29026. {
  29027. return HAL_ERROR;
  29028. 800cb46: 2301 movs r3, #1
  29029. 800cb48: e054 b.n 800cbf4 <HAL_RNG_Init+0xbc>
  29030. /* Init the low level hardware */
  29031. hrng->MspInitCallback(hrng);
  29032. }
  29033. #else
  29034. if (hrng->State == HAL_RNG_STATE_RESET)
  29035. 800cb4a: 687b ldr r3, [r7, #4]
  29036. 800cb4c: 7a5b ldrb r3, [r3, #9]
  29037. 800cb4e: b2db uxtb r3, r3
  29038. 800cb50: 2b00 cmp r3, #0
  29039. 800cb52: d105 bne.n 800cb60 <HAL_RNG_Init+0x28>
  29040. {
  29041. /* Allocate lock resource and initialize it */
  29042. hrng->Lock = HAL_UNLOCKED;
  29043. 800cb54: 687b ldr r3, [r7, #4]
  29044. 800cb56: 2200 movs r2, #0
  29045. 800cb58: 721a strb r2, [r3, #8]
  29046. /* Init the low level hardware */
  29047. HAL_RNG_MspInit(hrng);
  29048. 800cb5a: 6878 ldr r0, [r7, #4]
  29049. 800cb5c: f7f6 fd22 bl 80035a4 <HAL_RNG_MspInit>
  29050. }
  29051. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  29052. /* Change RNG peripheral state */
  29053. hrng->State = HAL_RNG_STATE_BUSY;
  29054. 800cb60: 687b ldr r3, [r7, #4]
  29055. 800cb62: 2202 movs r2, #2
  29056. 800cb64: 725a strb r2, [r3, #9]
  29057. }
  29058. }
  29059. }
  29060. #else
  29061. /* Clock Error Detection Configuration */
  29062. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  29063. 800cb66: 687b ldr r3, [r7, #4]
  29064. 800cb68: 681b ldr r3, [r3, #0]
  29065. 800cb6a: 681b ldr r3, [r3, #0]
  29066. 800cb6c: f023 0120 bic.w r1, r3, #32
  29067. 800cb70: 687b ldr r3, [r7, #4]
  29068. 800cb72: 685a ldr r2, [r3, #4]
  29069. 800cb74: 687b ldr r3, [r7, #4]
  29070. 800cb76: 681b ldr r3, [r3, #0]
  29071. 800cb78: 430a orrs r2, r1
  29072. 800cb7a: 601a str r2, [r3, #0]
  29073. #endif /* RNG_CR_CONDRST */
  29074. /* Enable the RNG Peripheral */
  29075. __HAL_RNG_ENABLE(hrng);
  29076. 800cb7c: 687b ldr r3, [r7, #4]
  29077. 800cb7e: 681b ldr r3, [r3, #0]
  29078. 800cb80: 681a ldr r2, [r3, #0]
  29079. 800cb82: 687b ldr r3, [r7, #4]
  29080. 800cb84: 681b ldr r3, [r3, #0]
  29081. 800cb86: f042 0204 orr.w r2, r2, #4
  29082. 800cb8a: 601a str r2, [r3, #0]
  29083. /* verify that no seed error */
  29084. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  29085. 800cb8c: 687b ldr r3, [r7, #4]
  29086. 800cb8e: 681b ldr r3, [r3, #0]
  29087. 800cb90: 685b ldr r3, [r3, #4]
  29088. 800cb92: f003 0340 and.w r3, r3, #64 @ 0x40
  29089. 800cb96: 2b40 cmp r3, #64 @ 0x40
  29090. 800cb98: d104 bne.n 800cba4 <HAL_RNG_Init+0x6c>
  29091. {
  29092. hrng->State = HAL_RNG_STATE_ERROR;
  29093. 800cb9a: 687b ldr r3, [r7, #4]
  29094. 800cb9c: 2204 movs r2, #4
  29095. 800cb9e: 725a strb r2, [r3, #9]
  29096. return HAL_ERROR;
  29097. 800cba0: 2301 movs r3, #1
  29098. 800cba2: e027 b.n 800cbf4 <HAL_RNG_Init+0xbc>
  29099. }
  29100. /* Get tick */
  29101. tickstart = HAL_GetTick();
  29102. 800cba4: f7f8 fb4c bl 8005240 <HAL_GetTick>
  29103. 800cba8: 60f8 str r0, [r7, #12]
  29104. /* Check if data register contains valid random data */
  29105. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  29106. 800cbaa: e015 b.n 800cbd8 <HAL_RNG_Init+0xa0>
  29107. {
  29108. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  29109. 800cbac: f7f8 fb48 bl 8005240 <HAL_GetTick>
  29110. 800cbb0: 4602 mov r2, r0
  29111. 800cbb2: 68fb ldr r3, [r7, #12]
  29112. 800cbb4: 1ad3 subs r3, r2, r3
  29113. 800cbb6: 2b02 cmp r3, #2
  29114. 800cbb8: d90e bls.n 800cbd8 <HAL_RNG_Init+0xa0>
  29115. {
  29116. /* New check to avoid false timeout detection in case of preemption */
  29117. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  29118. 800cbba: 687b ldr r3, [r7, #4]
  29119. 800cbbc: 681b ldr r3, [r3, #0]
  29120. 800cbbe: 685b ldr r3, [r3, #4]
  29121. 800cbc0: f003 0304 and.w r3, r3, #4
  29122. 800cbc4: 2b04 cmp r3, #4
  29123. 800cbc6: d107 bne.n 800cbd8 <HAL_RNG_Init+0xa0>
  29124. {
  29125. hrng->State = HAL_RNG_STATE_ERROR;
  29126. 800cbc8: 687b ldr r3, [r7, #4]
  29127. 800cbca: 2204 movs r2, #4
  29128. 800cbcc: 725a strb r2, [r3, #9]
  29129. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  29130. 800cbce: 687b ldr r3, [r7, #4]
  29131. 800cbd0: 2202 movs r2, #2
  29132. 800cbd2: 60da str r2, [r3, #12]
  29133. return HAL_ERROR;
  29134. 800cbd4: 2301 movs r3, #1
  29135. 800cbd6: e00d b.n 800cbf4 <HAL_RNG_Init+0xbc>
  29136. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  29137. 800cbd8: 687b ldr r3, [r7, #4]
  29138. 800cbda: 681b ldr r3, [r3, #0]
  29139. 800cbdc: 685b ldr r3, [r3, #4]
  29140. 800cbde: f003 0304 and.w r3, r3, #4
  29141. 800cbe2: 2b04 cmp r3, #4
  29142. 800cbe4: d0e2 beq.n 800cbac <HAL_RNG_Init+0x74>
  29143. }
  29144. }
  29145. }
  29146. /* Initialize the RNG state */
  29147. hrng->State = HAL_RNG_STATE_READY;
  29148. 800cbe6: 687b ldr r3, [r7, #4]
  29149. 800cbe8: 2201 movs r2, #1
  29150. 800cbea: 725a strb r2, [r3, #9]
  29151. /* Initialise the error code */
  29152. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  29153. 800cbec: 687b ldr r3, [r7, #4]
  29154. 800cbee: 2200 movs r2, #0
  29155. 800cbf0: 60da str r2, [r3, #12]
  29156. /* Return function status */
  29157. return HAL_OK;
  29158. 800cbf2: 2300 movs r3, #0
  29159. }
  29160. 800cbf4: 4618 mov r0, r3
  29161. 800cbf6: 3710 adds r7, #16
  29162. 800cbf8: 46bd mov sp, r7
  29163. 800cbfa: bd80 pop {r7, pc}
  29164. 0800cbfc <HAL_RNG_GenerateRandomNumber>:
  29165. * @param random32bit pointer to generated random number variable if successful.
  29166. * @retval HAL status
  29167. */
  29168. HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit)
  29169. {
  29170. 800cbfc: b580 push {r7, lr}
  29171. 800cbfe: b084 sub sp, #16
  29172. 800cc00: af00 add r7, sp, #0
  29173. 800cc02: 6078 str r0, [r7, #4]
  29174. 800cc04: 6039 str r1, [r7, #0]
  29175. uint32_t tickstart;
  29176. HAL_StatusTypeDef status = HAL_OK;
  29177. 800cc06: 2300 movs r3, #0
  29178. 800cc08: 73fb strb r3, [r7, #15]
  29179. /* Process Locked */
  29180. __HAL_LOCK(hrng);
  29181. 800cc0a: 687b ldr r3, [r7, #4]
  29182. 800cc0c: 7a1b ldrb r3, [r3, #8]
  29183. 800cc0e: 2b01 cmp r3, #1
  29184. 800cc10: d101 bne.n 800cc16 <HAL_RNG_GenerateRandomNumber+0x1a>
  29185. 800cc12: 2302 movs r3, #2
  29186. 800cc14: e044 b.n 800cca0 <HAL_RNG_GenerateRandomNumber+0xa4>
  29187. 800cc16: 687b ldr r3, [r7, #4]
  29188. 800cc18: 2201 movs r2, #1
  29189. 800cc1a: 721a strb r2, [r3, #8]
  29190. /* Check RNG peripheral state */
  29191. if (hrng->State == HAL_RNG_STATE_READY)
  29192. 800cc1c: 687b ldr r3, [r7, #4]
  29193. 800cc1e: 7a5b ldrb r3, [r3, #9]
  29194. 800cc20: b2db uxtb r3, r3
  29195. 800cc22: 2b01 cmp r3, #1
  29196. 800cc24: d133 bne.n 800cc8e <HAL_RNG_GenerateRandomNumber+0x92>
  29197. {
  29198. /* Change RNG peripheral state */
  29199. hrng->State = HAL_RNG_STATE_BUSY;
  29200. 800cc26: 687b ldr r3, [r7, #4]
  29201. 800cc28: 2202 movs r2, #2
  29202. 800cc2a: 725a strb r2, [r3, #9]
  29203. }
  29204. }
  29205. #endif /* RNG_CR_CONDRST */
  29206. /* Get tick */
  29207. tickstart = HAL_GetTick();
  29208. 800cc2c: f7f8 fb08 bl 8005240 <HAL_GetTick>
  29209. 800cc30: 60b8 str r0, [r7, #8]
  29210. /* Check if data register contains valid random data */
  29211. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  29212. 800cc32: e018 b.n 800cc66 <HAL_RNG_GenerateRandomNumber+0x6a>
  29213. {
  29214. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  29215. 800cc34: f7f8 fb04 bl 8005240 <HAL_GetTick>
  29216. 800cc38: 4602 mov r2, r0
  29217. 800cc3a: 68bb ldr r3, [r7, #8]
  29218. 800cc3c: 1ad3 subs r3, r2, r3
  29219. 800cc3e: 2b02 cmp r3, #2
  29220. 800cc40: d911 bls.n 800cc66 <HAL_RNG_GenerateRandomNumber+0x6a>
  29221. {
  29222. /* New check to avoid false timeout detection in case of preemption */
  29223. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  29224. 800cc42: 687b ldr r3, [r7, #4]
  29225. 800cc44: 681b ldr r3, [r3, #0]
  29226. 800cc46: 685b ldr r3, [r3, #4]
  29227. 800cc48: f003 0301 and.w r3, r3, #1
  29228. 800cc4c: 2b01 cmp r3, #1
  29229. 800cc4e: d00a beq.n 800cc66 <HAL_RNG_GenerateRandomNumber+0x6a>
  29230. {
  29231. hrng->State = HAL_RNG_STATE_READY;
  29232. 800cc50: 687b ldr r3, [r7, #4]
  29233. 800cc52: 2201 movs r2, #1
  29234. 800cc54: 725a strb r2, [r3, #9]
  29235. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  29236. 800cc56: 687b ldr r3, [r7, #4]
  29237. 800cc58: 2202 movs r2, #2
  29238. 800cc5a: 60da str r2, [r3, #12]
  29239. /* Process Unlocked */
  29240. __HAL_UNLOCK(hrng);
  29241. 800cc5c: 687b ldr r3, [r7, #4]
  29242. 800cc5e: 2200 movs r2, #0
  29243. 800cc60: 721a strb r2, [r3, #8]
  29244. return HAL_ERROR;
  29245. 800cc62: 2301 movs r3, #1
  29246. 800cc64: e01c b.n 800cca0 <HAL_RNG_GenerateRandomNumber+0xa4>
  29247. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_DRDY) == RESET)
  29248. 800cc66: 687b ldr r3, [r7, #4]
  29249. 800cc68: 681b ldr r3, [r3, #0]
  29250. 800cc6a: 685b ldr r3, [r3, #4]
  29251. 800cc6c: f003 0301 and.w r3, r3, #1
  29252. 800cc70: 2b01 cmp r3, #1
  29253. 800cc72: d1df bne.n 800cc34 <HAL_RNG_GenerateRandomNumber+0x38>
  29254. }
  29255. }
  29256. }
  29257. /* Get a 32bit Random number */
  29258. hrng->RandomNumber = hrng->Instance->DR;
  29259. 800cc74: 687b ldr r3, [r7, #4]
  29260. 800cc76: 681b ldr r3, [r3, #0]
  29261. 800cc78: 689a ldr r2, [r3, #8]
  29262. 800cc7a: 687b ldr r3, [r7, #4]
  29263. 800cc7c: 611a str r2, [r3, #16]
  29264. else /* No seed error */
  29265. {
  29266. *random32bit = hrng->RandomNumber;
  29267. }
  29268. #else
  29269. *random32bit = hrng->RandomNumber;
  29270. 800cc7e: 687b ldr r3, [r7, #4]
  29271. 800cc80: 691a ldr r2, [r3, #16]
  29272. 800cc82: 683b ldr r3, [r7, #0]
  29273. 800cc84: 601a str r2, [r3, #0]
  29274. #endif /* RNG_CR_CONDRST */
  29275. hrng->State = HAL_RNG_STATE_READY;
  29276. 800cc86: 687b ldr r3, [r7, #4]
  29277. 800cc88: 2201 movs r2, #1
  29278. 800cc8a: 725a strb r2, [r3, #9]
  29279. 800cc8c: e004 b.n 800cc98 <HAL_RNG_GenerateRandomNumber+0x9c>
  29280. }
  29281. else
  29282. {
  29283. hrng->ErrorCode = HAL_RNG_ERROR_BUSY;
  29284. 800cc8e: 687b ldr r3, [r7, #4]
  29285. 800cc90: 2204 movs r2, #4
  29286. 800cc92: 60da str r2, [r3, #12]
  29287. status = HAL_ERROR;
  29288. 800cc94: 2301 movs r3, #1
  29289. 800cc96: 73fb strb r3, [r7, #15]
  29290. }
  29291. /* Process Unlocked */
  29292. __HAL_UNLOCK(hrng);
  29293. 800cc98: 687b ldr r3, [r7, #4]
  29294. 800cc9a: 2200 movs r2, #0
  29295. 800cc9c: 721a strb r2, [r3, #8]
  29296. return status;
  29297. 800cc9e: 7bfb ldrb r3, [r7, #15]
  29298. }
  29299. 800cca0: 4618 mov r0, r3
  29300. 800cca2: 3710 adds r7, #16
  29301. 800cca4: 46bd mov sp, r7
  29302. 800cca6: bd80 pop {r7, pc}
  29303. 0800cca8 <HAL_TIM_Base_Init>:
  29304. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  29305. * @param htim TIM Base handle
  29306. * @retval HAL status
  29307. */
  29308. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  29309. {
  29310. 800cca8: b580 push {r7, lr}
  29311. 800ccaa: b082 sub sp, #8
  29312. 800ccac: af00 add r7, sp, #0
  29313. 800ccae: 6078 str r0, [r7, #4]
  29314. /* Check the TIM handle allocation */
  29315. if (htim == NULL)
  29316. 800ccb0: 687b ldr r3, [r7, #4]
  29317. 800ccb2: 2b00 cmp r3, #0
  29318. 800ccb4: d101 bne.n 800ccba <HAL_TIM_Base_Init+0x12>
  29319. {
  29320. return HAL_ERROR;
  29321. 800ccb6: 2301 movs r3, #1
  29322. 800ccb8: e049 b.n 800cd4e <HAL_TIM_Base_Init+0xa6>
  29323. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  29324. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  29325. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  29326. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  29327. if (htim->State == HAL_TIM_STATE_RESET)
  29328. 800ccba: 687b ldr r3, [r7, #4]
  29329. 800ccbc: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  29330. 800ccc0: b2db uxtb r3, r3
  29331. 800ccc2: 2b00 cmp r3, #0
  29332. 800ccc4: d106 bne.n 800ccd4 <HAL_TIM_Base_Init+0x2c>
  29333. {
  29334. /* Allocate lock resource and initialize it */
  29335. htim->Lock = HAL_UNLOCKED;
  29336. 800ccc6: 687b ldr r3, [r7, #4]
  29337. 800ccc8: 2200 movs r2, #0
  29338. 800ccca: f883 203c strb.w r2, [r3, #60] @ 0x3c
  29339. }
  29340. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  29341. htim->Base_MspInitCallback(htim);
  29342. #else
  29343. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  29344. HAL_TIM_Base_MspInit(htim);
  29345. 800ccce: 6878 ldr r0, [r7, #4]
  29346. 800ccd0: f000 f841 bl 800cd56 <HAL_TIM_Base_MspInit>
  29347. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29348. }
  29349. /* Set the TIM state */
  29350. htim->State = HAL_TIM_STATE_BUSY;
  29351. 800ccd4: 687b ldr r3, [r7, #4]
  29352. 800ccd6: 2202 movs r2, #2
  29353. 800ccd8: f883 203d strb.w r2, [r3, #61] @ 0x3d
  29354. /* Set the Time Base configuration */
  29355. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  29356. 800ccdc: 687b ldr r3, [r7, #4]
  29357. 800ccde: 681a ldr r2, [r3, #0]
  29358. 800cce0: 687b ldr r3, [r7, #4]
  29359. 800cce2: 3304 adds r3, #4
  29360. 800cce4: 4619 mov r1, r3
  29361. 800cce6: 4610 mov r0, r2
  29362. 800cce8: f000 f9e8 bl 800d0bc <TIM_Base_SetConfig>
  29363. /* Initialize the DMA burst operation state */
  29364. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  29365. 800ccec: 687b ldr r3, [r7, #4]
  29366. 800ccee: 2201 movs r2, #1
  29367. 800ccf0: f883 2048 strb.w r2, [r3, #72] @ 0x48
  29368. /* Initialize the TIM channels state */
  29369. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  29370. 800ccf4: 687b ldr r3, [r7, #4]
  29371. 800ccf6: 2201 movs r2, #1
  29372. 800ccf8: f883 203e strb.w r2, [r3, #62] @ 0x3e
  29373. 800ccfc: 687b ldr r3, [r7, #4]
  29374. 800ccfe: 2201 movs r2, #1
  29375. 800cd00: f883 203f strb.w r2, [r3, #63] @ 0x3f
  29376. 800cd04: 687b ldr r3, [r7, #4]
  29377. 800cd06: 2201 movs r2, #1
  29378. 800cd08: f883 2040 strb.w r2, [r3, #64] @ 0x40
  29379. 800cd0c: 687b ldr r3, [r7, #4]
  29380. 800cd0e: 2201 movs r2, #1
  29381. 800cd10: f883 2041 strb.w r2, [r3, #65] @ 0x41
  29382. 800cd14: 687b ldr r3, [r7, #4]
  29383. 800cd16: 2201 movs r2, #1
  29384. 800cd18: f883 2042 strb.w r2, [r3, #66] @ 0x42
  29385. 800cd1c: 687b ldr r3, [r7, #4]
  29386. 800cd1e: 2201 movs r2, #1
  29387. 800cd20: f883 2043 strb.w r2, [r3, #67] @ 0x43
  29388. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  29389. 800cd24: 687b ldr r3, [r7, #4]
  29390. 800cd26: 2201 movs r2, #1
  29391. 800cd28: f883 2044 strb.w r2, [r3, #68] @ 0x44
  29392. 800cd2c: 687b ldr r3, [r7, #4]
  29393. 800cd2e: 2201 movs r2, #1
  29394. 800cd30: f883 2045 strb.w r2, [r3, #69] @ 0x45
  29395. 800cd34: 687b ldr r3, [r7, #4]
  29396. 800cd36: 2201 movs r2, #1
  29397. 800cd38: f883 2046 strb.w r2, [r3, #70] @ 0x46
  29398. 800cd3c: 687b ldr r3, [r7, #4]
  29399. 800cd3e: 2201 movs r2, #1
  29400. 800cd40: f883 2047 strb.w r2, [r3, #71] @ 0x47
  29401. /* Initialize the TIM state*/
  29402. htim->State = HAL_TIM_STATE_READY;
  29403. 800cd44: 687b ldr r3, [r7, #4]
  29404. 800cd46: 2201 movs r2, #1
  29405. 800cd48: f883 203d strb.w r2, [r3, #61] @ 0x3d
  29406. return HAL_OK;
  29407. 800cd4c: 2300 movs r3, #0
  29408. }
  29409. 800cd4e: 4618 mov r0, r3
  29410. 800cd50: 3708 adds r7, #8
  29411. 800cd52: 46bd mov sp, r7
  29412. 800cd54: bd80 pop {r7, pc}
  29413. 0800cd56 <HAL_TIM_Base_MspInit>:
  29414. * @brief Initializes the TIM Base MSP.
  29415. * @param htim TIM Base handle
  29416. * @retval None
  29417. */
  29418. __weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
  29419. {
  29420. 800cd56: b480 push {r7}
  29421. 800cd58: b083 sub sp, #12
  29422. 800cd5a: af00 add r7, sp, #0
  29423. 800cd5c: 6078 str r0, [r7, #4]
  29424. UNUSED(htim);
  29425. /* NOTE : This function should not be modified, when the callback is needed,
  29426. the HAL_TIM_Base_MspInit could be implemented in the user file
  29427. */
  29428. }
  29429. 800cd5e: bf00 nop
  29430. 800cd60: 370c adds r7, #12
  29431. 800cd62: 46bd mov sp, r7
  29432. 800cd64: f85d 7b04 ldr.w r7, [sp], #4
  29433. 800cd68: 4770 bx lr
  29434. ...
  29435. 0800cd6c <HAL_TIM_Base_Start_IT>:
  29436. * @brief Starts the TIM Base generation in interrupt mode.
  29437. * @param htim TIM Base handle
  29438. * @retval HAL status
  29439. */
  29440. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  29441. {
  29442. 800cd6c: b480 push {r7}
  29443. 800cd6e: b085 sub sp, #20
  29444. 800cd70: af00 add r7, sp, #0
  29445. 800cd72: 6078 str r0, [r7, #4]
  29446. /* Check the parameters */
  29447. assert_param(IS_TIM_INSTANCE(htim->Instance));
  29448. /* Check the TIM state */
  29449. if (htim->State != HAL_TIM_STATE_READY)
  29450. 800cd74: 687b ldr r3, [r7, #4]
  29451. 800cd76: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  29452. 800cd7a: b2db uxtb r3, r3
  29453. 800cd7c: 2b01 cmp r3, #1
  29454. 800cd7e: d001 beq.n 800cd84 <HAL_TIM_Base_Start_IT+0x18>
  29455. {
  29456. return HAL_ERROR;
  29457. 800cd80: 2301 movs r3, #1
  29458. 800cd82: e054 b.n 800ce2e <HAL_TIM_Base_Start_IT+0xc2>
  29459. }
  29460. /* Set the TIM state */
  29461. htim->State = HAL_TIM_STATE_BUSY;
  29462. 800cd84: 687b ldr r3, [r7, #4]
  29463. 800cd86: 2202 movs r2, #2
  29464. 800cd88: f883 203d strb.w r2, [r3, #61] @ 0x3d
  29465. /* Enable the TIM Update interrupt */
  29466. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  29467. 800cd8c: 687b ldr r3, [r7, #4]
  29468. 800cd8e: 681b ldr r3, [r3, #0]
  29469. 800cd90: 68da ldr r2, [r3, #12]
  29470. 800cd92: 687b ldr r3, [r7, #4]
  29471. 800cd94: 681b ldr r3, [r3, #0]
  29472. 800cd96: f042 0201 orr.w r2, r2, #1
  29473. 800cd9a: 60da str r2, [r3, #12]
  29474. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  29475. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  29476. 800cd9c: 687b ldr r3, [r7, #4]
  29477. 800cd9e: 681b ldr r3, [r3, #0]
  29478. 800cda0: 4a26 ldr r2, [pc, #152] @ (800ce3c <HAL_TIM_Base_Start_IT+0xd0>)
  29479. 800cda2: 4293 cmp r3, r2
  29480. 800cda4: d022 beq.n 800cdec <HAL_TIM_Base_Start_IT+0x80>
  29481. 800cda6: 687b ldr r3, [r7, #4]
  29482. 800cda8: 681b ldr r3, [r3, #0]
  29483. 800cdaa: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29484. 800cdae: d01d beq.n 800cdec <HAL_TIM_Base_Start_IT+0x80>
  29485. 800cdb0: 687b ldr r3, [r7, #4]
  29486. 800cdb2: 681b ldr r3, [r3, #0]
  29487. 800cdb4: 4a22 ldr r2, [pc, #136] @ (800ce40 <HAL_TIM_Base_Start_IT+0xd4>)
  29488. 800cdb6: 4293 cmp r3, r2
  29489. 800cdb8: d018 beq.n 800cdec <HAL_TIM_Base_Start_IT+0x80>
  29490. 800cdba: 687b ldr r3, [r7, #4]
  29491. 800cdbc: 681b ldr r3, [r3, #0]
  29492. 800cdbe: 4a21 ldr r2, [pc, #132] @ (800ce44 <HAL_TIM_Base_Start_IT+0xd8>)
  29493. 800cdc0: 4293 cmp r3, r2
  29494. 800cdc2: d013 beq.n 800cdec <HAL_TIM_Base_Start_IT+0x80>
  29495. 800cdc4: 687b ldr r3, [r7, #4]
  29496. 800cdc6: 681b ldr r3, [r3, #0]
  29497. 800cdc8: 4a1f ldr r2, [pc, #124] @ (800ce48 <HAL_TIM_Base_Start_IT+0xdc>)
  29498. 800cdca: 4293 cmp r3, r2
  29499. 800cdcc: d00e beq.n 800cdec <HAL_TIM_Base_Start_IT+0x80>
  29500. 800cdce: 687b ldr r3, [r7, #4]
  29501. 800cdd0: 681b ldr r3, [r3, #0]
  29502. 800cdd2: 4a1e ldr r2, [pc, #120] @ (800ce4c <HAL_TIM_Base_Start_IT+0xe0>)
  29503. 800cdd4: 4293 cmp r3, r2
  29504. 800cdd6: d009 beq.n 800cdec <HAL_TIM_Base_Start_IT+0x80>
  29505. 800cdd8: 687b ldr r3, [r7, #4]
  29506. 800cdda: 681b ldr r3, [r3, #0]
  29507. 800cddc: 4a1c ldr r2, [pc, #112] @ (800ce50 <HAL_TIM_Base_Start_IT+0xe4>)
  29508. 800cdde: 4293 cmp r3, r2
  29509. 800cde0: d004 beq.n 800cdec <HAL_TIM_Base_Start_IT+0x80>
  29510. 800cde2: 687b ldr r3, [r7, #4]
  29511. 800cde4: 681b ldr r3, [r3, #0]
  29512. 800cde6: 4a1b ldr r2, [pc, #108] @ (800ce54 <HAL_TIM_Base_Start_IT+0xe8>)
  29513. 800cde8: 4293 cmp r3, r2
  29514. 800cdea: d115 bne.n 800ce18 <HAL_TIM_Base_Start_IT+0xac>
  29515. {
  29516. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  29517. 800cdec: 687b ldr r3, [r7, #4]
  29518. 800cdee: 681b ldr r3, [r3, #0]
  29519. 800cdf0: 689a ldr r2, [r3, #8]
  29520. 800cdf2: 4b19 ldr r3, [pc, #100] @ (800ce58 <HAL_TIM_Base_Start_IT+0xec>)
  29521. 800cdf4: 4013 ands r3, r2
  29522. 800cdf6: 60fb str r3, [r7, #12]
  29523. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  29524. 800cdf8: 68fb ldr r3, [r7, #12]
  29525. 800cdfa: 2b06 cmp r3, #6
  29526. 800cdfc: d015 beq.n 800ce2a <HAL_TIM_Base_Start_IT+0xbe>
  29527. 800cdfe: 68fb ldr r3, [r7, #12]
  29528. 800ce00: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29529. 800ce04: d011 beq.n 800ce2a <HAL_TIM_Base_Start_IT+0xbe>
  29530. {
  29531. __HAL_TIM_ENABLE(htim);
  29532. 800ce06: 687b ldr r3, [r7, #4]
  29533. 800ce08: 681b ldr r3, [r3, #0]
  29534. 800ce0a: 681a ldr r2, [r3, #0]
  29535. 800ce0c: 687b ldr r3, [r7, #4]
  29536. 800ce0e: 681b ldr r3, [r3, #0]
  29537. 800ce10: f042 0201 orr.w r2, r2, #1
  29538. 800ce14: 601a str r2, [r3, #0]
  29539. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  29540. 800ce16: e008 b.n 800ce2a <HAL_TIM_Base_Start_IT+0xbe>
  29541. }
  29542. }
  29543. else
  29544. {
  29545. __HAL_TIM_ENABLE(htim);
  29546. 800ce18: 687b ldr r3, [r7, #4]
  29547. 800ce1a: 681b ldr r3, [r3, #0]
  29548. 800ce1c: 681a ldr r2, [r3, #0]
  29549. 800ce1e: 687b ldr r3, [r7, #4]
  29550. 800ce20: 681b ldr r3, [r3, #0]
  29551. 800ce22: f042 0201 orr.w r2, r2, #1
  29552. 800ce26: 601a str r2, [r3, #0]
  29553. 800ce28: e000 b.n 800ce2c <HAL_TIM_Base_Start_IT+0xc0>
  29554. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  29555. 800ce2a: bf00 nop
  29556. }
  29557. /* Return function status */
  29558. return HAL_OK;
  29559. 800ce2c: 2300 movs r3, #0
  29560. }
  29561. 800ce2e: 4618 mov r0, r3
  29562. 800ce30: 3714 adds r7, #20
  29563. 800ce32: 46bd mov sp, r7
  29564. 800ce34: f85d 7b04 ldr.w r7, [sp], #4
  29565. 800ce38: 4770 bx lr
  29566. 800ce3a: bf00 nop
  29567. 800ce3c: 40010000 .word 0x40010000
  29568. 800ce40: 40000400 .word 0x40000400
  29569. 800ce44: 40000800 .word 0x40000800
  29570. 800ce48: 40000c00 .word 0x40000c00
  29571. 800ce4c: 40010400 .word 0x40010400
  29572. 800ce50: 40001800 .word 0x40001800
  29573. 800ce54: 40014000 .word 0x40014000
  29574. 800ce58: 00010007 .word 0x00010007
  29575. 0800ce5c <HAL_TIM_IRQHandler>:
  29576. * @brief This function handles TIM interrupts requests.
  29577. * @param htim TIM handle
  29578. * @retval None
  29579. */
  29580. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  29581. {
  29582. 800ce5c: b580 push {r7, lr}
  29583. 800ce5e: b084 sub sp, #16
  29584. 800ce60: af00 add r7, sp, #0
  29585. 800ce62: 6078 str r0, [r7, #4]
  29586. uint32_t itsource = htim->Instance->DIER;
  29587. 800ce64: 687b ldr r3, [r7, #4]
  29588. 800ce66: 681b ldr r3, [r3, #0]
  29589. 800ce68: 68db ldr r3, [r3, #12]
  29590. 800ce6a: 60fb str r3, [r7, #12]
  29591. uint32_t itflag = htim->Instance->SR;
  29592. 800ce6c: 687b ldr r3, [r7, #4]
  29593. 800ce6e: 681b ldr r3, [r3, #0]
  29594. 800ce70: 691b ldr r3, [r3, #16]
  29595. 800ce72: 60bb str r3, [r7, #8]
  29596. /* Capture compare 1 event */
  29597. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  29598. 800ce74: 68bb ldr r3, [r7, #8]
  29599. 800ce76: f003 0302 and.w r3, r3, #2
  29600. 800ce7a: 2b00 cmp r3, #0
  29601. 800ce7c: d020 beq.n 800cec0 <HAL_TIM_IRQHandler+0x64>
  29602. {
  29603. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  29604. 800ce7e: 68fb ldr r3, [r7, #12]
  29605. 800ce80: f003 0302 and.w r3, r3, #2
  29606. 800ce84: 2b00 cmp r3, #0
  29607. 800ce86: d01b beq.n 800cec0 <HAL_TIM_IRQHandler+0x64>
  29608. {
  29609. {
  29610. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  29611. 800ce88: 687b ldr r3, [r7, #4]
  29612. 800ce8a: 681b ldr r3, [r3, #0]
  29613. 800ce8c: f06f 0202 mvn.w r2, #2
  29614. 800ce90: 611a str r2, [r3, #16]
  29615. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  29616. 800ce92: 687b ldr r3, [r7, #4]
  29617. 800ce94: 2201 movs r2, #1
  29618. 800ce96: 771a strb r2, [r3, #28]
  29619. /* Input capture event */
  29620. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  29621. 800ce98: 687b ldr r3, [r7, #4]
  29622. 800ce9a: 681b ldr r3, [r3, #0]
  29623. 800ce9c: 699b ldr r3, [r3, #24]
  29624. 800ce9e: f003 0303 and.w r3, r3, #3
  29625. 800cea2: 2b00 cmp r3, #0
  29626. 800cea4: d003 beq.n 800ceae <HAL_TIM_IRQHandler+0x52>
  29627. {
  29628. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29629. htim->IC_CaptureCallback(htim);
  29630. #else
  29631. HAL_TIM_IC_CaptureCallback(htim);
  29632. 800cea6: 6878 ldr r0, [r7, #4]
  29633. 800cea8: f000 f8e9 bl 800d07e <HAL_TIM_IC_CaptureCallback>
  29634. 800ceac: e005 b.n 800ceba <HAL_TIM_IRQHandler+0x5e>
  29635. {
  29636. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29637. htim->OC_DelayElapsedCallback(htim);
  29638. htim->PWM_PulseFinishedCallback(htim);
  29639. #else
  29640. HAL_TIM_OC_DelayElapsedCallback(htim);
  29641. 800ceae: 6878 ldr r0, [r7, #4]
  29642. 800ceb0: f000 f8db bl 800d06a <HAL_TIM_OC_DelayElapsedCallback>
  29643. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29644. 800ceb4: 6878 ldr r0, [r7, #4]
  29645. 800ceb6: f000 f8ec bl 800d092 <HAL_TIM_PWM_PulseFinishedCallback>
  29646. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29647. }
  29648. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29649. 800ceba: 687b ldr r3, [r7, #4]
  29650. 800cebc: 2200 movs r2, #0
  29651. 800cebe: 771a strb r2, [r3, #28]
  29652. }
  29653. }
  29654. }
  29655. /* Capture compare 2 event */
  29656. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  29657. 800cec0: 68bb ldr r3, [r7, #8]
  29658. 800cec2: f003 0304 and.w r3, r3, #4
  29659. 800cec6: 2b00 cmp r3, #0
  29660. 800cec8: d020 beq.n 800cf0c <HAL_TIM_IRQHandler+0xb0>
  29661. {
  29662. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  29663. 800ceca: 68fb ldr r3, [r7, #12]
  29664. 800cecc: f003 0304 and.w r3, r3, #4
  29665. 800ced0: 2b00 cmp r3, #0
  29666. 800ced2: d01b beq.n 800cf0c <HAL_TIM_IRQHandler+0xb0>
  29667. {
  29668. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  29669. 800ced4: 687b ldr r3, [r7, #4]
  29670. 800ced6: 681b ldr r3, [r3, #0]
  29671. 800ced8: f06f 0204 mvn.w r2, #4
  29672. 800cedc: 611a str r2, [r3, #16]
  29673. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  29674. 800cede: 687b ldr r3, [r7, #4]
  29675. 800cee0: 2202 movs r2, #2
  29676. 800cee2: 771a strb r2, [r3, #28]
  29677. /* Input capture event */
  29678. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  29679. 800cee4: 687b ldr r3, [r7, #4]
  29680. 800cee6: 681b ldr r3, [r3, #0]
  29681. 800cee8: 699b ldr r3, [r3, #24]
  29682. 800ceea: f403 7340 and.w r3, r3, #768 @ 0x300
  29683. 800ceee: 2b00 cmp r3, #0
  29684. 800cef0: d003 beq.n 800cefa <HAL_TIM_IRQHandler+0x9e>
  29685. {
  29686. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29687. htim->IC_CaptureCallback(htim);
  29688. #else
  29689. HAL_TIM_IC_CaptureCallback(htim);
  29690. 800cef2: 6878 ldr r0, [r7, #4]
  29691. 800cef4: f000 f8c3 bl 800d07e <HAL_TIM_IC_CaptureCallback>
  29692. 800cef8: e005 b.n 800cf06 <HAL_TIM_IRQHandler+0xaa>
  29693. {
  29694. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29695. htim->OC_DelayElapsedCallback(htim);
  29696. htim->PWM_PulseFinishedCallback(htim);
  29697. #else
  29698. HAL_TIM_OC_DelayElapsedCallback(htim);
  29699. 800cefa: 6878 ldr r0, [r7, #4]
  29700. 800cefc: f000 f8b5 bl 800d06a <HAL_TIM_OC_DelayElapsedCallback>
  29701. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29702. 800cf00: 6878 ldr r0, [r7, #4]
  29703. 800cf02: f000 f8c6 bl 800d092 <HAL_TIM_PWM_PulseFinishedCallback>
  29704. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29705. }
  29706. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29707. 800cf06: 687b ldr r3, [r7, #4]
  29708. 800cf08: 2200 movs r2, #0
  29709. 800cf0a: 771a strb r2, [r3, #28]
  29710. }
  29711. }
  29712. /* Capture compare 3 event */
  29713. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  29714. 800cf0c: 68bb ldr r3, [r7, #8]
  29715. 800cf0e: f003 0308 and.w r3, r3, #8
  29716. 800cf12: 2b00 cmp r3, #0
  29717. 800cf14: d020 beq.n 800cf58 <HAL_TIM_IRQHandler+0xfc>
  29718. {
  29719. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  29720. 800cf16: 68fb ldr r3, [r7, #12]
  29721. 800cf18: f003 0308 and.w r3, r3, #8
  29722. 800cf1c: 2b00 cmp r3, #0
  29723. 800cf1e: d01b beq.n 800cf58 <HAL_TIM_IRQHandler+0xfc>
  29724. {
  29725. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  29726. 800cf20: 687b ldr r3, [r7, #4]
  29727. 800cf22: 681b ldr r3, [r3, #0]
  29728. 800cf24: f06f 0208 mvn.w r2, #8
  29729. 800cf28: 611a str r2, [r3, #16]
  29730. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  29731. 800cf2a: 687b ldr r3, [r7, #4]
  29732. 800cf2c: 2204 movs r2, #4
  29733. 800cf2e: 771a strb r2, [r3, #28]
  29734. /* Input capture event */
  29735. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  29736. 800cf30: 687b ldr r3, [r7, #4]
  29737. 800cf32: 681b ldr r3, [r3, #0]
  29738. 800cf34: 69db ldr r3, [r3, #28]
  29739. 800cf36: f003 0303 and.w r3, r3, #3
  29740. 800cf3a: 2b00 cmp r3, #0
  29741. 800cf3c: d003 beq.n 800cf46 <HAL_TIM_IRQHandler+0xea>
  29742. {
  29743. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29744. htim->IC_CaptureCallback(htim);
  29745. #else
  29746. HAL_TIM_IC_CaptureCallback(htim);
  29747. 800cf3e: 6878 ldr r0, [r7, #4]
  29748. 800cf40: f000 f89d bl 800d07e <HAL_TIM_IC_CaptureCallback>
  29749. 800cf44: e005 b.n 800cf52 <HAL_TIM_IRQHandler+0xf6>
  29750. {
  29751. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29752. htim->OC_DelayElapsedCallback(htim);
  29753. htim->PWM_PulseFinishedCallback(htim);
  29754. #else
  29755. HAL_TIM_OC_DelayElapsedCallback(htim);
  29756. 800cf46: 6878 ldr r0, [r7, #4]
  29757. 800cf48: f000 f88f bl 800d06a <HAL_TIM_OC_DelayElapsedCallback>
  29758. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29759. 800cf4c: 6878 ldr r0, [r7, #4]
  29760. 800cf4e: f000 f8a0 bl 800d092 <HAL_TIM_PWM_PulseFinishedCallback>
  29761. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29762. }
  29763. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29764. 800cf52: 687b ldr r3, [r7, #4]
  29765. 800cf54: 2200 movs r2, #0
  29766. 800cf56: 771a strb r2, [r3, #28]
  29767. }
  29768. }
  29769. /* Capture compare 4 event */
  29770. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  29771. 800cf58: 68bb ldr r3, [r7, #8]
  29772. 800cf5a: f003 0310 and.w r3, r3, #16
  29773. 800cf5e: 2b00 cmp r3, #0
  29774. 800cf60: d020 beq.n 800cfa4 <HAL_TIM_IRQHandler+0x148>
  29775. {
  29776. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  29777. 800cf62: 68fb ldr r3, [r7, #12]
  29778. 800cf64: f003 0310 and.w r3, r3, #16
  29779. 800cf68: 2b00 cmp r3, #0
  29780. 800cf6a: d01b beq.n 800cfa4 <HAL_TIM_IRQHandler+0x148>
  29781. {
  29782. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  29783. 800cf6c: 687b ldr r3, [r7, #4]
  29784. 800cf6e: 681b ldr r3, [r3, #0]
  29785. 800cf70: f06f 0210 mvn.w r2, #16
  29786. 800cf74: 611a str r2, [r3, #16]
  29787. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  29788. 800cf76: 687b ldr r3, [r7, #4]
  29789. 800cf78: 2208 movs r2, #8
  29790. 800cf7a: 771a strb r2, [r3, #28]
  29791. /* Input capture event */
  29792. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  29793. 800cf7c: 687b ldr r3, [r7, #4]
  29794. 800cf7e: 681b ldr r3, [r3, #0]
  29795. 800cf80: 69db ldr r3, [r3, #28]
  29796. 800cf82: f403 7340 and.w r3, r3, #768 @ 0x300
  29797. 800cf86: 2b00 cmp r3, #0
  29798. 800cf88: d003 beq.n 800cf92 <HAL_TIM_IRQHandler+0x136>
  29799. {
  29800. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29801. htim->IC_CaptureCallback(htim);
  29802. #else
  29803. HAL_TIM_IC_CaptureCallback(htim);
  29804. 800cf8a: 6878 ldr r0, [r7, #4]
  29805. 800cf8c: f000 f877 bl 800d07e <HAL_TIM_IC_CaptureCallback>
  29806. 800cf90: e005 b.n 800cf9e <HAL_TIM_IRQHandler+0x142>
  29807. {
  29808. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29809. htim->OC_DelayElapsedCallback(htim);
  29810. htim->PWM_PulseFinishedCallback(htim);
  29811. #else
  29812. HAL_TIM_OC_DelayElapsedCallback(htim);
  29813. 800cf92: 6878 ldr r0, [r7, #4]
  29814. 800cf94: f000 f869 bl 800d06a <HAL_TIM_OC_DelayElapsedCallback>
  29815. HAL_TIM_PWM_PulseFinishedCallback(htim);
  29816. 800cf98: 6878 ldr r0, [r7, #4]
  29817. 800cf9a: f000 f87a bl 800d092 <HAL_TIM_PWM_PulseFinishedCallback>
  29818. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29819. }
  29820. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  29821. 800cf9e: 687b ldr r3, [r7, #4]
  29822. 800cfa0: 2200 movs r2, #0
  29823. 800cfa2: 771a strb r2, [r3, #28]
  29824. }
  29825. }
  29826. /* TIM Update event */
  29827. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  29828. 800cfa4: 68bb ldr r3, [r7, #8]
  29829. 800cfa6: f003 0301 and.w r3, r3, #1
  29830. 800cfaa: 2b00 cmp r3, #0
  29831. 800cfac: d00c beq.n 800cfc8 <HAL_TIM_IRQHandler+0x16c>
  29832. {
  29833. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  29834. 800cfae: 68fb ldr r3, [r7, #12]
  29835. 800cfb0: f003 0301 and.w r3, r3, #1
  29836. 800cfb4: 2b00 cmp r3, #0
  29837. 800cfb6: d007 beq.n 800cfc8 <HAL_TIM_IRQHandler+0x16c>
  29838. {
  29839. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  29840. 800cfb8: 687b ldr r3, [r7, #4]
  29841. 800cfba: 681b ldr r3, [r3, #0]
  29842. 800cfbc: f06f 0201 mvn.w r2, #1
  29843. 800cfc0: 611a str r2, [r3, #16]
  29844. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29845. htim->PeriodElapsedCallback(htim);
  29846. #else
  29847. HAL_TIM_PeriodElapsedCallback(htim);
  29848. 800cfc2: 6878 ldr r0, [r7, #4]
  29849. 800cfc4: f7f5 fb22 bl 800260c <HAL_TIM_PeriodElapsedCallback>
  29850. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29851. }
  29852. }
  29853. /* TIM Break input event */
  29854. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  29855. 800cfc8: 68bb ldr r3, [r7, #8]
  29856. 800cfca: f003 0380 and.w r3, r3, #128 @ 0x80
  29857. 800cfce: 2b00 cmp r3, #0
  29858. 800cfd0: d104 bne.n 800cfdc <HAL_TIM_IRQHandler+0x180>
  29859. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  29860. 800cfd2: 68bb ldr r3, [r7, #8]
  29861. 800cfd4: f403 5300 and.w r3, r3, #8192 @ 0x2000
  29862. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  29863. 800cfd8: 2b00 cmp r3, #0
  29864. 800cfda: d00c beq.n 800cff6 <HAL_TIM_IRQHandler+0x19a>
  29865. {
  29866. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  29867. 800cfdc: 68fb ldr r3, [r7, #12]
  29868. 800cfde: f003 0380 and.w r3, r3, #128 @ 0x80
  29869. 800cfe2: 2b00 cmp r3, #0
  29870. 800cfe4: d007 beq.n 800cff6 <HAL_TIM_IRQHandler+0x19a>
  29871. {
  29872. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  29873. 800cfe6: 687b ldr r3, [r7, #4]
  29874. 800cfe8: 681b ldr r3, [r3, #0]
  29875. 800cfea: f46f 5202 mvn.w r2, #8320 @ 0x2080
  29876. 800cfee: 611a str r2, [r3, #16]
  29877. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29878. htim->BreakCallback(htim);
  29879. #else
  29880. HAL_TIMEx_BreakCallback(htim);
  29881. 800cff0: 6878 ldr r0, [r7, #4]
  29882. 800cff2: f000 f913 bl 800d21c <HAL_TIMEx_BreakCallback>
  29883. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29884. }
  29885. }
  29886. /* TIM Break2 input event */
  29887. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  29888. 800cff6: 68bb ldr r3, [r7, #8]
  29889. 800cff8: f403 7380 and.w r3, r3, #256 @ 0x100
  29890. 800cffc: 2b00 cmp r3, #0
  29891. 800cffe: d00c beq.n 800d01a <HAL_TIM_IRQHandler+0x1be>
  29892. {
  29893. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  29894. 800d000: 68fb ldr r3, [r7, #12]
  29895. 800d002: f003 0380 and.w r3, r3, #128 @ 0x80
  29896. 800d006: 2b00 cmp r3, #0
  29897. 800d008: d007 beq.n 800d01a <HAL_TIM_IRQHandler+0x1be>
  29898. {
  29899. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  29900. 800d00a: 687b ldr r3, [r7, #4]
  29901. 800d00c: 681b ldr r3, [r3, #0]
  29902. 800d00e: f46f 7280 mvn.w r2, #256 @ 0x100
  29903. 800d012: 611a str r2, [r3, #16]
  29904. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29905. htim->Break2Callback(htim);
  29906. #else
  29907. HAL_TIMEx_Break2Callback(htim);
  29908. 800d014: 6878 ldr r0, [r7, #4]
  29909. 800d016: f000 f90b bl 800d230 <HAL_TIMEx_Break2Callback>
  29910. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29911. }
  29912. }
  29913. /* TIM Trigger detection event */
  29914. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  29915. 800d01a: 68bb ldr r3, [r7, #8]
  29916. 800d01c: f003 0340 and.w r3, r3, #64 @ 0x40
  29917. 800d020: 2b00 cmp r3, #0
  29918. 800d022: d00c beq.n 800d03e <HAL_TIM_IRQHandler+0x1e2>
  29919. {
  29920. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  29921. 800d024: 68fb ldr r3, [r7, #12]
  29922. 800d026: f003 0340 and.w r3, r3, #64 @ 0x40
  29923. 800d02a: 2b00 cmp r3, #0
  29924. 800d02c: d007 beq.n 800d03e <HAL_TIM_IRQHandler+0x1e2>
  29925. {
  29926. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  29927. 800d02e: 687b ldr r3, [r7, #4]
  29928. 800d030: 681b ldr r3, [r3, #0]
  29929. 800d032: f06f 0240 mvn.w r2, #64 @ 0x40
  29930. 800d036: 611a str r2, [r3, #16]
  29931. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29932. htim->TriggerCallback(htim);
  29933. #else
  29934. HAL_TIM_TriggerCallback(htim);
  29935. 800d038: 6878 ldr r0, [r7, #4]
  29936. 800d03a: f000 f834 bl 800d0a6 <HAL_TIM_TriggerCallback>
  29937. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29938. }
  29939. }
  29940. /* TIM commutation event */
  29941. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  29942. 800d03e: 68bb ldr r3, [r7, #8]
  29943. 800d040: f003 0320 and.w r3, r3, #32
  29944. 800d044: 2b00 cmp r3, #0
  29945. 800d046: d00c beq.n 800d062 <HAL_TIM_IRQHandler+0x206>
  29946. {
  29947. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  29948. 800d048: 68fb ldr r3, [r7, #12]
  29949. 800d04a: f003 0320 and.w r3, r3, #32
  29950. 800d04e: 2b00 cmp r3, #0
  29951. 800d050: d007 beq.n 800d062 <HAL_TIM_IRQHandler+0x206>
  29952. {
  29953. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  29954. 800d052: 687b ldr r3, [r7, #4]
  29955. 800d054: 681b ldr r3, [r3, #0]
  29956. 800d056: f06f 0220 mvn.w r2, #32
  29957. 800d05a: 611a str r2, [r3, #16]
  29958. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  29959. htim->CommutationCallback(htim);
  29960. #else
  29961. HAL_TIMEx_CommutCallback(htim);
  29962. 800d05c: 6878 ldr r0, [r7, #4]
  29963. 800d05e: f000 f8d3 bl 800d208 <HAL_TIMEx_CommutCallback>
  29964. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  29965. }
  29966. }
  29967. }
  29968. 800d062: bf00 nop
  29969. 800d064: 3710 adds r7, #16
  29970. 800d066: 46bd mov sp, r7
  29971. 800d068: bd80 pop {r7, pc}
  29972. 0800d06a <HAL_TIM_OC_DelayElapsedCallback>:
  29973. * @brief Output Compare callback in non-blocking mode
  29974. * @param htim TIM OC handle
  29975. * @retval None
  29976. */
  29977. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  29978. {
  29979. 800d06a: b480 push {r7}
  29980. 800d06c: b083 sub sp, #12
  29981. 800d06e: af00 add r7, sp, #0
  29982. 800d070: 6078 str r0, [r7, #4]
  29983. UNUSED(htim);
  29984. /* NOTE : This function should not be modified, when the callback is needed,
  29985. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  29986. */
  29987. }
  29988. 800d072: bf00 nop
  29989. 800d074: 370c adds r7, #12
  29990. 800d076: 46bd mov sp, r7
  29991. 800d078: f85d 7b04 ldr.w r7, [sp], #4
  29992. 800d07c: 4770 bx lr
  29993. 0800d07e <HAL_TIM_IC_CaptureCallback>:
  29994. * @brief Input Capture callback in non-blocking mode
  29995. * @param htim TIM IC handle
  29996. * @retval None
  29997. */
  29998. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  29999. {
  30000. 800d07e: b480 push {r7}
  30001. 800d080: b083 sub sp, #12
  30002. 800d082: af00 add r7, sp, #0
  30003. 800d084: 6078 str r0, [r7, #4]
  30004. UNUSED(htim);
  30005. /* NOTE : This function should not be modified, when the callback is needed,
  30006. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  30007. */
  30008. }
  30009. 800d086: bf00 nop
  30010. 800d088: 370c adds r7, #12
  30011. 800d08a: 46bd mov sp, r7
  30012. 800d08c: f85d 7b04 ldr.w r7, [sp], #4
  30013. 800d090: 4770 bx lr
  30014. 0800d092 <HAL_TIM_PWM_PulseFinishedCallback>:
  30015. * @brief PWM Pulse finished callback in non-blocking mode
  30016. * @param htim TIM handle
  30017. * @retval None
  30018. */
  30019. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  30020. {
  30021. 800d092: b480 push {r7}
  30022. 800d094: b083 sub sp, #12
  30023. 800d096: af00 add r7, sp, #0
  30024. 800d098: 6078 str r0, [r7, #4]
  30025. UNUSED(htim);
  30026. /* NOTE : This function should not be modified, when the callback is needed,
  30027. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  30028. */
  30029. }
  30030. 800d09a: bf00 nop
  30031. 800d09c: 370c adds r7, #12
  30032. 800d09e: 46bd mov sp, r7
  30033. 800d0a0: f85d 7b04 ldr.w r7, [sp], #4
  30034. 800d0a4: 4770 bx lr
  30035. 0800d0a6 <HAL_TIM_TriggerCallback>:
  30036. * @brief Hall Trigger detection callback in non-blocking mode
  30037. * @param htim TIM handle
  30038. * @retval None
  30039. */
  30040. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  30041. {
  30042. 800d0a6: b480 push {r7}
  30043. 800d0a8: b083 sub sp, #12
  30044. 800d0aa: af00 add r7, sp, #0
  30045. 800d0ac: 6078 str r0, [r7, #4]
  30046. UNUSED(htim);
  30047. /* NOTE : This function should not be modified, when the callback is needed,
  30048. the HAL_TIM_TriggerCallback could be implemented in the user file
  30049. */
  30050. }
  30051. 800d0ae: bf00 nop
  30052. 800d0b0: 370c adds r7, #12
  30053. 800d0b2: 46bd mov sp, r7
  30054. 800d0b4: f85d 7b04 ldr.w r7, [sp], #4
  30055. 800d0b8: 4770 bx lr
  30056. ...
  30057. 0800d0bc <TIM_Base_SetConfig>:
  30058. * @param TIMx TIM peripheral
  30059. * @param Structure TIM Base configuration structure
  30060. * @retval None
  30061. */
  30062. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  30063. {
  30064. 800d0bc: b480 push {r7}
  30065. 800d0be: b085 sub sp, #20
  30066. 800d0c0: af00 add r7, sp, #0
  30067. 800d0c2: 6078 str r0, [r7, #4]
  30068. 800d0c4: 6039 str r1, [r7, #0]
  30069. uint32_t tmpcr1;
  30070. tmpcr1 = TIMx->CR1;
  30071. 800d0c6: 687b ldr r3, [r7, #4]
  30072. 800d0c8: 681b ldr r3, [r3, #0]
  30073. 800d0ca: 60fb str r3, [r7, #12]
  30074. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  30075. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  30076. 800d0cc: 687b ldr r3, [r7, #4]
  30077. 800d0ce: 4a46 ldr r2, [pc, #280] @ (800d1e8 <TIM_Base_SetConfig+0x12c>)
  30078. 800d0d0: 4293 cmp r3, r2
  30079. 800d0d2: d013 beq.n 800d0fc <TIM_Base_SetConfig+0x40>
  30080. 800d0d4: 687b ldr r3, [r7, #4]
  30081. 800d0d6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30082. 800d0da: d00f beq.n 800d0fc <TIM_Base_SetConfig+0x40>
  30083. 800d0dc: 687b ldr r3, [r7, #4]
  30084. 800d0de: 4a43 ldr r2, [pc, #268] @ (800d1ec <TIM_Base_SetConfig+0x130>)
  30085. 800d0e0: 4293 cmp r3, r2
  30086. 800d0e2: d00b beq.n 800d0fc <TIM_Base_SetConfig+0x40>
  30087. 800d0e4: 687b ldr r3, [r7, #4]
  30088. 800d0e6: 4a42 ldr r2, [pc, #264] @ (800d1f0 <TIM_Base_SetConfig+0x134>)
  30089. 800d0e8: 4293 cmp r3, r2
  30090. 800d0ea: d007 beq.n 800d0fc <TIM_Base_SetConfig+0x40>
  30091. 800d0ec: 687b ldr r3, [r7, #4]
  30092. 800d0ee: 4a41 ldr r2, [pc, #260] @ (800d1f4 <TIM_Base_SetConfig+0x138>)
  30093. 800d0f0: 4293 cmp r3, r2
  30094. 800d0f2: d003 beq.n 800d0fc <TIM_Base_SetConfig+0x40>
  30095. 800d0f4: 687b ldr r3, [r7, #4]
  30096. 800d0f6: 4a40 ldr r2, [pc, #256] @ (800d1f8 <TIM_Base_SetConfig+0x13c>)
  30097. 800d0f8: 4293 cmp r3, r2
  30098. 800d0fa: d108 bne.n 800d10e <TIM_Base_SetConfig+0x52>
  30099. {
  30100. /* Select the Counter Mode */
  30101. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  30102. 800d0fc: 68fb ldr r3, [r7, #12]
  30103. 800d0fe: f023 0370 bic.w r3, r3, #112 @ 0x70
  30104. 800d102: 60fb str r3, [r7, #12]
  30105. tmpcr1 |= Structure->CounterMode;
  30106. 800d104: 683b ldr r3, [r7, #0]
  30107. 800d106: 685b ldr r3, [r3, #4]
  30108. 800d108: 68fa ldr r2, [r7, #12]
  30109. 800d10a: 4313 orrs r3, r2
  30110. 800d10c: 60fb str r3, [r7, #12]
  30111. }
  30112. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  30113. 800d10e: 687b ldr r3, [r7, #4]
  30114. 800d110: 4a35 ldr r2, [pc, #212] @ (800d1e8 <TIM_Base_SetConfig+0x12c>)
  30115. 800d112: 4293 cmp r3, r2
  30116. 800d114: d01f beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30117. 800d116: 687b ldr r3, [r7, #4]
  30118. 800d118: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30119. 800d11c: d01b beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30120. 800d11e: 687b ldr r3, [r7, #4]
  30121. 800d120: 4a32 ldr r2, [pc, #200] @ (800d1ec <TIM_Base_SetConfig+0x130>)
  30122. 800d122: 4293 cmp r3, r2
  30123. 800d124: d017 beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30124. 800d126: 687b ldr r3, [r7, #4]
  30125. 800d128: 4a31 ldr r2, [pc, #196] @ (800d1f0 <TIM_Base_SetConfig+0x134>)
  30126. 800d12a: 4293 cmp r3, r2
  30127. 800d12c: d013 beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30128. 800d12e: 687b ldr r3, [r7, #4]
  30129. 800d130: 4a30 ldr r2, [pc, #192] @ (800d1f4 <TIM_Base_SetConfig+0x138>)
  30130. 800d132: 4293 cmp r3, r2
  30131. 800d134: d00f beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30132. 800d136: 687b ldr r3, [r7, #4]
  30133. 800d138: 4a2f ldr r2, [pc, #188] @ (800d1f8 <TIM_Base_SetConfig+0x13c>)
  30134. 800d13a: 4293 cmp r3, r2
  30135. 800d13c: d00b beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30136. 800d13e: 687b ldr r3, [r7, #4]
  30137. 800d140: 4a2e ldr r2, [pc, #184] @ (800d1fc <TIM_Base_SetConfig+0x140>)
  30138. 800d142: 4293 cmp r3, r2
  30139. 800d144: d007 beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30140. 800d146: 687b ldr r3, [r7, #4]
  30141. 800d148: 4a2d ldr r2, [pc, #180] @ (800d200 <TIM_Base_SetConfig+0x144>)
  30142. 800d14a: 4293 cmp r3, r2
  30143. 800d14c: d003 beq.n 800d156 <TIM_Base_SetConfig+0x9a>
  30144. 800d14e: 687b ldr r3, [r7, #4]
  30145. 800d150: 4a2c ldr r2, [pc, #176] @ (800d204 <TIM_Base_SetConfig+0x148>)
  30146. 800d152: 4293 cmp r3, r2
  30147. 800d154: d108 bne.n 800d168 <TIM_Base_SetConfig+0xac>
  30148. {
  30149. /* Set the clock division */
  30150. tmpcr1 &= ~TIM_CR1_CKD;
  30151. 800d156: 68fb ldr r3, [r7, #12]
  30152. 800d158: f423 7340 bic.w r3, r3, #768 @ 0x300
  30153. 800d15c: 60fb str r3, [r7, #12]
  30154. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  30155. 800d15e: 683b ldr r3, [r7, #0]
  30156. 800d160: 68db ldr r3, [r3, #12]
  30157. 800d162: 68fa ldr r2, [r7, #12]
  30158. 800d164: 4313 orrs r3, r2
  30159. 800d166: 60fb str r3, [r7, #12]
  30160. }
  30161. /* Set the auto-reload preload */
  30162. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  30163. 800d168: 68fb ldr r3, [r7, #12]
  30164. 800d16a: f023 0280 bic.w r2, r3, #128 @ 0x80
  30165. 800d16e: 683b ldr r3, [r7, #0]
  30166. 800d170: 695b ldr r3, [r3, #20]
  30167. 800d172: 4313 orrs r3, r2
  30168. 800d174: 60fb str r3, [r7, #12]
  30169. TIMx->CR1 = tmpcr1;
  30170. 800d176: 687b ldr r3, [r7, #4]
  30171. 800d178: 68fa ldr r2, [r7, #12]
  30172. 800d17a: 601a str r2, [r3, #0]
  30173. /* Set the Autoreload value */
  30174. TIMx->ARR = (uint32_t)Structure->Period ;
  30175. 800d17c: 683b ldr r3, [r7, #0]
  30176. 800d17e: 689a ldr r2, [r3, #8]
  30177. 800d180: 687b ldr r3, [r7, #4]
  30178. 800d182: 62da str r2, [r3, #44] @ 0x2c
  30179. /* Set the Prescaler value */
  30180. TIMx->PSC = Structure->Prescaler;
  30181. 800d184: 683b ldr r3, [r7, #0]
  30182. 800d186: 681a ldr r2, [r3, #0]
  30183. 800d188: 687b ldr r3, [r7, #4]
  30184. 800d18a: 629a str r2, [r3, #40] @ 0x28
  30185. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  30186. 800d18c: 687b ldr r3, [r7, #4]
  30187. 800d18e: 4a16 ldr r2, [pc, #88] @ (800d1e8 <TIM_Base_SetConfig+0x12c>)
  30188. 800d190: 4293 cmp r3, r2
  30189. 800d192: d00f beq.n 800d1b4 <TIM_Base_SetConfig+0xf8>
  30190. 800d194: 687b ldr r3, [r7, #4]
  30191. 800d196: 4a18 ldr r2, [pc, #96] @ (800d1f8 <TIM_Base_SetConfig+0x13c>)
  30192. 800d198: 4293 cmp r3, r2
  30193. 800d19a: d00b beq.n 800d1b4 <TIM_Base_SetConfig+0xf8>
  30194. 800d19c: 687b ldr r3, [r7, #4]
  30195. 800d19e: 4a17 ldr r2, [pc, #92] @ (800d1fc <TIM_Base_SetConfig+0x140>)
  30196. 800d1a0: 4293 cmp r3, r2
  30197. 800d1a2: d007 beq.n 800d1b4 <TIM_Base_SetConfig+0xf8>
  30198. 800d1a4: 687b ldr r3, [r7, #4]
  30199. 800d1a6: 4a16 ldr r2, [pc, #88] @ (800d200 <TIM_Base_SetConfig+0x144>)
  30200. 800d1a8: 4293 cmp r3, r2
  30201. 800d1aa: d003 beq.n 800d1b4 <TIM_Base_SetConfig+0xf8>
  30202. 800d1ac: 687b ldr r3, [r7, #4]
  30203. 800d1ae: 4a15 ldr r2, [pc, #84] @ (800d204 <TIM_Base_SetConfig+0x148>)
  30204. 800d1b0: 4293 cmp r3, r2
  30205. 800d1b2: d103 bne.n 800d1bc <TIM_Base_SetConfig+0x100>
  30206. {
  30207. /* Set the Repetition Counter value */
  30208. TIMx->RCR = Structure->RepetitionCounter;
  30209. 800d1b4: 683b ldr r3, [r7, #0]
  30210. 800d1b6: 691a ldr r2, [r3, #16]
  30211. 800d1b8: 687b ldr r3, [r7, #4]
  30212. 800d1ba: 631a str r2, [r3, #48] @ 0x30
  30213. }
  30214. /* Generate an update event to reload the Prescaler
  30215. and the repetition counter (only for advanced timer) value immediately */
  30216. TIMx->EGR = TIM_EGR_UG;
  30217. 800d1bc: 687b ldr r3, [r7, #4]
  30218. 800d1be: 2201 movs r2, #1
  30219. 800d1c0: 615a str r2, [r3, #20]
  30220. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  30221. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  30222. 800d1c2: 687b ldr r3, [r7, #4]
  30223. 800d1c4: 691b ldr r3, [r3, #16]
  30224. 800d1c6: f003 0301 and.w r3, r3, #1
  30225. 800d1ca: 2b01 cmp r3, #1
  30226. 800d1cc: d105 bne.n 800d1da <TIM_Base_SetConfig+0x11e>
  30227. {
  30228. /* Clear the update flag */
  30229. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  30230. 800d1ce: 687b ldr r3, [r7, #4]
  30231. 800d1d0: 691b ldr r3, [r3, #16]
  30232. 800d1d2: f023 0201 bic.w r2, r3, #1
  30233. 800d1d6: 687b ldr r3, [r7, #4]
  30234. 800d1d8: 611a str r2, [r3, #16]
  30235. }
  30236. }
  30237. 800d1da: bf00 nop
  30238. 800d1dc: 3714 adds r7, #20
  30239. 800d1de: 46bd mov sp, r7
  30240. 800d1e0: f85d 7b04 ldr.w r7, [sp], #4
  30241. 800d1e4: 4770 bx lr
  30242. 800d1e6: bf00 nop
  30243. 800d1e8: 40010000 .word 0x40010000
  30244. 800d1ec: 40000400 .word 0x40000400
  30245. 800d1f0: 40000800 .word 0x40000800
  30246. 800d1f4: 40000c00 .word 0x40000c00
  30247. 800d1f8: 40010400 .word 0x40010400
  30248. 800d1fc: 40014000 .word 0x40014000
  30249. 800d200: 40014400 .word 0x40014400
  30250. 800d204: 40014800 .word 0x40014800
  30251. 0800d208 <HAL_TIMEx_CommutCallback>:
  30252. * @brief Commutation callback in non-blocking mode
  30253. * @param htim TIM handle
  30254. * @retval None
  30255. */
  30256. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  30257. {
  30258. 800d208: b480 push {r7}
  30259. 800d20a: b083 sub sp, #12
  30260. 800d20c: af00 add r7, sp, #0
  30261. 800d20e: 6078 str r0, [r7, #4]
  30262. UNUSED(htim);
  30263. /* NOTE : This function should not be modified, when the callback is needed,
  30264. the HAL_TIMEx_CommutCallback could be implemented in the user file
  30265. */
  30266. }
  30267. 800d210: bf00 nop
  30268. 800d212: 370c adds r7, #12
  30269. 800d214: 46bd mov sp, r7
  30270. 800d216: f85d 7b04 ldr.w r7, [sp], #4
  30271. 800d21a: 4770 bx lr
  30272. 0800d21c <HAL_TIMEx_BreakCallback>:
  30273. * @brief Break detection callback in non-blocking mode
  30274. * @param htim TIM handle
  30275. * @retval None
  30276. */
  30277. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  30278. {
  30279. 800d21c: b480 push {r7}
  30280. 800d21e: b083 sub sp, #12
  30281. 800d220: af00 add r7, sp, #0
  30282. 800d222: 6078 str r0, [r7, #4]
  30283. UNUSED(htim);
  30284. /* NOTE : This function should not be modified, when the callback is needed,
  30285. the HAL_TIMEx_BreakCallback could be implemented in the user file
  30286. */
  30287. }
  30288. 800d224: bf00 nop
  30289. 800d226: 370c adds r7, #12
  30290. 800d228: 46bd mov sp, r7
  30291. 800d22a: f85d 7b04 ldr.w r7, [sp], #4
  30292. 800d22e: 4770 bx lr
  30293. 0800d230 <HAL_TIMEx_Break2Callback>:
  30294. * @brief Break2 detection callback in non blocking mode
  30295. * @param htim: TIM handle
  30296. * @retval None
  30297. */
  30298. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  30299. {
  30300. 800d230: b480 push {r7}
  30301. 800d232: b083 sub sp, #12
  30302. 800d234: af00 add r7, sp, #0
  30303. 800d236: 6078 str r0, [r7, #4]
  30304. UNUSED(htim);
  30305. /* NOTE : This function Should not be modified, when the callback is needed,
  30306. the HAL_TIMEx_Break2Callback could be implemented in the user file
  30307. */
  30308. }
  30309. 800d238: bf00 nop
  30310. 800d23a: 370c adds r7, #12
  30311. 800d23c: 46bd mov sp, r7
  30312. 800d23e: f85d 7b04 ldr.w r7, [sp], #4
  30313. 800d242: 4770 bx lr
  30314. 0800d244 <HAL_UART_Init>:
  30315. * parameters in the UART_InitTypeDef and initialize the associated handle.
  30316. * @param huart UART handle.
  30317. * @retval HAL status
  30318. */
  30319. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  30320. {
  30321. 800d244: b580 push {r7, lr}
  30322. 800d246: b082 sub sp, #8
  30323. 800d248: af00 add r7, sp, #0
  30324. 800d24a: 6078 str r0, [r7, #4]
  30325. /* Check the UART handle allocation */
  30326. if (huart == NULL)
  30327. 800d24c: 687b ldr r3, [r7, #4]
  30328. 800d24e: 2b00 cmp r3, #0
  30329. 800d250: d101 bne.n 800d256 <HAL_UART_Init+0x12>
  30330. {
  30331. return HAL_ERROR;
  30332. 800d252: 2301 movs r3, #1
  30333. 800d254: e042 b.n 800d2dc <HAL_UART_Init+0x98>
  30334. {
  30335. /* Check the parameters */
  30336. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  30337. }
  30338. if (huart->gState == HAL_UART_STATE_RESET)
  30339. 800d256: 687b ldr r3, [r7, #4]
  30340. 800d258: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30341. 800d25c: 2b00 cmp r3, #0
  30342. 800d25e: d106 bne.n 800d26e <HAL_UART_Init+0x2a>
  30343. {
  30344. /* Allocate lock resource and initialize it */
  30345. huart->Lock = HAL_UNLOCKED;
  30346. 800d260: 687b ldr r3, [r7, #4]
  30347. 800d262: 2200 movs r2, #0
  30348. 800d264: f883 2084 strb.w r2, [r3, #132] @ 0x84
  30349. /* Init the low level hardware */
  30350. huart->MspInitCallback(huart);
  30351. #else
  30352. /* Init the low level hardware : GPIO, CLOCK */
  30353. HAL_UART_MspInit(huart);
  30354. 800d268: 6878 ldr r0, [r7, #4]
  30355. 800d26a: f7f6 f9d5 bl 8003618 <HAL_UART_MspInit>
  30356. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  30357. }
  30358. huart->gState = HAL_UART_STATE_BUSY;
  30359. 800d26e: 687b ldr r3, [r7, #4]
  30360. 800d270: 2224 movs r2, #36 @ 0x24
  30361. 800d272: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  30362. __HAL_UART_DISABLE(huart);
  30363. 800d276: 687b ldr r3, [r7, #4]
  30364. 800d278: 681b ldr r3, [r3, #0]
  30365. 800d27a: 681a ldr r2, [r3, #0]
  30366. 800d27c: 687b ldr r3, [r7, #4]
  30367. 800d27e: 681b ldr r3, [r3, #0]
  30368. 800d280: f022 0201 bic.w r2, r2, #1
  30369. 800d284: 601a str r2, [r3, #0]
  30370. /* Perform advanced settings configuration */
  30371. /* For some items, configuration requires to be done prior TE and RE bits are set */
  30372. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  30373. 800d286: 687b ldr r3, [r7, #4]
  30374. 800d288: 6a9b ldr r3, [r3, #40] @ 0x28
  30375. 800d28a: 2b00 cmp r3, #0
  30376. 800d28c: d002 beq.n 800d294 <HAL_UART_Init+0x50>
  30377. {
  30378. UART_AdvFeatureConfig(huart);
  30379. 800d28e: 6878 ldr r0, [r7, #4]
  30380. 800d290: f001 fa76 bl 800e780 <UART_AdvFeatureConfig>
  30381. }
  30382. /* Set the UART Communication parameters */
  30383. if (UART_SetConfig(huart) == HAL_ERROR)
  30384. 800d294: 6878 ldr r0, [r7, #4]
  30385. 800d296: f000 fd0b bl 800dcb0 <UART_SetConfig>
  30386. 800d29a: 4603 mov r3, r0
  30387. 800d29c: 2b01 cmp r3, #1
  30388. 800d29e: d101 bne.n 800d2a4 <HAL_UART_Init+0x60>
  30389. {
  30390. return HAL_ERROR;
  30391. 800d2a0: 2301 movs r3, #1
  30392. 800d2a2: e01b b.n 800d2dc <HAL_UART_Init+0x98>
  30393. }
  30394. /* In asynchronous mode, the following bits must be kept cleared:
  30395. - LINEN and CLKEN bits in the USART_CR2 register,
  30396. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  30397. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  30398. 800d2a4: 687b ldr r3, [r7, #4]
  30399. 800d2a6: 681b ldr r3, [r3, #0]
  30400. 800d2a8: 685a ldr r2, [r3, #4]
  30401. 800d2aa: 687b ldr r3, [r7, #4]
  30402. 800d2ac: 681b ldr r3, [r3, #0]
  30403. 800d2ae: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  30404. 800d2b2: 605a str r2, [r3, #4]
  30405. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  30406. 800d2b4: 687b ldr r3, [r7, #4]
  30407. 800d2b6: 681b ldr r3, [r3, #0]
  30408. 800d2b8: 689a ldr r2, [r3, #8]
  30409. 800d2ba: 687b ldr r3, [r7, #4]
  30410. 800d2bc: 681b ldr r3, [r3, #0]
  30411. 800d2be: f022 022a bic.w r2, r2, #42 @ 0x2a
  30412. 800d2c2: 609a str r2, [r3, #8]
  30413. __HAL_UART_ENABLE(huart);
  30414. 800d2c4: 687b ldr r3, [r7, #4]
  30415. 800d2c6: 681b ldr r3, [r3, #0]
  30416. 800d2c8: 681a ldr r2, [r3, #0]
  30417. 800d2ca: 687b ldr r3, [r7, #4]
  30418. 800d2cc: 681b ldr r3, [r3, #0]
  30419. 800d2ce: f042 0201 orr.w r2, r2, #1
  30420. 800d2d2: 601a str r2, [r3, #0]
  30421. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  30422. return (UART_CheckIdleState(huart));
  30423. 800d2d4: 6878 ldr r0, [r7, #4]
  30424. 800d2d6: f001 faf5 bl 800e8c4 <UART_CheckIdleState>
  30425. 800d2da: 4603 mov r3, r0
  30426. }
  30427. 800d2dc: 4618 mov r0, r3
  30428. 800d2de: 3708 adds r7, #8
  30429. 800d2e0: 46bd mov sp, r7
  30430. 800d2e2: bd80 pop {r7, pc}
  30431. 0800d2e4 <HAL_UART_Transmit>:
  30432. * @param Size Amount of data elements (u8 or u16) to be sent.
  30433. * @param Timeout Timeout duration.
  30434. * @retval HAL status
  30435. */
  30436. HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
  30437. {
  30438. 800d2e4: b580 push {r7, lr}
  30439. 800d2e6: b08a sub sp, #40 @ 0x28
  30440. 800d2e8: af02 add r7, sp, #8
  30441. 800d2ea: 60f8 str r0, [r7, #12]
  30442. 800d2ec: 60b9 str r1, [r7, #8]
  30443. 800d2ee: 603b str r3, [r7, #0]
  30444. 800d2f0: 4613 mov r3, r2
  30445. 800d2f2: 80fb strh r3, [r7, #6]
  30446. const uint8_t *pdata8bits;
  30447. const uint16_t *pdata16bits;
  30448. uint32_t tickstart;
  30449. /* Check that a Tx process is not already ongoing */
  30450. if (huart->gState == HAL_UART_STATE_READY)
  30451. 800d2f4: 68fb ldr r3, [r7, #12]
  30452. 800d2f6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30453. 800d2fa: 2b20 cmp r3, #32
  30454. 800d2fc: d17b bne.n 800d3f6 <HAL_UART_Transmit+0x112>
  30455. {
  30456. if ((pData == NULL) || (Size == 0U))
  30457. 800d2fe: 68bb ldr r3, [r7, #8]
  30458. 800d300: 2b00 cmp r3, #0
  30459. 800d302: d002 beq.n 800d30a <HAL_UART_Transmit+0x26>
  30460. 800d304: 88fb ldrh r3, [r7, #6]
  30461. 800d306: 2b00 cmp r3, #0
  30462. 800d308: d101 bne.n 800d30e <HAL_UART_Transmit+0x2a>
  30463. {
  30464. return HAL_ERROR;
  30465. 800d30a: 2301 movs r3, #1
  30466. 800d30c: e074 b.n 800d3f8 <HAL_UART_Transmit+0x114>
  30467. }
  30468. huart->ErrorCode = HAL_UART_ERROR_NONE;
  30469. 800d30e: 68fb ldr r3, [r7, #12]
  30470. 800d310: 2200 movs r2, #0
  30471. 800d312: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30472. huart->gState = HAL_UART_STATE_BUSY_TX;
  30473. 800d316: 68fb ldr r3, [r7, #12]
  30474. 800d318: 2221 movs r2, #33 @ 0x21
  30475. 800d31a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  30476. /* Init tickstart for timeout management */
  30477. tickstart = HAL_GetTick();
  30478. 800d31e: f7f7 ff8f bl 8005240 <HAL_GetTick>
  30479. 800d322: 6178 str r0, [r7, #20]
  30480. huart->TxXferSize = Size;
  30481. 800d324: 68fb ldr r3, [r7, #12]
  30482. 800d326: 88fa ldrh r2, [r7, #6]
  30483. 800d328: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  30484. huart->TxXferCount = Size;
  30485. 800d32c: 68fb ldr r3, [r7, #12]
  30486. 800d32e: 88fa ldrh r2, [r7, #6]
  30487. 800d330: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  30488. /* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */
  30489. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  30490. 800d334: 68fb ldr r3, [r7, #12]
  30491. 800d336: 689b ldr r3, [r3, #8]
  30492. 800d338: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30493. 800d33c: d108 bne.n 800d350 <HAL_UART_Transmit+0x6c>
  30494. 800d33e: 68fb ldr r3, [r7, #12]
  30495. 800d340: 691b ldr r3, [r3, #16]
  30496. 800d342: 2b00 cmp r3, #0
  30497. 800d344: d104 bne.n 800d350 <HAL_UART_Transmit+0x6c>
  30498. {
  30499. pdata8bits = NULL;
  30500. 800d346: 2300 movs r3, #0
  30501. 800d348: 61fb str r3, [r7, #28]
  30502. pdata16bits = (const uint16_t *) pData;
  30503. 800d34a: 68bb ldr r3, [r7, #8]
  30504. 800d34c: 61bb str r3, [r7, #24]
  30505. 800d34e: e003 b.n 800d358 <HAL_UART_Transmit+0x74>
  30506. }
  30507. else
  30508. {
  30509. pdata8bits = pData;
  30510. 800d350: 68bb ldr r3, [r7, #8]
  30511. 800d352: 61fb str r3, [r7, #28]
  30512. pdata16bits = NULL;
  30513. 800d354: 2300 movs r3, #0
  30514. 800d356: 61bb str r3, [r7, #24]
  30515. }
  30516. while (huart->TxXferCount > 0U)
  30517. 800d358: e030 b.n 800d3bc <HAL_UART_Transmit+0xd8>
  30518. {
  30519. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
  30520. 800d35a: 683b ldr r3, [r7, #0]
  30521. 800d35c: 9300 str r3, [sp, #0]
  30522. 800d35e: 697b ldr r3, [r7, #20]
  30523. 800d360: 2200 movs r2, #0
  30524. 800d362: 2180 movs r1, #128 @ 0x80
  30525. 800d364: 68f8 ldr r0, [r7, #12]
  30526. 800d366: f001 fb57 bl 800ea18 <UART_WaitOnFlagUntilTimeout>
  30527. 800d36a: 4603 mov r3, r0
  30528. 800d36c: 2b00 cmp r3, #0
  30529. 800d36e: d005 beq.n 800d37c <HAL_UART_Transmit+0x98>
  30530. {
  30531. huart->gState = HAL_UART_STATE_READY;
  30532. 800d370: 68fb ldr r3, [r7, #12]
  30533. 800d372: 2220 movs r2, #32
  30534. 800d374: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  30535. return HAL_TIMEOUT;
  30536. 800d378: 2303 movs r3, #3
  30537. 800d37a: e03d b.n 800d3f8 <HAL_UART_Transmit+0x114>
  30538. }
  30539. if (pdata8bits == NULL)
  30540. 800d37c: 69fb ldr r3, [r7, #28]
  30541. 800d37e: 2b00 cmp r3, #0
  30542. 800d380: d10b bne.n 800d39a <HAL_UART_Transmit+0xb6>
  30543. {
  30544. huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU);
  30545. 800d382: 69bb ldr r3, [r7, #24]
  30546. 800d384: 881b ldrh r3, [r3, #0]
  30547. 800d386: 461a mov r2, r3
  30548. 800d388: 68fb ldr r3, [r7, #12]
  30549. 800d38a: 681b ldr r3, [r3, #0]
  30550. 800d38c: f3c2 0208 ubfx r2, r2, #0, #9
  30551. 800d390: 629a str r2, [r3, #40] @ 0x28
  30552. pdata16bits++;
  30553. 800d392: 69bb ldr r3, [r7, #24]
  30554. 800d394: 3302 adds r3, #2
  30555. 800d396: 61bb str r3, [r7, #24]
  30556. 800d398: e007 b.n 800d3aa <HAL_UART_Transmit+0xc6>
  30557. }
  30558. else
  30559. {
  30560. huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU);
  30561. 800d39a: 69fb ldr r3, [r7, #28]
  30562. 800d39c: 781a ldrb r2, [r3, #0]
  30563. 800d39e: 68fb ldr r3, [r7, #12]
  30564. 800d3a0: 681b ldr r3, [r3, #0]
  30565. 800d3a2: 629a str r2, [r3, #40] @ 0x28
  30566. pdata8bits++;
  30567. 800d3a4: 69fb ldr r3, [r7, #28]
  30568. 800d3a6: 3301 adds r3, #1
  30569. 800d3a8: 61fb str r3, [r7, #28]
  30570. }
  30571. huart->TxXferCount--;
  30572. 800d3aa: 68fb ldr r3, [r7, #12]
  30573. 800d3ac: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  30574. 800d3b0: b29b uxth r3, r3
  30575. 800d3b2: 3b01 subs r3, #1
  30576. 800d3b4: b29a uxth r2, r3
  30577. 800d3b6: 68fb ldr r3, [r7, #12]
  30578. 800d3b8: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  30579. while (huart->TxXferCount > 0U)
  30580. 800d3bc: 68fb ldr r3, [r7, #12]
  30581. 800d3be: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  30582. 800d3c2: b29b uxth r3, r3
  30583. 800d3c4: 2b00 cmp r3, #0
  30584. 800d3c6: d1c8 bne.n 800d35a <HAL_UART_Transmit+0x76>
  30585. }
  30586. if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
  30587. 800d3c8: 683b ldr r3, [r7, #0]
  30588. 800d3ca: 9300 str r3, [sp, #0]
  30589. 800d3cc: 697b ldr r3, [r7, #20]
  30590. 800d3ce: 2200 movs r2, #0
  30591. 800d3d0: 2140 movs r1, #64 @ 0x40
  30592. 800d3d2: 68f8 ldr r0, [r7, #12]
  30593. 800d3d4: f001 fb20 bl 800ea18 <UART_WaitOnFlagUntilTimeout>
  30594. 800d3d8: 4603 mov r3, r0
  30595. 800d3da: 2b00 cmp r3, #0
  30596. 800d3dc: d005 beq.n 800d3ea <HAL_UART_Transmit+0x106>
  30597. {
  30598. huart->gState = HAL_UART_STATE_READY;
  30599. 800d3de: 68fb ldr r3, [r7, #12]
  30600. 800d3e0: 2220 movs r2, #32
  30601. 800d3e2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  30602. return HAL_TIMEOUT;
  30603. 800d3e6: 2303 movs r3, #3
  30604. 800d3e8: e006 b.n 800d3f8 <HAL_UART_Transmit+0x114>
  30605. }
  30606. /* At end of Tx process, restore huart->gState to Ready */
  30607. huart->gState = HAL_UART_STATE_READY;
  30608. 800d3ea: 68fb ldr r3, [r7, #12]
  30609. 800d3ec: 2220 movs r2, #32
  30610. 800d3ee: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  30611. return HAL_OK;
  30612. 800d3f2: 2300 movs r3, #0
  30613. 800d3f4: e000 b.n 800d3f8 <HAL_UART_Transmit+0x114>
  30614. }
  30615. else
  30616. {
  30617. return HAL_BUSY;
  30618. 800d3f6: 2302 movs r3, #2
  30619. }
  30620. }
  30621. 800d3f8: 4618 mov r0, r3
  30622. 800d3fa: 3720 adds r7, #32
  30623. 800d3fc: 46bd mov sp, r7
  30624. 800d3fe: bd80 pop {r7, pc}
  30625. 0800d400 <HAL_UART_Transmit_IT>:
  30626. * @param pData Pointer to data buffer (u8 or u16 data elements).
  30627. * @param Size Amount of data elements (u8 or u16) to be sent.
  30628. * @retval HAL status
  30629. */
  30630. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  30631. {
  30632. 800d400: b480 push {r7}
  30633. 800d402: b091 sub sp, #68 @ 0x44
  30634. 800d404: af00 add r7, sp, #0
  30635. 800d406: 60f8 str r0, [r7, #12]
  30636. 800d408: 60b9 str r1, [r7, #8]
  30637. 800d40a: 4613 mov r3, r2
  30638. 800d40c: 80fb strh r3, [r7, #6]
  30639. /* Check that a Tx process is not already ongoing */
  30640. if (huart->gState == HAL_UART_STATE_READY)
  30641. 800d40e: 68fb ldr r3, [r7, #12]
  30642. 800d410: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30643. 800d414: 2b20 cmp r3, #32
  30644. 800d416: d178 bne.n 800d50a <HAL_UART_Transmit_IT+0x10a>
  30645. {
  30646. if ((pData == NULL) || (Size == 0U))
  30647. 800d418: 68bb ldr r3, [r7, #8]
  30648. 800d41a: 2b00 cmp r3, #0
  30649. 800d41c: d002 beq.n 800d424 <HAL_UART_Transmit_IT+0x24>
  30650. 800d41e: 88fb ldrh r3, [r7, #6]
  30651. 800d420: 2b00 cmp r3, #0
  30652. 800d422: d101 bne.n 800d428 <HAL_UART_Transmit_IT+0x28>
  30653. {
  30654. return HAL_ERROR;
  30655. 800d424: 2301 movs r3, #1
  30656. 800d426: e071 b.n 800d50c <HAL_UART_Transmit_IT+0x10c>
  30657. }
  30658. huart->pTxBuffPtr = pData;
  30659. 800d428: 68fb ldr r3, [r7, #12]
  30660. 800d42a: 68ba ldr r2, [r7, #8]
  30661. 800d42c: 651a str r2, [r3, #80] @ 0x50
  30662. huart->TxXferSize = Size;
  30663. 800d42e: 68fb ldr r3, [r7, #12]
  30664. 800d430: 88fa ldrh r2, [r7, #6]
  30665. 800d432: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  30666. huart->TxXferCount = Size;
  30667. 800d436: 68fb ldr r3, [r7, #12]
  30668. 800d438: 88fa ldrh r2, [r7, #6]
  30669. 800d43a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  30670. huart->TxISR = NULL;
  30671. 800d43e: 68fb ldr r3, [r7, #12]
  30672. 800d440: 2200 movs r2, #0
  30673. 800d442: 679a str r2, [r3, #120] @ 0x78
  30674. huart->ErrorCode = HAL_UART_ERROR_NONE;
  30675. 800d444: 68fb ldr r3, [r7, #12]
  30676. 800d446: 2200 movs r2, #0
  30677. 800d448: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30678. huart->gState = HAL_UART_STATE_BUSY_TX;
  30679. 800d44c: 68fb ldr r3, [r7, #12]
  30680. 800d44e: 2221 movs r2, #33 @ 0x21
  30681. 800d450: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  30682. /* Configure Tx interrupt processing */
  30683. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  30684. 800d454: 68fb ldr r3, [r7, #12]
  30685. 800d456: 6e5b ldr r3, [r3, #100] @ 0x64
  30686. 800d458: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30687. 800d45c: d12a bne.n 800d4b4 <HAL_UART_Transmit_IT+0xb4>
  30688. {
  30689. /* Set the Tx ISR function pointer according to the data word length */
  30690. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  30691. 800d45e: 68fb ldr r3, [r7, #12]
  30692. 800d460: 689b ldr r3, [r3, #8]
  30693. 800d462: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30694. 800d466: d107 bne.n 800d478 <HAL_UART_Transmit_IT+0x78>
  30695. 800d468: 68fb ldr r3, [r7, #12]
  30696. 800d46a: 691b ldr r3, [r3, #16]
  30697. 800d46c: 2b00 cmp r3, #0
  30698. 800d46e: d103 bne.n 800d478 <HAL_UART_Transmit_IT+0x78>
  30699. {
  30700. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  30701. 800d470: 68fb ldr r3, [r7, #12]
  30702. 800d472: 4a29 ldr r2, [pc, #164] @ (800d518 <HAL_UART_Transmit_IT+0x118>)
  30703. 800d474: 679a str r2, [r3, #120] @ 0x78
  30704. 800d476: e002 b.n 800d47e <HAL_UART_Transmit_IT+0x7e>
  30705. }
  30706. else
  30707. {
  30708. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  30709. 800d478: 68fb ldr r3, [r7, #12]
  30710. 800d47a: 4a28 ldr r2, [pc, #160] @ (800d51c <HAL_UART_Transmit_IT+0x11c>)
  30711. 800d47c: 679a str r2, [r3, #120] @ 0x78
  30712. }
  30713. /* Enable the TX FIFO threshold interrupt */
  30714. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  30715. 800d47e: 68fb ldr r3, [r7, #12]
  30716. 800d480: 681b ldr r3, [r3, #0]
  30717. 800d482: 3308 adds r3, #8
  30718. 800d484: 62bb str r3, [r7, #40] @ 0x28
  30719. */
  30720. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  30721. {
  30722. uint32_t result;
  30723. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30724. 800d486: 6abb ldr r3, [r7, #40] @ 0x28
  30725. 800d488: e853 3f00 ldrex r3, [r3]
  30726. 800d48c: 627b str r3, [r7, #36] @ 0x24
  30727. return(result);
  30728. 800d48e: 6a7b ldr r3, [r7, #36] @ 0x24
  30729. 800d490: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  30730. 800d494: 63bb str r3, [r7, #56] @ 0x38
  30731. 800d496: 68fb ldr r3, [r7, #12]
  30732. 800d498: 681b ldr r3, [r3, #0]
  30733. 800d49a: 3308 adds r3, #8
  30734. 800d49c: 6bba ldr r2, [r7, #56] @ 0x38
  30735. 800d49e: 637a str r2, [r7, #52] @ 0x34
  30736. 800d4a0: 633b str r3, [r7, #48] @ 0x30
  30737. */
  30738. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  30739. {
  30740. uint32_t result;
  30741. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30742. 800d4a2: 6b39 ldr r1, [r7, #48] @ 0x30
  30743. 800d4a4: 6b7a ldr r2, [r7, #52] @ 0x34
  30744. 800d4a6: e841 2300 strex r3, r2, [r1]
  30745. 800d4aa: 62fb str r3, [r7, #44] @ 0x2c
  30746. return(result);
  30747. 800d4ac: 6afb ldr r3, [r7, #44] @ 0x2c
  30748. 800d4ae: 2b00 cmp r3, #0
  30749. 800d4b0: d1e5 bne.n 800d47e <HAL_UART_Transmit_IT+0x7e>
  30750. 800d4b2: e028 b.n 800d506 <HAL_UART_Transmit_IT+0x106>
  30751. }
  30752. else
  30753. {
  30754. /* Set the Tx ISR function pointer according to the data word length */
  30755. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  30756. 800d4b4: 68fb ldr r3, [r7, #12]
  30757. 800d4b6: 689b ldr r3, [r3, #8]
  30758. 800d4b8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30759. 800d4bc: d107 bne.n 800d4ce <HAL_UART_Transmit_IT+0xce>
  30760. 800d4be: 68fb ldr r3, [r7, #12]
  30761. 800d4c0: 691b ldr r3, [r3, #16]
  30762. 800d4c2: 2b00 cmp r3, #0
  30763. 800d4c4: d103 bne.n 800d4ce <HAL_UART_Transmit_IT+0xce>
  30764. {
  30765. huart->TxISR = UART_TxISR_16BIT;
  30766. 800d4c6: 68fb ldr r3, [r7, #12]
  30767. 800d4c8: 4a15 ldr r2, [pc, #84] @ (800d520 <HAL_UART_Transmit_IT+0x120>)
  30768. 800d4ca: 679a str r2, [r3, #120] @ 0x78
  30769. 800d4cc: e002 b.n 800d4d4 <HAL_UART_Transmit_IT+0xd4>
  30770. }
  30771. else
  30772. {
  30773. huart->TxISR = UART_TxISR_8BIT;
  30774. 800d4ce: 68fb ldr r3, [r7, #12]
  30775. 800d4d0: 4a14 ldr r2, [pc, #80] @ (800d524 <HAL_UART_Transmit_IT+0x124>)
  30776. 800d4d2: 679a str r2, [r3, #120] @ 0x78
  30777. }
  30778. /* Enable the Transmit Data Register Empty interrupt */
  30779. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  30780. 800d4d4: 68fb ldr r3, [r7, #12]
  30781. 800d4d6: 681b ldr r3, [r3, #0]
  30782. 800d4d8: 617b str r3, [r7, #20]
  30783. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  30784. 800d4da: 697b ldr r3, [r7, #20]
  30785. 800d4dc: e853 3f00 ldrex r3, [r3]
  30786. 800d4e0: 613b str r3, [r7, #16]
  30787. return(result);
  30788. 800d4e2: 693b ldr r3, [r7, #16]
  30789. 800d4e4: f043 0380 orr.w r3, r3, #128 @ 0x80
  30790. 800d4e8: 63fb str r3, [r7, #60] @ 0x3c
  30791. 800d4ea: 68fb ldr r3, [r7, #12]
  30792. 800d4ec: 681b ldr r3, [r3, #0]
  30793. 800d4ee: 461a mov r2, r3
  30794. 800d4f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  30795. 800d4f2: 623b str r3, [r7, #32]
  30796. 800d4f4: 61fa str r2, [r7, #28]
  30797. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  30798. 800d4f6: 69f9 ldr r1, [r7, #28]
  30799. 800d4f8: 6a3a ldr r2, [r7, #32]
  30800. 800d4fa: e841 2300 strex r3, r2, [r1]
  30801. 800d4fe: 61bb str r3, [r7, #24]
  30802. return(result);
  30803. 800d500: 69bb ldr r3, [r7, #24]
  30804. 800d502: 2b00 cmp r3, #0
  30805. 800d504: d1e6 bne.n 800d4d4 <HAL_UART_Transmit_IT+0xd4>
  30806. }
  30807. return HAL_OK;
  30808. 800d506: 2300 movs r3, #0
  30809. 800d508: e000 b.n 800d50c <HAL_UART_Transmit_IT+0x10c>
  30810. }
  30811. else
  30812. {
  30813. return HAL_BUSY;
  30814. 800d50a: 2302 movs r3, #2
  30815. }
  30816. }
  30817. 800d50c: 4618 mov r0, r3
  30818. 800d50e: 3744 adds r7, #68 @ 0x44
  30819. 800d510: 46bd mov sp, r7
  30820. 800d512: f85d 7b04 ldr.w r7, [sp], #4
  30821. 800d516: 4770 bx lr
  30822. 800d518: 0800f08b .word 0x0800f08b
  30823. 800d51c: 0800efab .word 0x0800efab
  30824. 800d520: 0800eee9 .word 0x0800eee9
  30825. 800d524: 0800ee31 .word 0x0800ee31
  30826. 0800d528 <HAL_UART_IRQHandler>:
  30827. * @brief Handle UART interrupt request.
  30828. * @param huart UART handle.
  30829. * @retval None
  30830. */
  30831. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  30832. {
  30833. 800d528: b580 push {r7, lr}
  30834. 800d52a: b0ba sub sp, #232 @ 0xe8
  30835. 800d52c: af00 add r7, sp, #0
  30836. 800d52e: 6078 str r0, [r7, #4]
  30837. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  30838. 800d530: 687b ldr r3, [r7, #4]
  30839. 800d532: 681b ldr r3, [r3, #0]
  30840. 800d534: 69db ldr r3, [r3, #28]
  30841. 800d536: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  30842. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  30843. 800d53a: 687b ldr r3, [r7, #4]
  30844. 800d53c: 681b ldr r3, [r3, #0]
  30845. 800d53e: 681b ldr r3, [r3, #0]
  30846. 800d540: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  30847. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  30848. 800d544: 687b ldr r3, [r7, #4]
  30849. 800d546: 681b ldr r3, [r3, #0]
  30850. 800d548: 689b ldr r3, [r3, #8]
  30851. 800d54a: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  30852. uint32_t errorflags;
  30853. uint32_t errorcode;
  30854. /* If no error occurs */
  30855. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  30856. 800d54e: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  30857. 800d552: f640 030f movw r3, #2063 @ 0x80f
  30858. 800d556: 4013 ands r3, r2
  30859. 800d558: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  30860. if (errorflags == 0U)
  30861. 800d55c: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  30862. 800d560: 2b00 cmp r3, #0
  30863. 800d562: d11b bne.n 800d59c <HAL_UART_IRQHandler+0x74>
  30864. {
  30865. /* UART in mode Receiver ---------------------------------------------------*/
  30866. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  30867. 800d564: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30868. 800d568: f003 0320 and.w r3, r3, #32
  30869. 800d56c: 2b00 cmp r3, #0
  30870. 800d56e: d015 beq.n 800d59c <HAL_UART_IRQHandler+0x74>
  30871. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  30872. 800d570: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30873. 800d574: f003 0320 and.w r3, r3, #32
  30874. 800d578: 2b00 cmp r3, #0
  30875. 800d57a: d105 bne.n 800d588 <HAL_UART_IRQHandler+0x60>
  30876. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  30877. 800d57c: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30878. 800d580: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  30879. 800d584: 2b00 cmp r3, #0
  30880. 800d586: d009 beq.n 800d59c <HAL_UART_IRQHandler+0x74>
  30881. {
  30882. if (huart->RxISR != NULL)
  30883. 800d588: 687b ldr r3, [r7, #4]
  30884. 800d58a: 6f5b ldr r3, [r3, #116] @ 0x74
  30885. 800d58c: 2b00 cmp r3, #0
  30886. 800d58e: f000 8377 beq.w 800dc80 <HAL_UART_IRQHandler+0x758>
  30887. {
  30888. huart->RxISR(huart);
  30889. 800d592: 687b ldr r3, [r7, #4]
  30890. 800d594: 6f5b ldr r3, [r3, #116] @ 0x74
  30891. 800d596: 6878 ldr r0, [r7, #4]
  30892. 800d598: 4798 blx r3
  30893. }
  30894. return;
  30895. 800d59a: e371 b.n 800dc80 <HAL_UART_IRQHandler+0x758>
  30896. }
  30897. }
  30898. /* If some errors occur */
  30899. if ((errorflags != 0U)
  30900. 800d59c: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  30901. 800d5a0: 2b00 cmp r3, #0
  30902. 800d5a2: f000 8123 beq.w 800d7ec <HAL_UART_IRQHandler+0x2c4>
  30903. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  30904. 800d5a6: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  30905. 800d5aa: 4b8d ldr r3, [pc, #564] @ (800d7e0 <HAL_UART_IRQHandler+0x2b8>)
  30906. 800d5ac: 4013 ands r3, r2
  30907. 800d5ae: 2b00 cmp r3, #0
  30908. 800d5b0: d106 bne.n 800d5c0 <HAL_UART_IRQHandler+0x98>
  30909. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  30910. 800d5b2: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  30911. 800d5b6: 4b8b ldr r3, [pc, #556] @ (800d7e4 <HAL_UART_IRQHandler+0x2bc>)
  30912. 800d5b8: 4013 ands r3, r2
  30913. 800d5ba: 2b00 cmp r3, #0
  30914. 800d5bc: f000 8116 beq.w 800d7ec <HAL_UART_IRQHandler+0x2c4>
  30915. {
  30916. /* UART parity error interrupt occurred -------------------------------------*/
  30917. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  30918. 800d5c0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30919. 800d5c4: f003 0301 and.w r3, r3, #1
  30920. 800d5c8: 2b00 cmp r3, #0
  30921. 800d5ca: d011 beq.n 800d5f0 <HAL_UART_IRQHandler+0xc8>
  30922. 800d5cc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30923. 800d5d0: f403 7380 and.w r3, r3, #256 @ 0x100
  30924. 800d5d4: 2b00 cmp r3, #0
  30925. 800d5d6: d00b beq.n 800d5f0 <HAL_UART_IRQHandler+0xc8>
  30926. {
  30927. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  30928. 800d5d8: 687b ldr r3, [r7, #4]
  30929. 800d5da: 681b ldr r3, [r3, #0]
  30930. 800d5dc: 2201 movs r2, #1
  30931. 800d5de: 621a str r2, [r3, #32]
  30932. huart->ErrorCode |= HAL_UART_ERROR_PE;
  30933. 800d5e0: 687b ldr r3, [r7, #4]
  30934. 800d5e2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30935. 800d5e6: f043 0201 orr.w r2, r3, #1
  30936. 800d5ea: 687b ldr r3, [r7, #4]
  30937. 800d5ec: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30938. }
  30939. /* UART frame error interrupt occurred --------------------------------------*/
  30940. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  30941. 800d5f0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30942. 800d5f4: f003 0302 and.w r3, r3, #2
  30943. 800d5f8: 2b00 cmp r3, #0
  30944. 800d5fa: d011 beq.n 800d620 <HAL_UART_IRQHandler+0xf8>
  30945. 800d5fc: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30946. 800d600: f003 0301 and.w r3, r3, #1
  30947. 800d604: 2b00 cmp r3, #0
  30948. 800d606: d00b beq.n 800d620 <HAL_UART_IRQHandler+0xf8>
  30949. {
  30950. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  30951. 800d608: 687b ldr r3, [r7, #4]
  30952. 800d60a: 681b ldr r3, [r3, #0]
  30953. 800d60c: 2202 movs r2, #2
  30954. 800d60e: 621a str r2, [r3, #32]
  30955. huart->ErrorCode |= HAL_UART_ERROR_FE;
  30956. 800d610: 687b ldr r3, [r7, #4]
  30957. 800d612: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30958. 800d616: f043 0204 orr.w r2, r3, #4
  30959. 800d61a: 687b ldr r3, [r7, #4]
  30960. 800d61c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30961. }
  30962. /* UART noise error interrupt occurred --------------------------------------*/
  30963. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  30964. 800d620: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30965. 800d624: f003 0304 and.w r3, r3, #4
  30966. 800d628: 2b00 cmp r3, #0
  30967. 800d62a: d011 beq.n 800d650 <HAL_UART_IRQHandler+0x128>
  30968. 800d62c: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  30969. 800d630: f003 0301 and.w r3, r3, #1
  30970. 800d634: 2b00 cmp r3, #0
  30971. 800d636: d00b beq.n 800d650 <HAL_UART_IRQHandler+0x128>
  30972. {
  30973. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  30974. 800d638: 687b ldr r3, [r7, #4]
  30975. 800d63a: 681b ldr r3, [r3, #0]
  30976. 800d63c: 2204 movs r2, #4
  30977. 800d63e: 621a str r2, [r3, #32]
  30978. huart->ErrorCode |= HAL_UART_ERROR_NE;
  30979. 800d640: 687b ldr r3, [r7, #4]
  30980. 800d642: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30981. 800d646: f043 0202 orr.w r2, r3, #2
  30982. 800d64a: 687b ldr r3, [r7, #4]
  30983. 800d64c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  30984. }
  30985. /* UART Over-Run interrupt occurred -----------------------------------------*/
  30986. if (((isrflags & USART_ISR_ORE) != 0U)
  30987. 800d650: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  30988. 800d654: f003 0308 and.w r3, r3, #8
  30989. 800d658: 2b00 cmp r3, #0
  30990. 800d65a: d017 beq.n 800d68c <HAL_UART_IRQHandler+0x164>
  30991. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  30992. 800d65c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  30993. 800d660: f003 0320 and.w r3, r3, #32
  30994. 800d664: 2b00 cmp r3, #0
  30995. 800d666: d105 bne.n 800d674 <HAL_UART_IRQHandler+0x14c>
  30996. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  30997. 800d668: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  30998. 800d66c: 4b5c ldr r3, [pc, #368] @ (800d7e0 <HAL_UART_IRQHandler+0x2b8>)
  30999. 800d66e: 4013 ands r3, r2
  31000. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  31001. 800d670: 2b00 cmp r3, #0
  31002. 800d672: d00b beq.n 800d68c <HAL_UART_IRQHandler+0x164>
  31003. {
  31004. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  31005. 800d674: 687b ldr r3, [r7, #4]
  31006. 800d676: 681b ldr r3, [r3, #0]
  31007. 800d678: 2208 movs r2, #8
  31008. 800d67a: 621a str r2, [r3, #32]
  31009. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  31010. 800d67c: 687b ldr r3, [r7, #4]
  31011. 800d67e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31012. 800d682: f043 0208 orr.w r2, r3, #8
  31013. 800d686: 687b ldr r3, [r7, #4]
  31014. 800d688: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31015. }
  31016. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  31017. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  31018. 800d68c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31019. 800d690: f403 6300 and.w r3, r3, #2048 @ 0x800
  31020. 800d694: 2b00 cmp r3, #0
  31021. 800d696: d012 beq.n 800d6be <HAL_UART_IRQHandler+0x196>
  31022. 800d698: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31023. 800d69c: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  31024. 800d6a0: 2b00 cmp r3, #0
  31025. 800d6a2: d00c beq.n 800d6be <HAL_UART_IRQHandler+0x196>
  31026. {
  31027. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  31028. 800d6a4: 687b ldr r3, [r7, #4]
  31029. 800d6a6: 681b ldr r3, [r3, #0]
  31030. 800d6a8: f44f 6200 mov.w r2, #2048 @ 0x800
  31031. 800d6ac: 621a str r2, [r3, #32]
  31032. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  31033. 800d6ae: 687b ldr r3, [r7, #4]
  31034. 800d6b0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31035. 800d6b4: f043 0220 orr.w r2, r3, #32
  31036. 800d6b8: 687b ldr r3, [r7, #4]
  31037. 800d6ba: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31038. }
  31039. /* Call UART Error Call back function if need be ----------------------------*/
  31040. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  31041. 800d6be: 687b ldr r3, [r7, #4]
  31042. 800d6c0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31043. 800d6c4: 2b00 cmp r3, #0
  31044. 800d6c6: f000 82dd beq.w 800dc84 <HAL_UART_IRQHandler+0x75c>
  31045. {
  31046. /* UART in mode Receiver --------------------------------------------------*/
  31047. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  31048. 800d6ca: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31049. 800d6ce: f003 0320 and.w r3, r3, #32
  31050. 800d6d2: 2b00 cmp r3, #0
  31051. 800d6d4: d013 beq.n 800d6fe <HAL_UART_IRQHandler+0x1d6>
  31052. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  31053. 800d6d6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31054. 800d6da: f003 0320 and.w r3, r3, #32
  31055. 800d6de: 2b00 cmp r3, #0
  31056. 800d6e0: d105 bne.n 800d6ee <HAL_UART_IRQHandler+0x1c6>
  31057. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  31058. 800d6e2: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31059. 800d6e6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  31060. 800d6ea: 2b00 cmp r3, #0
  31061. 800d6ec: d007 beq.n 800d6fe <HAL_UART_IRQHandler+0x1d6>
  31062. {
  31063. if (huart->RxISR != NULL)
  31064. 800d6ee: 687b ldr r3, [r7, #4]
  31065. 800d6f0: 6f5b ldr r3, [r3, #116] @ 0x74
  31066. 800d6f2: 2b00 cmp r3, #0
  31067. 800d6f4: d003 beq.n 800d6fe <HAL_UART_IRQHandler+0x1d6>
  31068. {
  31069. huart->RxISR(huart);
  31070. 800d6f6: 687b ldr r3, [r7, #4]
  31071. 800d6f8: 6f5b ldr r3, [r3, #116] @ 0x74
  31072. 800d6fa: 6878 ldr r0, [r7, #4]
  31073. 800d6fc: 4798 blx r3
  31074. /* If Error is to be considered as blocking :
  31075. - Receiver Timeout error in Reception
  31076. - Overrun error in Reception
  31077. - any error occurs in DMA mode reception
  31078. */
  31079. errorcode = huart->ErrorCode;
  31080. 800d6fe: 687b ldr r3, [r7, #4]
  31081. 800d700: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  31082. 800d704: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  31083. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  31084. 800d708: 687b ldr r3, [r7, #4]
  31085. 800d70a: 681b ldr r3, [r3, #0]
  31086. 800d70c: 689b ldr r3, [r3, #8]
  31087. 800d70e: f003 0340 and.w r3, r3, #64 @ 0x40
  31088. 800d712: 2b40 cmp r3, #64 @ 0x40
  31089. 800d714: d005 beq.n 800d722 <HAL_UART_IRQHandler+0x1fa>
  31090. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  31091. 800d716: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  31092. 800d71a: f003 0328 and.w r3, r3, #40 @ 0x28
  31093. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  31094. 800d71e: 2b00 cmp r3, #0
  31095. 800d720: d054 beq.n 800d7cc <HAL_UART_IRQHandler+0x2a4>
  31096. {
  31097. /* Blocking error : transfer is aborted
  31098. Set the UART state ready to be able to start again the process,
  31099. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  31100. UART_EndRxTransfer(huart);
  31101. 800d722: 6878 ldr r0, [r7, #4]
  31102. 800d724: f001 fb08 bl 800ed38 <UART_EndRxTransfer>
  31103. /* Abort the UART DMA Rx channel if enabled */
  31104. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31105. 800d728: 687b ldr r3, [r7, #4]
  31106. 800d72a: 681b ldr r3, [r3, #0]
  31107. 800d72c: 689b ldr r3, [r3, #8]
  31108. 800d72e: f003 0340 and.w r3, r3, #64 @ 0x40
  31109. 800d732: 2b40 cmp r3, #64 @ 0x40
  31110. 800d734: d146 bne.n 800d7c4 <HAL_UART_IRQHandler+0x29c>
  31111. {
  31112. /* Disable the UART DMA Rx request if enabled */
  31113. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  31114. 800d736: 687b ldr r3, [r7, #4]
  31115. 800d738: 681b ldr r3, [r3, #0]
  31116. 800d73a: 3308 adds r3, #8
  31117. 800d73c: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  31118. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31119. 800d740: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  31120. 800d744: e853 3f00 ldrex r3, [r3]
  31121. 800d748: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  31122. return(result);
  31123. 800d74c: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  31124. 800d750: f023 0340 bic.w r3, r3, #64 @ 0x40
  31125. 800d754: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  31126. 800d758: 687b ldr r3, [r7, #4]
  31127. 800d75a: 681b ldr r3, [r3, #0]
  31128. 800d75c: 3308 adds r3, #8
  31129. 800d75e: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  31130. 800d762: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  31131. 800d766: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  31132. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31133. 800d76a: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  31134. 800d76e: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  31135. 800d772: e841 2300 strex r3, r2, [r1]
  31136. 800d776: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  31137. return(result);
  31138. 800d77a: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  31139. 800d77e: 2b00 cmp r3, #0
  31140. 800d780: d1d9 bne.n 800d736 <HAL_UART_IRQHandler+0x20e>
  31141. /* Abort the UART DMA Rx channel */
  31142. if (huart->hdmarx != NULL)
  31143. 800d782: 687b ldr r3, [r7, #4]
  31144. 800d784: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31145. 800d788: 2b00 cmp r3, #0
  31146. 800d78a: d017 beq.n 800d7bc <HAL_UART_IRQHandler+0x294>
  31147. {
  31148. /* Set the UART DMA Abort callback :
  31149. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  31150. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  31151. 800d78c: 687b ldr r3, [r7, #4]
  31152. 800d78e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31153. 800d792: 4a15 ldr r2, [pc, #84] @ (800d7e8 <HAL_UART_IRQHandler+0x2c0>)
  31154. 800d794: 651a str r2, [r3, #80] @ 0x50
  31155. /* Abort DMA RX */
  31156. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  31157. 800d796: 687b ldr r3, [r7, #4]
  31158. 800d798: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31159. 800d79c: 4618 mov r0, r3
  31160. 800d79e: f7f8 ff77 bl 8006690 <HAL_DMA_Abort_IT>
  31161. 800d7a2: 4603 mov r3, r0
  31162. 800d7a4: 2b00 cmp r3, #0
  31163. 800d7a6: d019 beq.n 800d7dc <HAL_UART_IRQHandler+0x2b4>
  31164. {
  31165. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  31166. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  31167. 800d7a8: 687b ldr r3, [r7, #4]
  31168. 800d7aa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31169. 800d7ae: 6d1b ldr r3, [r3, #80] @ 0x50
  31170. 800d7b0: 687a ldr r2, [r7, #4]
  31171. 800d7b2: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  31172. 800d7b6: 4610 mov r0, r2
  31173. 800d7b8: 4798 blx r3
  31174. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31175. 800d7ba: e00f b.n 800d7dc <HAL_UART_IRQHandler+0x2b4>
  31176. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31177. /*Call registered error callback*/
  31178. huart->ErrorCallback(huart);
  31179. #else
  31180. /*Call legacy weak error callback*/
  31181. HAL_UART_ErrorCallback(huart);
  31182. 800d7bc: 6878 ldr r0, [r7, #4]
  31183. 800d7be: f000 fa6d bl 800dc9c <HAL_UART_ErrorCallback>
  31184. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31185. 800d7c2: e00b b.n 800d7dc <HAL_UART_IRQHandler+0x2b4>
  31186. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31187. /*Call registered error callback*/
  31188. huart->ErrorCallback(huart);
  31189. #else
  31190. /*Call legacy weak error callback*/
  31191. HAL_UART_ErrorCallback(huart);
  31192. 800d7c4: 6878 ldr r0, [r7, #4]
  31193. 800d7c6: f000 fa69 bl 800dc9c <HAL_UART_ErrorCallback>
  31194. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31195. 800d7ca: e007 b.n 800d7dc <HAL_UART_IRQHandler+0x2b4>
  31196. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31197. /*Call registered error callback*/
  31198. huart->ErrorCallback(huart);
  31199. #else
  31200. /*Call legacy weak error callback*/
  31201. HAL_UART_ErrorCallback(huart);
  31202. 800d7cc: 6878 ldr r0, [r7, #4]
  31203. 800d7ce: f000 fa65 bl 800dc9c <HAL_UART_ErrorCallback>
  31204. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  31205. huart->ErrorCode = HAL_UART_ERROR_NONE;
  31206. 800d7d2: 687b ldr r3, [r7, #4]
  31207. 800d7d4: 2200 movs r2, #0
  31208. 800d7d6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  31209. }
  31210. }
  31211. return;
  31212. 800d7da: e253 b.n 800dc84 <HAL_UART_IRQHandler+0x75c>
  31213. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31214. 800d7dc: bf00 nop
  31215. return;
  31216. 800d7de: e251 b.n 800dc84 <HAL_UART_IRQHandler+0x75c>
  31217. 800d7e0: 10000001 .word 0x10000001
  31218. 800d7e4: 04000120 .word 0x04000120
  31219. 800d7e8: 0800ee05 .word 0x0800ee05
  31220. } /* End if some error occurs */
  31221. /* Check current reception Mode :
  31222. If Reception till IDLE event has been selected : */
  31223. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  31224. 800d7ec: 687b ldr r3, [r7, #4]
  31225. 800d7ee: 6edb ldr r3, [r3, #108] @ 0x6c
  31226. 800d7f0: 2b01 cmp r3, #1
  31227. 800d7f2: f040 81e7 bne.w 800dbc4 <HAL_UART_IRQHandler+0x69c>
  31228. && ((isrflags & USART_ISR_IDLE) != 0U)
  31229. 800d7f6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31230. 800d7fa: f003 0310 and.w r3, r3, #16
  31231. 800d7fe: 2b00 cmp r3, #0
  31232. 800d800: f000 81e0 beq.w 800dbc4 <HAL_UART_IRQHandler+0x69c>
  31233. && ((cr1its & USART_ISR_IDLE) != 0U))
  31234. 800d804: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31235. 800d808: f003 0310 and.w r3, r3, #16
  31236. 800d80c: 2b00 cmp r3, #0
  31237. 800d80e: f000 81d9 beq.w 800dbc4 <HAL_UART_IRQHandler+0x69c>
  31238. {
  31239. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  31240. 800d812: 687b ldr r3, [r7, #4]
  31241. 800d814: 681b ldr r3, [r3, #0]
  31242. 800d816: 2210 movs r2, #16
  31243. 800d818: 621a str r2, [r3, #32]
  31244. /* Check if DMA mode is enabled in UART */
  31245. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  31246. 800d81a: 687b ldr r3, [r7, #4]
  31247. 800d81c: 681b ldr r3, [r3, #0]
  31248. 800d81e: 689b ldr r3, [r3, #8]
  31249. 800d820: f003 0340 and.w r3, r3, #64 @ 0x40
  31250. 800d824: 2b40 cmp r3, #64 @ 0x40
  31251. 800d826: f040 8151 bne.w 800dacc <HAL_UART_IRQHandler+0x5a4>
  31252. {
  31253. /* DMA mode enabled */
  31254. /* Check received length : If all expected data are received, do nothing,
  31255. (DMA cplt callback will be called).
  31256. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  31257. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  31258. 800d82a: 687b ldr r3, [r7, #4]
  31259. 800d82c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31260. 800d830: 681b ldr r3, [r3, #0]
  31261. 800d832: 4a96 ldr r2, [pc, #600] @ (800da8c <HAL_UART_IRQHandler+0x564>)
  31262. 800d834: 4293 cmp r3, r2
  31263. 800d836: d068 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31264. 800d838: 687b ldr r3, [r7, #4]
  31265. 800d83a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31266. 800d83e: 681b ldr r3, [r3, #0]
  31267. 800d840: 4a93 ldr r2, [pc, #588] @ (800da90 <HAL_UART_IRQHandler+0x568>)
  31268. 800d842: 4293 cmp r3, r2
  31269. 800d844: d061 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31270. 800d846: 687b ldr r3, [r7, #4]
  31271. 800d848: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31272. 800d84c: 681b ldr r3, [r3, #0]
  31273. 800d84e: 4a91 ldr r2, [pc, #580] @ (800da94 <HAL_UART_IRQHandler+0x56c>)
  31274. 800d850: 4293 cmp r3, r2
  31275. 800d852: d05a beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31276. 800d854: 687b ldr r3, [r7, #4]
  31277. 800d856: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31278. 800d85a: 681b ldr r3, [r3, #0]
  31279. 800d85c: 4a8e ldr r2, [pc, #568] @ (800da98 <HAL_UART_IRQHandler+0x570>)
  31280. 800d85e: 4293 cmp r3, r2
  31281. 800d860: d053 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31282. 800d862: 687b ldr r3, [r7, #4]
  31283. 800d864: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31284. 800d868: 681b ldr r3, [r3, #0]
  31285. 800d86a: 4a8c ldr r2, [pc, #560] @ (800da9c <HAL_UART_IRQHandler+0x574>)
  31286. 800d86c: 4293 cmp r3, r2
  31287. 800d86e: d04c beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31288. 800d870: 687b ldr r3, [r7, #4]
  31289. 800d872: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31290. 800d876: 681b ldr r3, [r3, #0]
  31291. 800d878: 4a89 ldr r2, [pc, #548] @ (800daa0 <HAL_UART_IRQHandler+0x578>)
  31292. 800d87a: 4293 cmp r3, r2
  31293. 800d87c: d045 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31294. 800d87e: 687b ldr r3, [r7, #4]
  31295. 800d880: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31296. 800d884: 681b ldr r3, [r3, #0]
  31297. 800d886: 4a87 ldr r2, [pc, #540] @ (800daa4 <HAL_UART_IRQHandler+0x57c>)
  31298. 800d888: 4293 cmp r3, r2
  31299. 800d88a: d03e beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31300. 800d88c: 687b ldr r3, [r7, #4]
  31301. 800d88e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31302. 800d892: 681b ldr r3, [r3, #0]
  31303. 800d894: 4a84 ldr r2, [pc, #528] @ (800daa8 <HAL_UART_IRQHandler+0x580>)
  31304. 800d896: 4293 cmp r3, r2
  31305. 800d898: d037 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31306. 800d89a: 687b ldr r3, [r7, #4]
  31307. 800d89c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31308. 800d8a0: 681b ldr r3, [r3, #0]
  31309. 800d8a2: 4a82 ldr r2, [pc, #520] @ (800daac <HAL_UART_IRQHandler+0x584>)
  31310. 800d8a4: 4293 cmp r3, r2
  31311. 800d8a6: d030 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31312. 800d8a8: 687b ldr r3, [r7, #4]
  31313. 800d8aa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31314. 800d8ae: 681b ldr r3, [r3, #0]
  31315. 800d8b0: 4a7f ldr r2, [pc, #508] @ (800dab0 <HAL_UART_IRQHandler+0x588>)
  31316. 800d8b2: 4293 cmp r3, r2
  31317. 800d8b4: d029 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31318. 800d8b6: 687b ldr r3, [r7, #4]
  31319. 800d8b8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31320. 800d8bc: 681b ldr r3, [r3, #0]
  31321. 800d8be: 4a7d ldr r2, [pc, #500] @ (800dab4 <HAL_UART_IRQHandler+0x58c>)
  31322. 800d8c0: 4293 cmp r3, r2
  31323. 800d8c2: d022 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31324. 800d8c4: 687b ldr r3, [r7, #4]
  31325. 800d8c6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31326. 800d8ca: 681b ldr r3, [r3, #0]
  31327. 800d8cc: 4a7a ldr r2, [pc, #488] @ (800dab8 <HAL_UART_IRQHandler+0x590>)
  31328. 800d8ce: 4293 cmp r3, r2
  31329. 800d8d0: d01b beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31330. 800d8d2: 687b ldr r3, [r7, #4]
  31331. 800d8d4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31332. 800d8d8: 681b ldr r3, [r3, #0]
  31333. 800d8da: 4a78 ldr r2, [pc, #480] @ (800dabc <HAL_UART_IRQHandler+0x594>)
  31334. 800d8dc: 4293 cmp r3, r2
  31335. 800d8de: d014 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31336. 800d8e0: 687b ldr r3, [r7, #4]
  31337. 800d8e2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31338. 800d8e6: 681b ldr r3, [r3, #0]
  31339. 800d8e8: 4a75 ldr r2, [pc, #468] @ (800dac0 <HAL_UART_IRQHandler+0x598>)
  31340. 800d8ea: 4293 cmp r3, r2
  31341. 800d8ec: d00d beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31342. 800d8ee: 687b ldr r3, [r7, #4]
  31343. 800d8f0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31344. 800d8f4: 681b ldr r3, [r3, #0]
  31345. 800d8f6: 4a73 ldr r2, [pc, #460] @ (800dac4 <HAL_UART_IRQHandler+0x59c>)
  31346. 800d8f8: 4293 cmp r3, r2
  31347. 800d8fa: d006 beq.n 800d90a <HAL_UART_IRQHandler+0x3e2>
  31348. 800d8fc: 687b ldr r3, [r7, #4]
  31349. 800d8fe: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31350. 800d902: 681b ldr r3, [r3, #0]
  31351. 800d904: 4a70 ldr r2, [pc, #448] @ (800dac8 <HAL_UART_IRQHandler+0x5a0>)
  31352. 800d906: 4293 cmp r3, r2
  31353. 800d908: d106 bne.n 800d918 <HAL_UART_IRQHandler+0x3f0>
  31354. 800d90a: 687b ldr r3, [r7, #4]
  31355. 800d90c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31356. 800d910: 681b ldr r3, [r3, #0]
  31357. 800d912: 685b ldr r3, [r3, #4]
  31358. 800d914: b29b uxth r3, r3
  31359. 800d916: e005 b.n 800d924 <HAL_UART_IRQHandler+0x3fc>
  31360. 800d918: 687b ldr r3, [r7, #4]
  31361. 800d91a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31362. 800d91e: 681b ldr r3, [r3, #0]
  31363. 800d920: 685b ldr r3, [r3, #4]
  31364. 800d922: b29b uxth r3, r3
  31365. 800d924: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  31366. if ((nb_remaining_rx_data > 0U)
  31367. 800d928: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  31368. 800d92c: 2b00 cmp r3, #0
  31369. 800d92e: f000 81ab beq.w 800dc88 <HAL_UART_IRQHandler+0x760>
  31370. && (nb_remaining_rx_data < huart->RxXferSize))
  31371. 800d932: 687b ldr r3, [r7, #4]
  31372. 800d934: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  31373. 800d938: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  31374. 800d93c: 429a cmp r2, r3
  31375. 800d93e: f080 81a3 bcs.w 800dc88 <HAL_UART_IRQHandler+0x760>
  31376. {
  31377. /* Reception is not complete */
  31378. huart->RxXferCount = nb_remaining_rx_data;
  31379. 800d942: 687b ldr r3, [r7, #4]
  31380. 800d944: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  31381. 800d948: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  31382. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  31383. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  31384. 800d94c: 687b ldr r3, [r7, #4]
  31385. 800d94e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31386. 800d952: 69db ldr r3, [r3, #28]
  31387. 800d954: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31388. 800d958: f000 8087 beq.w 800da6a <HAL_UART_IRQHandler+0x542>
  31389. {
  31390. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  31391. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  31392. 800d95c: 687b ldr r3, [r7, #4]
  31393. 800d95e: 681b ldr r3, [r3, #0]
  31394. 800d960: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  31395. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31396. 800d964: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  31397. 800d968: e853 3f00 ldrex r3, [r3]
  31398. 800d96c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  31399. return(result);
  31400. 800d970: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  31401. 800d974: f423 7380 bic.w r3, r3, #256 @ 0x100
  31402. 800d978: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  31403. 800d97c: 687b ldr r3, [r7, #4]
  31404. 800d97e: 681b ldr r3, [r3, #0]
  31405. 800d980: 461a mov r2, r3
  31406. 800d982: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  31407. 800d986: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  31408. 800d98a: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  31409. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31410. 800d98e: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  31411. 800d992: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  31412. 800d996: e841 2300 strex r3, r2, [r1]
  31413. 800d99a: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  31414. return(result);
  31415. 800d99e: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  31416. 800d9a2: 2b00 cmp r3, #0
  31417. 800d9a4: d1da bne.n 800d95c <HAL_UART_IRQHandler+0x434>
  31418. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  31419. 800d9a6: 687b ldr r3, [r7, #4]
  31420. 800d9a8: 681b ldr r3, [r3, #0]
  31421. 800d9aa: 3308 adds r3, #8
  31422. 800d9ac: 677b str r3, [r7, #116] @ 0x74
  31423. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31424. 800d9ae: 6f7b ldr r3, [r7, #116] @ 0x74
  31425. 800d9b0: e853 3f00 ldrex r3, [r3]
  31426. 800d9b4: 673b str r3, [r7, #112] @ 0x70
  31427. return(result);
  31428. 800d9b6: 6f3b ldr r3, [r7, #112] @ 0x70
  31429. 800d9b8: f023 0301 bic.w r3, r3, #1
  31430. 800d9bc: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  31431. 800d9c0: 687b ldr r3, [r7, #4]
  31432. 800d9c2: 681b ldr r3, [r3, #0]
  31433. 800d9c4: 3308 adds r3, #8
  31434. 800d9c6: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  31435. 800d9ca: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  31436. 800d9ce: 67fb str r3, [r7, #124] @ 0x7c
  31437. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31438. 800d9d0: 6ff9 ldr r1, [r7, #124] @ 0x7c
  31439. 800d9d2: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  31440. 800d9d6: e841 2300 strex r3, r2, [r1]
  31441. 800d9da: 67bb str r3, [r7, #120] @ 0x78
  31442. return(result);
  31443. 800d9dc: 6fbb ldr r3, [r7, #120] @ 0x78
  31444. 800d9de: 2b00 cmp r3, #0
  31445. 800d9e0: d1e1 bne.n 800d9a6 <HAL_UART_IRQHandler+0x47e>
  31446. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  31447. in the UART CR3 register */
  31448. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  31449. 800d9e2: 687b ldr r3, [r7, #4]
  31450. 800d9e4: 681b ldr r3, [r3, #0]
  31451. 800d9e6: 3308 adds r3, #8
  31452. 800d9e8: 663b str r3, [r7, #96] @ 0x60
  31453. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31454. 800d9ea: 6e3b ldr r3, [r7, #96] @ 0x60
  31455. 800d9ec: e853 3f00 ldrex r3, [r3]
  31456. 800d9f0: 65fb str r3, [r7, #92] @ 0x5c
  31457. return(result);
  31458. 800d9f2: 6dfb ldr r3, [r7, #92] @ 0x5c
  31459. 800d9f4: f023 0340 bic.w r3, r3, #64 @ 0x40
  31460. 800d9f8: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  31461. 800d9fc: 687b ldr r3, [r7, #4]
  31462. 800d9fe: 681b ldr r3, [r3, #0]
  31463. 800da00: 3308 adds r3, #8
  31464. 800da02: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  31465. 800da06: 66fa str r2, [r7, #108] @ 0x6c
  31466. 800da08: 66bb str r3, [r7, #104] @ 0x68
  31467. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31468. 800da0a: 6eb9 ldr r1, [r7, #104] @ 0x68
  31469. 800da0c: 6efa ldr r2, [r7, #108] @ 0x6c
  31470. 800da0e: e841 2300 strex r3, r2, [r1]
  31471. 800da12: 667b str r3, [r7, #100] @ 0x64
  31472. return(result);
  31473. 800da14: 6e7b ldr r3, [r7, #100] @ 0x64
  31474. 800da16: 2b00 cmp r3, #0
  31475. 800da18: d1e3 bne.n 800d9e2 <HAL_UART_IRQHandler+0x4ba>
  31476. /* At end of Rx process, restore huart->RxState to Ready */
  31477. huart->RxState = HAL_UART_STATE_READY;
  31478. 800da1a: 687b ldr r3, [r7, #4]
  31479. 800da1c: 2220 movs r2, #32
  31480. 800da1e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  31481. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  31482. 800da22: 687b ldr r3, [r7, #4]
  31483. 800da24: 2200 movs r2, #0
  31484. 800da26: 66da str r2, [r3, #108] @ 0x6c
  31485. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  31486. 800da28: 687b ldr r3, [r7, #4]
  31487. 800da2a: 681b ldr r3, [r3, #0]
  31488. 800da2c: 64fb str r3, [r7, #76] @ 0x4c
  31489. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31490. 800da2e: 6cfb ldr r3, [r7, #76] @ 0x4c
  31491. 800da30: e853 3f00 ldrex r3, [r3]
  31492. 800da34: 64bb str r3, [r7, #72] @ 0x48
  31493. return(result);
  31494. 800da36: 6cbb ldr r3, [r7, #72] @ 0x48
  31495. 800da38: f023 0310 bic.w r3, r3, #16
  31496. 800da3c: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  31497. 800da40: 687b ldr r3, [r7, #4]
  31498. 800da42: 681b ldr r3, [r3, #0]
  31499. 800da44: 461a mov r2, r3
  31500. 800da46: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  31501. 800da4a: 65bb str r3, [r7, #88] @ 0x58
  31502. 800da4c: 657a str r2, [r7, #84] @ 0x54
  31503. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31504. 800da4e: 6d79 ldr r1, [r7, #84] @ 0x54
  31505. 800da50: 6dba ldr r2, [r7, #88] @ 0x58
  31506. 800da52: e841 2300 strex r3, r2, [r1]
  31507. 800da56: 653b str r3, [r7, #80] @ 0x50
  31508. return(result);
  31509. 800da58: 6d3b ldr r3, [r7, #80] @ 0x50
  31510. 800da5a: 2b00 cmp r3, #0
  31511. 800da5c: d1e4 bne.n 800da28 <HAL_UART_IRQHandler+0x500>
  31512. /* Last bytes received, so no need as the abort is immediate */
  31513. (void)HAL_DMA_Abort(huart->hdmarx);
  31514. 800da5e: 687b ldr r3, [r7, #4]
  31515. 800da60: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31516. 800da64: 4618 mov r0, r3
  31517. 800da66: f7f8 faf5 bl 8006054 <HAL_DMA_Abort>
  31518. }
  31519. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  31520. In this case, Rx Event type is Idle Event */
  31521. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  31522. 800da6a: 687b ldr r3, [r7, #4]
  31523. 800da6c: 2202 movs r2, #2
  31524. 800da6e: 671a str r2, [r3, #112] @ 0x70
  31525. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31526. /*Call registered Rx Event callback*/
  31527. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  31528. #else
  31529. /*Call legacy weak Rx Event callback*/
  31530. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  31531. 800da70: 687b ldr r3, [r7, #4]
  31532. 800da72: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  31533. 800da76: 687b ldr r3, [r7, #4]
  31534. 800da78: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  31535. 800da7c: b29b uxth r3, r3
  31536. 800da7e: 1ad3 subs r3, r2, r3
  31537. 800da80: b29b uxth r3, r3
  31538. 800da82: 4619 mov r1, r3
  31539. 800da84: 6878 ldr r0, [r7, #4]
  31540. 800da86: f7f6 fba1 bl 80041cc <HAL_UARTEx_RxEventCallback>
  31541. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  31542. }
  31543. return;
  31544. 800da8a: e0fd b.n 800dc88 <HAL_UART_IRQHandler+0x760>
  31545. 800da8c: 40020010 .word 0x40020010
  31546. 800da90: 40020028 .word 0x40020028
  31547. 800da94: 40020040 .word 0x40020040
  31548. 800da98: 40020058 .word 0x40020058
  31549. 800da9c: 40020070 .word 0x40020070
  31550. 800daa0: 40020088 .word 0x40020088
  31551. 800daa4: 400200a0 .word 0x400200a0
  31552. 800daa8: 400200b8 .word 0x400200b8
  31553. 800daac: 40020410 .word 0x40020410
  31554. 800dab0: 40020428 .word 0x40020428
  31555. 800dab4: 40020440 .word 0x40020440
  31556. 800dab8: 40020458 .word 0x40020458
  31557. 800dabc: 40020470 .word 0x40020470
  31558. 800dac0: 40020488 .word 0x40020488
  31559. 800dac4: 400204a0 .word 0x400204a0
  31560. 800dac8: 400204b8 .word 0x400204b8
  31561. else
  31562. {
  31563. /* DMA mode not enabled */
  31564. /* Check received length : If all expected data are received, do nothing.
  31565. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  31566. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  31567. 800dacc: 687b ldr r3, [r7, #4]
  31568. 800dace: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  31569. 800dad2: 687b ldr r3, [r7, #4]
  31570. 800dad4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  31571. 800dad8: b29b uxth r3, r3
  31572. 800dada: 1ad3 subs r3, r2, r3
  31573. 800dadc: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  31574. if ((huart->RxXferCount > 0U)
  31575. 800dae0: 687b ldr r3, [r7, #4]
  31576. 800dae2: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  31577. 800dae6: b29b uxth r3, r3
  31578. 800dae8: 2b00 cmp r3, #0
  31579. 800daea: f000 80cf beq.w 800dc8c <HAL_UART_IRQHandler+0x764>
  31580. && (nb_rx_data > 0U))
  31581. 800daee: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  31582. 800daf2: 2b00 cmp r3, #0
  31583. 800daf4: f000 80ca beq.w 800dc8c <HAL_UART_IRQHandler+0x764>
  31584. {
  31585. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  31586. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  31587. 800daf8: 687b ldr r3, [r7, #4]
  31588. 800dafa: 681b ldr r3, [r3, #0]
  31589. 800dafc: 63bb str r3, [r7, #56] @ 0x38
  31590. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31591. 800dafe: 6bbb ldr r3, [r7, #56] @ 0x38
  31592. 800db00: e853 3f00 ldrex r3, [r3]
  31593. 800db04: 637b str r3, [r7, #52] @ 0x34
  31594. return(result);
  31595. 800db06: 6b7b ldr r3, [r7, #52] @ 0x34
  31596. 800db08: f423 7390 bic.w r3, r3, #288 @ 0x120
  31597. 800db0c: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  31598. 800db10: 687b ldr r3, [r7, #4]
  31599. 800db12: 681b ldr r3, [r3, #0]
  31600. 800db14: 461a mov r2, r3
  31601. 800db16: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  31602. 800db1a: 647b str r3, [r7, #68] @ 0x44
  31603. 800db1c: 643a str r2, [r7, #64] @ 0x40
  31604. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31605. 800db1e: 6c39 ldr r1, [r7, #64] @ 0x40
  31606. 800db20: 6c7a ldr r2, [r7, #68] @ 0x44
  31607. 800db22: e841 2300 strex r3, r2, [r1]
  31608. 800db26: 63fb str r3, [r7, #60] @ 0x3c
  31609. return(result);
  31610. 800db28: 6bfb ldr r3, [r7, #60] @ 0x3c
  31611. 800db2a: 2b00 cmp r3, #0
  31612. 800db2c: d1e4 bne.n 800daf8 <HAL_UART_IRQHandler+0x5d0>
  31613. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  31614. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  31615. 800db2e: 687b ldr r3, [r7, #4]
  31616. 800db30: 681b ldr r3, [r3, #0]
  31617. 800db32: 3308 adds r3, #8
  31618. 800db34: 627b str r3, [r7, #36] @ 0x24
  31619. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31620. 800db36: 6a7b ldr r3, [r7, #36] @ 0x24
  31621. 800db38: e853 3f00 ldrex r3, [r3]
  31622. 800db3c: 623b str r3, [r7, #32]
  31623. return(result);
  31624. 800db3e: 6a3a ldr r2, [r7, #32]
  31625. 800db40: 4b55 ldr r3, [pc, #340] @ (800dc98 <HAL_UART_IRQHandler+0x770>)
  31626. 800db42: 4013 ands r3, r2
  31627. 800db44: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  31628. 800db48: 687b ldr r3, [r7, #4]
  31629. 800db4a: 681b ldr r3, [r3, #0]
  31630. 800db4c: 3308 adds r3, #8
  31631. 800db4e: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  31632. 800db52: 633a str r2, [r7, #48] @ 0x30
  31633. 800db54: 62fb str r3, [r7, #44] @ 0x2c
  31634. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31635. 800db56: 6af9 ldr r1, [r7, #44] @ 0x2c
  31636. 800db58: 6b3a ldr r2, [r7, #48] @ 0x30
  31637. 800db5a: e841 2300 strex r3, r2, [r1]
  31638. 800db5e: 62bb str r3, [r7, #40] @ 0x28
  31639. return(result);
  31640. 800db60: 6abb ldr r3, [r7, #40] @ 0x28
  31641. 800db62: 2b00 cmp r3, #0
  31642. 800db64: d1e3 bne.n 800db2e <HAL_UART_IRQHandler+0x606>
  31643. /* Rx process is completed, restore huart->RxState to Ready */
  31644. huart->RxState = HAL_UART_STATE_READY;
  31645. 800db66: 687b ldr r3, [r7, #4]
  31646. 800db68: 2220 movs r2, #32
  31647. 800db6a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  31648. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  31649. 800db6e: 687b ldr r3, [r7, #4]
  31650. 800db70: 2200 movs r2, #0
  31651. 800db72: 66da str r2, [r3, #108] @ 0x6c
  31652. /* Clear RxISR function pointer */
  31653. huart->RxISR = NULL;
  31654. 800db74: 687b ldr r3, [r7, #4]
  31655. 800db76: 2200 movs r2, #0
  31656. 800db78: 675a str r2, [r3, #116] @ 0x74
  31657. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  31658. 800db7a: 687b ldr r3, [r7, #4]
  31659. 800db7c: 681b ldr r3, [r3, #0]
  31660. 800db7e: 613b str r3, [r7, #16]
  31661. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  31662. 800db80: 693b ldr r3, [r7, #16]
  31663. 800db82: e853 3f00 ldrex r3, [r3]
  31664. 800db86: 60fb str r3, [r7, #12]
  31665. return(result);
  31666. 800db88: 68fb ldr r3, [r7, #12]
  31667. 800db8a: f023 0310 bic.w r3, r3, #16
  31668. 800db8e: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  31669. 800db92: 687b ldr r3, [r7, #4]
  31670. 800db94: 681b ldr r3, [r3, #0]
  31671. 800db96: 461a mov r2, r3
  31672. 800db98: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  31673. 800db9c: 61fb str r3, [r7, #28]
  31674. 800db9e: 61ba str r2, [r7, #24]
  31675. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  31676. 800dba0: 69b9 ldr r1, [r7, #24]
  31677. 800dba2: 69fa ldr r2, [r7, #28]
  31678. 800dba4: e841 2300 strex r3, r2, [r1]
  31679. 800dba8: 617b str r3, [r7, #20]
  31680. return(result);
  31681. 800dbaa: 697b ldr r3, [r7, #20]
  31682. 800dbac: 2b00 cmp r3, #0
  31683. 800dbae: d1e4 bne.n 800db7a <HAL_UART_IRQHandler+0x652>
  31684. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  31685. In this case, Rx Event type is Idle Event */
  31686. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  31687. 800dbb0: 687b ldr r3, [r7, #4]
  31688. 800dbb2: 2202 movs r2, #2
  31689. 800dbb4: 671a str r2, [r3, #112] @ 0x70
  31690. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31691. /*Call registered Rx complete callback*/
  31692. huart->RxEventCallback(huart, nb_rx_data);
  31693. #else
  31694. /*Call legacy weak Rx Event callback*/
  31695. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  31696. 800dbb6: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  31697. 800dbba: 4619 mov r1, r3
  31698. 800dbbc: 6878 ldr r0, [r7, #4]
  31699. 800dbbe: f7f6 fb05 bl 80041cc <HAL_UARTEx_RxEventCallback>
  31700. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  31701. }
  31702. return;
  31703. 800dbc2: e063 b.n 800dc8c <HAL_UART_IRQHandler+0x764>
  31704. }
  31705. }
  31706. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  31707. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  31708. 800dbc4: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31709. 800dbc8: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  31710. 800dbcc: 2b00 cmp r3, #0
  31711. 800dbce: d00e beq.n 800dbee <HAL_UART_IRQHandler+0x6c6>
  31712. 800dbd0: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31713. 800dbd4: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  31714. 800dbd8: 2b00 cmp r3, #0
  31715. 800dbda: d008 beq.n 800dbee <HAL_UART_IRQHandler+0x6c6>
  31716. {
  31717. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  31718. 800dbdc: 687b ldr r3, [r7, #4]
  31719. 800dbde: 681b ldr r3, [r3, #0]
  31720. 800dbe0: f44f 1280 mov.w r2, #1048576 @ 0x100000
  31721. 800dbe4: 621a str r2, [r3, #32]
  31722. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31723. /* Call registered Wakeup Callback */
  31724. huart->WakeupCallback(huart);
  31725. #else
  31726. /* Call legacy weak Wakeup Callback */
  31727. HAL_UARTEx_WakeupCallback(huart);
  31728. 800dbe6: 6878 ldr r0, [r7, #4]
  31729. 800dbe8: f002 f80c bl 800fc04 <HAL_UARTEx_WakeupCallback>
  31730. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  31731. return;
  31732. 800dbec: e051 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31733. }
  31734. /* UART in mode Transmitter ------------------------------------------------*/
  31735. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  31736. 800dbee: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31737. 800dbf2: f003 0380 and.w r3, r3, #128 @ 0x80
  31738. 800dbf6: 2b00 cmp r3, #0
  31739. 800dbf8: d014 beq.n 800dc24 <HAL_UART_IRQHandler+0x6fc>
  31740. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  31741. 800dbfa: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31742. 800dbfe: f003 0380 and.w r3, r3, #128 @ 0x80
  31743. 800dc02: 2b00 cmp r3, #0
  31744. 800dc04: d105 bne.n 800dc12 <HAL_UART_IRQHandler+0x6ea>
  31745. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  31746. 800dc06: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  31747. 800dc0a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  31748. 800dc0e: 2b00 cmp r3, #0
  31749. 800dc10: d008 beq.n 800dc24 <HAL_UART_IRQHandler+0x6fc>
  31750. {
  31751. if (huart->TxISR != NULL)
  31752. 800dc12: 687b ldr r3, [r7, #4]
  31753. 800dc14: 6f9b ldr r3, [r3, #120] @ 0x78
  31754. 800dc16: 2b00 cmp r3, #0
  31755. 800dc18: d03a beq.n 800dc90 <HAL_UART_IRQHandler+0x768>
  31756. {
  31757. huart->TxISR(huart);
  31758. 800dc1a: 687b ldr r3, [r7, #4]
  31759. 800dc1c: 6f9b ldr r3, [r3, #120] @ 0x78
  31760. 800dc1e: 6878 ldr r0, [r7, #4]
  31761. 800dc20: 4798 blx r3
  31762. }
  31763. return;
  31764. 800dc22: e035 b.n 800dc90 <HAL_UART_IRQHandler+0x768>
  31765. }
  31766. /* UART in mode Transmitter (transmission end) -----------------------------*/
  31767. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  31768. 800dc24: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31769. 800dc28: f003 0340 and.w r3, r3, #64 @ 0x40
  31770. 800dc2c: 2b00 cmp r3, #0
  31771. 800dc2e: d009 beq.n 800dc44 <HAL_UART_IRQHandler+0x71c>
  31772. 800dc30: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31773. 800dc34: f003 0340 and.w r3, r3, #64 @ 0x40
  31774. 800dc38: 2b00 cmp r3, #0
  31775. 800dc3a: d003 beq.n 800dc44 <HAL_UART_IRQHandler+0x71c>
  31776. {
  31777. UART_EndTransmit_IT(huart);
  31778. 800dc3c: 6878 ldr r0, [r7, #4]
  31779. 800dc3e: f001 fa99 bl 800f174 <UART_EndTransmit_IT>
  31780. return;
  31781. 800dc42: e026 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31782. }
  31783. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  31784. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  31785. 800dc44: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31786. 800dc48: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  31787. 800dc4c: 2b00 cmp r3, #0
  31788. 800dc4e: d009 beq.n 800dc64 <HAL_UART_IRQHandler+0x73c>
  31789. 800dc50: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31790. 800dc54: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  31791. 800dc58: 2b00 cmp r3, #0
  31792. 800dc5a: d003 beq.n 800dc64 <HAL_UART_IRQHandler+0x73c>
  31793. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31794. /* Call registered Tx Fifo Empty Callback */
  31795. huart->TxFifoEmptyCallback(huart);
  31796. #else
  31797. /* Call legacy weak Tx Fifo Empty Callback */
  31798. HAL_UARTEx_TxFifoEmptyCallback(huart);
  31799. 800dc5c: 6878 ldr r0, [r7, #4]
  31800. 800dc5e: f001 ffe5 bl 800fc2c <HAL_UARTEx_TxFifoEmptyCallback>
  31801. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  31802. return;
  31803. 800dc62: e016 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31804. }
  31805. /* UART RX Fifo Full occurred ----------------------------------------------*/
  31806. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  31807. 800dc64: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  31808. 800dc68: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  31809. 800dc6c: 2b00 cmp r3, #0
  31810. 800dc6e: d010 beq.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31811. 800dc70: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  31812. 800dc74: 2b00 cmp r3, #0
  31813. 800dc76: da0c bge.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31814. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  31815. /* Call registered Rx Fifo Full Callback */
  31816. huart->RxFifoFullCallback(huart);
  31817. #else
  31818. /* Call legacy weak Rx Fifo Full Callback */
  31819. HAL_UARTEx_RxFifoFullCallback(huart);
  31820. 800dc78: 6878 ldr r0, [r7, #4]
  31821. 800dc7a: f001 ffcd bl 800fc18 <HAL_UARTEx_RxFifoFullCallback>
  31822. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  31823. return;
  31824. 800dc7e: e008 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31825. return;
  31826. 800dc80: bf00 nop
  31827. 800dc82: e006 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31828. return;
  31829. 800dc84: bf00 nop
  31830. 800dc86: e004 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31831. return;
  31832. 800dc88: bf00 nop
  31833. 800dc8a: e002 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31834. return;
  31835. 800dc8c: bf00 nop
  31836. 800dc8e: e000 b.n 800dc92 <HAL_UART_IRQHandler+0x76a>
  31837. return;
  31838. 800dc90: bf00 nop
  31839. }
  31840. }
  31841. 800dc92: 37e8 adds r7, #232 @ 0xe8
  31842. 800dc94: 46bd mov sp, r7
  31843. 800dc96: bd80 pop {r7, pc}
  31844. 800dc98: effffffe .word 0xeffffffe
  31845. 0800dc9c <HAL_UART_ErrorCallback>:
  31846. * @brief UART error callback.
  31847. * @param huart UART handle.
  31848. * @retval None
  31849. */
  31850. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  31851. {
  31852. 800dc9c: b480 push {r7}
  31853. 800dc9e: b083 sub sp, #12
  31854. 800dca0: af00 add r7, sp, #0
  31855. 800dca2: 6078 str r0, [r7, #4]
  31856. UNUSED(huart);
  31857. /* NOTE : This function should not be modified, when the callback is needed,
  31858. the HAL_UART_ErrorCallback can be implemented in the user file.
  31859. */
  31860. }
  31861. 800dca4: bf00 nop
  31862. 800dca6: 370c adds r7, #12
  31863. 800dca8: 46bd mov sp, r7
  31864. 800dcaa: f85d 7b04 ldr.w r7, [sp], #4
  31865. 800dcae: 4770 bx lr
  31866. 0800dcb0 <UART_SetConfig>:
  31867. * @brief Configure the UART peripheral.
  31868. * @param huart UART handle.
  31869. * @retval HAL status
  31870. */
  31871. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  31872. {
  31873. 800dcb0: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  31874. 800dcb4: b092 sub sp, #72 @ 0x48
  31875. 800dcb6: af00 add r7, sp, #0
  31876. 800dcb8: 6178 str r0, [r7, #20]
  31877. uint32_t tmpreg;
  31878. uint16_t brrtemp;
  31879. UART_ClockSourceTypeDef clocksource;
  31880. uint32_t usartdiv;
  31881. HAL_StatusTypeDef ret = HAL_OK;
  31882. 800dcba: 2300 movs r3, #0
  31883. 800dcbc: f887 3042 strb.w r3, [r7, #66] @ 0x42
  31884. * the UART Word Length, Parity, Mode and oversampling:
  31885. * set the M bits according to huart->Init.WordLength value
  31886. * set PCE and PS bits according to huart->Init.Parity value
  31887. * set TE and RE bits according to huart->Init.Mode value
  31888. * set OVER8 bit according to huart->Init.OverSampling value */
  31889. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  31890. 800dcc0: 697b ldr r3, [r7, #20]
  31891. 800dcc2: 689a ldr r2, [r3, #8]
  31892. 800dcc4: 697b ldr r3, [r7, #20]
  31893. 800dcc6: 691b ldr r3, [r3, #16]
  31894. 800dcc8: 431a orrs r2, r3
  31895. 800dcca: 697b ldr r3, [r7, #20]
  31896. 800dccc: 695b ldr r3, [r3, #20]
  31897. 800dcce: 431a orrs r2, r3
  31898. 800dcd0: 697b ldr r3, [r7, #20]
  31899. 800dcd2: 69db ldr r3, [r3, #28]
  31900. 800dcd4: 4313 orrs r3, r2
  31901. 800dcd6: 647b str r3, [r7, #68] @ 0x44
  31902. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  31903. 800dcd8: 697b ldr r3, [r7, #20]
  31904. 800dcda: 681b ldr r3, [r3, #0]
  31905. 800dcdc: 681a ldr r2, [r3, #0]
  31906. 800dcde: 4bbe ldr r3, [pc, #760] @ (800dfd8 <UART_SetConfig+0x328>)
  31907. 800dce0: 4013 ands r3, r2
  31908. 800dce2: 697a ldr r2, [r7, #20]
  31909. 800dce4: 6812 ldr r2, [r2, #0]
  31910. 800dce6: 6c79 ldr r1, [r7, #68] @ 0x44
  31911. 800dce8: 430b orrs r3, r1
  31912. 800dcea: 6013 str r3, [r2, #0]
  31913. /*-------------------------- USART CR2 Configuration -----------------------*/
  31914. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  31915. * to huart->Init.StopBits value */
  31916. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  31917. 800dcec: 697b ldr r3, [r7, #20]
  31918. 800dcee: 681b ldr r3, [r3, #0]
  31919. 800dcf0: 685b ldr r3, [r3, #4]
  31920. 800dcf2: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  31921. 800dcf6: 697b ldr r3, [r7, #20]
  31922. 800dcf8: 68da ldr r2, [r3, #12]
  31923. 800dcfa: 697b ldr r3, [r7, #20]
  31924. 800dcfc: 681b ldr r3, [r3, #0]
  31925. 800dcfe: 430a orrs r2, r1
  31926. 800dd00: 605a str r2, [r3, #4]
  31927. /* Configure
  31928. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  31929. * to huart->Init.HwFlowCtl value
  31930. * - one-bit sampling method versus three samples' majority rule according
  31931. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  31932. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  31933. 800dd02: 697b ldr r3, [r7, #20]
  31934. 800dd04: 699b ldr r3, [r3, #24]
  31935. 800dd06: 647b str r3, [r7, #68] @ 0x44
  31936. if (!(UART_INSTANCE_LOWPOWER(huart)))
  31937. 800dd08: 697b ldr r3, [r7, #20]
  31938. 800dd0a: 681b ldr r3, [r3, #0]
  31939. 800dd0c: 4ab3 ldr r2, [pc, #716] @ (800dfdc <UART_SetConfig+0x32c>)
  31940. 800dd0e: 4293 cmp r3, r2
  31941. 800dd10: d004 beq.n 800dd1c <UART_SetConfig+0x6c>
  31942. {
  31943. tmpreg |= huart->Init.OneBitSampling;
  31944. 800dd12: 697b ldr r3, [r7, #20]
  31945. 800dd14: 6a1b ldr r3, [r3, #32]
  31946. 800dd16: 6c7a ldr r2, [r7, #68] @ 0x44
  31947. 800dd18: 4313 orrs r3, r2
  31948. 800dd1a: 647b str r3, [r7, #68] @ 0x44
  31949. }
  31950. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  31951. 800dd1c: 697b ldr r3, [r7, #20]
  31952. 800dd1e: 681b ldr r3, [r3, #0]
  31953. 800dd20: 689a ldr r2, [r3, #8]
  31954. 800dd22: 4baf ldr r3, [pc, #700] @ (800dfe0 <UART_SetConfig+0x330>)
  31955. 800dd24: 4013 ands r3, r2
  31956. 800dd26: 697a ldr r2, [r7, #20]
  31957. 800dd28: 6812 ldr r2, [r2, #0]
  31958. 800dd2a: 6c79 ldr r1, [r7, #68] @ 0x44
  31959. 800dd2c: 430b orrs r3, r1
  31960. 800dd2e: 6093 str r3, [r2, #8]
  31961. /*-------------------------- USART PRESC Configuration -----------------------*/
  31962. /* Configure
  31963. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  31964. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  31965. 800dd30: 697b ldr r3, [r7, #20]
  31966. 800dd32: 681b ldr r3, [r3, #0]
  31967. 800dd34: 6adb ldr r3, [r3, #44] @ 0x2c
  31968. 800dd36: f023 010f bic.w r1, r3, #15
  31969. 800dd3a: 697b ldr r3, [r7, #20]
  31970. 800dd3c: 6a5a ldr r2, [r3, #36] @ 0x24
  31971. 800dd3e: 697b ldr r3, [r7, #20]
  31972. 800dd40: 681b ldr r3, [r3, #0]
  31973. 800dd42: 430a orrs r2, r1
  31974. 800dd44: 62da str r2, [r3, #44] @ 0x2c
  31975. /*-------------------------- USART BRR Configuration -----------------------*/
  31976. UART_GETCLOCKSOURCE(huart, clocksource);
  31977. 800dd46: 697b ldr r3, [r7, #20]
  31978. 800dd48: 681b ldr r3, [r3, #0]
  31979. 800dd4a: 4aa6 ldr r2, [pc, #664] @ (800dfe4 <UART_SetConfig+0x334>)
  31980. 800dd4c: 4293 cmp r3, r2
  31981. 800dd4e: d177 bne.n 800de40 <UART_SetConfig+0x190>
  31982. 800dd50: 4ba5 ldr r3, [pc, #660] @ (800dfe8 <UART_SetConfig+0x338>)
  31983. 800dd52: 6d5b ldr r3, [r3, #84] @ 0x54
  31984. 800dd54: f003 0338 and.w r3, r3, #56 @ 0x38
  31985. 800dd58: 2b28 cmp r3, #40 @ 0x28
  31986. 800dd5a: d86d bhi.n 800de38 <UART_SetConfig+0x188>
  31987. 800dd5c: a201 add r2, pc, #4 @ (adr r2, 800dd64 <UART_SetConfig+0xb4>)
  31988. 800dd5e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31989. 800dd62: bf00 nop
  31990. 800dd64: 0800de09 .word 0x0800de09
  31991. 800dd68: 0800de39 .word 0x0800de39
  31992. 800dd6c: 0800de39 .word 0x0800de39
  31993. 800dd70: 0800de39 .word 0x0800de39
  31994. 800dd74: 0800de39 .word 0x0800de39
  31995. 800dd78: 0800de39 .word 0x0800de39
  31996. 800dd7c: 0800de39 .word 0x0800de39
  31997. 800dd80: 0800de39 .word 0x0800de39
  31998. 800dd84: 0800de11 .word 0x0800de11
  31999. 800dd88: 0800de39 .word 0x0800de39
  32000. 800dd8c: 0800de39 .word 0x0800de39
  32001. 800dd90: 0800de39 .word 0x0800de39
  32002. 800dd94: 0800de39 .word 0x0800de39
  32003. 800dd98: 0800de39 .word 0x0800de39
  32004. 800dd9c: 0800de39 .word 0x0800de39
  32005. 800dda0: 0800de39 .word 0x0800de39
  32006. 800dda4: 0800de19 .word 0x0800de19
  32007. 800dda8: 0800de39 .word 0x0800de39
  32008. 800ddac: 0800de39 .word 0x0800de39
  32009. 800ddb0: 0800de39 .word 0x0800de39
  32010. 800ddb4: 0800de39 .word 0x0800de39
  32011. 800ddb8: 0800de39 .word 0x0800de39
  32012. 800ddbc: 0800de39 .word 0x0800de39
  32013. 800ddc0: 0800de39 .word 0x0800de39
  32014. 800ddc4: 0800de21 .word 0x0800de21
  32015. 800ddc8: 0800de39 .word 0x0800de39
  32016. 800ddcc: 0800de39 .word 0x0800de39
  32017. 800ddd0: 0800de39 .word 0x0800de39
  32018. 800ddd4: 0800de39 .word 0x0800de39
  32019. 800ddd8: 0800de39 .word 0x0800de39
  32020. 800dddc: 0800de39 .word 0x0800de39
  32021. 800dde0: 0800de39 .word 0x0800de39
  32022. 800dde4: 0800de29 .word 0x0800de29
  32023. 800dde8: 0800de39 .word 0x0800de39
  32024. 800ddec: 0800de39 .word 0x0800de39
  32025. 800ddf0: 0800de39 .word 0x0800de39
  32026. 800ddf4: 0800de39 .word 0x0800de39
  32027. 800ddf8: 0800de39 .word 0x0800de39
  32028. 800ddfc: 0800de39 .word 0x0800de39
  32029. 800de00: 0800de39 .word 0x0800de39
  32030. 800de04: 0800de31 .word 0x0800de31
  32031. 800de08: 2301 movs r3, #1
  32032. 800de0a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32033. 800de0e: e222 b.n 800e256 <UART_SetConfig+0x5a6>
  32034. 800de10: 2304 movs r3, #4
  32035. 800de12: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32036. 800de16: e21e b.n 800e256 <UART_SetConfig+0x5a6>
  32037. 800de18: 2308 movs r3, #8
  32038. 800de1a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32039. 800de1e: e21a b.n 800e256 <UART_SetConfig+0x5a6>
  32040. 800de20: 2310 movs r3, #16
  32041. 800de22: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32042. 800de26: e216 b.n 800e256 <UART_SetConfig+0x5a6>
  32043. 800de28: 2320 movs r3, #32
  32044. 800de2a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32045. 800de2e: e212 b.n 800e256 <UART_SetConfig+0x5a6>
  32046. 800de30: 2340 movs r3, #64 @ 0x40
  32047. 800de32: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32048. 800de36: e20e b.n 800e256 <UART_SetConfig+0x5a6>
  32049. 800de38: 2380 movs r3, #128 @ 0x80
  32050. 800de3a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32051. 800de3e: e20a b.n 800e256 <UART_SetConfig+0x5a6>
  32052. 800de40: 697b ldr r3, [r7, #20]
  32053. 800de42: 681b ldr r3, [r3, #0]
  32054. 800de44: 4a69 ldr r2, [pc, #420] @ (800dfec <UART_SetConfig+0x33c>)
  32055. 800de46: 4293 cmp r3, r2
  32056. 800de48: d130 bne.n 800deac <UART_SetConfig+0x1fc>
  32057. 800de4a: 4b67 ldr r3, [pc, #412] @ (800dfe8 <UART_SetConfig+0x338>)
  32058. 800de4c: 6d5b ldr r3, [r3, #84] @ 0x54
  32059. 800de4e: f003 0307 and.w r3, r3, #7
  32060. 800de52: 2b05 cmp r3, #5
  32061. 800de54: d826 bhi.n 800dea4 <UART_SetConfig+0x1f4>
  32062. 800de56: a201 add r2, pc, #4 @ (adr r2, 800de5c <UART_SetConfig+0x1ac>)
  32063. 800de58: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32064. 800de5c: 0800de75 .word 0x0800de75
  32065. 800de60: 0800de7d .word 0x0800de7d
  32066. 800de64: 0800de85 .word 0x0800de85
  32067. 800de68: 0800de8d .word 0x0800de8d
  32068. 800de6c: 0800de95 .word 0x0800de95
  32069. 800de70: 0800de9d .word 0x0800de9d
  32070. 800de74: 2300 movs r3, #0
  32071. 800de76: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32072. 800de7a: e1ec b.n 800e256 <UART_SetConfig+0x5a6>
  32073. 800de7c: 2304 movs r3, #4
  32074. 800de7e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32075. 800de82: e1e8 b.n 800e256 <UART_SetConfig+0x5a6>
  32076. 800de84: 2308 movs r3, #8
  32077. 800de86: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32078. 800de8a: e1e4 b.n 800e256 <UART_SetConfig+0x5a6>
  32079. 800de8c: 2310 movs r3, #16
  32080. 800de8e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32081. 800de92: e1e0 b.n 800e256 <UART_SetConfig+0x5a6>
  32082. 800de94: 2320 movs r3, #32
  32083. 800de96: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32084. 800de9a: e1dc b.n 800e256 <UART_SetConfig+0x5a6>
  32085. 800de9c: 2340 movs r3, #64 @ 0x40
  32086. 800de9e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32087. 800dea2: e1d8 b.n 800e256 <UART_SetConfig+0x5a6>
  32088. 800dea4: 2380 movs r3, #128 @ 0x80
  32089. 800dea6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32090. 800deaa: e1d4 b.n 800e256 <UART_SetConfig+0x5a6>
  32091. 800deac: 697b ldr r3, [r7, #20]
  32092. 800deae: 681b ldr r3, [r3, #0]
  32093. 800deb0: 4a4f ldr r2, [pc, #316] @ (800dff0 <UART_SetConfig+0x340>)
  32094. 800deb2: 4293 cmp r3, r2
  32095. 800deb4: d130 bne.n 800df18 <UART_SetConfig+0x268>
  32096. 800deb6: 4b4c ldr r3, [pc, #304] @ (800dfe8 <UART_SetConfig+0x338>)
  32097. 800deb8: 6d5b ldr r3, [r3, #84] @ 0x54
  32098. 800deba: f003 0307 and.w r3, r3, #7
  32099. 800debe: 2b05 cmp r3, #5
  32100. 800dec0: d826 bhi.n 800df10 <UART_SetConfig+0x260>
  32101. 800dec2: a201 add r2, pc, #4 @ (adr r2, 800dec8 <UART_SetConfig+0x218>)
  32102. 800dec4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32103. 800dec8: 0800dee1 .word 0x0800dee1
  32104. 800decc: 0800dee9 .word 0x0800dee9
  32105. 800ded0: 0800def1 .word 0x0800def1
  32106. 800ded4: 0800def9 .word 0x0800def9
  32107. 800ded8: 0800df01 .word 0x0800df01
  32108. 800dedc: 0800df09 .word 0x0800df09
  32109. 800dee0: 2300 movs r3, #0
  32110. 800dee2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32111. 800dee6: e1b6 b.n 800e256 <UART_SetConfig+0x5a6>
  32112. 800dee8: 2304 movs r3, #4
  32113. 800deea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32114. 800deee: e1b2 b.n 800e256 <UART_SetConfig+0x5a6>
  32115. 800def0: 2308 movs r3, #8
  32116. 800def2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32117. 800def6: e1ae b.n 800e256 <UART_SetConfig+0x5a6>
  32118. 800def8: 2310 movs r3, #16
  32119. 800defa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32120. 800defe: e1aa b.n 800e256 <UART_SetConfig+0x5a6>
  32121. 800df00: 2320 movs r3, #32
  32122. 800df02: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32123. 800df06: e1a6 b.n 800e256 <UART_SetConfig+0x5a6>
  32124. 800df08: 2340 movs r3, #64 @ 0x40
  32125. 800df0a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32126. 800df0e: e1a2 b.n 800e256 <UART_SetConfig+0x5a6>
  32127. 800df10: 2380 movs r3, #128 @ 0x80
  32128. 800df12: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32129. 800df16: e19e b.n 800e256 <UART_SetConfig+0x5a6>
  32130. 800df18: 697b ldr r3, [r7, #20]
  32131. 800df1a: 681b ldr r3, [r3, #0]
  32132. 800df1c: 4a35 ldr r2, [pc, #212] @ (800dff4 <UART_SetConfig+0x344>)
  32133. 800df1e: 4293 cmp r3, r2
  32134. 800df20: d130 bne.n 800df84 <UART_SetConfig+0x2d4>
  32135. 800df22: 4b31 ldr r3, [pc, #196] @ (800dfe8 <UART_SetConfig+0x338>)
  32136. 800df24: 6d5b ldr r3, [r3, #84] @ 0x54
  32137. 800df26: f003 0307 and.w r3, r3, #7
  32138. 800df2a: 2b05 cmp r3, #5
  32139. 800df2c: d826 bhi.n 800df7c <UART_SetConfig+0x2cc>
  32140. 800df2e: a201 add r2, pc, #4 @ (adr r2, 800df34 <UART_SetConfig+0x284>)
  32141. 800df30: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32142. 800df34: 0800df4d .word 0x0800df4d
  32143. 800df38: 0800df55 .word 0x0800df55
  32144. 800df3c: 0800df5d .word 0x0800df5d
  32145. 800df40: 0800df65 .word 0x0800df65
  32146. 800df44: 0800df6d .word 0x0800df6d
  32147. 800df48: 0800df75 .word 0x0800df75
  32148. 800df4c: 2300 movs r3, #0
  32149. 800df4e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32150. 800df52: e180 b.n 800e256 <UART_SetConfig+0x5a6>
  32151. 800df54: 2304 movs r3, #4
  32152. 800df56: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32153. 800df5a: e17c b.n 800e256 <UART_SetConfig+0x5a6>
  32154. 800df5c: 2308 movs r3, #8
  32155. 800df5e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32156. 800df62: e178 b.n 800e256 <UART_SetConfig+0x5a6>
  32157. 800df64: 2310 movs r3, #16
  32158. 800df66: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32159. 800df6a: e174 b.n 800e256 <UART_SetConfig+0x5a6>
  32160. 800df6c: 2320 movs r3, #32
  32161. 800df6e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32162. 800df72: e170 b.n 800e256 <UART_SetConfig+0x5a6>
  32163. 800df74: 2340 movs r3, #64 @ 0x40
  32164. 800df76: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32165. 800df7a: e16c b.n 800e256 <UART_SetConfig+0x5a6>
  32166. 800df7c: 2380 movs r3, #128 @ 0x80
  32167. 800df7e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32168. 800df82: e168 b.n 800e256 <UART_SetConfig+0x5a6>
  32169. 800df84: 697b ldr r3, [r7, #20]
  32170. 800df86: 681b ldr r3, [r3, #0]
  32171. 800df88: 4a1b ldr r2, [pc, #108] @ (800dff8 <UART_SetConfig+0x348>)
  32172. 800df8a: 4293 cmp r3, r2
  32173. 800df8c: d142 bne.n 800e014 <UART_SetConfig+0x364>
  32174. 800df8e: 4b16 ldr r3, [pc, #88] @ (800dfe8 <UART_SetConfig+0x338>)
  32175. 800df90: 6d5b ldr r3, [r3, #84] @ 0x54
  32176. 800df92: f003 0307 and.w r3, r3, #7
  32177. 800df96: 2b05 cmp r3, #5
  32178. 800df98: d838 bhi.n 800e00c <UART_SetConfig+0x35c>
  32179. 800df9a: a201 add r2, pc, #4 @ (adr r2, 800dfa0 <UART_SetConfig+0x2f0>)
  32180. 800df9c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32181. 800dfa0: 0800dfb9 .word 0x0800dfb9
  32182. 800dfa4: 0800dfc1 .word 0x0800dfc1
  32183. 800dfa8: 0800dfc9 .word 0x0800dfc9
  32184. 800dfac: 0800dfd1 .word 0x0800dfd1
  32185. 800dfb0: 0800dffd .word 0x0800dffd
  32186. 800dfb4: 0800e005 .word 0x0800e005
  32187. 800dfb8: 2300 movs r3, #0
  32188. 800dfba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32189. 800dfbe: e14a b.n 800e256 <UART_SetConfig+0x5a6>
  32190. 800dfc0: 2304 movs r3, #4
  32191. 800dfc2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32192. 800dfc6: e146 b.n 800e256 <UART_SetConfig+0x5a6>
  32193. 800dfc8: 2308 movs r3, #8
  32194. 800dfca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32195. 800dfce: e142 b.n 800e256 <UART_SetConfig+0x5a6>
  32196. 800dfd0: 2310 movs r3, #16
  32197. 800dfd2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32198. 800dfd6: e13e b.n 800e256 <UART_SetConfig+0x5a6>
  32199. 800dfd8: cfff69f3 .word 0xcfff69f3
  32200. 800dfdc: 58000c00 .word 0x58000c00
  32201. 800dfe0: 11fff4ff .word 0x11fff4ff
  32202. 800dfe4: 40011000 .word 0x40011000
  32203. 800dfe8: 58024400 .word 0x58024400
  32204. 800dfec: 40004400 .word 0x40004400
  32205. 800dff0: 40004800 .word 0x40004800
  32206. 800dff4: 40004c00 .word 0x40004c00
  32207. 800dff8: 40005000 .word 0x40005000
  32208. 800dffc: 2320 movs r3, #32
  32209. 800dffe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32210. 800e002: e128 b.n 800e256 <UART_SetConfig+0x5a6>
  32211. 800e004: 2340 movs r3, #64 @ 0x40
  32212. 800e006: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32213. 800e00a: e124 b.n 800e256 <UART_SetConfig+0x5a6>
  32214. 800e00c: 2380 movs r3, #128 @ 0x80
  32215. 800e00e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32216. 800e012: e120 b.n 800e256 <UART_SetConfig+0x5a6>
  32217. 800e014: 697b ldr r3, [r7, #20]
  32218. 800e016: 681b ldr r3, [r3, #0]
  32219. 800e018: 4acb ldr r2, [pc, #812] @ (800e348 <UART_SetConfig+0x698>)
  32220. 800e01a: 4293 cmp r3, r2
  32221. 800e01c: d176 bne.n 800e10c <UART_SetConfig+0x45c>
  32222. 800e01e: 4bcb ldr r3, [pc, #812] @ (800e34c <UART_SetConfig+0x69c>)
  32223. 800e020: 6d5b ldr r3, [r3, #84] @ 0x54
  32224. 800e022: f003 0338 and.w r3, r3, #56 @ 0x38
  32225. 800e026: 2b28 cmp r3, #40 @ 0x28
  32226. 800e028: d86c bhi.n 800e104 <UART_SetConfig+0x454>
  32227. 800e02a: a201 add r2, pc, #4 @ (adr r2, 800e030 <UART_SetConfig+0x380>)
  32228. 800e02c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32229. 800e030: 0800e0d5 .word 0x0800e0d5
  32230. 800e034: 0800e105 .word 0x0800e105
  32231. 800e038: 0800e105 .word 0x0800e105
  32232. 800e03c: 0800e105 .word 0x0800e105
  32233. 800e040: 0800e105 .word 0x0800e105
  32234. 800e044: 0800e105 .word 0x0800e105
  32235. 800e048: 0800e105 .word 0x0800e105
  32236. 800e04c: 0800e105 .word 0x0800e105
  32237. 800e050: 0800e0dd .word 0x0800e0dd
  32238. 800e054: 0800e105 .word 0x0800e105
  32239. 800e058: 0800e105 .word 0x0800e105
  32240. 800e05c: 0800e105 .word 0x0800e105
  32241. 800e060: 0800e105 .word 0x0800e105
  32242. 800e064: 0800e105 .word 0x0800e105
  32243. 800e068: 0800e105 .word 0x0800e105
  32244. 800e06c: 0800e105 .word 0x0800e105
  32245. 800e070: 0800e0e5 .word 0x0800e0e5
  32246. 800e074: 0800e105 .word 0x0800e105
  32247. 800e078: 0800e105 .word 0x0800e105
  32248. 800e07c: 0800e105 .word 0x0800e105
  32249. 800e080: 0800e105 .word 0x0800e105
  32250. 800e084: 0800e105 .word 0x0800e105
  32251. 800e088: 0800e105 .word 0x0800e105
  32252. 800e08c: 0800e105 .word 0x0800e105
  32253. 800e090: 0800e0ed .word 0x0800e0ed
  32254. 800e094: 0800e105 .word 0x0800e105
  32255. 800e098: 0800e105 .word 0x0800e105
  32256. 800e09c: 0800e105 .word 0x0800e105
  32257. 800e0a0: 0800e105 .word 0x0800e105
  32258. 800e0a4: 0800e105 .word 0x0800e105
  32259. 800e0a8: 0800e105 .word 0x0800e105
  32260. 800e0ac: 0800e105 .word 0x0800e105
  32261. 800e0b0: 0800e0f5 .word 0x0800e0f5
  32262. 800e0b4: 0800e105 .word 0x0800e105
  32263. 800e0b8: 0800e105 .word 0x0800e105
  32264. 800e0bc: 0800e105 .word 0x0800e105
  32265. 800e0c0: 0800e105 .word 0x0800e105
  32266. 800e0c4: 0800e105 .word 0x0800e105
  32267. 800e0c8: 0800e105 .word 0x0800e105
  32268. 800e0cc: 0800e105 .word 0x0800e105
  32269. 800e0d0: 0800e0fd .word 0x0800e0fd
  32270. 800e0d4: 2301 movs r3, #1
  32271. 800e0d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32272. 800e0da: e0bc b.n 800e256 <UART_SetConfig+0x5a6>
  32273. 800e0dc: 2304 movs r3, #4
  32274. 800e0de: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32275. 800e0e2: e0b8 b.n 800e256 <UART_SetConfig+0x5a6>
  32276. 800e0e4: 2308 movs r3, #8
  32277. 800e0e6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32278. 800e0ea: e0b4 b.n 800e256 <UART_SetConfig+0x5a6>
  32279. 800e0ec: 2310 movs r3, #16
  32280. 800e0ee: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32281. 800e0f2: e0b0 b.n 800e256 <UART_SetConfig+0x5a6>
  32282. 800e0f4: 2320 movs r3, #32
  32283. 800e0f6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32284. 800e0fa: e0ac b.n 800e256 <UART_SetConfig+0x5a6>
  32285. 800e0fc: 2340 movs r3, #64 @ 0x40
  32286. 800e0fe: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32287. 800e102: e0a8 b.n 800e256 <UART_SetConfig+0x5a6>
  32288. 800e104: 2380 movs r3, #128 @ 0x80
  32289. 800e106: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32290. 800e10a: e0a4 b.n 800e256 <UART_SetConfig+0x5a6>
  32291. 800e10c: 697b ldr r3, [r7, #20]
  32292. 800e10e: 681b ldr r3, [r3, #0]
  32293. 800e110: 4a8f ldr r2, [pc, #572] @ (800e350 <UART_SetConfig+0x6a0>)
  32294. 800e112: 4293 cmp r3, r2
  32295. 800e114: d130 bne.n 800e178 <UART_SetConfig+0x4c8>
  32296. 800e116: 4b8d ldr r3, [pc, #564] @ (800e34c <UART_SetConfig+0x69c>)
  32297. 800e118: 6d5b ldr r3, [r3, #84] @ 0x54
  32298. 800e11a: f003 0307 and.w r3, r3, #7
  32299. 800e11e: 2b05 cmp r3, #5
  32300. 800e120: d826 bhi.n 800e170 <UART_SetConfig+0x4c0>
  32301. 800e122: a201 add r2, pc, #4 @ (adr r2, 800e128 <UART_SetConfig+0x478>)
  32302. 800e124: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32303. 800e128: 0800e141 .word 0x0800e141
  32304. 800e12c: 0800e149 .word 0x0800e149
  32305. 800e130: 0800e151 .word 0x0800e151
  32306. 800e134: 0800e159 .word 0x0800e159
  32307. 800e138: 0800e161 .word 0x0800e161
  32308. 800e13c: 0800e169 .word 0x0800e169
  32309. 800e140: 2300 movs r3, #0
  32310. 800e142: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32311. 800e146: e086 b.n 800e256 <UART_SetConfig+0x5a6>
  32312. 800e148: 2304 movs r3, #4
  32313. 800e14a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32314. 800e14e: e082 b.n 800e256 <UART_SetConfig+0x5a6>
  32315. 800e150: 2308 movs r3, #8
  32316. 800e152: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32317. 800e156: e07e b.n 800e256 <UART_SetConfig+0x5a6>
  32318. 800e158: 2310 movs r3, #16
  32319. 800e15a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32320. 800e15e: e07a b.n 800e256 <UART_SetConfig+0x5a6>
  32321. 800e160: 2320 movs r3, #32
  32322. 800e162: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32323. 800e166: e076 b.n 800e256 <UART_SetConfig+0x5a6>
  32324. 800e168: 2340 movs r3, #64 @ 0x40
  32325. 800e16a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32326. 800e16e: e072 b.n 800e256 <UART_SetConfig+0x5a6>
  32327. 800e170: 2380 movs r3, #128 @ 0x80
  32328. 800e172: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32329. 800e176: e06e b.n 800e256 <UART_SetConfig+0x5a6>
  32330. 800e178: 697b ldr r3, [r7, #20]
  32331. 800e17a: 681b ldr r3, [r3, #0]
  32332. 800e17c: 4a75 ldr r2, [pc, #468] @ (800e354 <UART_SetConfig+0x6a4>)
  32333. 800e17e: 4293 cmp r3, r2
  32334. 800e180: d130 bne.n 800e1e4 <UART_SetConfig+0x534>
  32335. 800e182: 4b72 ldr r3, [pc, #456] @ (800e34c <UART_SetConfig+0x69c>)
  32336. 800e184: 6d5b ldr r3, [r3, #84] @ 0x54
  32337. 800e186: f003 0307 and.w r3, r3, #7
  32338. 800e18a: 2b05 cmp r3, #5
  32339. 800e18c: d826 bhi.n 800e1dc <UART_SetConfig+0x52c>
  32340. 800e18e: a201 add r2, pc, #4 @ (adr r2, 800e194 <UART_SetConfig+0x4e4>)
  32341. 800e190: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32342. 800e194: 0800e1ad .word 0x0800e1ad
  32343. 800e198: 0800e1b5 .word 0x0800e1b5
  32344. 800e19c: 0800e1bd .word 0x0800e1bd
  32345. 800e1a0: 0800e1c5 .word 0x0800e1c5
  32346. 800e1a4: 0800e1cd .word 0x0800e1cd
  32347. 800e1a8: 0800e1d5 .word 0x0800e1d5
  32348. 800e1ac: 2300 movs r3, #0
  32349. 800e1ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32350. 800e1b2: e050 b.n 800e256 <UART_SetConfig+0x5a6>
  32351. 800e1b4: 2304 movs r3, #4
  32352. 800e1b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32353. 800e1ba: e04c b.n 800e256 <UART_SetConfig+0x5a6>
  32354. 800e1bc: 2308 movs r3, #8
  32355. 800e1be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32356. 800e1c2: e048 b.n 800e256 <UART_SetConfig+0x5a6>
  32357. 800e1c4: 2310 movs r3, #16
  32358. 800e1c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32359. 800e1ca: e044 b.n 800e256 <UART_SetConfig+0x5a6>
  32360. 800e1cc: 2320 movs r3, #32
  32361. 800e1ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32362. 800e1d2: e040 b.n 800e256 <UART_SetConfig+0x5a6>
  32363. 800e1d4: 2340 movs r3, #64 @ 0x40
  32364. 800e1d6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32365. 800e1da: e03c b.n 800e256 <UART_SetConfig+0x5a6>
  32366. 800e1dc: 2380 movs r3, #128 @ 0x80
  32367. 800e1de: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32368. 800e1e2: e038 b.n 800e256 <UART_SetConfig+0x5a6>
  32369. 800e1e4: 697b ldr r3, [r7, #20]
  32370. 800e1e6: 681b ldr r3, [r3, #0]
  32371. 800e1e8: 4a5b ldr r2, [pc, #364] @ (800e358 <UART_SetConfig+0x6a8>)
  32372. 800e1ea: 4293 cmp r3, r2
  32373. 800e1ec: d130 bne.n 800e250 <UART_SetConfig+0x5a0>
  32374. 800e1ee: 4b57 ldr r3, [pc, #348] @ (800e34c <UART_SetConfig+0x69c>)
  32375. 800e1f0: 6d9b ldr r3, [r3, #88] @ 0x58
  32376. 800e1f2: f003 0307 and.w r3, r3, #7
  32377. 800e1f6: 2b05 cmp r3, #5
  32378. 800e1f8: d826 bhi.n 800e248 <UART_SetConfig+0x598>
  32379. 800e1fa: a201 add r2, pc, #4 @ (adr r2, 800e200 <UART_SetConfig+0x550>)
  32380. 800e1fc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32381. 800e200: 0800e219 .word 0x0800e219
  32382. 800e204: 0800e221 .word 0x0800e221
  32383. 800e208: 0800e229 .word 0x0800e229
  32384. 800e20c: 0800e231 .word 0x0800e231
  32385. 800e210: 0800e239 .word 0x0800e239
  32386. 800e214: 0800e241 .word 0x0800e241
  32387. 800e218: 2302 movs r3, #2
  32388. 800e21a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32389. 800e21e: e01a b.n 800e256 <UART_SetConfig+0x5a6>
  32390. 800e220: 2304 movs r3, #4
  32391. 800e222: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32392. 800e226: e016 b.n 800e256 <UART_SetConfig+0x5a6>
  32393. 800e228: 2308 movs r3, #8
  32394. 800e22a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32395. 800e22e: e012 b.n 800e256 <UART_SetConfig+0x5a6>
  32396. 800e230: 2310 movs r3, #16
  32397. 800e232: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32398. 800e236: e00e b.n 800e256 <UART_SetConfig+0x5a6>
  32399. 800e238: 2320 movs r3, #32
  32400. 800e23a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32401. 800e23e: e00a b.n 800e256 <UART_SetConfig+0x5a6>
  32402. 800e240: 2340 movs r3, #64 @ 0x40
  32403. 800e242: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32404. 800e246: e006 b.n 800e256 <UART_SetConfig+0x5a6>
  32405. 800e248: 2380 movs r3, #128 @ 0x80
  32406. 800e24a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32407. 800e24e: e002 b.n 800e256 <UART_SetConfig+0x5a6>
  32408. 800e250: 2380 movs r3, #128 @ 0x80
  32409. 800e252: f887 3043 strb.w r3, [r7, #67] @ 0x43
  32410. /* Check LPUART instance */
  32411. if (UART_INSTANCE_LOWPOWER(huart))
  32412. 800e256: 697b ldr r3, [r7, #20]
  32413. 800e258: 681b ldr r3, [r3, #0]
  32414. 800e25a: 4a3f ldr r2, [pc, #252] @ (800e358 <UART_SetConfig+0x6a8>)
  32415. 800e25c: 4293 cmp r3, r2
  32416. 800e25e: f040 80f8 bne.w 800e452 <UART_SetConfig+0x7a2>
  32417. {
  32418. /* Retrieve frequency clock */
  32419. switch (clocksource)
  32420. 800e262: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  32421. 800e266: 2b20 cmp r3, #32
  32422. 800e268: dc46 bgt.n 800e2f8 <UART_SetConfig+0x648>
  32423. 800e26a: 2b02 cmp r3, #2
  32424. 800e26c: f2c0 8082 blt.w 800e374 <UART_SetConfig+0x6c4>
  32425. 800e270: 3b02 subs r3, #2
  32426. 800e272: 2b1e cmp r3, #30
  32427. 800e274: d87e bhi.n 800e374 <UART_SetConfig+0x6c4>
  32428. 800e276: a201 add r2, pc, #4 @ (adr r2, 800e27c <UART_SetConfig+0x5cc>)
  32429. 800e278: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32430. 800e27c: 0800e2ff .word 0x0800e2ff
  32431. 800e280: 0800e375 .word 0x0800e375
  32432. 800e284: 0800e307 .word 0x0800e307
  32433. 800e288: 0800e375 .word 0x0800e375
  32434. 800e28c: 0800e375 .word 0x0800e375
  32435. 800e290: 0800e375 .word 0x0800e375
  32436. 800e294: 0800e317 .word 0x0800e317
  32437. 800e298: 0800e375 .word 0x0800e375
  32438. 800e29c: 0800e375 .word 0x0800e375
  32439. 800e2a0: 0800e375 .word 0x0800e375
  32440. 800e2a4: 0800e375 .word 0x0800e375
  32441. 800e2a8: 0800e375 .word 0x0800e375
  32442. 800e2ac: 0800e375 .word 0x0800e375
  32443. 800e2b0: 0800e375 .word 0x0800e375
  32444. 800e2b4: 0800e327 .word 0x0800e327
  32445. 800e2b8: 0800e375 .word 0x0800e375
  32446. 800e2bc: 0800e375 .word 0x0800e375
  32447. 800e2c0: 0800e375 .word 0x0800e375
  32448. 800e2c4: 0800e375 .word 0x0800e375
  32449. 800e2c8: 0800e375 .word 0x0800e375
  32450. 800e2cc: 0800e375 .word 0x0800e375
  32451. 800e2d0: 0800e375 .word 0x0800e375
  32452. 800e2d4: 0800e375 .word 0x0800e375
  32453. 800e2d8: 0800e375 .word 0x0800e375
  32454. 800e2dc: 0800e375 .word 0x0800e375
  32455. 800e2e0: 0800e375 .word 0x0800e375
  32456. 800e2e4: 0800e375 .word 0x0800e375
  32457. 800e2e8: 0800e375 .word 0x0800e375
  32458. 800e2ec: 0800e375 .word 0x0800e375
  32459. 800e2f0: 0800e375 .word 0x0800e375
  32460. 800e2f4: 0800e367 .word 0x0800e367
  32461. 800e2f8: 2b40 cmp r3, #64 @ 0x40
  32462. 800e2fa: d037 beq.n 800e36c <UART_SetConfig+0x6bc>
  32463. 800e2fc: e03a b.n 800e374 <UART_SetConfig+0x6c4>
  32464. {
  32465. case UART_CLOCKSOURCE_D3PCLK1:
  32466. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  32467. 800e2fe: f7fd fff9 bl 800c2f4 <HAL_RCCEx_GetD3PCLK1Freq>
  32468. 800e302: 63f8 str r0, [r7, #60] @ 0x3c
  32469. break;
  32470. 800e304: e03c b.n 800e380 <UART_SetConfig+0x6d0>
  32471. case UART_CLOCKSOURCE_PLL2:
  32472. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32473. 800e306: f107 0324 add.w r3, r7, #36 @ 0x24
  32474. 800e30a: 4618 mov r0, r3
  32475. 800e30c: f7fe f808 bl 800c320 <HAL_RCCEx_GetPLL2ClockFreq>
  32476. pclk = pll2_clocks.PLL2_Q_Frequency;
  32477. 800e310: 6abb ldr r3, [r7, #40] @ 0x28
  32478. 800e312: 63fb str r3, [r7, #60] @ 0x3c
  32479. break;
  32480. 800e314: e034 b.n 800e380 <UART_SetConfig+0x6d0>
  32481. case UART_CLOCKSOURCE_PLL3:
  32482. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32483. 800e316: f107 0318 add.w r3, r7, #24
  32484. 800e31a: 4618 mov r0, r3
  32485. 800e31c: f7fe f954 bl 800c5c8 <HAL_RCCEx_GetPLL3ClockFreq>
  32486. pclk = pll3_clocks.PLL3_Q_Frequency;
  32487. 800e320: 69fb ldr r3, [r7, #28]
  32488. 800e322: 63fb str r3, [r7, #60] @ 0x3c
  32489. break;
  32490. 800e324: e02c b.n 800e380 <UART_SetConfig+0x6d0>
  32491. case UART_CLOCKSOURCE_HSI:
  32492. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32493. 800e326: 4b09 ldr r3, [pc, #36] @ (800e34c <UART_SetConfig+0x69c>)
  32494. 800e328: 681b ldr r3, [r3, #0]
  32495. 800e32a: f003 0320 and.w r3, r3, #32
  32496. 800e32e: 2b00 cmp r3, #0
  32497. 800e330: d016 beq.n 800e360 <UART_SetConfig+0x6b0>
  32498. {
  32499. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  32500. 800e332: 4b06 ldr r3, [pc, #24] @ (800e34c <UART_SetConfig+0x69c>)
  32501. 800e334: 681b ldr r3, [r3, #0]
  32502. 800e336: 08db lsrs r3, r3, #3
  32503. 800e338: f003 0303 and.w r3, r3, #3
  32504. 800e33c: 4a07 ldr r2, [pc, #28] @ (800e35c <UART_SetConfig+0x6ac>)
  32505. 800e33e: fa22 f303 lsr.w r3, r2, r3
  32506. 800e342: 63fb str r3, [r7, #60] @ 0x3c
  32507. }
  32508. else
  32509. {
  32510. pclk = (uint32_t) HSI_VALUE;
  32511. }
  32512. break;
  32513. 800e344: e01c b.n 800e380 <UART_SetConfig+0x6d0>
  32514. 800e346: bf00 nop
  32515. 800e348: 40011400 .word 0x40011400
  32516. 800e34c: 58024400 .word 0x58024400
  32517. 800e350: 40007800 .word 0x40007800
  32518. 800e354: 40007c00 .word 0x40007c00
  32519. 800e358: 58000c00 .word 0x58000c00
  32520. 800e35c: 03d09000 .word 0x03d09000
  32521. pclk = (uint32_t) HSI_VALUE;
  32522. 800e360: 4b9d ldr r3, [pc, #628] @ (800e5d8 <UART_SetConfig+0x928>)
  32523. 800e362: 63fb str r3, [r7, #60] @ 0x3c
  32524. break;
  32525. 800e364: e00c b.n 800e380 <UART_SetConfig+0x6d0>
  32526. case UART_CLOCKSOURCE_CSI:
  32527. pclk = (uint32_t) CSI_VALUE;
  32528. 800e366: 4b9d ldr r3, [pc, #628] @ (800e5dc <UART_SetConfig+0x92c>)
  32529. 800e368: 63fb str r3, [r7, #60] @ 0x3c
  32530. break;
  32531. 800e36a: e009 b.n 800e380 <UART_SetConfig+0x6d0>
  32532. case UART_CLOCKSOURCE_LSE:
  32533. pclk = (uint32_t) LSE_VALUE;
  32534. 800e36c: f44f 4300 mov.w r3, #32768 @ 0x8000
  32535. 800e370: 63fb str r3, [r7, #60] @ 0x3c
  32536. break;
  32537. 800e372: e005 b.n 800e380 <UART_SetConfig+0x6d0>
  32538. default:
  32539. pclk = 0U;
  32540. 800e374: 2300 movs r3, #0
  32541. 800e376: 63fb str r3, [r7, #60] @ 0x3c
  32542. ret = HAL_ERROR;
  32543. 800e378: 2301 movs r3, #1
  32544. 800e37a: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32545. break;
  32546. 800e37e: bf00 nop
  32547. }
  32548. /* If proper clock source reported */
  32549. if (pclk != 0U)
  32550. 800e380: 6bfb ldr r3, [r7, #60] @ 0x3c
  32551. 800e382: 2b00 cmp r3, #0
  32552. 800e384: f000 81de beq.w 800e744 <UART_SetConfig+0xa94>
  32553. {
  32554. /* Compute clock after Prescaler */
  32555. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  32556. 800e388: 697b ldr r3, [r7, #20]
  32557. 800e38a: 6a5b ldr r3, [r3, #36] @ 0x24
  32558. 800e38c: 4a94 ldr r2, [pc, #592] @ (800e5e0 <UART_SetConfig+0x930>)
  32559. 800e38e: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  32560. 800e392: 461a mov r2, r3
  32561. 800e394: 6bfb ldr r3, [r7, #60] @ 0x3c
  32562. 800e396: fbb3 f3f2 udiv r3, r3, r2
  32563. 800e39a: 633b str r3, [r7, #48] @ 0x30
  32564. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  32565. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  32566. 800e39c: 697b ldr r3, [r7, #20]
  32567. 800e39e: 685a ldr r2, [r3, #4]
  32568. 800e3a0: 4613 mov r3, r2
  32569. 800e3a2: 005b lsls r3, r3, #1
  32570. 800e3a4: 4413 add r3, r2
  32571. 800e3a6: 6b3a ldr r2, [r7, #48] @ 0x30
  32572. 800e3a8: 429a cmp r2, r3
  32573. 800e3aa: d305 bcc.n 800e3b8 <UART_SetConfig+0x708>
  32574. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  32575. 800e3ac: 697b ldr r3, [r7, #20]
  32576. 800e3ae: 685b ldr r3, [r3, #4]
  32577. 800e3b0: 031b lsls r3, r3, #12
  32578. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  32579. 800e3b2: 6b3a ldr r2, [r7, #48] @ 0x30
  32580. 800e3b4: 429a cmp r2, r3
  32581. 800e3b6: d903 bls.n 800e3c0 <UART_SetConfig+0x710>
  32582. {
  32583. ret = HAL_ERROR;
  32584. 800e3b8: 2301 movs r3, #1
  32585. 800e3ba: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32586. 800e3be: e1c1 b.n 800e744 <UART_SetConfig+0xa94>
  32587. }
  32588. else
  32589. {
  32590. /* Check computed UsartDiv value is in allocated range
  32591. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  32592. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  32593. 800e3c0: 6bfb ldr r3, [r7, #60] @ 0x3c
  32594. 800e3c2: 2200 movs r2, #0
  32595. 800e3c4: 60bb str r3, [r7, #8]
  32596. 800e3c6: 60fa str r2, [r7, #12]
  32597. 800e3c8: 697b ldr r3, [r7, #20]
  32598. 800e3ca: 6a5b ldr r3, [r3, #36] @ 0x24
  32599. 800e3cc: 4a84 ldr r2, [pc, #528] @ (800e5e0 <UART_SetConfig+0x930>)
  32600. 800e3ce: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  32601. 800e3d2: b29b uxth r3, r3
  32602. 800e3d4: 2200 movs r2, #0
  32603. 800e3d6: 603b str r3, [r7, #0]
  32604. 800e3d8: 607a str r2, [r7, #4]
  32605. 800e3da: e9d7 2300 ldrd r2, r3, [r7]
  32606. 800e3de: e9d7 0102 ldrd r0, r1, [r7, #8]
  32607. 800e3e2: f7f2 f9a1 bl 8000728 <__aeabi_uldivmod>
  32608. 800e3e6: 4602 mov r2, r0
  32609. 800e3e8: 460b mov r3, r1
  32610. 800e3ea: 4610 mov r0, r2
  32611. 800e3ec: 4619 mov r1, r3
  32612. 800e3ee: f04f 0200 mov.w r2, #0
  32613. 800e3f2: f04f 0300 mov.w r3, #0
  32614. 800e3f6: 020b lsls r3, r1, #8
  32615. 800e3f8: ea43 6310 orr.w r3, r3, r0, lsr #24
  32616. 800e3fc: 0202 lsls r2, r0, #8
  32617. 800e3fe: 6979 ldr r1, [r7, #20]
  32618. 800e400: 6849 ldr r1, [r1, #4]
  32619. 800e402: 0849 lsrs r1, r1, #1
  32620. 800e404: 2000 movs r0, #0
  32621. 800e406: 460c mov r4, r1
  32622. 800e408: 4605 mov r5, r0
  32623. 800e40a: eb12 0804 adds.w r8, r2, r4
  32624. 800e40e: eb43 0905 adc.w r9, r3, r5
  32625. 800e412: 697b ldr r3, [r7, #20]
  32626. 800e414: 685b ldr r3, [r3, #4]
  32627. 800e416: 2200 movs r2, #0
  32628. 800e418: 469a mov sl, r3
  32629. 800e41a: 4693 mov fp, r2
  32630. 800e41c: 4652 mov r2, sl
  32631. 800e41e: 465b mov r3, fp
  32632. 800e420: 4640 mov r0, r8
  32633. 800e422: 4649 mov r1, r9
  32634. 800e424: f7f2 f980 bl 8000728 <__aeabi_uldivmod>
  32635. 800e428: 4602 mov r2, r0
  32636. 800e42a: 460b mov r3, r1
  32637. 800e42c: 4613 mov r3, r2
  32638. 800e42e: 63bb str r3, [r7, #56] @ 0x38
  32639. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  32640. 800e430: 6bbb ldr r3, [r7, #56] @ 0x38
  32641. 800e432: f5b3 7f40 cmp.w r3, #768 @ 0x300
  32642. 800e436: d308 bcc.n 800e44a <UART_SetConfig+0x79a>
  32643. 800e438: 6bbb ldr r3, [r7, #56] @ 0x38
  32644. 800e43a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  32645. 800e43e: d204 bcs.n 800e44a <UART_SetConfig+0x79a>
  32646. {
  32647. huart->Instance->BRR = usartdiv;
  32648. 800e440: 697b ldr r3, [r7, #20]
  32649. 800e442: 681b ldr r3, [r3, #0]
  32650. 800e444: 6bba ldr r2, [r7, #56] @ 0x38
  32651. 800e446: 60da str r2, [r3, #12]
  32652. 800e448: e17c b.n 800e744 <UART_SetConfig+0xa94>
  32653. }
  32654. else
  32655. {
  32656. ret = HAL_ERROR;
  32657. 800e44a: 2301 movs r3, #1
  32658. 800e44c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32659. 800e450: e178 b.n 800e744 <UART_SetConfig+0xa94>
  32660. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  32661. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  32662. } /* if (pclk != 0) */
  32663. }
  32664. /* Check UART Over Sampling to set Baud Rate Register */
  32665. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  32666. 800e452: 697b ldr r3, [r7, #20]
  32667. 800e454: 69db ldr r3, [r3, #28]
  32668. 800e456: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  32669. 800e45a: f040 80c5 bne.w 800e5e8 <UART_SetConfig+0x938>
  32670. {
  32671. switch (clocksource)
  32672. 800e45e: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  32673. 800e462: 2b20 cmp r3, #32
  32674. 800e464: dc48 bgt.n 800e4f8 <UART_SetConfig+0x848>
  32675. 800e466: 2b00 cmp r3, #0
  32676. 800e468: db7b blt.n 800e562 <UART_SetConfig+0x8b2>
  32677. 800e46a: 2b20 cmp r3, #32
  32678. 800e46c: d879 bhi.n 800e562 <UART_SetConfig+0x8b2>
  32679. 800e46e: a201 add r2, pc, #4 @ (adr r2, 800e474 <UART_SetConfig+0x7c4>)
  32680. 800e470: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32681. 800e474: 0800e4ff .word 0x0800e4ff
  32682. 800e478: 0800e507 .word 0x0800e507
  32683. 800e47c: 0800e563 .word 0x0800e563
  32684. 800e480: 0800e563 .word 0x0800e563
  32685. 800e484: 0800e50f .word 0x0800e50f
  32686. 800e488: 0800e563 .word 0x0800e563
  32687. 800e48c: 0800e563 .word 0x0800e563
  32688. 800e490: 0800e563 .word 0x0800e563
  32689. 800e494: 0800e51f .word 0x0800e51f
  32690. 800e498: 0800e563 .word 0x0800e563
  32691. 800e49c: 0800e563 .word 0x0800e563
  32692. 800e4a0: 0800e563 .word 0x0800e563
  32693. 800e4a4: 0800e563 .word 0x0800e563
  32694. 800e4a8: 0800e563 .word 0x0800e563
  32695. 800e4ac: 0800e563 .word 0x0800e563
  32696. 800e4b0: 0800e563 .word 0x0800e563
  32697. 800e4b4: 0800e52f .word 0x0800e52f
  32698. 800e4b8: 0800e563 .word 0x0800e563
  32699. 800e4bc: 0800e563 .word 0x0800e563
  32700. 800e4c0: 0800e563 .word 0x0800e563
  32701. 800e4c4: 0800e563 .word 0x0800e563
  32702. 800e4c8: 0800e563 .word 0x0800e563
  32703. 800e4cc: 0800e563 .word 0x0800e563
  32704. 800e4d0: 0800e563 .word 0x0800e563
  32705. 800e4d4: 0800e563 .word 0x0800e563
  32706. 800e4d8: 0800e563 .word 0x0800e563
  32707. 800e4dc: 0800e563 .word 0x0800e563
  32708. 800e4e0: 0800e563 .word 0x0800e563
  32709. 800e4e4: 0800e563 .word 0x0800e563
  32710. 800e4e8: 0800e563 .word 0x0800e563
  32711. 800e4ec: 0800e563 .word 0x0800e563
  32712. 800e4f0: 0800e563 .word 0x0800e563
  32713. 800e4f4: 0800e555 .word 0x0800e555
  32714. 800e4f8: 2b40 cmp r3, #64 @ 0x40
  32715. 800e4fa: d02e beq.n 800e55a <UART_SetConfig+0x8aa>
  32716. 800e4fc: e031 b.n 800e562 <UART_SetConfig+0x8b2>
  32717. {
  32718. case UART_CLOCKSOURCE_D2PCLK1:
  32719. pclk = HAL_RCC_GetPCLK1Freq();
  32720. 800e4fe: f7fc fc9d bl 800ae3c <HAL_RCC_GetPCLK1Freq>
  32721. 800e502: 63f8 str r0, [r7, #60] @ 0x3c
  32722. break;
  32723. 800e504: e033 b.n 800e56e <UART_SetConfig+0x8be>
  32724. case UART_CLOCKSOURCE_D2PCLK2:
  32725. pclk = HAL_RCC_GetPCLK2Freq();
  32726. 800e506: f7fc fcaf bl 800ae68 <HAL_RCC_GetPCLK2Freq>
  32727. 800e50a: 63f8 str r0, [r7, #60] @ 0x3c
  32728. break;
  32729. 800e50c: e02f b.n 800e56e <UART_SetConfig+0x8be>
  32730. case UART_CLOCKSOURCE_PLL2:
  32731. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32732. 800e50e: f107 0324 add.w r3, r7, #36 @ 0x24
  32733. 800e512: 4618 mov r0, r3
  32734. 800e514: f7fd ff04 bl 800c320 <HAL_RCCEx_GetPLL2ClockFreq>
  32735. pclk = pll2_clocks.PLL2_Q_Frequency;
  32736. 800e518: 6abb ldr r3, [r7, #40] @ 0x28
  32737. 800e51a: 63fb str r3, [r7, #60] @ 0x3c
  32738. break;
  32739. 800e51c: e027 b.n 800e56e <UART_SetConfig+0x8be>
  32740. case UART_CLOCKSOURCE_PLL3:
  32741. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32742. 800e51e: f107 0318 add.w r3, r7, #24
  32743. 800e522: 4618 mov r0, r3
  32744. 800e524: f7fe f850 bl 800c5c8 <HAL_RCCEx_GetPLL3ClockFreq>
  32745. pclk = pll3_clocks.PLL3_Q_Frequency;
  32746. 800e528: 69fb ldr r3, [r7, #28]
  32747. 800e52a: 63fb str r3, [r7, #60] @ 0x3c
  32748. break;
  32749. 800e52c: e01f b.n 800e56e <UART_SetConfig+0x8be>
  32750. case UART_CLOCKSOURCE_HSI:
  32751. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32752. 800e52e: 4b2d ldr r3, [pc, #180] @ (800e5e4 <UART_SetConfig+0x934>)
  32753. 800e530: 681b ldr r3, [r3, #0]
  32754. 800e532: f003 0320 and.w r3, r3, #32
  32755. 800e536: 2b00 cmp r3, #0
  32756. 800e538: d009 beq.n 800e54e <UART_SetConfig+0x89e>
  32757. {
  32758. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  32759. 800e53a: 4b2a ldr r3, [pc, #168] @ (800e5e4 <UART_SetConfig+0x934>)
  32760. 800e53c: 681b ldr r3, [r3, #0]
  32761. 800e53e: 08db lsrs r3, r3, #3
  32762. 800e540: f003 0303 and.w r3, r3, #3
  32763. 800e544: 4a24 ldr r2, [pc, #144] @ (800e5d8 <UART_SetConfig+0x928>)
  32764. 800e546: fa22 f303 lsr.w r3, r2, r3
  32765. 800e54a: 63fb str r3, [r7, #60] @ 0x3c
  32766. }
  32767. else
  32768. {
  32769. pclk = (uint32_t) HSI_VALUE;
  32770. }
  32771. break;
  32772. 800e54c: e00f b.n 800e56e <UART_SetConfig+0x8be>
  32773. pclk = (uint32_t) HSI_VALUE;
  32774. 800e54e: 4b22 ldr r3, [pc, #136] @ (800e5d8 <UART_SetConfig+0x928>)
  32775. 800e550: 63fb str r3, [r7, #60] @ 0x3c
  32776. break;
  32777. 800e552: e00c b.n 800e56e <UART_SetConfig+0x8be>
  32778. case UART_CLOCKSOURCE_CSI:
  32779. pclk = (uint32_t) CSI_VALUE;
  32780. 800e554: 4b21 ldr r3, [pc, #132] @ (800e5dc <UART_SetConfig+0x92c>)
  32781. 800e556: 63fb str r3, [r7, #60] @ 0x3c
  32782. break;
  32783. 800e558: e009 b.n 800e56e <UART_SetConfig+0x8be>
  32784. case UART_CLOCKSOURCE_LSE:
  32785. pclk = (uint32_t) LSE_VALUE;
  32786. 800e55a: f44f 4300 mov.w r3, #32768 @ 0x8000
  32787. 800e55e: 63fb str r3, [r7, #60] @ 0x3c
  32788. break;
  32789. 800e560: e005 b.n 800e56e <UART_SetConfig+0x8be>
  32790. default:
  32791. pclk = 0U;
  32792. 800e562: 2300 movs r3, #0
  32793. 800e564: 63fb str r3, [r7, #60] @ 0x3c
  32794. ret = HAL_ERROR;
  32795. 800e566: 2301 movs r3, #1
  32796. 800e568: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32797. break;
  32798. 800e56c: bf00 nop
  32799. }
  32800. /* USARTDIV must be greater than or equal to 0d16 */
  32801. if (pclk != 0U)
  32802. 800e56e: 6bfb ldr r3, [r7, #60] @ 0x3c
  32803. 800e570: 2b00 cmp r3, #0
  32804. 800e572: f000 80e7 beq.w 800e744 <UART_SetConfig+0xa94>
  32805. {
  32806. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  32807. 800e576: 697b ldr r3, [r7, #20]
  32808. 800e578: 6a5b ldr r3, [r3, #36] @ 0x24
  32809. 800e57a: 4a19 ldr r2, [pc, #100] @ (800e5e0 <UART_SetConfig+0x930>)
  32810. 800e57c: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  32811. 800e580: 461a mov r2, r3
  32812. 800e582: 6bfb ldr r3, [r7, #60] @ 0x3c
  32813. 800e584: fbb3 f3f2 udiv r3, r3, r2
  32814. 800e588: 005a lsls r2, r3, #1
  32815. 800e58a: 697b ldr r3, [r7, #20]
  32816. 800e58c: 685b ldr r3, [r3, #4]
  32817. 800e58e: 085b lsrs r3, r3, #1
  32818. 800e590: 441a add r2, r3
  32819. 800e592: 697b ldr r3, [r7, #20]
  32820. 800e594: 685b ldr r3, [r3, #4]
  32821. 800e596: fbb2 f3f3 udiv r3, r2, r3
  32822. 800e59a: 63bb str r3, [r7, #56] @ 0x38
  32823. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  32824. 800e59c: 6bbb ldr r3, [r7, #56] @ 0x38
  32825. 800e59e: 2b0f cmp r3, #15
  32826. 800e5a0: d916 bls.n 800e5d0 <UART_SetConfig+0x920>
  32827. 800e5a2: 6bbb ldr r3, [r7, #56] @ 0x38
  32828. 800e5a4: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32829. 800e5a8: d212 bcs.n 800e5d0 <UART_SetConfig+0x920>
  32830. {
  32831. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  32832. 800e5aa: 6bbb ldr r3, [r7, #56] @ 0x38
  32833. 800e5ac: b29b uxth r3, r3
  32834. 800e5ae: f023 030f bic.w r3, r3, #15
  32835. 800e5b2: 86fb strh r3, [r7, #54] @ 0x36
  32836. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  32837. 800e5b4: 6bbb ldr r3, [r7, #56] @ 0x38
  32838. 800e5b6: 085b lsrs r3, r3, #1
  32839. 800e5b8: b29b uxth r3, r3
  32840. 800e5ba: f003 0307 and.w r3, r3, #7
  32841. 800e5be: b29a uxth r2, r3
  32842. 800e5c0: 8efb ldrh r3, [r7, #54] @ 0x36
  32843. 800e5c2: 4313 orrs r3, r2
  32844. 800e5c4: 86fb strh r3, [r7, #54] @ 0x36
  32845. huart->Instance->BRR = brrtemp;
  32846. 800e5c6: 697b ldr r3, [r7, #20]
  32847. 800e5c8: 681b ldr r3, [r3, #0]
  32848. 800e5ca: 8efa ldrh r2, [r7, #54] @ 0x36
  32849. 800e5cc: 60da str r2, [r3, #12]
  32850. 800e5ce: e0b9 b.n 800e744 <UART_SetConfig+0xa94>
  32851. }
  32852. else
  32853. {
  32854. ret = HAL_ERROR;
  32855. 800e5d0: 2301 movs r3, #1
  32856. 800e5d2: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32857. 800e5d6: e0b5 b.n 800e744 <UART_SetConfig+0xa94>
  32858. 800e5d8: 03d09000 .word 0x03d09000
  32859. 800e5dc: 003d0900 .word 0x003d0900
  32860. 800e5e0: 08031320 .word 0x08031320
  32861. 800e5e4: 58024400 .word 0x58024400
  32862. }
  32863. }
  32864. }
  32865. else
  32866. {
  32867. switch (clocksource)
  32868. 800e5e8: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  32869. 800e5ec: 2b20 cmp r3, #32
  32870. 800e5ee: dc49 bgt.n 800e684 <UART_SetConfig+0x9d4>
  32871. 800e5f0: 2b00 cmp r3, #0
  32872. 800e5f2: db7c blt.n 800e6ee <UART_SetConfig+0xa3e>
  32873. 800e5f4: 2b20 cmp r3, #32
  32874. 800e5f6: d87a bhi.n 800e6ee <UART_SetConfig+0xa3e>
  32875. 800e5f8: a201 add r2, pc, #4 @ (adr r2, 800e600 <UART_SetConfig+0x950>)
  32876. 800e5fa: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  32877. 800e5fe: bf00 nop
  32878. 800e600: 0800e68b .word 0x0800e68b
  32879. 800e604: 0800e693 .word 0x0800e693
  32880. 800e608: 0800e6ef .word 0x0800e6ef
  32881. 800e60c: 0800e6ef .word 0x0800e6ef
  32882. 800e610: 0800e69b .word 0x0800e69b
  32883. 800e614: 0800e6ef .word 0x0800e6ef
  32884. 800e618: 0800e6ef .word 0x0800e6ef
  32885. 800e61c: 0800e6ef .word 0x0800e6ef
  32886. 800e620: 0800e6ab .word 0x0800e6ab
  32887. 800e624: 0800e6ef .word 0x0800e6ef
  32888. 800e628: 0800e6ef .word 0x0800e6ef
  32889. 800e62c: 0800e6ef .word 0x0800e6ef
  32890. 800e630: 0800e6ef .word 0x0800e6ef
  32891. 800e634: 0800e6ef .word 0x0800e6ef
  32892. 800e638: 0800e6ef .word 0x0800e6ef
  32893. 800e63c: 0800e6ef .word 0x0800e6ef
  32894. 800e640: 0800e6bb .word 0x0800e6bb
  32895. 800e644: 0800e6ef .word 0x0800e6ef
  32896. 800e648: 0800e6ef .word 0x0800e6ef
  32897. 800e64c: 0800e6ef .word 0x0800e6ef
  32898. 800e650: 0800e6ef .word 0x0800e6ef
  32899. 800e654: 0800e6ef .word 0x0800e6ef
  32900. 800e658: 0800e6ef .word 0x0800e6ef
  32901. 800e65c: 0800e6ef .word 0x0800e6ef
  32902. 800e660: 0800e6ef .word 0x0800e6ef
  32903. 800e664: 0800e6ef .word 0x0800e6ef
  32904. 800e668: 0800e6ef .word 0x0800e6ef
  32905. 800e66c: 0800e6ef .word 0x0800e6ef
  32906. 800e670: 0800e6ef .word 0x0800e6ef
  32907. 800e674: 0800e6ef .word 0x0800e6ef
  32908. 800e678: 0800e6ef .word 0x0800e6ef
  32909. 800e67c: 0800e6ef .word 0x0800e6ef
  32910. 800e680: 0800e6e1 .word 0x0800e6e1
  32911. 800e684: 2b40 cmp r3, #64 @ 0x40
  32912. 800e686: d02e beq.n 800e6e6 <UART_SetConfig+0xa36>
  32913. 800e688: e031 b.n 800e6ee <UART_SetConfig+0xa3e>
  32914. {
  32915. case UART_CLOCKSOURCE_D2PCLK1:
  32916. pclk = HAL_RCC_GetPCLK1Freq();
  32917. 800e68a: f7fc fbd7 bl 800ae3c <HAL_RCC_GetPCLK1Freq>
  32918. 800e68e: 63f8 str r0, [r7, #60] @ 0x3c
  32919. break;
  32920. 800e690: e033 b.n 800e6fa <UART_SetConfig+0xa4a>
  32921. case UART_CLOCKSOURCE_D2PCLK2:
  32922. pclk = HAL_RCC_GetPCLK2Freq();
  32923. 800e692: f7fc fbe9 bl 800ae68 <HAL_RCC_GetPCLK2Freq>
  32924. 800e696: 63f8 str r0, [r7, #60] @ 0x3c
  32925. break;
  32926. 800e698: e02f b.n 800e6fa <UART_SetConfig+0xa4a>
  32927. case UART_CLOCKSOURCE_PLL2:
  32928. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32929. 800e69a: f107 0324 add.w r3, r7, #36 @ 0x24
  32930. 800e69e: 4618 mov r0, r3
  32931. 800e6a0: f7fd fe3e bl 800c320 <HAL_RCCEx_GetPLL2ClockFreq>
  32932. pclk = pll2_clocks.PLL2_Q_Frequency;
  32933. 800e6a4: 6abb ldr r3, [r7, #40] @ 0x28
  32934. 800e6a6: 63fb str r3, [r7, #60] @ 0x3c
  32935. break;
  32936. 800e6a8: e027 b.n 800e6fa <UART_SetConfig+0xa4a>
  32937. case UART_CLOCKSOURCE_PLL3:
  32938. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32939. 800e6aa: f107 0318 add.w r3, r7, #24
  32940. 800e6ae: 4618 mov r0, r3
  32941. 800e6b0: f7fd ff8a bl 800c5c8 <HAL_RCCEx_GetPLL3ClockFreq>
  32942. pclk = pll3_clocks.PLL3_Q_Frequency;
  32943. 800e6b4: 69fb ldr r3, [r7, #28]
  32944. 800e6b6: 63fb str r3, [r7, #60] @ 0x3c
  32945. break;
  32946. 800e6b8: e01f b.n 800e6fa <UART_SetConfig+0xa4a>
  32947. case UART_CLOCKSOURCE_HSI:
  32948. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  32949. 800e6ba: 4b2d ldr r3, [pc, #180] @ (800e770 <UART_SetConfig+0xac0>)
  32950. 800e6bc: 681b ldr r3, [r3, #0]
  32951. 800e6be: f003 0320 and.w r3, r3, #32
  32952. 800e6c2: 2b00 cmp r3, #0
  32953. 800e6c4: d009 beq.n 800e6da <UART_SetConfig+0xa2a>
  32954. {
  32955. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  32956. 800e6c6: 4b2a ldr r3, [pc, #168] @ (800e770 <UART_SetConfig+0xac0>)
  32957. 800e6c8: 681b ldr r3, [r3, #0]
  32958. 800e6ca: 08db lsrs r3, r3, #3
  32959. 800e6cc: f003 0303 and.w r3, r3, #3
  32960. 800e6d0: 4a28 ldr r2, [pc, #160] @ (800e774 <UART_SetConfig+0xac4>)
  32961. 800e6d2: fa22 f303 lsr.w r3, r2, r3
  32962. 800e6d6: 63fb str r3, [r7, #60] @ 0x3c
  32963. }
  32964. else
  32965. {
  32966. pclk = (uint32_t) HSI_VALUE;
  32967. }
  32968. break;
  32969. 800e6d8: e00f b.n 800e6fa <UART_SetConfig+0xa4a>
  32970. pclk = (uint32_t) HSI_VALUE;
  32971. 800e6da: 4b26 ldr r3, [pc, #152] @ (800e774 <UART_SetConfig+0xac4>)
  32972. 800e6dc: 63fb str r3, [r7, #60] @ 0x3c
  32973. break;
  32974. 800e6de: e00c b.n 800e6fa <UART_SetConfig+0xa4a>
  32975. case UART_CLOCKSOURCE_CSI:
  32976. pclk = (uint32_t) CSI_VALUE;
  32977. 800e6e0: 4b25 ldr r3, [pc, #148] @ (800e778 <UART_SetConfig+0xac8>)
  32978. 800e6e2: 63fb str r3, [r7, #60] @ 0x3c
  32979. break;
  32980. 800e6e4: e009 b.n 800e6fa <UART_SetConfig+0xa4a>
  32981. case UART_CLOCKSOURCE_LSE:
  32982. pclk = (uint32_t) LSE_VALUE;
  32983. 800e6e6: f44f 4300 mov.w r3, #32768 @ 0x8000
  32984. 800e6ea: 63fb str r3, [r7, #60] @ 0x3c
  32985. break;
  32986. 800e6ec: e005 b.n 800e6fa <UART_SetConfig+0xa4a>
  32987. default:
  32988. pclk = 0U;
  32989. 800e6ee: 2300 movs r3, #0
  32990. 800e6f0: 63fb str r3, [r7, #60] @ 0x3c
  32991. ret = HAL_ERROR;
  32992. 800e6f2: 2301 movs r3, #1
  32993. 800e6f4: f887 3042 strb.w r3, [r7, #66] @ 0x42
  32994. break;
  32995. 800e6f8: bf00 nop
  32996. }
  32997. if (pclk != 0U)
  32998. 800e6fa: 6bfb ldr r3, [r7, #60] @ 0x3c
  32999. 800e6fc: 2b00 cmp r3, #0
  33000. 800e6fe: d021 beq.n 800e744 <UART_SetConfig+0xa94>
  33001. {
  33002. /* USARTDIV must be greater than or equal to 0d16 */
  33003. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  33004. 800e700: 697b ldr r3, [r7, #20]
  33005. 800e702: 6a5b ldr r3, [r3, #36] @ 0x24
  33006. 800e704: 4a1d ldr r2, [pc, #116] @ (800e77c <UART_SetConfig+0xacc>)
  33007. 800e706: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  33008. 800e70a: 461a mov r2, r3
  33009. 800e70c: 6bfb ldr r3, [r7, #60] @ 0x3c
  33010. 800e70e: fbb3 f2f2 udiv r2, r3, r2
  33011. 800e712: 697b ldr r3, [r7, #20]
  33012. 800e714: 685b ldr r3, [r3, #4]
  33013. 800e716: 085b lsrs r3, r3, #1
  33014. 800e718: 441a add r2, r3
  33015. 800e71a: 697b ldr r3, [r7, #20]
  33016. 800e71c: 685b ldr r3, [r3, #4]
  33017. 800e71e: fbb2 f3f3 udiv r3, r2, r3
  33018. 800e722: 63bb str r3, [r7, #56] @ 0x38
  33019. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  33020. 800e724: 6bbb ldr r3, [r7, #56] @ 0x38
  33021. 800e726: 2b0f cmp r3, #15
  33022. 800e728: d909 bls.n 800e73e <UART_SetConfig+0xa8e>
  33023. 800e72a: 6bbb ldr r3, [r7, #56] @ 0x38
  33024. 800e72c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  33025. 800e730: d205 bcs.n 800e73e <UART_SetConfig+0xa8e>
  33026. {
  33027. huart->Instance->BRR = (uint16_t)usartdiv;
  33028. 800e732: 6bbb ldr r3, [r7, #56] @ 0x38
  33029. 800e734: b29a uxth r2, r3
  33030. 800e736: 697b ldr r3, [r7, #20]
  33031. 800e738: 681b ldr r3, [r3, #0]
  33032. 800e73a: 60da str r2, [r3, #12]
  33033. 800e73c: e002 b.n 800e744 <UART_SetConfig+0xa94>
  33034. }
  33035. else
  33036. {
  33037. ret = HAL_ERROR;
  33038. 800e73e: 2301 movs r3, #1
  33039. 800e740: f887 3042 strb.w r3, [r7, #66] @ 0x42
  33040. }
  33041. }
  33042. }
  33043. /* Initialize the number of data to process during RX/TX ISR execution */
  33044. huart->NbTxDataToProcess = 1;
  33045. 800e744: 697b ldr r3, [r7, #20]
  33046. 800e746: 2201 movs r2, #1
  33047. 800e748: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  33048. huart->NbRxDataToProcess = 1;
  33049. 800e74c: 697b ldr r3, [r7, #20]
  33050. 800e74e: 2201 movs r2, #1
  33051. 800e750: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  33052. /* Clear ISR function pointers */
  33053. huart->RxISR = NULL;
  33054. 800e754: 697b ldr r3, [r7, #20]
  33055. 800e756: 2200 movs r2, #0
  33056. 800e758: 675a str r2, [r3, #116] @ 0x74
  33057. huart->TxISR = NULL;
  33058. 800e75a: 697b ldr r3, [r7, #20]
  33059. 800e75c: 2200 movs r2, #0
  33060. 800e75e: 679a str r2, [r3, #120] @ 0x78
  33061. return ret;
  33062. 800e760: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  33063. }
  33064. 800e764: 4618 mov r0, r3
  33065. 800e766: 3748 adds r7, #72 @ 0x48
  33066. 800e768: 46bd mov sp, r7
  33067. 800e76a: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  33068. 800e76e: bf00 nop
  33069. 800e770: 58024400 .word 0x58024400
  33070. 800e774: 03d09000 .word 0x03d09000
  33071. 800e778: 003d0900 .word 0x003d0900
  33072. 800e77c: 08031320 .word 0x08031320
  33073. 0800e780 <UART_AdvFeatureConfig>:
  33074. * @brief Configure the UART peripheral advanced features.
  33075. * @param huart UART handle.
  33076. * @retval None
  33077. */
  33078. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  33079. {
  33080. 800e780: b480 push {r7}
  33081. 800e782: b083 sub sp, #12
  33082. 800e784: af00 add r7, sp, #0
  33083. 800e786: 6078 str r0, [r7, #4]
  33084. /* Check whether the set of advanced features to configure is properly set */
  33085. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  33086. /* if required, configure RX/TX pins swap */
  33087. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  33088. 800e788: 687b ldr r3, [r7, #4]
  33089. 800e78a: 6a9b ldr r3, [r3, #40] @ 0x28
  33090. 800e78c: f003 0308 and.w r3, r3, #8
  33091. 800e790: 2b00 cmp r3, #0
  33092. 800e792: d00a beq.n 800e7aa <UART_AdvFeatureConfig+0x2a>
  33093. {
  33094. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  33095. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  33096. 800e794: 687b ldr r3, [r7, #4]
  33097. 800e796: 681b ldr r3, [r3, #0]
  33098. 800e798: 685b ldr r3, [r3, #4]
  33099. 800e79a: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  33100. 800e79e: 687b ldr r3, [r7, #4]
  33101. 800e7a0: 6b9a ldr r2, [r3, #56] @ 0x38
  33102. 800e7a2: 687b ldr r3, [r7, #4]
  33103. 800e7a4: 681b ldr r3, [r3, #0]
  33104. 800e7a6: 430a orrs r2, r1
  33105. 800e7a8: 605a str r2, [r3, #4]
  33106. }
  33107. /* if required, configure TX pin active level inversion */
  33108. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  33109. 800e7aa: 687b ldr r3, [r7, #4]
  33110. 800e7ac: 6a9b ldr r3, [r3, #40] @ 0x28
  33111. 800e7ae: f003 0301 and.w r3, r3, #1
  33112. 800e7b2: 2b00 cmp r3, #0
  33113. 800e7b4: d00a beq.n 800e7cc <UART_AdvFeatureConfig+0x4c>
  33114. {
  33115. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  33116. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  33117. 800e7b6: 687b ldr r3, [r7, #4]
  33118. 800e7b8: 681b ldr r3, [r3, #0]
  33119. 800e7ba: 685b ldr r3, [r3, #4]
  33120. 800e7bc: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  33121. 800e7c0: 687b ldr r3, [r7, #4]
  33122. 800e7c2: 6ada ldr r2, [r3, #44] @ 0x2c
  33123. 800e7c4: 687b ldr r3, [r7, #4]
  33124. 800e7c6: 681b ldr r3, [r3, #0]
  33125. 800e7c8: 430a orrs r2, r1
  33126. 800e7ca: 605a str r2, [r3, #4]
  33127. }
  33128. /* if required, configure RX pin active level inversion */
  33129. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  33130. 800e7cc: 687b ldr r3, [r7, #4]
  33131. 800e7ce: 6a9b ldr r3, [r3, #40] @ 0x28
  33132. 800e7d0: f003 0302 and.w r3, r3, #2
  33133. 800e7d4: 2b00 cmp r3, #0
  33134. 800e7d6: d00a beq.n 800e7ee <UART_AdvFeatureConfig+0x6e>
  33135. {
  33136. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  33137. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  33138. 800e7d8: 687b ldr r3, [r7, #4]
  33139. 800e7da: 681b ldr r3, [r3, #0]
  33140. 800e7dc: 685b ldr r3, [r3, #4]
  33141. 800e7de: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  33142. 800e7e2: 687b ldr r3, [r7, #4]
  33143. 800e7e4: 6b1a ldr r2, [r3, #48] @ 0x30
  33144. 800e7e6: 687b ldr r3, [r7, #4]
  33145. 800e7e8: 681b ldr r3, [r3, #0]
  33146. 800e7ea: 430a orrs r2, r1
  33147. 800e7ec: 605a str r2, [r3, #4]
  33148. }
  33149. /* if required, configure data inversion */
  33150. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  33151. 800e7ee: 687b ldr r3, [r7, #4]
  33152. 800e7f0: 6a9b ldr r3, [r3, #40] @ 0x28
  33153. 800e7f2: f003 0304 and.w r3, r3, #4
  33154. 800e7f6: 2b00 cmp r3, #0
  33155. 800e7f8: d00a beq.n 800e810 <UART_AdvFeatureConfig+0x90>
  33156. {
  33157. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  33158. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  33159. 800e7fa: 687b ldr r3, [r7, #4]
  33160. 800e7fc: 681b ldr r3, [r3, #0]
  33161. 800e7fe: 685b ldr r3, [r3, #4]
  33162. 800e800: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  33163. 800e804: 687b ldr r3, [r7, #4]
  33164. 800e806: 6b5a ldr r2, [r3, #52] @ 0x34
  33165. 800e808: 687b ldr r3, [r7, #4]
  33166. 800e80a: 681b ldr r3, [r3, #0]
  33167. 800e80c: 430a orrs r2, r1
  33168. 800e80e: 605a str r2, [r3, #4]
  33169. }
  33170. /* if required, configure RX overrun detection disabling */
  33171. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  33172. 800e810: 687b ldr r3, [r7, #4]
  33173. 800e812: 6a9b ldr r3, [r3, #40] @ 0x28
  33174. 800e814: f003 0310 and.w r3, r3, #16
  33175. 800e818: 2b00 cmp r3, #0
  33176. 800e81a: d00a beq.n 800e832 <UART_AdvFeatureConfig+0xb2>
  33177. {
  33178. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  33179. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  33180. 800e81c: 687b ldr r3, [r7, #4]
  33181. 800e81e: 681b ldr r3, [r3, #0]
  33182. 800e820: 689b ldr r3, [r3, #8]
  33183. 800e822: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  33184. 800e826: 687b ldr r3, [r7, #4]
  33185. 800e828: 6bda ldr r2, [r3, #60] @ 0x3c
  33186. 800e82a: 687b ldr r3, [r7, #4]
  33187. 800e82c: 681b ldr r3, [r3, #0]
  33188. 800e82e: 430a orrs r2, r1
  33189. 800e830: 609a str r2, [r3, #8]
  33190. }
  33191. /* if required, configure DMA disabling on reception error */
  33192. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  33193. 800e832: 687b ldr r3, [r7, #4]
  33194. 800e834: 6a9b ldr r3, [r3, #40] @ 0x28
  33195. 800e836: f003 0320 and.w r3, r3, #32
  33196. 800e83a: 2b00 cmp r3, #0
  33197. 800e83c: d00a beq.n 800e854 <UART_AdvFeatureConfig+0xd4>
  33198. {
  33199. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  33200. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  33201. 800e83e: 687b ldr r3, [r7, #4]
  33202. 800e840: 681b ldr r3, [r3, #0]
  33203. 800e842: 689b ldr r3, [r3, #8]
  33204. 800e844: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  33205. 800e848: 687b ldr r3, [r7, #4]
  33206. 800e84a: 6c1a ldr r2, [r3, #64] @ 0x40
  33207. 800e84c: 687b ldr r3, [r7, #4]
  33208. 800e84e: 681b ldr r3, [r3, #0]
  33209. 800e850: 430a orrs r2, r1
  33210. 800e852: 609a str r2, [r3, #8]
  33211. }
  33212. /* if required, configure auto Baud rate detection scheme */
  33213. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  33214. 800e854: 687b ldr r3, [r7, #4]
  33215. 800e856: 6a9b ldr r3, [r3, #40] @ 0x28
  33216. 800e858: f003 0340 and.w r3, r3, #64 @ 0x40
  33217. 800e85c: 2b00 cmp r3, #0
  33218. 800e85e: d01a beq.n 800e896 <UART_AdvFeatureConfig+0x116>
  33219. {
  33220. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  33221. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  33222. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  33223. 800e860: 687b ldr r3, [r7, #4]
  33224. 800e862: 681b ldr r3, [r3, #0]
  33225. 800e864: 685b ldr r3, [r3, #4]
  33226. 800e866: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  33227. 800e86a: 687b ldr r3, [r7, #4]
  33228. 800e86c: 6c5a ldr r2, [r3, #68] @ 0x44
  33229. 800e86e: 687b ldr r3, [r7, #4]
  33230. 800e870: 681b ldr r3, [r3, #0]
  33231. 800e872: 430a orrs r2, r1
  33232. 800e874: 605a str r2, [r3, #4]
  33233. /* set auto Baudrate detection parameters if detection is enabled */
  33234. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  33235. 800e876: 687b ldr r3, [r7, #4]
  33236. 800e878: 6c5b ldr r3, [r3, #68] @ 0x44
  33237. 800e87a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  33238. 800e87e: d10a bne.n 800e896 <UART_AdvFeatureConfig+0x116>
  33239. {
  33240. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  33241. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  33242. 800e880: 687b ldr r3, [r7, #4]
  33243. 800e882: 681b ldr r3, [r3, #0]
  33244. 800e884: 685b ldr r3, [r3, #4]
  33245. 800e886: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  33246. 800e88a: 687b ldr r3, [r7, #4]
  33247. 800e88c: 6c9a ldr r2, [r3, #72] @ 0x48
  33248. 800e88e: 687b ldr r3, [r7, #4]
  33249. 800e890: 681b ldr r3, [r3, #0]
  33250. 800e892: 430a orrs r2, r1
  33251. 800e894: 605a str r2, [r3, #4]
  33252. }
  33253. }
  33254. /* if required, configure MSB first on communication line */
  33255. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  33256. 800e896: 687b ldr r3, [r7, #4]
  33257. 800e898: 6a9b ldr r3, [r3, #40] @ 0x28
  33258. 800e89a: f003 0380 and.w r3, r3, #128 @ 0x80
  33259. 800e89e: 2b00 cmp r3, #0
  33260. 800e8a0: d00a beq.n 800e8b8 <UART_AdvFeatureConfig+0x138>
  33261. {
  33262. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  33263. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  33264. 800e8a2: 687b ldr r3, [r7, #4]
  33265. 800e8a4: 681b ldr r3, [r3, #0]
  33266. 800e8a6: 685b ldr r3, [r3, #4]
  33267. 800e8a8: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  33268. 800e8ac: 687b ldr r3, [r7, #4]
  33269. 800e8ae: 6cda ldr r2, [r3, #76] @ 0x4c
  33270. 800e8b0: 687b ldr r3, [r7, #4]
  33271. 800e8b2: 681b ldr r3, [r3, #0]
  33272. 800e8b4: 430a orrs r2, r1
  33273. 800e8b6: 605a str r2, [r3, #4]
  33274. }
  33275. }
  33276. 800e8b8: bf00 nop
  33277. 800e8ba: 370c adds r7, #12
  33278. 800e8bc: 46bd mov sp, r7
  33279. 800e8be: f85d 7b04 ldr.w r7, [sp], #4
  33280. 800e8c2: 4770 bx lr
  33281. 0800e8c4 <UART_CheckIdleState>:
  33282. * @brief Check the UART Idle State.
  33283. * @param huart UART handle.
  33284. * @retval HAL status
  33285. */
  33286. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  33287. {
  33288. 800e8c4: b580 push {r7, lr}
  33289. 800e8c6: b098 sub sp, #96 @ 0x60
  33290. 800e8c8: af02 add r7, sp, #8
  33291. 800e8ca: 6078 str r0, [r7, #4]
  33292. uint32_t tickstart;
  33293. /* Initialize the UART ErrorCode */
  33294. huart->ErrorCode = HAL_UART_ERROR_NONE;
  33295. 800e8cc: 687b ldr r3, [r7, #4]
  33296. 800e8ce: 2200 movs r2, #0
  33297. 800e8d0: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33298. /* Init tickstart for timeout management */
  33299. tickstart = HAL_GetTick();
  33300. 800e8d4: f7f6 fcb4 bl 8005240 <HAL_GetTick>
  33301. 800e8d8: 6578 str r0, [r7, #84] @ 0x54
  33302. /* Check if the Transmitter is enabled */
  33303. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  33304. 800e8da: 687b ldr r3, [r7, #4]
  33305. 800e8dc: 681b ldr r3, [r3, #0]
  33306. 800e8de: 681b ldr r3, [r3, #0]
  33307. 800e8e0: f003 0308 and.w r3, r3, #8
  33308. 800e8e4: 2b08 cmp r3, #8
  33309. 800e8e6: d12f bne.n 800e948 <UART_CheckIdleState+0x84>
  33310. {
  33311. /* Wait until TEACK flag is set */
  33312. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  33313. 800e8e8: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  33314. 800e8ec: 9300 str r3, [sp, #0]
  33315. 800e8ee: 6d7b ldr r3, [r7, #84] @ 0x54
  33316. 800e8f0: 2200 movs r2, #0
  33317. 800e8f2: f44f 1100 mov.w r1, #2097152 @ 0x200000
  33318. 800e8f6: 6878 ldr r0, [r7, #4]
  33319. 800e8f8: f000 f88e bl 800ea18 <UART_WaitOnFlagUntilTimeout>
  33320. 800e8fc: 4603 mov r3, r0
  33321. 800e8fe: 2b00 cmp r3, #0
  33322. 800e900: d022 beq.n 800e948 <UART_CheckIdleState+0x84>
  33323. {
  33324. /* Disable TXE interrupt for the interrupt process */
  33325. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  33326. 800e902: 687b ldr r3, [r7, #4]
  33327. 800e904: 681b ldr r3, [r3, #0]
  33328. 800e906: 63bb str r3, [r7, #56] @ 0x38
  33329. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33330. 800e908: 6bbb ldr r3, [r7, #56] @ 0x38
  33331. 800e90a: e853 3f00 ldrex r3, [r3]
  33332. 800e90e: 637b str r3, [r7, #52] @ 0x34
  33333. return(result);
  33334. 800e910: 6b7b ldr r3, [r7, #52] @ 0x34
  33335. 800e912: f023 0380 bic.w r3, r3, #128 @ 0x80
  33336. 800e916: 653b str r3, [r7, #80] @ 0x50
  33337. 800e918: 687b ldr r3, [r7, #4]
  33338. 800e91a: 681b ldr r3, [r3, #0]
  33339. 800e91c: 461a mov r2, r3
  33340. 800e91e: 6d3b ldr r3, [r7, #80] @ 0x50
  33341. 800e920: 647b str r3, [r7, #68] @ 0x44
  33342. 800e922: 643a str r2, [r7, #64] @ 0x40
  33343. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33344. 800e924: 6c39 ldr r1, [r7, #64] @ 0x40
  33345. 800e926: 6c7a ldr r2, [r7, #68] @ 0x44
  33346. 800e928: e841 2300 strex r3, r2, [r1]
  33347. 800e92c: 63fb str r3, [r7, #60] @ 0x3c
  33348. return(result);
  33349. 800e92e: 6bfb ldr r3, [r7, #60] @ 0x3c
  33350. 800e930: 2b00 cmp r3, #0
  33351. 800e932: d1e6 bne.n 800e902 <UART_CheckIdleState+0x3e>
  33352. huart->gState = HAL_UART_STATE_READY;
  33353. 800e934: 687b ldr r3, [r7, #4]
  33354. 800e936: 2220 movs r2, #32
  33355. 800e938: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  33356. __HAL_UNLOCK(huart);
  33357. 800e93c: 687b ldr r3, [r7, #4]
  33358. 800e93e: 2200 movs r2, #0
  33359. 800e940: f883 2084 strb.w r2, [r3, #132] @ 0x84
  33360. /* Timeout occurred */
  33361. return HAL_TIMEOUT;
  33362. 800e944: 2303 movs r3, #3
  33363. 800e946: e063 b.n 800ea10 <UART_CheckIdleState+0x14c>
  33364. }
  33365. }
  33366. /* Check if the Receiver is enabled */
  33367. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  33368. 800e948: 687b ldr r3, [r7, #4]
  33369. 800e94a: 681b ldr r3, [r3, #0]
  33370. 800e94c: 681b ldr r3, [r3, #0]
  33371. 800e94e: f003 0304 and.w r3, r3, #4
  33372. 800e952: 2b04 cmp r3, #4
  33373. 800e954: d149 bne.n 800e9ea <UART_CheckIdleState+0x126>
  33374. {
  33375. /* Wait until REACK flag is set */
  33376. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  33377. 800e956: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  33378. 800e95a: 9300 str r3, [sp, #0]
  33379. 800e95c: 6d7b ldr r3, [r7, #84] @ 0x54
  33380. 800e95e: 2200 movs r2, #0
  33381. 800e960: f44f 0180 mov.w r1, #4194304 @ 0x400000
  33382. 800e964: 6878 ldr r0, [r7, #4]
  33383. 800e966: f000 f857 bl 800ea18 <UART_WaitOnFlagUntilTimeout>
  33384. 800e96a: 4603 mov r3, r0
  33385. 800e96c: 2b00 cmp r3, #0
  33386. 800e96e: d03c beq.n 800e9ea <UART_CheckIdleState+0x126>
  33387. {
  33388. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  33389. interrupts for the interrupt process */
  33390. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  33391. 800e970: 687b ldr r3, [r7, #4]
  33392. 800e972: 681b ldr r3, [r3, #0]
  33393. 800e974: 627b str r3, [r7, #36] @ 0x24
  33394. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33395. 800e976: 6a7b ldr r3, [r7, #36] @ 0x24
  33396. 800e978: e853 3f00 ldrex r3, [r3]
  33397. 800e97c: 623b str r3, [r7, #32]
  33398. return(result);
  33399. 800e97e: 6a3b ldr r3, [r7, #32]
  33400. 800e980: f423 7390 bic.w r3, r3, #288 @ 0x120
  33401. 800e984: 64fb str r3, [r7, #76] @ 0x4c
  33402. 800e986: 687b ldr r3, [r7, #4]
  33403. 800e988: 681b ldr r3, [r3, #0]
  33404. 800e98a: 461a mov r2, r3
  33405. 800e98c: 6cfb ldr r3, [r7, #76] @ 0x4c
  33406. 800e98e: 633b str r3, [r7, #48] @ 0x30
  33407. 800e990: 62fa str r2, [r7, #44] @ 0x2c
  33408. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33409. 800e992: 6af9 ldr r1, [r7, #44] @ 0x2c
  33410. 800e994: 6b3a ldr r2, [r7, #48] @ 0x30
  33411. 800e996: e841 2300 strex r3, r2, [r1]
  33412. 800e99a: 62bb str r3, [r7, #40] @ 0x28
  33413. return(result);
  33414. 800e99c: 6abb ldr r3, [r7, #40] @ 0x28
  33415. 800e99e: 2b00 cmp r3, #0
  33416. 800e9a0: d1e6 bne.n 800e970 <UART_CheckIdleState+0xac>
  33417. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  33418. 800e9a2: 687b ldr r3, [r7, #4]
  33419. 800e9a4: 681b ldr r3, [r3, #0]
  33420. 800e9a6: 3308 adds r3, #8
  33421. 800e9a8: 613b str r3, [r7, #16]
  33422. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33423. 800e9aa: 693b ldr r3, [r7, #16]
  33424. 800e9ac: e853 3f00 ldrex r3, [r3]
  33425. 800e9b0: 60fb str r3, [r7, #12]
  33426. return(result);
  33427. 800e9b2: 68fb ldr r3, [r7, #12]
  33428. 800e9b4: f023 0301 bic.w r3, r3, #1
  33429. 800e9b8: 64bb str r3, [r7, #72] @ 0x48
  33430. 800e9ba: 687b ldr r3, [r7, #4]
  33431. 800e9bc: 681b ldr r3, [r3, #0]
  33432. 800e9be: 3308 adds r3, #8
  33433. 800e9c0: 6cba ldr r2, [r7, #72] @ 0x48
  33434. 800e9c2: 61fa str r2, [r7, #28]
  33435. 800e9c4: 61bb str r3, [r7, #24]
  33436. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33437. 800e9c6: 69b9 ldr r1, [r7, #24]
  33438. 800e9c8: 69fa ldr r2, [r7, #28]
  33439. 800e9ca: e841 2300 strex r3, r2, [r1]
  33440. 800e9ce: 617b str r3, [r7, #20]
  33441. return(result);
  33442. 800e9d0: 697b ldr r3, [r7, #20]
  33443. 800e9d2: 2b00 cmp r3, #0
  33444. 800e9d4: d1e5 bne.n 800e9a2 <UART_CheckIdleState+0xde>
  33445. huart->RxState = HAL_UART_STATE_READY;
  33446. 800e9d6: 687b ldr r3, [r7, #4]
  33447. 800e9d8: 2220 movs r2, #32
  33448. 800e9da: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  33449. __HAL_UNLOCK(huart);
  33450. 800e9de: 687b ldr r3, [r7, #4]
  33451. 800e9e0: 2200 movs r2, #0
  33452. 800e9e2: f883 2084 strb.w r2, [r3, #132] @ 0x84
  33453. /* Timeout occurred */
  33454. return HAL_TIMEOUT;
  33455. 800e9e6: 2303 movs r3, #3
  33456. 800e9e8: e012 b.n 800ea10 <UART_CheckIdleState+0x14c>
  33457. }
  33458. }
  33459. /* Initialize the UART State */
  33460. huart->gState = HAL_UART_STATE_READY;
  33461. 800e9ea: 687b ldr r3, [r7, #4]
  33462. 800e9ec: 2220 movs r2, #32
  33463. 800e9ee: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  33464. huart->RxState = HAL_UART_STATE_READY;
  33465. 800e9f2: 687b ldr r3, [r7, #4]
  33466. 800e9f4: 2220 movs r2, #32
  33467. 800e9f6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  33468. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  33469. 800e9fa: 687b ldr r3, [r7, #4]
  33470. 800e9fc: 2200 movs r2, #0
  33471. 800e9fe: 66da str r2, [r3, #108] @ 0x6c
  33472. huart->RxEventType = HAL_UART_RXEVENT_TC;
  33473. 800ea00: 687b ldr r3, [r7, #4]
  33474. 800ea02: 2200 movs r2, #0
  33475. 800ea04: 671a str r2, [r3, #112] @ 0x70
  33476. __HAL_UNLOCK(huart);
  33477. 800ea06: 687b ldr r3, [r7, #4]
  33478. 800ea08: 2200 movs r2, #0
  33479. 800ea0a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  33480. return HAL_OK;
  33481. 800ea0e: 2300 movs r3, #0
  33482. }
  33483. 800ea10: 4618 mov r0, r3
  33484. 800ea12: 3758 adds r7, #88 @ 0x58
  33485. 800ea14: 46bd mov sp, r7
  33486. 800ea16: bd80 pop {r7, pc}
  33487. 0800ea18 <UART_WaitOnFlagUntilTimeout>:
  33488. * @param Timeout Timeout duration
  33489. * @retval HAL status
  33490. */
  33491. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  33492. uint32_t Tickstart, uint32_t Timeout)
  33493. {
  33494. 800ea18: b580 push {r7, lr}
  33495. 800ea1a: b084 sub sp, #16
  33496. 800ea1c: af00 add r7, sp, #0
  33497. 800ea1e: 60f8 str r0, [r7, #12]
  33498. 800ea20: 60b9 str r1, [r7, #8]
  33499. 800ea22: 603b str r3, [r7, #0]
  33500. 800ea24: 4613 mov r3, r2
  33501. 800ea26: 71fb strb r3, [r7, #7]
  33502. /* Wait until flag is set */
  33503. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  33504. 800ea28: e04f b.n 800eaca <UART_WaitOnFlagUntilTimeout+0xb2>
  33505. {
  33506. /* Check for the Timeout */
  33507. if (Timeout != HAL_MAX_DELAY)
  33508. 800ea2a: 69bb ldr r3, [r7, #24]
  33509. 800ea2c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  33510. 800ea30: d04b beq.n 800eaca <UART_WaitOnFlagUntilTimeout+0xb2>
  33511. {
  33512. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  33513. 800ea32: f7f6 fc05 bl 8005240 <HAL_GetTick>
  33514. 800ea36: 4602 mov r2, r0
  33515. 800ea38: 683b ldr r3, [r7, #0]
  33516. 800ea3a: 1ad3 subs r3, r2, r3
  33517. 800ea3c: 69ba ldr r2, [r7, #24]
  33518. 800ea3e: 429a cmp r2, r3
  33519. 800ea40: d302 bcc.n 800ea48 <UART_WaitOnFlagUntilTimeout+0x30>
  33520. 800ea42: 69bb ldr r3, [r7, #24]
  33521. 800ea44: 2b00 cmp r3, #0
  33522. 800ea46: d101 bne.n 800ea4c <UART_WaitOnFlagUntilTimeout+0x34>
  33523. {
  33524. return HAL_TIMEOUT;
  33525. 800ea48: 2303 movs r3, #3
  33526. 800ea4a: e04e b.n 800eaea <UART_WaitOnFlagUntilTimeout+0xd2>
  33527. }
  33528. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  33529. 800ea4c: 68fb ldr r3, [r7, #12]
  33530. 800ea4e: 681b ldr r3, [r3, #0]
  33531. 800ea50: 681b ldr r3, [r3, #0]
  33532. 800ea52: f003 0304 and.w r3, r3, #4
  33533. 800ea56: 2b00 cmp r3, #0
  33534. 800ea58: d037 beq.n 800eaca <UART_WaitOnFlagUntilTimeout+0xb2>
  33535. 800ea5a: 68bb ldr r3, [r7, #8]
  33536. 800ea5c: 2b80 cmp r3, #128 @ 0x80
  33537. 800ea5e: d034 beq.n 800eaca <UART_WaitOnFlagUntilTimeout+0xb2>
  33538. 800ea60: 68bb ldr r3, [r7, #8]
  33539. 800ea62: 2b40 cmp r3, #64 @ 0x40
  33540. 800ea64: d031 beq.n 800eaca <UART_WaitOnFlagUntilTimeout+0xb2>
  33541. {
  33542. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  33543. 800ea66: 68fb ldr r3, [r7, #12]
  33544. 800ea68: 681b ldr r3, [r3, #0]
  33545. 800ea6a: 69db ldr r3, [r3, #28]
  33546. 800ea6c: f003 0308 and.w r3, r3, #8
  33547. 800ea70: 2b08 cmp r3, #8
  33548. 800ea72: d110 bne.n 800ea96 <UART_WaitOnFlagUntilTimeout+0x7e>
  33549. {
  33550. /* Clear Overrun Error flag*/
  33551. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  33552. 800ea74: 68fb ldr r3, [r7, #12]
  33553. 800ea76: 681b ldr r3, [r3, #0]
  33554. 800ea78: 2208 movs r2, #8
  33555. 800ea7a: 621a str r2, [r3, #32]
  33556. /* Blocking error : transfer is aborted
  33557. Set the UART state ready to be able to start again the process,
  33558. Disable Rx Interrupts if ongoing */
  33559. UART_EndRxTransfer(huart);
  33560. 800ea7c: 68f8 ldr r0, [r7, #12]
  33561. 800ea7e: f000 f95b bl 800ed38 <UART_EndRxTransfer>
  33562. huart->ErrorCode = HAL_UART_ERROR_ORE;
  33563. 800ea82: 68fb ldr r3, [r7, #12]
  33564. 800ea84: 2208 movs r2, #8
  33565. 800ea86: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33566. /* Process Unlocked */
  33567. __HAL_UNLOCK(huart);
  33568. 800ea8a: 68fb ldr r3, [r7, #12]
  33569. 800ea8c: 2200 movs r2, #0
  33570. 800ea8e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  33571. return HAL_ERROR;
  33572. 800ea92: 2301 movs r3, #1
  33573. 800ea94: e029 b.n 800eaea <UART_WaitOnFlagUntilTimeout+0xd2>
  33574. }
  33575. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  33576. 800ea96: 68fb ldr r3, [r7, #12]
  33577. 800ea98: 681b ldr r3, [r3, #0]
  33578. 800ea9a: 69db ldr r3, [r3, #28]
  33579. 800ea9c: f403 6300 and.w r3, r3, #2048 @ 0x800
  33580. 800eaa0: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  33581. 800eaa4: d111 bne.n 800eaca <UART_WaitOnFlagUntilTimeout+0xb2>
  33582. {
  33583. /* Clear Receiver Timeout flag*/
  33584. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  33585. 800eaa6: 68fb ldr r3, [r7, #12]
  33586. 800eaa8: 681b ldr r3, [r3, #0]
  33587. 800eaaa: f44f 6200 mov.w r2, #2048 @ 0x800
  33588. 800eaae: 621a str r2, [r3, #32]
  33589. /* Blocking error : transfer is aborted
  33590. Set the UART state ready to be able to start again the process,
  33591. Disable Rx Interrupts if ongoing */
  33592. UART_EndRxTransfer(huart);
  33593. 800eab0: 68f8 ldr r0, [r7, #12]
  33594. 800eab2: f000 f941 bl 800ed38 <UART_EndRxTransfer>
  33595. huart->ErrorCode = HAL_UART_ERROR_RTO;
  33596. 800eab6: 68fb ldr r3, [r7, #12]
  33597. 800eab8: 2220 movs r2, #32
  33598. 800eaba: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33599. /* Process Unlocked */
  33600. __HAL_UNLOCK(huart);
  33601. 800eabe: 68fb ldr r3, [r7, #12]
  33602. 800eac0: 2200 movs r2, #0
  33603. 800eac2: f883 2084 strb.w r2, [r3, #132] @ 0x84
  33604. return HAL_TIMEOUT;
  33605. 800eac6: 2303 movs r3, #3
  33606. 800eac8: e00f b.n 800eaea <UART_WaitOnFlagUntilTimeout+0xd2>
  33607. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  33608. 800eaca: 68fb ldr r3, [r7, #12]
  33609. 800eacc: 681b ldr r3, [r3, #0]
  33610. 800eace: 69da ldr r2, [r3, #28]
  33611. 800ead0: 68bb ldr r3, [r7, #8]
  33612. 800ead2: 4013 ands r3, r2
  33613. 800ead4: 68ba ldr r2, [r7, #8]
  33614. 800ead6: 429a cmp r2, r3
  33615. 800ead8: bf0c ite eq
  33616. 800eada: 2301 moveq r3, #1
  33617. 800eadc: 2300 movne r3, #0
  33618. 800eade: b2db uxtb r3, r3
  33619. 800eae0: 461a mov r2, r3
  33620. 800eae2: 79fb ldrb r3, [r7, #7]
  33621. 800eae4: 429a cmp r2, r3
  33622. 800eae6: d0a0 beq.n 800ea2a <UART_WaitOnFlagUntilTimeout+0x12>
  33623. }
  33624. }
  33625. }
  33626. }
  33627. return HAL_OK;
  33628. 800eae8: 2300 movs r3, #0
  33629. }
  33630. 800eaea: 4618 mov r0, r3
  33631. 800eaec: 3710 adds r7, #16
  33632. 800eaee: 46bd mov sp, r7
  33633. 800eaf0: bd80 pop {r7, pc}
  33634. ...
  33635. 0800eaf4 <UART_Start_Receive_IT>:
  33636. * @param pData Pointer to data buffer (u8 or u16 data elements).
  33637. * @param Size Amount of data elements (u8 or u16) to be received.
  33638. * @retval HAL status
  33639. */
  33640. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  33641. {
  33642. 800eaf4: b480 push {r7}
  33643. 800eaf6: b0a3 sub sp, #140 @ 0x8c
  33644. 800eaf8: af00 add r7, sp, #0
  33645. 800eafa: 60f8 str r0, [r7, #12]
  33646. 800eafc: 60b9 str r1, [r7, #8]
  33647. 800eafe: 4613 mov r3, r2
  33648. 800eb00: 80fb strh r3, [r7, #6]
  33649. huart->pRxBuffPtr = pData;
  33650. 800eb02: 68fb ldr r3, [r7, #12]
  33651. 800eb04: 68ba ldr r2, [r7, #8]
  33652. 800eb06: 659a str r2, [r3, #88] @ 0x58
  33653. huart->RxXferSize = Size;
  33654. 800eb08: 68fb ldr r3, [r7, #12]
  33655. 800eb0a: 88fa ldrh r2, [r7, #6]
  33656. 800eb0c: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  33657. huart->RxXferCount = Size;
  33658. 800eb10: 68fb ldr r3, [r7, #12]
  33659. 800eb12: 88fa ldrh r2, [r7, #6]
  33660. 800eb14: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  33661. huart->RxISR = NULL;
  33662. 800eb18: 68fb ldr r3, [r7, #12]
  33663. 800eb1a: 2200 movs r2, #0
  33664. 800eb1c: 675a str r2, [r3, #116] @ 0x74
  33665. /* Computation of UART mask to apply to RDR register */
  33666. UART_MASK_COMPUTATION(huart);
  33667. 800eb1e: 68fb ldr r3, [r7, #12]
  33668. 800eb20: 689b ldr r3, [r3, #8]
  33669. 800eb22: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  33670. 800eb26: d10e bne.n 800eb46 <UART_Start_Receive_IT+0x52>
  33671. 800eb28: 68fb ldr r3, [r7, #12]
  33672. 800eb2a: 691b ldr r3, [r3, #16]
  33673. 800eb2c: 2b00 cmp r3, #0
  33674. 800eb2e: d105 bne.n 800eb3c <UART_Start_Receive_IT+0x48>
  33675. 800eb30: 68fb ldr r3, [r7, #12]
  33676. 800eb32: f240 12ff movw r2, #511 @ 0x1ff
  33677. 800eb36: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  33678. 800eb3a: e02d b.n 800eb98 <UART_Start_Receive_IT+0xa4>
  33679. 800eb3c: 68fb ldr r3, [r7, #12]
  33680. 800eb3e: 22ff movs r2, #255 @ 0xff
  33681. 800eb40: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  33682. 800eb44: e028 b.n 800eb98 <UART_Start_Receive_IT+0xa4>
  33683. 800eb46: 68fb ldr r3, [r7, #12]
  33684. 800eb48: 689b ldr r3, [r3, #8]
  33685. 800eb4a: 2b00 cmp r3, #0
  33686. 800eb4c: d10d bne.n 800eb6a <UART_Start_Receive_IT+0x76>
  33687. 800eb4e: 68fb ldr r3, [r7, #12]
  33688. 800eb50: 691b ldr r3, [r3, #16]
  33689. 800eb52: 2b00 cmp r3, #0
  33690. 800eb54: d104 bne.n 800eb60 <UART_Start_Receive_IT+0x6c>
  33691. 800eb56: 68fb ldr r3, [r7, #12]
  33692. 800eb58: 22ff movs r2, #255 @ 0xff
  33693. 800eb5a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  33694. 800eb5e: e01b b.n 800eb98 <UART_Start_Receive_IT+0xa4>
  33695. 800eb60: 68fb ldr r3, [r7, #12]
  33696. 800eb62: 227f movs r2, #127 @ 0x7f
  33697. 800eb64: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  33698. 800eb68: e016 b.n 800eb98 <UART_Start_Receive_IT+0xa4>
  33699. 800eb6a: 68fb ldr r3, [r7, #12]
  33700. 800eb6c: 689b ldr r3, [r3, #8]
  33701. 800eb6e: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33702. 800eb72: d10d bne.n 800eb90 <UART_Start_Receive_IT+0x9c>
  33703. 800eb74: 68fb ldr r3, [r7, #12]
  33704. 800eb76: 691b ldr r3, [r3, #16]
  33705. 800eb78: 2b00 cmp r3, #0
  33706. 800eb7a: d104 bne.n 800eb86 <UART_Start_Receive_IT+0x92>
  33707. 800eb7c: 68fb ldr r3, [r7, #12]
  33708. 800eb7e: 227f movs r2, #127 @ 0x7f
  33709. 800eb80: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  33710. 800eb84: e008 b.n 800eb98 <UART_Start_Receive_IT+0xa4>
  33711. 800eb86: 68fb ldr r3, [r7, #12]
  33712. 800eb88: 223f movs r2, #63 @ 0x3f
  33713. 800eb8a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  33714. 800eb8e: e003 b.n 800eb98 <UART_Start_Receive_IT+0xa4>
  33715. 800eb90: 68fb ldr r3, [r7, #12]
  33716. 800eb92: 2200 movs r2, #0
  33717. 800eb94: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  33718. huart->ErrorCode = HAL_UART_ERROR_NONE;
  33719. 800eb98: 68fb ldr r3, [r7, #12]
  33720. 800eb9a: 2200 movs r2, #0
  33721. 800eb9c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  33722. huart->RxState = HAL_UART_STATE_BUSY_RX;
  33723. 800eba0: 68fb ldr r3, [r7, #12]
  33724. 800eba2: 2222 movs r2, #34 @ 0x22
  33725. 800eba4: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  33726. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  33727. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  33728. 800eba8: 68fb ldr r3, [r7, #12]
  33729. 800ebaa: 681b ldr r3, [r3, #0]
  33730. 800ebac: 3308 adds r3, #8
  33731. 800ebae: 667b str r3, [r7, #100] @ 0x64
  33732. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33733. 800ebb0: 6e7b ldr r3, [r7, #100] @ 0x64
  33734. 800ebb2: e853 3f00 ldrex r3, [r3]
  33735. 800ebb6: 663b str r3, [r7, #96] @ 0x60
  33736. return(result);
  33737. 800ebb8: 6e3b ldr r3, [r7, #96] @ 0x60
  33738. 800ebba: f043 0301 orr.w r3, r3, #1
  33739. 800ebbe: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  33740. 800ebc2: 68fb ldr r3, [r7, #12]
  33741. 800ebc4: 681b ldr r3, [r3, #0]
  33742. 800ebc6: 3308 adds r3, #8
  33743. 800ebc8: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  33744. 800ebcc: 673a str r2, [r7, #112] @ 0x70
  33745. 800ebce: 66fb str r3, [r7, #108] @ 0x6c
  33746. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33747. 800ebd0: 6ef9 ldr r1, [r7, #108] @ 0x6c
  33748. 800ebd2: 6f3a ldr r2, [r7, #112] @ 0x70
  33749. 800ebd4: e841 2300 strex r3, r2, [r1]
  33750. 800ebd8: 66bb str r3, [r7, #104] @ 0x68
  33751. return(result);
  33752. 800ebda: 6ebb ldr r3, [r7, #104] @ 0x68
  33753. 800ebdc: 2b00 cmp r3, #0
  33754. 800ebde: d1e3 bne.n 800eba8 <UART_Start_Receive_IT+0xb4>
  33755. /* Configure Rx interrupt processing */
  33756. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  33757. 800ebe0: 68fb ldr r3, [r7, #12]
  33758. 800ebe2: 6e5b ldr r3, [r3, #100] @ 0x64
  33759. 800ebe4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33760. 800ebe8: d14f bne.n 800ec8a <UART_Start_Receive_IT+0x196>
  33761. 800ebea: 68fb ldr r3, [r7, #12]
  33762. 800ebec: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  33763. 800ebf0: 88fa ldrh r2, [r7, #6]
  33764. 800ebf2: 429a cmp r2, r3
  33765. 800ebf4: d349 bcc.n 800ec8a <UART_Start_Receive_IT+0x196>
  33766. {
  33767. /* Set the Rx ISR function pointer according to the data word length */
  33768. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  33769. 800ebf6: 68fb ldr r3, [r7, #12]
  33770. 800ebf8: 689b ldr r3, [r3, #8]
  33771. 800ebfa: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  33772. 800ebfe: d107 bne.n 800ec10 <UART_Start_Receive_IT+0x11c>
  33773. 800ec00: 68fb ldr r3, [r7, #12]
  33774. 800ec02: 691b ldr r3, [r3, #16]
  33775. 800ec04: 2b00 cmp r3, #0
  33776. 800ec06: d103 bne.n 800ec10 <UART_Start_Receive_IT+0x11c>
  33777. {
  33778. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  33779. 800ec08: 68fb ldr r3, [r7, #12]
  33780. 800ec0a: 4a47 ldr r2, [pc, #284] @ (800ed28 <UART_Start_Receive_IT+0x234>)
  33781. 800ec0c: 675a str r2, [r3, #116] @ 0x74
  33782. 800ec0e: e002 b.n 800ec16 <UART_Start_Receive_IT+0x122>
  33783. }
  33784. else
  33785. {
  33786. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  33787. 800ec10: 68fb ldr r3, [r7, #12]
  33788. 800ec12: 4a46 ldr r2, [pc, #280] @ (800ed2c <UART_Start_Receive_IT+0x238>)
  33789. 800ec14: 675a str r2, [r3, #116] @ 0x74
  33790. }
  33791. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  33792. if (huart->Init.Parity != UART_PARITY_NONE)
  33793. 800ec16: 68fb ldr r3, [r7, #12]
  33794. 800ec18: 691b ldr r3, [r3, #16]
  33795. 800ec1a: 2b00 cmp r3, #0
  33796. 800ec1c: d01a beq.n 800ec54 <UART_Start_Receive_IT+0x160>
  33797. {
  33798. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  33799. 800ec1e: 68fb ldr r3, [r7, #12]
  33800. 800ec20: 681b ldr r3, [r3, #0]
  33801. 800ec22: 653b str r3, [r7, #80] @ 0x50
  33802. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33803. 800ec24: 6d3b ldr r3, [r7, #80] @ 0x50
  33804. 800ec26: e853 3f00 ldrex r3, [r3]
  33805. 800ec2a: 64fb str r3, [r7, #76] @ 0x4c
  33806. return(result);
  33807. 800ec2c: 6cfb ldr r3, [r7, #76] @ 0x4c
  33808. 800ec2e: f443 7380 orr.w r3, r3, #256 @ 0x100
  33809. 800ec32: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  33810. 800ec36: 68fb ldr r3, [r7, #12]
  33811. 800ec38: 681b ldr r3, [r3, #0]
  33812. 800ec3a: 461a mov r2, r3
  33813. 800ec3c: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  33814. 800ec40: 65fb str r3, [r7, #92] @ 0x5c
  33815. 800ec42: 65ba str r2, [r7, #88] @ 0x58
  33816. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33817. 800ec44: 6db9 ldr r1, [r7, #88] @ 0x58
  33818. 800ec46: 6dfa ldr r2, [r7, #92] @ 0x5c
  33819. 800ec48: e841 2300 strex r3, r2, [r1]
  33820. 800ec4c: 657b str r3, [r7, #84] @ 0x54
  33821. return(result);
  33822. 800ec4e: 6d7b ldr r3, [r7, #84] @ 0x54
  33823. 800ec50: 2b00 cmp r3, #0
  33824. 800ec52: d1e4 bne.n 800ec1e <UART_Start_Receive_IT+0x12a>
  33825. }
  33826. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  33827. 800ec54: 68fb ldr r3, [r7, #12]
  33828. 800ec56: 681b ldr r3, [r3, #0]
  33829. 800ec58: 3308 adds r3, #8
  33830. 800ec5a: 63fb str r3, [r7, #60] @ 0x3c
  33831. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33832. 800ec5c: 6bfb ldr r3, [r7, #60] @ 0x3c
  33833. 800ec5e: e853 3f00 ldrex r3, [r3]
  33834. 800ec62: 63bb str r3, [r7, #56] @ 0x38
  33835. return(result);
  33836. 800ec64: 6bbb ldr r3, [r7, #56] @ 0x38
  33837. 800ec66: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  33838. 800ec6a: 67fb str r3, [r7, #124] @ 0x7c
  33839. 800ec6c: 68fb ldr r3, [r7, #12]
  33840. 800ec6e: 681b ldr r3, [r3, #0]
  33841. 800ec70: 3308 adds r3, #8
  33842. 800ec72: 6ffa ldr r2, [r7, #124] @ 0x7c
  33843. 800ec74: 64ba str r2, [r7, #72] @ 0x48
  33844. 800ec76: 647b str r3, [r7, #68] @ 0x44
  33845. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33846. 800ec78: 6c79 ldr r1, [r7, #68] @ 0x44
  33847. 800ec7a: 6cba ldr r2, [r7, #72] @ 0x48
  33848. 800ec7c: e841 2300 strex r3, r2, [r1]
  33849. 800ec80: 643b str r3, [r7, #64] @ 0x40
  33850. return(result);
  33851. 800ec82: 6c3b ldr r3, [r7, #64] @ 0x40
  33852. 800ec84: 2b00 cmp r3, #0
  33853. 800ec86: d1e5 bne.n 800ec54 <UART_Start_Receive_IT+0x160>
  33854. 800ec88: e046 b.n 800ed18 <UART_Start_Receive_IT+0x224>
  33855. }
  33856. else
  33857. {
  33858. /* Set the Rx ISR function pointer according to the data word length */
  33859. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  33860. 800ec8a: 68fb ldr r3, [r7, #12]
  33861. 800ec8c: 689b ldr r3, [r3, #8]
  33862. 800ec8e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  33863. 800ec92: d107 bne.n 800eca4 <UART_Start_Receive_IT+0x1b0>
  33864. 800ec94: 68fb ldr r3, [r7, #12]
  33865. 800ec96: 691b ldr r3, [r3, #16]
  33866. 800ec98: 2b00 cmp r3, #0
  33867. 800ec9a: d103 bne.n 800eca4 <UART_Start_Receive_IT+0x1b0>
  33868. {
  33869. huart->RxISR = UART_RxISR_16BIT;
  33870. 800ec9c: 68fb ldr r3, [r7, #12]
  33871. 800ec9e: 4a24 ldr r2, [pc, #144] @ (800ed30 <UART_Start_Receive_IT+0x23c>)
  33872. 800eca0: 675a str r2, [r3, #116] @ 0x74
  33873. 800eca2: e002 b.n 800ecaa <UART_Start_Receive_IT+0x1b6>
  33874. }
  33875. else
  33876. {
  33877. huart->RxISR = UART_RxISR_8BIT;
  33878. 800eca4: 68fb ldr r3, [r7, #12]
  33879. 800eca6: 4a23 ldr r2, [pc, #140] @ (800ed34 <UART_Start_Receive_IT+0x240>)
  33880. 800eca8: 675a str r2, [r3, #116] @ 0x74
  33881. }
  33882. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  33883. if (huart->Init.Parity != UART_PARITY_NONE)
  33884. 800ecaa: 68fb ldr r3, [r7, #12]
  33885. 800ecac: 691b ldr r3, [r3, #16]
  33886. 800ecae: 2b00 cmp r3, #0
  33887. 800ecb0: d019 beq.n 800ece6 <UART_Start_Receive_IT+0x1f2>
  33888. {
  33889. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  33890. 800ecb2: 68fb ldr r3, [r7, #12]
  33891. 800ecb4: 681b ldr r3, [r3, #0]
  33892. 800ecb6: 62bb str r3, [r7, #40] @ 0x28
  33893. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33894. 800ecb8: 6abb ldr r3, [r7, #40] @ 0x28
  33895. 800ecba: e853 3f00 ldrex r3, [r3]
  33896. 800ecbe: 627b str r3, [r7, #36] @ 0x24
  33897. return(result);
  33898. 800ecc0: 6a7b ldr r3, [r7, #36] @ 0x24
  33899. 800ecc2: f443 7390 orr.w r3, r3, #288 @ 0x120
  33900. 800ecc6: 677b str r3, [r7, #116] @ 0x74
  33901. 800ecc8: 68fb ldr r3, [r7, #12]
  33902. 800ecca: 681b ldr r3, [r3, #0]
  33903. 800eccc: 461a mov r2, r3
  33904. 800ecce: 6f7b ldr r3, [r7, #116] @ 0x74
  33905. 800ecd0: 637b str r3, [r7, #52] @ 0x34
  33906. 800ecd2: 633a str r2, [r7, #48] @ 0x30
  33907. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33908. 800ecd4: 6b39 ldr r1, [r7, #48] @ 0x30
  33909. 800ecd6: 6b7a ldr r2, [r7, #52] @ 0x34
  33910. 800ecd8: e841 2300 strex r3, r2, [r1]
  33911. 800ecdc: 62fb str r3, [r7, #44] @ 0x2c
  33912. return(result);
  33913. 800ecde: 6afb ldr r3, [r7, #44] @ 0x2c
  33914. 800ece0: 2b00 cmp r3, #0
  33915. 800ece2: d1e6 bne.n 800ecb2 <UART_Start_Receive_IT+0x1be>
  33916. 800ece4: e018 b.n 800ed18 <UART_Start_Receive_IT+0x224>
  33917. }
  33918. else
  33919. {
  33920. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  33921. 800ece6: 68fb ldr r3, [r7, #12]
  33922. 800ece8: 681b ldr r3, [r3, #0]
  33923. 800ecea: 617b str r3, [r7, #20]
  33924. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33925. 800ecec: 697b ldr r3, [r7, #20]
  33926. 800ecee: e853 3f00 ldrex r3, [r3]
  33927. 800ecf2: 613b str r3, [r7, #16]
  33928. return(result);
  33929. 800ecf4: 693b ldr r3, [r7, #16]
  33930. 800ecf6: f043 0320 orr.w r3, r3, #32
  33931. 800ecfa: 67bb str r3, [r7, #120] @ 0x78
  33932. 800ecfc: 68fb ldr r3, [r7, #12]
  33933. 800ecfe: 681b ldr r3, [r3, #0]
  33934. 800ed00: 461a mov r2, r3
  33935. 800ed02: 6fbb ldr r3, [r7, #120] @ 0x78
  33936. 800ed04: 623b str r3, [r7, #32]
  33937. 800ed06: 61fa str r2, [r7, #28]
  33938. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33939. 800ed08: 69f9 ldr r1, [r7, #28]
  33940. 800ed0a: 6a3a ldr r2, [r7, #32]
  33941. 800ed0c: e841 2300 strex r3, r2, [r1]
  33942. 800ed10: 61bb str r3, [r7, #24]
  33943. return(result);
  33944. 800ed12: 69bb ldr r3, [r7, #24]
  33945. 800ed14: 2b00 cmp r3, #0
  33946. 800ed16: d1e6 bne.n 800ece6 <UART_Start_Receive_IT+0x1f2>
  33947. }
  33948. }
  33949. return HAL_OK;
  33950. 800ed18: 2300 movs r3, #0
  33951. }
  33952. 800ed1a: 4618 mov r0, r3
  33953. 800ed1c: 378c adds r7, #140 @ 0x8c
  33954. 800ed1e: 46bd mov sp, r7
  33955. 800ed20: f85d 7b04 ldr.w r7, [sp], #4
  33956. 800ed24: 4770 bx lr
  33957. 800ed26: bf00 nop
  33958. 800ed28: 0800f89d .word 0x0800f89d
  33959. 800ed2c: 0800f53d .word 0x0800f53d
  33960. 800ed30: 0800f385 .word 0x0800f385
  33961. 800ed34: 0800f1cd .word 0x0800f1cd
  33962. 0800ed38 <UART_EndRxTransfer>:
  33963. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  33964. * @param huart UART handle.
  33965. * @retval None
  33966. */
  33967. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  33968. {
  33969. 800ed38: b480 push {r7}
  33970. 800ed3a: b095 sub sp, #84 @ 0x54
  33971. 800ed3c: af00 add r7, sp, #0
  33972. 800ed3e: 6078 str r0, [r7, #4]
  33973. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  33974. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  33975. 800ed40: 687b ldr r3, [r7, #4]
  33976. 800ed42: 681b ldr r3, [r3, #0]
  33977. 800ed44: 637b str r3, [r7, #52] @ 0x34
  33978. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  33979. 800ed46: 6b7b ldr r3, [r7, #52] @ 0x34
  33980. 800ed48: e853 3f00 ldrex r3, [r3]
  33981. 800ed4c: 633b str r3, [r7, #48] @ 0x30
  33982. return(result);
  33983. 800ed4e: 6b3b ldr r3, [r7, #48] @ 0x30
  33984. 800ed50: f423 7390 bic.w r3, r3, #288 @ 0x120
  33985. 800ed54: 64fb str r3, [r7, #76] @ 0x4c
  33986. 800ed56: 687b ldr r3, [r7, #4]
  33987. 800ed58: 681b ldr r3, [r3, #0]
  33988. 800ed5a: 461a mov r2, r3
  33989. 800ed5c: 6cfb ldr r3, [r7, #76] @ 0x4c
  33990. 800ed5e: 643b str r3, [r7, #64] @ 0x40
  33991. 800ed60: 63fa str r2, [r7, #60] @ 0x3c
  33992. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  33993. 800ed62: 6bf9 ldr r1, [r7, #60] @ 0x3c
  33994. 800ed64: 6c3a ldr r2, [r7, #64] @ 0x40
  33995. 800ed66: e841 2300 strex r3, r2, [r1]
  33996. 800ed6a: 63bb str r3, [r7, #56] @ 0x38
  33997. return(result);
  33998. 800ed6c: 6bbb ldr r3, [r7, #56] @ 0x38
  33999. 800ed6e: 2b00 cmp r3, #0
  34000. 800ed70: d1e6 bne.n 800ed40 <UART_EndRxTransfer+0x8>
  34001. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  34002. 800ed72: 687b ldr r3, [r7, #4]
  34003. 800ed74: 681b ldr r3, [r3, #0]
  34004. 800ed76: 3308 adds r3, #8
  34005. 800ed78: 623b str r3, [r7, #32]
  34006. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34007. 800ed7a: 6a3b ldr r3, [r7, #32]
  34008. 800ed7c: e853 3f00 ldrex r3, [r3]
  34009. 800ed80: 61fb str r3, [r7, #28]
  34010. return(result);
  34011. 800ed82: 69fa ldr r2, [r7, #28]
  34012. 800ed84: 4b1e ldr r3, [pc, #120] @ (800ee00 <UART_EndRxTransfer+0xc8>)
  34013. 800ed86: 4013 ands r3, r2
  34014. 800ed88: 64bb str r3, [r7, #72] @ 0x48
  34015. 800ed8a: 687b ldr r3, [r7, #4]
  34016. 800ed8c: 681b ldr r3, [r3, #0]
  34017. 800ed8e: 3308 adds r3, #8
  34018. 800ed90: 6cba ldr r2, [r7, #72] @ 0x48
  34019. 800ed92: 62fa str r2, [r7, #44] @ 0x2c
  34020. 800ed94: 62bb str r3, [r7, #40] @ 0x28
  34021. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34022. 800ed96: 6ab9 ldr r1, [r7, #40] @ 0x28
  34023. 800ed98: 6afa ldr r2, [r7, #44] @ 0x2c
  34024. 800ed9a: e841 2300 strex r3, r2, [r1]
  34025. 800ed9e: 627b str r3, [r7, #36] @ 0x24
  34026. return(result);
  34027. 800eda0: 6a7b ldr r3, [r7, #36] @ 0x24
  34028. 800eda2: 2b00 cmp r3, #0
  34029. 800eda4: d1e5 bne.n 800ed72 <UART_EndRxTransfer+0x3a>
  34030. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  34031. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34032. 800eda6: 687b ldr r3, [r7, #4]
  34033. 800eda8: 6edb ldr r3, [r3, #108] @ 0x6c
  34034. 800edaa: 2b01 cmp r3, #1
  34035. 800edac: d118 bne.n 800ede0 <UART_EndRxTransfer+0xa8>
  34036. {
  34037. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  34038. 800edae: 687b ldr r3, [r7, #4]
  34039. 800edb0: 681b ldr r3, [r3, #0]
  34040. 800edb2: 60fb str r3, [r7, #12]
  34041. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34042. 800edb4: 68fb ldr r3, [r7, #12]
  34043. 800edb6: e853 3f00 ldrex r3, [r3]
  34044. 800edba: 60bb str r3, [r7, #8]
  34045. return(result);
  34046. 800edbc: 68bb ldr r3, [r7, #8]
  34047. 800edbe: f023 0310 bic.w r3, r3, #16
  34048. 800edc2: 647b str r3, [r7, #68] @ 0x44
  34049. 800edc4: 687b ldr r3, [r7, #4]
  34050. 800edc6: 681b ldr r3, [r3, #0]
  34051. 800edc8: 461a mov r2, r3
  34052. 800edca: 6c7b ldr r3, [r7, #68] @ 0x44
  34053. 800edcc: 61bb str r3, [r7, #24]
  34054. 800edce: 617a str r2, [r7, #20]
  34055. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34056. 800edd0: 6979 ldr r1, [r7, #20]
  34057. 800edd2: 69ba ldr r2, [r7, #24]
  34058. 800edd4: e841 2300 strex r3, r2, [r1]
  34059. 800edd8: 613b str r3, [r7, #16]
  34060. return(result);
  34061. 800edda: 693b ldr r3, [r7, #16]
  34062. 800eddc: 2b00 cmp r3, #0
  34063. 800edde: d1e6 bne.n 800edae <UART_EndRxTransfer+0x76>
  34064. }
  34065. /* At end of Rx process, restore huart->RxState to Ready */
  34066. huart->RxState = HAL_UART_STATE_READY;
  34067. 800ede0: 687b ldr r3, [r7, #4]
  34068. 800ede2: 2220 movs r2, #32
  34069. 800ede4: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34070. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34071. 800ede8: 687b ldr r3, [r7, #4]
  34072. 800edea: 2200 movs r2, #0
  34073. 800edec: 66da str r2, [r3, #108] @ 0x6c
  34074. /* Reset RxIsr function pointer */
  34075. huart->RxISR = NULL;
  34076. 800edee: 687b ldr r3, [r7, #4]
  34077. 800edf0: 2200 movs r2, #0
  34078. 800edf2: 675a str r2, [r3, #116] @ 0x74
  34079. }
  34080. 800edf4: bf00 nop
  34081. 800edf6: 3754 adds r7, #84 @ 0x54
  34082. 800edf8: 46bd mov sp, r7
  34083. 800edfa: f85d 7b04 ldr.w r7, [sp], #4
  34084. 800edfe: 4770 bx lr
  34085. 800ee00: effffffe .word 0xeffffffe
  34086. 0800ee04 <UART_DMAAbortOnError>:
  34087. * (To be called at end of DMA Abort procedure following error occurrence).
  34088. * @param hdma DMA handle.
  34089. * @retval None
  34090. */
  34091. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  34092. {
  34093. 800ee04: b580 push {r7, lr}
  34094. 800ee06: b084 sub sp, #16
  34095. 800ee08: af00 add r7, sp, #0
  34096. 800ee0a: 6078 str r0, [r7, #4]
  34097. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  34098. 800ee0c: 687b ldr r3, [r7, #4]
  34099. 800ee0e: 6b9b ldr r3, [r3, #56] @ 0x38
  34100. 800ee10: 60fb str r3, [r7, #12]
  34101. huart->RxXferCount = 0U;
  34102. 800ee12: 68fb ldr r3, [r7, #12]
  34103. 800ee14: 2200 movs r2, #0
  34104. 800ee16: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34105. huart->TxXferCount = 0U;
  34106. 800ee1a: 68fb ldr r3, [r7, #12]
  34107. 800ee1c: 2200 movs r2, #0
  34108. 800ee1e: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34109. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34110. /*Call registered error callback*/
  34111. huart->ErrorCallback(huart);
  34112. #else
  34113. /*Call legacy weak error callback*/
  34114. HAL_UART_ErrorCallback(huart);
  34115. 800ee22: 68f8 ldr r0, [r7, #12]
  34116. 800ee24: f7fe ff3a bl 800dc9c <HAL_UART_ErrorCallback>
  34117. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  34118. }
  34119. 800ee28: bf00 nop
  34120. 800ee2a: 3710 adds r7, #16
  34121. 800ee2c: 46bd mov sp, r7
  34122. 800ee2e: bd80 pop {r7, pc}
  34123. 0800ee30 <UART_TxISR_8BIT>:
  34124. * interruptions have been enabled by HAL_UART_Transmit_IT().
  34125. * @param huart UART handle.
  34126. * @retval None
  34127. */
  34128. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  34129. {
  34130. 800ee30: b480 push {r7}
  34131. 800ee32: b08f sub sp, #60 @ 0x3c
  34132. 800ee34: af00 add r7, sp, #0
  34133. 800ee36: 6078 str r0, [r7, #4]
  34134. /* Check that a Tx process is ongoing */
  34135. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  34136. 800ee38: 687b ldr r3, [r7, #4]
  34137. 800ee3a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  34138. 800ee3e: 2b21 cmp r3, #33 @ 0x21
  34139. 800ee40: d14c bne.n 800eedc <UART_TxISR_8BIT+0xac>
  34140. {
  34141. if (huart->TxXferCount == 0U)
  34142. 800ee42: 687b ldr r3, [r7, #4]
  34143. 800ee44: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34144. 800ee48: b29b uxth r3, r3
  34145. 800ee4a: 2b00 cmp r3, #0
  34146. 800ee4c: d132 bne.n 800eeb4 <UART_TxISR_8BIT+0x84>
  34147. {
  34148. /* Disable the UART Transmit Data Register Empty Interrupt */
  34149. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  34150. 800ee4e: 687b ldr r3, [r7, #4]
  34151. 800ee50: 681b ldr r3, [r3, #0]
  34152. 800ee52: 623b str r3, [r7, #32]
  34153. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34154. 800ee54: 6a3b ldr r3, [r7, #32]
  34155. 800ee56: e853 3f00 ldrex r3, [r3]
  34156. 800ee5a: 61fb str r3, [r7, #28]
  34157. return(result);
  34158. 800ee5c: 69fb ldr r3, [r7, #28]
  34159. 800ee5e: f023 0380 bic.w r3, r3, #128 @ 0x80
  34160. 800ee62: 637b str r3, [r7, #52] @ 0x34
  34161. 800ee64: 687b ldr r3, [r7, #4]
  34162. 800ee66: 681b ldr r3, [r3, #0]
  34163. 800ee68: 461a mov r2, r3
  34164. 800ee6a: 6b7b ldr r3, [r7, #52] @ 0x34
  34165. 800ee6c: 62fb str r3, [r7, #44] @ 0x2c
  34166. 800ee6e: 62ba str r2, [r7, #40] @ 0x28
  34167. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34168. 800ee70: 6ab9 ldr r1, [r7, #40] @ 0x28
  34169. 800ee72: 6afa ldr r2, [r7, #44] @ 0x2c
  34170. 800ee74: e841 2300 strex r3, r2, [r1]
  34171. 800ee78: 627b str r3, [r7, #36] @ 0x24
  34172. return(result);
  34173. 800ee7a: 6a7b ldr r3, [r7, #36] @ 0x24
  34174. 800ee7c: 2b00 cmp r3, #0
  34175. 800ee7e: d1e6 bne.n 800ee4e <UART_TxISR_8BIT+0x1e>
  34176. /* Enable the UART Transmit Complete Interrupt */
  34177. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  34178. 800ee80: 687b ldr r3, [r7, #4]
  34179. 800ee82: 681b ldr r3, [r3, #0]
  34180. 800ee84: 60fb str r3, [r7, #12]
  34181. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34182. 800ee86: 68fb ldr r3, [r7, #12]
  34183. 800ee88: e853 3f00 ldrex r3, [r3]
  34184. 800ee8c: 60bb str r3, [r7, #8]
  34185. return(result);
  34186. 800ee8e: 68bb ldr r3, [r7, #8]
  34187. 800ee90: f043 0340 orr.w r3, r3, #64 @ 0x40
  34188. 800ee94: 633b str r3, [r7, #48] @ 0x30
  34189. 800ee96: 687b ldr r3, [r7, #4]
  34190. 800ee98: 681b ldr r3, [r3, #0]
  34191. 800ee9a: 461a mov r2, r3
  34192. 800ee9c: 6b3b ldr r3, [r7, #48] @ 0x30
  34193. 800ee9e: 61bb str r3, [r7, #24]
  34194. 800eea0: 617a str r2, [r7, #20]
  34195. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34196. 800eea2: 6979 ldr r1, [r7, #20]
  34197. 800eea4: 69ba ldr r2, [r7, #24]
  34198. 800eea6: e841 2300 strex r3, r2, [r1]
  34199. 800eeaa: 613b str r3, [r7, #16]
  34200. return(result);
  34201. 800eeac: 693b ldr r3, [r7, #16]
  34202. 800eeae: 2b00 cmp r3, #0
  34203. 800eeb0: d1e6 bne.n 800ee80 <UART_TxISR_8BIT+0x50>
  34204. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  34205. huart->pTxBuffPtr++;
  34206. huart->TxXferCount--;
  34207. }
  34208. }
  34209. }
  34210. 800eeb2: e013 b.n 800eedc <UART_TxISR_8BIT+0xac>
  34211. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  34212. 800eeb4: 687b ldr r3, [r7, #4]
  34213. 800eeb6: 6d1b ldr r3, [r3, #80] @ 0x50
  34214. 800eeb8: 781a ldrb r2, [r3, #0]
  34215. 800eeba: 687b ldr r3, [r7, #4]
  34216. 800eebc: 681b ldr r3, [r3, #0]
  34217. 800eebe: 629a str r2, [r3, #40] @ 0x28
  34218. huart->pTxBuffPtr++;
  34219. 800eec0: 687b ldr r3, [r7, #4]
  34220. 800eec2: 6d1b ldr r3, [r3, #80] @ 0x50
  34221. 800eec4: 1c5a adds r2, r3, #1
  34222. 800eec6: 687b ldr r3, [r7, #4]
  34223. 800eec8: 651a str r2, [r3, #80] @ 0x50
  34224. huart->TxXferCount--;
  34225. 800eeca: 687b ldr r3, [r7, #4]
  34226. 800eecc: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34227. 800eed0: b29b uxth r3, r3
  34228. 800eed2: 3b01 subs r3, #1
  34229. 800eed4: b29a uxth r2, r3
  34230. 800eed6: 687b ldr r3, [r7, #4]
  34231. 800eed8: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34232. }
  34233. 800eedc: bf00 nop
  34234. 800eede: 373c adds r7, #60 @ 0x3c
  34235. 800eee0: 46bd mov sp, r7
  34236. 800eee2: f85d 7b04 ldr.w r7, [sp], #4
  34237. 800eee6: 4770 bx lr
  34238. 0800eee8 <UART_TxISR_16BIT>:
  34239. * interruptions have been enabled by HAL_UART_Transmit_IT().
  34240. * @param huart UART handle.
  34241. * @retval None
  34242. */
  34243. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  34244. {
  34245. 800eee8: b480 push {r7}
  34246. 800eeea: b091 sub sp, #68 @ 0x44
  34247. 800eeec: af00 add r7, sp, #0
  34248. 800eeee: 6078 str r0, [r7, #4]
  34249. const uint16_t *tmp;
  34250. /* Check that a Tx process is ongoing */
  34251. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  34252. 800eef0: 687b ldr r3, [r7, #4]
  34253. 800eef2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  34254. 800eef6: 2b21 cmp r3, #33 @ 0x21
  34255. 800eef8: d151 bne.n 800ef9e <UART_TxISR_16BIT+0xb6>
  34256. {
  34257. if (huart->TxXferCount == 0U)
  34258. 800eefa: 687b ldr r3, [r7, #4]
  34259. 800eefc: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34260. 800ef00: b29b uxth r3, r3
  34261. 800ef02: 2b00 cmp r3, #0
  34262. 800ef04: d132 bne.n 800ef6c <UART_TxISR_16BIT+0x84>
  34263. {
  34264. /* Disable the UART Transmit Data Register Empty Interrupt */
  34265. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  34266. 800ef06: 687b ldr r3, [r7, #4]
  34267. 800ef08: 681b ldr r3, [r3, #0]
  34268. 800ef0a: 627b str r3, [r7, #36] @ 0x24
  34269. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34270. 800ef0c: 6a7b ldr r3, [r7, #36] @ 0x24
  34271. 800ef0e: e853 3f00 ldrex r3, [r3]
  34272. 800ef12: 623b str r3, [r7, #32]
  34273. return(result);
  34274. 800ef14: 6a3b ldr r3, [r7, #32]
  34275. 800ef16: f023 0380 bic.w r3, r3, #128 @ 0x80
  34276. 800ef1a: 63bb str r3, [r7, #56] @ 0x38
  34277. 800ef1c: 687b ldr r3, [r7, #4]
  34278. 800ef1e: 681b ldr r3, [r3, #0]
  34279. 800ef20: 461a mov r2, r3
  34280. 800ef22: 6bbb ldr r3, [r7, #56] @ 0x38
  34281. 800ef24: 633b str r3, [r7, #48] @ 0x30
  34282. 800ef26: 62fa str r2, [r7, #44] @ 0x2c
  34283. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34284. 800ef28: 6af9 ldr r1, [r7, #44] @ 0x2c
  34285. 800ef2a: 6b3a ldr r2, [r7, #48] @ 0x30
  34286. 800ef2c: e841 2300 strex r3, r2, [r1]
  34287. 800ef30: 62bb str r3, [r7, #40] @ 0x28
  34288. return(result);
  34289. 800ef32: 6abb ldr r3, [r7, #40] @ 0x28
  34290. 800ef34: 2b00 cmp r3, #0
  34291. 800ef36: d1e6 bne.n 800ef06 <UART_TxISR_16BIT+0x1e>
  34292. /* Enable the UART Transmit Complete Interrupt */
  34293. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  34294. 800ef38: 687b ldr r3, [r7, #4]
  34295. 800ef3a: 681b ldr r3, [r3, #0]
  34296. 800ef3c: 613b str r3, [r7, #16]
  34297. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34298. 800ef3e: 693b ldr r3, [r7, #16]
  34299. 800ef40: e853 3f00 ldrex r3, [r3]
  34300. 800ef44: 60fb str r3, [r7, #12]
  34301. return(result);
  34302. 800ef46: 68fb ldr r3, [r7, #12]
  34303. 800ef48: f043 0340 orr.w r3, r3, #64 @ 0x40
  34304. 800ef4c: 637b str r3, [r7, #52] @ 0x34
  34305. 800ef4e: 687b ldr r3, [r7, #4]
  34306. 800ef50: 681b ldr r3, [r3, #0]
  34307. 800ef52: 461a mov r2, r3
  34308. 800ef54: 6b7b ldr r3, [r7, #52] @ 0x34
  34309. 800ef56: 61fb str r3, [r7, #28]
  34310. 800ef58: 61ba str r2, [r7, #24]
  34311. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34312. 800ef5a: 69b9 ldr r1, [r7, #24]
  34313. 800ef5c: 69fa ldr r2, [r7, #28]
  34314. 800ef5e: e841 2300 strex r3, r2, [r1]
  34315. 800ef62: 617b str r3, [r7, #20]
  34316. return(result);
  34317. 800ef64: 697b ldr r3, [r7, #20]
  34318. 800ef66: 2b00 cmp r3, #0
  34319. 800ef68: d1e6 bne.n 800ef38 <UART_TxISR_16BIT+0x50>
  34320. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  34321. huart->pTxBuffPtr += 2U;
  34322. huart->TxXferCount--;
  34323. }
  34324. }
  34325. }
  34326. 800ef6a: e018 b.n 800ef9e <UART_TxISR_16BIT+0xb6>
  34327. tmp = (const uint16_t *) huart->pTxBuffPtr;
  34328. 800ef6c: 687b ldr r3, [r7, #4]
  34329. 800ef6e: 6d1b ldr r3, [r3, #80] @ 0x50
  34330. 800ef70: 63fb str r3, [r7, #60] @ 0x3c
  34331. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  34332. 800ef72: 6bfb ldr r3, [r7, #60] @ 0x3c
  34333. 800ef74: 881b ldrh r3, [r3, #0]
  34334. 800ef76: 461a mov r2, r3
  34335. 800ef78: 687b ldr r3, [r7, #4]
  34336. 800ef7a: 681b ldr r3, [r3, #0]
  34337. 800ef7c: f3c2 0208 ubfx r2, r2, #0, #9
  34338. 800ef80: 629a str r2, [r3, #40] @ 0x28
  34339. huart->pTxBuffPtr += 2U;
  34340. 800ef82: 687b ldr r3, [r7, #4]
  34341. 800ef84: 6d1b ldr r3, [r3, #80] @ 0x50
  34342. 800ef86: 1c9a adds r2, r3, #2
  34343. 800ef88: 687b ldr r3, [r7, #4]
  34344. 800ef8a: 651a str r2, [r3, #80] @ 0x50
  34345. huart->TxXferCount--;
  34346. 800ef8c: 687b ldr r3, [r7, #4]
  34347. 800ef8e: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34348. 800ef92: b29b uxth r3, r3
  34349. 800ef94: 3b01 subs r3, #1
  34350. 800ef96: b29a uxth r2, r3
  34351. 800ef98: 687b ldr r3, [r7, #4]
  34352. 800ef9a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34353. }
  34354. 800ef9e: bf00 nop
  34355. 800efa0: 3744 adds r7, #68 @ 0x44
  34356. 800efa2: 46bd mov sp, r7
  34357. 800efa4: f85d 7b04 ldr.w r7, [sp], #4
  34358. 800efa8: 4770 bx lr
  34359. 0800efaa <UART_TxISR_8BIT_FIFOEN>:
  34360. * interruptions have been enabled by HAL_UART_Transmit_IT().
  34361. * @param huart UART handle.
  34362. * @retval None
  34363. */
  34364. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  34365. {
  34366. 800efaa: b480 push {r7}
  34367. 800efac: b091 sub sp, #68 @ 0x44
  34368. 800efae: af00 add r7, sp, #0
  34369. 800efb0: 6078 str r0, [r7, #4]
  34370. uint16_t nb_tx_data;
  34371. /* Check that a Tx process is ongoing */
  34372. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  34373. 800efb2: 687b ldr r3, [r7, #4]
  34374. 800efb4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  34375. 800efb8: 2b21 cmp r3, #33 @ 0x21
  34376. 800efba: d160 bne.n 800f07e <UART_TxISR_8BIT_FIFOEN+0xd4>
  34377. {
  34378. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  34379. 800efbc: 687b ldr r3, [r7, #4]
  34380. 800efbe: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  34381. 800efc2: 87fb strh r3, [r7, #62] @ 0x3e
  34382. 800efc4: e057 b.n 800f076 <UART_TxISR_8BIT_FIFOEN+0xcc>
  34383. {
  34384. if (huart->TxXferCount == 0U)
  34385. 800efc6: 687b ldr r3, [r7, #4]
  34386. 800efc8: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34387. 800efcc: b29b uxth r3, r3
  34388. 800efce: 2b00 cmp r3, #0
  34389. 800efd0: d133 bne.n 800f03a <UART_TxISR_8BIT_FIFOEN+0x90>
  34390. {
  34391. /* Disable the TX FIFO threshold interrupt */
  34392. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  34393. 800efd2: 687b ldr r3, [r7, #4]
  34394. 800efd4: 681b ldr r3, [r3, #0]
  34395. 800efd6: 3308 adds r3, #8
  34396. 800efd8: 627b str r3, [r7, #36] @ 0x24
  34397. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34398. 800efda: 6a7b ldr r3, [r7, #36] @ 0x24
  34399. 800efdc: e853 3f00 ldrex r3, [r3]
  34400. 800efe0: 623b str r3, [r7, #32]
  34401. return(result);
  34402. 800efe2: 6a3b ldr r3, [r7, #32]
  34403. 800efe4: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  34404. 800efe8: 63bb str r3, [r7, #56] @ 0x38
  34405. 800efea: 687b ldr r3, [r7, #4]
  34406. 800efec: 681b ldr r3, [r3, #0]
  34407. 800efee: 3308 adds r3, #8
  34408. 800eff0: 6bba ldr r2, [r7, #56] @ 0x38
  34409. 800eff2: 633a str r2, [r7, #48] @ 0x30
  34410. 800eff4: 62fb str r3, [r7, #44] @ 0x2c
  34411. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34412. 800eff6: 6af9 ldr r1, [r7, #44] @ 0x2c
  34413. 800eff8: 6b3a ldr r2, [r7, #48] @ 0x30
  34414. 800effa: e841 2300 strex r3, r2, [r1]
  34415. 800effe: 62bb str r3, [r7, #40] @ 0x28
  34416. return(result);
  34417. 800f000: 6abb ldr r3, [r7, #40] @ 0x28
  34418. 800f002: 2b00 cmp r3, #0
  34419. 800f004: d1e5 bne.n 800efd2 <UART_TxISR_8BIT_FIFOEN+0x28>
  34420. /* Enable the UART Transmit Complete Interrupt */
  34421. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  34422. 800f006: 687b ldr r3, [r7, #4]
  34423. 800f008: 681b ldr r3, [r3, #0]
  34424. 800f00a: 613b str r3, [r7, #16]
  34425. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34426. 800f00c: 693b ldr r3, [r7, #16]
  34427. 800f00e: e853 3f00 ldrex r3, [r3]
  34428. 800f012: 60fb str r3, [r7, #12]
  34429. return(result);
  34430. 800f014: 68fb ldr r3, [r7, #12]
  34431. 800f016: f043 0340 orr.w r3, r3, #64 @ 0x40
  34432. 800f01a: 637b str r3, [r7, #52] @ 0x34
  34433. 800f01c: 687b ldr r3, [r7, #4]
  34434. 800f01e: 681b ldr r3, [r3, #0]
  34435. 800f020: 461a mov r2, r3
  34436. 800f022: 6b7b ldr r3, [r7, #52] @ 0x34
  34437. 800f024: 61fb str r3, [r7, #28]
  34438. 800f026: 61ba str r2, [r7, #24]
  34439. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34440. 800f028: 69b9 ldr r1, [r7, #24]
  34441. 800f02a: 69fa ldr r2, [r7, #28]
  34442. 800f02c: e841 2300 strex r3, r2, [r1]
  34443. 800f030: 617b str r3, [r7, #20]
  34444. return(result);
  34445. 800f032: 697b ldr r3, [r7, #20]
  34446. 800f034: 2b00 cmp r3, #0
  34447. 800f036: d1e6 bne.n 800f006 <UART_TxISR_8BIT_FIFOEN+0x5c>
  34448. break; /* force exit loop */
  34449. 800f038: e021 b.n 800f07e <UART_TxISR_8BIT_FIFOEN+0xd4>
  34450. }
  34451. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  34452. 800f03a: 687b ldr r3, [r7, #4]
  34453. 800f03c: 681b ldr r3, [r3, #0]
  34454. 800f03e: 69db ldr r3, [r3, #28]
  34455. 800f040: f003 0380 and.w r3, r3, #128 @ 0x80
  34456. 800f044: 2b00 cmp r3, #0
  34457. 800f046: d013 beq.n 800f070 <UART_TxISR_8BIT_FIFOEN+0xc6>
  34458. {
  34459. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  34460. 800f048: 687b ldr r3, [r7, #4]
  34461. 800f04a: 6d1b ldr r3, [r3, #80] @ 0x50
  34462. 800f04c: 781a ldrb r2, [r3, #0]
  34463. 800f04e: 687b ldr r3, [r7, #4]
  34464. 800f050: 681b ldr r3, [r3, #0]
  34465. 800f052: 629a str r2, [r3, #40] @ 0x28
  34466. huart->pTxBuffPtr++;
  34467. 800f054: 687b ldr r3, [r7, #4]
  34468. 800f056: 6d1b ldr r3, [r3, #80] @ 0x50
  34469. 800f058: 1c5a adds r2, r3, #1
  34470. 800f05a: 687b ldr r3, [r7, #4]
  34471. 800f05c: 651a str r2, [r3, #80] @ 0x50
  34472. huart->TxXferCount--;
  34473. 800f05e: 687b ldr r3, [r7, #4]
  34474. 800f060: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34475. 800f064: b29b uxth r3, r3
  34476. 800f066: 3b01 subs r3, #1
  34477. 800f068: b29a uxth r2, r3
  34478. 800f06a: 687b ldr r3, [r7, #4]
  34479. 800f06c: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34480. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  34481. 800f070: 8ffb ldrh r3, [r7, #62] @ 0x3e
  34482. 800f072: 3b01 subs r3, #1
  34483. 800f074: 87fb strh r3, [r7, #62] @ 0x3e
  34484. 800f076: 8ffb ldrh r3, [r7, #62] @ 0x3e
  34485. 800f078: 2b00 cmp r3, #0
  34486. 800f07a: d1a4 bne.n 800efc6 <UART_TxISR_8BIT_FIFOEN+0x1c>
  34487. {
  34488. /* Nothing to do */
  34489. }
  34490. }
  34491. }
  34492. }
  34493. 800f07c: e7ff b.n 800f07e <UART_TxISR_8BIT_FIFOEN+0xd4>
  34494. 800f07e: bf00 nop
  34495. 800f080: 3744 adds r7, #68 @ 0x44
  34496. 800f082: 46bd mov sp, r7
  34497. 800f084: f85d 7b04 ldr.w r7, [sp], #4
  34498. 800f088: 4770 bx lr
  34499. 0800f08a <UART_TxISR_16BIT_FIFOEN>:
  34500. * interruptions have been enabled by HAL_UART_Transmit_IT().
  34501. * @param huart UART handle.
  34502. * @retval None
  34503. */
  34504. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  34505. {
  34506. 800f08a: b480 push {r7}
  34507. 800f08c: b091 sub sp, #68 @ 0x44
  34508. 800f08e: af00 add r7, sp, #0
  34509. 800f090: 6078 str r0, [r7, #4]
  34510. const uint16_t *tmp;
  34511. uint16_t nb_tx_data;
  34512. /* Check that a Tx process is ongoing */
  34513. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  34514. 800f092: 687b ldr r3, [r7, #4]
  34515. 800f094: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  34516. 800f098: 2b21 cmp r3, #33 @ 0x21
  34517. 800f09a: d165 bne.n 800f168 <UART_TxISR_16BIT_FIFOEN+0xde>
  34518. {
  34519. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  34520. 800f09c: 687b ldr r3, [r7, #4]
  34521. 800f09e: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  34522. 800f0a2: 87fb strh r3, [r7, #62] @ 0x3e
  34523. 800f0a4: e05c b.n 800f160 <UART_TxISR_16BIT_FIFOEN+0xd6>
  34524. {
  34525. if (huart->TxXferCount == 0U)
  34526. 800f0a6: 687b ldr r3, [r7, #4]
  34527. 800f0a8: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34528. 800f0ac: b29b uxth r3, r3
  34529. 800f0ae: 2b00 cmp r3, #0
  34530. 800f0b0: d133 bne.n 800f11a <UART_TxISR_16BIT_FIFOEN+0x90>
  34531. {
  34532. /* Disable the TX FIFO threshold interrupt */
  34533. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  34534. 800f0b2: 687b ldr r3, [r7, #4]
  34535. 800f0b4: 681b ldr r3, [r3, #0]
  34536. 800f0b6: 3308 adds r3, #8
  34537. 800f0b8: 623b str r3, [r7, #32]
  34538. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34539. 800f0ba: 6a3b ldr r3, [r7, #32]
  34540. 800f0bc: e853 3f00 ldrex r3, [r3]
  34541. 800f0c0: 61fb str r3, [r7, #28]
  34542. return(result);
  34543. 800f0c2: 69fb ldr r3, [r7, #28]
  34544. 800f0c4: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  34545. 800f0c8: 637b str r3, [r7, #52] @ 0x34
  34546. 800f0ca: 687b ldr r3, [r7, #4]
  34547. 800f0cc: 681b ldr r3, [r3, #0]
  34548. 800f0ce: 3308 adds r3, #8
  34549. 800f0d0: 6b7a ldr r2, [r7, #52] @ 0x34
  34550. 800f0d2: 62fa str r2, [r7, #44] @ 0x2c
  34551. 800f0d4: 62bb str r3, [r7, #40] @ 0x28
  34552. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34553. 800f0d6: 6ab9 ldr r1, [r7, #40] @ 0x28
  34554. 800f0d8: 6afa ldr r2, [r7, #44] @ 0x2c
  34555. 800f0da: e841 2300 strex r3, r2, [r1]
  34556. 800f0de: 627b str r3, [r7, #36] @ 0x24
  34557. return(result);
  34558. 800f0e0: 6a7b ldr r3, [r7, #36] @ 0x24
  34559. 800f0e2: 2b00 cmp r3, #0
  34560. 800f0e4: d1e5 bne.n 800f0b2 <UART_TxISR_16BIT_FIFOEN+0x28>
  34561. /* Enable the UART Transmit Complete Interrupt */
  34562. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  34563. 800f0e6: 687b ldr r3, [r7, #4]
  34564. 800f0e8: 681b ldr r3, [r3, #0]
  34565. 800f0ea: 60fb str r3, [r7, #12]
  34566. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34567. 800f0ec: 68fb ldr r3, [r7, #12]
  34568. 800f0ee: e853 3f00 ldrex r3, [r3]
  34569. 800f0f2: 60bb str r3, [r7, #8]
  34570. return(result);
  34571. 800f0f4: 68bb ldr r3, [r7, #8]
  34572. 800f0f6: f043 0340 orr.w r3, r3, #64 @ 0x40
  34573. 800f0fa: 633b str r3, [r7, #48] @ 0x30
  34574. 800f0fc: 687b ldr r3, [r7, #4]
  34575. 800f0fe: 681b ldr r3, [r3, #0]
  34576. 800f100: 461a mov r2, r3
  34577. 800f102: 6b3b ldr r3, [r7, #48] @ 0x30
  34578. 800f104: 61bb str r3, [r7, #24]
  34579. 800f106: 617a str r2, [r7, #20]
  34580. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34581. 800f108: 6979 ldr r1, [r7, #20]
  34582. 800f10a: 69ba ldr r2, [r7, #24]
  34583. 800f10c: e841 2300 strex r3, r2, [r1]
  34584. 800f110: 613b str r3, [r7, #16]
  34585. return(result);
  34586. 800f112: 693b ldr r3, [r7, #16]
  34587. 800f114: 2b00 cmp r3, #0
  34588. 800f116: d1e6 bne.n 800f0e6 <UART_TxISR_16BIT_FIFOEN+0x5c>
  34589. break; /* force exit loop */
  34590. 800f118: e026 b.n 800f168 <UART_TxISR_16BIT_FIFOEN+0xde>
  34591. }
  34592. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  34593. 800f11a: 687b ldr r3, [r7, #4]
  34594. 800f11c: 681b ldr r3, [r3, #0]
  34595. 800f11e: 69db ldr r3, [r3, #28]
  34596. 800f120: f003 0380 and.w r3, r3, #128 @ 0x80
  34597. 800f124: 2b00 cmp r3, #0
  34598. 800f126: d018 beq.n 800f15a <UART_TxISR_16BIT_FIFOEN+0xd0>
  34599. {
  34600. tmp = (const uint16_t *) huart->pTxBuffPtr;
  34601. 800f128: 687b ldr r3, [r7, #4]
  34602. 800f12a: 6d1b ldr r3, [r3, #80] @ 0x50
  34603. 800f12c: 63bb str r3, [r7, #56] @ 0x38
  34604. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  34605. 800f12e: 6bbb ldr r3, [r7, #56] @ 0x38
  34606. 800f130: 881b ldrh r3, [r3, #0]
  34607. 800f132: 461a mov r2, r3
  34608. 800f134: 687b ldr r3, [r7, #4]
  34609. 800f136: 681b ldr r3, [r3, #0]
  34610. 800f138: f3c2 0208 ubfx r2, r2, #0, #9
  34611. 800f13c: 629a str r2, [r3, #40] @ 0x28
  34612. huart->pTxBuffPtr += 2U;
  34613. 800f13e: 687b ldr r3, [r7, #4]
  34614. 800f140: 6d1b ldr r3, [r3, #80] @ 0x50
  34615. 800f142: 1c9a adds r2, r3, #2
  34616. 800f144: 687b ldr r3, [r7, #4]
  34617. 800f146: 651a str r2, [r3, #80] @ 0x50
  34618. huart->TxXferCount--;
  34619. 800f148: 687b ldr r3, [r7, #4]
  34620. 800f14a: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  34621. 800f14e: b29b uxth r3, r3
  34622. 800f150: 3b01 subs r3, #1
  34623. 800f152: b29a uxth r2, r3
  34624. 800f154: 687b ldr r3, [r7, #4]
  34625. 800f156: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  34626. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  34627. 800f15a: 8ffb ldrh r3, [r7, #62] @ 0x3e
  34628. 800f15c: 3b01 subs r3, #1
  34629. 800f15e: 87fb strh r3, [r7, #62] @ 0x3e
  34630. 800f160: 8ffb ldrh r3, [r7, #62] @ 0x3e
  34631. 800f162: 2b00 cmp r3, #0
  34632. 800f164: d19f bne.n 800f0a6 <UART_TxISR_16BIT_FIFOEN+0x1c>
  34633. {
  34634. /* Nothing to do */
  34635. }
  34636. }
  34637. }
  34638. }
  34639. 800f166: e7ff b.n 800f168 <UART_TxISR_16BIT_FIFOEN+0xde>
  34640. 800f168: bf00 nop
  34641. 800f16a: 3744 adds r7, #68 @ 0x44
  34642. 800f16c: 46bd mov sp, r7
  34643. 800f16e: f85d 7b04 ldr.w r7, [sp], #4
  34644. 800f172: 4770 bx lr
  34645. 0800f174 <UART_EndTransmit_IT>:
  34646. * @param huart pointer to a UART_HandleTypeDef structure that contains
  34647. * the configuration information for the specified UART module.
  34648. * @retval None
  34649. */
  34650. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  34651. {
  34652. 800f174: b580 push {r7, lr}
  34653. 800f176: b088 sub sp, #32
  34654. 800f178: af00 add r7, sp, #0
  34655. 800f17a: 6078 str r0, [r7, #4]
  34656. /* Disable the UART Transmit Complete Interrupt */
  34657. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  34658. 800f17c: 687b ldr r3, [r7, #4]
  34659. 800f17e: 681b ldr r3, [r3, #0]
  34660. 800f180: 60fb str r3, [r7, #12]
  34661. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34662. 800f182: 68fb ldr r3, [r7, #12]
  34663. 800f184: e853 3f00 ldrex r3, [r3]
  34664. 800f188: 60bb str r3, [r7, #8]
  34665. return(result);
  34666. 800f18a: 68bb ldr r3, [r7, #8]
  34667. 800f18c: f023 0340 bic.w r3, r3, #64 @ 0x40
  34668. 800f190: 61fb str r3, [r7, #28]
  34669. 800f192: 687b ldr r3, [r7, #4]
  34670. 800f194: 681b ldr r3, [r3, #0]
  34671. 800f196: 461a mov r2, r3
  34672. 800f198: 69fb ldr r3, [r7, #28]
  34673. 800f19a: 61bb str r3, [r7, #24]
  34674. 800f19c: 617a str r2, [r7, #20]
  34675. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34676. 800f19e: 6979 ldr r1, [r7, #20]
  34677. 800f1a0: 69ba ldr r2, [r7, #24]
  34678. 800f1a2: e841 2300 strex r3, r2, [r1]
  34679. 800f1a6: 613b str r3, [r7, #16]
  34680. return(result);
  34681. 800f1a8: 693b ldr r3, [r7, #16]
  34682. 800f1aa: 2b00 cmp r3, #0
  34683. 800f1ac: d1e6 bne.n 800f17c <UART_EndTransmit_IT+0x8>
  34684. /* Tx process is ended, restore huart->gState to Ready */
  34685. huart->gState = HAL_UART_STATE_READY;
  34686. 800f1ae: 687b ldr r3, [r7, #4]
  34687. 800f1b0: 2220 movs r2, #32
  34688. 800f1b2: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  34689. /* Cleat TxISR function pointer */
  34690. huart->TxISR = NULL;
  34691. 800f1b6: 687b ldr r3, [r7, #4]
  34692. 800f1b8: 2200 movs r2, #0
  34693. 800f1ba: 679a str r2, [r3, #120] @ 0x78
  34694. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34695. /*Call registered Tx complete callback*/
  34696. huart->TxCpltCallback(huart);
  34697. #else
  34698. /*Call legacy weak Tx complete callback*/
  34699. HAL_UART_TxCpltCallback(huart);
  34700. 800f1bc: 6878 ldr r0, [r7, #4]
  34701. 800f1be: f7f5 f85f bl 8004280 <HAL_UART_TxCpltCallback>
  34702. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  34703. }
  34704. 800f1c2: bf00 nop
  34705. 800f1c4: 3720 adds r7, #32
  34706. 800f1c6: 46bd mov sp, r7
  34707. 800f1c8: bd80 pop {r7, pc}
  34708. ...
  34709. 0800f1cc <UART_RxISR_8BIT>:
  34710. * @brief RX interrupt handler for 7 or 8 bits data word length .
  34711. * @param huart UART handle.
  34712. * @retval None
  34713. */
  34714. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  34715. {
  34716. 800f1cc: b580 push {r7, lr}
  34717. 800f1ce: b09c sub sp, #112 @ 0x70
  34718. 800f1d0: af00 add r7, sp, #0
  34719. 800f1d2: 6078 str r0, [r7, #4]
  34720. uint16_t uhMask = huart->Mask;
  34721. 800f1d4: 687b ldr r3, [r7, #4]
  34722. 800f1d6: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  34723. 800f1da: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  34724. uint16_t uhdata;
  34725. /* Check that a Rx process is ongoing */
  34726. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  34727. 800f1de: 687b ldr r3, [r7, #4]
  34728. 800f1e0: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  34729. 800f1e4: 2b22 cmp r3, #34 @ 0x22
  34730. 800f1e6: f040 80be bne.w 800f366 <UART_RxISR_8BIT+0x19a>
  34731. {
  34732. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  34733. 800f1ea: 687b ldr r3, [r7, #4]
  34734. 800f1ec: 681b ldr r3, [r3, #0]
  34735. 800f1ee: 6a5b ldr r3, [r3, #36] @ 0x24
  34736. 800f1f0: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  34737. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  34738. 800f1f4: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  34739. 800f1f8: b2d9 uxtb r1, r3
  34740. 800f1fa: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  34741. 800f1fe: b2da uxtb r2, r3
  34742. 800f200: 687b ldr r3, [r7, #4]
  34743. 800f202: 6d9b ldr r3, [r3, #88] @ 0x58
  34744. 800f204: 400a ands r2, r1
  34745. 800f206: b2d2 uxtb r2, r2
  34746. 800f208: 701a strb r2, [r3, #0]
  34747. huart->pRxBuffPtr++;
  34748. 800f20a: 687b ldr r3, [r7, #4]
  34749. 800f20c: 6d9b ldr r3, [r3, #88] @ 0x58
  34750. 800f20e: 1c5a adds r2, r3, #1
  34751. 800f210: 687b ldr r3, [r7, #4]
  34752. 800f212: 659a str r2, [r3, #88] @ 0x58
  34753. huart->RxXferCount--;
  34754. 800f214: 687b ldr r3, [r7, #4]
  34755. 800f216: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34756. 800f21a: b29b uxth r3, r3
  34757. 800f21c: 3b01 subs r3, #1
  34758. 800f21e: b29a uxth r2, r3
  34759. 800f220: 687b ldr r3, [r7, #4]
  34760. 800f222: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  34761. if (huart->RxXferCount == 0U)
  34762. 800f226: 687b ldr r3, [r7, #4]
  34763. 800f228: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  34764. 800f22c: b29b uxth r3, r3
  34765. 800f22e: 2b00 cmp r3, #0
  34766. 800f230: f040 80a1 bne.w 800f376 <UART_RxISR_8BIT+0x1aa>
  34767. {
  34768. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  34769. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  34770. 800f234: 687b ldr r3, [r7, #4]
  34771. 800f236: 681b ldr r3, [r3, #0]
  34772. 800f238: 64fb str r3, [r7, #76] @ 0x4c
  34773. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34774. 800f23a: 6cfb ldr r3, [r7, #76] @ 0x4c
  34775. 800f23c: e853 3f00 ldrex r3, [r3]
  34776. 800f240: 64bb str r3, [r7, #72] @ 0x48
  34777. return(result);
  34778. 800f242: 6cbb ldr r3, [r7, #72] @ 0x48
  34779. 800f244: f423 7390 bic.w r3, r3, #288 @ 0x120
  34780. 800f248: 66bb str r3, [r7, #104] @ 0x68
  34781. 800f24a: 687b ldr r3, [r7, #4]
  34782. 800f24c: 681b ldr r3, [r3, #0]
  34783. 800f24e: 461a mov r2, r3
  34784. 800f250: 6ebb ldr r3, [r7, #104] @ 0x68
  34785. 800f252: 65bb str r3, [r7, #88] @ 0x58
  34786. 800f254: 657a str r2, [r7, #84] @ 0x54
  34787. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34788. 800f256: 6d79 ldr r1, [r7, #84] @ 0x54
  34789. 800f258: 6dba ldr r2, [r7, #88] @ 0x58
  34790. 800f25a: e841 2300 strex r3, r2, [r1]
  34791. 800f25e: 653b str r3, [r7, #80] @ 0x50
  34792. return(result);
  34793. 800f260: 6d3b ldr r3, [r7, #80] @ 0x50
  34794. 800f262: 2b00 cmp r3, #0
  34795. 800f264: d1e6 bne.n 800f234 <UART_RxISR_8BIT+0x68>
  34796. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  34797. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  34798. 800f266: 687b ldr r3, [r7, #4]
  34799. 800f268: 681b ldr r3, [r3, #0]
  34800. 800f26a: 3308 adds r3, #8
  34801. 800f26c: 63bb str r3, [r7, #56] @ 0x38
  34802. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34803. 800f26e: 6bbb ldr r3, [r7, #56] @ 0x38
  34804. 800f270: e853 3f00 ldrex r3, [r3]
  34805. 800f274: 637b str r3, [r7, #52] @ 0x34
  34806. return(result);
  34807. 800f276: 6b7b ldr r3, [r7, #52] @ 0x34
  34808. 800f278: f023 0301 bic.w r3, r3, #1
  34809. 800f27c: 667b str r3, [r7, #100] @ 0x64
  34810. 800f27e: 687b ldr r3, [r7, #4]
  34811. 800f280: 681b ldr r3, [r3, #0]
  34812. 800f282: 3308 adds r3, #8
  34813. 800f284: 6e7a ldr r2, [r7, #100] @ 0x64
  34814. 800f286: 647a str r2, [r7, #68] @ 0x44
  34815. 800f288: 643b str r3, [r7, #64] @ 0x40
  34816. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34817. 800f28a: 6c39 ldr r1, [r7, #64] @ 0x40
  34818. 800f28c: 6c7a ldr r2, [r7, #68] @ 0x44
  34819. 800f28e: e841 2300 strex r3, r2, [r1]
  34820. 800f292: 63fb str r3, [r7, #60] @ 0x3c
  34821. return(result);
  34822. 800f294: 6bfb ldr r3, [r7, #60] @ 0x3c
  34823. 800f296: 2b00 cmp r3, #0
  34824. 800f298: d1e5 bne.n 800f266 <UART_RxISR_8BIT+0x9a>
  34825. /* Rx process is completed, restore huart->RxState to Ready */
  34826. huart->RxState = HAL_UART_STATE_READY;
  34827. 800f29a: 687b ldr r3, [r7, #4]
  34828. 800f29c: 2220 movs r2, #32
  34829. 800f29e: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  34830. /* Clear RxISR function pointer */
  34831. huart->RxISR = NULL;
  34832. 800f2a2: 687b ldr r3, [r7, #4]
  34833. 800f2a4: 2200 movs r2, #0
  34834. 800f2a6: 675a str r2, [r3, #116] @ 0x74
  34835. /* Initialize type of RxEvent to Transfer Complete */
  34836. huart->RxEventType = HAL_UART_RXEVENT_TC;
  34837. 800f2a8: 687b ldr r3, [r7, #4]
  34838. 800f2aa: 2200 movs r2, #0
  34839. 800f2ac: 671a str r2, [r3, #112] @ 0x70
  34840. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  34841. 800f2ae: 687b ldr r3, [r7, #4]
  34842. 800f2b0: 681b ldr r3, [r3, #0]
  34843. 800f2b2: 4a33 ldr r2, [pc, #204] @ (800f380 <UART_RxISR_8BIT+0x1b4>)
  34844. 800f2b4: 4293 cmp r3, r2
  34845. 800f2b6: d01f beq.n 800f2f8 <UART_RxISR_8BIT+0x12c>
  34846. {
  34847. /* Check that USART RTOEN bit is set */
  34848. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  34849. 800f2b8: 687b ldr r3, [r7, #4]
  34850. 800f2ba: 681b ldr r3, [r3, #0]
  34851. 800f2bc: 685b ldr r3, [r3, #4]
  34852. 800f2be: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  34853. 800f2c2: 2b00 cmp r3, #0
  34854. 800f2c4: d018 beq.n 800f2f8 <UART_RxISR_8BIT+0x12c>
  34855. {
  34856. /* Enable the UART Receiver Timeout Interrupt */
  34857. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  34858. 800f2c6: 687b ldr r3, [r7, #4]
  34859. 800f2c8: 681b ldr r3, [r3, #0]
  34860. 800f2ca: 627b str r3, [r7, #36] @ 0x24
  34861. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34862. 800f2cc: 6a7b ldr r3, [r7, #36] @ 0x24
  34863. 800f2ce: e853 3f00 ldrex r3, [r3]
  34864. 800f2d2: 623b str r3, [r7, #32]
  34865. return(result);
  34866. 800f2d4: 6a3b ldr r3, [r7, #32]
  34867. 800f2d6: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34868. 800f2da: 663b str r3, [r7, #96] @ 0x60
  34869. 800f2dc: 687b ldr r3, [r7, #4]
  34870. 800f2de: 681b ldr r3, [r3, #0]
  34871. 800f2e0: 461a mov r2, r3
  34872. 800f2e2: 6e3b ldr r3, [r7, #96] @ 0x60
  34873. 800f2e4: 633b str r3, [r7, #48] @ 0x30
  34874. 800f2e6: 62fa str r2, [r7, #44] @ 0x2c
  34875. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34876. 800f2e8: 6af9 ldr r1, [r7, #44] @ 0x2c
  34877. 800f2ea: 6b3a ldr r2, [r7, #48] @ 0x30
  34878. 800f2ec: e841 2300 strex r3, r2, [r1]
  34879. 800f2f0: 62bb str r3, [r7, #40] @ 0x28
  34880. return(result);
  34881. 800f2f2: 6abb ldr r3, [r7, #40] @ 0x28
  34882. 800f2f4: 2b00 cmp r3, #0
  34883. 800f2f6: d1e6 bne.n 800f2c6 <UART_RxISR_8BIT+0xfa>
  34884. }
  34885. }
  34886. /* Check current reception Mode :
  34887. If Reception till IDLE event has been selected : */
  34888. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  34889. 800f2f8: 687b ldr r3, [r7, #4]
  34890. 800f2fa: 6edb ldr r3, [r3, #108] @ 0x6c
  34891. 800f2fc: 2b01 cmp r3, #1
  34892. 800f2fe: d12e bne.n 800f35e <UART_RxISR_8BIT+0x192>
  34893. {
  34894. /* Set reception type to Standard */
  34895. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  34896. 800f300: 687b ldr r3, [r7, #4]
  34897. 800f302: 2200 movs r2, #0
  34898. 800f304: 66da str r2, [r3, #108] @ 0x6c
  34899. /* Disable IDLE interrupt */
  34900. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  34901. 800f306: 687b ldr r3, [r7, #4]
  34902. 800f308: 681b ldr r3, [r3, #0]
  34903. 800f30a: 613b str r3, [r7, #16]
  34904. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  34905. 800f30c: 693b ldr r3, [r7, #16]
  34906. 800f30e: e853 3f00 ldrex r3, [r3]
  34907. 800f312: 60fb str r3, [r7, #12]
  34908. return(result);
  34909. 800f314: 68fb ldr r3, [r7, #12]
  34910. 800f316: f023 0310 bic.w r3, r3, #16
  34911. 800f31a: 65fb str r3, [r7, #92] @ 0x5c
  34912. 800f31c: 687b ldr r3, [r7, #4]
  34913. 800f31e: 681b ldr r3, [r3, #0]
  34914. 800f320: 461a mov r2, r3
  34915. 800f322: 6dfb ldr r3, [r7, #92] @ 0x5c
  34916. 800f324: 61fb str r3, [r7, #28]
  34917. 800f326: 61ba str r2, [r7, #24]
  34918. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  34919. 800f328: 69b9 ldr r1, [r7, #24]
  34920. 800f32a: 69fa ldr r2, [r7, #28]
  34921. 800f32c: e841 2300 strex r3, r2, [r1]
  34922. 800f330: 617b str r3, [r7, #20]
  34923. return(result);
  34924. 800f332: 697b ldr r3, [r7, #20]
  34925. 800f334: 2b00 cmp r3, #0
  34926. 800f336: d1e6 bne.n 800f306 <UART_RxISR_8BIT+0x13a>
  34927. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  34928. 800f338: 687b ldr r3, [r7, #4]
  34929. 800f33a: 681b ldr r3, [r3, #0]
  34930. 800f33c: 69db ldr r3, [r3, #28]
  34931. 800f33e: f003 0310 and.w r3, r3, #16
  34932. 800f342: 2b10 cmp r3, #16
  34933. 800f344: d103 bne.n 800f34e <UART_RxISR_8BIT+0x182>
  34934. {
  34935. /* Clear IDLE Flag */
  34936. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  34937. 800f346: 687b ldr r3, [r7, #4]
  34938. 800f348: 681b ldr r3, [r3, #0]
  34939. 800f34a: 2210 movs r2, #16
  34940. 800f34c: 621a str r2, [r3, #32]
  34941. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  34942. /*Call registered Rx Event callback*/
  34943. huart->RxEventCallback(huart, huart->RxXferSize);
  34944. #else
  34945. /*Call legacy weak Rx Event callback*/
  34946. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  34947. 800f34e: 687b ldr r3, [r7, #4]
  34948. 800f350: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  34949. 800f354: 4619 mov r1, r3
  34950. 800f356: 6878 ldr r0, [r7, #4]
  34951. 800f358: f7f4 ff38 bl 80041cc <HAL_UARTEx_RxEventCallback>
  34952. else
  34953. {
  34954. /* Clear RXNE interrupt flag */
  34955. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34956. }
  34957. }
  34958. 800f35c: e00b b.n 800f376 <UART_RxISR_8BIT+0x1aa>
  34959. HAL_UART_RxCpltCallback(huart);
  34960. 800f35e: 6878 ldr r0, [r7, #4]
  34961. 800f360: f7f4 ff2a bl 80041b8 <HAL_UART_RxCpltCallback>
  34962. }
  34963. 800f364: e007 b.n 800f376 <UART_RxISR_8BIT+0x1aa>
  34964. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  34965. 800f366: 687b ldr r3, [r7, #4]
  34966. 800f368: 681b ldr r3, [r3, #0]
  34967. 800f36a: 699a ldr r2, [r3, #24]
  34968. 800f36c: 687b ldr r3, [r7, #4]
  34969. 800f36e: 681b ldr r3, [r3, #0]
  34970. 800f370: f042 0208 orr.w r2, r2, #8
  34971. 800f374: 619a str r2, [r3, #24]
  34972. }
  34973. 800f376: bf00 nop
  34974. 800f378: 3770 adds r7, #112 @ 0x70
  34975. 800f37a: 46bd mov sp, r7
  34976. 800f37c: bd80 pop {r7, pc}
  34977. 800f37e: bf00 nop
  34978. 800f380: 58000c00 .word 0x58000c00
  34979. 0800f384 <UART_RxISR_16BIT>:
  34980. * interruptions have been enabled by HAL_UART_Receive_IT()
  34981. * @param huart UART handle.
  34982. * @retval None
  34983. */
  34984. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  34985. {
  34986. 800f384: b580 push {r7, lr}
  34987. 800f386: b09c sub sp, #112 @ 0x70
  34988. 800f388: af00 add r7, sp, #0
  34989. 800f38a: 6078 str r0, [r7, #4]
  34990. uint16_t *tmp;
  34991. uint16_t uhMask = huart->Mask;
  34992. 800f38c: 687b ldr r3, [r7, #4]
  34993. 800f38e: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  34994. 800f392: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  34995. uint16_t uhdata;
  34996. /* Check that a Rx process is ongoing */
  34997. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  34998. 800f396: 687b ldr r3, [r7, #4]
  34999. 800f398: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35000. 800f39c: 2b22 cmp r3, #34 @ 0x22
  35001. 800f39e: f040 80be bne.w 800f51e <UART_RxISR_16BIT+0x19a>
  35002. {
  35003. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  35004. 800f3a2: 687b ldr r3, [r7, #4]
  35005. 800f3a4: 681b ldr r3, [r3, #0]
  35006. 800f3a6: 6a5b ldr r3, [r3, #36] @ 0x24
  35007. 800f3a8: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  35008. tmp = (uint16_t *) huart->pRxBuffPtr ;
  35009. 800f3ac: 687b ldr r3, [r7, #4]
  35010. 800f3ae: 6d9b ldr r3, [r3, #88] @ 0x58
  35011. 800f3b0: 66bb str r3, [r7, #104] @ 0x68
  35012. *tmp = (uint16_t)(uhdata & uhMask);
  35013. 800f3b2: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  35014. 800f3b6: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  35015. 800f3ba: 4013 ands r3, r2
  35016. 800f3bc: b29a uxth r2, r3
  35017. 800f3be: 6ebb ldr r3, [r7, #104] @ 0x68
  35018. 800f3c0: 801a strh r2, [r3, #0]
  35019. huart->pRxBuffPtr += 2U;
  35020. 800f3c2: 687b ldr r3, [r7, #4]
  35021. 800f3c4: 6d9b ldr r3, [r3, #88] @ 0x58
  35022. 800f3c6: 1c9a adds r2, r3, #2
  35023. 800f3c8: 687b ldr r3, [r7, #4]
  35024. 800f3ca: 659a str r2, [r3, #88] @ 0x58
  35025. huart->RxXferCount--;
  35026. 800f3cc: 687b ldr r3, [r7, #4]
  35027. 800f3ce: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35028. 800f3d2: b29b uxth r3, r3
  35029. 800f3d4: 3b01 subs r3, #1
  35030. 800f3d6: b29a uxth r2, r3
  35031. 800f3d8: 687b ldr r3, [r7, #4]
  35032. 800f3da: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  35033. if (huart->RxXferCount == 0U)
  35034. 800f3de: 687b ldr r3, [r7, #4]
  35035. 800f3e0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35036. 800f3e4: b29b uxth r3, r3
  35037. 800f3e6: 2b00 cmp r3, #0
  35038. 800f3e8: f040 80a1 bne.w 800f52e <UART_RxISR_16BIT+0x1aa>
  35039. {
  35040. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  35041. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  35042. 800f3ec: 687b ldr r3, [r7, #4]
  35043. 800f3ee: 681b ldr r3, [r3, #0]
  35044. 800f3f0: 64bb str r3, [r7, #72] @ 0x48
  35045. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35046. 800f3f2: 6cbb ldr r3, [r7, #72] @ 0x48
  35047. 800f3f4: e853 3f00 ldrex r3, [r3]
  35048. 800f3f8: 647b str r3, [r7, #68] @ 0x44
  35049. return(result);
  35050. 800f3fa: 6c7b ldr r3, [r7, #68] @ 0x44
  35051. 800f3fc: f423 7390 bic.w r3, r3, #288 @ 0x120
  35052. 800f400: 667b str r3, [r7, #100] @ 0x64
  35053. 800f402: 687b ldr r3, [r7, #4]
  35054. 800f404: 681b ldr r3, [r3, #0]
  35055. 800f406: 461a mov r2, r3
  35056. 800f408: 6e7b ldr r3, [r7, #100] @ 0x64
  35057. 800f40a: 657b str r3, [r7, #84] @ 0x54
  35058. 800f40c: 653a str r2, [r7, #80] @ 0x50
  35059. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35060. 800f40e: 6d39 ldr r1, [r7, #80] @ 0x50
  35061. 800f410: 6d7a ldr r2, [r7, #84] @ 0x54
  35062. 800f412: e841 2300 strex r3, r2, [r1]
  35063. 800f416: 64fb str r3, [r7, #76] @ 0x4c
  35064. return(result);
  35065. 800f418: 6cfb ldr r3, [r7, #76] @ 0x4c
  35066. 800f41a: 2b00 cmp r3, #0
  35067. 800f41c: d1e6 bne.n 800f3ec <UART_RxISR_16BIT+0x68>
  35068. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  35069. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  35070. 800f41e: 687b ldr r3, [r7, #4]
  35071. 800f420: 681b ldr r3, [r3, #0]
  35072. 800f422: 3308 adds r3, #8
  35073. 800f424: 637b str r3, [r7, #52] @ 0x34
  35074. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35075. 800f426: 6b7b ldr r3, [r7, #52] @ 0x34
  35076. 800f428: e853 3f00 ldrex r3, [r3]
  35077. 800f42c: 633b str r3, [r7, #48] @ 0x30
  35078. return(result);
  35079. 800f42e: 6b3b ldr r3, [r7, #48] @ 0x30
  35080. 800f430: f023 0301 bic.w r3, r3, #1
  35081. 800f434: 663b str r3, [r7, #96] @ 0x60
  35082. 800f436: 687b ldr r3, [r7, #4]
  35083. 800f438: 681b ldr r3, [r3, #0]
  35084. 800f43a: 3308 adds r3, #8
  35085. 800f43c: 6e3a ldr r2, [r7, #96] @ 0x60
  35086. 800f43e: 643a str r2, [r7, #64] @ 0x40
  35087. 800f440: 63fb str r3, [r7, #60] @ 0x3c
  35088. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35089. 800f442: 6bf9 ldr r1, [r7, #60] @ 0x3c
  35090. 800f444: 6c3a ldr r2, [r7, #64] @ 0x40
  35091. 800f446: e841 2300 strex r3, r2, [r1]
  35092. 800f44a: 63bb str r3, [r7, #56] @ 0x38
  35093. return(result);
  35094. 800f44c: 6bbb ldr r3, [r7, #56] @ 0x38
  35095. 800f44e: 2b00 cmp r3, #0
  35096. 800f450: d1e5 bne.n 800f41e <UART_RxISR_16BIT+0x9a>
  35097. /* Rx process is completed, restore huart->RxState to Ready */
  35098. huart->RxState = HAL_UART_STATE_READY;
  35099. 800f452: 687b ldr r3, [r7, #4]
  35100. 800f454: 2220 movs r2, #32
  35101. 800f456: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  35102. /* Clear RxISR function pointer */
  35103. huart->RxISR = NULL;
  35104. 800f45a: 687b ldr r3, [r7, #4]
  35105. 800f45c: 2200 movs r2, #0
  35106. 800f45e: 675a str r2, [r3, #116] @ 0x74
  35107. /* Initialize type of RxEvent to Transfer Complete */
  35108. huart->RxEventType = HAL_UART_RXEVENT_TC;
  35109. 800f460: 687b ldr r3, [r7, #4]
  35110. 800f462: 2200 movs r2, #0
  35111. 800f464: 671a str r2, [r3, #112] @ 0x70
  35112. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  35113. 800f466: 687b ldr r3, [r7, #4]
  35114. 800f468: 681b ldr r3, [r3, #0]
  35115. 800f46a: 4a33 ldr r2, [pc, #204] @ (800f538 <UART_RxISR_16BIT+0x1b4>)
  35116. 800f46c: 4293 cmp r3, r2
  35117. 800f46e: d01f beq.n 800f4b0 <UART_RxISR_16BIT+0x12c>
  35118. {
  35119. /* Check that USART RTOEN bit is set */
  35120. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  35121. 800f470: 687b ldr r3, [r7, #4]
  35122. 800f472: 681b ldr r3, [r3, #0]
  35123. 800f474: 685b ldr r3, [r3, #4]
  35124. 800f476: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  35125. 800f47a: 2b00 cmp r3, #0
  35126. 800f47c: d018 beq.n 800f4b0 <UART_RxISR_16BIT+0x12c>
  35127. {
  35128. /* Enable the UART Receiver Timeout Interrupt */
  35129. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  35130. 800f47e: 687b ldr r3, [r7, #4]
  35131. 800f480: 681b ldr r3, [r3, #0]
  35132. 800f482: 623b str r3, [r7, #32]
  35133. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35134. 800f484: 6a3b ldr r3, [r7, #32]
  35135. 800f486: e853 3f00 ldrex r3, [r3]
  35136. 800f48a: 61fb str r3, [r7, #28]
  35137. return(result);
  35138. 800f48c: 69fb ldr r3, [r7, #28]
  35139. 800f48e: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  35140. 800f492: 65fb str r3, [r7, #92] @ 0x5c
  35141. 800f494: 687b ldr r3, [r7, #4]
  35142. 800f496: 681b ldr r3, [r3, #0]
  35143. 800f498: 461a mov r2, r3
  35144. 800f49a: 6dfb ldr r3, [r7, #92] @ 0x5c
  35145. 800f49c: 62fb str r3, [r7, #44] @ 0x2c
  35146. 800f49e: 62ba str r2, [r7, #40] @ 0x28
  35147. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35148. 800f4a0: 6ab9 ldr r1, [r7, #40] @ 0x28
  35149. 800f4a2: 6afa ldr r2, [r7, #44] @ 0x2c
  35150. 800f4a4: e841 2300 strex r3, r2, [r1]
  35151. 800f4a8: 627b str r3, [r7, #36] @ 0x24
  35152. return(result);
  35153. 800f4aa: 6a7b ldr r3, [r7, #36] @ 0x24
  35154. 800f4ac: 2b00 cmp r3, #0
  35155. 800f4ae: d1e6 bne.n 800f47e <UART_RxISR_16BIT+0xfa>
  35156. }
  35157. }
  35158. /* Check current reception Mode :
  35159. If Reception till IDLE event has been selected : */
  35160. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  35161. 800f4b0: 687b ldr r3, [r7, #4]
  35162. 800f4b2: 6edb ldr r3, [r3, #108] @ 0x6c
  35163. 800f4b4: 2b01 cmp r3, #1
  35164. 800f4b6: d12e bne.n 800f516 <UART_RxISR_16BIT+0x192>
  35165. {
  35166. /* Set reception type to Standard */
  35167. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  35168. 800f4b8: 687b ldr r3, [r7, #4]
  35169. 800f4ba: 2200 movs r2, #0
  35170. 800f4bc: 66da str r2, [r3, #108] @ 0x6c
  35171. /* Disable IDLE interrupt */
  35172. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  35173. 800f4be: 687b ldr r3, [r7, #4]
  35174. 800f4c0: 681b ldr r3, [r3, #0]
  35175. 800f4c2: 60fb str r3, [r7, #12]
  35176. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35177. 800f4c4: 68fb ldr r3, [r7, #12]
  35178. 800f4c6: e853 3f00 ldrex r3, [r3]
  35179. 800f4ca: 60bb str r3, [r7, #8]
  35180. return(result);
  35181. 800f4cc: 68bb ldr r3, [r7, #8]
  35182. 800f4ce: f023 0310 bic.w r3, r3, #16
  35183. 800f4d2: 65bb str r3, [r7, #88] @ 0x58
  35184. 800f4d4: 687b ldr r3, [r7, #4]
  35185. 800f4d6: 681b ldr r3, [r3, #0]
  35186. 800f4d8: 461a mov r2, r3
  35187. 800f4da: 6dbb ldr r3, [r7, #88] @ 0x58
  35188. 800f4dc: 61bb str r3, [r7, #24]
  35189. 800f4de: 617a str r2, [r7, #20]
  35190. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35191. 800f4e0: 6979 ldr r1, [r7, #20]
  35192. 800f4e2: 69ba ldr r2, [r7, #24]
  35193. 800f4e4: e841 2300 strex r3, r2, [r1]
  35194. 800f4e8: 613b str r3, [r7, #16]
  35195. return(result);
  35196. 800f4ea: 693b ldr r3, [r7, #16]
  35197. 800f4ec: 2b00 cmp r3, #0
  35198. 800f4ee: d1e6 bne.n 800f4be <UART_RxISR_16BIT+0x13a>
  35199. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  35200. 800f4f0: 687b ldr r3, [r7, #4]
  35201. 800f4f2: 681b ldr r3, [r3, #0]
  35202. 800f4f4: 69db ldr r3, [r3, #28]
  35203. 800f4f6: f003 0310 and.w r3, r3, #16
  35204. 800f4fa: 2b10 cmp r3, #16
  35205. 800f4fc: d103 bne.n 800f506 <UART_RxISR_16BIT+0x182>
  35206. {
  35207. /* Clear IDLE Flag */
  35208. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  35209. 800f4fe: 687b ldr r3, [r7, #4]
  35210. 800f500: 681b ldr r3, [r3, #0]
  35211. 800f502: 2210 movs r2, #16
  35212. 800f504: 621a str r2, [r3, #32]
  35213. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35214. /*Call registered Rx Event callback*/
  35215. huart->RxEventCallback(huart, huart->RxXferSize);
  35216. #else
  35217. /*Call legacy weak Rx Event callback*/
  35218. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  35219. 800f506: 687b ldr r3, [r7, #4]
  35220. 800f508: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  35221. 800f50c: 4619 mov r1, r3
  35222. 800f50e: 6878 ldr r0, [r7, #4]
  35223. 800f510: f7f4 fe5c bl 80041cc <HAL_UARTEx_RxEventCallback>
  35224. else
  35225. {
  35226. /* Clear RXNE interrupt flag */
  35227. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35228. }
  35229. }
  35230. 800f514: e00b b.n 800f52e <UART_RxISR_16BIT+0x1aa>
  35231. HAL_UART_RxCpltCallback(huart);
  35232. 800f516: 6878 ldr r0, [r7, #4]
  35233. 800f518: f7f4 fe4e bl 80041b8 <HAL_UART_RxCpltCallback>
  35234. }
  35235. 800f51c: e007 b.n 800f52e <UART_RxISR_16BIT+0x1aa>
  35236. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35237. 800f51e: 687b ldr r3, [r7, #4]
  35238. 800f520: 681b ldr r3, [r3, #0]
  35239. 800f522: 699a ldr r2, [r3, #24]
  35240. 800f524: 687b ldr r3, [r7, #4]
  35241. 800f526: 681b ldr r3, [r3, #0]
  35242. 800f528: f042 0208 orr.w r2, r2, #8
  35243. 800f52c: 619a str r2, [r3, #24]
  35244. }
  35245. 800f52e: bf00 nop
  35246. 800f530: 3770 adds r7, #112 @ 0x70
  35247. 800f532: 46bd mov sp, r7
  35248. 800f534: bd80 pop {r7, pc}
  35249. 800f536: bf00 nop
  35250. 800f538: 58000c00 .word 0x58000c00
  35251. 0800f53c <UART_RxISR_8BIT_FIFOEN>:
  35252. * interruptions have been enabled by HAL_UART_Receive_IT()
  35253. * @param huart UART handle.
  35254. * @retval None
  35255. */
  35256. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  35257. {
  35258. 800f53c: b580 push {r7, lr}
  35259. 800f53e: b0ac sub sp, #176 @ 0xb0
  35260. 800f540: af00 add r7, sp, #0
  35261. 800f542: 6078 str r0, [r7, #4]
  35262. uint16_t uhMask = huart->Mask;
  35263. 800f544: 687b ldr r3, [r7, #4]
  35264. 800f546: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  35265. 800f54a: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  35266. uint16_t uhdata;
  35267. uint16_t nb_rx_data;
  35268. uint16_t rxdatacount;
  35269. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  35270. 800f54e: 687b ldr r3, [r7, #4]
  35271. 800f550: 681b ldr r3, [r3, #0]
  35272. 800f552: 69db ldr r3, [r3, #28]
  35273. 800f554: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  35274. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  35275. 800f558: 687b ldr r3, [r7, #4]
  35276. 800f55a: 681b ldr r3, [r3, #0]
  35277. 800f55c: 681b ldr r3, [r3, #0]
  35278. 800f55e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  35279. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  35280. 800f562: 687b ldr r3, [r7, #4]
  35281. 800f564: 681b ldr r3, [r3, #0]
  35282. 800f566: 689b ldr r3, [r3, #8]
  35283. 800f568: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35284. /* Check that a Rx process is ongoing */
  35285. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  35286. 800f56c: 687b ldr r3, [r7, #4]
  35287. 800f56e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35288. 800f572: 2b22 cmp r3, #34 @ 0x22
  35289. 800f574: f040 8180 bne.w 800f878 <UART_RxISR_8BIT_FIFOEN+0x33c>
  35290. {
  35291. nb_rx_data = huart->NbRxDataToProcess;
  35292. 800f578: 687b ldr r3, [r7, #4]
  35293. 800f57a: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  35294. 800f57e: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  35295. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  35296. 800f582: e123 b.n 800f7cc <UART_RxISR_8BIT_FIFOEN+0x290>
  35297. {
  35298. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  35299. 800f584: 687b ldr r3, [r7, #4]
  35300. 800f586: 681b ldr r3, [r3, #0]
  35301. 800f588: 6a5b ldr r3, [r3, #36] @ 0x24
  35302. 800f58a: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  35303. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  35304. 800f58e: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  35305. 800f592: b2d9 uxtb r1, r3
  35306. 800f594: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  35307. 800f598: b2da uxtb r2, r3
  35308. 800f59a: 687b ldr r3, [r7, #4]
  35309. 800f59c: 6d9b ldr r3, [r3, #88] @ 0x58
  35310. 800f59e: 400a ands r2, r1
  35311. 800f5a0: b2d2 uxtb r2, r2
  35312. 800f5a2: 701a strb r2, [r3, #0]
  35313. huart->pRxBuffPtr++;
  35314. 800f5a4: 687b ldr r3, [r7, #4]
  35315. 800f5a6: 6d9b ldr r3, [r3, #88] @ 0x58
  35316. 800f5a8: 1c5a adds r2, r3, #1
  35317. 800f5aa: 687b ldr r3, [r7, #4]
  35318. 800f5ac: 659a str r2, [r3, #88] @ 0x58
  35319. huart->RxXferCount--;
  35320. 800f5ae: 687b ldr r3, [r7, #4]
  35321. 800f5b0: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35322. 800f5b4: b29b uxth r3, r3
  35323. 800f5b6: 3b01 subs r3, #1
  35324. 800f5b8: b29a uxth r2, r3
  35325. 800f5ba: 687b ldr r3, [r7, #4]
  35326. 800f5bc: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  35327. isrflags = READ_REG(huart->Instance->ISR);
  35328. 800f5c0: 687b ldr r3, [r7, #4]
  35329. 800f5c2: 681b ldr r3, [r3, #0]
  35330. 800f5c4: 69db ldr r3, [r3, #28]
  35331. 800f5c6: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  35332. /* If some non blocking errors occurred */
  35333. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  35334. 800f5ca: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35335. 800f5ce: f003 0307 and.w r3, r3, #7
  35336. 800f5d2: 2b00 cmp r3, #0
  35337. 800f5d4: d053 beq.n 800f67e <UART_RxISR_8BIT_FIFOEN+0x142>
  35338. {
  35339. /* UART parity error interrupt occurred -------------------------------------*/
  35340. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  35341. 800f5d6: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35342. 800f5da: f003 0301 and.w r3, r3, #1
  35343. 800f5de: 2b00 cmp r3, #0
  35344. 800f5e0: d011 beq.n 800f606 <UART_RxISR_8BIT_FIFOEN+0xca>
  35345. 800f5e2: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  35346. 800f5e6: f403 7380 and.w r3, r3, #256 @ 0x100
  35347. 800f5ea: 2b00 cmp r3, #0
  35348. 800f5ec: d00b beq.n 800f606 <UART_RxISR_8BIT_FIFOEN+0xca>
  35349. {
  35350. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  35351. 800f5ee: 687b ldr r3, [r7, #4]
  35352. 800f5f0: 681b ldr r3, [r3, #0]
  35353. 800f5f2: 2201 movs r2, #1
  35354. 800f5f4: 621a str r2, [r3, #32]
  35355. huart->ErrorCode |= HAL_UART_ERROR_PE;
  35356. 800f5f6: 687b ldr r3, [r7, #4]
  35357. 800f5f8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35358. 800f5fc: f043 0201 orr.w r2, r3, #1
  35359. 800f600: 687b ldr r3, [r7, #4]
  35360. 800f602: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35361. }
  35362. /* UART frame error interrupt occurred --------------------------------------*/
  35363. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35364. 800f606: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35365. 800f60a: f003 0302 and.w r3, r3, #2
  35366. 800f60e: 2b00 cmp r3, #0
  35367. 800f610: d011 beq.n 800f636 <UART_RxISR_8BIT_FIFOEN+0xfa>
  35368. 800f612: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  35369. 800f616: f003 0301 and.w r3, r3, #1
  35370. 800f61a: 2b00 cmp r3, #0
  35371. 800f61c: d00b beq.n 800f636 <UART_RxISR_8BIT_FIFOEN+0xfa>
  35372. {
  35373. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  35374. 800f61e: 687b ldr r3, [r7, #4]
  35375. 800f620: 681b ldr r3, [r3, #0]
  35376. 800f622: 2202 movs r2, #2
  35377. 800f624: 621a str r2, [r3, #32]
  35378. huart->ErrorCode |= HAL_UART_ERROR_FE;
  35379. 800f626: 687b ldr r3, [r7, #4]
  35380. 800f628: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35381. 800f62c: f043 0204 orr.w r2, r3, #4
  35382. 800f630: 687b ldr r3, [r7, #4]
  35383. 800f632: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35384. }
  35385. /* UART noise error interrupt occurred --------------------------------------*/
  35386. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35387. 800f636: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35388. 800f63a: f003 0304 and.w r3, r3, #4
  35389. 800f63e: 2b00 cmp r3, #0
  35390. 800f640: d011 beq.n 800f666 <UART_RxISR_8BIT_FIFOEN+0x12a>
  35391. 800f642: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  35392. 800f646: f003 0301 and.w r3, r3, #1
  35393. 800f64a: 2b00 cmp r3, #0
  35394. 800f64c: d00b beq.n 800f666 <UART_RxISR_8BIT_FIFOEN+0x12a>
  35395. {
  35396. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  35397. 800f64e: 687b ldr r3, [r7, #4]
  35398. 800f650: 681b ldr r3, [r3, #0]
  35399. 800f652: 2204 movs r2, #4
  35400. 800f654: 621a str r2, [r3, #32]
  35401. huart->ErrorCode |= HAL_UART_ERROR_NE;
  35402. 800f656: 687b ldr r3, [r7, #4]
  35403. 800f658: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35404. 800f65c: f043 0202 orr.w r2, r3, #2
  35405. 800f660: 687b ldr r3, [r7, #4]
  35406. 800f662: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35407. }
  35408. /* Call UART Error Call back function if need be ----------------------------*/
  35409. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  35410. 800f666: 687b ldr r3, [r7, #4]
  35411. 800f668: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35412. 800f66c: 2b00 cmp r3, #0
  35413. 800f66e: d006 beq.n 800f67e <UART_RxISR_8BIT_FIFOEN+0x142>
  35414. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35415. /*Call registered error callback*/
  35416. huart->ErrorCallback(huart);
  35417. #else
  35418. /*Call legacy weak error callback*/
  35419. HAL_UART_ErrorCallback(huart);
  35420. 800f670: 6878 ldr r0, [r7, #4]
  35421. 800f672: f7fe fb13 bl 800dc9c <HAL_UART_ErrorCallback>
  35422. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  35423. huart->ErrorCode = HAL_UART_ERROR_NONE;
  35424. 800f676: 687b ldr r3, [r7, #4]
  35425. 800f678: 2200 movs r2, #0
  35426. 800f67a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35427. }
  35428. }
  35429. if (huart->RxXferCount == 0U)
  35430. 800f67e: 687b ldr r3, [r7, #4]
  35431. 800f680: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35432. 800f684: b29b uxth r3, r3
  35433. 800f686: 2b00 cmp r3, #0
  35434. 800f688: f040 80a0 bne.w 800f7cc <UART_RxISR_8BIT_FIFOEN+0x290>
  35435. {
  35436. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  35437. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  35438. 800f68c: 687b ldr r3, [r7, #4]
  35439. 800f68e: 681b ldr r3, [r3, #0]
  35440. 800f690: 673b str r3, [r7, #112] @ 0x70
  35441. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35442. 800f692: 6f3b ldr r3, [r7, #112] @ 0x70
  35443. 800f694: e853 3f00 ldrex r3, [r3]
  35444. 800f698: 66fb str r3, [r7, #108] @ 0x6c
  35445. return(result);
  35446. 800f69a: 6efb ldr r3, [r7, #108] @ 0x6c
  35447. 800f69c: f423 7380 bic.w r3, r3, #256 @ 0x100
  35448. 800f6a0: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  35449. 800f6a4: 687b ldr r3, [r7, #4]
  35450. 800f6a6: 681b ldr r3, [r3, #0]
  35451. 800f6a8: 461a mov r2, r3
  35452. 800f6aa: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  35453. 800f6ae: 67fb str r3, [r7, #124] @ 0x7c
  35454. 800f6b0: 67ba str r2, [r7, #120] @ 0x78
  35455. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35456. 800f6b2: 6fb9 ldr r1, [r7, #120] @ 0x78
  35457. 800f6b4: 6ffa ldr r2, [r7, #124] @ 0x7c
  35458. 800f6b6: e841 2300 strex r3, r2, [r1]
  35459. 800f6ba: 677b str r3, [r7, #116] @ 0x74
  35460. return(result);
  35461. 800f6bc: 6f7b ldr r3, [r7, #116] @ 0x74
  35462. 800f6be: 2b00 cmp r3, #0
  35463. 800f6c0: d1e4 bne.n 800f68c <UART_RxISR_8BIT_FIFOEN+0x150>
  35464. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  35465. and RX FIFO Threshold interrupt */
  35466. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  35467. 800f6c2: 687b ldr r3, [r7, #4]
  35468. 800f6c4: 681b ldr r3, [r3, #0]
  35469. 800f6c6: 3308 adds r3, #8
  35470. 800f6c8: 65fb str r3, [r7, #92] @ 0x5c
  35471. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35472. 800f6ca: 6dfb ldr r3, [r7, #92] @ 0x5c
  35473. 800f6cc: e853 3f00 ldrex r3, [r3]
  35474. 800f6d0: 65bb str r3, [r7, #88] @ 0x58
  35475. return(result);
  35476. 800f6d2: 6dba ldr r2, [r7, #88] @ 0x58
  35477. 800f6d4: 4b6e ldr r3, [pc, #440] @ (800f890 <UART_RxISR_8BIT_FIFOEN+0x354>)
  35478. 800f6d6: 4013 ands r3, r2
  35479. 800f6d8: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  35480. 800f6dc: 687b ldr r3, [r7, #4]
  35481. 800f6de: 681b ldr r3, [r3, #0]
  35482. 800f6e0: 3308 adds r3, #8
  35483. 800f6e2: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  35484. 800f6e6: 66ba str r2, [r7, #104] @ 0x68
  35485. 800f6e8: 667b str r3, [r7, #100] @ 0x64
  35486. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35487. 800f6ea: 6e79 ldr r1, [r7, #100] @ 0x64
  35488. 800f6ec: 6eba ldr r2, [r7, #104] @ 0x68
  35489. 800f6ee: e841 2300 strex r3, r2, [r1]
  35490. 800f6f2: 663b str r3, [r7, #96] @ 0x60
  35491. return(result);
  35492. 800f6f4: 6e3b ldr r3, [r7, #96] @ 0x60
  35493. 800f6f6: 2b00 cmp r3, #0
  35494. 800f6f8: d1e3 bne.n 800f6c2 <UART_RxISR_8BIT_FIFOEN+0x186>
  35495. /* Rx process is completed, restore huart->RxState to Ready */
  35496. huart->RxState = HAL_UART_STATE_READY;
  35497. 800f6fa: 687b ldr r3, [r7, #4]
  35498. 800f6fc: 2220 movs r2, #32
  35499. 800f6fe: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  35500. /* Clear RxISR function pointer */
  35501. huart->RxISR = NULL;
  35502. 800f702: 687b ldr r3, [r7, #4]
  35503. 800f704: 2200 movs r2, #0
  35504. 800f706: 675a str r2, [r3, #116] @ 0x74
  35505. /* Initialize type of RxEvent to Transfer Complete */
  35506. huart->RxEventType = HAL_UART_RXEVENT_TC;
  35507. 800f708: 687b ldr r3, [r7, #4]
  35508. 800f70a: 2200 movs r2, #0
  35509. 800f70c: 671a str r2, [r3, #112] @ 0x70
  35510. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  35511. 800f70e: 687b ldr r3, [r7, #4]
  35512. 800f710: 681b ldr r3, [r3, #0]
  35513. 800f712: 4a60 ldr r2, [pc, #384] @ (800f894 <UART_RxISR_8BIT_FIFOEN+0x358>)
  35514. 800f714: 4293 cmp r3, r2
  35515. 800f716: d021 beq.n 800f75c <UART_RxISR_8BIT_FIFOEN+0x220>
  35516. {
  35517. /* Check that USART RTOEN bit is set */
  35518. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  35519. 800f718: 687b ldr r3, [r7, #4]
  35520. 800f71a: 681b ldr r3, [r3, #0]
  35521. 800f71c: 685b ldr r3, [r3, #4]
  35522. 800f71e: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  35523. 800f722: 2b00 cmp r3, #0
  35524. 800f724: d01a beq.n 800f75c <UART_RxISR_8BIT_FIFOEN+0x220>
  35525. {
  35526. /* Enable the UART Receiver Timeout Interrupt */
  35527. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  35528. 800f726: 687b ldr r3, [r7, #4]
  35529. 800f728: 681b ldr r3, [r3, #0]
  35530. 800f72a: 64bb str r3, [r7, #72] @ 0x48
  35531. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35532. 800f72c: 6cbb ldr r3, [r7, #72] @ 0x48
  35533. 800f72e: e853 3f00 ldrex r3, [r3]
  35534. 800f732: 647b str r3, [r7, #68] @ 0x44
  35535. return(result);
  35536. 800f734: 6c7b ldr r3, [r7, #68] @ 0x44
  35537. 800f736: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  35538. 800f73a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  35539. 800f73e: 687b ldr r3, [r7, #4]
  35540. 800f740: 681b ldr r3, [r3, #0]
  35541. 800f742: 461a mov r2, r3
  35542. 800f744: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  35543. 800f748: 657b str r3, [r7, #84] @ 0x54
  35544. 800f74a: 653a str r2, [r7, #80] @ 0x50
  35545. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35546. 800f74c: 6d39 ldr r1, [r7, #80] @ 0x50
  35547. 800f74e: 6d7a ldr r2, [r7, #84] @ 0x54
  35548. 800f750: e841 2300 strex r3, r2, [r1]
  35549. 800f754: 64fb str r3, [r7, #76] @ 0x4c
  35550. return(result);
  35551. 800f756: 6cfb ldr r3, [r7, #76] @ 0x4c
  35552. 800f758: 2b00 cmp r3, #0
  35553. 800f75a: d1e4 bne.n 800f726 <UART_RxISR_8BIT_FIFOEN+0x1ea>
  35554. }
  35555. }
  35556. /* Check current reception Mode :
  35557. If Reception till IDLE event has been selected : */
  35558. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  35559. 800f75c: 687b ldr r3, [r7, #4]
  35560. 800f75e: 6edb ldr r3, [r3, #108] @ 0x6c
  35561. 800f760: 2b01 cmp r3, #1
  35562. 800f762: d130 bne.n 800f7c6 <UART_RxISR_8BIT_FIFOEN+0x28a>
  35563. {
  35564. /* Set reception type to Standard */
  35565. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  35566. 800f764: 687b ldr r3, [r7, #4]
  35567. 800f766: 2200 movs r2, #0
  35568. 800f768: 66da str r2, [r3, #108] @ 0x6c
  35569. /* Disable IDLE interrupt */
  35570. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  35571. 800f76a: 687b ldr r3, [r7, #4]
  35572. 800f76c: 681b ldr r3, [r3, #0]
  35573. 800f76e: 637b str r3, [r7, #52] @ 0x34
  35574. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35575. 800f770: 6b7b ldr r3, [r7, #52] @ 0x34
  35576. 800f772: e853 3f00 ldrex r3, [r3]
  35577. 800f776: 633b str r3, [r7, #48] @ 0x30
  35578. return(result);
  35579. 800f778: 6b3b ldr r3, [r7, #48] @ 0x30
  35580. 800f77a: f023 0310 bic.w r3, r3, #16
  35581. 800f77e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  35582. 800f782: 687b ldr r3, [r7, #4]
  35583. 800f784: 681b ldr r3, [r3, #0]
  35584. 800f786: 461a mov r2, r3
  35585. 800f788: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  35586. 800f78c: 643b str r3, [r7, #64] @ 0x40
  35587. 800f78e: 63fa str r2, [r7, #60] @ 0x3c
  35588. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35589. 800f790: 6bf9 ldr r1, [r7, #60] @ 0x3c
  35590. 800f792: 6c3a ldr r2, [r7, #64] @ 0x40
  35591. 800f794: e841 2300 strex r3, r2, [r1]
  35592. 800f798: 63bb str r3, [r7, #56] @ 0x38
  35593. return(result);
  35594. 800f79a: 6bbb ldr r3, [r7, #56] @ 0x38
  35595. 800f79c: 2b00 cmp r3, #0
  35596. 800f79e: d1e4 bne.n 800f76a <UART_RxISR_8BIT_FIFOEN+0x22e>
  35597. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  35598. 800f7a0: 687b ldr r3, [r7, #4]
  35599. 800f7a2: 681b ldr r3, [r3, #0]
  35600. 800f7a4: 69db ldr r3, [r3, #28]
  35601. 800f7a6: f003 0310 and.w r3, r3, #16
  35602. 800f7aa: 2b10 cmp r3, #16
  35603. 800f7ac: d103 bne.n 800f7b6 <UART_RxISR_8BIT_FIFOEN+0x27a>
  35604. {
  35605. /* Clear IDLE Flag */
  35606. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  35607. 800f7ae: 687b ldr r3, [r7, #4]
  35608. 800f7b0: 681b ldr r3, [r3, #0]
  35609. 800f7b2: 2210 movs r2, #16
  35610. 800f7b4: 621a str r2, [r3, #32]
  35611. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35612. /*Call registered Rx Event callback*/
  35613. huart->RxEventCallback(huart, huart->RxXferSize);
  35614. #else
  35615. /*Call legacy weak Rx Event callback*/
  35616. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  35617. 800f7b6: 687b ldr r3, [r7, #4]
  35618. 800f7b8: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  35619. 800f7bc: 4619 mov r1, r3
  35620. 800f7be: 6878 ldr r0, [r7, #4]
  35621. 800f7c0: f7f4 fd04 bl 80041cc <HAL_UARTEx_RxEventCallback>
  35622. 800f7c4: e002 b.n 800f7cc <UART_RxISR_8BIT_FIFOEN+0x290>
  35623. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35624. /*Call registered Rx complete callback*/
  35625. huart->RxCpltCallback(huart);
  35626. #else
  35627. /*Call legacy weak Rx complete callback*/
  35628. HAL_UART_RxCpltCallback(huart);
  35629. 800f7c6: 6878 ldr r0, [r7, #4]
  35630. 800f7c8: f7f4 fcf6 bl 80041b8 <HAL_UART_RxCpltCallback>
  35631. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  35632. 800f7cc: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  35633. 800f7d0: 2b00 cmp r3, #0
  35634. 800f7d2: d006 beq.n 800f7e2 <UART_RxISR_8BIT_FIFOEN+0x2a6>
  35635. 800f7d4: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35636. 800f7d8: f003 0320 and.w r3, r3, #32
  35637. 800f7dc: 2b00 cmp r3, #0
  35638. 800f7de: f47f aed1 bne.w 800f584 <UART_RxISR_8BIT_FIFOEN+0x48>
  35639. /* When remaining number of bytes to receive is less than the RX FIFO
  35640. threshold, next incoming frames are processed as if FIFO mode was
  35641. disabled (i.e. one interrupt per received frame).
  35642. */
  35643. rxdatacount = huart->RxXferCount;
  35644. 800f7e2: 687b ldr r3, [r7, #4]
  35645. 800f7e4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35646. 800f7e8: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  35647. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  35648. 800f7ec: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  35649. 800f7f0: 2b00 cmp r3, #0
  35650. 800f7f2: d049 beq.n 800f888 <UART_RxISR_8BIT_FIFOEN+0x34c>
  35651. 800f7f4: 687b ldr r3, [r7, #4]
  35652. 800f7f6: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  35653. 800f7fa: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  35654. 800f7fe: 429a cmp r2, r3
  35655. 800f800: d242 bcs.n 800f888 <UART_RxISR_8BIT_FIFOEN+0x34c>
  35656. {
  35657. /* Disable the UART RXFT interrupt*/
  35658. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  35659. 800f802: 687b ldr r3, [r7, #4]
  35660. 800f804: 681b ldr r3, [r3, #0]
  35661. 800f806: 3308 adds r3, #8
  35662. 800f808: 623b str r3, [r7, #32]
  35663. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35664. 800f80a: 6a3b ldr r3, [r7, #32]
  35665. 800f80c: e853 3f00 ldrex r3, [r3]
  35666. 800f810: 61fb str r3, [r7, #28]
  35667. return(result);
  35668. 800f812: 69fb ldr r3, [r7, #28]
  35669. 800f814: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  35670. 800f818: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  35671. 800f81c: 687b ldr r3, [r7, #4]
  35672. 800f81e: 681b ldr r3, [r3, #0]
  35673. 800f820: 3308 adds r3, #8
  35674. 800f822: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  35675. 800f826: 62fa str r2, [r7, #44] @ 0x2c
  35676. 800f828: 62bb str r3, [r7, #40] @ 0x28
  35677. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35678. 800f82a: 6ab9 ldr r1, [r7, #40] @ 0x28
  35679. 800f82c: 6afa ldr r2, [r7, #44] @ 0x2c
  35680. 800f82e: e841 2300 strex r3, r2, [r1]
  35681. 800f832: 627b str r3, [r7, #36] @ 0x24
  35682. return(result);
  35683. 800f834: 6a7b ldr r3, [r7, #36] @ 0x24
  35684. 800f836: 2b00 cmp r3, #0
  35685. 800f838: d1e3 bne.n 800f802 <UART_RxISR_8BIT_FIFOEN+0x2c6>
  35686. /* Update the RxISR function pointer */
  35687. huart->RxISR = UART_RxISR_8BIT;
  35688. 800f83a: 687b ldr r3, [r7, #4]
  35689. 800f83c: 4a16 ldr r2, [pc, #88] @ (800f898 <UART_RxISR_8BIT_FIFOEN+0x35c>)
  35690. 800f83e: 675a str r2, [r3, #116] @ 0x74
  35691. /* Enable the UART Data Register Not Empty interrupt */
  35692. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  35693. 800f840: 687b ldr r3, [r7, #4]
  35694. 800f842: 681b ldr r3, [r3, #0]
  35695. 800f844: 60fb str r3, [r7, #12]
  35696. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35697. 800f846: 68fb ldr r3, [r7, #12]
  35698. 800f848: e853 3f00 ldrex r3, [r3]
  35699. 800f84c: 60bb str r3, [r7, #8]
  35700. return(result);
  35701. 800f84e: 68bb ldr r3, [r7, #8]
  35702. 800f850: f043 0320 orr.w r3, r3, #32
  35703. 800f854: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  35704. 800f858: 687b ldr r3, [r7, #4]
  35705. 800f85a: 681b ldr r3, [r3, #0]
  35706. 800f85c: 461a mov r2, r3
  35707. 800f85e: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  35708. 800f862: 61bb str r3, [r7, #24]
  35709. 800f864: 617a str r2, [r7, #20]
  35710. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35711. 800f866: 6979 ldr r1, [r7, #20]
  35712. 800f868: 69ba ldr r2, [r7, #24]
  35713. 800f86a: e841 2300 strex r3, r2, [r1]
  35714. 800f86e: 613b str r3, [r7, #16]
  35715. return(result);
  35716. 800f870: 693b ldr r3, [r7, #16]
  35717. 800f872: 2b00 cmp r3, #0
  35718. 800f874: d1e4 bne.n 800f840 <UART_RxISR_8BIT_FIFOEN+0x304>
  35719. else
  35720. {
  35721. /* Clear RXNE interrupt flag */
  35722. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35723. }
  35724. }
  35725. 800f876: e007 b.n 800f888 <UART_RxISR_8BIT_FIFOEN+0x34c>
  35726. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  35727. 800f878: 687b ldr r3, [r7, #4]
  35728. 800f87a: 681b ldr r3, [r3, #0]
  35729. 800f87c: 699a ldr r2, [r3, #24]
  35730. 800f87e: 687b ldr r3, [r7, #4]
  35731. 800f880: 681b ldr r3, [r3, #0]
  35732. 800f882: f042 0208 orr.w r2, r2, #8
  35733. 800f886: 619a str r2, [r3, #24]
  35734. }
  35735. 800f888: bf00 nop
  35736. 800f88a: 37b0 adds r7, #176 @ 0xb0
  35737. 800f88c: 46bd mov sp, r7
  35738. 800f88e: bd80 pop {r7, pc}
  35739. 800f890: effffffe .word 0xeffffffe
  35740. 800f894: 58000c00 .word 0x58000c00
  35741. 800f898: 0800f1cd .word 0x0800f1cd
  35742. 0800f89c <UART_RxISR_16BIT_FIFOEN>:
  35743. * interruptions have been enabled by HAL_UART_Receive_IT()
  35744. * @param huart UART handle.
  35745. * @retval None
  35746. */
  35747. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  35748. {
  35749. 800f89c: b580 push {r7, lr}
  35750. 800f89e: b0ae sub sp, #184 @ 0xb8
  35751. 800f8a0: af00 add r7, sp, #0
  35752. 800f8a2: 6078 str r0, [r7, #4]
  35753. uint16_t *tmp;
  35754. uint16_t uhMask = huart->Mask;
  35755. 800f8a4: 687b ldr r3, [r7, #4]
  35756. 800f8a6: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  35757. 800f8aa: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  35758. uint16_t uhdata;
  35759. uint16_t nb_rx_data;
  35760. uint16_t rxdatacount;
  35761. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  35762. 800f8ae: 687b ldr r3, [r7, #4]
  35763. 800f8b0: 681b ldr r3, [r3, #0]
  35764. 800f8b2: 69db ldr r3, [r3, #28]
  35765. 800f8b4: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  35766. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  35767. 800f8b8: 687b ldr r3, [r7, #4]
  35768. 800f8ba: 681b ldr r3, [r3, #0]
  35769. 800f8bc: 681b ldr r3, [r3, #0]
  35770. 800f8be: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  35771. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  35772. 800f8c2: 687b ldr r3, [r7, #4]
  35773. 800f8c4: 681b ldr r3, [r3, #0]
  35774. 800f8c6: 689b ldr r3, [r3, #8]
  35775. 800f8c8: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  35776. /* Check that a Rx process is ongoing */
  35777. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  35778. 800f8cc: 687b ldr r3, [r7, #4]
  35779. 800f8ce: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  35780. 800f8d2: 2b22 cmp r3, #34 @ 0x22
  35781. 800f8d4: f040 8184 bne.w 800fbe0 <UART_RxISR_16BIT_FIFOEN+0x344>
  35782. {
  35783. nb_rx_data = huart->NbRxDataToProcess;
  35784. 800f8d8: 687b ldr r3, [r7, #4]
  35785. 800f8da: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  35786. 800f8de: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  35787. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  35788. 800f8e2: e127 b.n 800fb34 <UART_RxISR_16BIT_FIFOEN+0x298>
  35789. {
  35790. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  35791. 800f8e4: 687b ldr r3, [r7, #4]
  35792. 800f8e6: 681b ldr r3, [r3, #0]
  35793. 800f8e8: 6a5b ldr r3, [r3, #36] @ 0x24
  35794. 800f8ea: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  35795. tmp = (uint16_t *) huart->pRxBuffPtr ;
  35796. 800f8ee: 687b ldr r3, [r7, #4]
  35797. 800f8f0: 6d9b ldr r3, [r3, #88] @ 0x58
  35798. 800f8f2: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  35799. *tmp = (uint16_t)(uhdata & uhMask);
  35800. 800f8f6: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  35801. 800f8fa: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  35802. 800f8fe: 4013 ands r3, r2
  35803. 800f900: b29a uxth r2, r3
  35804. 800f902: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  35805. 800f906: 801a strh r2, [r3, #0]
  35806. huart->pRxBuffPtr += 2U;
  35807. 800f908: 687b ldr r3, [r7, #4]
  35808. 800f90a: 6d9b ldr r3, [r3, #88] @ 0x58
  35809. 800f90c: 1c9a adds r2, r3, #2
  35810. 800f90e: 687b ldr r3, [r7, #4]
  35811. 800f910: 659a str r2, [r3, #88] @ 0x58
  35812. huart->RxXferCount--;
  35813. 800f912: 687b ldr r3, [r7, #4]
  35814. 800f914: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35815. 800f918: b29b uxth r3, r3
  35816. 800f91a: 3b01 subs r3, #1
  35817. 800f91c: b29a uxth r2, r3
  35818. 800f91e: 687b ldr r3, [r7, #4]
  35819. 800f920: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  35820. isrflags = READ_REG(huart->Instance->ISR);
  35821. 800f924: 687b ldr r3, [r7, #4]
  35822. 800f926: 681b ldr r3, [r3, #0]
  35823. 800f928: 69db ldr r3, [r3, #28]
  35824. 800f92a: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  35825. /* If some non blocking errors occurred */
  35826. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  35827. 800f92e: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35828. 800f932: f003 0307 and.w r3, r3, #7
  35829. 800f936: 2b00 cmp r3, #0
  35830. 800f938: d053 beq.n 800f9e2 <UART_RxISR_16BIT_FIFOEN+0x146>
  35831. {
  35832. /* UART parity error interrupt occurred -------------------------------------*/
  35833. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  35834. 800f93a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35835. 800f93e: f003 0301 and.w r3, r3, #1
  35836. 800f942: 2b00 cmp r3, #0
  35837. 800f944: d011 beq.n 800f96a <UART_RxISR_16BIT_FIFOEN+0xce>
  35838. 800f946: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  35839. 800f94a: f403 7380 and.w r3, r3, #256 @ 0x100
  35840. 800f94e: 2b00 cmp r3, #0
  35841. 800f950: d00b beq.n 800f96a <UART_RxISR_16BIT_FIFOEN+0xce>
  35842. {
  35843. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  35844. 800f952: 687b ldr r3, [r7, #4]
  35845. 800f954: 681b ldr r3, [r3, #0]
  35846. 800f956: 2201 movs r2, #1
  35847. 800f958: 621a str r2, [r3, #32]
  35848. huart->ErrorCode |= HAL_UART_ERROR_PE;
  35849. 800f95a: 687b ldr r3, [r7, #4]
  35850. 800f95c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35851. 800f960: f043 0201 orr.w r2, r3, #1
  35852. 800f964: 687b ldr r3, [r7, #4]
  35853. 800f966: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35854. }
  35855. /* UART frame error interrupt occurred --------------------------------------*/
  35856. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35857. 800f96a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35858. 800f96e: f003 0302 and.w r3, r3, #2
  35859. 800f972: 2b00 cmp r3, #0
  35860. 800f974: d011 beq.n 800f99a <UART_RxISR_16BIT_FIFOEN+0xfe>
  35861. 800f976: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  35862. 800f97a: f003 0301 and.w r3, r3, #1
  35863. 800f97e: 2b00 cmp r3, #0
  35864. 800f980: d00b beq.n 800f99a <UART_RxISR_16BIT_FIFOEN+0xfe>
  35865. {
  35866. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  35867. 800f982: 687b ldr r3, [r7, #4]
  35868. 800f984: 681b ldr r3, [r3, #0]
  35869. 800f986: 2202 movs r2, #2
  35870. 800f988: 621a str r2, [r3, #32]
  35871. huart->ErrorCode |= HAL_UART_ERROR_FE;
  35872. 800f98a: 687b ldr r3, [r7, #4]
  35873. 800f98c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35874. 800f990: f043 0204 orr.w r2, r3, #4
  35875. 800f994: 687b ldr r3, [r7, #4]
  35876. 800f996: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35877. }
  35878. /* UART noise error interrupt occurred --------------------------------------*/
  35879. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  35880. 800f99a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  35881. 800f99e: f003 0304 and.w r3, r3, #4
  35882. 800f9a2: 2b00 cmp r3, #0
  35883. 800f9a4: d011 beq.n 800f9ca <UART_RxISR_16BIT_FIFOEN+0x12e>
  35884. 800f9a6: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  35885. 800f9aa: f003 0301 and.w r3, r3, #1
  35886. 800f9ae: 2b00 cmp r3, #0
  35887. 800f9b0: d00b beq.n 800f9ca <UART_RxISR_16BIT_FIFOEN+0x12e>
  35888. {
  35889. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  35890. 800f9b2: 687b ldr r3, [r7, #4]
  35891. 800f9b4: 681b ldr r3, [r3, #0]
  35892. 800f9b6: 2204 movs r2, #4
  35893. 800f9b8: 621a str r2, [r3, #32]
  35894. huart->ErrorCode |= HAL_UART_ERROR_NE;
  35895. 800f9ba: 687b ldr r3, [r7, #4]
  35896. 800f9bc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35897. 800f9c0: f043 0202 orr.w r2, r3, #2
  35898. 800f9c4: 687b ldr r3, [r7, #4]
  35899. 800f9c6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35900. }
  35901. /* Call UART Error Call back function if need be ----------------------------*/
  35902. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  35903. 800f9ca: 687b ldr r3, [r7, #4]
  35904. 800f9cc: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  35905. 800f9d0: 2b00 cmp r3, #0
  35906. 800f9d2: d006 beq.n 800f9e2 <UART_RxISR_16BIT_FIFOEN+0x146>
  35907. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  35908. /*Call registered error callback*/
  35909. huart->ErrorCallback(huart);
  35910. #else
  35911. /*Call legacy weak error callback*/
  35912. HAL_UART_ErrorCallback(huart);
  35913. 800f9d4: 6878 ldr r0, [r7, #4]
  35914. 800f9d6: f7fe f961 bl 800dc9c <HAL_UART_ErrorCallback>
  35915. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  35916. huart->ErrorCode = HAL_UART_ERROR_NONE;
  35917. 800f9da: 687b ldr r3, [r7, #4]
  35918. 800f9dc: 2200 movs r2, #0
  35919. 800f9de: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  35920. }
  35921. }
  35922. if (huart->RxXferCount == 0U)
  35923. 800f9e2: 687b ldr r3, [r7, #4]
  35924. 800f9e4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  35925. 800f9e8: b29b uxth r3, r3
  35926. 800f9ea: 2b00 cmp r3, #0
  35927. 800f9ec: f040 80a2 bne.w 800fb34 <UART_RxISR_16BIT_FIFOEN+0x298>
  35928. {
  35929. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  35930. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  35931. 800f9f0: 687b ldr r3, [r7, #4]
  35932. 800f9f2: 681b ldr r3, [r3, #0]
  35933. 800f9f4: 677b str r3, [r7, #116] @ 0x74
  35934. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35935. 800f9f6: 6f7b ldr r3, [r7, #116] @ 0x74
  35936. 800f9f8: e853 3f00 ldrex r3, [r3]
  35937. 800f9fc: 673b str r3, [r7, #112] @ 0x70
  35938. return(result);
  35939. 800f9fe: 6f3b ldr r3, [r7, #112] @ 0x70
  35940. 800fa00: f423 7380 bic.w r3, r3, #256 @ 0x100
  35941. 800fa04: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  35942. 800fa08: 687b ldr r3, [r7, #4]
  35943. 800fa0a: 681b ldr r3, [r3, #0]
  35944. 800fa0c: 461a mov r2, r3
  35945. 800fa0e: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  35946. 800fa12: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  35947. 800fa16: 67fa str r2, [r7, #124] @ 0x7c
  35948. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35949. 800fa18: 6ff9 ldr r1, [r7, #124] @ 0x7c
  35950. 800fa1a: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  35951. 800fa1e: e841 2300 strex r3, r2, [r1]
  35952. 800fa22: 67bb str r3, [r7, #120] @ 0x78
  35953. return(result);
  35954. 800fa24: 6fbb ldr r3, [r7, #120] @ 0x78
  35955. 800fa26: 2b00 cmp r3, #0
  35956. 800fa28: d1e2 bne.n 800f9f0 <UART_RxISR_16BIT_FIFOEN+0x154>
  35957. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  35958. and RX FIFO Threshold interrupt */
  35959. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  35960. 800fa2a: 687b ldr r3, [r7, #4]
  35961. 800fa2c: 681b ldr r3, [r3, #0]
  35962. 800fa2e: 3308 adds r3, #8
  35963. 800fa30: 663b str r3, [r7, #96] @ 0x60
  35964. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  35965. 800fa32: 6e3b ldr r3, [r7, #96] @ 0x60
  35966. 800fa34: e853 3f00 ldrex r3, [r3]
  35967. 800fa38: 65fb str r3, [r7, #92] @ 0x5c
  35968. return(result);
  35969. 800fa3a: 6dfa ldr r2, [r7, #92] @ 0x5c
  35970. 800fa3c: 4b6e ldr r3, [pc, #440] @ (800fbf8 <UART_RxISR_16BIT_FIFOEN+0x35c>)
  35971. 800fa3e: 4013 ands r3, r2
  35972. 800fa40: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  35973. 800fa44: 687b ldr r3, [r7, #4]
  35974. 800fa46: 681b ldr r3, [r3, #0]
  35975. 800fa48: 3308 adds r3, #8
  35976. 800fa4a: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  35977. 800fa4e: 66fa str r2, [r7, #108] @ 0x6c
  35978. 800fa50: 66bb str r3, [r7, #104] @ 0x68
  35979. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  35980. 800fa52: 6eb9 ldr r1, [r7, #104] @ 0x68
  35981. 800fa54: 6efa ldr r2, [r7, #108] @ 0x6c
  35982. 800fa56: e841 2300 strex r3, r2, [r1]
  35983. 800fa5a: 667b str r3, [r7, #100] @ 0x64
  35984. return(result);
  35985. 800fa5c: 6e7b ldr r3, [r7, #100] @ 0x64
  35986. 800fa5e: 2b00 cmp r3, #0
  35987. 800fa60: d1e3 bne.n 800fa2a <UART_RxISR_16BIT_FIFOEN+0x18e>
  35988. /* Rx process is completed, restore huart->RxState to Ready */
  35989. huart->RxState = HAL_UART_STATE_READY;
  35990. 800fa62: 687b ldr r3, [r7, #4]
  35991. 800fa64: 2220 movs r2, #32
  35992. 800fa66: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  35993. /* Clear RxISR function pointer */
  35994. huart->RxISR = NULL;
  35995. 800fa6a: 687b ldr r3, [r7, #4]
  35996. 800fa6c: 2200 movs r2, #0
  35997. 800fa6e: 675a str r2, [r3, #116] @ 0x74
  35998. /* Initialize type of RxEvent to Transfer Complete */
  35999. huart->RxEventType = HAL_UART_RXEVENT_TC;
  36000. 800fa70: 687b ldr r3, [r7, #4]
  36001. 800fa72: 2200 movs r2, #0
  36002. 800fa74: 671a str r2, [r3, #112] @ 0x70
  36003. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  36004. 800fa76: 687b ldr r3, [r7, #4]
  36005. 800fa78: 681b ldr r3, [r3, #0]
  36006. 800fa7a: 4a60 ldr r2, [pc, #384] @ (800fbfc <UART_RxISR_16BIT_FIFOEN+0x360>)
  36007. 800fa7c: 4293 cmp r3, r2
  36008. 800fa7e: d021 beq.n 800fac4 <UART_RxISR_16BIT_FIFOEN+0x228>
  36009. {
  36010. /* Check that USART RTOEN bit is set */
  36011. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  36012. 800fa80: 687b ldr r3, [r7, #4]
  36013. 800fa82: 681b ldr r3, [r3, #0]
  36014. 800fa84: 685b ldr r3, [r3, #4]
  36015. 800fa86: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  36016. 800fa8a: 2b00 cmp r3, #0
  36017. 800fa8c: d01a beq.n 800fac4 <UART_RxISR_16BIT_FIFOEN+0x228>
  36018. {
  36019. /* Enable the UART Receiver Timeout Interrupt */
  36020. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  36021. 800fa8e: 687b ldr r3, [r7, #4]
  36022. 800fa90: 681b ldr r3, [r3, #0]
  36023. 800fa92: 64fb str r3, [r7, #76] @ 0x4c
  36024. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36025. 800fa94: 6cfb ldr r3, [r7, #76] @ 0x4c
  36026. 800fa96: e853 3f00 ldrex r3, [r3]
  36027. 800fa9a: 64bb str r3, [r7, #72] @ 0x48
  36028. return(result);
  36029. 800fa9c: 6cbb ldr r3, [r7, #72] @ 0x48
  36030. 800fa9e: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  36031. 800faa2: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  36032. 800faa6: 687b ldr r3, [r7, #4]
  36033. 800faa8: 681b ldr r3, [r3, #0]
  36034. 800faaa: 461a mov r2, r3
  36035. 800faac: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  36036. 800fab0: 65bb str r3, [r7, #88] @ 0x58
  36037. 800fab2: 657a str r2, [r7, #84] @ 0x54
  36038. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36039. 800fab4: 6d79 ldr r1, [r7, #84] @ 0x54
  36040. 800fab6: 6dba ldr r2, [r7, #88] @ 0x58
  36041. 800fab8: e841 2300 strex r3, r2, [r1]
  36042. 800fabc: 653b str r3, [r7, #80] @ 0x50
  36043. return(result);
  36044. 800fabe: 6d3b ldr r3, [r7, #80] @ 0x50
  36045. 800fac0: 2b00 cmp r3, #0
  36046. 800fac2: d1e4 bne.n 800fa8e <UART_RxISR_16BIT_FIFOEN+0x1f2>
  36047. }
  36048. }
  36049. /* Check current reception Mode :
  36050. If Reception till IDLE event has been selected : */
  36051. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  36052. 800fac4: 687b ldr r3, [r7, #4]
  36053. 800fac6: 6edb ldr r3, [r3, #108] @ 0x6c
  36054. 800fac8: 2b01 cmp r3, #1
  36055. 800faca: d130 bne.n 800fb2e <UART_RxISR_16BIT_FIFOEN+0x292>
  36056. {
  36057. /* Set reception type to Standard */
  36058. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  36059. 800facc: 687b ldr r3, [r7, #4]
  36060. 800face: 2200 movs r2, #0
  36061. 800fad0: 66da str r2, [r3, #108] @ 0x6c
  36062. /* Disable IDLE interrupt */
  36063. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  36064. 800fad2: 687b ldr r3, [r7, #4]
  36065. 800fad4: 681b ldr r3, [r3, #0]
  36066. 800fad6: 63bb str r3, [r7, #56] @ 0x38
  36067. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36068. 800fad8: 6bbb ldr r3, [r7, #56] @ 0x38
  36069. 800fada: e853 3f00 ldrex r3, [r3]
  36070. 800fade: 637b str r3, [r7, #52] @ 0x34
  36071. return(result);
  36072. 800fae0: 6b7b ldr r3, [r7, #52] @ 0x34
  36073. 800fae2: f023 0310 bic.w r3, r3, #16
  36074. 800fae6: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  36075. 800faea: 687b ldr r3, [r7, #4]
  36076. 800faec: 681b ldr r3, [r3, #0]
  36077. 800faee: 461a mov r2, r3
  36078. 800faf0: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  36079. 800faf4: 647b str r3, [r7, #68] @ 0x44
  36080. 800faf6: 643a str r2, [r7, #64] @ 0x40
  36081. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36082. 800faf8: 6c39 ldr r1, [r7, #64] @ 0x40
  36083. 800fafa: 6c7a ldr r2, [r7, #68] @ 0x44
  36084. 800fafc: e841 2300 strex r3, r2, [r1]
  36085. 800fb00: 63fb str r3, [r7, #60] @ 0x3c
  36086. return(result);
  36087. 800fb02: 6bfb ldr r3, [r7, #60] @ 0x3c
  36088. 800fb04: 2b00 cmp r3, #0
  36089. 800fb06: d1e4 bne.n 800fad2 <UART_RxISR_16BIT_FIFOEN+0x236>
  36090. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  36091. 800fb08: 687b ldr r3, [r7, #4]
  36092. 800fb0a: 681b ldr r3, [r3, #0]
  36093. 800fb0c: 69db ldr r3, [r3, #28]
  36094. 800fb0e: f003 0310 and.w r3, r3, #16
  36095. 800fb12: 2b10 cmp r3, #16
  36096. 800fb14: d103 bne.n 800fb1e <UART_RxISR_16BIT_FIFOEN+0x282>
  36097. {
  36098. /* Clear IDLE Flag */
  36099. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  36100. 800fb16: 687b ldr r3, [r7, #4]
  36101. 800fb18: 681b ldr r3, [r3, #0]
  36102. 800fb1a: 2210 movs r2, #16
  36103. 800fb1c: 621a str r2, [r3, #32]
  36104. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  36105. /*Call registered Rx Event callback*/
  36106. huart->RxEventCallback(huart, huart->RxXferSize);
  36107. #else
  36108. /*Call legacy weak Rx Event callback*/
  36109. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  36110. 800fb1e: 687b ldr r3, [r7, #4]
  36111. 800fb20: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  36112. 800fb24: 4619 mov r1, r3
  36113. 800fb26: 6878 ldr r0, [r7, #4]
  36114. 800fb28: f7f4 fb50 bl 80041cc <HAL_UARTEx_RxEventCallback>
  36115. 800fb2c: e002 b.n 800fb34 <UART_RxISR_16BIT_FIFOEN+0x298>
  36116. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  36117. /*Call registered Rx complete callback*/
  36118. huart->RxCpltCallback(huart);
  36119. #else
  36120. /*Call legacy weak Rx complete callback*/
  36121. HAL_UART_RxCpltCallback(huart);
  36122. 800fb2e: 6878 ldr r0, [r7, #4]
  36123. 800fb30: f7f4 fb42 bl 80041b8 <HAL_UART_RxCpltCallback>
  36124. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  36125. 800fb34: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  36126. 800fb38: 2b00 cmp r3, #0
  36127. 800fb3a: d006 beq.n 800fb4a <UART_RxISR_16BIT_FIFOEN+0x2ae>
  36128. 800fb3c: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  36129. 800fb40: f003 0320 and.w r3, r3, #32
  36130. 800fb44: 2b00 cmp r3, #0
  36131. 800fb46: f47f aecd bne.w 800f8e4 <UART_RxISR_16BIT_FIFOEN+0x48>
  36132. /* When remaining number of bytes to receive is less than the RX FIFO
  36133. threshold, next incoming frames are processed as if FIFO mode was
  36134. disabled (i.e. one interrupt per received frame).
  36135. */
  36136. rxdatacount = huart->RxXferCount;
  36137. 800fb4a: 687b ldr r3, [r7, #4]
  36138. 800fb4c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  36139. 800fb50: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  36140. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  36141. 800fb54: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  36142. 800fb58: 2b00 cmp r3, #0
  36143. 800fb5a: d049 beq.n 800fbf0 <UART_RxISR_16BIT_FIFOEN+0x354>
  36144. 800fb5c: 687b ldr r3, [r7, #4]
  36145. 800fb5e: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  36146. 800fb62: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  36147. 800fb66: 429a cmp r2, r3
  36148. 800fb68: d242 bcs.n 800fbf0 <UART_RxISR_16BIT_FIFOEN+0x354>
  36149. {
  36150. /* Disable the UART RXFT interrupt*/
  36151. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  36152. 800fb6a: 687b ldr r3, [r7, #4]
  36153. 800fb6c: 681b ldr r3, [r3, #0]
  36154. 800fb6e: 3308 adds r3, #8
  36155. 800fb70: 627b str r3, [r7, #36] @ 0x24
  36156. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36157. 800fb72: 6a7b ldr r3, [r7, #36] @ 0x24
  36158. 800fb74: e853 3f00 ldrex r3, [r3]
  36159. 800fb78: 623b str r3, [r7, #32]
  36160. return(result);
  36161. 800fb7a: 6a3b ldr r3, [r7, #32]
  36162. 800fb7c: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  36163. 800fb80: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  36164. 800fb84: 687b ldr r3, [r7, #4]
  36165. 800fb86: 681b ldr r3, [r3, #0]
  36166. 800fb88: 3308 adds r3, #8
  36167. 800fb8a: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  36168. 800fb8e: 633a str r2, [r7, #48] @ 0x30
  36169. 800fb90: 62fb str r3, [r7, #44] @ 0x2c
  36170. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36171. 800fb92: 6af9 ldr r1, [r7, #44] @ 0x2c
  36172. 800fb94: 6b3a ldr r2, [r7, #48] @ 0x30
  36173. 800fb96: e841 2300 strex r3, r2, [r1]
  36174. 800fb9a: 62bb str r3, [r7, #40] @ 0x28
  36175. return(result);
  36176. 800fb9c: 6abb ldr r3, [r7, #40] @ 0x28
  36177. 800fb9e: 2b00 cmp r3, #0
  36178. 800fba0: d1e3 bne.n 800fb6a <UART_RxISR_16BIT_FIFOEN+0x2ce>
  36179. /* Update the RxISR function pointer */
  36180. huart->RxISR = UART_RxISR_16BIT;
  36181. 800fba2: 687b ldr r3, [r7, #4]
  36182. 800fba4: 4a16 ldr r2, [pc, #88] @ (800fc00 <UART_RxISR_16BIT_FIFOEN+0x364>)
  36183. 800fba6: 675a str r2, [r3, #116] @ 0x74
  36184. /* Enable the UART Data Register Not Empty interrupt */
  36185. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  36186. 800fba8: 687b ldr r3, [r7, #4]
  36187. 800fbaa: 681b ldr r3, [r3, #0]
  36188. 800fbac: 613b str r3, [r7, #16]
  36189. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36190. 800fbae: 693b ldr r3, [r7, #16]
  36191. 800fbb0: e853 3f00 ldrex r3, [r3]
  36192. 800fbb4: 60fb str r3, [r7, #12]
  36193. return(result);
  36194. 800fbb6: 68fb ldr r3, [r7, #12]
  36195. 800fbb8: f043 0320 orr.w r3, r3, #32
  36196. 800fbbc: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  36197. 800fbc0: 687b ldr r3, [r7, #4]
  36198. 800fbc2: 681b ldr r3, [r3, #0]
  36199. 800fbc4: 461a mov r2, r3
  36200. 800fbc6: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  36201. 800fbca: 61fb str r3, [r7, #28]
  36202. 800fbcc: 61ba str r2, [r7, #24]
  36203. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36204. 800fbce: 69b9 ldr r1, [r7, #24]
  36205. 800fbd0: 69fa ldr r2, [r7, #28]
  36206. 800fbd2: e841 2300 strex r3, r2, [r1]
  36207. 800fbd6: 617b str r3, [r7, #20]
  36208. return(result);
  36209. 800fbd8: 697b ldr r3, [r7, #20]
  36210. 800fbda: 2b00 cmp r3, #0
  36211. 800fbdc: d1e4 bne.n 800fba8 <UART_RxISR_16BIT_FIFOEN+0x30c>
  36212. else
  36213. {
  36214. /* Clear RXNE interrupt flag */
  36215. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  36216. }
  36217. }
  36218. 800fbde: e007 b.n 800fbf0 <UART_RxISR_16BIT_FIFOEN+0x354>
  36219. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  36220. 800fbe0: 687b ldr r3, [r7, #4]
  36221. 800fbe2: 681b ldr r3, [r3, #0]
  36222. 800fbe4: 699a ldr r2, [r3, #24]
  36223. 800fbe6: 687b ldr r3, [r7, #4]
  36224. 800fbe8: 681b ldr r3, [r3, #0]
  36225. 800fbea: f042 0208 orr.w r2, r2, #8
  36226. 800fbee: 619a str r2, [r3, #24]
  36227. }
  36228. 800fbf0: bf00 nop
  36229. 800fbf2: 37b8 adds r7, #184 @ 0xb8
  36230. 800fbf4: 46bd mov sp, r7
  36231. 800fbf6: bd80 pop {r7, pc}
  36232. 800fbf8: effffffe .word 0xeffffffe
  36233. 800fbfc: 58000c00 .word 0x58000c00
  36234. 800fc00: 0800f385 .word 0x0800f385
  36235. 0800fc04 <HAL_UARTEx_WakeupCallback>:
  36236. * @brief UART wakeup from Stop mode callback.
  36237. * @param huart UART handle.
  36238. * @retval None
  36239. */
  36240. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  36241. {
  36242. 800fc04: b480 push {r7}
  36243. 800fc06: b083 sub sp, #12
  36244. 800fc08: af00 add r7, sp, #0
  36245. 800fc0a: 6078 str r0, [r7, #4]
  36246. UNUSED(huart);
  36247. /* NOTE : This function should not be modified, when the callback is needed,
  36248. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  36249. */
  36250. }
  36251. 800fc0c: bf00 nop
  36252. 800fc0e: 370c adds r7, #12
  36253. 800fc10: 46bd mov sp, r7
  36254. 800fc12: f85d 7b04 ldr.w r7, [sp], #4
  36255. 800fc16: 4770 bx lr
  36256. 0800fc18 <HAL_UARTEx_RxFifoFullCallback>:
  36257. * @brief UART RX Fifo full callback.
  36258. * @param huart UART handle.
  36259. * @retval None
  36260. */
  36261. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  36262. {
  36263. 800fc18: b480 push {r7}
  36264. 800fc1a: b083 sub sp, #12
  36265. 800fc1c: af00 add r7, sp, #0
  36266. 800fc1e: 6078 str r0, [r7, #4]
  36267. UNUSED(huart);
  36268. /* NOTE : This function should not be modified, when the callback is needed,
  36269. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  36270. */
  36271. }
  36272. 800fc20: bf00 nop
  36273. 800fc22: 370c adds r7, #12
  36274. 800fc24: 46bd mov sp, r7
  36275. 800fc26: f85d 7b04 ldr.w r7, [sp], #4
  36276. 800fc2a: 4770 bx lr
  36277. 0800fc2c <HAL_UARTEx_TxFifoEmptyCallback>:
  36278. * @brief UART TX Fifo empty callback.
  36279. * @param huart UART handle.
  36280. * @retval None
  36281. */
  36282. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  36283. {
  36284. 800fc2c: b480 push {r7}
  36285. 800fc2e: b083 sub sp, #12
  36286. 800fc30: af00 add r7, sp, #0
  36287. 800fc32: 6078 str r0, [r7, #4]
  36288. UNUSED(huart);
  36289. /* NOTE : This function should not be modified, when the callback is needed,
  36290. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  36291. */
  36292. }
  36293. 800fc34: bf00 nop
  36294. 800fc36: 370c adds r7, #12
  36295. 800fc38: 46bd mov sp, r7
  36296. 800fc3a: f85d 7b04 ldr.w r7, [sp], #4
  36297. 800fc3e: 4770 bx lr
  36298. 0800fc40 <HAL_UARTEx_DisableFifoMode>:
  36299. * @brief Disable the FIFO mode.
  36300. * @param huart UART handle.
  36301. * @retval HAL status
  36302. */
  36303. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  36304. {
  36305. 800fc40: b480 push {r7}
  36306. 800fc42: b085 sub sp, #20
  36307. 800fc44: af00 add r7, sp, #0
  36308. 800fc46: 6078 str r0, [r7, #4]
  36309. /* Check parameters */
  36310. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  36311. /* Process Locked */
  36312. __HAL_LOCK(huart);
  36313. 800fc48: 687b ldr r3, [r7, #4]
  36314. 800fc4a: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  36315. 800fc4e: 2b01 cmp r3, #1
  36316. 800fc50: d101 bne.n 800fc56 <HAL_UARTEx_DisableFifoMode+0x16>
  36317. 800fc52: 2302 movs r3, #2
  36318. 800fc54: e027 b.n 800fca6 <HAL_UARTEx_DisableFifoMode+0x66>
  36319. 800fc56: 687b ldr r3, [r7, #4]
  36320. 800fc58: 2201 movs r2, #1
  36321. 800fc5a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36322. huart->gState = HAL_UART_STATE_BUSY;
  36323. 800fc5e: 687b ldr r3, [r7, #4]
  36324. 800fc60: 2224 movs r2, #36 @ 0x24
  36325. 800fc62: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36326. /* Save actual UART configuration */
  36327. tmpcr1 = READ_REG(huart->Instance->CR1);
  36328. 800fc66: 687b ldr r3, [r7, #4]
  36329. 800fc68: 681b ldr r3, [r3, #0]
  36330. 800fc6a: 681b ldr r3, [r3, #0]
  36331. 800fc6c: 60fb str r3, [r7, #12]
  36332. /* Disable UART */
  36333. __HAL_UART_DISABLE(huart);
  36334. 800fc6e: 687b ldr r3, [r7, #4]
  36335. 800fc70: 681b ldr r3, [r3, #0]
  36336. 800fc72: 681a ldr r2, [r3, #0]
  36337. 800fc74: 687b ldr r3, [r7, #4]
  36338. 800fc76: 681b ldr r3, [r3, #0]
  36339. 800fc78: f022 0201 bic.w r2, r2, #1
  36340. 800fc7c: 601a str r2, [r3, #0]
  36341. /* Enable FIFO mode */
  36342. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  36343. 800fc7e: 68fb ldr r3, [r7, #12]
  36344. 800fc80: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  36345. 800fc84: 60fb str r3, [r7, #12]
  36346. huart->FifoMode = UART_FIFOMODE_DISABLE;
  36347. 800fc86: 687b ldr r3, [r7, #4]
  36348. 800fc88: 2200 movs r2, #0
  36349. 800fc8a: 665a str r2, [r3, #100] @ 0x64
  36350. /* Restore UART configuration */
  36351. WRITE_REG(huart->Instance->CR1, tmpcr1);
  36352. 800fc8c: 687b ldr r3, [r7, #4]
  36353. 800fc8e: 681b ldr r3, [r3, #0]
  36354. 800fc90: 68fa ldr r2, [r7, #12]
  36355. 800fc92: 601a str r2, [r3, #0]
  36356. huart->gState = HAL_UART_STATE_READY;
  36357. 800fc94: 687b ldr r3, [r7, #4]
  36358. 800fc96: 2220 movs r2, #32
  36359. 800fc98: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36360. /* Process Unlocked */
  36361. __HAL_UNLOCK(huart);
  36362. 800fc9c: 687b ldr r3, [r7, #4]
  36363. 800fc9e: 2200 movs r2, #0
  36364. 800fca0: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36365. return HAL_OK;
  36366. 800fca4: 2300 movs r3, #0
  36367. }
  36368. 800fca6: 4618 mov r0, r3
  36369. 800fca8: 3714 adds r7, #20
  36370. 800fcaa: 46bd mov sp, r7
  36371. 800fcac: f85d 7b04 ldr.w r7, [sp], #4
  36372. 800fcb0: 4770 bx lr
  36373. 0800fcb2 <HAL_UARTEx_SetTxFifoThreshold>:
  36374. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  36375. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  36376. * @retval HAL status
  36377. */
  36378. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  36379. {
  36380. 800fcb2: b580 push {r7, lr}
  36381. 800fcb4: b084 sub sp, #16
  36382. 800fcb6: af00 add r7, sp, #0
  36383. 800fcb8: 6078 str r0, [r7, #4]
  36384. 800fcba: 6039 str r1, [r7, #0]
  36385. /* Check parameters */
  36386. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  36387. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  36388. /* Process Locked */
  36389. __HAL_LOCK(huart);
  36390. 800fcbc: 687b ldr r3, [r7, #4]
  36391. 800fcbe: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  36392. 800fcc2: 2b01 cmp r3, #1
  36393. 800fcc4: d101 bne.n 800fcca <HAL_UARTEx_SetTxFifoThreshold+0x18>
  36394. 800fcc6: 2302 movs r3, #2
  36395. 800fcc8: e02d b.n 800fd26 <HAL_UARTEx_SetTxFifoThreshold+0x74>
  36396. 800fcca: 687b ldr r3, [r7, #4]
  36397. 800fccc: 2201 movs r2, #1
  36398. 800fcce: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36399. huart->gState = HAL_UART_STATE_BUSY;
  36400. 800fcd2: 687b ldr r3, [r7, #4]
  36401. 800fcd4: 2224 movs r2, #36 @ 0x24
  36402. 800fcd6: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36403. /* Save actual UART configuration */
  36404. tmpcr1 = READ_REG(huart->Instance->CR1);
  36405. 800fcda: 687b ldr r3, [r7, #4]
  36406. 800fcdc: 681b ldr r3, [r3, #0]
  36407. 800fcde: 681b ldr r3, [r3, #0]
  36408. 800fce0: 60fb str r3, [r7, #12]
  36409. /* Disable UART */
  36410. __HAL_UART_DISABLE(huart);
  36411. 800fce2: 687b ldr r3, [r7, #4]
  36412. 800fce4: 681b ldr r3, [r3, #0]
  36413. 800fce6: 681a ldr r2, [r3, #0]
  36414. 800fce8: 687b ldr r3, [r7, #4]
  36415. 800fcea: 681b ldr r3, [r3, #0]
  36416. 800fcec: f022 0201 bic.w r2, r2, #1
  36417. 800fcf0: 601a str r2, [r3, #0]
  36418. /* Update TX threshold configuration */
  36419. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  36420. 800fcf2: 687b ldr r3, [r7, #4]
  36421. 800fcf4: 681b ldr r3, [r3, #0]
  36422. 800fcf6: 689b ldr r3, [r3, #8]
  36423. 800fcf8: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  36424. 800fcfc: 687b ldr r3, [r7, #4]
  36425. 800fcfe: 681b ldr r3, [r3, #0]
  36426. 800fd00: 683a ldr r2, [r7, #0]
  36427. 800fd02: 430a orrs r2, r1
  36428. 800fd04: 609a str r2, [r3, #8]
  36429. /* Determine the number of data to process during RX/TX ISR execution */
  36430. UARTEx_SetNbDataToProcess(huart);
  36431. 800fd06: 6878 ldr r0, [r7, #4]
  36432. 800fd08: f000 f8a0 bl 800fe4c <UARTEx_SetNbDataToProcess>
  36433. /* Restore UART configuration */
  36434. WRITE_REG(huart->Instance->CR1, tmpcr1);
  36435. 800fd0c: 687b ldr r3, [r7, #4]
  36436. 800fd0e: 681b ldr r3, [r3, #0]
  36437. 800fd10: 68fa ldr r2, [r7, #12]
  36438. 800fd12: 601a str r2, [r3, #0]
  36439. huart->gState = HAL_UART_STATE_READY;
  36440. 800fd14: 687b ldr r3, [r7, #4]
  36441. 800fd16: 2220 movs r2, #32
  36442. 800fd18: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36443. /* Process Unlocked */
  36444. __HAL_UNLOCK(huart);
  36445. 800fd1c: 687b ldr r3, [r7, #4]
  36446. 800fd1e: 2200 movs r2, #0
  36447. 800fd20: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36448. return HAL_OK;
  36449. 800fd24: 2300 movs r3, #0
  36450. }
  36451. 800fd26: 4618 mov r0, r3
  36452. 800fd28: 3710 adds r7, #16
  36453. 800fd2a: 46bd mov sp, r7
  36454. 800fd2c: bd80 pop {r7, pc}
  36455. 0800fd2e <HAL_UARTEx_SetRxFifoThreshold>:
  36456. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  36457. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  36458. * @retval HAL status
  36459. */
  36460. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  36461. {
  36462. 800fd2e: b580 push {r7, lr}
  36463. 800fd30: b084 sub sp, #16
  36464. 800fd32: af00 add r7, sp, #0
  36465. 800fd34: 6078 str r0, [r7, #4]
  36466. 800fd36: 6039 str r1, [r7, #0]
  36467. /* Check the parameters */
  36468. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  36469. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  36470. /* Process Locked */
  36471. __HAL_LOCK(huart);
  36472. 800fd38: 687b ldr r3, [r7, #4]
  36473. 800fd3a: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  36474. 800fd3e: 2b01 cmp r3, #1
  36475. 800fd40: d101 bne.n 800fd46 <HAL_UARTEx_SetRxFifoThreshold+0x18>
  36476. 800fd42: 2302 movs r3, #2
  36477. 800fd44: e02d b.n 800fda2 <HAL_UARTEx_SetRxFifoThreshold+0x74>
  36478. 800fd46: 687b ldr r3, [r7, #4]
  36479. 800fd48: 2201 movs r2, #1
  36480. 800fd4a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36481. huart->gState = HAL_UART_STATE_BUSY;
  36482. 800fd4e: 687b ldr r3, [r7, #4]
  36483. 800fd50: 2224 movs r2, #36 @ 0x24
  36484. 800fd52: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36485. /* Save actual UART configuration */
  36486. tmpcr1 = READ_REG(huart->Instance->CR1);
  36487. 800fd56: 687b ldr r3, [r7, #4]
  36488. 800fd58: 681b ldr r3, [r3, #0]
  36489. 800fd5a: 681b ldr r3, [r3, #0]
  36490. 800fd5c: 60fb str r3, [r7, #12]
  36491. /* Disable UART */
  36492. __HAL_UART_DISABLE(huart);
  36493. 800fd5e: 687b ldr r3, [r7, #4]
  36494. 800fd60: 681b ldr r3, [r3, #0]
  36495. 800fd62: 681a ldr r2, [r3, #0]
  36496. 800fd64: 687b ldr r3, [r7, #4]
  36497. 800fd66: 681b ldr r3, [r3, #0]
  36498. 800fd68: f022 0201 bic.w r2, r2, #1
  36499. 800fd6c: 601a str r2, [r3, #0]
  36500. /* Update RX threshold configuration */
  36501. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  36502. 800fd6e: 687b ldr r3, [r7, #4]
  36503. 800fd70: 681b ldr r3, [r3, #0]
  36504. 800fd72: 689b ldr r3, [r3, #8]
  36505. 800fd74: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  36506. 800fd78: 687b ldr r3, [r7, #4]
  36507. 800fd7a: 681b ldr r3, [r3, #0]
  36508. 800fd7c: 683a ldr r2, [r7, #0]
  36509. 800fd7e: 430a orrs r2, r1
  36510. 800fd80: 609a str r2, [r3, #8]
  36511. /* Determine the number of data to process during RX/TX ISR execution */
  36512. UARTEx_SetNbDataToProcess(huart);
  36513. 800fd82: 6878 ldr r0, [r7, #4]
  36514. 800fd84: f000 f862 bl 800fe4c <UARTEx_SetNbDataToProcess>
  36515. /* Restore UART configuration */
  36516. WRITE_REG(huart->Instance->CR1, tmpcr1);
  36517. 800fd88: 687b ldr r3, [r7, #4]
  36518. 800fd8a: 681b ldr r3, [r3, #0]
  36519. 800fd8c: 68fa ldr r2, [r7, #12]
  36520. 800fd8e: 601a str r2, [r3, #0]
  36521. huart->gState = HAL_UART_STATE_READY;
  36522. 800fd90: 687b ldr r3, [r7, #4]
  36523. 800fd92: 2220 movs r2, #32
  36524. 800fd94: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  36525. /* Process Unlocked */
  36526. __HAL_UNLOCK(huart);
  36527. 800fd98: 687b ldr r3, [r7, #4]
  36528. 800fd9a: 2200 movs r2, #0
  36529. 800fd9c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  36530. return HAL_OK;
  36531. 800fda0: 2300 movs r3, #0
  36532. }
  36533. 800fda2: 4618 mov r0, r3
  36534. 800fda4: 3710 adds r7, #16
  36535. 800fda6: 46bd mov sp, r7
  36536. 800fda8: bd80 pop {r7, pc}
  36537. 0800fdaa <HAL_UARTEx_ReceiveToIdle_IT>:
  36538. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  36539. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  36540. * @retval HAL status
  36541. */
  36542. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  36543. {
  36544. 800fdaa: b580 push {r7, lr}
  36545. 800fdac: b08c sub sp, #48 @ 0x30
  36546. 800fdae: af00 add r7, sp, #0
  36547. 800fdb0: 60f8 str r0, [r7, #12]
  36548. 800fdb2: 60b9 str r1, [r7, #8]
  36549. 800fdb4: 4613 mov r3, r2
  36550. 800fdb6: 80fb strh r3, [r7, #6]
  36551. HAL_StatusTypeDef status = HAL_OK;
  36552. 800fdb8: 2300 movs r3, #0
  36553. 800fdba: f887 302f strb.w r3, [r7, #47] @ 0x2f
  36554. /* Check that a Rx process is not already ongoing */
  36555. if (huart->RxState == HAL_UART_STATE_READY)
  36556. 800fdbe: 68fb ldr r3, [r7, #12]
  36557. 800fdc0: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  36558. 800fdc4: 2b20 cmp r3, #32
  36559. 800fdc6: d13b bne.n 800fe40 <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  36560. {
  36561. if ((pData == NULL) || (Size == 0U))
  36562. 800fdc8: 68bb ldr r3, [r7, #8]
  36563. 800fdca: 2b00 cmp r3, #0
  36564. 800fdcc: d002 beq.n 800fdd4 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  36565. 800fdce: 88fb ldrh r3, [r7, #6]
  36566. 800fdd0: 2b00 cmp r3, #0
  36567. 800fdd2: d101 bne.n 800fdd8 <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  36568. {
  36569. return HAL_ERROR;
  36570. 800fdd4: 2301 movs r3, #1
  36571. 800fdd6: e034 b.n 800fe42 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  36572. }
  36573. /* Set Reception type to reception till IDLE Event*/
  36574. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  36575. 800fdd8: 68fb ldr r3, [r7, #12]
  36576. 800fdda: 2201 movs r2, #1
  36577. 800fddc: 66da str r2, [r3, #108] @ 0x6c
  36578. huart->RxEventType = HAL_UART_RXEVENT_TC;
  36579. 800fdde: 68fb ldr r3, [r7, #12]
  36580. 800fde0: 2200 movs r2, #0
  36581. 800fde2: 671a str r2, [r3, #112] @ 0x70
  36582. (void)UART_Start_Receive_IT(huart, pData, Size);
  36583. 800fde4: 88fb ldrh r3, [r7, #6]
  36584. 800fde6: 461a mov r2, r3
  36585. 800fde8: 68b9 ldr r1, [r7, #8]
  36586. 800fdea: 68f8 ldr r0, [r7, #12]
  36587. 800fdec: f7fe fe82 bl 800eaf4 <UART_Start_Receive_IT>
  36588. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  36589. 800fdf0: 68fb ldr r3, [r7, #12]
  36590. 800fdf2: 6edb ldr r3, [r3, #108] @ 0x6c
  36591. 800fdf4: 2b01 cmp r3, #1
  36592. 800fdf6: d11d bne.n 800fe34 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  36593. {
  36594. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  36595. 800fdf8: 68fb ldr r3, [r7, #12]
  36596. 800fdfa: 681b ldr r3, [r3, #0]
  36597. 800fdfc: 2210 movs r2, #16
  36598. 800fdfe: 621a str r2, [r3, #32]
  36599. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  36600. 800fe00: 68fb ldr r3, [r7, #12]
  36601. 800fe02: 681b ldr r3, [r3, #0]
  36602. 800fe04: 61bb str r3, [r7, #24]
  36603. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  36604. 800fe06: 69bb ldr r3, [r7, #24]
  36605. 800fe08: e853 3f00 ldrex r3, [r3]
  36606. 800fe0c: 617b str r3, [r7, #20]
  36607. return(result);
  36608. 800fe0e: 697b ldr r3, [r7, #20]
  36609. 800fe10: f043 0310 orr.w r3, r3, #16
  36610. 800fe14: 62bb str r3, [r7, #40] @ 0x28
  36611. 800fe16: 68fb ldr r3, [r7, #12]
  36612. 800fe18: 681b ldr r3, [r3, #0]
  36613. 800fe1a: 461a mov r2, r3
  36614. 800fe1c: 6abb ldr r3, [r7, #40] @ 0x28
  36615. 800fe1e: 627b str r3, [r7, #36] @ 0x24
  36616. 800fe20: 623a str r2, [r7, #32]
  36617. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  36618. 800fe22: 6a39 ldr r1, [r7, #32]
  36619. 800fe24: 6a7a ldr r2, [r7, #36] @ 0x24
  36620. 800fe26: e841 2300 strex r3, r2, [r1]
  36621. 800fe2a: 61fb str r3, [r7, #28]
  36622. return(result);
  36623. 800fe2c: 69fb ldr r3, [r7, #28]
  36624. 800fe2e: 2b00 cmp r3, #0
  36625. 800fe30: d1e6 bne.n 800fe00 <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  36626. 800fe32: e002 b.n 800fe3a <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  36627. {
  36628. /* In case of errors already pending when reception is started,
  36629. Interrupts may have already been raised and lead to reception abortion.
  36630. (Overrun error for instance).
  36631. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  36632. status = HAL_ERROR;
  36633. 800fe34: 2301 movs r3, #1
  36634. 800fe36: f887 302f strb.w r3, [r7, #47] @ 0x2f
  36635. }
  36636. return status;
  36637. 800fe3a: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  36638. 800fe3e: e000 b.n 800fe42 <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  36639. }
  36640. else
  36641. {
  36642. return HAL_BUSY;
  36643. 800fe40: 2302 movs r3, #2
  36644. }
  36645. }
  36646. 800fe42: 4618 mov r0, r3
  36647. 800fe44: 3730 adds r7, #48 @ 0x30
  36648. 800fe46: 46bd mov sp, r7
  36649. 800fe48: bd80 pop {r7, pc}
  36650. ...
  36651. 0800fe4c <UARTEx_SetNbDataToProcess>:
  36652. * the UART configuration registers.
  36653. * @param huart UART handle.
  36654. * @retval None
  36655. */
  36656. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  36657. {
  36658. 800fe4c: b480 push {r7}
  36659. 800fe4e: b085 sub sp, #20
  36660. 800fe50: af00 add r7, sp, #0
  36661. 800fe52: 6078 str r0, [r7, #4]
  36662. uint8_t rx_fifo_threshold;
  36663. uint8_t tx_fifo_threshold;
  36664. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  36665. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  36666. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  36667. 800fe54: 687b ldr r3, [r7, #4]
  36668. 800fe56: 6e5b ldr r3, [r3, #100] @ 0x64
  36669. 800fe58: 2b00 cmp r3, #0
  36670. 800fe5a: d108 bne.n 800fe6e <UARTEx_SetNbDataToProcess+0x22>
  36671. {
  36672. huart->NbTxDataToProcess = 1U;
  36673. 800fe5c: 687b ldr r3, [r7, #4]
  36674. 800fe5e: 2201 movs r2, #1
  36675. 800fe60: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  36676. huart->NbRxDataToProcess = 1U;
  36677. 800fe64: 687b ldr r3, [r7, #4]
  36678. 800fe66: 2201 movs r2, #1
  36679. 800fe68: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  36680. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  36681. (uint16_t)denominator[tx_fifo_threshold];
  36682. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  36683. (uint16_t)denominator[rx_fifo_threshold];
  36684. }
  36685. }
  36686. 800fe6c: e031 b.n 800fed2 <UARTEx_SetNbDataToProcess+0x86>
  36687. rx_fifo_depth = RX_FIFO_DEPTH;
  36688. 800fe6e: 2310 movs r3, #16
  36689. 800fe70: 73fb strb r3, [r7, #15]
  36690. tx_fifo_depth = TX_FIFO_DEPTH;
  36691. 800fe72: 2310 movs r3, #16
  36692. 800fe74: 73bb strb r3, [r7, #14]
  36693. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  36694. 800fe76: 687b ldr r3, [r7, #4]
  36695. 800fe78: 681b ldr r3, [r3, #0]
  36696. 800fe7a: 689b ldr r3, [r3, #8]
  36697. 800fe7c: 0e5b lsrs r3, r3, #25
  36698. 800fe7e: b2db uxtb r3, r3
  36699. 800fe80: f003 0307 and.w r3, r3, #7
  36700. 800fe84: 737b strb r3, [r7, #13]
  36701. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  36702. 800fe86: 687b ldr r3, [r7, #4]
  36703. 800fe88: 681b ldr r3, [r3, #0]
  36704. 800fe8a: 689b ldr r3, [r3, #8]
  36705. 800fe8c: 0f5b lsrs r3, r3, #29
  36706. 800fe8e: b2db uxtb r3, r3
  36707. 800fe90: f003 0307 and.w r3, r3, #7
  36708. 800fe94: 733b strb r3, [r7, #12]
  36709. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  36710. 800fe96: 7bbb ldrb r3, [r7, #14]
  36711. 800fe98: 7b3a ldrb r2, [r7, #12]
  36712. 800fe9a: 4911 ldr r1, [pc, #68] @ (800fee0 <UARTEx_SetNbDataToProcess+0x94>)
  36713. 800fe9c: 5c8a ldrb r2, [r1, r2]
  36714. 800fe9e: fb02 f303 mul.w r3, r2, r3
  36715. (uint16_t)denominator[tx_fifo_threshold];
  36716. 800fea2: 7b3a ldrb r2, [r7, #12]
  36717. 800fea4: 490f ldr r1, [pc, #60] @ (800fee4 <UARTEx_SetNbDataToProcess+0x98>)
  36718. 800fea6: 5c8a ldrb r2, [r1, r2]
  36719. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  36720. 800fea8: fb93 f3f2 sdiv r3, r3, r2
  36721. 800feac: b29a uxth r2, r3
  36722. 800feae: 687b ldr r3, [r7, #4]
  36723. 800feb0: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  36724. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  36725. 800feb4: 7bfb ldrb r3, [r7, #15]
  36726. 800feb6: 7b7a ldrb r2, [r7, #13]
  36727. 800feb8: 4909 ldr r1, [pc, #36] @ (800fee0 <UARTEx_SetNbDataToProcess+0x94>)
  36728. 800feba: 5c8a ldrb r2, [r1, r2]
  36729. 800febc: fb02 f303 mul.w r3, r2, r3
  36730. (uint16_t)denominator[rx_fifo_threshold];
  36731. 800fec0: 7b7a ldrb r2, [r7, #13]
  36732. 800fec2: 4908 ldr r1, [pc, #32] @ (800fee4 <UARTEx_SetNbDataToProcess+0x98>)
  36733. 800fec4: 5c8a ldrb r2, [r1, r2]
  36734. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  36735. 800fec6: fb93 f3f2 sdiv r3, r3, r2
  36736. 800feca: b29a uxth r2, r3
  36737. 800fecc: 687b ldr r3, [r7, #4]
  36738. 800fece: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  36739. }
  36740. 800fed2: bf00 nop
  36741. 800fed4: 3714 adds r7, #20
  36742. 800fed6: 46bd mov sp, r7
  36743. 800fed8: f85d 7b04 ldr.w r7, [sp], #4
  36744. 800fedc: 4770 bx lr
  36745. 800fede: bf00 nop
  36746. 800fee0: 08031338 .word 0x08031338
  36747. 800fee4: 08031340 .word 0x08031340
  36748. 0800fee8 <tcpip_init_wrap>:
  36749. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  36750. /* USER CODE BEGIN 2 */
  36751. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE after tcpip_init in MX_LWIP_Init
  36752. * This is to keep the code after MX code re-generation */
  36753. static inline void tcpip_init_wrap(tcpip_init_done_fn tcpip_init_done, void *arg){
  36754. 800fee8: b580 push {r7, lr}
  36755. 800feea: b082 sub sp, #8
  36756. 800feec: af00 add r7, sp, #0
  36757. 800feee: 6078 str r0, [r7, #4]
  36758. 800fef0: 6039 str r1, [r7, #0]
  36759. tcpip_init(tcpip_init_done, arg);
  36760. 800fef2: 6839 ldr r1, [r7, #0]
  36761. 800fef4: 6878 ldr r0, [r7, #4]
  36762. 800fef6: f009 f9bd bl 8019274 <tcpip_init>
  36763. LOCK_TCPIP_CORE();
  36764. 800fefa: f000 fda1 bl 8010a40 <sys_lock_tcpip_core>
  36765. }
  36766. 800fefe: bf00 nop
  36767. 800ff00: 3708 adds r7, #8
  36768. 800ff02: 46bd mov sp, r7
  36769. 800ff04: bd80 pop {r7, pc}
  36770. ...
  36771. 0800ff08 <is_link_up>:
  36772. #define tcpip_init tcpip_init_wrap
  36773. uint8_t is_link_up(void)
  36774. {
  36775. 800ff08: b480 push {r7}
  36776. 800ff0a: af00 add r7, sp, #0
  36777. return netif_is_up(&gnetif);
  36778. 800ff0c: 4b05 ldr r3, [pc, #20] @ (800ff24 <is_link_up+0x1c>)
  36779. 800ff0e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  36780. 800ff12: f003 0301 and.w r3, r3, #1
  36781. 800ff16: b2db uxtb r3, r3
  36782. }
  36783. 800ff18: 4618 mov r0, r3
  36784. 800ff1a: 46bd mov sp, r7
  36785. 800ff1c: f85d 7b04 ldr.w r7, [sp], #4
  36786. 800ff20: 4770 bx lr
  36787. 800ff22: bf00 nop
  36788. 800ff24: 24002244 .word 0x24002244
  36789. 0800ff28 <MX_LWIP_Init>:
  36790. /**
  36791. * LwIP initialization function
  36792. */
  36793. void MX_LWIP_Init(void)
  36794. {
  36795. 800ff28: b580 push {r7, lr}
  36796. 800ff2a: b084 sub sp, #16
  36797. 800ff2c: af04 add r7, sp, #16
  36798. /* IP addresses initialization without DHCP (IPv4) */
  36799. ipaddr_aton(STATIC_IP, &ipaddr);
  36800. ipaddr_aton(STATIC_MASK, &netmask);
  36801. ipaddr_aton(STATIC_GW, &gw);
  36802. #else
  36803. ip_addr_set_zero_ip4(&ipaddr);
  36804. 800ff2e: 4b27 ldr r3, [pc, #156] @ (800ffcc <MX_LWIP_Init+0xa4>)
  36805. 800ff30: 2200 movs r2, #0
  36806. 800ff32: 601a str r2, [r3, #0]
  36807. ip_addr_set_zero_ip4(&netmask);
  36808. 800ff34: 4b26 ldr r3, [pc, #152] @ (800ffd0 <MX_LWIP_Init+0xa8>)
  36809. 800ff36: 2200 movs r2, #0
  36810. 800ff38: 601a str r2, [r3, #0]
  36811. ip_addr_set_zero_ip4(&gw);
  36812. 800ff3a: 4b26 ldr r3, [pc, #152] @ (800ffd4 <MX_LWIP_Init+0xac>)
  36813. 800ff3c: 2200 movs r2, #0
  36814. 800ff3e: 601a str r2, [r3, #0]
  36815. #endif
  36816. /* USER CODE END IP_ADDRESSES */
  36817. /* Initilialize the LwIP stack with RTOS */
  36818. tcpip_init( NULL, NULL );
  36819. 800ff40: 2100 movs r1, #0
  36820. 800ff42: 2000 movs r0, #0
  36821. 800ff44: f7ff ffd0 bl 800fee8 <tcpip_init_wrap>
  36822. // IP4_ADDR(&ipaddr, IP_ADDRESS[0], IP_ADDRESS[1], IP_ADDRESS[2], IP_ADDRESS[3]);
  36823. // IP4_ADDR(&netmask, NETMASK_ADDRESS[0], NETMASK_ADDRESS[1] , NETMASK_ADDRESS[2], NETMASK_ADDRESS[3]);
  36824. // IP4_ADDR(&gw, GATEWAY_ADDRESS[0], GATEWAY_ADDRESS[1], GATEWAY_ADDRESS[2], GATEWAY_ADDRESS[3]);
  36825. /* add the network interface (IPv4/IPv6) with RTOS */
  36826. netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, &ethernetif_init, &tcpip_input);
  36827. 800ff48: 4b23 ldr r3, [pc, #140] @ (800ffd8 <MX_LWIP_Init+0xb0>)
  36828. 800ff4a: 9302 str r3, [sp, #8]
  36829. 800ff4c: 4b23 ldr r3, [pc, #140] @ (800ffdc <MX_LWIP_Init+0xb4>)
  36830. 800ff4e: 9301 str r3, [sp, #4]
  36831. 800ff50: 2300 movs r3, #0
  36832. 800ff52: 9300 str r3, [sp, #0]
  36833. 800ff54: 4b1f ldr r3, [pc, #124] @ (800ffd4 <MX_LWIP_Init+0xac>)
  36834. 800ff56: 4a1e ldr r2, [pc, #120] @ (800ffd0 <MX_LWIP_Init+0xa8>)
  36835. 800ff58: 491c ldr r1, [pc, #112] @ (800ffcc <MX_LWIP_Init+0xa4>)
  36836. 800ff5a: 4821 ldr r0, [pc, #132] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36837. 800ff5c: f009 fffa bl 8019f54 <netif_add>
  36838. /* Registers the default network interface */
  36839. netif_set_default(&gnetif);
  36840. 800ff60: 481f ldr r0, [pc, #124] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36841. 800ff62: f00a f9b5 bl 801a2d0 <netif_set_default>
  36842. if (netif_is_link_up(&gnetif))
  36843. 800ff66: 4b1e ldr r3, [pc, #120] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36844. 800ff68: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  36845. 800ff6c: 089b lsrs r3, r3, #2
  36846. 800ff6e: f003 0301 and.w r3, r3, #1
  36847. 800ff72: b2db uxtb r3, r3
  36848. 800ff74: 2b00 cmp r3, #0
  36849. 800ff76: d003 beq.n 800ff80 <MX_LWIP_Init+0x58>
  36850. {
  36851. /* When the netif is fully configured this function must be called */
  36852. netif_set_up(&gnetif);
  36853. 800ff78: 4819 ldr r0, [pc, #100] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36854. 800ff7a: f00a f9b9 bl 801a2f0 <netif_set_up>
  36855. 800ff7e: e002 b.n 800ff86 <MX_LWIP_Init+0x5e>
  36856. }
  36857. else
  36858. {
  36859. /* When the netif link is down this function must be called */
  36860. netif_set_down(&gnetif);
  36861. 800ff80: 4817 ldr r0, [pc, #92] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36862. 800ff82: f00a fa23 bl 801a3cc <netif_set_down>
  36863. }
  36864. /* Set the link callback function, this function is called on change of link status*/
  36865. netif_set_link_callback(&gnetif, ethernet_link_status_updated);
  36866. 800ff86: 4917 ldr r1, [pc, #92] @ (800ffe4 <MX_LWIP_Init+0xbc>)
  36867. 800ff88: 4815 ldr r0, [pc, #84] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36868. 800ff8a: f00a fabf bl 801a50c <netif_set_link_callback>
  36869. /* Create the Ethernet link handler thread */
  36870. /* USER CODE BEGIN H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  36871. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  36872. 800ff8e: 2224 movs r2, #36 @ 0x24
  36873. 800ff90: 2100 movs r1, #0
  36874. 800ff92: 4815 ldr r0, [pc, #84] @ (800ffe8 <MX_LWIP_Init+0xc0>)
  36875. 800ff94: f01a faa4 bl 802a4e0 <memset>
  36876. attributes.name = "EthLink";
  36877. 800ff98: 4b13 ldr r3, [pc, #76] @ (800ffe8 <MX_LWIP_Init+0xc0>)
  36878. 800ff9a: 4a14 ldr r2, [pc, #80] @ (800ffec <MX_LWIP_Init+0xc4>)
  36879. 800ff9c: 601a str r2, [r3, #0]
  36880. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE * 2;
  36881. 800ff9e: 4b12 ldr r3, [pc, #72] @ (800ffe8 <MX_LWIP_Init+0xc0>)
  36882. 800ffa0: f44f 6200 mov.w r2, #2048 @ 0x800
  36883. 800ffa4: 615a str r2, [r3, #20]
  36884. attributes.priority = osPriorityBelowNormal;
  36885. 800ffa6: 4b10 ldr r3, [pc, #64] @ (800ffe8 <MX_LWIP_Init+0xc0>)
  36886. 800ffa8: 2210 movs r2, #16
  36887. 800ffaa: 619a str r2, [r3, #24]
  36888. osThreadNew(ethernet_link_thread, &gnetif, &attributes);
  36889. 800ffac: 4a0e ldr r2, [pc, #56] @ (800ffe8 <MX_LWIP_Init+0xc0>)
  36890. 800ffae: 490c ldr r1, [pc, #48] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36891. 800ffb0: 480f ldr r0, [pc, #60] @ (800fff0 <MX_LWIP_Init+0xc8>)
  36892. 800ffb2: f000 feee bl 8010d92 <osThreadNew>
  36893. /* USER CODE END H7_OS_THREAD_NEW_CMSIS_RTOS_V2 */
  36894. /* USER CODE BEGIN 3 */
  36895. /* Start DHCP negotiation for a network interface (IPv4) */
  36896. #if USE_DHCP
  36897. netif_set_up(&gnetif);
  36898. 800ffb6: 480a ldr r0, [pc, #40] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36899. 800ffb8: f00a f99a bl 801a2f0 <netif_set_up>
  36900. dhcp_start(&gnetif);
  36901. 800ffbc: 4808 ldr r0, [pc, #32] @ (800ffe0 <MX_LWIP_Init+0xb8>)
  36902. 800ffbe: f012 fc87 bl 80228d0 <dhcp_start>
  36903. #else
  36904. netif_set_addr(&gnetif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  36905. #endif
  36906. /* ETH_CODE: call UNLOCK_TCPIP_CORE after we are done */
  36907. UNLOCK_TCPIP_CORE();
  36908. 800ffc2: f000 fd4d bl 8010a60 <sys_unlock_tcpip_core>
  36909. /* USER CODE END 3 */
  36910. }
  36911. 800ffc6: bf00 nop
  36912. 800ffc8: 46bd mov sp, r7
  36913. 800ffca: bd80 pop {r7, pc}
  36914. 800ffcc: 2400227c .word 0x2400227c
  36915. 800ffd0: 24002280 .word 0x24002280
  36916. 800ffd4: 24002284 .word 0x24002284
  36917. 800ffd8: 0801918d .word 0x0801918d
  36918. 800ffdc: 080104a9 .word 0x080104a9
  36919. 800ffe0: 24002244 .word 0x24002244
  36920. 800ffe4: 0800fff5 .word 0x0800fff5
  36921. 800ffe8: 24002288 .word 0x24002288
  36922. 800ffec: 0802d26c .word 0x0802d26c
  36923. 800fff0: 08010779 .word 0x08010779
  36924. 0800fff4 <ethernet_link_status_updated>:
  36925. * @brief Notify the User about the network interface config status
  36926. * @param netif: the network interface
  36927. * @retval None
  36928. */
  36929. static void ethernet_link_status_updated(struct netif *netif)
  36930. {
  36931. 800fff4: b480 push {r7}
  36932. 800fff6: b083 sub sp, #12
  36933. 800fff8: af00 add r7, sp, #0
  36934. 800fffa: 6078 str r0, [r7, #4]
  36935. else /* netif is down */
  36936. {
  36937. /* USER CODE BEGIN 6 */
  36938. /* USER CODE END 6 */
  36939. }
  36940. }
  36941. 800fffc: bf00 nop
  36942. 800fffe: 370c adds r7, #12
  36943. 8010000: 46bd mov sp, r7
  36944. 8010002: f85d 7b04 ldr.w r7, [sp], #4
  36945. 8010006: 4770 bx lr
  36946. 08010008 <HAL_ETH_RxCpltCallback>:
  36947. * @brief Ethernet Rx Transfer completed callback
  36948. * @param handlerEth: ETH handler
  36949. * @retval None
  36950. */
  36951. void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *handlerEth)
  36952. {
  36953. 8010008: b580 push {r7, lr}
  36954. 801000a: b082 sub sp, #8
  36955. 801000c: af00 add r7, sp, #0
  36956. 801000e: 6078 str r0, [r7, #4]
  36957. osSemaphoreRelease(RxPktSemaphore);
  36958. 8010010: 4b04 ldr r3, [pc, #16] @ (8010024 <HAL_ETH_RxCpltCallback+0x1c>)
  36959. 8010012: 681b ldr r3, [r3, #0]
  36960. 8010014: 4618 mov r0, r3
  36961. 8010016: f001 f9f1 bl 80113fc <osSemaphoreRelease>
  36962. }
  36963. 801001a: bf00 nop
  36964. 801001c: 3708 adds r7, #8
  36965. 801001e: 46bd mov sp, r7
  36966. 8010020: bd80 pop {r7, pc}
  36967. 8010022: bf00 nop
  36968. 8010024: 240022b4 .word 0x240022b4
  36969. 08010028 <HAL_ETH_TxCpltCallback>:
  36970. * @brief Ethernet Tx Transfer completed callback
  36971. * @param handlerEth: ETH handler
  36972. * @retval None
  36973. */
  36974. void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *handlerEth)
  36975. {
  36976. 8010028: b580 push {r7, lr}
  36977. 801002a: b082 sub sp, #8
  36978. 801002c: af00 add r7, sp, #0
  36979. 801002e: 6078 str r0, [r7, #4]
  36980. osSemaphoreRelease(TxPktSemaphore);
  36981. 8010030: 4b04 ldr r3, [pc, #16] @ (8010044 <HAL_ETH_TxCpltCallback+0x1c>)
  36982. 8010032: 681b ldr r3, [r3, #0]
  36983. 8010034: 4618 mov r0, r3
  36984. 8010036: f001 f9e1 bl 80113fc <osSemaphoreRelease>
  36985. }
  36986. 801003a: bf00 nop
  36987. 801003c: 3708 adds r7, #8
  36988. 801003e: 46bd mov sp, r7
  36989. 8010040: bd80 pop {r7, pc}
  36990. 8010042: bf00 nop
  36991. 8010044: 240022b8 .word 0x240022b8
  36992. 08010048 <HAL_ETH_ErrorCallback>:
  36993. * @brief Ethernet DMA transfer error callback
  36994. * @param handlerEth: ETH handler
  36995. * @retval None
  36996. */
  36997. void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *handlerEth)
  36998. {
  36999. 8010048: b580 push {r7, lr}
  37000. 801004a: b082 sub sp, #8
  37001. 801004c: af00 add r7, sp, #0
  37002. 801004e: 6078 str r0, [r7, #4]
  37003. if((HAL_ETH_GetDMAError(handlerEth) & ETH_DMACSR_RBU) == ETH_DMACSR_RBU)
  37004. 8010050: 6878 ldr r0, [r7, #4]
  37005. 8010052: f7f8 fe95 bl 8008d80 <HAL_ETH_GetDMAError>
  37006. 8010056: 4603 mov r3, r0
  37007. 8010058: f003 0380 and.w r3, r3, #128 @ 0x80
  37008. 801005c: 2b80 cmp r3, #128 @ 0x80
  37009. 801005e: d104 bne.n 801006a <HAL_ETH_ErrorCallback+0x22>
  37010. {
  37011. osSemaphoreRelease(RxPktSemaphore);
  37012. 8010060: 4b04 ldr r3, [pc, #16] @ (8010074 <HAL_ETH_ErrorCallback+0x2c>)
  37013. 8010062: 681b ldr r3, [r3, #0]
  37014. 8010064: 4618 mov r0, r3
  37015. 8010066: f001 f9c9 bl 80113fc <osSemaphoreRelease>
  37016. }
  37017. }
  37018. 801006a: bf00 nop
  37019. 801006c: 3708 adds r7, #8
  37020. 801006e: 46bd mov sp, r7
  37021. 8010070: bd80 pop {r7, pc}
  37022. 8010072: bf00 nop
  37023. 8010074: 240022b4 .word 0x240022b4
  37024. 08010078 <low_level_init>:
  37025. *
  37026. * @param netif the already initialized lwip network interface structure
  37027. * for this ethernetif
  37028. */
  37029. static void low_level_init(struct netif *netif)
  37030. {
  37031. 8010078: b580 push {r7, lr}
  37032. 801007a: b0aa sub sp, #168 @ 0xa8
  37033. 801007c: af00 add r7, sp, #0
  37034. 801007e: 6078 str r0, [r7, #4]
  37035. HAL_StatusTypeDef hal_eth_init_status = HAL_OK;
  37036. 8010080: 2300 movs r3, #0
  37037. 8010082: f887 309f strb.w r3, [r7, #159] @ 0x9f
  37038. /* USER CODE BEGIN OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  37039. osThreadAttr_t attributes;
  37040. /* USER CODE END OS_THREAD_ATTR_CMSIS_RTOS_V2 */
  37041. uint32_t duplex, speed = 0;
  37042. 8010086: 2300 movs r3, #0
  37043. 8010088: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37044. int32_t PHYLinkState = 0;
  37045. 801008c: 2300 movs r3, #0
  37046. 801008e: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  37047. ETH_MACConfigTypeDef MACConf = {0};
  37048. 8010092: f107 0310 add.w r3, r7, #16
  37049. 8010096: 2264 movs r2, #100 @ 0x64
  37050. 8010098: 2100 movs r1, #0
  37051. 801009a: 4618 mov r0, r3
  37052. 801009c: f01a fa20 bl 802a4e0 <memset>
  37053. /* Start ETH HAL Init */
  37054. uint8_t MACAddr[6] ;
  37055. heth.Instance = ETH;
  37056. 80100a0: 4b86 ldr r3, [pc, #536] @ (80102bc <low_level_init+0x244>)
  37057. 80100a2: 4a87 ldr r2, [pc, #540] @ (80102c0 <low_level_init+0x248>)
  37058. 80100a4: 601a str r2, [r3, #0]
  37059. // MACAddr[1] = 0x80;
  37060. // MACAddr[2] = 0xE1;
  37061. // MACAddr[3] = 0x00;
  37062. // MACAddr[4] = 0x00;
  37063. // MACAddr[5] = 0x00;
  37064. MACAddr[0] = 0x7C;
  37065. 80100a6: 237c movs r3, #124 @ 0x7c
  37066. 80100a8: 723b strb r3, [r7, #8]
  37067. MACAddr[1] = 0xF6;
  37068. 80100aa: 23f6 movs r3, #246 @ 0xf6
  37069. 80100ac: 727b strb r3, [r7, #9]
  37070. MACAddr[2] = 0x66;
  37071. 80100ae: 2366 movs r3, #102 @ 0x66
  37072. 80100b0: 72bb strb r3, [r7, #10]
  37073. MACAddr[3] = 0xE4;
  37074. 80100b2: 23e4 movs r3, #228 @ 0xe4
  37075. 80100b4: 72fb strb r3, [r7, #11]
  37076. MACAddr[4] = 0xB5;
  37077. 80100b6: 23b5 movs r3, #181 @ 0xb5
  37078. 80100b8: 733b strb r3, [r7, #12]
  37079. MACAddr[5] = 0x41;
  37080. 80100ba: 2341 movs r3, #65 @ 0x41
  37081. 80100bc: 737b strb r3, [r7, #13]
  37082. heth.Init.MACAddr = &MACAddr[0];
  37083. 80100be: 4a7f ldr r2, [pc, #508] @ (80102bc <low_level_init+0x244>)
  37084. 80100c0: f107 0308 add.w r3, r7, #8
  37085. 80100c4: 6053 str r3, [r2, #4]
  37086. heth.Init.MediaInterface = HAL_ETH_MII_MODE;
  37087. 80100c6: 4b7d ldr r3, [pc, #500] @ (80102bc <low_level_init+0x244>)
  37088. 80100c8: 2200 movs r2, #0
  37089. 80100ca: 721a strb r2, [r3, #8]
  37090. heth.Init.TxDesc = DMATxDscrTab;
  37091. 80100cc: 4b7b ldr r3, [pc, #492] @ (80102bc <low_level_init+0x244>)
  37092. 80100ce: 4a7d ldr r2, [pc, #500] @ (80102c4 <low_level_init+0x24c>)
  37093. 80100d0: 60da str r2, [r3, #12]
  37094. heth.Init.RxDesc = DMARxDscrTab;
  37095. 80100d2: 4b7a ldr r3, [pc, #488] @ (80102bc <low_level_init+0x244>)
  37096. 80100d4: 4a7c ldr r2, [pc, #496] @ (80102c8 <low_level_init+0x250>)
  37097. 80100d6: 611a str r2, [r3, #16]
  37098. heth.Init.RxBuffLen = 1536;
  37099. 80100d8: 4b78 ldr r3, [pc, #480] @ (80102bc <low_level_init+0x244>)
  37100. 80100da: f44f 62c0 mov.w r2, #1536 @ 0x600
  37101. 80100de: 615a str r2, [r3, #20]
  37102. /* USER CODE BEGIN MACADDRESS */
  37103. /* USER CODE END MACADDRESS */
  37104. hal_eth_init_status = HAL_ETH_Init(&heth);
  37105. 80100e0: 4876 ldr r0, [pc, #472] @ (80102bc <low_level_init+0x244>)
  37106. 80100e2: f7f7 fe81 bl 8007de8 <HAL_ETH_Init>
  37107. 80100e6: 4603 mov r3, r0
  37108. 80100e8: f887 309f strb.w r3, [r7, #159] @ 0x9f
  37109. memset(&TxConfig, 0 , sizeof(ETH_TxPacketConfig));
  37110. 80100ec: 2238 movs r2, #56 @ 0x38
  37111. 80100ee: 2100 movs r1, #0
  37112. 80100f0: 4876 ldr r0, [pc, #472] @ (80102cc <low_level_init+0x254>)
  37113. 80100f2: f01a f9f5 bl 802a4e0 <memset>
  37114. TxConfig.Attributes = ETH_TX_PACKETS_FEATURES_CSUM | ETH_TX_PACKETS_FEATURES_CRCPAD;
  37115. 80100f6: 4b75 ldr r3, [pc, #468] @ (80102cc <low_level_init+0x254>)
  37116. 80100f8: 2221 movs r2, #33 @ 0x21
  37117. 80100fa: 601a str r2, [r3, #0]
  37118. TxConfig.ChecksumCtrl = ETH_CHECKSUM_IPHDR_PAYLOAD_INSERT_PHDR_CALC;
  37119. 80100fc: 4b73 ldr r3, [pc, #460] @ (80102cc <low_level_init+0x254>)
  37120. 80100fe: f44f 3240 mov.w r2, #196608 @ 0x30000
  37121. 8010102: 615a str r2, [r3, #20]
  37122. TxConfig.CRCPadCtrl = ETH_CRC_PAD_INSERT;
  37123. 8010104: 4b71 ldr r3, [pc, #452] @ (80102cc <low_level_init+0x254>)
  37124. 8010106: 2200 movs r2, #0
  37125. 8010108: 611a str r2, [r3, #16]
  37126. /* End ETH HAL Init */
  37127. /* Initialize the RX POOL */
  37128. LWIP_MEMPOOL_INIT(RX_POOL);
  37129. 801010a: 4871 ldr r0, [pc, #452] @ (80102d0 <low_level_init+0x258>)
  37130. 801010c: f009 fddc bl 8019cc8 <memp_init_pool>
  37131. #if LWIP_ARP || LWIP_ETHERNET
  37132. /* set MAC hardware address length */
  37133. netif->hwaddr_len = ETH_HWADDR_LEN;
  37134. 8010110: 687b ldr r3, [r7, #4]
  37135. 8010112: 2206 movs r2, #6
  37136. 8010114: f883 2030 strb.w r2, [r3, #48] @ 0x30
  37137. /* set MAC hardware address */
  37138. netif->hwaddr[0] = heth.Init.MACAddr[0];
  37139. 8010118: 4b68 ldr r3, [pc, #416] @ (80102bc <low_level_init+0x244>)
  37140. 801011a: 685b ldr r3, [r3, #4]
  37141. 801011c: 781a ldrb r2, [r3, #0]
  37142. 801011e: 687b ldr r3, [r7, #4]
  37143. 8010120: f883 202a strb.w r2, [r3, #42] @ 0x2a
  37144. netif->hwaddr[1] = heth.Init.MACAddr[1];
  37145. 8010124: 4b65 ldr r3, [pc, #404] @ (80102bc <low_level_init+0x244>)
  37146. 8010126: 685b ldr r3, [r3, #4]
  37147. 8010128: 785a ldrb r2, [r3, #1]
  37148. 801012a: 687b ldr r3, [r7, #4]
  37149. 801012c: f883 202b strb.w r2, [r3, #43] @ 0x2b
  37150. netif->hwaddr[2] = heth.Init.MACAddr[2];
  37151. 8010130: 4b62 ldr r3, [pc, #392] @ (80102bc <low_level_init+0x244>)
  37152. 8010132: 685b ldr r3, [r3, #4]
  37153. 8010134: 789a ldrb r2, [r3, #2]
  37154. 8010136: 687b ldr r3, [r7, #4]
  37155. 8010138: f883 202c strb.w r2, [r3, #44] @ 0x2c
  37156. netif->hwaddr[3] = heth.Init.MACAddr[3];
  37157. 801013c: 4b5f ldr r3, [pc, #380] @ (80102bc <low_level_init+0x244>)
  37158. 801013e: 685b ldr r3, [r3, #4]
  37159. 8010140: 78da ldrb r2, [r3, #3]
  37160. 8010142: 687b ldr r3, [r7, #4]
  37161. 8010144: f883 202d strb.w r2, [r3, #45] @ 0x2d
  37162. netif->hwaddr[4] = heth.Init.MACAddr[4];
  37163. 8010148: 4b5c ldr r3, [pc, #368] @ (80102bc <low_level_init+0x244>)
  37164. 801014a: 685b ldr r3, [r3, #4]
  37165. 801014c: 791a ldrb r2, [r3, #4]
  37166. 801014e: 687b ldr r3, [r7, #4]
  37167. 8010150: f883 202e strb.w r2, [r3, #46] @ 0x2e
  37168. netif->hwaddr[5] = heth.Init.MACAddr[5];
  37169. 8010154: 4b59 ldr r3, [pc, #356] @ (80102bc <low_level_init+0x244>)
  37170. 8010156: 685b ldr r3, [r3, #4]
  37171. 8010158: 795a ldrb r2, [r3, #5]
  37172. 801015a: 687b ldr r3, [r7, #4]
  37173. 801015c: f883 202f strb.w r2, [r3, #47] @ 0x2f
  37174. /* maximum transfer unit */
  37175. netif->mtu = ETH_MAX_PAYLOAD;
  37176. 8010160: 687b ldr r3, [r7, #4]
  37177. 8010162: f240 52dc movw r2, #1500 @ 0x5dc
  37178. 8010166: 851a strh r2, [r3, #40] @ 0x28
  37179. /* Accept broadcast address and ARP traffic */
  37180. /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */
  37181. #if LWIP_ARP
  37182. netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
  37183. 8010168: 687b ldr r3, [r7, #4]
  37184. 801016a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  37185. 801016e: f043 030a orr.w r3, r3, #10
  37186. 8010172: b2da uxtb r2, r3
  37187. 8010174: 687b ldr r3, [r7, #4]
  37188. 8010176: f883 2031 strb.w r2, [r3, #49] @ 0x31
  37189. #else
  37190. netif->flags |= NETIF_FLAG_BROADCAST;
  37191. #endif /* LWIP_ARP */
  37192. /* create a binary semaphore used for informing ethernetif of frame reception */
  37193. RxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  37194. 801017a: 2200 movs r2, #0
  37195. 801017c: 2101 movs r1, #1
  37196. 801017e: 2001 movs r0, #1
  37197. 8010180: f001 f860 bl 8011244 <osSemaphoreNew>
  37198. 8010184: 4603 mov r3, r0
  37199. 8010186: 4a53 ldr r2, [pc, #332] @ (80102d4 <low_level_init+0x25c>)
  37200. 8010188: 6013 str r3, [r2, #0]
  37201. /* create a binary semaphore used for informing ethernetif of frame transmission */
  37202. TxPktSemaphore = osSemaphoreNew(1, 1, NULL);
  37203. 801018a: 2200 movs r2, #0
  37204. 801018c: 2101 movs r1, #1
  37205. 801018e: 2001 movs r0, #1
  37206. 8010190: f001 f858 bl 8011244 <osSemaphoreNew>
  37207. 8010194: 4603 mov r3, r0
  37208. 8010196: 4a50 ldr r2, [pc, #320] @ (80102d8 <low_level_init+0x260>)
  37209. 8010198: 6013 str r3, [r2, #0]
  37210. /* create the task that handles the ETH_MAC */
  37211. /* USER CODE BEGIN OS_THREAD_NEW_CMSIS_RTOS_V2 */
  37212. memset(&attributes, 0x0, sizeof(osThreadAttr_t));
  37213. 801019a: f107 0374 add.w r3, r7, #116 @ 0x74
  37214. 801019e: 2224 movs r2, #36 @ 0x24
  37215. 80101a0: 2100 movs r1, #0
  37216. 80101a2: 4618 mov r0, r3
  37217. 80101a4: f01a f99c bl 802a4e0 <memset>
  37218. attributes.name = "EthIf";
  37219. 80101a8: 4b4c ldr r3, [pc, #304] @ (80102dc <low_level_init+0x264>)
  37220. 80101aa: 677b str r3, [r7, #116] @ 0x74
  37221. attributes.stack_size = INTERFACE_THREAD_STACK_SIZE;
  37222. 80101ac: f44f 6380 mov.w r3, #1024 @ 0x400
  37223. 80101b0: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  37224. attributes.priority = osPriorityRealtime;
  37225. 80101b4: 2330 movs r3, #48 @ 0x30
  37226. 80101b6: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  37227. osThreadNew(ethernetif_input, netif, &attributes);
  37228. 80101ba: f107 0374 add.w r3, r7, #116 @ 0x74
  37229. 80101be: 461a mov r2, r3
  37230. 80101c0: 6879 ldr r1, [r7, #4]
  37231. 80101c2: 4847 ldr r0, [pc, #284] @ (80102e0 <low_level_init+0x268>)
  37232. 80101c4: f000 fde5 bl 8010d92 <osThreadNew>
  37233. /* USER CODE BEGIN PHY_PRE_CONFIG */
  37234. /* USER CODE END PHY_PRE_CONFIG */
  37235. /* Set PHY IO functions */
  37236. DP83848_RegisterBusIO(&DP83848, &DP83848_IOCtx);
  37237. 80101c8: 4946 ldr r1, [pc, #280] @ (80102e4 <low_level_init+0x26c>)
  37238. 80101ca: 4847 ldr r0, [pc, #284] @ (80102e8 <low_level_init+0x270>)
  37239. 80101cc: f7f4 fee1 bl 8004f92 <DP83848_RegisterBusIO>
  37240. /* Initialize the DP83848 ETH PHY */
  37241. DP83848_Init(&DP83848);
  37242. 80101d0: 4845 ldr r0, [pc, #276] @ (80102e8 <low_level_init+0x270>)
  37243. 80101d2: f7f4 ff10 bl 8004ff6 <DP83848_Init>
  37244. if (hal_eth_init_status == HAL_OK)
  37245. 80101d6: f897 309f ldrb.w r3, [r7, #159] @ 0x9f
  37246. 80101da: 2b00 cmp r3, #0
  37247. 80101dc: d168 bne.n 80102b0 <low_level_init+0x238>
  37248. {
  37249. PHYLinkState = DP83848_GetLinkState(&DP83848);
  37250. 80101de: 4842 ldr r0, [pc, #264] @ (80102e8 <low_level_init+0x270>)
  37251. 80101e0: f7f4 ff56 bl 8005090 <DP83848_GetLinkState>
  37252. 80101e4: f8c7 0098 str.w r0, [r7, #152] @ 0x98
  37253. /* Get link state */
  37254. if(PHYLinkState <= DP83848_STATUS_LINK_DOWN)
  37255. 80101e8: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  37256. 80101ec: 2b01 cmp r3, #1
  37257. 80101ee: dc06 bgt.n 80101fe <low_level_init+0x186>
  37258. {
  37259. netif_set_link_down(netif);
  37260. 80101f0: 6878 ldr r0, [r7, #4]
  37261. 80101f2: f00a f959 bl 801a4a8 <netif_set_link_down>
  37262. netif_set_down(netif);
  37263. 80101f6: 6878 ldr r0, [r7, #4]
  37264. 80101f8: f00a f8e8 bl 801a3cc <netif_set_down>
  37265. #endif /* LWIP_ARP || LWIP_ETHERNET */
  37266. /* USER CODE BEGIN LOW_LEVEL_INIT */
  37267. /* USER CODE END LOW_LEVEL_INIT */
  37268. }
  37269. 80101fc: e05a b.n 80102b4 <low_level_init+0x23c>
  37270. switch (PHYLinkState)
  37271. 80101fe: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  37272. 8010202: 3b02 subs r3, #2
  37273. 8010204: 2b03 cmp r3, #3
  37274. 8010206: d82b bhi.n 8010260 <low_level_init+0x1e8>
  37275. 8010208: a201 add r2, pc, #4 @ (adr r2, 8010210 <low_level_init+0x198>)
  37276. 801020a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  37277. 801020e: bf00 nop
  37278. 8010210: 08010221 .word 0x08010221
  37279. 8010214: 08010233 .word 0x08010233
  37280. 8010218: 08010243 .word 0x08010243
  37281. 801021c: 08010253 .word 0x08010253
  37282. duplex = ETH_FULLDUPLEX_MODE;
  37283. 8010220: f44f 5300 mov.w r3, #8192 @ 0x2000
  37284. 8010224: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37285. speed = ETH_SPEED_100M;
  37286. 8010228: f44f 4380 mov.w r3, #16384 @ 0x4000
  37287. 801022c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37288. break;
  37289. 8010230: e01f b.n 8010272 <low_level_init+0x1fa>
  37290. duplex = ETH_HALFDUPLEX_MODE;
  37291. 8010232: 2300 movs r3, #0
  37292. 8010234: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37293. speed = ETH_SPEED_100M;
  37294. 8010238: f44f 4380 mov.w r3, #16384 @ 0x4000
  37295. 801023c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37296. break;
  37297. 8010240: e017 b.n 8010272 <low_level_init+0x1fa>
  37298. duplex = ETH_FULLDUPLEX_MODE;
  37299. 8010242: f44f 5300 mov.w r3, #8192 @ 0x2000
  37300. 8010246: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37301. speed = ETH_SPEED_10M;
  37302. 801024a: 2300 movs r3, #0
  37303. 801024c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37304. break;
  37305. 8010250: e00f b.n 8010272 <low_level_init+0x1fa>
  37306. duplex = ETH_HALFDUPLEX_MODE;
  37307. 8010252: 2300 movs r3, #0
  37308. 8010254: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37309. speed = ETH_SPEED_10M;
  37310. 8010258: 2300 movs r3, #0
  37311. 801025a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37312. break;
  37313. 801025e: e008 b.n 8010272 <low_level_init+0x1fa>
  37314. duplex = ETH_FULLDUPLEX_MODE;
  37315. 8010260: f44f 5300 mov.w r3, #8192 @ 0x2000
  37316. 8010264: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  37317. speed = ETH_SPEED_100M;
  37318. 8010268: f44f 4380 mov.w r3, #16384 @ 0x4000
  37319. 801026c: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  37320. break;
  37321. 8010270: bf00 nop
  37322. HAL_ETH_GetMACConfig(&heth, &MACConf);
  37323. 8010272: f107 0310 add.w r3, r7, #16
  37324. 8010276: 4619 mov r1, r3
  37325. 8010278: 4810 ldr r0, [pc, #64] @ (80102bc <low_level_init+0x244>)
  37326. 801027a: f7f8 fb43 bl 8008904 <HAL_ETH_GetMACConfig>
  37327. MACConf.DuplexMode = duplex;
  37328. 801027e: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  37329. 8010282: 62bb str r3, [r7, #40] @ 0x28
  37330. MACConf.Speed = speed;
  37331. 8010284: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  37332. 8010288: 627b str r3, [r7, #36] @ 0x24
  37333. HAL_ETH_SetMACConfig(&heth, &MACConf);
  37334. 801028a: f107 0310 add.w r3, r7, #16
  37335. 801028e: 4619 mov r1, r3
  37336. 8010290: 480a ldr r0, [pc, #40] @ (80102bc <low_level_init+0x244>)
  37337. 8010292: f7f8 fd0b bl 8008cac <HAL_ETH_SetMACConfig>
  37338. HAL_ETH_Start_IT(&heth);
  37339. 8010296: 4809 ldr r0, [pc, #36] @ (80102bc <low_level_init+0x244>)
  37340. 8010298: f7f7 fea4 bl 8007fe4 <HAL_ETH_Start_IT>
  37341. netif_set_up(netif);
  37342. 801029c: 6878 ldr r0, [r7, #4]
  37343. 801029e: f00a f827 bl 801a2f0 <netif_set_up>
  37344. netif_set_link_up(netif);
  37345. 80102a2: 6878 ldr r0, [r7, #4]
  37346. 80102a4: f00a f8c6 bl 801a434 <netif_set_link_up>
  37347. ethernetif_notify_conn_changed(netif);
  37348. 80102a8: 6878 ldr r0, [r7, #4]
  37349. 80102aa: f000 fb1b bl 80108e4 <ethernetif_notify_conn_changed>
  37350. }
  37351. 80102ae: e001 b.n 80102b4 <low_level_init+0x23c>
  37352. Error_Handler();
  37353. 80102b0: f7f2 f9ca bl 8002648 <Error_Handler>
  37354. }
  37355. 80102b4: bf00 nop
  37356. 80102b6: 37a8 adds r7, #168 @ 0xa8
  37357. 80102b8: 46bd mov sp, r7
  37358. 80102ba: bd80 pop {r7, pc}
  37359. 80102bc: 240022bc .word 0x240022bc
  37360. 80102c0: 40028000 .word 0x40028000
  37361. 80102c4: 24040100 .word 0x24040100
  37362. 80102c8: 24040000 .word 0x24040000
  37363. 80102cc: 2400236c .word 0x2400236c
  37364. 80102d0: 08031348 .word 0x08031348
  37365. 80102d4: 240022b4 .word 0x240022b4
  37366. 80102d8: 240022b8 .word 0x240022b8
  37367. 80102dc: 0802d28c .word 0x0802d28c
  37368. 80102e0: 08010455 .word 0x08010455
  37369. 80102e4: 24000034 .word 0x24000034
  37370. 80102e8: 240023a4 .word 0x240023a4
  37371. 080102ec <low_level_output>:
  37372. * to become available since the stack doesn't retry to send a packet
  37373. * dropped because of memory failure (except for the TCP timers).
  37374. */
  37375. static err_t low_level_output(struct netif *netif, struct pbuf *p)
  37376. {
  37377. 80102ec: b580 push {r7, lr}
  37378. 80102ee: b092 sub sp, #72 @ 0x48
  37379. 80102f0: af00 add r7, sp, #0
  37380. 80102f2: 6078 str r0, [r7, #4]
  37381. 80102f4: 6039 str r1, [r7, #0]
  37382. uint32_t i = 0U;
  37383. 80102f6: 2300 movs r3, #0
  37384. 80102f8: 647b str r3, [r7, #68] @ 0x44
  37385. struct pbuf *q = NULL;
  37386. 80102fa: 2300 movs r3, #0
  37387. 80102fc: 643b str r3, [r7, #64] @ 0x40
  37388. err_t errval = ERR_OK;
  37389. 80102fe: 2300 movs r3, #0
  37390. 8010300: f887 303f strb.w r3, [r7, #63] @ 0x3f
  37391. ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0};
  37392. 8010304: f107 030c add.w r3, r7, #12
  37393. 8010308: 2230 movs r2, #48 @ 0x30
  37394. 801030a: 2100 movs r1, #0
  37395. 801030c: 4618 mov r0, r3
  37396. 801030e: f01a f8e7 bl 802a4e0 <memset>
  37397. memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef));
  37398. 8010312: f107 030c add.w r3, r7, #12
  37399. 8010316: 2230 movs r2, #48 @ 0x30
  37400. 8010318: 2100 movs r1, #0
  37401. 801031a: 4618 mov r0, r3
  37402. 801031c: f01a f8e0 bl 802a4e0 <memset>
  37403. for(q = p; q != NULL; q = q->next)
  37404. 8010320: 683b ldr r3, [r7, #0]
  37405. 8010322: 643b str r3, [r7, #64] @ 0x40
  37406. 8010324: e045 b.n 80103b2 <low_level_output+0xc6>
  37407. {
  37408. if(i >= ETH_TX_DESC_CNT)
  37409. 8010326: 6c7b ldr r3, [r7, #68] @ 0x44
  37410. 8010328: 2b03 cmp r3, #3
  37411. 801032a: d902 bls.n 8010332 <low_level_output+0x46>
  37412. return ERR_IF;
  37413. 801032c: f06f 030b mvn.w r3, #11
  37414. 8010330: e06c b.n 801040c <low_level_output+0x120>
  37415. Txbuffer[i].buffer = q->payload;
  37416. 8010332: 6c3b ldr r3, [r7, #64] @ 0x40
  37417. 8010334: 6859 ldr r1, [r3, #4]
  37418. 8010336: 6c7a ldr r2, [r7, #68] @ 0x44
  37419. 8010338: 4613 mov r3, r2
  37420. 801033a: 005b lsls r3, r3, #1
  37421. 801033c: 4413 add r3, r2
  37422. 801033e: 009b lsls r3, r3, #2
  37423. 8010340: 3348 adds r3, #72 @ 0x48
  37424. 8010342: 443b add r3, r7
  37425. 8010344: 3b3c subs r3, #60 @ 0x3c
  37426. 8010346: 6019 str r1, [r3, #0]
  37427. Txbuffer[i].len = q->len;
  37428. 8010348: 6c3b ldr r3, [r7, #64] @ 0x40
  37429. 801034a: 895b ldrh r3, [r3, #10]
  37430. 801034c: 4619 mov r1, r3
  37431. 801034e: 6c7a ldr r2, [r7, #68] @ 0x44
  37432. 8010350: 4613 mov r3, r2
  37433. 8010352: 005b lsls r3, r3, #1
  37434. 8010354: 4413 add r3, r2
  37435. 8010356: 009b lsls r3, r3, #2
  37436. 8010358: 3348 adds r3, #72 @ 0x48
  37437. 801035a: 443b add r3, r7
  37438. 801035c: 3b38 subs r3, #56 @ 0x38
  37439. 801035e: 6019 str r1, [r3, #0]
  37440. if(i>0)
  37441. 8010360: 6c7b ldr r3, [r7, #68] @ 0x44
  37442. 8010362: 2b00 cmp r3, #0
  37443. 8010364: d011 beq.n 801038a <low_level_output+0x9e>
  37444. {
  37445. Txbuffer[i-1].next = &Txbuffer[i];
  37446. 8010366: 6c7b ldr r3, [r7, #68] @ 0x44
  37447. 8010368: 1e5a subs r2, r3, #1
  37448. 801036a: f107 000c add.w r0, r7, #12
  37449. 801036e: 6c79 ldr r1, [r7, #68] @ 0x44
  37450. 8010370: 460b mov r3, r1
  37451. 8010372: 005b lsls r3, r3, #1
  37452. 8010374: 440b add r3, r1
  37453. 8010376: 009b lsls r3, r3, #2
  37454. 8010378: 18c1 adds r1, r0, r3
  37455. 801037a: 4613 mov r3, r2
  37456. 801037c: 005b lsls r3, r3, #1
  37457. 801037e: 4413 add r3, r2
  37458. 8010380: 009b lsls r3, r3, #2
  37459. 8010382: 3348 adds r3, #72 @ 0x48
  37460. 8010384: 443b add r3, r7
  37461. 8010386: 3b34 subs r3, #52 @ 0x34
  37462. 8010388: 6019 str r1, [r3, #0]
  37463. }
  37464. if(q->next == NULL)
  37465. 801038a: 6c3b ldr r3, [r7, #64] @ 0x40
  37466. 801038c: 681b ldr r3, [r3, #0]
  37467. 801038e: 2b00 cmp r3, #0
  37468. 8010390: d109 bne.n 80103a6 <low_level_output+0xba>
  37469. {
  37470. Txbuffer[i].next = NULL;
  37471. 8010392: 6c7a ldr r2, [r7, #68] @ 0x44
  37472. 8010394: 4613 mov r3, r2
  37473. 8010396: 005b lsls r3, r3, #1
  37474. 8010398: 4413 add r3, r2
  37475. 801039a: 009b lsls r3, r3, #2
  37476. 801039c: 3348 adds r3, #72 @ 0x48
  37477. 801039e: 443b add r3, r7
  37478. 80103a0: 3b34 subs r3, #52 @ 0x34
  37479. 80103a2: 2200 movs r2, #0
  37480. 80103a4: 601a str r2, [r3, #0]
  37481. }
  37482. i++;
  37483. 80103a6: 6c7b ldr r3, [r7, #68] @ 0x44
  37484. 80103a8: 3301 adds r3, #1
  37485. 80103aa: 647b str r3, [r7, #68] @ 0x44
  37486. for(q = p; q != NULL; q = q->next)
  37487. 80103ac: 6c3b ldr r3, [r7, #64] @ 0x40
  37488. 80103ae: 681b ldr r3, [r3, #0]
  37489. 80103b0: 643b str r3, [r7, #64] @ 0x40
  37490. 80103b2: 6c3b ldr r3, [r7, #64] @ 0x40
  37491. 80103b4: 2b00 cmp r3, #0
  37492. 80103b6: d1b6 bne.n 8010326 <low_level_output+0x3a>
  37493. }
  37494. TxConfig.Length = p->tot_len;
  37495. 80103b8: 683b ldr r3, [r7, #0]
  37496. 80103ba: 891b ldrh r3, [r3, #8]
  37497. 80103bc: 461a mov r2, r3
  37498. 80103be: 4b15 ldr r3, [pc, #84] @ (8010414 <low_level_output+0x128>)
  37499. 80103c0: 605a str r2, [r3, #4]
  37500. TxConfig.TxBuffer = Txbuffer;
  37501. 80103c2: 4a14 ldr r2, [pc, #80] @ (8010414 <low_level_output+0x128>)
  37502. 80103c4: f107 030c add.w r3, r7, #12
  37503. 80103c8: 6093 str r3, [r2, #8]
  37504. TxConfig.pData = p;
  37505. 80103ca: 4a12 ldr r2, [pc, #72] @ (8010414 <low_level_output+0x128>)
  37506. 80103cc: 683b ldr r3, [r7, #0]
  37507. 80103ce: 6353 str r3, [r2, #52] @ 0x34
  37508. pbuf_ref(p);
  37509. 80103d0: 6838 ldr r0, [r7, #0]
  37510. 80103d2: f00a fd21 bl 801ae18 <pbuf_ref>
  37511. #if 1
  37512. if (HAL_ETH_Transmit_IT(&heth, &TxConfig) == HAL_OK) {
  37513. 80103d6: 490f ldr r1, [pc, #60] @ (8010414 <low_level_output+0x128>)
  37514. 80103d8: 480f ldr r0, [pc, #60] @ (8010418 <low_level_output+0x12c>)
  37515. 80103da: f7f7 feef bl 80081bc <HAL_ETH_Transmit_IT>
  37516. 80103de: 4603 mov r3, r0
  37517. 80103e0: 2b00 cmp r3, #0
  37518. 80103e2: d10e bne.n 8010402 <low_level_output+0x116>
  37519. while(osSemaphoreAcquire(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK)
  37520. 80103e4: bf00 nop
  37521. 80103e6: 4b0d ldr r3, [pc, #52] @ (801041c <low_level_output+0x130>)
  37522. 80103e8: 681b ldr r3, [r3, #0]
  37523. 80103ea: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  37524. 80103ee: 4618 mov r0, r3
  37525. 80103f0: f000 ffb2 bl 8011358 <osSemaphoreAcquire>
  37526. 80103f4: 4603 mov r3, r0
  37527. 80103f6: 2b00 cmp r3, #0
  37528. 80103f8: d1f5 bne.n 80103e6 <low_level_output+0xfa>
  37529. {
  37530. }
  37531. // osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(1000));
  37532. HAL_ETH_ReleaseTxPacket(&heth);
  37533. 80103fa: 4807 ldr r0, [pc, #28] @ (8010418 <low_level_output+0x12c>)
  37534. 80103fc: f7f8 f865 bl 80084ca <HAL_ETH_ReleaseTxPacket>
  37535. 8010400: e002 b.n 8010408 <low_level_output+0x11c>
  37536. } else {
  37537. pbuf_free(p);
  37538. 8010402: 6838 ldr r0, [r7, #0]
  37539. 8010404: f00a fc62 bl 801accc <pbuf_free>
  37540. HAL_ETH_Transmit_IT(&heth, &TxConfig);
  37541. osSemaphoreAcquire(TxPktSemaphore, pdMS_TO_TICKS(100));
  37542. HAL_ETH_ReleaseTxPacket(&heth);
  37543. #endif
  37544. return errval;
  37545. 8010408: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  37546. }
  37547. 801040c: 4618 mov r0, r3
  37548. 801040e: 3748 adds r7, #72 @ 0x48
  37549. 8010410: 46bd mov sp, r7
  37550. 8010412: bd80 pop {r7, pc}
  37551. 8010414: 2400236c .word 0x2400236c
  37552. 8010418: 240022bc .word 0x240022bc
  37553. 801041c: 240022b8 .word 0x240022b8
  37554. 08010420 <low_level_input>:
  37555. * @param netif the lwip network interface structure for this ethernetif
  37556. * @return a pbuf filled with the received packet (including MAC header)
  37557. * NULL on memory error
  37558. */
  37559. static struct pbuf * low_level_input(struct netif *netif)
  37560. {
  37561. 8010420: b580 push {r7, lr}
  37562. 8010422: b084 sub sp, #16
  37563. 8010424: af00 add r7, sp, #0
  37564. 8010426: 6078 str r0, [r7, #4]
  37565. struct pbuf *p = NULL;
  37566. 8010428: 2300 movs r3, #0
  37567. 801042a: 60fb str r3, [r7, #12]
  37568. if(RxAllocStatus == RX_ALLOC_OK)
  37569. 801042c: 4b07 ldr r3, [pc, #28] @ (801044c <low_level_input+0x2c>)
  37570. 801042e: 781b ldrb r3, [r3, #0]
  37571. 8010430: 2b00 cmp r3, #0
  37572. 8010432: d105 bne.n 8010440 <low_level_input+0x20>
  37573. {
  37574. HAL_ETH_ReadData(&heth, (void **)&p);
  37575. 8010434: f107 030c add.w r3, r7, #12
  37576. 8010438: 4619 mov r1, r3
  37577. 801043a: 4805 ldr r0, [pc, #20] @ (8010450 <low_level_input+0x30>)
  37578. 801043c: f7f7 ff0f bl 800825e <HAL_ETH_ReadData>
  37579. }
  37580. return p;
  37581. 8010440: 68fb ldr r3, [r7, #12]
  37582. }
  37583. 8010442: 4618 mov r0, r3
  37584. 8010444: 3710 adds r7, #16
  37585. 8010446: 46bd mov sp, r7
  37586. 8010448: bd80 pop {r7, pc}
  37587. 801044a: bf00 nop
  37588. 801044c: 240022b0 .word 0x240022b0
  37589. 8010450: 240022bc .word 0x240022bc
  37590. 08010454 <ethernetif_input>:
  37591. * the appropriate input function is called.
  37592. *
  37593. * @param netif the lwip network interface structure for this ethernetif
  37594. */
  37595. void ethernetif_input(void* argument)
  37596. {
  37597. 8010454: b580 push {r7, lr}
  37598. 8010456: b084 sub sp, #16
  37599. 8010458: af00 add r7, sp, #0
  37600. 801045a: 6078 str r0, [r7, #4]
  37601. struct pbuf *p = NULL;
  37602. 801045c: 2300 movs r3, #0
  37603. 801045e: 60fb str r3, [r7, #12]
  37604. struct netif *netif = (struct netif *) argument;
  37605. 8010460: 687b ldr r3, [r7, #4]
  37606. 8010462: 60bb str r3, [r7, #8]
  37607. for( ;; )
  37608. {
  37609. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  37610. 8010464: 4b0f ldr r3, [pc, #60] @ (80104a4 <ethernetif_input+0x50>)
  37611. 8010466: 681b ldr r3, [r3, #0]
  37612. 8010468: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  37613. 801046c: 4618 mov r0, r3
  37614. 801046e: f000 ff73 bl 8011358 <osSemaphoreAcquire>
  37615. 8010472: 4603 mov r3, r0
  37616. 8010474: 2b00 cmp r3, #0
  37617. 8010476: d1f5 bne.n 8010464 <ethernetif_input+0x10>
  37618. {
  37619. do
  37620. {
  37621. p = low_level_input( netif );
  37622. 8010478: 68b8 ldr r0, [r7, #8]
  37623. 801047a: f7ff ffd1 bl 8010420 <low_level_input>
  37624. 801047e: 60f8 str r0, [r7, #12]
  37625. if (p != NULL)
  37626. 8010480: 68fb ldr r3, [r7, #12]
  37627. 8010482: 2b00 cmp r3, #0
  37628. 8010484: d00a beq.n 801049c <ethernetif_input+0x48>
  37629. {
  37630. if (netif->input( p, netif) != ERR_OK )
  37631. 8010486: 68bb ldr r3, [r7, #8]
  37632. 8010488: 691b ldr r3, [r3, #16]
  37633. 801048a: 68b9 ldr r1, [r7, #8]
  37634. 801048c: 68f8 ldr r0, [r7, #12]
  37635. 801048e: 4798 blx r3
  37636. 8010490: 4603 mov r3, r0
  37637. 8010492: 2b00 cmp r3, #0
  37638. 8010494: d002 beq.n 801049c <ethernetif_input+0x48>
  37639. {
  37640. pbuf_free(p);
  37641. 8010496: 68f8 ldr r0, [r7, #12]
  37642. 8010498: f00a fc18 bl 801accc <pbuf_free>
  37643. }
  37644. }
  37645. } while(p!=NULL);
  37646. 801049c: 68fb ldr r3, [r7, #12]
  37647. 801049e: 2b00 cmp r3, #0
  37648. 80104a0: d1ea bne.n 8010478 <ethernetif_input+0x24>
  37649. if (osSemaphoreAcquire(RxPktSemaphore, TIME_WAITING_FOR_INPUT) == osOK)
  37650. 80104a2: e7df b.n 8010464 <ethernetif_input+0x10>
  37651. 80104a4: 240022b4 .word 0x240022b4
  37652. 080104a8 <ethernetif_init>:
  37653. * @return ERR_OK if the loopif is initialized
  37654. * ERR_MEM if private data couldn't be allocated
  37655. * any other err_t on error
  37656. */
  37657. err_t ethernetif_init(struct netif *netif)
  37658. {
  37659. 80104a8: b580 push {r7, lr}
  37660. 80104aa: b082 sub sp, #8
  37661. 80104ac: af00 add r7, sp, #0
  37662. 80104ae: 6078 str r0, [r7, #4]
  37663. LWIP_ASSERT("netif != NULL", (netif != NULL));
  37664. 80104b0: 687b ldr r3, [r7, #4]
  37665. 80104b2: 2b00 cmp r3, #0
  37666. 80104b4: d106 bne.n 80104c4 <ethernetif_init+0x1c>
  37667. 80104b6: 4b0e ldr r3, [pc, #56] @ (80104f0 <ethernetif_init+0x48>)
  37668. 80104b8: f240 2235 movw r2, #565 @ 0x235
  37669. 80104bc: 490d ldr r1, [pc, #52] @ (80104f4 <ethernetif_init+0x4c>)
  37670. 80104be: 480e ldr r0, [pc, #56] @ (80104f8 <ethernetif_init+0x50>)
  37671. 80104c0: f019 fe7c bl 802a1bc <iprintf>
  37672. * The last argument should be replaced with your link speed, in units
  37673. * of bits per second.
  37674. */
  37675. // MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS);
  37676. netif->name[0] = IFNAME0;
  37677. 80104c4: 687b ldr r3, [r7, #4]
  37678. 80104c6: 2273 movs r2, #115 @ 0x73
  37679. 80104c8: f883 2032 strb.w r2, [r3, #50] @ 0x32
  37680. netif->name[1] = IFNAME1;
  37681. 80104cc: 687b ldr r3, [r7, #4]
  37682. 80104ce: 2274 movs r2, #116 @ 0x74
  37683. 80104d0: f883 2033 strb.w r2, [r3, #51] @ 0x33
  37684. * is available...) */
  37685. #if LWIP_IPV4
  37686. #if LWIP_ARP || LWIP_ETHERNET
  37687. #if LWIP_ARP
  37688. netif->output = etharp_output;
  37689. 80104d4: 687b ldr r3, [r7, #4]
  37690. 80104d6: 4a09 ldr r2, [pc, #36] @ (80104fc <ethernetif_init+0x54>)
  37691. 80104d8: 615a str r2, [r3, #20]
  37692. #if LWIP_IPV6
  37693. netif->output_ip6 = ethip6_output;
  37694. #endif /* LWIP_IPV6 */
  37695. netif->linkoutput = low_level_output;
  37696. 80104da: 687b ldr r3, [r7, #4]
  37697. 80104dc: 4a08 ldr r2, [pc, #32] @ (8010500 <ethernetif_init+0x58>)
  37698. 80104de: 619a str r2, [r3, #24]
  37699. /* initialize the hardware */
  37700. low_level_init(netif);
  37701. 80104e0: 6878 ldr r0, [r7, #4]
  37702. 80104e2: f7ff fdc9 bl 8010078 <low_level_init>
  37703. return ERR_OK;
  37704. 80104e6: 2300 movs r3, #0
  37705. }
  37706. 80104e8: 4618 mov r0, r3
  37707. 80104ea: 3708 adds r7, #8
  37708. 80104ec: 46bd mov sp, r7
  37709. 80104ee: bd80 pop {r7, pc}
  37710. 80104f0: 0802d294 .word 0x0802d294
  37711. 80104f4: 0802d2b0 .word 0x0802d2b0
  37712. 80104f8: 0802d2c0 .word 0x0802d2c0
  37713. 80104fc: 0802482d .word 0x0802482d
  37714. 8010500: 080102ed .word 0x080102ed
  37715. 08010504 <pbuf_free_custom>:
  37716. * @brief Custom Rx pbuf free callback
  37717. * @param pbuf: pbuf to be freed
  37718. * @retval None
  37719. */
  37720. void pbuf_free_custom(struct pbuf *p)
  37721. {
  37722. 8010504: b580 push {r7, lr}
  37723. 8010506: b084 sub sp, #16
  37724. 8010508: af00 add r7, sp, #0
  37725. 801050a: 6078 str r0, [r7, #4]
  37726. struct pbuf_custom* custom_pbuf = (struct pbuf_custom*)p;
  37727. 801050c: 687b ldr r3, [r7, #4]
  37728. 801050e: 60fb str r3, [r7, #12]
  37729. LWIP_MEMPOOL_FREE(RX_POOL, custom_pbuf);
  37730. 8010510: 68f9 ldr r1, [r7, #12]
  37731. 8010512: 4809 ldr r0, [pc, #36] @ (8010538 <pbuf_free_custom+0x34>)
  37732. 8010514: f009 fcc8 bl 8019ea8 <memp_free_pool>
  37733. /* If the Rx Buffer Pool was exhausted, signal the ethernetif_input task to
  37734. * call HAL_ETH_GetRxDataBuffer to rebuild the Rx descriptors. */
  37735. if (RxAllocStatus == RX_ALLOC_ERROR)
  37736. 8010518: 4b08 ldr r3, [pc, #32] @ (801053c <pbuf_free_custom+0x38>)
  37737. 801051a: 781b ldrb r3, [r3, #0]
  37738. 801051c: 2b01 cmp r3, #1
  37739. 801051e: d107 bne.n 8010530 <pbuf_free_custom+0x2c>
  37740. {
  37741. RxAllocStatus = RX_ALLOC_OK;
  37742. 8010520: 4b06 ldr r3, [pc, #24] @ (801053c <pbuf_free_custom+0x38>)
  37743. 8010522: 2200 movs r2, #0
  37744. 8010524: 701a strb r2, [r3, #0]
  37745. osSemaphoreRelease(RxPktSemaphore);
  37746. 8010526: 4b06 ldr r3, [pc, #24] @ (8010540 <pbuf_free_custom+0x3c>)
  37747. 8010528: 681b ldr r3, [r3, #0]
  37748. 801052a: 4618 mov r0, r3
  37749. 801052c: f000 ff66 bl 80113fc <osSemaphoreRelease>
  37750. }
  37751. }
  37752. 8010530: bf00 nop
  37753. 8010532: 3710 adds r7, #16
  37754. 8010534: 46bd mov sp, r7
  37755. 8010536: bd80 pop {r7, pc}
  37756. 8010538: 08031348 .word 0x08031348
  37757. 801053c: 240022b0 .word 0x240022b0
  37758. 8010540: 240022b4 .word 0x240022b4
  37759. 08010544 <sys_now>:
  37760. * when LWIP_TIMERS == 1 and NO_SYS == 1
  37761. * @param None
  37762. * @retval Current Time value
  37763. */
  37764. u32_t sys_now(void)
  37765. {
  37766. 8010544: b580 push {r7, lr}
  37767. 8010546: af00 add r7, sp, #0
  37768. return HAL_GetTick();
  37769. 8010548: f7f4 fe7a bl 8005240 <HAL_GetTick>
  37770. 801054c: 4603 mov r3, r0
  37771. }
  37772. 801054e: 4618 mov r0, r3
  37773. 8010550: bd80 pop {r7, pc}
  37774. ...
  37775. 08010554 <HAL_ETH_MspInit>:
  37776. * @param ethHandle: ETH handle
  37777. * @retval None
  37778. */
  37779. void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle)
  37780. {
  37781. 8010554: b580 push {r7, lr}
  37782. 8010556: b08e sub sp, #56 @ 0x38
  37783. 8010558: af00 add r7, sp, #0
  37784. 801055a: 6078 str r0, [r7, #4]
  37785. GPIO_InitTypeDef GPIO_InitStruct = {0};
  37786. 801055c: f107 0324 add.w r3, r7, #36 @ 0x24
  37787. 8010560: 2200 movs r2, #0
  37788. 8010562: 601a str r2, [r3, #0]
  37789. 8010564: 605a str r2, [r3, #4]
  37790. 8010566: 609a str r2, [r3, #8]
  37791. 8010568: 60da str r2, [r3, #12]
  37792. 801056a: 611a str r2, [r3, #16]
  37793. if(ethHandle->Instance==ETH)
  37794. 801056c: 687b ldr r3, [r7, #4]
  37795. 801056e: 681b ldr r3, [r3, #0]
  37796. 8010570: 4a55 ldr r2, [pc, #340] @ (80106c8 <HAL_ETH_MspInit+0x174>)
  37797. 8010572: 4293 cmp r3, r2
  37798. 8010574: f040 80a4 bne.w 80106c0 <HAL_ETH_MspInit+0x16c>
  37799. {
  37800. /* USER CODE BEGIN ETH_MspInit 0 */
  37801. /* USER CODE END ETH_MspInit 0 */
  37802. /* Enable Peripheral clock */
  37803. __HAL_RCC_ETH1MAC_CLK_ENABLE();
  37804. 8010578: 4b54 ldr r3, [pc, #336] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37805. 801057a: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37806. 801057e: 4a53 ldr r2, [pc, #332] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37807. 8010580: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  37808. 8010584: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  37809. 8010588: 4b50 ldr r3, [pc, #320] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37810. 801058a: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37811. 801058e: f403 4300 and.w r3, r3, #32768 @ 0x8000
  37812. 8010592: 623b str r3, [r7, #32]
  37813. 8010594: 6a3b ldr r3, [r7, #32]
  37814. __HAL_RCC_ETH1TX_CLK_ENABLE();
  37815. 8010596: 4b4d ldr r3, [pc, #308] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37816. 8010598: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37817. 801059c: 4a4b ldr r2, [pc, #300] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37818. 801059e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  37819. 80105a2: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  37820. 80105a6: 4b49 ldr r3, [pc, #292] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37821. 80105a8: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37822. 80105ac: f403 3380 and.w r3, r3, #65536 @ 0x10000
  37823. 80105b0: 61fb str r3, [r7, #28]
  37824. 80105b2: 69fb ldr r3, [r7, #28]
  37825. __HAL_RCC_ETH1RX_CLK_ENABLE();
  37826. 80105b4: 4b45 ldr r3, [pc, #276] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37827. 80105b6: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37828. 80105ba: 4a44 ldr r2, [pc, #272] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37829. 80105bc: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  37830. 80105c0: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  37831. 80105c4: 4b41 ldr r3, [pc, #260] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37832. 80105c6: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  37833. 80105ca: f403 3300 and.w r3, r3, #131072 @ 0x20000
  37834. 80105ce: 61bb str r3, [r7, #24]
  37835. 80105d0: 69bb ldr r3, [r7, #24]
  37836. __HAL_RCC_GPIOC_CLK_ENABLE();
  37837. 80105d2: 4b3e ldr r3, [pc, #248] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37838. 80105d4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37839. 80105d8: 4a3c ldr r2, [pc, #240] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37840. 80105da: f043 0304 orr.w r3, r3, #4
  37841. 80105de: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  37842. 80105e2: 4b3a ldr r3, [pc, #232] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37843. 80105e4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37844. 80105e8: f003 0304 and.w r3, r3, #4
  37845. 80105ec: 617b str r3, [r7, #20]
  37846. 80105ee: 697b ldr r3, [r7, #20]
  37847. __HAL_RCC_GPIOA_CLK_ENABLE();
  37848. 80105f0: 4b36 ldr r3, [pc, #216] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37849. 80105f2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37850. 80105f6: 4a35 ldr r2, [pc, #212] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37851. 80105f8: f043 0301 orr.w r3, r3, #1
  37852. 80105fc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  37853. 8010600: 4b32 ldr r3, [pc, #200] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37854. 8010602: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37855. 8010606: f003 0301 and.w r3, r3, #1
  37856. 801060a: 613b str r3, [r7, #16]
  37857. 801060c: 693b ldr r3, [r7, #16]
  37858. __HAL_RCC_GPIOB_CLK_ENABLE();
  37859. 801060e: 4b2f ldr r3, [pc, #188] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37860. 8010610: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37861. 8010614: 4a2d ldr r2, [pc, #180] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37862. 8010616: f043 0302 orr.w r3, r3, #2
  37863. 801061a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  37864. 801061e: 4b2b ldr r3, [pc, #172] @ (80106cc <HAL_ETH_MspInit+0x178>)
  37865. 8010620: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  37866. 8010624: f003 0302 and.w r3, r3, #2
  37867. 8010628: 60fb str r3, [r7, #12]
  37868. 801062a: 68fb ldr r3, [r7, #12]
  37869. PB11 ------> ETH_TX_EN
  37870. PB12 ------> ETH_TXD0
  37871. PB13 ------> ETH_TXD1
  37872. PB8 ------> ETH_TXD3
  37873. */
  37874. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4
  37875. 801062c: 233e movs r3, #62 @ 0x3e
  37876. 801062e: 627b str r3, [r7, #36] @ 0x24
  37877. |GPIO_PIN_5;
  37878. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37879. 8010630: 2302 movs r3, #2
  37880. 8010632: 62bb str r3, [r7, #40] @ 0x28
  37881. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37882. 8010634: 2300 movs r3, #0
  37883. 8010636: 62fb str r3, [r7, #44] @ 0x2c
  37884. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37885. 8010638: 2303 movs r3, #3
  37886. 801063a: 633b str r3, [r7, #48] @ 0x30
  37887. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37888. 801063c: 230b movs r3, #11
  37889. 801063e: 637b str r3, [r7, #52] @ 0x34
  37890. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  37891. 8010640: f107 0324 add.w r3, r7, #36 @ 0x24
  37892. 8010644: 4619 mov r1, r3
  37893. 8010646: 4822 ldr r0, [pc, #136] @ (80106d0 <HAL_ETH_MspInit+0x17c>)
  37894. 8010648: f7f9 f92a bl 80098a0 <HAL_GPIO_Init>
  37895. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  37896. 801064c: 238f movs r3, #143 @ 0x8f
  37897. 801064e: 627b str r3, [r7, #36] @ 0x24
  37898. |GPIO_PIN_7;
  37899. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37900. 8010650: 2302 movs r3, #2
  37901. 8010652: 62bb str r3, [r7, #40] @ 0x28
  37902. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37903. 8010654: 2300 movs r3, #0
  37904. 8010656: 62fb str r3, [r7, #44] @ 0x2c
  37905. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37906. 8010658: 2303 movs r3, #3
  37907. 801065a: 633b str r3, [r7, #48] @ 0x30
  37908. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37909. 801065c: 230b movs r3, #11
  37910. 801065e: 637b str r3, [r7, #52] @ 0x34
  37911. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  37912. 8010660: f107 0324 add.w r3, r7, #36 @ 0x24
  37913. 8010664: 4619 mov r1, r3
  37914. 8010666: 481b ldr r0, [pc, #108] @ (80106d4 <HAL_ETH_MspInit+0x180>)
  37915. 8010668: f7f9 f91a bl 80098a0 <HAL_GPIO_Init>
  37916. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_11|GPIO_PIN_12
  37917. 801066c: f643 1303 movw r3, #14595 @ 0x3903
  37918. 8010670: 627b str r3, [r7, #36] @ 0x24
  37919. |GPIO_PIN_13|GPIO_PIN_8;
  37920. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37921. 8010672: 2302 movs r3, #2
  37922. 8010674: 62bb str r3, [r7, #40] @ 0x28
  37923. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37924. 8010676: 2300 movs r3, #0
  37925. 8010678: 62fb str r3, [r7, #44] @ 0x2c
  37926. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37927. 801067a: 2303 movs r3, #3
  37928. 801067c: 633b str r3, [r7, #48] @ 0x30
  37929. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37930. 801067e: 230b movs r3, #11
  37931. 8010680: 637b str r3, [r7, #52] @ 0x34
  37932. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  37933. 8010682: f107 0324 add.w r3, r7, #36 @ 0x24
  37934. 8010686: 4619 mov r1, r3
  37935. 8010688: 4813 ldr r0, [pc, #76] @ (80106d8 <HAL_ETH_MspInit+0x184>)
  37936. 801068a: f7f9 f909 bl 80098a0 <HAL_GPIO_Init>
  37937. GPIO_InitStruct.Pin = GPIO_PIN_10;
  37938. 801068e: f44f 6380 mov.w r3, #1024 @ 0x400
  37939. 8010692: 627b str r3, [r7, #36] @ 0x24
  37940. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  37941. 8010694: 2302 movs r3, #2
  37942. 8010696: 62bb str r3, [r7, #40] @ 0x28
  37943. GPIO_InitStruct.Pull = GPIO_NOPULL;
  37944. 8010698: 2300 movs r3, #0
  37945. 801069a: 62fb str r3, [r7, #44] @ 0x2c
  37946. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  37947. 801069c: 2303 movs r3, #3
  37948. 801069e: 633b str r3, [r7, #48] @ 0x30
  37949. GPIO_InitStruct.Alternate = GPIO_AF11_ETH;
  37950. 80106a0: 230b movs r3, #11
  37951. 80106a2: 637b str r3, [r7, #52] @ 0x34
  37952. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  37953. 80106a4: f107 0324 add.w r3, r7, #36 @ 0x24
  37954. 80106a8: 4619 mov r1, r3
  37955. 80106aa: 480b ldr r0, [pc, #44] @ (80106d8 <HAL_ETH_MspInit+0x184>)
  37956. 80106ac: f7f9 f8f8 bl 80098a0 <HAL_GPIO_Init>
  37957. /* Peripheral interrupt init */
  37958. HAL_NVIC_SetPriority(ETH_IRQn, 5, 0);
  37959. 80106b0: 2200 movs r2, #0
  37960. 80106b2: 2105 movs r1, #5
  37961. 80106b4: 203d movs r0, #61 @ 0x3d
  37962. 80106b6: f7f4 fecb bl 8005450 <HAL_NVIC_SetPriority>
  37963. HAL_NVIC_EnableIRQ(ETH_IRQn);
  37964. 80106ba: 203d movs r0, #61 @ 0x3d
  37965. 80106bc: f7f4 fee2 bl 8005484 <HAL_NVIC_EnableIRQ>
  37966. /* USER CODE BEGIN ETH_MspInit 1 */
  37967. /* USER CODE END ETH_MspInit 1 */
  37968. }
  37969. }
  37970. 80106c0: bf00 nop
  37971. 80106c2: 3738 adds r7, #56 @ 0x38
  37972. 80106c4: 46bd mov sp, r7
  37973. 80106c6: bd80 pop {r7, pc}
  37974. 80106c8: 40028000 .word 0x40028000
  37975. 80106cc: 58024400 .word 0x58024400
  37976. 80106d0: 58020800 .word 0x58020800
  37977. 80106d4: 58020000 .word 0x58020000
  37978. 80106d8: 58020400 .word 0x58020400
  37979. 080106dc <ETH_PHY_IO_Init>:
  37980. * @brief Initializes the MDIO interface GPIO and clocks.
  37981. * @param None
  37982. * @retval 0 if OK, -1 if ERROR
  37983. */
  37984. int32_t ETH_PHY_IO_Init(void)
  37985. {
  37986. 80106dc: b580 push {r7, lr}
  37987. 80106de: af00 add r7, sp, #0
  37988. /* We assume that MDIO GPIO configuration is already done
  37989. in the ETH_MspInit() else it should be done here
  37990. */
  37991. /* Configure the MDIO Clock */
  37992. HAL_ETH_SetMDIOClockRange(&heth);
  37993. 80106e0: 4802 ldr r0, [pc, #8] @ (80106ec <ETH_PHY_IO_Init+0x10>)
  37994. 80106e2: f7f8 fafd bl 8008ce0 <HAL_ETH_SetMDIOClockRange>
  37995. return 0;
  37996. 80106e6: 2300 movs r3, #0
  37997. }
  37998. 80106e8: 4618 mov r0, r3
  37999. 80106ea: bd80 pop {r7, pc}
  38000. 80106ec: 240022bc .word 0x240022bc
  38001. 080106f0 <ETH_PHY_IO_DeInit>:
  38002. * @brief De-Initializes the MDIO interface .
  38003. * @param None
  38004. * @retval 0 if OK, -1 if ERROR
  38005. */
  38006. int32_t ETH_PHY_IO_DeInit (void)
  38007. {
  38008. 80106f0: b480 push {r7}
  38009. 80106f2: af00 add r7, sp, #0
  38010. return 0;
  38011. 80106f4: 2300 movs r3, #0
  38012. }
  38013. 80106f6: 4618 mov r0, r3
  38014. 80106f8: 46bd mov sp, r7
  38015. 80106fa: f85d 7b04 ldr.w r7, [sp], #4
  38016. 80106fe: 4770 bx lr
  38017. 08010700 <ETH_PHY_IO_ReadReg>:
  38018. * @param RegAddr: PHY register address
  38019. * @param pRegVal: pointer to hold the register value
  38020. * @retval 0 if OK -1 if Error
  38021. */
  38022. int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal)
  38023. {
  38024. 8010700: b580 push {r7, lr}
  38025. 8010702: b084 sub sp, #16
  38026. 8010704: af00 add r7, sp, #0
  38027. 8010706: 60f8 str r0, [r7, #12]
  38028. 8010708: 60b9 str r1, [r7, #8]
  38029. 801070a: 607a str r2, [r7, #4]
  38030. if(HAL_ETH_ReadPHYRegister(&heth, DevAddr, RegAddr, pRegVal) != HAL_OK)
  38031. 801070c: 687b ldr r3, [r7, #4]
  38032. 801070e: 68ba ldr r2, [r7, #8]
  38033. 8010710: 68f9 ldr r1, [r7, #12]
  38034. 8010712: 4807 ldr r0, [pc, #28] @ (8010730 <ETH_PHY_IO_ReadReg+0x30>)
  38035. 8010714: f7f8 f84e bl 80087b4 <HAL_ETH_ReadPHYRegister>
  38036. 8010718: 4603 mov r3, r0
  38037. 801071a: 2b00 cmp r3, #0
  38038. 801071c: d002 beq.n 8010724 <ETH_PHY_IO_ReadReg+0x24>
  38039. {
  38040. return -1;
  38041. 801071e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38042. 8010722: e000 b.n 8010726 <ETH_PHY_IO_ReadReg+0x26>
  38043. }
  38044. return 0;
  38045. 8010724: 2300 movs r3, #0
  38046. }
  38047. 8010726: 4618 mov r0, r3
  38048. 8010728: 3710 adds r7, #16
  38049. 801072a: 46bd mov sp, r7
  38050. 801072c: bd80 pop {r7, pc}
  38051. 801072e: bf00 nop
  38052. 8010730: 240022bc .word 0x240022bc
  38053. 08010734 <ETH_PHY_IO_WriteReg>:
  38054. * @param RegAddr: PHY register address
  38055. * @param RegVal: Value to be written
  38056. * @retval 0 if OK -1 if Error
  38057. */
  38058. int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal)
  38059. {
  38060. 8010734: b580 push {r7, lr}
  38061. 8010736: b084 sub sp, #16
  38062. 8010738: af00 add r7, sp, #0
  38063. 801073a: 60f8 str r0, [r7, #12]
  38064. 801073c: 60b9 str r1, [r7, #8]
  38065. 801073e: 607a str r2, [r7, #4]
  38066. if(HAL_ETH_WritePHYRegister(&heth, DevAddr, RegAddr, RegVal) != HAL_OK)
  38067. 8010740: 687b ldr r3, [r7, #4]
  38068. 8010742: 68ba ldr r2, [r7, #8]
  38069. 8010744: 68f9 ldr r1, [r7, #12]
  38070. 8010746: 4807 ldr r0, [pc, #28] @ (8010764 <ETH_PHY_IO_WriteReg+0x30>)
  38071. 8010748: f7f8 f888 bl 800885c <HAL_ETH_WritePHYRegister>
  38072. 801074c: 4603 mov r3, r0
  38073. 801074e: 2b00 cmp r3, #0
  38074. 8010750: d002 beq.n 8010758 <ETH_PHY_IO_WriteReg+0x24>
  38075. {
  38076. return -1;
  38077. 8010752: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38078. 8010756: e000 b.n 801075a <ETH_PHY_IO_WriteReg+0x26>
  38079. }
  38080. return 0;
  38081. 8010758: 2300 movs r3, #0
  38082. }
  38083. 801075a: 4618 mov r0, r3
  38084. 801075c: 3710 adds r7, #16
  38085. 801075e: 46bd mov sp, r7
  38086. 8010760: bd80 pop {r7, pc}
  38087. 8010762: bf00 nop
  38088. 8010764: 240022bc .word 0x240022bc
  38089. 08010768 <ETH_PHY_IO_GetTick>:
  38090. /**
  38091. * @brief Get the time in millisecons used for internal PHY driver process.
  38092. * @retval Time value
  38093. */
  38094. int32_t ETH_PHY_IO_GetTick(void)
  38095. {
  38096. 8010768: b580 push {r7, lr}
  38097. 801076a: af00 add r7, sp, #0
  38098. return HAL_GetTick();
  38099. 801076c: f7f4 fd68 bl 8005240 <HAL_GetTick>
  38100. 8010770: 4603 mov r3, r0
  38101. }
  38102. 8010772: 4618 mov r0, r3
  38103. 8010774: bd80 pop {r7, pc}
  38104. ...
  38105. 08010778 <ethernet_link_thread>:
  38106. /**
  38107. * @brief Check the ETH link state then update ETH driver and netif link accordingly.
  38108. * @retval None
  38109. */
  38110. void ethernet_link_thread(void* argument)
  38111. {
  38112. 8010778: b580 push {r7, lr}
  38113. 801077a: b0a2 sub sp, #136 @ 0x88
  38114. 801077c: af00 add r7, sp, #0
  38115. 801077e: 6078 str r0, [r7, #4]
  38116. ETH_MACConfigTypeDef MACConf = {0};
  38117. 8010780: f107 0310 add.w r3, r7, #16
  38118. 8010784: 2264 movs r2, #100 @ 0x64
  38119. 8010786: 2100 movs r1, #0
  38120. 8010788: 4618 mov r0, r3
  38121. 801078a: f019 fea9 bl 802a4e0 <memset>
  38122. int32_t PHYLinkState = 0;
  38123. 801078e: 2300 movs r3, #0
  38124. 8010790: 67bb str r3, [r7, #120] @ 0x78
  38125. uint32_t linkchanged = 0U, speed = 0U, duplex = 0U;
  38126. 8010792: 2300 movs r3, #0
  38127. 8010794: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38128. 8010798: 2300 movs r3, #0
  38129. 801079a: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38130. 801079e: 2300 movs r3, #0
  38131. 80107a0: 67fb str r3, [r7, #124] @ 0x7c
  38132. struct netif *netif = (struct netif *) argument;
  38133. 80107a2: 687b ldr r3, [r7, #4]
  38134. 80107a4: 677b str r3, [r7, #116] @ 0x74
  38135. /* USER CODE BEGIN ETH link init */
  38136. #if USE_DHCP
  38137. enum dhcp_states DHCP_state = DHCP_START;
  38138. 80107a6: 2301 movs r3, #1
  38139. 80107a8: 73fb strb r3, [r7, #15]
  38140. // LOCK_TCPIP_CORE();
  38141. /* USER CODE END ETH link init */
  38142. for(;;)
  38143. {
  38144. PHYLinkState = DP83848_GetLinkState(&DP83848);
  38145. 80107aa: 484a ldr r0, [pc, #296] @ (80108d4 <ethernet_link_thread+0x15c>)
  38146. 80107ac: f7f4 fc70 bl 8005090 <DP83848_GetLinkState>
  38147. 80107b0: 67b8 str r0, [r7, #120] @ 0x78
  38148. if(netif_is_link_up(netif) && (PHYLinkState <= DP83848_STATUS_LINK_DOWN))
  38149. 80107b2: 6f7b ldr r3, [r7, #116] @ 0x74
  38150. 80107b4: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  38151. 80107b8: 089b lsrs r3, r3, #2
  38152. 80107ba: f003 0301 and.w r3, r3, #1
  38153. 80107be: b2db uxtb r3, r3
  38154. 80107c0: 2b00 cmp r3, #0
  38155. 80107c2: d013 beq.n 80107ec <ethernet_link_thread+0x74>
  38156. 80107c4: 6fbb ldr r3, [r7, #120] @ 0x78
  38157. 80107c6: 2b01 cmp r3, #1
  38158. 80107c8: dc10 bgt.n 80107ec <ethernet_link_thread+0x74>
  38159. {
  38160. HAL_ETH_Stop_IT(&heth);
  38161. 80107ca: 4843 ldr r0, [pc, #268] @ (80108d8 <ethernet_link_thread+0x160>)
  38162. 80107cc: f7f7 fc7e bl 80080cc <HAL_ETH_Stop_IT>
  38163. LOCK_TCPIP_CORE();
  38164. 80107d0: f000 f936 bl 8010a40 <sys_lock_tcpip_core>
  38165. netif_set_down(netif);
  38166. 80107d4: 6f78 ldr r0, [r7, #116] @ 0x74
  38167. 80107d6: f009 fdf9 bl 801a3cc <netif_set_down>
  38168. netif_set_link_down(netif);
  38169. 80107da: 6f78 ldr r0, [r7, #116] @ 0x74
  38170. 80107dc: f009 fe64 bl 801a4a8 <netif_set_link_down>
  38171. UNLOCK_TCPIP_CORE();
  38172. 80107e0: f000 f93e bl 8010a60 <sys_unlock_tcpip_core>
  38173. printf("Link down...\r\n");
  38174. 80107e4: 483d ldr r0, [pc, #244] @ (80108dc <ethernet_link_thread+0x164>)
  38175. 80107e6: f019 fd51 bl 802a28c <puts>
  38176. 80107ea: e067 b.n 80108bc <ethernet_link_thread+0x144>
  38177. }
  38178. else if(!netif_is_link_up(netif) && (PHYLinkState > DP83848_STATUS_LINK_DOWN))
  38179. 80107ec: 6f7b ldr r3, [r7, #116] @ 0x74
  38180. 80107ee: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  38181. 80107f2: f003 0304 and.w r3, r3, #4
  38182. 80107f6: 2b00 cmp r3, #0
  38183. 80107f8: d160 bne.n 80108bc <ethernet_link_thread+0x144>
  38184. 80107fa: 6fbb ldr r3, [r7, #120] @ 0x78
  38185. 80107fc: 2b01 cmp r3, #1
  38186. 80107fe: dd5d ble.n 80108bc <ethernet_link_thread+0x144>
  38187. {
  38188. switch (PHYLinkState)
  38189. 8010800: 6fbb ldr r3, [r7, #120] @ 0x78
  38190. 8010802: 3b02 subs r3, #2
  38191. 8010804: 2b03 cmp r3, #3
  38192. 8010806: d833 bhi.n 8010870 <ethernet_link_thread+0xf8>
  38193. 8010808: a201 add r2, pc, #4 @ (adr r2, 8010810 <ethernet_link_thread+0x98>)
  38194. 801080a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  38195. 801080e: bf00 nop
  38196. 8010810: 08010821 .word 0x08010821
  38197. 8010814: 08010837 .word 0x08010837
  38198. 8010818: 0801084b .word 0x0801084b
  38199. 801081c: 0801085f .word 0x0801085f
  38200. {
  38201. case DP83848_STATUS_100MBITS_FULLDUPLEX:
  38202. duplex = ETH_FULLDUPLEX_MODE;
  38203. 8010820: f44f 5300 mov.w r3, #8192 @ 0x2000
  38204. 8010824: 67fb str r3, [r7, #124] @ 0x7c
  38205. speed = ETH_SPEED_100M;
  38206. 8010826: f44f 4380 mov.w r3, #16384 @ 0x4000
  38207. 801082a: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38208. linkchanged = 1;
  38209. 801082e: 2301 movs r3, #1
  38210. 8010830: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38211. break;
  38212. 8010834: e01d b.n 8010872 <ethernet_link_thread+0xfa>
  38213. case DP83848_STATUS_100MBITS_HALFDUPLEX:
  38214. duplex = ETH_HALFDUPLEX_MODE;
  38215. 8010836: 2300 movs r3, #0
  38216. 8010838: 67fb str r3, [r7, #124] @ 0x7c
  38217. speed = ETH_SPEED_100M;
  38218. 801083a: f44f 4380 mov.w r3, #16384 @ 0x4000
  38219. 801083e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38220. linkchanged = 1;
  38221. 8010842: 2301 movs r3, #1
  38222. 8010844: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38223. break;
  38224. 8010848: e013 b.n 8010872 <ethernet_link_thread+0xfa>
  38225. case DP83848_STATUS_10MBITS_FULLDUPLEX:
  38226. duplex = ETH_FULLDUPLEX_MODE;
  38227. 801084a: f44f 5300 mov.w r3, #8192 @ 0x2000
  38228. 801084e: 67fb str r3, [r7, #124] @ 0x7c
  38229. speed = ETH_SPEED_10M;
  38230. 8010850: 2300 movs r3, #0
  38231. 8010852: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38232. linkchanged = 1;
  38233. 8010856: 2301 movs r3, #1
  38234. 8010858: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38235. break;
  38236. 801085c: e009 b.n 8010872 <ethernet_link_thread+0xfa>
  38237. case DP83848_STATUS_10MBITS_HALFDUPLEX:
  38238. duplex = ETH_HALFDUPLEX_MODE;
  38239. 801085e: 2300 movs r3, #0
  38240. 8010860: 67fb str r3, [r7, #124] @ 0x7c
  38241. speed = ETH_SPEED_10M;
  38242. 8010862: 2300 movs r3, #0
  38243. 8010864: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  38244. linkchanged = 1;
  38245. 8010868: 2301 movs r3, #1
  38246. 801086a: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  38247. break;
  38248. 801086e: e000 b.n 8010872 <ethernet_link_thread+0xfa>
  38249. default:
  38250. break;
  38251. 8010870: bf00 nop
  38252. }
  38253. if(linkchanged)
  38254. 8010872: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  38255. 8010876: 2b00 cmp r3, #0
  38256. 8010878: d020 beq.n 80108bc <ethernet_link_thread+0x144>
  38257. {
  38258. /* Get MAC Config MAC */
  38259. HAL_ETH_GetMACConfig(&heth, &MACConf);
  38260. 801087a: f107 0310 add.w r3, r7, #16
  38261. 801087e: 4619 mov r1, r3
  38262. 8010880: 4815 ldr r0, [pc, #84] @ (80108d8 <ethernet_link_thread+0x160>)
  38263. 8010882: f7f8 f83f bl 8008904 <HAL_ETH_GetMACConfig>
  38264. MACConf.DuplexMode = duplex;
  38265. 8010886: 6ffb ldr r3, [r7, #124] @ 0x7c
  38266. 8010888: 62bb str r3, [r7, #40] @ 0x28
  38267. MACConf.Speed = speed;
  38268. 801088a: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  38269. 801088e: 627b str r3, [r7, #36] @ 0x24
  38270. HAL_ETH_SetMACConfig(&heth, &MACConf);
  38271. 8010890: f107 0310 add.w r3, r7, #16
  38272. 8010894: 4619 mov r1, r3
  38273. 8010896: 4810 ldr r0, [pc, #64] @ (80108d8 <ethernet_link_thread+0x160>)
  38274. 8010898: f7f8 fa08 bl 8008cac <HAL_ETH_SetMACConfig>
  38275. HAL_ETH_Start_IT(&heth);
  38276. 801089c: 480e ldr r0, [pc, #56] @ (80108d8 <ethernet_link_thread+0x160>)
  38277. 801089e: f7f7 fba1 bl 8007fe4 <HAL_ETH_Start_IT>
  38278. LOCK_TCPIP_CORE();
  38279. 80108a2: f000 f8cd bl 8010a40 <sys_lock_tcpip_core>
  38280. netif_set_up(netif);
  38281. 80108a6: 6f78 ldr r0, [r7, #116] @ 0x74
  38282. 80108a8: f009 fd22 bl 801a2f0 <netif_set_up>
  38283. netif_set_link_up(netif);
  38284. 80108ac: 6f78 ldr r0, [r7, #116] @ 0x74
  38285. 80108ae: f009 fdc1 bl 801a434 <netif_set_link_up>
  38286. UNLOCK_TCPIP_CORE();
  38287. 80108b2: f000 f8d5 bl 8010a60 <sys_unlock_tcpip_core>
  38288. printf("Link up...\r\n");
  38289. 80108b6: 480a ldr r0, [pc, #40] @ (80108e0 <ethernet_link_thread+0x168>)
  38290. 80108b8: f019 fce8 bl 802a28c <puts>
  38291. }
  38292. }
  38293. /* USER CODE BEGIN ETH link Thread core code for User BSP */
  38294. #if USE_DHCP
  38295. dhcp_sm(netif, &DHCP_state);
  38296. 80108bc: f107 030f add.w r3, r7, #15
  38297. 80108c0: 4619 mov r1, r3
  38298. 80108c2: 6f78 ldr r0, [r7, #116] @ 0x74
  38299. 80108c4: f000 f922 bl 8010b0c <dhcp_sm>
  38300. #endif
  38301. /* ETH_CODE: workaround to call LOCK_TCPIP_CORE when accessing netif link functions*/
  38302. // UNLOCK_TCPIP_CORE();
  38303. osDelay(pdMS_TO_TICKS(500));
  38304. 80108c8: f44f 70fa mov.w r0, #500 @ 0x1f4
  38305. 80108cc: f000 faff bl 8010ece <osDelay>
  38306. // LOCK_TCPIP_CORE();
  38307. continue; /* skip next osDelay */
  38308. 80108d0: bf00 nop
  38309. PHYLinkState = DP83848_GetLinkState(&DP83848);
  38310. 80108d2: e76a b.n 80107aa <ethernet_link_thread+0x32>
  38311. 80108d4: 240023a4 .word 0x240023a4
  38312. 80108d8: 240022bc .word 0x240022bc
  38313. 80108dc: 0802d2e8 .word 0x0802d2e8
  38314. 80108e0: 0802d2f8 .word 0x0802d2f8
  38315. 080108e4 <ethernetif_notify_conn_changed>:
  38316. * @brief This function notify user about link status changement.
  38317. * @param netif: the network interface
  38318. * @retval None
  38319. */
  38320. __weak void ethernetif_notify_conn_changed(struct netif *netif)
  38321. {
  38322. 80108e4: b480 push {r7}
  38323. 80108e6: b083 sub sp, #12
  38324. 80108e8: af00 add r7, sp, #0
  38325. 80108ea: 6078 str r0, [r7, #4]
  38326. /* NOTE : This is function could be implemented in user file
  38327. when the callback is needed,
  38328. */
  38329. }
  38330. 80108ec: bf00 nop
  38331. 80108ee: 370c adds r7, #12
  38332. 80108f0: 46bd mov sp, r7
  38333. 80108f2: f85d 7b04 ldr.w r7, [sp], #4
  38334. 80108f6: 4770 bx lr
  38335. 080108f8 <HAL_ETH_RxAllocateCallback>:
  38336. void HAL_ETH_RxAllocateCallback(uint8_t **buff)
  38337. {
  38338. 80108f8: b580 push {r7, lr}
  38339. 80108fa: b086 sub sp, #24
  38340. 80108fc: af02 add r7, sp, #8
  38341. 80108fe: 6078 str r0, [r7, #4]
  38342. /* USER CODE BEGIN HAL ETH RxAllocateCallback */
  38343. struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL);
  38344. 8010900: 4812 ldr r0, [pc, #72] @ (801094c <HAL_ETH_RxAllocateCallback+0x54>)
  38345. 8010902: f009 fa5d bl 8019dc0 <memp_malloc_pool>
  38346. 8010906: 60f8 str r0, [r7, #12]
  38347. if (p)
  38348. 8010908: 68fb ldr r3, [r7, #12]
  38349. 801090a: 2b00 cmp r3, #0
  38350. 801090c: d014 beq.n 8010938 <HAL_ETH_RxAllocateCallback+0x40>
  38351. {
  38352. /* Get the buff from the struct pbuf address. */
  38353. *buff = (uint8_t *)p + offsetof(RxBuff_t, buff);
  38354. 801090e: 68fb ldr r3, [r7, #12]
  38355. 8010910: f103 0220 add.w r2, r3, #32
  38356. 8010914: 687b ldr r3, [r7, #4]
  38357. 8010916: 601a str r2, [r3, #0]
  38358. p->custom_free_function = pbuf_free_custom;
  38359. 8010918: 68fb ldr r3, [r7, #12]
  38360. 801091a: 4a0d ldr r2, [pc, #52] @ (8010950 <HAL_ETH_RxAllocateCallback+0x58>)
  38361. 801091c: 611a str r2, [r3, #16]
  38362. /* Initialize the struct pbuf.
  38363. * This must be performed whenever a buffer's allocated because it may be
  38364. * changed by lwIP or the app, e.g., pbuf_free decrements ref. */
  38365. pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE);
  38366. 801091e: 687b ldr r3, [r7, #4]
  38367. 8010920: 681b ldr r3, [r3, #0]
  38368. 8010922: f44f 62c0 mov.w r2, #1536 @ 0x600
  38369. 8010926: 9201 str r2, [sp, #4]
  38370. 8010928: 9300 str r3, [sp, #0]
  38371. 801092a: 68fb ldr r3, [r7, #12]
  38372. 801092c: 2241 movs r2, #65 @ 0x41
  38373. 801092e: 2100 movs r1, #0
  38374. 8010930: 2000 movs r0, #0
  38375. 8010932: f009 ffe1 bl 801a8f8 <pbuf_alloced_custom>
  38376. {
  38377. RxAllocStatus = RX_ALLOC_ERROR;
  38378. *buff = NULL;
  38379. }
  38380. /* USER CODE END HAL ETH RxAllocateCallback */
  38381. }
  38382. 8010936: e005 b.n 8010944 <HAL_ETH_RxAllocateCallback+0x4c>
  38383. RxAllocStatus = RX_ALLOC_ERROR;
  38384. 8010938: 4b06 ldr r3, [pc, #24] @ (8010954 <HAL_ETH_RxAllocateCallback+0x5c>)
  38385. 801093a: 2201 movs r2, #1
  38386. 801093c: 701a strb r2, [r3, #0]
  38387. *buff = NULL;
  38388. 801093e: 687b ldr r3, [r7, #4]
  38389. 8010940: 2200 movs r2, #0
  38390. 8010942: 601a str r2, [r3, #0]
  38391. }
  38392. 8010944: bf00 nop
  38393. 8010946: 3710 adds r7, #16
  38394. 8010948: 46bd mov sp, r7
  38395. 801094a: bd80 pop {r7, pc}
  38396. 801094c: 08031348 .word 0x08031348
  38397. 8010950: 08010505 .word 0x08010505
  38398. 8010954: 240022b0 .word 0x240022b0
  38399. 08010958 <HAL_ETH_RxLinkCallback>:
  38400. void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length)
  38401. {
  38402. 8010958: b480 push {r7}
  38403. 801095a: b08d sub sp, #52 @ 0x34
  38404. 801095c: af00 add r7, sp, #0
  38405. 801095e: 60f8 str r0, [r7, #12]
  38406. 8010960: 60b9 str r1, [r7, #8]
  38407. 8010962: 607a str r2, [r7, #4]
  38408. 8010964: 807b strh r3, [r7, #2]
  38409. /* USER CODE BEGIN HAL ETH RxLinkCallback */
  38410. struct pbuf **ppStart = (struct pbuf **)pStart;
  38411. 8010966: 68fb ldr r3, [r7, #12]
  38412. 8010968: 62bb str r3, [r7, #40] @ 0x28
  38413. struct pbuf **ppEnd = (struct pbuf **)pEnd;
  38414. 801096a: 68bb ldr r3, [r7, #8]
  38415. 801096c: 627b str r3, [r7, #36] @ 0x24
  38416. struct pbuf *p = NULL;
  38417. 801096e: 2300 movs r3, #0
  38418. 8010970: 62fb str r3, [r7, #44] @ 0x2c
  38419. /* Get the struct pbuf from the buff address. */
  38420. p = (struct pbuf *)(buff - offsetof(RxBuff_t, buff));
  38421. 8010972: 687b ldr r3, [r7, #4]
  38422. 8010974: 3b20 subs r3, #32
  38423. 8010976: 62fb str r3, [r7, #44] @ 0x2c
  38424. p->next = NULL;
  38425. 8010978: 6afb ldr r3, [r7, #44] @ 0x2c
  38426. 801097a: 2200 movs r2, #0
  38427. 801097c: 601a str r2, [r3, #0]
  38428. p->tot_len = 0;
  38429. 801097e: 6afb ldr r3, [r7, #44] @ 0x2c
  38430. 8010980: 2200 movs r2, #0
  38431. 8010982: 811a strh r2, [r3, #8]
  38432. p->len = Length;
  38433. 8010984: 6afb ldr r3, [r7, #44] @ 0x2c
  38434. 8010986: 887a ldrh r2, [r7, #2]
  38435. 8010988: 815a strh r2, [r3, #10]
  38436. /* Chain the buffer. */
  38437. if (!*ppStart)
  38438. 801098a: 6abb ldr r3, [r7, #40] @ 0x28
  38439. 801098c: 681b ldr r3, [r3, #0]
  38440. 801098e: 2b00 cmp r3, #0
  38441. 8010990: d103 bne.n 801099a <HAL_ETH_RxLinkCallback+0x42>
  38442. {
  38443. /* The first buffer of the packet. */
  38444. *ppStart = p;
  38445. 8010992: 6abb ldr r3, [r7, #40] @ 0x28
  38446. 8010994: 6afa ldr r2, [r7, #44] @ 0x2c
  38447. 8010996: 601a str r2, [r3, #0]
  38448. 8010998: e003 b.n 80109a2 <HAL_ETH_RxLinkCallback+0x4a>
  38449. }
  38450. else
  38451. {
  38452. /* Chain the buffer to the end of the packet. */
  38453. (*ppEnd)->next = p;
  38454. 801099a: 6a7b ldr r3, [r7, #36] @ 0x24
  38455. 801099c: 681b ldr r3, [r3, #0]
  38456. 801099e: 6afa ldr r2, [r7, #44] @ 0x2c
  38457. 80109a0: 601a str r2, [r3, #0]
  38458. }
  38459. *ppEnd = p;
  38460. 80109a2: 6a7b ldr r3, [r7, #36] @ 0x24
  38461. 80109a4: 6afa ldr r2, [r7, #44] @ 0x2c
  38462. 80109a6: 601a str r2, [r3, #0]
  38463. /* Update the total length of all the buffers of the chain. Each pbuf in the chain should have its tot_len
  38464. * set to its own length, plus the length of all the following pbufs in the chain. */
  38465. for (p = *ppStart; p != NULL; p = p->next)
  38466. 80109a8: 6abb ldr r3, [r7, #40] @ 0x28
  38467. 80109aa: 681b ldr r3, [r3, #0]
  38468. 80109ac: 62fb str r3, [r7, #44] @ 0x2c
  38469. 80109ae: e009 b.n 80109c4 <HAL_ETH_RxLinkCallback+0x6c>
  38470. {
  38471. p->tot_len += Length;
  38472. 80109b0: 6afb ldr r3, [r7, #44] @ 0x2c
  38473. 80109b2: 891a ldrh r2, [r3, #8]
  38474. 80109b4: 887b ldrh r3, [r7, #2]
  38475. 80109b6: 4413 add r3, r2
  38476. 80109b8: b29a uxth r2, r3
  38477. 80109ba: 6afb ldr r3, [r7, #44] @ 0x2c
  38478. 80109bc: 811a strh r2, [r3, #8]
  38479. for (p = *ppStart; p != NULL; p = p->next)
  38480. 80109be: 6afb ldr r3, [r7, #44] @ 0x2c
  38481. 80109c0: 681b ldr r3, [r3, #0]
  38482. 80109c2: 62fb str r3, [r7, #44] @ 0x2c
  38483. 80109c4: 6afb ldr r3, [r7, #44] @ 0x2c
  38484. 80109c6: 2b00 cmp r3, #0
  38485. 80109c8: d1f2 bne.n 80109b0 <HAL_ETH_RxLinkCallback+0x58>
  38486. }
  38487. /* Invalidate data cache because Rx DMA's writing to physical memory makes it stale. */
  38488. SCB_InvalidateDCache_by_Addr((uint32_t *)buff, Length);
  38489. 80109ca: 887b ldrh r3, [r7, #2]
  38490. 80109cc: 687a ldr r2, [r7, #4]
  38491. 80109ce: 623a str r2, [r7, #32]
  38492. 80109d0: 61fb str r3, [r7, #28]
  38493. \param[in] dsize size of memory block (in number of bytes)
  38494. */
  38495. __STATIC_FORCEINLINE void SCB_InvalidateDCache_by_Addr (void *addr, int32_t dsize)
  38496. {
  38497. #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
  38498. if ( dsize > 0 ) {
  38499. 80109d2: 69fb ldr r3, [r7, #28]
  38500. 80109d4: 2b00 cmp r3, #0
  38501. 80109d6: dd1d ble.n 8010a14 <HAL_ETH_RxLinkCallback+0xbc>
  38502. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  38503. 80109d8: 6a3b ldr r3, [r7, #32]
  38504. 80109da: f003 021f and.w r2, r3, #31
  38505. 80109de: 69fb ldr r3, [r7, #28]
  38506. 80109e0: 4413 add r3, r2
  38507. 80109e2: 61bb str r3, [r7, #24]
  38508. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  38509. 80109e4: 6a3b ldr r3, [r7, #32]
  38510. 80109e6: 617b str r3, [r7, #20]
  38511. __ASM volatile ("dsb 0xF":::"memory");
  38512. 80109e8: f3bf 8f4f dsb sy
  38513. }
  38514. 80109ec: bf00 nop
  38515. __DSB();
  38516. do {
  38517. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  38518. 80109ee: 4a0d ldr r2, [pc, #52] @ (8010a24 <HAL_ETH_RxLinkCallback+0xcc>)
  38519. 80109f0: 697b ldr r3, [r7, #20]
  38520. 80109f2: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  38521. op_addr += __SCB_DCACHE_LINE_SIZE;
  38522. 80109f6: 697b ldr r3, [r7, #20]
  38523. 80109f8: 3320 adds r3, #32
  38524. 80109fa: 617b str r3, [r7, #20]
  38525. op_size -= __SCB_DCACHE_LINE_SIZE;
  38526. 80109fc: 69bb ldr r3, [r7, #24]
  38527. 80109fe: 3b20 subs r3, #32
  38528. 8010a00: 61bb str r3, [r7, #24]
  38529. } while ( op_size > 0 );
  38530. 8010a02: 69bb ldr r3, [r7, #24]
  38531. 8010a04: 2b00 cmp r3, #0
  38532. 8010a06: dcf2 bgt.n 80109ee <HAL_ETH_RxLinkCallback+0x96>
  38533. __ASM volatile ("dsb 0xF":::"memory");
  38534. 8010a08: f3bf 8f4f dsb sy
  38535. }
  38536. 8010a0c: bf00 nop
  38537. __ASM volatile ("isb 0xF":::"memory");
  38538. 8010a0e: f3bf 8f6f isb sy
  38539. }
  38540. 8010a12: bf00 nop
  38541. __DSB();
  38542. __ISB();
  38543. }
  38544. #endif
  38545. }
  38546. 8010a14: bf00 nop
  38547. /* USER CODE END HAL ETH RxLinkCallback */
  38548. }
  38549. 8010a16: bf00 nop
  38550. 8010a18: 3734 adds r7, #52 @ 0x34
  38551. 8010a1a: 46bd mov sp, r7
  38552. 8010a1c: f85d 7b04 ldr.w r7, [sp], #4
  38553. 8010a20: 4770 bx lr
  38554. 8010a22: bf00 nop
  38555. 8010a24: e000ed00 .word 0xe000ed00
  38556. 08010a28 <HAL_ETH_TxFreeCallback>:
  38557. void HAL_ETH_TxFreeCallback(uint32_t * buff)
  38558. {
  38559. 8010a28: b580 push {r7, lr}
  38560. 8010a2a: b082 sub sp, #8
  38561. 8010a2c: af00 add r7, sp, #0
  38562. 8010a2e: 6078 str r0, [r7, #4]
  38563. /* USER CODE BEGIN HAL ETH TxFreeCallback */
  38564. pbuf_free((struct pbuf *)buff);
  38565. 8010a30: 6878 ldr r0, [r7, #4]
  38566. 8010a32: f00a f94b bl 801accc <pbuf_free>
  38567. /* USER CODE END HAL ETH TxFreeCallback */
  38568. }
  38569. 8010a36: bf00 nop
  38570. 8010a38: 3708 adds r7, #8
  38571. 8010a3a: 46bd mov sp, r7
  38572. 8010a3c: bd80 pop {r7, pc}
  38573. ...
  38574. 08010a40 <sys_lock_tcpip_core>:
  38575. /* ETH_CODE: add functions needed for proper multithreading support and check */
  38576. static osThreadId_t lwip_core_lock_holder_thread_id;
  38577. static osThreadId_t lwip_tcpip_thread_id;
  38578. void sys_lock_tcpip_core(void){
  38579. 8010a40: b580 push {r7, lr}
  38580. 8010a42: af00 add r7, sp, #0
  38581. sys_mutex_lock(&lock_tcpip_core);
  38582. 8010a44: 4804 ldr r0, [pc, #16] @ (8010a58 <sys_lock_tcpip_core+0x18>)
  38583. 8010a46: f016 f8e7 bl 8026c18 <sys_mutex_lock>
  38584. lwip_core_lock_holder_thread_id = osThreadGetId();
  38585. 8010a4a: f000 fa35 bl 8010eb8 <osThreadGetId>
  38586. 8010a4e: 4603 mov r3, r0
  38587. 8010a50: 4a02 ldr r2, [pc, #8] @ (8010a5c <sys_lock_tcpip_core+0x1c>)
  38588. 8010a52: 6013 str r3, [r2, #0]
  38589. }
  38590. 8010a54: bf00 nop
  38591. 8010a56: bd80 pop {r7, pc}
  38592. 8010a58: 24024404 .word 0x24024404
  38593. 8010a5c: 240023c4 .word 0x240023c4
  38594. 08010a60 <sys_unlock_tcpip_core>:
  38595. void sys_unlock_tcpip_core(void){
  38596. 8010a60: b580 push {r7, lr}
  38597. 8010a62: af00 add r7, sp, #0
  38598. lwip_core_lock_holder_thread_id = 0;
  38599. 8010a64: 4b03 ldr r3, [pc, #12] @ (8010a74 <sys_unlock_tcpip_core+0x14>)
  38600. 8010a66: 2200 movs r2, #0
  38601. 8010a68: 601a str r2, [r3, #0]
  38602. sys_mutex_unlock(&lock_tcpip_core);
  38603. 8010a6a: 4803 ldr r0, [pc, #12] @ (8010a78 <sys_unlock_tcpip_core+0x18>)
  38604. 8010a6c: f016 f8e3 bl 8026c36 <sys_mutex_unlock>
  38605. }
  38606. 8010a70: bf00 nop
  38607. 8010a72: bd80 pop {r7, pc}
  38608. 8010a74: 240023c4 .word 0x240023c4
  38609. 8010a78: 24024404 .word 0x24024404
  38610. 08010a7c <sys_check_core_locking>:
  38611. void sys_check_core_locking(void){
  38612. 8010a7c: b580 push {r7, lr}
  38613. 8010a7e: b082 sub sp, #8
  38614. 8010a80: af00 add r7, sp, #0
  38615. /* Embedded systems should check we are NOT in an interrupt context here */
  38616. LWIP_ASSERT("Function called from interrupt context", (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == 0);
  38617. 8010a82: 4b15 ldr r3, [pc, #84] @ (8010ad8 <sys_check_core_locking+0x5c>)
  38618. 8010a84: 685b ldr r3, [r3, #4]
  38619. 8010a86: f3c3 0308 ubfx r3, r3, #0, #9
  38620. 8010a8a: 2b00 cmp r3, #0
  38621. 8010a8c: d006 beq.n 8010a9c <sys_check_core_locking+0x20>
  38622. 8010a8e: 4b13 ldr r3, [pc, #76] @ (8010adc <sys_check_core_locking+0x60>)
  38623. 8010a90: f240 4216 movw r2, #1046 @ 0x416
  38624. 8010a94: 4912 ldr r1, [pc, #72] @ (8010ae0 <sys_check_core_locking+0x64>)
  38625. 8010a96: 4813 ldr r0, [pc, #76] @ (8010ae4 <sys_check_core_locking+0x68>)
  38626. 8010a98: f019 fb90 bl 802a1bc <iprintf>
  38627. if (lwip_tcpip_thread_id != 0) {
  38628. 8010a9c: 4b12 ldr r3, [pc, #72] @ (8010ae8 <sys_check_core_locking+0x6c>)
  38629. 8010a9e: 681b ldr r3, [r3, #0]
  38630. 8010aa0: 2b00 cmp r3, #0
  38631. 8010aa2: d014 beq.n 8010ace <sys_check_core_locking+0x52>
  38632. osThreadId_t current_thread_id = osThreadGetId();
  38633. 8010aa4: f000 fa08 bl 8010eb8 <osThreadGetId>
  38634. 8010aa8: 6078 str r0, [r7, #4]
  38635. #if LWIP_TCPIP_CORE_LOCKING
  38636. LWIP_ASSERT("Function called without core lock", current_thread_id == lwip_core_lock_holder_thread_id);
  38637. 8010aaa: 4b10 ldr r3, [pc, #64] @ (8010aec <sys_check_core_locking+0x70>)
  38638. 8010aac: 681b ldr r3, [r3, #0]
  38639. 8010aae: 687a ldr r2, [r7, #4]
  38640. 8010ab0: 429a cmp r2, r3
  38641. 8010ab2: d006 beq.n 8010ac2 <sys_check_core_locking+0x46>
  38642. 8010ab4: 4b09 ldr r3, [pc, #36] @ (8010adc <sys_check_core_locking+0x60>)
  38643. 8010ab6: f240 421c movw r2, #1052 @ 0x41c
  38644. 8010aba: 490d ldr r1, [pc, #52] @ (8010af0 <sys_check_core_locking+0x74>)
  38645. 8010abc: 4809 ldr r0, [pc, #36] @ (8010ae4 <sys_check_core_locking+0x68>)
  38646. 8010abe: f019 fb7d bl 802a1bc <iprintf>
  38647. /* ETH_CODE: to easily check that example has correct handling of core lock
  38648. * This will trigger breakpoint (__BKPT)
  38649. */
  38650. #warning Below check should be removed in production code
  38651. if(current_thread_id != lwip_core_lock_holder_thread_id) __BKPT(0);
  38652. 8010ac2: 4b0a ldr r3, [pc, #40] @ (8010aec <sys_check_core_locking+0x70>)
  38653. 8010ac4: 681b ldr r3, [r3, #0]
  38654. 8010ac6: 687a ldr r2, [r7, #4]
  38655. 8010ac8: 429a cmp r2, r3
  38656. 8010aca: d000 beq.n 8010ace <sys_check_core_locking+0x52>
  38657. 8010acc: be00 bkpt 0x0000
  38658. #else /* LWIP_TCPIP_CORE_LOCKING */
  38659. LWIP_ASSERT("Function called from wrong thread", current_thread_id == lwip_tcpip_thread_id);
  38660. #endif /* LWIP_TCPIP_CORE_LOCKING */
  38661. LWIP_UNUSED_ARG(current_thread_id); /* for LWIP_NOASSERT */
  38662. }
  38663. }
  38664. 8010ace: bf00 nop
  38665. 8010ad0: 3708 adds r7, #8
  38666. 8010ad2: 46bd mov sp, r7
  38667. 8010ad4: bd80 pop {r7, pc}
  38668. 8010ad6: bf00 nop
  38669. 8010ad8: e000ed00 .word 0xe000ed00
  38670. 8010adc: 0802d294 .word 0x0802d294
  38671. 8010ae0: 0802d304 .word 0x0802d304
  38672. 8010ae4: 0802d2c0 .word 0x0802d2c0
  38673. 8010ae8: 240023c8 .word 0x240023c8
  38674. 8010aec: 240023c4 .word 0x240023c4
  38675. 8010af0: 0802d32c .word 0x0802d32c
  38676. 08010af4 <sys_mark_tcpip_thread>:
  38677. void sys_mark_tcpip_thread(void){
  38678. 8010af4: b580 push {r7, lr}
  38679. 8010af6: af00 add r7, sp, #0
  38680. lwip_tcpip_thread_id = osThreadGetId();
  38681. 8010af8: f000 f9de bl 8010eb8 <osThreadGetId>
  38682. 8010afc: 4603 mov r3, r0
  38683. 8010afe: 4a02 ldr r2, [pc, #8] @ (8010b08 <sys_mark_tcpip_thread+0x14>)
  38684. 8010b00: 6013 str r3, [r2, #0]
  38685. }
  38686. 8010b02: bf00 nop
  38687. 8010b04: bd80 pop {r7, pc}
  38688. 8010b06: bf00 nop
  38689. 8010b08: 240023c8 .word 0x240023c8
  38690. 08010b0c <dhcp_sm>:
  38691. #if USE_DHCP
  38692. void dhcp_sm(struct netif *netif, enum dhcp_states *state)
  38693. {
  38694. 8010b0c: b580 push {r7, lr}
  38695. 8010b0e: b08c sub sp, #48 @ 0x30
  38696. 8010b10: af00 add r7, sp, #0
  38697. 8010b12: 6078 str r0, [r7, #4]
  38698. 8010b14: 6039 str r1, [r7, #0]
  38699. ip_addr_t gw;
  38700. #ifdef DHCP_USER_LOGS
  38701. uint8_t iptxt[20];
  38702. #endif
  38703. switch(*state)
  38704. 8010b16: 683b ldr r3, [r7, #0]
  38705. 8010b18: 781b ldrb r3, [r3, #0]
  38706. 8010b1a: 2b03 cmp r3, #3
  38707. 8010b1c: d072 beq.n 8010c04 <dhcp_sm+0xf8>
  38708. 8010b1e: 2b03 cmp r3, #3
  38709. 8010b20: dc7b bgt.n 8010c1a <dhcp_sm+0x10e>
  38710. 8010b22: 2b01 cmp r3, #1
  38711. 8010b24: d002 beq.n 8010b2c <dhcp_sm+0x20>
  38712. 8010b26: 2b02 cmp r3, #2
  38713. 8010b28: d00a beq.n 8010b40 <dhcp_sm+0x34>
  38714. {
  38715. *state = DHCP_START;
  38716. }
  38717. break;
  38718. default:
  38719. break;
  38720. 8010b2a: e076 b.n 8010c1a <dhcp_sm+0x10e>
  38721. *state = DHCP_WAIT_ADDRESS;
  38722. 8010b2c: 683b ldr r3, [r7, #0]
  38723. 8010b2e: 2202 movs r2, #2
  38724. 8010b30: 701a strb r2, [r3, #0]
  38725. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  38726. 8010b32: 687b ldr r3, [r7, #4]
  38727. 8010b34: 6a5b ldr r3, [r3, #36] @ 0x24
  38728. 8010b36: 62fb str r3, [r7, #44] @ 0x2c
  38729. printf(" State: Looking for DHCP server ...\n");
  38730. 8010b38: 483c ldr r0, [pc, #240] @ (8010c2c <dhcp_sm+0x120>)
  38731. 8010b3a: f019 fba7 bl 802a28c <puts>
  38732. break;
  38733. 8010b3e: e071 b.n 8010c24 <dhcp_sm+0x118>
  38734. if (dhcp_supplied_address(netif))
  38735. 8010b40: 6878 ldr r0, [r7, #4]
  38736. 8010b42: f013 f9cd bl 8023ee0 <dhcp_supplied_address>
  38737. 8010b46: 4603 mov r3, r0
  38738. 8010b48: 2b00 cmp r3, #0
  38739. 8010b4a: d015 beq.n 8010b78 <dhcp_sm+0x6c>
  38740. *state = DHCP_ADDRESS_ASSIGNED;
  38741. 8010b4c: 683b ldr r3, [r7, #0]
  38742. 8010b4e: 2203 movs r2, #3
  38743. 8010b50: 701a strb r2, [r3, #0]
  38744. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  38745. 8010b52: 687b ldr r3, [r7, #4]
  38746. 8010b54: 3304 adds r3, #4
  38747. 8010b56: 4618 mov r0, r3
  38748. 8010b58: f014 ff5a bl 8025a10 <ip4addr_ntoa>
  38749. 8010b5c: 4602 mov r2, r0
  38750. 8010b5e: f107 030c add.w r3, r7, #12
  38751. 8010b62: 4933 ldr r1, [pc, #204] @ (8010c30 <dhcp_sm+0x124>)
  38752. 8010b64: 4618 mov r0, r3
  38753. 8010b66: f019 fb99 bl 802a29c <siprintf>
  38754. printf("IP address assigned by a DHCP server: %s\n", iptxt);
  38755. 8010b6a: f107 030c add.w r3, r7, #12
  38756. 8010b6e: 4619 mov r1, r3
  38757. 8010b70: 4830 ldr r0, [pc, #192] @ (8010c34 <dhcp_sm+0x128>)
  38758. 8010b72: f019 fb23 bl 802a1bc <iprintf>
  38759. break;
  38760. 8010b76: e052 b.n 8010c1e <dhcp_sm+0x112>
  38761. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  38762. 8010b78: 687b ldr r3, [r7, #4]
  38763. 8010b7a: 6a5b ldr r3, [r3, #36] @ 0x24
  38764. 8010b7c: 62fb str r3, [r7, #44] @ 0x2c
  38765. if (dhcp->tries > MAX_DHCP_TRIES)
  38766. 8010b7e: 6afb ldr r3, [r7, #44] @ 0x2c
  38767. 8010b80: 799b ldrb r3, [r3, #6]
  38768. 8010b82: 2b04 cmp r3, #4
  38769. 8010b84: d94b bls.n 8010c1e <dhcp_sm+0x112>
  38770. *state = DHCP_TIMEOUT;
  38771. 8010b86: 683b ldr r3, [r7, #0]
  38772. 8010b88: 2204 movs r2, #4
  38773. 8010b8a: 701a strb r2, [r3, #0]
  38774. LOCK_TCPIP_CORE();
  38775. 8010b8c: f7ff ff58 bl 8010a40 <sys_lock_tcpip_core>
  38776. dhcp_stop(netif);
  38777. 8010b90: 6878 ldr r0, [r7, #4]
  38778. 8010b92: f012 fbfd bl 8023390 <dhcp_stop>
  38779. UNLOCK_TCPIP_CORE();
  38780. 8010b96: f7ff ff63 bl 8010a60 <sys_unlock_tcpip_core>
  38781. ipaddr_aton(STATIC_IP, &ipaddr);
  38782. 8010b9a: f107 0328 add.w r3, r7, #40 @ 0x28
  38783. 8010b9e: 4619 mov r1, r3
  38784. 8010ba0: 4825 ldr r0, [pc, #148] @ (8010c38 <dhcp_sm+0x12c>)
  38785. 8010ba2: f014 fe0b bl 80257bc <ip4addr_aton>
  38786. ipaddr_aton(STATIC_MASK, &netmask);
  38787. 8010ba6: f107 0324 add.w r3, r7, #36 @ 0x24
  38788. 8010baa: 4619 mov r1, r3
  38789. 8010bac: 4823 ldr r0, [pc, #140] @ (8010c3c <dhcp_sm+0x130>)
  38790. 8010bae: f014 fe05 bl 80257bc <ip4addr_aton>
  38791. ipaddr_aton(STATIC_GW, &gw);
  38792. 8010bb2: f107 0320 add.w r3, r7, #32
  38793. 8010bb6: 4619 mov r1, r3
  38794. 8010bb8: 4821 ldr r0, [pc, #132] @ (8010c40 <dhcp_sm+0x134>)
  38795. 8010bba: f014 fdff bl 80257bc <ip4addr_aton>
  38796. LOCK_TCPIP_CORE();
  38797. 8010bbe: f7ff ff3f bl 8010a40 <sys_lock_tcpip_core>
  38798. netif_set_addr(netif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw));
  38799. 8010bc2: f107 0320 add.w r3, r7, #32
  38800. 8010bc6: f107 0224 add.w r2, r7, #36 @ 0x24
  38801. 8010bca: f107 0128 add.w r1, r7, #40 @ 0x28
  38802. 8010bce: 6878 ldr r0, [r7, #4]
  38803. 8010bd0: f009 fb32 bl 801a238 <netif_set_addr>
  38804. UNLOCK_TCPIP_CORE();
  38805. 8010bd4: f7ff ff44 bl 8010a60 <sys_unlock_tcpip_core>
  38806. sprintf((char *)iptxt, "%s", ip4addr_ntoa((const ip4_addr_t *)&netif->ip_addr));
  38807. 8010bd8: 687b ldr r3, [r7, #4]
  38808. 8010bda: 3304 adds r3, #4
  38809. 8010bdc: 4618 mov r0, r3
  38810. 8010bde: f014 ff17 bl 8025a10 <ip4addr_ntoa>
  38811. 8010be2: 4602 mov r2, r0
  38812. 8010be4: f107 030c add.w r3, r7, #12
  38813. 8010be8: 4911 ldr r1, [pc, #68] @ (8010c30 <dhcp_sm+0x124>)
  38814. 8010bea: 4618 mov r0, r3
  38815. 8010bec: f019 fb56 bl 802a29c <siprintf>
  38816. printf("DHCP Timeout !! \n");
  38817. 8010bf0: 4814 ldr r0, [pc, #80] @ (8010c44 <dhcp_sm+0x138>)
  38818. 8010bf2: f019 fb4b bl 802a28c <puts>
  38819. printf("Static IP address: %s\n", iptxt);
  38820. 8010bf6: f107 030c add.w r3, r7, #12
  38821. 8010bfa: 4619 mov r1, r3
  38822. 8010bfc: 4812 ldr r0, [pc, #72] @ (8010c48 <dhcp_sm+0x13c>)
  38823. 8010bfe: f019 fadd bl 802a1bc <iprintf>
  38824. break;
  38825. 8010c02: e00c b.n 8010c1e <dhcp_sm+0x112>
  38826. dhcp = (struct dhcp *)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP);
  38827. 8010c04: 687b ldr r3, [r7, #4]
  38828. 8010c06: 6a5b ldr r3, [r3, #36] @ 0x24
  38829. 8010c08: 62fb str r3, [r7, #44] @ 0x2c
  38830. if(dhcp->state == 3)
  38831. 8010c0a: 6afb ldr r3, [r7, #44] @ 0x2c
  38832. 8010c0c: 795b ldrb r3, [r3, #5]
  38833. 8010c0e: 2b03 cmp r3, #3
  38834. 8010c10: d107 bne.n 8010c22 <dhcp_sm+0x116>
  38835. *state = DHCP_START;
  38836. 8010c12: 683b ldr r3, [r7, #0]
  38837. 8010c14: 2201 movs r2, #1
  38838. 8010c16: 701a strb r2, [r3, #0]
  38839. break;
  38840. 8010c18: e003 b.n 8010c22 <dhcp_sm+0x116>
  38841. break;
  38842. 8010c1a: bf00 nop
  38843. 8010c1c: e002 b.n 8010c24 <dhcp_sm+0x118>
  38844. break;
  38845. 8010c1e: bf00 nop
  38846. 8010c20: e000 b.n 8010c24 <dhcp_sm+0x118>
  38847. break;
  38848. 8010c22: bf00 nop
  38849. }
  38850. }
  38851. 8010c24: bf00 nop
  38852. 8010c26: 3730 adds r7, #48 @ 0x30
  38853. 8010c28: 46bd mov sp, r7
  38854. 8010c2a: bd80 pop {r7, pc}
  38855. 8010c2c: 0802d350 .word 0x0802d350
  38856. 8010c30: 0802d378 .word 0x0802d378
  38857. 8010c34: 0802d37c .word 0x0802d37c
  38858. 8010c38: 0802d3a8 .word 0x0802d3a8
  38859. 8010c3c: 0802d3b8 .word 0x0802d3b8
  38860. 8010c40: 0802d3c8 .word 0x0802d3c8
  38861. 8010c44: 0802d3d4 .word 0x0802d3d4
  38862. 8010c48: 0802d3e8 .word 0x0802d3e8
  38863. 08010c4c <__NVIC_SetPriority>:
  38864. {
  38865. 8010c4c: b480 push {r7}
  38866. 8010c4e: b083 sub sp, #12
  38867. 8010c50: af00 add r7, sp, #0
  38868. 8010c52: 4603 mov r3, r0
  38869. 8010c54: 6039 str r1, [r7, #0]
  38870. 8010c56: 80fb strh r3, [r7, #6]
  38871. if ((int32_t)(IRQn) >= 0)
  38872. 8010c58: f9b7 3006 ldrsh.w r3, [r7, #6]
  38873. 8010c5c: 2b00 cmp r3, #0
  38874. 8010c5e: db0a blt.n 8010c76 <__NVIC_SetPriority+0x2a>
  38875. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  38876. 8010c60: 683b ldr r3, [r7, #0]
  38877. 8010c62: b2da uxtb r2, r3
  38878. 8010c64: 490c ldr r1, [pc, #48] @ (8010c98 <__NVIC_SetPriority+0x4c>)
  38879. 8010c66: f9b7 3006 ldrsh.w r3, [r7, #6]
  38880. 8010c6a: 0112 lsls r2, r2, #4
  38881. 8010c6c: b2d2 uxtb r2, r2
  38882. 8010c6e: 440b add r3, r1
  38883. 8010c70: f883 2300 strb.w r2, [r3, #768] @ 0x300
  38884. }
  38885. 8010c74: e00a b.n 8010c8c <__NVIC_SetPriority+0x40>
  38886. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  38887. 8010c76: 683b ldr r3, [r7, #0]
  38888. 8010c78: b2da uxtb r2, r3
  38889. 8010c7a: 4908 ldr r1, [pc, #32] @ (8010c9c <__NVIC_SetPriority+0x50>)
  38890. 8010c7c: 88fb ldrh r3, [r7, #6]
  38891. 8010c7e: f003 030f and.w r3, r3, #15
  38892. 8010c82: 3b04 subs r3, #4
  38893. 8010c84: 0112 lsls r2, r2, #4
  38894. 8010c86: b2d2 uxtb r2, r2
  38895. 8010c88: 440b add r3, r1
  38896. 8010c8a: 761a strb r2, [r3, #24]
  38897. }
  38898. 8010c8c: bf00 nop
  38899. 8010c8e: 370c adds r7, #12
  38900. 8010c90: 46bd mov sp, r7
  38901. 8010c92: f85d 7b04 ldr.w r7, [sp], #4
  38902. 8010c96: 4770 bx lr
  38903. 8010c98: e000e100 .word 0xe000e100
  38904. 8010c9c: e000ed00 .word 0xe000ed00
  38905. 08010ca0 <SysTick_Handler>:
  38906. /*
  38907. SysTick handler implementation that also clears overflow flag.
  38908. */
  38909. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  38910. void SysTick_Handler (void) {
  38911. 8010ca0: b580 push {r7, lr}
  38912. 8010ca2: af00 add r7, sp, #0
  38913. /* Clear overflow flag */
  38914. SysTick->CTRL;
  38915. 8010ca4: 4b05 ldr r3, [pc, #20] @ (8010cbc <SysTick_Handler+0x1c>)
  38916. 8010ca6: 681b ldr r3, [r3, #0]
  38917. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  38918. 8010ca8: f003 f9d8 bl 801405c <xTaskGetSchedulerState>
  38919. 8010cac: 4603 mov r3, r0
  38920. 8010cae: 2b01 cmp r3, #1
  38921. 8010cb0: d001 beq.n 8010cb6 <SysTick_Handler+0x16>
  38922. /* Call tick handler */
  38923. xPortSysTickHandler();
  38924. 8010cb2: f004 fbc1 bl 8015438 <xPortSysTickHandler>
  38925. }
  38926. }
  38927. 8010cb6: bf00 nop
  38928. 8010cb8: bd80 pop {r7, pc}
  38929. 8010cba: bf00 nop
  38930. 8010cbc: e000e010 .word 0xe000e010
  38931. 08010cc0 <SVC_Setup>:
  38932. #endif /* SysTick */
  38933. /*
  38934. Setup SVC to reset value.
  38935. */
  38936. __STATIC_INLINE void SVC_Setup (void) {
  38937. 8010cc0: b580 push {r7, lr}
  38938. 8010cc2: af00 add r7, sp, #0
  38939. #if (__ARM_ARCH_7A__ == 0U)
  38940. /* Service Call interrupt might be configured before kernel start */
  38941. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  38942. /* causes a Hard Fault. */
  38943. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  38944. 8010cc4: 2100 movs r1, #0
  38945. 8010cc6: f06f 0004 mvn.w r0, #4
  38946. 8010cca: f7ff ffbf bl 8010c4c <__NVIC_SetPriority>
  38947. #endif
  38948. }
  38949. 8010cce: bf00 nop
  38950. 8010cd0: bd80 pop {r7, pc}
  38951. ...
  38952. 08010cd4 <osKernelInitialize>:
  38953. static uint32_t OS_Tick_GetOverflow (void);
  38954. /* Get OS Tick interval */
  38955. static uint32_t OS_Tick_GetInterval (void);
  38956. /*---------------------------------------------------------------------------*/
  38957. osStatus_t osKernelInitialize (void) {
  38958. 8010cd4: b480 push {r7}
  38959. 8010cd6: b083 sub sp, #12
  38960. 8010cd8: af00 add r7, sp, #0
  38961. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  38962. 8010cda: f3ef 8305 mrs r3, IPSR
  38963. 8010cde: 603b str r3, [r7, #0]
  38964. return(result);
  38965. 8010ce0: 683b ldr r3, [r7, #0]
  38966. osStatus_t stat;
  38967. if (IS_IRQ()) {
  38968. 8010ce2: 2b00 cmp r3, #0
  38969. 8010ce4: d003 beq.n 8010cee <osKernelInitialize+0x1a>
  38970. stat = osErrorISR;
  38971. 8010ce6: f06f 0305 mvn.w r3, #5
  38972. 8010cea: 607b str r3, [r7, #4]
  38973. 8010cec: e00c b.n 8010d08 <osKernelInitialize+0x34>
  38974. }
  38975. else {
  38976. if (KernelState == osKernelInactive) {
  38977. 8010cee: 4b0a ldr r3, [pc, #40] @ (8010d18 <osKernelInitialize+0x44>)
  38978. 8010cf0: 681b ldr r3, [r3, #0]
  38979. 8010cf2: 2b00 cmp r3, #0
  38980. 8010cf4: d105 bne.n 8010d02 <osKernelInitialize+0x2e>
  38981. EvrFreeRTOSSetup(0U);
  38982. #endif
  38983. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  38984. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  38985. #endif
  38986. KernelState = osKernelReady;
  38987. 8010cf6: 4b08 ldr r3, [pc, #32] @ (8010d18 <osKernelInitialize+0x44>)
  38988. 8010cf8: 2201 movs r2, #1
  38989. 8010cfa: 601a str r2, [r3, #0]
  38990. stat = osOK;
  38991. 8010cfc: 2300 movs r3, #0
  38992. 8010cfe: 607b str r3, [r7, #4]
  38993. 8010d00: e002 b.n 8010d08 <osKernelInitialize+0x34>
  38994. } else {
  38995. stat = osError;
  38996. 8010d02: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  38997. 8010d06: 607b str r3, [r7, #4]
  38998. }
  38999. }
  39000. return (stat);
  39001. 8010d08: 687b ldr r3, [r7, #4]
  39002. }
  39003. 8010d0a: 4618 mov r0, r3
  39004. 8010d0c: 370c adds r7, #12
  39005. 8010d0e: 46bd mov sp, r7
  39006. 8010d10: f85d 7b04 ldr.w r7, [sp], #4
  39007. 8010d14: 4770 bx lr
  39008. 8010d16: bf00 nop
  39009. 8010d18: 240023cc .word 0x240023cc
  39010. 08010d1c <osKernelStart>:
  39011. }
  39012. return (state);
  39013. }
  39014. osStatus_t osKernelStart (void) {
  39015. 8010d1c: b580 push {r7, lr}
  39016. 8010d1e: b082 sub sp, #8
  39017. 8010d20: af00 add r7, sp, #0
  39018. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39019. 8010d22: f3ef 8305 mrs r3, IPSR
  39020. 8010d26: 603b str r3, [r7, #0]
  39021. return(result);
  39022. 8010d28: 683b ldr r3, [r7, #0]
  39023. osStatus_t stat;
  39024. if (IS_IRQ()) {
  39025. 8010d2a: 2b00 cmp r3, #0
  39026. 8010d2c: d003 beq.n 8010d36 <osKernelStart+0x1a>
  39027. stat = osErrorISR;
  39028. 8010d2e: f06f 0305 mvn.w r3, #5
  39029. 8010d32: 607b str r3, [r7, #4]
  39030. 8010d34: e010 b.n 8010d58 <osKernelStart+0x3c>
  39031. }
  39032. else {
  39033. if (KernelState == osKernelReady) {
  39034. 8010d36: 4b0b ldr r3, [pc, #44] @ (8010d64 <osKernelStart+0x48>)
  39035. 8010d38: 681b ldr r3, [r3, #0]
  39036. 8010d3a: 2b01 cmp r3, #1
  39037. 8010d3c: d109 bne.n 8010d52 <osKernelStart+0x36>
  39038. /* Ensure SVC priority is at the reset value */
  39039. SVC_Setup();
  39040. 8010d3e: f7ff ffbf bl 8010cc0 <SVC_Setup>
  39041. /* Change state to enable IRQ masking check */
  39042. KernelState = osKernelRunning;
  39043. 8010d42: 4b08 ldr r3, [pc, #32] @ (8010d64 <osKernelStart+0x48>)
  39044. 8010d44: 2202 movs r2, #2
  39045. 8010d46: 601a str r2, [r3, #0]
  39046. /* Start the kernel scheduler */
  39047. vTaskStartScheduler();
  39048. 8010d48: f002 fccc bl 80136e4 <vTaskStartScheduler>
  39049. stat = osOK;
  39050. 8010d4c: 2300 movs r3, #0
  39051. 8010d4e: 607b str r3, [r7, #4]
  39052. 8010d50: e002 b.n 8010d58 <osKernelStart+0x3c>
  39053. } else {
  39054. stat = osError;
  39055. 8010d52: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39056. 8010d56: 607b str r3, [r7, #4]
  39057. }
  39058. }
  39059. return (stat);
  39060. 8010d58: 687b ldr r3, [r7, #4]
  39061. }
  39062. 8010d5a: 4618 mov r0, r3
  39063. 8010d5c: 3708 adds r7, #8
  39064. 8010d5e: 46bd mov sp, r7
  39065. 8010d60: bd80 pop {r7, pc}
  39066. 8010d62: bf00 nop
  39067. 8010d64: 240023cc .word 0x240023cc
  39068. 08010d68 <osKernelGetTickCount>:
  39069. }
  39070. return (lock);
  39071. }
  39072. uint32_t osKernelGetTickCount (void) {
  39073. 8010d68: b580 push {r7, lr}
  39074. 8010d6a: b082 sub sp, #8
  39075. 8010d6c: af00 add r7, sp, #0
  39076. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39077. 8010d6e: f3ef 8305 mrs r3, IPSR
  39078. 8010d72: 603b str r3, [r7, #0]
  39079. return(result);
  39080. 8010d74: 683b ldr r3, [r7, #0]
  39081. TickType_t ticks;
  39082. if (IS_IRQ()) {
  39083. 8010d76: 2b00 cmp r3, #0
  39084. 8010d78: d003 beq.n 8010d82 <osKernelGetTickCount+0x1a>
  39085. ticks = xTaskGetTickCountFromISR();
  39086. 8010d7a: f002 fddf bl 801393c <xTaskGetTickCountFromISR>
  39087. 8010d7e: 6078 str r0, [r7, #4]
  39088. 8010d80: e002 b.n 8010d88 <osKernelGetTickCount+0x20>
  39089. } else {
  39090. ticks = xTaskGetTickCount();
  39091. 8010d82: f002 fdcb bl 801391c <xTaskGetTickCount>
  39092. 8010d86: 6078 str r0, [r7, #4]
  39093. }
  39094. return (ticks);
  39095. 8010d88: 687b ldr r3, [r7, #4]
  39096. }
  39097. 8010d8a: 4618 mov r0, r3
  39098. 8010d8c: 3708 adds r7, #8
  39099. 8010d8e: 46bd mov sp, r7
  39100. 8010d90: bd80 pop {r7, pc}
  39101. 08010d92 <osThreadNew>:
  39102. return (configCPU_CLOCK_HZ);
  39103. }
  39104. /*---------------------------------------------------------------------------*/
  39105. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  39106. 8010d92: b580 push {r7, lr}
  39107. 8010d94: b08e sub sp, #56 @ 0x38
  39108. 8010d96: af04 add r7, sp, #16
  39109. 8010d98: 60f8 str r0, [r7, #12]
  39110. 8010d9a: 60b9 str r1, [r7, #8]
  39111. 8010d9c: 607a str r2, [r7, #4]
  39112. uint32_t stack;
  39113. TaskHandle_t hTask;
  39114. UBaseType_t prio;
  39115. int32_t mem;
  39116. hTask = NULL;
  39117. 8010d9e: 2300 movs r3, #0
  39118. 8010da0: 613b str r3, [r7, #16]
  39119. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39120. 8010da2: f3ef 8305 mrs r3, IPSR
  39121. 8010da6: 617b str r3, [r7, #20]
  39122. return(result);
  39123. 8010da8: 697b ldr r3, [r7, #20]
  39124. if (!IS_IRQ() && (func != NULL)) {
  39125. 8010daa: 2b00 cmp r3, #0
  39126. 8010dac: d17f bne.n 8010eae <osThreadNew+0x11c>
  39127. 8010dae: 68fb ldr r3, [r7, #12]
  39128. 8010db0: 2b00 cmp r3, #0
  39129. 8010db2: d07c beq.n 8010eae <osThreadNew+0x11c>
  39130. stack = configMINIMAL_STACK_SIZE;
  39131. 8010db4: f44f 7300 mov.w r3, #512 @ 0x200
  39132. 8010db8: 623b str r3, [r7, #32]
  39133. prio = (UBaseType_t)osPriorityNormal;
  39134. 8010dba: 2318 movs r3, #24
  39135. 8010dbc: 61fb str r3, [r7, #28]
  39136. name = NULL;
  39137. 8010dbe: 2300 movs r3, #0
  39138. 8010dc0: 627b str r3, [r7, #36] @ 0x24
  39139. mem = -1;
  39140. 8010dc2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39141. 8010dc6: 61bb str r3, [r7, #24]
  39142. if (attr != NULL) {
  39143. 8010dc8: 687b ldr r3, [r7, #4]
  39144. 8010dca: 2b00 cmp r3, #0
  39145. 8010dcc: d045 beq.n 8010e5a <osThreadNew+0xc8>
  39146. if (attr->name != NULL) {
  39147. 8010dce: 687b ldr r3, [r7, #4]
  39148. 8010dd0: 681b ldr r3, [r3, #0]
  39149. 8010dd2: 2b00 cmp r3, #0
  39150. 8010dd4: d002 beq.n 8010ddc <osThreadNew+0x4a>
  39151. name = attr->name;
  39152. 8010dd6: 687b ldr r3, [r7, #4]
  39153. 8010dd8: 681b ldr r3, [r3, #0]
  39154. 8010dda: 627b str r3, [r7, #36] @ 0x24
  39155. }
  39156. if (attr->priority != osPriorityNone) {
  39157. 8010ddc: 687b ldr r3, [r7, #4]
  39158. 8010dde: 699b ldr r3, [r3, #24]
  39159. 8010de0: 2b00 cmp r3, #0
  39160. 8010de2: d002 beq.n 8010dea <osThreadNew+0x58>
  39161. prio = (UBaseType_t)attr->priority;
  39162. 8010de4: 687b ldr r3, [r7, #4]
  39163. 8010de6: 699b ldr r3, [r3, #24]
  39164. 8010de8: 61fb str r3, [r7, #28]
  39165. }
  39166. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  39167. 8010dea: 69fb ldr r3, [r7, #28]
  39168. 8010dec: 2b00 cmp r3, #0
  39169. 8010dee: d008 beq.n 8010e02 <osThreadNew+0x70>
  39170. 8010df0: 69fb ldr r3, [r7, #28]
  39171. 8010df2: 2b38 cmp r3, #56 @ 0x38
  39172. 8010df4: d805 bhi.n 8010e02 <osThreadNew+0x70>
  39173. 8010df6: 687b ldr r3, [r7, #4]
  39174. 8010df8: 685b ldr r3, [r3, #4]
  39175. 8010dfa: f003 0301 and.w r3, r3, #1
  39176. 8010dfe: 2b00 cmp r3, #0
  39177. 8010e00: d001 beq.n 8010e06 <osThreadNew+0x74>
  39178. return (NULL);
  39179. 8010e02: 2300 movs r3, #0
  39180. 8010e04: e054 b.n 8010eb0 <osThreadNew+0x11e>
  39181. }
  39182. if (attr->stack_size > 0U) {
  39183. 8010e06: 687b ldr r3, [r7, #4]
  39184. 8010e08: 695b ldr r3, [r3, #20]
  39185. 8010e0a: 2b00 cmp r3, #0
  39186. 8010e0c: d003 beq.n 8010e16 <osThreadNew+0x84>
  39187. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  39188. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  39189. stack = attr->stack_size / sizeof(StackType_t);
  39190. 8010e0e: 687b ldr r3, [r7, #4]
  39191. 8010e10: 695b ldr r3, [r3, #20]
  39192. 8010e12: 089b lsrs r3, r3, #2
  39193. 8010e14: 623b str r3, [r7, #32]
  39194. }
  39195. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  39196. 8010e16: 687b ldr r3, [r7, #4]
  39197. 8010e18: 689b ldr r3, [r3, #8]
  39198. 8010e1a: 2b00 cmp r3, #0
  39199. 8010e1c: d00e beq.n 8010e3c <osThreadNew+0xaa>
  39200. 8010e1e: 687b ldr r3, [r7, #4]
  39201. 8010e20: 68db ldr r3, [r3, #12]
  39202. 8010e22: 2ba7 cmp r3, #167 @ 0xa7
  39203. 8010e24: d90a bls.n 8010e3c <osThreadNew+0xaa>
  39204. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  39205. 8010e26: 687b ldr r3, [r7, #4]
  39206. 8010e28: 691b ldr r3, [r3, #16]
  39207. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  39208. 8010e2a: 2b00 cmp r3, #0
  39209. 8010e2c: d006 beq.n 8010e3c <osThreadNew+0xaa>
  39210. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  39211. 8010e2e: 687b ldr r3, [r7, #4]
  39212. 8010e30: 695b ldr r3, [r3, #20]
  39213. 8010e32: 2b00 cmp r3, #0
  39214. 8010e34: d002 beq.n 8010e3c <osThreadNew+0xaa>
  39215. mem = 1;
  39216. 8010e36: 2301 movs r3, #1
  39217. 8010e38: 61bb str r3, [r7, #24]
  39218. 8010e3a: e010 b.n 8010e5e <osThreadNew+0xcc>
  39219. }
  39220. else {
  39221. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  39222. 8010e3c: 687b ldr r3, [r7, #4]
  39223. 8010e3e: 689b ldr r3, [r3, #8]
  39224. 8010e40: 2b00 cmp r3, #0
  39225. 8010e42: d10c bne.n 8010e5e <osThreadNew+0xcc>
  39226. 8010e44: 687b ldr r3, [r7, #4]
  39227. 8010e46: 68db ldr r3, [r3, #12]
  39228. 8010e48: 2b00 cmp r3, #0
  39229. 8010e4a: d108 bne.n 8010e5e <osThreadNew+0xcc>
  39230. 8010e4c: 687b ldr r3, [r7, #4]
  39231. 8010e4e: 691b ldr r3, [r3, #16]
  39232. 8010e50: 2b00 cmp r3, #0
  39233. 8010e52: d104 bne.n 8010e5e <osThreadNew+0xcc>
  39234. mem = 0;
  39235. 8010e54: 2300 movs r3, #0
  39236. 8010e56: 61bb str r3, [r7, #24]
  39237. 8010e58: e001 b.n 8010e5e <osThreadNew+0xcc>
  39238. }
  39239. }
  39240. }
  39241. else {
  39242. mem = 0;
  39243. 8010e5a: 2300 movs r3, #0
  39244. 8010e5c: 61bb str r3, [r7, #24]
  39245. }
  39246. if (mem == 1) {
  39247. 8010e5e: 69bb ldr r3, [r7, #24]
  39248. 8010e60: 2b01 cmp r3, #1
  39249. 8010e62: d110 bne.n 8010e86 <osThreadNew+0xf4>
  39250. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  39251. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  39252. 8010e64: 687b ldr r3, [r7, #4]
  39253. 8010e66: 691b ldr r3, [r3, #16]
  39254. (StaticTask_t *)attr->cb_mem);
  39255. 8010e68: 687a ldr r2, [r7, #4]
  39256. 8010e6a: 6892 ldr r2, [r2, #8]
  39257. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  39258. 8010e6c: 9202 str r2, [sp, #8]
  39259. 8010e6e: 9301 str r3, [sp, #4]
  39260. 8010e70: 69fb ldr r3, [r7, #28]
  39261. 8010e72: 9300 str r3, [sp, #0]
  39262. 8010e74: 68bb ldr r3, [r7, #8]
  39263. 8010e76: 6a3a ldr r2, [r7, #32]
  39264. 8010e78: 6a79 ldr r1, [r7, #36] @ 0x24
  39265. 8010e7a: 68f8 ldr r0, [r7, #12]
  39266. 8010e7c: f002 fa3e bl 80132fc <xTaskCreateStatic>
  39267. 8010e80: 4603 mov r3, r0
  39268. 8010e82: 613b str r3, [r7, #16]
  39269. 8010e84: e013 b.n 8010eae <osThreadNew+0x11c>
  39270. #endif
  39271. }
  39272. else {
  39273. if (mem == 0) {
  39274. 8010e86: 69bb ldr r3, [r7, #24]
  39275. 8010e88: 2b00 cmp r3, #0
  39276. 8010e8a: d110 bne.n 8010eae <osThreadNew+0x11c>
  39277. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  39278. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  39279. 8010e8c: 6a3b ldr r3, [r7, #32]
  39280. 8010e8e: b29a uxth r2, r3
  39281. 8010e90: f107 0310 add.w r3, r7, #16
  39282. 8010e94: 9301 str r3, [sp, #4]
  39283. 8010e96: 69fb ldr r3, [r7, #28]
  39284. 8010e98: 9300 str r3, [sp, #0]
  39285. 8010e9a: 68bb ldr r3, [r7, #8]
  39286. 8010e9c: 6a79 ldr r1, [r7, #36] @ 0x24
  39287. 8010e9e: 68f8 ldr r0, [r7, #12]
  39288. 8010ea0: f002 fa8c bl 80133bc <xTaskCreate>
  39289. 8010ea4: 4603 mov r3, r0
  39290. 8010ea6: 2b01 cmp r3, #1
  39291. 8010ea8: d001 beq.n 8010eae <osThreadNew+0x11c>
  39292. hTask = NULL;
  39293. 8010eaa: 2300 movs r3, #0
  39294. 8010eac: 613b str r3, [r7, #16]
  39295. #endif
  39296. }
  39297. }
  39298. }
  39299. return ((osThreadId_t)hTask);
  39300. 8010eae: 693b ldr r3, [r7, #16]
  39301. }
  39302. 8010eb0: 4618 mov r0, r3
  39303. 8010eb2: 3728 adds r7, #40 @ 0x28
  39304. 8010eb4: 46bd mov sp, r7
  39305. 8010eb6: bd80 pop {r7, pc}
  39306. 08010eb8 <osThreadGetId>:
  39307. }
  39308. return (name);
  39309. }
  39310. osThreadId_t osThreadGetId (void) {
  39311. 8010eb8: b580 push {r7, lr}
  39312. 8010eba: b082 sub sp, #8
  39313. 8010ebc: af00 add r7, sp, #0
  39314. osThreadId_t id;
  39315. id = (osThreadId_t)xTaskGetCurrentTaskHandle();
  39316. 8010ebe: f003 f8bd bl 801403c <xTaskGetCurrentTaskHandle>
  39317. 8010ec2: 6078 str r0, [r7, #4]
  39318. return (id);
  39319. 8010ec4: 687b ldr r3, [r7, #4]
  39320. }
  39321. 8010ec6: 4618 mov r0, r3
  39322. 8010ec8: 3708 adds r7, #8
  39323. 8010eca: 46bd mov sp, r7
  39324. 8010ecc: bd80 pop {r7, pc}
  39325. 08010ece <osDelay>:
  39326. /* Return flags before clearing */
  39327. return (rflags);
  39328. }
  39329. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  39330. osStatus_t osDelay (uint32_t ticks) {
  39331. 8010ece: b580 push {r7, lr}
  39332. 8010ed0: b084 sub sp, #16
  39333. 8010ed2: af00 add r7, sp, #0
  39334. 8010ed4: 6078 str r0, [r7, #4]
  39335. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39336. 8010ed6: f3ef 8305 mrs r3, IPSR
  39337. 8010eda: 60bb str r3, [r7, #8]
  39338. return(result);
  39339. 8010edc: 68bb ldr r3, [r7, #8]
  39340. osStatus_t stat;
  39341. if (IS_IRQ()) {
  39342. 8010ede: 2b00 cmp r3, #0
  39343. 8010ee0: d003 beq.n 8010eea <osDelay+0x1c>
  39344. stat = osErrorISR;
  39345. 8010ee2: f06f 0305 mvn.w r3, #5
  39346. 8010ee6: 60fb str r3, [r7, #12]
  39347. 8010ee8: e007 b.n 8010efa <osDelay+0x2c>
  39348. }
  39349. else {
  39350. stat = osOK;
  39351. 8010eea: 2300 movs r3, #0
  39352. 8010eec: 60fb str r3, [r7, #12]
  39353. if (ticks != 0U) {
  39354. 8010eee: 687b ldr r3, [r7, #4]
  39355. 8010ef0: 2b00 cmp r3, #0
  39356. 8010ef2: d002 beq.n 8010efa <osDelay+0x2c>
  39357. vTaskDelay(ticks);
  39358. 8010ef4: 6878 ldr r0, [r7, #4]
  39359. 8010ef6: f002 fbbf bl 8013678 <vTaskDelay>
  39360. }
  39361. }
  39362. return (stat);
  39363. 8010efa: 68fb ldr r3, [r7, #12]
  39364. }
  39365. 8010efc: 4618 mov r0, r3
  39366. 8010efe: 3710 adds r7, #16
  39367. 8010f00: 46bd mov sp, r7
  39368. 8010f02: bd80 pop {r7, pc}
  39369. 08010f04 <TimerCallback>:
  39370. }
  39371. /*---------------------------------------------------------------------------*/
  39372. #if (configUSE_OS2_TIMER == 1)
  39373. static void TimerCallback (TimerHandle_t hTimer) {
  39374. 8010f04: b580 push {r7, lr}
  39375. 8010f06: b084 sub sp, #16
  39376. 8010f08: af00 add r7, sp, #0
  39377. 8010f0a: 6078 str r0, [r7, #4]
  39378. TimerCallback_t *callb;
  39379. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  39380. 8010f0c: 6878 ldr r0, [r7, #4]
  39381. 8010f0e: f004 f8ad bl 801506c <pvTimerGetTimerID>
  39382. 8010f12: 60f8 str r0, [r7, #12]
  39383. if (callb != NULL) {
  39384. 8010f14: 68fb ldr r3, [r7, #12]
  39385. 8010f16: 2b00 cmp r3, #0
  39386. 8010f18: d005 beq.n 8010f26 <TimerCallback+0x22>
  39387. callb->func (callb->arg);
  39388. 8010f1a: 68fb ldr r3, [r7, #12]
  39389. 8010f1c: 681b ldr r3, [r3, #0]
  39390. 8010f1e: 68fa ldr r2, [r7, #12]
  39391. 8010f20: 6852 ldr r2, [r2, #4]
  39392. 8010f22: 4610 mov r0, r2
  39393. 8010f24: 4798 blx r3
  39394. }
  39395. }
  39396. 8010f26: bf00 nop
  39397. 8010f28: 3710 adds r7, #16
  39398. 8010f2a: 46bd mov sp, r7
  39399. 8010f2c: bd80 pop {r7, pc}
  39400. ...
  39401. 08010f30 <osTimerNew>:
  39402. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  39403. 8010f30: b580 push {r7, lr}
  39404. 8010f32: b08c sub sp, #48 @ 0x30
  39405. 8010f34: af02 add r7, sp, #8
  39406. 8010f36: 60f8 str r0, [r7, #12]
  39407. 8010f38: 607a str r2, [r7, #4]
  39408. 8010f3a: 603b str r3, [r7, #0]
  39409. 8010f3c: 460b mov r3, r1
  39410. 8010f3e: 72fb strb r3, [r7, #11]
  39411. TimerHandle_t hTimer;
  39412. TimerCallback_t *callb;
  39413. UBaseType_t reload;
  39414. int32_t mem;
  39415. hTimer = NULL;
  39416. 8010f40: 2300 movs r3, #0
  39417. 8010f42: 623b str r3, [r7, #32]
  39418. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39419. 8010f44: f3ef 8305 mrs r3, IPSR
  39420. 8010f48: 613b str r3, [r7, #16]
  39421. return(result);
  39422. 8010f4a: 693b ldr r3, [r7, #16]
  39423. if (!IS_IRQ() && (func != NULL)) {
  39424. 8010f4c: 2b00 cmp r3, #0
  39425. 8010f4e: d163 bne.n 8011018 <osTimerNew+0xe8>
  39426. 8010f50: 68fb ldr r3, [r7, #12]
  39427. 8010f52: 2b00 cmp r3, #0
  39428. 8010f54: d060 beq.n 8011018 <osTimerNew+0xe8>
  39429. /* Allocate memory to store callback function and argument */
  39430. callb = pvPortMalloc (sizeof(TimerCallback_t));
  39431. 8010f56: 2008 movs r0, #8
  39432. 8010f58: f004 fb00 bl 801555c <pvPortMalloc>
  39433. 8010f5c: 6178 str r0, [r7, #20]
  39434. if (callb != NULL) {
  39435. 8010f5e: 697b ldr r3, [r7, #20]
  39436. 8010f60: 2b00 cmp r3, #0
  39437. 8010f62: d059 beq.n 8011018 <osTimerNew+0xe8>
  39438. callb->func = func;
  39439. 8010f64: 697b ldr r3, [r7, #20]
  39440. 8010f66: 68fa ldr r2, [r7, #12]
  39441. 8010f68: 601a str r2, [r3, #0]
  39442. callb->arg = argument;
  39443. 8010f6a: 697b ldr r3, [r7, #20]
  39444. 8010f6c: 687a ldr r2, [r7, #4]
  39445. 8010f6e: 605a str r2, [r3, #4]
  39446. if (type == osTimerOnce) {
  39447. 8010f70: 7afb ldrb r3, [r7, #11]
  39448. 8010f72: 2b00 cmp r3, #0
  39449. 8010f74: d102 bne.n 8010f7c <osTimerNew+0x4c>
  39450. reload = pdFALSE;
  39451. 8010f76: 2300 movs r3, #0
  39452. 8010f78: 61fb str r3, [r7, #28]
  39453. 8010f7a: e001 b.n 8010f80 <osTimerNew+0x50>
  39454. } else {
  39455. reload = pdTRUE;
  39456. 8010f7c: 2301 movs r3, #1
  39457. 8010f7e: 61fb str r3, [r7, #28]
  39458. }
  39459. mem = -1;
  39460. 8010f80: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39461. 8010f84: 61bb str r3, [r7, #24]
  39462. name = NULL;
  39463. 8010f86: 2300 movs r3, #0
  39464. 8010f88: 627b str r3, [r7, #36] @ 0x24
  39465. if (attr != NULL) {
  39466. 8010f8a: 683b ldr r3, [r7, #0]
  39467. 8010f8c: 2b00 cmp r3, #0
  39468. 8010f8e: d01c beq.n 8010fca <osTimerNew+0x9a>
  39469. if (attr->name != NULL) {
  39470. 8010f90: 683b ldr r3, [r7, #0]
  39471. 8010f92: 681b ldr r3, [r3, #0]
  39472. 8010f94: 2b00 cmp r3, #0
  39473. 8010f96: d002 beq.n 8010f9e <osTimerNew+0x6e>
  39474. name = attr->name;
  39475. 8010f98: 683b ldr r3, [r7, #0]
  39476. 8010f9a: 681b ldr r3, [r3, #0]
  39477. 8010f9c: 627b str r3, [r7, #36] @ 0x24
  39478. }
  39479. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  39480. 8010f9e: 683b ldr r3, [r7, #0]
  39481. 8010fa0: 689b ldr r3, [r3, #8]
  39482. 8010fa2: 2b00 cmp r3, #0
  39483. 8010fa4: d006 beq.n 8010fb4 <osTimerNew+0x84>
  39484. 8010fa6: 683b ldr r3, [r7, #0]
  39485. 8010fa8: 68db ldr r3, [r3, #12]
  39486. 8010faa: 2b2b cmp r3, #43 @ 0x2b
  39487. 8010fac: d902 bls.n 8010fb4 <osTimerNew+0x84>
  39488. mem = 1;
  39489. 8010fae: 2301 movs r3, #1
  39490. 8010fb0: 61bb str r3, [r7, #24]
  39491. 8010fb2: e00c b.n 8010fce <osTimerNew+0x9e>
  39492. }
  39493. else {
  39494. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  39495. 8010fb4: 683b ldr r3, [r7, #0]
  39496. 8010fb6: 689b ldr r3, [r3, #8]
  39497. 8010fb8: 2b00 cmp r3, #0
  39498. 8010fba: d108 bne.n 8010fce <osTimerNew+0x9e>
  39499. 8010fbc: 683b ldr r3, [r7, #0]
  39500. 8010fbe: 68db ldr r3, [r3, #12]
  39501. 8010fc0: 2b00 cmp r3, #0
  39502. 8010fc2: d104 bne.n 8010fce <osTimerNew+0x9e>
  39503. mem = 0;
  39504. 8010fc4: 2300 movs r3, #0
  39505. 8010fc6: 61bb str r3, [r7, #24]
  39506. 8010fc8: e001 b.n 8010fce <osTimerNew+0x9e>
  39507. }
  39508. }
  39509. }
  39510. else {
  39511. mem = 0;
  39512. 8010fca: 2300 movs r3, #0
  39513. 8010fcc: 61bb str r3, [r7, #24]
  39514. }
  39515. if (mem == 1) {
  39516. 8010fce: 69bb ldr r3, [r7, #24]
  39517. 8010fd0: 2b01 cmp r3, #1
  39518. 8010fd2: d10c bne.n 8010fee <osTimerNew+0xbe>
  39519. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  39520. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  39521. 8010fd4: 683b ldr r3, [r7, #0]
  39522. 8010fd6: 689b ldr r3, [r3, #8]
  39523. 8010fd8: 9301 str r3, [sp, #4]
  39524. 8010fda: 4b12 ldr r3, [pc, #72] @ (8011024 <osTimerNew+0xf4>)
  39525. 8010fdc: 9300 str r3, [sp, #0]
  39526. 8010fde: 697b ldr r3, [r7, #20]
  39527. 8010fe0: 69fa ldr r2, [r7, #28]
  39528. 8010fe2: 2101 movs r1, #1
  39529. 8010fe4: 6a78 ldr r0, [r7, #36] @ 0x24
  39530. 8010fe6: f003 fcb4 bl 8014952 <xTimerCreateStatic>
  39531. 8010fea: 6238 str r0, [r7, #32]
  39532. 8010fec: e00b b.n 8011006 <osTimerNew+0xd6>
  39533. #endif
  39534. }
  39535. else {
  39536. if (mem == 0) {
  39537. 8010fee: 69bb ldr r3, [r7, #24]
  39538. 8010ff0: 2b00 cmp r3, #0
  39539. 8010ff2: d108 bne.n 8011006 <osTimerNew+0xd6>
  39540. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  39541. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  39542. 8010ff4: 4b0b ldr r3, [pc, #44] @ (8011024 <osTimerNew+0xf4>)
  39543. 8010ff6: 9300 str r3, [sp, #0]
  39544. 8010ff8: 697b ldr r3, [r7, #20]
  39545. 8010ffa: 69fa ldr r2, [r7, #28]
  39546. 8010ffc: 2101 movs r1, #1
  39547. 8010ffe: 6a78 ldr r0, [r7, #36] @ 0x24
  39548. 8011000: f003 fc86 bl 8014910 <xTimerCreate>
  39549. 8011004: 6238 str r0, [r7, #32]
  39550. #endif
  39551. }
  39552. }
  39553. if ((hTimer == NULL) && (callb != NULL)) {
  39554. 8011006: 6a3b ldr r3, [r7, #32]
  39555. 8011008: 2b00 cmp r3, #0
  39556. 801100a: d105 bne.n 8011018 <osTimerNew+0xe8>
  39557. 801100c: 697b ldr r3, [r7, #20]
  39558. 801100e: 2b00 cmp r3, #0
  39559. 8011010: d002 beq.n 8011018 <osTimerNew+0xe8>
  39560. vPortFree (callb);
  39561. 8011012: 6978 ldr r0, [r7, #20]
  39562. 8011014: f004 fb70 bl 80156f8 <vPortFree>
  39563. }
  39564. }
  39565. }
  39566. return ((osTimerId_t)hTimer);
  39567. 8011018: 6a3b ldr r3, [r7, #32]
  39568. }
  39569. 801101a: 4618 mov r0, r3
  39570. 801101c: 3728 adds r7, #40 @ 0x28
  39571. 801101e: 46bd mov sp, r7
  39572. 8011020: bd80 pop {r7, pc}
  39573. 8011022: bf00 nop
  39574. 8011024: 08010f05 .word 0x08010f05
  39575. 08011028 <osMutexNew>:
  39576. }
  39577. /*---------------------------------------------------------------------------*/
  39578. #if (configUSE_OS2_MUTEX == 1)
  39579. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  39580. 8011028: b580 push {r7, lr}
  39581. 801102a: b088 sub sp, #32
  39582. 801102c: af00 add r7, sp, #0
  39583. 801102e: 6078 str r0, [r7, #4]
  39584. int32_t mem;
  39585. #if (configQUEUE_REGISTRY_SIZE > 0)
  39586. const char *name;
  39587. #endif
  39588. hMutex = NULL;
  39589. 8011030: 2300 movs r3, #0
  39590. 8011032: 61fb str r3, [r7, #28]
  39591. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39592. 8011034: f3ef 8305 mrs r3, IPSR
  39593. 8011038: 60bb str r3, [r7, #8]
  39594. return(result);
  39595. 801103a: 68bb ldr r3, [r7, #8]
  39596. if (!IS_IRQ()) {
  39597. 801103c: 2b00 cmp r3, #0
  39598. 801103e: d174 bne.n 801112a <osMutexNew+0x102>
  39599. if (attr != NULL) {
  39600. 8011040: 687b ldr r3, [r7, #4]
  39601. 8011042: 2b00 cmp r3, #0
  39602. 8011044: d003 beq.n 801104e <osMutexNew+0x26>
  39603. type = attr->attr_bits;
  39604. 8011046: 687b ldr r3, [r7, #4]
  39605. 8011048: 685b ldr r3, [r3, #4]
  39606. 801104a: 61bb str r3, [r7, #24]
  39607. 801104c: e001 b.n 8011052 <osMutexNew+0x2a>
  39608. } else {
  39609. type = 0U;
  39610. 801104e: 2300 movs r3, #0
  39611. 8011050: 61bb str r3, [r7, #24]
  39612. }
  39613. if ((type & osMutexRecursive) == osMutexRecursive) {
  39614. 8011052: 69bb ldr r3, [r7, #24]
  39615. 8011054: f003 0301 and.w r3, r3, #1
  39616. 8011058: 2b00 cmp r3, #0
  39617. 801105a: d002 beq.n 8011062 <osMutexNew+0x3a>
  39618. rmtx = 1U;
  39619. 801105c: 2301 movs r3, #1
  39620. 801105e: 617b str r3, [r7, #20]
  39621. 8011060: e001 b.n 8011066 <osMutexNew+0x3e>
  39622. } else {
  39623. rmtx = 0U;
  39624. 8011062: 2300 movs r3, #0
  39625. 8011064: 617b str r3, [r7, #20]
  39626. }
  39627. if ((type & osMutexRobust) != osMutexRobust) {
  39628. 8011066: 69bb ldr r3, [r7, #24]
  39629. 8011068: f003 0308 and.w r3, r3, #8
  39630. 801106c: 2b00 cmp r3, #0
  39631. 801106e: d15c bne.n 801112a <osMutexNew+0x102>
  39632. mem = -1;
  39633. 8011070: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  39634. 8011074: 613b str r3, [r7, #16]
  39635. if (attr != NULL) {
  39636. 8011076: 687b ldr r3, [r7, #4]
  39637. 8011078: 2b00 cmp r3, #0
  39638. 801107a: d015 beq.n 80110a8 <osMutexNew+0x80>
  39639. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  39640. 801107c: 687b ldr r3, [r7, #4]
  39641. 801107e: 689b ldr r3, [r3, #8]
  39642. 8011080: 2b00 cmp r3, #0
  39643. 8011082: d006 beq.n 8011092 <osMutexNew+0x6a>
  39644. 8011084: 687b ldr r3, [r7, #4]
  39645. 8011086: 68db ldr r3, [r3, #12]
  39646. 8011088: 2b4f cmp r3, #79 @ 0x4f
  39647. 801108a: d902 bls.n 8011092 <osMutexNew+0x6a>
  39648. mem = 1;
  39649. 801108c: 2301 movs r3, #1
  39650. 801108e: 613b str r3, [r7, #16]
  39651. 8011090: e00c b.n 80110ac <osMutexNew+0x84>
  39652. }
  39653. else {
  39654. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  39655. 8011092: 687b ldr r3, [r7, #4]
  39656. 8011094: 689b ldr r3, [r3, #8]
  39657. 8011096: 2b00 cmp r3, #0
  39658. 8011098: d108 bne.n 80110ac <osMutexNew+0x84>
  39659. 801109a: 687b ldr r3, [r7, #4]
  39660. 801109c: 68db ldr r3, [r3, #12]
  39661. 801109e: 2b00 cmp r3, #0
  39662. 80110a0: d104 bne.n 80110ac <osMutexNew+0x84>
  39663. mem = 0;
  39664. 80110a2: 2300 movs r3, #0
  39665. 80110a4: 613b str r3, [r7, #16]
  39666. 80110a6: e001 b.n 80110ac <osMutexNew+0x84>
  39667. }
  39668. }
  39669. }
  39670. else {
  39671. mem = 0;
  39672. 80110a8: 2300 movs r3, #0
  39673. 80110aa: 613b str r3, [r7, #16]
  39674. }
  39675. if (mem == 1) {
  39676. 80110ac: 693b ldr r3, [r7, #16]
  39677. 80110ae: 2b01 cmp r3, #1
  39678. 80110b0: d112 bne.n 80110d8 <osMutexNew+0xb0>
  39679. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  39680. if (rmtx != 0U) {
  39681. 80110b2: 697b ldr r3, [r7, #20]
  39682. 80110b4: 2b00 cmp r3, #0
  39683. 80110b6: d007 beq.n 80110c8 <osMutexNew+0xa0>
  39684. #if (configUSE_RECURSIVE_MUTEXES == 1)
  39685. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  39686. 80110b8: 687b ldr r3, [r7, #4]
  39687. 80110ba: 689b ldr r3, [r3, #8]
  39688. 80110bc: 4619 mov r1, r3
  39689. 80110be: 2004 movs r0, #4
  39690. 80110c0: f000 fdd9 bl 8011c76 <xQueueCreateMutexStatic>
  39691. 80110c4: 61f8 str r0, [r7, #28]
  39692. 80110c6: e016 b.n 80110f6 <osMutexNew+0xce>
  39693. #endif
  39694. }
  39695. else {
  39696. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  39697. 80110c8: 687b ldr r3, [r7, #4]
  39698. 80110ca: 689b ldr r3, [r3, #8]
  39699. 80110cc: 4619 mov r1, r3
  39700. 80110ce: 2001 movs r0, #1
  39701. 80110d0: f000 fdd1 bl 8011c76 <xQueueCreateMutexStatic>
  39702. 80110d4: 61f8 str r0, [r7, #28]
  39703. 80110d6: e00e b.n 80110f6 <osMutexNew+0xce>
  39704. }
  39705. #endif
  39706. }
  39707. else {
  39708. if (mem == 0) {
  39709. 80110d8: 693b ldr r3, [r7, #16]
  39710. 80110da: 2b00 cmp r3, #0
  39711. 80110dc: d10b bne.n 80110f6 <osMutexNew+0xce>
  39712. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  39713. if (rmtx != 0U) {
  39714. 80110de: 697b ldr r3, [r7, #20]
  39715. 80110e0: 2b00 cmp r3, #0
  39716. 80110e2: d004 beq.n 80110ee <osMutexNew+0xc6>
  39717. #if (configUSE_RECURSIVE_MUTEXES == 1)
  39718. hMutex = xSemaphoreCreateRecursiveMutex ();
  39719. 80110e4: 2004 movs r0, #4
  39720. 80110e6: f000 fdae bl 8011c46 <xQueueCreateMutex>
  39721. 80110ea: 61f8 str r0, [r7, #28]
  39722. 80110ec: e003 b.n 80110f6 <osMutexNew+0xce>
  39723. #endif
  39724. } else {
  39725. hMutex = xSemaphoreCreateMutex ();
  39726. 80110ee: 2001 movs r0, #1
  39727. 80110f0: f000 fda9 bl 8011c46 <xQueueCreateMutex>
  39728. 80110f4: 61f8 str r0, [r7, #28]
  39729. #endif
  39730. }
  39731. }
  39732. #if (configQUEUE_REGISTRY_SIZE > 0)
  39733. if (hMutex != NULL) {
  39734. 80110f6: 69fb ldr r3, [r7, #28]
  39735. 80110f8: 2b00 cmp r3, #0
  39736. 80110fa: d00c beq.n 8011116 <osMutexNew+0xee>
  39737. if (attr != NULL) {
  39738. 80110fc: 687b ldr r3, [r7, #4]
  39739. 80110fe: 2b00 cmp r3, #0
  39740. 8011100: d003 beq.n 801110a <osMutexNew+0xe2>
  39741. name = attr->name;
  39742. 8011102: 687b ldr r3, [r7, #4]
  39743. 8011104: 681b ldr r3, [r3, #0]
  39744. 8011106: 60fb str r3, [r7, #12]
  39745. 8011108: e001 b.n 801110e <osMutexNew+0xe6>
  39746. } else {
  39747. name = NULL;
  39748. 801110a: 2300 movs r3, #0
  39749. 801110c: 60fb str r3, [r7, #12]
  39750. }
  39751. vQueueAddToRegistry (hMutex, name);
  39752. 801110e: 68f9 ldr r1, [r7, #12]
  39753. 8011110: 69f8 ldr r0, [r7, #28]
  39754. 8011112: f001 fcd3 bl 8012abc <vQueueAddToRegistry>
  39755. }
  39756. #endif
  39757. if ((hMutex != NULL) && (rmtx != 0U)) {
  39758. 8011116: 69fb ldr r3, [r7, #28]
  39759. 8011118: 2b00 cmp r3, #0
  39760. 801111a: d006 beq.n 801112a <osMutexNew+0x102>
  39761. 801111c: 697b ldr r3, [r7, #20]
  39762. 801111e: 2b00 cmp r3, #0
  39763. 8011120: d003 beq.n 801112a <osMutexNew+0x102>
  39764. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  39765. 8011122: 69fb ldr r3, [r7, #28]
  39766. 8011124: f043 0301 orr.w r3, r3, #1
  39767. 8011128: 61fb str r3, [r7, #28]
  39768. }
  39769. }
  39770. }
  39771. return ((osMutexId_t)hMutex);
  39772. 801112a: 69fb ldr r3, [r7, #28]
  39773. }
  39774. 801112c: 4618 mov r0, r3
  39775. 801112e: 3720 adds r7, #32
  39776. 8011130: 46bd mov sp, r7
  39777. 8011132: bd80 pop {r7, pc}
  39778. 08011134 <osMutexAcquire>:
  39779. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  39780. 8011134: b580 push {r7, lr}
  39781. 8011136: b086 sub sp, #24
  39782. 8011138: af00 add r7, sp, #0
  39783. 801113a: 6078 str r0, [r7, #4]
  39784. 801113c: 6039 str r1, [r7, #0]
  39785. SemaphoreHandle_t hMutex;
  39786. osStatus_t stat;
  39787. uint32_t rmtx;
  39788. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  39789. 801113e: 687b ldr r3, [r7, #4]
  39790. 8011140: f023 0301 bic.w r3, r3, #1
  39791. 8011144: 613b str r3, [r7, #16]
  39792. rmtx = (uint32_t)mutex_id & 1U;
  39793. 8011146: 687b ldr r3, [r7, #4]
  39794. 8011148: f003 0301 and.w r3, r3, #1
  39795. 801114c: 60fb str r3, [r7, #12]
  39796. stat = osOK;
  39797. 801114e: 2300 movs r3, #0
  39798. 8011150: 617b str r3, [r7, #20]
  39799. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39800. 8011152: f3ef 8305 mrs r3, IPSR
  39801. 8011156: 60bb str r3, [r7, #8]
  39802. return(result);
  39803. 8011158: 68bb ldr r3, [r7, #8]
  39804. if (IS_IRQ()) {
  39805. 801115a: 2b00 cmp r3, #0
  39806. 801115c: d003 beq.n 8011166 <osMutexAcquire+0x32>
  39807. stat = osErrorISR;
  39808. 801115e: f06f 0305 mvn.w r3, #5
  39809. 8011162: 617b str r3, [r7, #20]
  39810. 8011164: e02c b.n 80111c0 <osMutexAcquire+0x8c>
  39811. }
  39812. else if (hMutex == NULL) {
  39813. 8011166: 693b ldr r3, [r7, #16]
  39814. 8011168: 2b00 cmp r3, #0
  39815. 801116a: d103 bne.n 8011174 <osMutexAcquire+0x40>
  39816. stat = osErrorParameter;
  39817. 801116c: f06f 0303 mvn.w r3, #3
  39818. 8011170: 617b str r3, [r7, #20]
  39819. 8011172: e025 b.n 80111c0 <osMutexAcquire+0x8c>
  39820. }
  39821. else {
  39822. if (rmtx != 0U) {
  39823. 8011174: 68fb ldr r3, [r7, #12]
  39824. 8011176: 2b00 cmp r3, #0
  39825. 8011178: d011 beq.n 801119e <osMutexAcquire+0x6a>
  39826. #if (configUSE_RECURSIVE_MUTEXES == 1)
  39827. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  39828. 801117a: 6839 ldr r1, [r7, #0]
  39829. 801117c: 6938 ldr r0, [r7, #16]
  39830. 801117e: f000 fdca bl 8011d16 <xQueueTakeMutexRecursive>
  39831. 8011182: 4603 mov r3, r0
  39832. 8011184: 2b01 cmp r3, #1
  39833. 8011186: d01b beq.n 80111c0 <osMutexAcquire+0x8c>
  39834. if (timeout != 0U) {
  39835. 8011188: 683b ldr r3, [r7, #0]
  39836. 801118a: 2b00 cmp r3, #0
  39837. 801118c: d003 beq.n 8011196 <osMutexAcquire+0x62>
  39838. stat = osErrorTimeout;
  39839. 801118e: f06f 0301 mvn.w r3, #1
  39840. 8011192: 617b str r3, [r7, #20]
  39841. 8011194: e014 b.n 80111c0 <osMutexAcquire+0x8c>
  39842. } else {
  39843. stat = osErrorResource;
  39844. 8011196: f06f 0302 mvn.w r3, #2
  39845. 801119a: 617b str r3, [r7, #20]
  39846. 801119c: e010 b.n 80111c0 <osMutexAcquire+0x8c>
  39847. }
  39848. }
  39849. #endif
  39850. }
  39851. else {
  39852. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  39853. 801119e: 6839 ldr r1, [r7, #0]
  39854. 80111a0: 6938 ldr r0, [r7, #16]
  39855. 80111a2: f001 f96f bl 8012484 <xQueueSemaphoreTake>
  39856. 80111a6: 4603 mov r3, r0
  39857. 80111a8: 2b01 cmp r3, #1
  39858. 80111aa: d009 beq.n 80111c0 <osMutexAcquire+0x8c>
  39859. if (timeout != 0U) {
  39860. 80111ac: 683b ldr r3, [r7, #0]
  39861. 80111ae: 2b00 cmp r3, #0
  39862. 80111b0: d003 beq.n 80111ba <osMutexAcquire+0x86>
  39863. stat = osErrorTimeout;
  39864. 80111b2: f06f 0301 mvn.w r3, #1
  39865. 80111b6: 617b str r3, [r7, #20]
  39866. 80111b8: e002 b.n 80111c0 <osMutexAcquire+0x8c>
  39867. } else {
  39868. stat = osErrorResource;
  39869. 80111ba: f06f 0302 mvn.w r3, #2
  39870. 80111be: 617b str r3, [r7, #20]
  39871. }
  39872. }
  39873. }
  39874. }
  39875. return (stat);
  39876. 80111c0: 697b ldr r3, [r7, #20]
  39877. }
  39878. 80111c2: 4618 mov r0, r3
  39879. 80111c4: 3718 adds r7, #24
  39880. 80111c6: 46bd mov sp, r7
  39881. 80111c8: bd80 pop {r7, pc}
  39882. 080111ca <osMutexRelease>:
  39883. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  39884. 80111ca: b580 push {r7, lr}
  39885. 80111cc: b086 sub sp, #24
  39886. 80111ce: af00 add r7, sp, #0
  39887. 80111d0: 6078 str r0, [r7, #4]
  39888. SemaphoreHandle_t hMutex;
  39889. osStatus_t stat;
  39890. uint32_t rmtx;
  39891. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  39892. 80111d2: 687b ldr r3, [r7, #4]
  39893. 80111d4: f023 0301 bic.w r3, r3, #1
  39894. 80111d8: 613b str r3, [r7, #16]
  39895. rmtx = (uint32_t)mutex_id & 1U;
  39896. 80111da: 687b ldr r3, [r7, #4]
  39897. 80111dc: f003 0301 and.w r3, r3, #1
  39898. 80111e0: 60fb str r3, [r7, #12]
  39899. stat = osOK;
  39900. 80111e2: 2300 movs r3, #0
  39901. 80111e4: 617b str r3, [r7, #20]
  39902. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39903. 80111e6: f3ef 8305 mrs r3, IPSR
  39904. 80111ea: 60bb str r3, [r7, #8]
  39905. return(result);
  39906. 80111ec: 68bb ldr r3, [r7, #8]
  39907. if (IS_IRQ()) {
  39908. 80111ee: 2b00 cmp r3, #0
  39909. 80111f0: d003 beq.n 80111fa <osMutexRelease+0x30>
  39910. stat = osErrorISR;
  39911. 80111f2: f06f 0305 mvn.w r3, #5
  39912. 80111f6: 617b str r3, [r7, #20]
  39913. 80111f8: e01f b.n 801123a <osMutexRelease+0x70>
  39914. }
  39915. else if (hMutex == NULL) {
  39916. 80111fa: 693b ldr r3, [r7, #16]
  39917. 80111fc: 2b00 cmp r3, #0
  39918. 80111fe: d103 bne.n 8011208 <osMutexRelease+0x3e>
  39919. stat = osErrorParameter;
  39920. 8011200: f06f 0303 mvn.w r3, #3
  39921. 8011204: 617b str r3, [r7, #20]
  39922. 8011206: e018 b.n 801123a <osMutexRelease+0x70>
  39923. }
  39924. else {
  39925. if (rmtx != 0U) {
  39926. 8011208: 68fb ldr r3, [r7, #12]
  39927. 801120a: 2b00 cmp r3, #0
  39928. 801120c: d009 beq.n 8011222 <osMutexRelease+0x58>
  39929. #if (configUSE_RECURSIVE_MUTEXES == 1)
  39930. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  39931. 801120e: 6938 ldr r0, [r7, #16]
  39932. 8011210: f000 fd4c bl 8011cac <xQueueGiveMutexRecursive>
  39933. 8011214: 4603 mov r3, r0
  39934. 8011216: 2b01 cmp r3, #1
  39935. 8011218: d00f beq.n 801123a <osMutexRelease+0x70>
  39936. stat = osErrorResource;
  39937. 801121a: f06f 0302 mvn.w r3, #2
  39938. 801121e: 617b str r3, [r7, #20]
  39939. 8011220: e00b b.n 801123a <osMutexRelease+0x70>
  39940. }
  39941. #endif
  39942. }
  39943. else {
  39944. if (xSemaphoreGive (hMutex) != pdPASS) {
  39945. 8011222: 2300 movs r3, #0
  39946. 8011224: 2200 movs r2, #0
  39947. 8011226: 2100 movs r1, #0
  39948. 8011228: 6938 ldr r0, [r7, #16]
  39949. 801122a: f000 fe19 bl 8011e60 <xQueueGenericSend>
  39950. 801122e: 4603 mov r3, r0
  39951. 8011230: 2b01 cmp r3, #1
  39952. 8011232: d002 beq.n 801123a <osMutexRelease+0x70>
  39953. stat = osErrorResource;
  39954. 8011234: f06f 0302 mvn.w r3, #2
  39955. 8011238: 617b str r3, [r7, #20]
  39956. }
  39957. }
  39958. }
  39959. return (stat);
  39960. 801123a: 697b ldr r3, [r7, #20]
  39961. }
  39962. 801123c: 4618 mov r0, r3
  39963. 801123e: 3718 adds r7, #24
  39964. 8011240: 46bd mov sp, r7
  39965. 8011242: bd80 pop {r7, pc}
  39966. 08011244 <osSemaphoreNew>:
  39967. }
  39968. #endif /* (configUSE_OS2_MUTEX == 1) */
  39969. /*---------------------------------------------------------------------------*/
  39970. osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr) {
  39971. 8011244: b580 push {r7, lr}
  39972. 8011246: b08a sub sp, #40 @ 0x28
  39973. 8011248: af02 add r7, sp, #8
  39974. 801124a: 60f8 str r0, [r7, #12]
  39975. 801124c: 60b9 str r1, [r7, #8]
  39976. 801124e: 607a str r2, [r7, #4]
  39977. int32_t mem;
  39978. #if (configQUEUE_REGISTRY_SIZE > 0)
  39979. const char *name;
  39980. #endif
  39981. hSemaphore = NULL;
  39982. 8011250: 2300 movs r3, #0
  39983. 8011252: 61fb str r3, [r7, #28]
  39984. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  39985. 8011254: f3ef 8305 mrs r3, IPSR
  39986. 8011258: 613b str r3, [r7, #16]
  39987. return(result);
  39988. 801125a: 693b ldr r3, [r7, #16]
  39989. if (!IS_IRQ() && (max_count > 0U) && (initial_count <= max_count)) {
  39990. 801125c: 2b00 cmp r3, #0
  39991. 801125e: d175 bne.n 801134c <osSemaphoreNew+0x108>
  39992. 8011260: 68fb ldr r3, [r7, #12]
  39993. 8011262: 2b00 cmp r3, #0
  39994. 8011264: d072 beq.n 801134c <osSemaphoreNew+0x108>
  39995. 8011266: 68ba ldr r2, [r7, #8]
  39996. 8011268: 68fb ldr r3, [r7, #12]
  39997. 801126a: 429a cmp r2, r3
  39998. 801126c: d86e bhi.n 801134c <osSemaphoreNew+0x108>
  39999. mem = -1;
  40000. 801126e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  40001. 8011272: 61bb str r3, [r7, #24]
  40002. if (attr != NULL) {
  40003. 8011274: 687b ldr r3, [r7, #4]
  40004. 8011276: 2b00 cmp r3, #0
  40005. 8011278: d015 beq.n 80112a6 <osSemaphoreNew+0x62>
  40006. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  40007. 801127a: 687b ldr r3, [r7, #4]
  40008. 801127c: 689b ldr r3, [r3, #8]
  40009. 801127e: 2b00 cmp r3, #0
  40010. 8011280: d006 beq.n 8011290 <osSemaphoreNew+0x4c>
  40011. 8011282: 687b ldr r3, [r7, #4]
  40012. 8011284: 68db ldr r3, [r3, #12]
  40013. 8011286: 2b4f cmp r3, #79 @ 0x4f
  40014. 8011288: d902 bls.n 8011290 <osSemaphoreNew+0x4c>
  40015. mem = 1;
  40016. 801128a: 2301 movs r3, #1
  40017. 801128c: 61bb str r3, [r7, #24]
  40018. 801128e: e00c b.n 80112aa <osSemaphoreNew+0x66>
  40019. }
  40020. else {
  40021. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  40022. 8011290: 687b ldr r3, [r7, #4]
  40023. 8011292: 689b ldr r3, [r3, #8]
  40024. 8011294: 2b00 cmp r3, #0
  40025. 8011296: d108 bne.n 80112aa <osSemaphoreNew+0x66>
  40026. 8011298: 687b ldr r3, [r7, #4]
  40027. 801129a: 68db ldr r3, [r3, #12]
  40028. 801129c: 2b00 cmp r3, #0
  40029. 801129e: d104 bne.n 80112aa <osSemaphoreNew+0x66>
  40030. mem = 0;
  40031. 80112a0: 2300 movs r3, #0
  40032. 80112a2: 61bb str r3, [r7, #24]
  40033. 80112a4: e001 b.n 80112aa <osSemaphoreNew+0x66>
  40034. }
  40035. }
  40036. }
  40037. else {
  40038. mem = 0;
  40039. 80112a6: 2300 movs r3, #0
  40040. 80112a8: 61bb str r3, [r7, #24]
  40041. }
  40042. if (mem != -1) {
  40043. 80112aa: 69bb ldr r3, [r7, #24]
  40044. 80112ac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  40045. 80112b0: d04c beq.n 801134c <osSemaphoreNew+0x108>
  40046. if (max_count == 1U) {
  40047. 80112b2: 68fb ldr r3, [r7, #12]
  40048. 80112b4: 2b01 cmp r3, #1
  40049. 80112b6: d128 bne.n 801130a <osSemaphoreNew+0xc6>
  40050. if (mem == 1) {
  40051. 80112b8: 69bb ldr r3, [r7, #24]
  40052. 80112ba: 2b01 cmp r3, #1
  40053. 80112bc: d10a bne.n 80112d4 <osSemaphoreNew+0x90>
  40054. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  40055. hSemaphore = xSemaphoreCreateBinaryStatic ((StaticSemaphore_t *)attr->cb_mem);
  40056. 80112be: 687b ldr r3, [r7, #4]
  40057. 80112c0: 689b ldr r3, [r3, #8]
  40058. 80112c2: 2203 movs r2, #3
  40059. 80112c4: 9200 str r2, [sp, #0]
  40060. 80112c6: 2200 movs r2, #0
  40061. 80112c8: 2100 movs r1, #0
  40062. 80112ca: 2001 movs r0, #1
  40063. 80112cc: f000 fbc6 bl 8011a5c <xQueueGenericCreateStatic>
  40064. 80112d0: 61f8 str r0, [r7, #28]
  40065. 80112d2: e005 b.n 80112e0 <osSemaphoreNew+0x9c>
  40066. #endif
  40067. }
  40068. else {
  40069. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  40070. hSemaphore = xSemaphoreCreateBinary();
  40071. 80112d4: 2203 movs r2, #3
  40072. 80112d6: 2100 movs r1, #0
  40073. 80112d8: 2001 movs r0, #1
  40074. 80112da: f000 fc3c bl 8011b56 <xQueueGenericCreate>
  40075. 80112de: 61f8 str r0, [r7, #28]
  40076. #endif
  40077. }
  40078. if ((hSemaphore != NULL) && (initial_count != 0U)) {
  40079. 80112e0: 69fb ldr r3, [r7, #28]
  40080. 80112e2: 2b00 cmp r3, #0
  40081. 80112e4: d022 beq.n 801132c <osSemaphoreNew+0xe8>
  40082. 80112e6: 68bb ldr r3, [r7, #8]
  40083. 80112e8: 2b00 cmp r3, #0
  40084. 80112ea: d01f beq.n 801132c <osSemaphoreNew+0xe8>
  40085. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  40086. 80112ec: 2300 movs r3, #0
  40087. 80112ee: 2200 movs r2, #0
  40088. 80112f0: 2100 movs r1, #0
  40089. 80112f2: 69f8 ldr r0, [r7, #28]
  40090. 80112f4: f000 fdb4 bl 8011e60 <xQueueGenericSend>
  40091. 80112f8: 4603 mov r3, r0
  40092. 80112fa: 2b01 cmp r3, #1
  40093. 80112fc: d016 beq.n 801132c <osSemaphoreNew+0xe8>
  40094. vSemaphoreDelete (hSemaphore);
  40095. 80112fe: 69f8 ldr r0, [r7, #28]
  40096. 8011300: f001 fa90 bl 8012824 <vQueueDelete>
  40097. hSemaphore = NULL;
  40098. 8011304: 2300 movs r3, #0
  40099. 8011306: 61fb str r3, [r7, #28]
  40100. 8011308: e010 b.n 801132c <osSemaphoreNew+0xe8>
  40101. }
  40102. }
  40103. }
  40104. else {
  40105. if (mem == 1) {
  40106. 801130a: 69bb ldr r3, [r7, #24]
  40107. 801130c: 2b01 cmp r3, #1
  40108. 801130e: d108 bne.n 8011322 <osSemaphoreNew+0xde>
  40109. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  40110. hSemaphore = xSemaphoreCreateCountingStatic (max_count, initial_count, (StaticSemaphore_t *)attr->cb_mem);
  40111. 8011310: 687b ldr r3, [r7, #4]
  40112. 8011312: 689b ldr r3, [r3, #8]
  40113. 8011314: 461a mov r2, r3
  40114. 8011316: 68b9 ldr r1, [r7, #8]
  40115. 8011318: 68f8 ldr r0, [r7, #12]
  40116. 801131a: f000 fd33 bl 8011d84 <xQueueCreateCountingSemaphoreStatic>
  40117. 801131e: 61f8 str r0, [r7, #28]
  40118. 8011320: e004 b.n 801132c <osSemaphoreNew+0xe8>
  40119. #endif
  40120. }
  40121. else {
  40122. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  40123. hSemaphore = xSemaphoreCreateCounting (max_count, initial_count);
  40124. 8011322: 68b9 ldr r1, [r7, #8]
  40125. 8011324: 68f8 ldr r0, [r7, #12]
  40126. 8011326: f000 fd66 bl 8011df6 <xQueueCreateCountingSemaphore>
  40127. 801132a: 61f8 str r0, [r7, #28]
  40128. #endif
  40129. }
  40130. }
  40131. #if (configQUEUE_REGISTRY_SIZE > 0)
  40132. if (hSemaphore != NULL) {
  40133. 801132c: 69fb ldr r3, [r7, #28]
  40134. 801132e: 2b00 cmp r3, #0
  40135. 8011330: d00c beq.n 801134c <osSemaphoreNew+0x108>
  40136. if (attr != NULL) {
  40137. 8011332: 687b ldr r3, [r7, #4]
  40138. 8011334: 2b00 cmp r3, #0
  40139. 8011336: d003 beq.n 8011340 <osSemaphoreNew+0xfc>
  40140. name = attr->name;
  40141. 8011338: 687b ldr r3, [r7, #4]
  40142. 801133a: 681b ldr r3, [r3, #0]
  40143. 801133c: 617b str r3, [r7, #20]
  40144. 801133e: e001 b.n 8011344 <osSemaphoreNew+0x100>
  40145. } else {
  40146. name = NULL;
  40147. 8011340: 2300 movs r3, #0
  40148. 8011342: 617b str r3, [r7, #20]
  40149. }
  40150. vQueueAddToRegistry (hSemaphore, name);
  40151. 8011344: 6979 ldr r1, [r7, #20]
  40152. 8011346: 69f8 ldr r0, [r7, #28]
  40153. 8011348: f001 fbb8 bl 8012abc <vQueueAddToRegistry>
  40154. }
  40155. #endif
  40156. }
  40157. }
  40158. return ((osSemaphoreId_t)hSemaphore);
  40159. 801134c: 69fb ldr r3, [r7, #28]
  40160. }
  40161. 801134e: 4618 mov r0, r3
  40162. 8011350: 3720 adds r7, #32
  40163. 8011352: 46bd mov sp, r7
  40164. 8011354: bd80 pop {r7, pc}
  40165. ...
  40166. 08011358 <osSemaphoreAcquire>:
  40167. osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout) {
  40168. 8011358: b580 push {r7, lr}
  40169. 801135a: b086 sub sp, #24
  40170. 801135c: af00 add r7, sp, #0
  40171. 801135e: 6078 str r0, [r7, #4]
  40172. 8011360: 6039 str r1, [r7, #0]
  40173. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  40174. 8011362: 687b ldr r3, [r7, #4]
  40175. 8011364: 613b str r3, [r7, #16]
  40176. osStatus_t stat;
  40177. BaseType_t yield;
  40178. stat = osOK;
  40179. 8011366: 2300 movs r3, #0
  40180. 8011368: 617b str r3, [r7, #20]
  40181. if (hSemaphore == NULL) {
  40182. 801136a: 693b ldr r3, [r7, #16]
  40183. 801136c: 2b00 cmp r3, #0
  40184. 801136e: d103 bne.n 8011378 <osSemaphoreAcquire+0x20>
  40185. stat = osErrorParameter;
  40186. 8011370: f06f 0303 mvn.w r3, #3
  40187. 8011374: 617b str r3, [r7, #20]
  40188. 8011376: e039 b.n 80113ec <osSemaphoreAcquire+0x94>
  40189. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40190. 8011378: f3ef 8305 mrs r3, IPSR
  40191. 801137c: 60fb str r3, [r7, #12]
  40192. return(result);
  40193. 801137e: 68fb ldr r3, [r7, #12]
  40194. }
  40195. else if (IS_IRQ()) {
  40196. 8011380: 2b00 cmp r3, #0
  40197. 8011382: d022 beq.n 80113ca <osSemaphoreAcquire+0x72>
  40198. if (timeout != 0U) {
  40199. 8011384: 683b ldr r3, [r7, #0]
  40200. 8011386: 2b00 cmp r3, #0
  40201. 8011388: d003 beq.n 8011392 <osSemaphoreAcquire+0x3a>
  40202. stat = osErrorParameter;
  40203. 801138a: f06f 0303 mvn.w r3, #3
  40204. 801138e: 617b str r3, [r7, #20]
  40205. 8011390: e02c b.n 80113ec <osSemaphoreAcquire+0x94>
  40206. }
  40207. else {
  40208. yield = pdFALSE;
  40209. 8011392: 2300 movs r3, #0
  40210. 8011394: 60bb str r3, [r7, #8]
  40211. if (xSemaphoreTakeFromISR (hSemaphore, &yield) != pdPASS) {
  40212. 8011396: f107 0308 add.w r3, r7, #8
  40213. 801139a: 461a mov r2, r3
  40214. 801139c: 2100 movs r1, #0
  40215. 801139e: 6938 ldr r0, [r7, #16]
  40216. 80113a0: f001 f980 bl 80126a4 <xQueueReceiveFromISR>
  40217. 80113a4: 4603 mov r3, r0
  40218. 80113a6: 2b01 cmp r3, #1
  40219. 80113a8: d003 beq.n 80113b2 <osSemaphoreAcquire+0x5a>
  40220. stat = osErrorResource;
  40221. 80113aa: f06f 0302 mvn.w r3, #2
  40222. 80113ae: 617b str r3, [r7, #20]
  40223. 80113b0: e01c b.n 80113ec <osSemaphoreAcquire+0x94>
  40224. } else {
  40225. portYIELD_FROM_ISR (yield);
  40226. 80113b2: 68bb ldr r3, [r7, #8]
  40227. 80113b4: 2b00 cmp r3, #0
  40228. 80113b6: d019 beq.n 80113ec <osSemaphoreAcquire+0x94>
  40229. 80113b8: 4b0f ldr r3, [pc, #60] @ (80113f8 <osSemaphoreAcquire+0xa0>)
  40230. 80113ba: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40231. 80113be: 601a str r2, [r3, #0]
  40232. 80113c0: f3bf 8f4f dsb sy
  40233. 80113c4: f3bf 8f6f isb sy
  40234. 80113c8: e010 b.n 80113ec <osSemaphoreAcquire+0x94>
  40235. }
  40236. }
  40237. }
  40238. else {
  40239. if (xSemaphoreTake (hSemaphore, (TickType_t)timeout) != pdPASS) {
  40240. 80113ca: 6839 ldr r1, [r7, #0]
  40241. 80113cc: 6938 ldr r0, [r7, #16]
  40242. 80113ce: f001 f859 bl 8012484 <xQueueSemaphoreTake>
  40243. 80113d2: 4603 mov r3, r0
  40244. 80113d4: 2b01 cmp r3, #1
  40245. 80113d6: d009 beq.n 80113ec <osSemaphoreAcquire+0x94>
  40246. if (timeout != 0U) {
  40247. 80113d8: 683b ldr r3, [r7, #0]
  40248. 80113da: 2b00 cmp r3, #0
  40249. 80113dc: d003 beq.n 80113e6 <osSemaphoreAcquire+0x8e>
  40250. stat = osErrorTimeout;
  40251. 80113de: f06f 0301 mvn.w r3, #1
  40252. 80113e2: 617b str r3, [r7, #20]
  40253. 80113e4: e002 b.n 80113ec <osSemaphoreAcquire+0x94>
  40254. } else {
  40255. stat = osErrorResource;
  40256. 80113e6: f06f 0302 mvn.w r3, #2
  40257. 80113ea: 617b str r3, [r7, #20]
  40258. }
  40259. }
  40260. }
  40261. return (stat);
  40262. 80113ec: 697b ldr r3, [r7, #20]
  40263. }
  40264. 80113ee: 4618 mov r0, r3
  40265. 80113f0: 3718 adds r7, #24
  40266. 80113f2: 46bd mov sp, r7
  40267. 80113f4: bd80 pop {r7, pc}
  40268. 80113f6: bf00 nop
  40269. 80113f8: e000ed04 .word 0xe000ed04
  40270. 080113fc <osSemaphoreRelease>:
  40271. osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id) {
  40272. 80113fc: b580 push {r7, lr}
  40273. 80113fe: b086 sub sp, #24
  40274. 8011400: af00 add r7, sp, #0
  40275. 8011402: 6078 str r0, [r7, #4]
  40276. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  40277. 8011404: 687b ldr r3, [r7, #4]
  40278. 8011406: 613b str r3, [r7, #16]
  40279. osStatus_t stat;
  40280. BaseType_t yield;
  40281. stat = osOK;
  40282. 8011408: 2300 movs r3, #0
  40283. 801140a: 617b str r3, [r7, #20]
  40284. if (hSemaphore == NULL) {
  40285. 801140c: 693b ldr r3, [r7, #16]
  40286. 801140e: 2b00 cmp r3, #0
  40287. 8011410: d103 bne.n 801141a <osSemaphoreRelease+0x1e>
  40288. stat = osErrorParameter;
  40289. 8011412: f06f 0303 mvn.w r3, #3
  40290. 8011416: 617b str r3, [r7, #20]
  40291. 8011418: e02c b.n 8011474 <osSemaphoreRelease+0x78>
  40292. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40293. 801141a: f3ef 8305 mrs r3, IPSR
  40294. 801141e: 60fb str r3, [r7, #12]
  40295. return(result);
  40296. 8011420: 68fb ldr r3, [r7, #12]
  40297. }
  40298. else if (IS_IRQ()) {
  40299. 8011422: 2b00 cmp r3, #0
  40300. 8011424: d01a beq.n 801145c <osSemaphoreRelease+0x60>
  40301. yield = pdFALSE;
  40302. 8011426: 2300 movs r3, #0
  40303. 8011428: 60bb str r3, [r7, #8]
  40304. if (xSemaphoreGiveFromISR (hSemaphore, &yield) != pdTRUE) {
  40305. 801142a: f107 0308 add.w r3, r7, #8
  40306. 801142e: 4619 mov r1, r3
  40307. 8011430: 6938 ldr r0, [r7, #16]
  40308. 8011432: f000 feb5 bl 80121a0 <xQueueGiveFromISR>
  40309. 8011436: 4603 mov r3, r0
  40310. 8011438: 2b01 cmp r3, #1
  40311. 801143a: d003 beq.n 8011444 <osSemaphoreRelease+0x48>
  40312. stat = osErrorResource;
  40313. 801143c: f06f 0302 mvn.w r3, #2
  40314. 8011440: 617b str r3, [r7, #20]
  40315. 8011442: e017 b.n 8011474 <osSemaphoreRelease+0x78>
  40316. } else {
  40317. portYIELD_FROM_ISR (yield);
  40318. 8011444: 68bb ldr r3, [r7, #8]
  40319. 8011446: 2b00 cmp r3, #0
  40320. 8011448: d014 beq.n 8011474 <osSemaphoreRelease+0x78>
  40321. 801144a: 4b0d ldr r3, [pc, #52] @ (8011480 <osSemaphoreRelease+0x84>)
  40322. 801144c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40323. 8011450: 601a str r2, [r3, #0]
  40324. 8011452: f3bf 8f4f dsb sy
  40325. 8011456: f3bf 8f6f isb sy
  40326. 801145a: e00b b.n 8011474 <osSemaphoreRelease+0x78>
  40327. }
  40328. }
  40329. else {
  40330. if (xSemaphoreGive (hSemaphore) != pdPASS) {
  40331. 801145c: 2300 movs r3, #0
  40332. 801145e: 2200 movs r2, #0
  40333. 8011460: 2100 movs r1, #0
  40334. 8011462: 6938 ldr r0, [r7, #16]
  40335. 8011464: f000 fcfc bl 8011e60 <xQueueGenericSend>
  40336. 8011468: 4603 mov r3, r0
  40337. 801146a: 2b01 cmp r3, #1
  40338. 801146c: d002 beq.n 8011474 <osSemaphoreRelease+0x78>
  40339. stat = osErrorResource;
  40340. 801146e: f06f 0302 mvn.w r3, #2
  40341. 8011472: 617b str r3, [r7, #20]
  40342. }
  40343. }
  40344. return (stat);
  40345. 8011474: 697b ldr r3, [r7, #20]
  40346. }
  40347. 8011476: 4618 mov r0, r3
  40348. 8011478: 3718 adds r7, #24
  40349. 801147a: 46bd mov sp, r7
  40350. 801147c: bd80 pop {r7, pc}
  40351. 801147e: bf00 nop
  40352. 8011480: e000ed04 .word 0xe000ed04
  40353. 08011484 <osSemaphoreDelete>:
  40354. }
  40355. return (count);
  40356. }
  40357. osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id) {
  40358. 8011484: b580 push {r7, lr}
  40359. 8011486: b086 sub sp, #24
  40360. 8011488: af00 add r7, sp, #0
  40361. 801148a: 6078 str r0, [r7, #4]
  40362. SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id;
  40363. 801148c: 687b ldr r3, [r7, #4]
  40364. 801148e: 613b str r3, [r7, #16]
  40365. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40366. 8011490: f3ef 8305 mrs r3, IPSR
  40367. 8011494: 60fb str r3, [r7, #12]
  40368. return(result);
  40369. 8011496: 68fb ldr r3, [r7, #12]
  40370. osStatus_t stat;
  40371. #ifndef USE_FreeRTOS_HEAP_1
  40372. if (IS_IRQ()) {
  40373. 8011498: 2b00 cmp r3, #0
  40374. 801149a: d003 beq.n 80114a4 <osSemaphoreDelete+0x20>
  40375. stat = osErrorISR;
  40376. 801149c: f06f 0305 mvn.w r3, #5
  40377. 80114a0: 617b str r3, [r7, #20]
  40378. 80114a2: e00e b.n 80114c2 <osSemaphoreDelete+0x3e>
  40379. }
  40380. else if (hSemaphore == NULL) {
  40381. 80114a4: 693b ldr r3, [r7, #16]
  40382. 80114a6: 2b00 cmp r3, #0
  40383. 80114a8: d103 bne.n 80114b2 <osSemaphoreDelete+0x2e>
  40384. stat = osErrorParameter;
  40385. 80114aa: f06f 0303 mvn.w r3, #3
  40386. 80114ae: 617b str r3, [r7, #20]
  40387. 80114b0: e007 b.n 80114c2 <osSemaphoreDelete+0x3e>
  40388. }
  40389. else {
  40390. #if (configQUEUE_REGISTRY_SIZE > 0)
  40391. vQueueUnregisterQueue (hSemaphore);
  40392. 80114b2: 6938 ldr r0, [r7, #16]
  40393. 80114b4: f001 fb2c bl 8012b10 <vQueueUnregisterQueue>
  40394. #endif
  40395. stat = osOK;
  40396. 80114b8: 2300 movs r3, #0
  40397. 80114ba: 617b str r3, [r7, #20]
  40398. vSemaphoreDelete (hSemaphore);
  40399. 80114bc: 6938 ldr r0, [r7, #16]
  40400. 80114be: f001 f9b1 bl 8012824 <vQueueDelete>
  40401. }
  40402. #else
  40403. stat = osError;
  40404. #endif
  40405. return (stat);
  40406. 80114c2: 697b ldr r3, [r7, #20]
  40407. }
  40408. 80114c4: 4618 mov r0, r3
  40409. 80114c6: 3718 adds r7, #24
  40410. 80114c8: 46bd mov sp, r7
  40411. 80114ca: bd80 pop {r7, pc}
  40412. 080114cc <osMessageQueueNew>:
  40413. /*---------------------------------------------------------------------------*/
  40414. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  40415. 80114cc: b580 push {r7, lr}
  40416. 80114ce: b08a sub sp, #40 @ 0x28
  40417. 80114d0: af02 add r7, sp, #8
  40418. 80114d2: 60f8 str r0, [r7, #12]
  40419. 80114d4: 60b9 str r1, [r7, #8]
  40420. 80114d6: 607a str r2, [r7, #4]
  40421. int32_t mem;
  40422. #if (configQUEUE_REGISTRY_SIZE > 0)
  40423. const char *name;
  40424. #endif
  40425. hQueue = NULL;
  40426. 80114d8: 2300 movs r3, #0
  40427. 80114da: 61fb str r3, [r7, #28]
  40428. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40429. 80114dc: f3ef 8305 mrs r3, IPSR
  40430. 80114e0: 613b str r3, [r7, #16]
  40431. return(result);
  40432. 80114e2: 693b ldr r3, [r7, #16]
  40433. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  40434. 80114e4: 2b00 cmp r3, #0
  40435. 80114e6: d15f bne.n 80115a8 <osMessageQueueNew+0xdc>
  40436. 80114e8: 68fb ldr r3, [r7, #12]
  40437. 80114ea: 2b00 cmp r3, #0
  40438. 80114ec: d05c beq.n 80115a8 <osMessageQueueNew+0xdc>
  40439. 80114ee: 68bb ldr r3, [r7, #8]
  40440. 80114f0: 2b00 cmp r3, #0
  40441. 80114f2: d059 beq.n 80115a8 <osMessageQueueNew+0xdc>
  40442. mem = -1;
  40443. 80114f4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  40444. 80114f8: 61bb str r3, [r7, #24]
  40445. if (attr != NULL) {
  40446. 80114fa: 687b ldr r3, [r7, #4]
  40447. 80114fc: 2b00 cmp r3, #0
  40448. 80114fe: d029 beq.n 8011554 <osMessageQueueNew+0x88>
  40449. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  40450. 8011500: 687b ldr r3, [r7, #4]
  40451. 8011502: 689b ldr r3, [r3, #8]
  40452. 8011504: 2b00 cmp r3, #0
  40453. 8011506: d012 beq.n 801152e <osMessageQueueNew+0x62>
  40454. 8011508: 687b ldr r3, [r7, #4]
  40455. 801150a: 68db ldr r3, [r3, #12]
  40456. 801150c: 2b4f cmp r3, #79 @ 0x4f
  40457. 801150e: d90e bls.n 801152e <osMessageQueueNew+0x62>
  40458. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  40459. 8011510: 687b ldr r3, [r7, #4]
  40460. 8011512: 691b ldr r3, [r3, #16]
  40461. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  40462. 8011514: 2b00 cmp r3, #0
  40463. 8011516: d00a beq.n 801152e <osMessageQueueNew+0x62>
  40464. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  40465. 8011518: 687b ldr r3, [r7, #4]
  40466. 801151a: 695a ldr r2, [r3, #20]
  40467. 801151c: 68fb ldr r3, [r7, #12]
  40468. 801151e: 68b9 ldr r1, [r7, #8]
  40469. 8011520: fb01 f303 mul.w r3, r1, r3
  40470. 8011524: 429a cmp r2, r3
  40471. 8011526: d302 bcc.n 801152e <osMessageQueueNew+0x62>
  40472. mem = 1;
  40473. 8011528: 2301 movs r3, #1
  40474. 801152a: 61bb str r3, [r7, #24]
  40475. 801152c: e014 b.n 8011558 <osMessageQueueNew+0x8c>
  40476. }
  40477. else {
  40478. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  40479. 801152e: 687b ldr r3, [r7, #4]
  40480. 8011530: 689b ldr r3, [r3, #8]
  40481. 8011532: 2b00 cmp r3, #0
  40482. 8011534: d110 bne.n 8011558 <osMessageQueueNew+0x8c>
  40483. 8011536: 687b ldr r3, [r7, #4]
  40484. 8011538: 68db ldr r3, [r3, #12]
  40485. 801153a: 2b00 cmp r3, #0
  40486. 801153c: d10c bne.n 8011558 <osMessageQueueNew+0x8c>
  40487. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  40488. 801153e: 687b ldr r3, [r7, #4]
  40489. 8011540: 691b ldr r3, [r3, #16]
  40490. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  40491. 8011542: 2b00 cmp r3, #0
  40492. 8011544: d108 bne.n 8011558 <osMessageQueueNew+0x8c>
  40493. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  40494. 8011546: 687b ldr r3, [r7, #4]
  40495. 8011548: 695b ldr r3, [r3, #20]
  40496. 801154a: 2b00 cmp r3, #0
  40497. 801154c: d104 bne.n 8011558 <osMessageQueueNew+0x8c>
  40498. mem = 0;
  40499. 801154e: 2300 movs r3, #0
  40500. 8011550: 61bb str r3, [r7, #24]
  40501. 8011552: e001 b.n 8011558 <osMessageQueueNew+0x8c>
  40502. }
  40503. }
  40504. }
  40505. else {
  40506. mem = 0;
  40507. 8011554: 2300 movs r3, #0
  40508. 8011556: 61bb str r3, [r7, #24]
  40509. }
  40510. if (mem == 1) {
  40511. 8011558: 69bb ldr r3, [r7, #24]
  40512. 801155a: 2b01 cmp r3, #1
  40513. 801155c: d10b bne.n 8011576 <osMessageQueueNew+0xaa>
  40514. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  40515. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  40516. 801155e: 687b ldr r3, [r7, #4]
  40517. 8011560: 691a ldr r2, [r3, #16]
  40518. 8011562: 687b ldr r3, [r7, #4]
  40519. 8011564: 689b ldr r3, [r3, #8]
  40520. 8011566: 2100 movs r1, #0
  40521. 8011568: 9100 str r1, [sp, #0]
  40522. 801156a: 68b9 ldr r1, [r7, #8]
  40523. 801156c: 68f8 ldr r0, [r7, #12]
  40524. 801156e: f000 fa75 bl 8011a5c <xQueueGenericCreateStatic>
  40525. 8011572: 61f8 str r0, [r7, #28]
  40526. 8011574: e008 b.n 8011588 <osMessageQueueNew+0xbc>
  40527. #endif
  40528. }
  40529. else {
  40530. if (mem == 0) {
  40531. 8011576: 69bb ldr r3, [r7, #24]
  40532. 8011578: 2b00 cmp r3, #0
  40533. 801157a: d105 bne.n 8011588 <osMessageQueueNew+0xbc>
  40534. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  40535. hQueue = xQueueCreate (msg_count, msg_size);
  40536. 801157c: 2200 movs r2, #0
  40537. 801157e: 68b9 ldr r1, [r7, #8]
  40538. 8011580: 68f8 ldr r0, [r7, #12]
  40539. 8011582: f000 fae8 bl 8011b56 <xQueueGenericCreate>
  40540. 8011586: 61f8 str r0, [r7, #28]
  40541. #endif
  40542. }
  40543. }
  40544. #if (configQUEUE_REGISTRY_SIZE > 0)
  40545. if (hQueue != NULL) {
  40546. 8011588: 69fb ldr r3, [r7, #28]
  40547. 801158a: 2b00 cmp r3, #0
  40548. 801158c: d00c beq.n 80115a8 <osMessageQueueNew+0xdc>
  40549. if (attr != NULL) {
  40550. 801158e: 687b ldr r3, [r7, #4]
  40551. 8011590: 2b00 cmp r3, #0
  40552. 8011592: d003 beq.n 801159c <osMessageQueueNew+0xd0>
  40553. name = attr->name;
  40554. 8011594: 687b ldr r3, [r7, #4]
  40555. 8011596: 681b ldr r3, [r3, #0]
  40556. 8011598: 617b str r3, [r7, #20]
  40557. 801159a: e001 b.n 80115a0 <osMessageQueueNew+0xd4>
  40558. } else {
  40559. name = NULL;
  40560. 801159c: 2300 movs r3, #0
  40561. 801159e: 617b str r3, [r7, #20]
  40562. }
  40563. vQueueAddToRegistry (hQueue, name);
  40564. 80115a0: 6979 ldr r1, [r7, #20]
  40565. 80115a2: 69f8 ldr r0, [r7, #28]
  40566. 80115a4: f001 fa8a bl 8012abc <vQueueAddToRegistry>
  40567. }
  40568. #endif
  40569. }
  40570. return ((osMessageQueueId_t)hQueue);
  40571. 80115a8: 69fb ldr r3, [r7, #28]
  40572. }
  40573. 80115aa: 4618 mov r0, r3
  40574. 80115ac: 3720 adds r7, #32
  40575. 80115ae: 46bd mov sp, r7
  40576. 80115b0: bd80 pop {r7, pc}
  40577. ...
  40578. 080115b4 <osMessageQueuePut>:
  40579. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  40580. 80115b4: b580 push {r7, lr}
  40581. 80115b6: b088 sub sp, #32
  40582. 80115b8: af00 add r7, sp, #0
  40583. 80115ba: 60f8 str r0, [r7, #12]
  40584. 80115bc: 60b9 str r1, [r7, #8]
  40585. 80115be: 603b str r3, [r7, #0]
  40586. 80115c0: 4613 mov r3, r2
  40587. 80115c2: 71fb strb r3, [r7, #7]
  40588. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  40589. 80115c4: 68fb ldr r3, [r7, #12]
  40590. 80115c6: 61bb str r3, [r7, #24]
  40591. osStatus_t stat;
  40592. BaseType_t yield;
  40593. (void)msg_prio; /* Message priority is ignored */
  40594. stat = osOK;
  40595. 80115c8: 2300 movs r3, #0
  40596. 80115ca: 61fb str r3, [r7, #28]
  40597. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40598. 80115cc: f3ef 8305 mrs r3, IPSR
  40599. 80115d0: 617b str r3, [r7, #20]
  40600. return(result);
  40601. 80115d2: 697b ldr r3, [r7, #20]
  40602. if (IS_IRQ()) {
  40603. 80115d4: 2b00 cmp r3, #0
  40604. 80115d6: d028 beq.n 801162a <osMessageQueuePut+0x76>
  40605. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  40606. 80115d8: 69bb ldr r3, [r7, #24]
  40607. 80115da: 2b00 cmp r3, #0
  40608. 80115dc: d005 beq.n 80115ea <osMessageQueuePut+0x36>
  40609. 80115de: 68bb ldr r3, [r7, #8]
  40610. 80115e0: 2b00 cmp r3, #0
  40611. 80115e2: d002 beq.n 80115ea <osMessageQueuePut+0x36>
  40612. 80115e4: 683b ldr r3, [r7, #0]
  40613. 80115e6: 2b00 cmp r3, #0
  40614. 80115e8: d003 beq.n 80115f2 <osMessageQueuePut+0x3e>
  40615. stat = osErrorParameter;
  40616. 80115ea: f06f 0303 mvn.w r3, #3
  40617. 80115ee: 61fb str r3, [r7, #28]
  40618. 80115f0: e038 b.n 8011664 <osMessageQueuePut+0xb0>
  40619. }
  40620. else {
  40621. yield = pdFALSE;
  40622. 80115f2: 2300 movs r3, #0
  40623. 80115f4: 613b str r3, [r7, #16]
  40624. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  40625. 80115f6: f107 0210 add.w r2, r7, #16
  40626. 80115fa: 2300 movs r3, #0
  40627. 80115fc: 68b9 ldr r1, [r7, #8]
  40628. 80115fe: 69b8 ldr r0, [r7, #24]
  40629. 8011600: f000 fd30 bl 8012064 <xQueueGenericSendFromISR>
  40630. 8011604: 4603 mov r3, r0
  40631. 8011606: 2b01 cmp r3, #1
  40632. 8011608: d003 beq.n 8011612 <osMessageQueuePut+0x5e>
  40633. stat = osErrorResource;
  40634. 801160a: f06f 0302 mvn.w r3, #2
  40635. 801160e: 61fb str r3, [r7, #28]
  40636. 8011610: e028 b.n 8011664 <osMessageQueuePut+0xb0>
  40637. } else {
  40638. portYIELD_FROM_ISR (yield);
  40639. 8011612: 693b ldr r3, [r7, #16]
  40640. 8011614: 2b00 cmp r3, #0
  40641. 8011616: d025 beq.n 8011664 <osMessageQueuePut+0xb0>
  40642. 8011618: 4b15 ldr r3, [pc, #84] @ (8011670 <osMessageQueuePut+0xbc>)
  40643. 801161a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40644. 801161e: 601a str r2, [r3, #0]
  40645. 8011620: f3bf 8f4f dsb sy
  40646. 8011624: f3bf 8f6f isb sy
  40647. 8011628: e01c b.n 8011664 <osMessageQueuePut+0xb0>
  40648. }
  40649. }
  40650. }
  40651. else {
  40652. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  40653. 801162a: 69bb ldr r3, [r7, #24]
  40654. 801162c: 2b00 cmp r3, #0
  40655. 801162e: d002 beq.n 8011636 <osMessageQueuePut+0x82>
  40656. 8011630: 68bb ldr r3, [r7, #8]
  40657. 8011632: 2b00 cmp r3, #0
  40658. 8011634: d103 bne.n 801163e <osMessageQueuePut+0x8a>
  40659. stat = osErrorParameter;
  40660. 8011636: f06f 0303 mvn.w r3, #3
  40661. 801163a: 61fb str r3, [r7, #28]
  40662. 801163c: e012 b.n 8011664 <osMessageQueuePut+0xb0>
  40663. }
  40664. else {
  40665. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  40666. 801163e: 2300 movs r3, #0
  40667. 8011640: 683a ldr r2, [r7, #0]
  40668. 8011642: 68b9 ldr r1, [r7, #8]
  40669. 8011644: 69b8 ldr r0, [r7, #24]
  40670. 8011646: f000 fc0b bl 8011e60 <xQueueGenericSend>
  40671. 801164a: 4603 mov r3, r0
  40672. 801164c: 2b01 cmp r3, #1
  40673. 801164e: d009 beq.n 8011664 <osMessageQueuePut+0xb0>
  40674. if (timeout != 0U) {
  40675. 8011650: 683b ldr r3, [r7, #0]
  40676. 8011652: 2b00 cmp r3, #0
  40677. 8011654: d003 beq.n 801165e <osMessageQueuePut+0xaa>
  40678. stat = osErrorTimeout;
  40679. 8011656: f06f 0301 mvn.w r3, #1
  40680. 801165a: 61fb str r3, [r7, #28]
  40681. 801165c: e002 b.n 8011664 <osMessageQueuePut+0xb0>
  40682. } else {
  40683. stat = osErrorResource;
  40684. 801165e: f06f 0302 mvn.w r3, #2
  40685. 8011662: 61fb str r3, [r7, #28]
  40686. }
  40687. }
  40688. }
  40689. }
  40690. return (stat);
  40691. 8011664: 69fb ldr r3, [r7, #28]
  40692. }
  40693. 8011666: 4618 mov r0, r3
  40694. 8011668: 3720 adds r7, #32
  40695. 801166a: 46bd mov sp, r7
  40696. 801166c: bd80 pop {r7, pc}
  40697. 801166e: bf00 nop
  40698. 8011670: e000ed04 .word 0xe000ed04
  40699. 08011674 <osMessageQueueGet>:
  40700. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  40701. 8011674: b580 push {r7, lr}
  40702. 8011676: b088 sub sp, #32
  40703. 8011678: af00 add r7, sp, #0
  40704. 801167a: 60f8 str r0, [r7, #12]
  40705. 801167c: 60b9 str r1, [r7, #8]
  40706. 801167e: 607a str r2, [r7, #4]
  40707. 8011680: 603b str r3, [r7, #0]
  40708. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  40709. 8011682: 68fb ldr r3, [r7, #12]
  40710. 8011684: 61bb str r3, [r7, #24]
  40711. osStatus_t stat;
  40712. BaseType_t yield;
  40713. (void)msg_prio; /* Message priority is ignored */
  40714. stat = osOK;
  40715. 8011686: 2300 movs r3, #0
  40716. 8011688: 61fb str r3, [r7, #28]
  40717. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40718. 801168a: f3ef 8305 mrs r3, IPSR
  40719. 801168e: 617b str r3, [r7, #20]
  40720. return(result);
  40721. 8011690: 697b ldr r3, [r7, #20]
  40722. if (IS_IRQ()) {
  40723. 8011692: 2b00 cmp r3, #0
  40724. 8011694: d028 beq.n 80116e8 <osMessageQueueGet+0x74>
  40725. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  40726. 8011696: 69bb ldr r3, [r7, #24]
  40727. 8011698: 2b00 cmp r3, #0
  40728. 801169a: d005 beq.n 80116a8 <osMessageQueueGet+0x34>
  40729. 801169c: 68bb ldr r3, [r7, #8]
  40730. 801169e: 2b00 cmp r3, #0
  40731. 80116a0: d002 beq.n 80116a8 <osMessageQueueGet+0x34>
  40732. 80116a2: 683b ldr r3, [r7, #0]
  40733. 80116a4: 2b00 cmp r3, #0
  40734. 80116a6: d003 beq.n 80116b0 <osMessageQueueGet+0x3c>
  40735. stat = osErrorParameter;
  40736. 80116a8: f06f 0303 mvn.w r3, #3
  40737. 80116ac: 61fb str r3, [r7, #28]
  40738. 80116ae: e037 b.n 8011720 <osMessageQueueGet+0xac>
  40739. }
  40740. else {
  40741. yield = pdFALSE;
  40742. 80116b0: 2300 movs r3, #0
  40743. 80116b2: 613b str r3, [r7, #16]
  40744. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  40745. 80116b4: f107 0310 add.w r3, r7, #16
  40746. 80116b8: 461a mov r2, r3
  40747. 80116ba: 68b9 ldr r1, [r7, #8]
  40748. 80116bc: 69b8 ldr r0, [r7, #24]
  40749. 80116be: f000 fff1 bl 80126a4 <xQueueReceiveFromISR>
  40750. 80116c2: 4603 mov r3, r0
  40751. 80116c4: 2b01 cmp r3, #1
  40752. 80116c6: d003 beq.n 80116d0 <osMessageQueueGet+0x5c>
  40753. stat = osErrorResource;
  40754. 80116c8: f06f 0302 mvn.w r3, #2
  40755. 80116cc: 61fb str r3, [r7, #28]
  40756. 80116ce: e027 b.n 8011720 <osMessageQueueGet+0xac>
  40757. } else {
  40758. portYIELD_FROM_ISR (yield);
  40759. 80116d0: 693b ldr r3, [r7, #16]
  40760. 80116d2: 2b00 cmp r3, #0
  40761. 80116d4: d024 beq.n 8011720 <osMessageQueueGet+0xac>
  40762. 80116d6: 4b15 ldr r3, [pc, #84] @ (801172c <osMessageQueueGet+0xb8>)
  40763. 80116d8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  40764. 80116dc: 601a str r2, [r3, #0]
  40765. 80116de: f3bf 8f4f dsb sy
  40766. 80116e2: f3bf 8f6f isb sy
  40767. 80116e6: e01b b.n 8011720 <osMessageQueueGet+0xac>
  40768. }
  40769. }
  40770. }
  40771. else {
  40772. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  40773. 80116e8: 69bb ldr r3, [r7, #24]
  40774. 80116ea: 2b00 cmp r3, #0
  40775. 80116ec: d002 beq.n 80116f4 <osMessageQueueGet+0x80>
  40776. 80116ee: 68bb ldr r3, [r7, #8]
  40777. 80116f0: 2b00 cmp r3, #0
  40778. 80116f2: d103 bne.n 80116fc <osMessageQueueGet+0x88>
  40779. stat = osErrorParameter;
  40780. 80116f4: f06f 0303 mvn.w r3, #3
  40781. 80116f8: 61fb str r3, [r7, #28]
  40782. 80116fa: e011 b.n 8011720 <osMessageQueueGet+0xac>
  40783. }
  40784. else {
  40785. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  40786. 80116fc: 683a ldr r2, [r7, #0]
  40787. 80116fe: 68b9 ldr r1, [r7, #8]
  40788. 8011700: 69b8 ldr r0, [r7, #24]
  40789. 8011702: f000 fddd bl 80122c0 <xQueueReceive>
  40790. 8011706: 4603 mov r3, r0
  40791. 8011708: 2b01 cmp r3, #1
  40792. 801170a: d009 beq.n 8011720 <osMessageQueueGet+0xac>
  40793. if (timeout != 0U) {
  40794. 801170c: 683b ldr r3, [r7, #0]
  40795. 801170e: 2b00 cmp r3, #0
  40796. 8011710: d003 beq.n 801171a <osMessageQueueGet+0xa6>
  40797. stat = osErrorTimeout;
  40798. 8011712: f06f 0301 mvn.w r3, #1
  40799. 8011716: 61fb str r3, [r7, #28]
  40800. 8011718: e002 b.n 8011720 <osMessageQueueGet+0xac>
  40801. } else {
  40802. stat = osErrorResource;
  40803. 801171a: f06f 0302 mvn.w r3, #2
  40804. 801171e: 61fb str r3, [r7, #28]
  40805. }
  40806. }
  40807. }
  40808. }
  40809. return (stat);
  40810. 8011720: 69fb ldr r3, [r7, #28]
  40811. }
  40812. 8011722: 4618 mov r0, r3
  40813. 8011724: 3720 adds r7, #32
  40814. 8011726: 46bd mov sp, r7
  40815. 8011728: bd80 pop {r7, pc}
  40816. 801172a: bf00 nop
  40817. 801172c: e000ed04 .word 0xe000ed04
  40818. 08011730 <osMessageQueueGetCount>:
  40819. }
  40820. return (size);
  40821. }
  40822. uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id) {
  40823. 8011730: b580 push {r7, lr}
  40824. 8011732: b086 sub sp, #24
  40825. 8011734: af00 add r7, sp, #0
  40826. 8011736: 6078 str r0, [r7, #4]
  40827. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  40828. 8011738: 687b ldr r3, [r7, #4]
  40829. 801173a: 613b str r3, [r7, #16]
  40830. UBaseType_t count;
  40831. if (hQueue == NULL) {
  40832. 801173c: 693b ldr r3, [r7, #16]
  40833. 801173e: 2b00 cmp r3, #0
  40834. 8011740: d102 bne.n 8011748 <osMessageQueueGetCount+0x18>
  40835. count = 0U;
  40836. 8011742: 2300 movs r3, #0
  40837. 8011744: 617b str r3, [r7, #20]
  40838. 8011746: e00e b.n 8011766 <osMessageQueueGetCount+0x36>
  40839. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40840. 8011748: f3ef 8305 mrs r3, IPSR
  40841. 801174c: 60fb str r3, [r7, #12]
  40842. return(result);
  40843. 801174e: 68fb ldr r3, [r7, #12]
  40844. }
  40845. else if (IS_IRQ()) {
  40846. 8011750: 2b00 cmp r3, #0
  40847. 8011752: d004 beq.n 801175e <osMessageQueueGetCount+0x2e>
  40848. count = uxQueueMessagesWaitingFromISR (hQueue);
  40849. 8011754: 6938 ldr r0, [r7, #16]
  40850. 8011756: f001 f846 bl 80127e6 <uxQueueMessagesWaitingFromISR>
  40851. 801175a: 6178 str r0, [r7, #20]
  40852. 801175c: e003 b.n 8011766 <osMessageQueueGetCount+0x36>
  40853. }
  40854. else {
  40855. count = uxQueueMessagesWaiting (hQueue);
  40856. 801175e: 6938 ldr r0, [r7, #16]
  40857. 8011760: f001 f822 bl 80127a8 <uxQueueMessagesWaiting>
  40858. 8011764: 6178 str r0, [r7, #20]
  40859. }
  40860. return ((uint32_t)count);
  40861. 8011766: 697b ldr r3, [r7, #20]
  40862. }
  40863. 8011768: 4618 mov r0, r3
  40864. 801176a: 3718 adds r7, #24
  40865. 801176c: 46bd mov sp, r7
  40866. 801176e: bd80 pop {r7, pc}
  40867. 08011770 <osMessageQueueDelete>:
  40868. }
  40869. return (stat);
  40870. }
  40871. osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id) {
  40872. 8011770: b580 push {r7, lr}
  40873. 8011772: b086 sub sp, #24
  40874. 8011774: af00 add r7, sp, #0
  40875. 8011776: 6078 str r0, [r7, #4]
  40876. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  40877. 8011778: 687b ldr r3, [r7, #4]
  40878. 801177a: 613b str r3, [r7, #16]
  40879. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  40880. 801177c: f3ef 8305 mrs r3, IPSR
  40881. 8011780: 60fb str r3, [r7, #12]
  40882. return(result);
  40883. 8011782: 68fb ldr r3, [r7, #12]
  40884. osStatus_t stat;
  40885. #ifndef USE_FreeRTOS_HEAP_1
  40886. if (IS_IRQ()) {
  40887. 8011784: 2b00 cmp r3, #0
  40888. 8011786: d003 beq.n 8011790 <osMessageQueueDelete+0x20>
  40889. stat = osErrorISR;
  40890. 8011788: f06f 0305 mvn.w r3, #5
  40891. 801178c: 617b str r3, [r7, #20]
  40892. 801178e: e00e b.n 80117ae <osMessageQueueDelete+0x3e>
  40893. }
  40894. else if (hQueue == NULL) {
  40895. 8011790: 693b ldr r3, [r7, #16]
  40896. 8011792: 2b00 cmp r3, #0
  40897. 8011794: d103 bne.n 801179e <osMessageQueueDelete+0x2e>
  40898. stat = osErrorParameter;
  40899. 8011796: f06f 0303 mvn.w r3, #3
  40900. 801179a: 617b str r3, [r7, #20]
  40901. 801179c: e007 b.n 80117ae <osMessageQueueDelete+0x3e>
  40902. }
  40903. else {
  40904. #if (configQUEUE_REGISTRY_SIZE > 0)
  40905. vQueueUnregisterQueue (hQueue);
  40906. 801179e: 6938 ldr r0, [r7, #16]
  40907. 80117a0: f001 f9b6 bl 8012b10 <vQueueUnregisterQueue>
  40908. #endif
  40909. stat = osOK;
  40910. 80117a4: 2300 movs r3, #0
  40911. 80117a6: 617b str r3, [r7, #20]
  40912. vQueueDelete (hQueue);
  40913. 80117a8: 6938 ldr r0, [r7, #16]
  40914. 80117aa: f001 f83b bl 8012824 <vQueueDelete>
  40915. }
  40916. #else
  40917. stat = osError;
  40918. #endif
  40919. return (stat);
  40920. 80117ae: 697b ldr r3, [r7, #20]
  40921. }
  40922. 80117b0: 4618 mov r0, r3
  40923. 80117b2: 3718 adds r7, #24
  40924. 80117b4: 46bd mov sp, r7
  40925. 80117b6: bd80 pop {r7, pc}
  40926. 080117b8 <vApplicationGetIdleTaskMemory>:
  40927. /*
  40928. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  40929. equals to 1 and is required for static memory allocation support.
  40930. */
  40931. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  40932. 80117b8: b480 push {r7}
  40933. 80117ba: b085 sub sp, #20
  40934. 80117bc: af00 add r7, sp, #0
  40935. 80117be: 60f8 str r0, [r7, #12]
  40936. 80117c0: 60b9 str r1, [r7, #8]
  40937. 80117c2: 607a str r2, [r7, #4]
  40938. /* Idle task control block and stack */
  40939. static StaticTask_t Idle_TCB;
  40940. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  40941. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  40942. 80117c4: 68fb ldr r3, [r7, #12]
  40943. 80117c6: 4a07 ldr r2, [pc, #28] @ (80117e4 <vApplicationGetIdleTaskMemory+0x2c>)
  40944. 80117c8: 601a str r2, [r3, #0]
  40945. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  40946. 80117ca: 68bb ldr r3, [r7, #8]
  40947. 80117cc: 4a06 ldr r2, [pc, #24] @ (80117e8 <vApplicationGetIdleTaskMemory+0x30>)
  40948. 80117ce: 601a str r2, [r3, #0]
  40949. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  40950. 80117d0: 687b ldr r3, [r7, #4]
  40951. 80117d2: f44f 7200 mov.w r2, #512 @ 0x200
  40952. 80117d6: 601a str r2, [r3, #0]
  40953. }
  40954. 80117d8: bf00 nop
  40955. 80117da: 3714 adds r7, #20
  40956. 80117dc: 46bd mov sp, r7
  40957. 80117de: f85d 7b04 ldr.w r7, [sp], #4
  40958. 80117e2: 4770 bx lr
  40959. 80117e4: 240023d0 .word 0x240023d0
  40960. 80117e8: 24002478 .word 0x24002478
  40961. 080117ec <vApplicationGetTimerTaskMemory>:
  40962. /*
  40963. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  40964. equals to 1 and is required for static memory allocation support.
  40965. */
  40966. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  40967. 80117ec: b480 push {r7}
  40968. 80117ee: b085 sub sp, #20
  40969. 80117f0: af00 add r7, sp, #0
  40970. 80117f2: 60f8 str r0, [r7, #12]
  40971. 80117f4: 60b9 str r1, [r7, #8]
  40972. 80117f6: 607a str r2, [r7, #4]
  40973. /* Timer task control block and stack */
  40974. static StaticTask_t Timer_TCB;
  40975. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  40976. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  40977. 80117f8: 68fb ldr r3, [r7, #12]
  40978. 80117fa: 4a07 ldr r2, [pc, #28] @ (8011818 <vApplicationGetTimerTaskMemory+0x2c>)
  40979. 80117fc: 601a str r2, [r3, #0]
  40980. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  40981. 80117fe: 68bb ldr r3, [r7, #8]
  40982. 8011800: 4a06 ldr r2, [pc, #24] @ (801181c <vApplicationGetTimerTaskMemory+0x30>)
  40983. 8011802: 601a str r2, [r3, #0]
  40984. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  40985. 8011804: 687b ldr r3, [r7, #4]
  40986. 8011806: f44f 6280 mov.w r2, #1024 @ 0x400
  40987. 801180a: 601a str r2, [r3, #0]
  40988. }
  40989. 801180c: bf00 nop
  40990. 801180e: 3714 adds r7, #20
  40991. 8011810: 46bd mov sp, r7
  40992. 8011812: f85d 7b04 ldr.w r7, [sp], #4
  40993. 8011816: 4770 bx lr
  40994. 8011818: 24002c78 .word 0x24002c78
  40995. 801181c: 24002d20 .word 0x24002d20
  40996. 08011820 <vListInitialise>:
  40997. /*-----------------------------------------------------------
  40998. * PUBLIC LIST API documented in list.h
  40999. *----------------------------------------------------------*/
  41000. void vListInitialise( List_t * const pxList )
  41001. {
  41002. 8011820: b480 push {r7}
  41003. 8011822: b083 sub sp, #12
  41004. 8011824: af00 add r7, sp, #0
  41005. 8011826: 6078 str r0, [r7, #4]
  41006. /* The list structure contains a list item which is used to mark the
  41007. end of the list. To initialise the list the list end is inserted
  41008. as the only list entry. */
  41009. 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. */
  41010. 8011828: 687b ldr r3, [r7, #4]
  41011. 801182a: f103 0208 add.w r2, r3, #8
  41012. 801182e: 687b ldr r3, [r7, #4]
  41013. 8011830: 605a str r2, [r3, #4]
  41014. /* The list end value is the highest possible value in the list to
  41015. ensure it remains at the end of the list. */
  41016. pxList->xListEnd.xItemValue = portMAX_DELAY;
  41017. 8011832: 687b ldr r3, [r7, #4]
  41018. 8011834: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  41019. 8011838: 609a str r2, [r3, #8]
  41020. /* The list end next and previous pointers point to itself so we know
  41021. when the list is empty. */
  41022. 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. */
  41023. 801183a: 687b ldr r3, [r7, #4]
  41024. 801183c: f103 0208 add.w r2, r3, #8
  41025. 8011840: 687b ldr r3, [r7, #4]
  41026. 8011842: 60da str r2, [r3, #12]
  41027. 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. */
  41028. 8011844: 687b ldr r3, [r7, #4]
  41029. 8011846: f103 0208 add.w r2, r3, #8
  41030. 801184a: 687b ldr r3, [r7, #4]
  41031. 801184c: 611a str r2, [r3, #16]
  41032. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  41033. 801184e: 687b ldr r3, [r7, #4]
  41034. 8011850: 2200 movs r2, #0
  41035. 8011852: 601a str r2, [r3, #0]
  41036. /* Write known values into the list if
  41037. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  41038. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  41039. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  41040. }
  41041. 8011854: bf00 nop
  41042. 8011856: 370c adds r7, #12
  41043. 8011858: 46bd mov sp, r7
  41044. 801185a: f85d 7b04 ldr.w r7, [sp], #4
  41045. 801185e: 4770 bx lr
  41046. 08011860 <vListInitialiseItem>:
  41047. /*-----------------------------------------------------------*/
  41048. void vListInitialiseItem( ListItem_t * const pxItem )
  41049. {
  41050. 8011860: b480 push {r7}
  41051. 8011862: b083 sub sp, #12
  41052. 8011864: af00 add r7, sp, #0
  41053. 8011866: 6078 str r0, [r7, #4]
  41054. /* Make sure the list item is not recorded as being on a list. */
  41055. pxItem->pxContainer = NULL;
  41056. 8011868: 687b ldr r3, [r7, #4]
  41057. 801186a: 2200 movs r2, #0
  41058. 801186c: 611a str r2, [r3, #16]
  41059. /* Write known values into the list item if
  41060. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  41061. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  41062. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  41063. }
  41064. 801186e: bf00 nop
  41065. 8011870: 370c adds r7, #12
  41066. 8011872: 46bd mov sp, r7
  41067. 8011874: f85d 7b04 ldr.w r7, [sp], #4
  41068. 8011878: 4770 bx lr
  41069. 0801187a <vListInsertEnd>:
  41070. /*-----------------------------------------------------------*/
  41071. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  41072. {
  41073. 801187a: b480 push {r7}
  41074. 801187c: b085 sub sp, #20
  41075. 801187e: af00 add r7, sp, #0
  41076. 8011880: 6078 str r0, [r7, #4]
  41077. 8011882: 6039 str r1, [r7, #0]
  41078. ListItem_t * const pxIndex = pxList->pxIndex;
  41079. 8011884: 687b ldr r3, [r7, #4]
  41080. 8011886: 685b ldr r3, [r3, #4]
  41081. 8011888: 60fb str r3, [r7, #12]
  41082. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  41083. /* Insert a new list item into pxList, but rather than sort the list,
  41084. makes the new list item the last item to be removed by a call to
  41085. listGET_OWNER_OF_NEXT_ENTRY(). */
  41086. pxNewListItem->pxNext = pxIndex;
  41087. 801188a: 683b ldr r3, [r7, #0]
  41088. 801188c: 68fa ldr r2, [r7, #12]
  41089. 801188e: 605a str r2, [r3, #4]
  41090. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  41091. 8011890: 68fb ldr r3, [r7, #12]
  41092. 8011892: 689a ldr r2, [r3, #8]
  41093. 8011894: 683b ldr r3, [r7, #0]
  41094. 8011896: 609a str r2, [r3, #8]
  41095. /* Only used during decision coverage testing. */
  41096. mtCOVERAGE_TEST_DELAY();
  41097. pxIndex->pxPrevious->pxNext = pxNewListItem;
  41098. 8011898: 68fb ldr r3, [r7, #12]
  41099. 801189a: 689b ldr r3, [r3, #8]
  41100. 801189c: 683a ldr r2, [r7, #0]
  41101. 801189e: 605a str r2, [r3, #4]
  41102. pxIndex->pxPrevious = pxNewListItem;
  41103. 80118a0: 68fb ldr r3, [r7, #12]
  41104. 80118a2: 683a ldr r2, [r7, #0]
  41105. 80118a4: 609a str r2, [r3, #8]
  41106. /* Remember which list the item is in. */
  41107. pxNewListItem->pxContainer = pxList;
  41108. 80118a6: 683b ldr r3, [r7, #0]
  41109. 80118a8: 687a ldr r2, [r7, #4]
  41110. 80118aa: 611a str r2, [r3, #16]
  41111. ( pxList->uxNumberOfItems )++;
  41112. 80118ac: 687b ldr r3, [r7, #4]
  41113. 80118ae: 681b ldr r3, [r3, #0]
  41114. 80118b0: 1c5a adds r2, r3, #1
  41115. 80118b2: 687b ldr r3, [r7, #4]
  41116. 80118b4: 601a str r2, [r3, #0]
  41117. }
  41118. 80118b6: bf00 nop
  41119. 80118b8: 3714 adds r7, #20
  41120. 80118ba: 46bd mov sp, r7
  41121. 80118bc: f85d 7b04 ldr.w r7, [sp], #4
  41122. 80118c0: 4770 bx lr
  41123. 080118c2 <vListInsert>:
  41124. /*-----------------------------------------------------------*/
  41125. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  41126. {
  41127. 80118c2: b480 push {r7}
  41128. 80118c4: b085 sub sp, #20
  41129. 80118c6: af00 add r7, sp, #0
  41130. 80118c8: 6078 str r0, [r7, #4]
  41131. 80118ca: 6039 str r1, [r7, #0]
  41132. ListItem_t *pxIterator;
  41133. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  41134. 80118cc: 683b ldr r3, [r7, #0]
  41135. 80118ce: 681b ldr r3, [r3, #0]
  41136. 80118d0: 60bb str r3, [r7, #8]
  41137. new list item should be placed after it. This ensures that TCBs which are
  41138. stored in ready lists (all of which have the same xItemValue value) get a
  41139. share of the CPU. However, if the xItemValue is the same as the back marker
  41140. the iteration loop below will not end. Therefore the value is checked
  41141. first, and the algorithm slightly modified if necessary. */
  41142. if( xValueOfInsertion == portMAX_DELAY )
  41143. 80118d2: 68bb ldr r3, [r7, #8]
  41144. 80118d4: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41145. 80118d8: d103 bne.n 80118e2 <vListInsert+0x20>
  41146. {
  41147. pxIterator = pxList->xListEnd.pxPrevious;
  41148. 80118da: 687b ldr r3, [r7, #4]
  41149. 80118dc: 691b ldr r3, [r3, #16]
  41150. 80118de: 60fb str r3, [r7, #12]
  41151. 80118e0: e00c b.n 80118fc <vListInsert+0x3a>
  41152. 4) Using a queue or semaphore before it has been initialised or
  41153. before the scheduler has been started (are interrupts firing
  41154. before vTaskStartScheduler() has been called?).
  41155. **********************************************************************/
  41156. 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. */
  41157. 80118e2: 687b ldr r3, [r7, #4]
  41158. 80118e4: 3308 adds r3, #8
  41159. 80118e6: 60fb str r3, [r7, #12]
  41160. 80118e8: e002 b.n 80118f0 <vListInsert+0x2e>
  41161. 80118ea: 68fb ldr r3, [r7, #12]
  41162. 80118ec: 685b ldr r3, [r3, #4]
  41163. 80118ee: 60fb str r3, [r7, #12]
  41164. 80118f0: 68fb ldr r3, [r7, #12]
  41165. 80118f2: 685b ldr r3, [r3, #4]
  41166. 80118f4: 681b ldr r3, [r3, #0]
  41167. 80118f6: 68ba ldr r2, [r7, #8]
  41168. 80118f8: 429a cmp r2, r3
  41169. 80118fa: d2f6 bcs.n 80118ea <vListInsert+0x28>
  41170. /* There is nothing to do here, just iterating to the wanted
  41171. insertion position. */
  41172. }
  41173. }
  41174. pxNewListItem->pxNext = pxIterator->pxNext;
  41175. 80118fc: 68fb ldr r3, [r7, #12]
  41176. 80118fe: 685a ldr r2, [r3, #4]
  41177. 8011900: 683b ldr r3, [r7, #0]
  41178. 8011902: 605a str r2, [r3, #4]
  41179. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  41180. 8011904: 683b ldr r3, [r7, #0]
  41181. 8011906: 685b ldr r3, [r3, #4]
  41182. 8011908: 683a ldr r2, [r7, #0]
  41183. 801190a: 609a str r2, [r3, #8]
  41184. pxNewListItem->pxPrevious = pxIterator;
  41185. 801190c: 683b ldr r3, [r7, #0]
  41186. 801190e: 68fa ldr r2, [r7, #12]
  41187. 8011910: 609a str r2, [r3, #8]
  41188. pxIterator->pxNext = pxNewListItem;
  41189. 8011912: 68fb ldr r3, [r7, #12]
  41190. 8011914: 683a ldr r2, [r7, #0]
  41191. 8011916: 605a str r2, [r3, #4]
  41192. /* Remember which list the item is in. This allows fast removal of the
  41193. item later. */
  41194. pxNewListItem->pxContainer = pxList;
  41195. 8011918: 683b ldr r3, [r7, #0]
  41196. 801191a: 687a ldr r2, [r7, #4]
  41197. 801191c: 611a str r2, [r3, #16]
  41198. ( pxList->uxNumberOfItems )++;
  41199. 801191e: 687b ldr r3, [r7, #4]
  41200. 8011920: 681b ldr r3, [r3, #0]
  41201. 8011922: 1c5a adds r2, r3, #1
  41202. 8011924: 687b ldr r3, [r7, #4]
  41203. 8011926: 601a str r2, [r3, #0]
  41204. }
  41205. 8011928: bf00 nop
  41206. 801192a: 3714 adds r7, #20
  41207. 801192c: 46bd mov sp, r7
  41208. 801192e: f85d 7b04 ldr.w r7, [sp], #4
  41209. 8011932: 4770 bx lr
  41210. 08011934 <uxListRemove>:
  41211. /*-----------------------------------------------------------*/
  41212. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  41213. {
  41214. 8011934: b480 push {r7}
  41215. 8011936: b085 sub sp, #20
  41216. 8011938: af00 add r7, sp, #0
  41217. 801193a: 6078 str r0, [r7, #4]
  41218. /* The list item knows which list it is in. Obtain the list from the list
  41219. item. */
  41220. List_t * const pxList = pxItemToRemove->pxContainer;
  41221. 801193c: 687b ldr r3, [r7, #4]
  41222. 801193e: 691b ldr r3, [r3, #16]
  41223. 8011940: 60fb str r3, [r7, #12]
  41224. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  41225. 8011942: 687b ldr r3, [r7, #4]
  41226. 8011944: 685b ldr r3, [r3, #4]
  41227. 8011946: 687a ldr r2, [r7, #4]
  41228. 8011948: 6892 ldr r2, [r2, #8]
  41229. 801194a: 609a str r2, [r3, #8]
  41230. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  41231. 801194c: 687b ldr r3, [r7, #4]
  41232. 801194e: 689b ldr r3, [r3, #8]
  41233. 8011950: 687a ldr r2, [r7, #4]
  41234. 8011952: 6852 ldr r2, [r2, #4]
  41235. 8011954: 605a str r2, [r3, #4]
  41236. /* Only used during decision coverage testing. */
  41237. mtCOVERAGE_TEST_DELAY();
  41238. /* Make sure the index is left pointing to a valid item. */
  41239. if( pxList->pxIndex == pxItemToRemove )
  41240. 8011956: 68fb ldr r3, [r7, #12]
  41241. 8011958: 685b ldr r3, [r3, #4]
  41242. 801195a: 687a ldr r2, [r7, #4]
  41243. 801195c: 429a cmp r2, r3
  41244. 801195e: d103 bne.n 8011968 <uxListRemove+0x34>
  41245. {
  41246. pxList->pxIndex = pxItemToRemove->pxPrevious;
  41247. 8011960: 687b ldr r3, [r7, #4]
  41248. 8011962: 689a ldr r2, [r3, #8]
  41249. 8011964: 68fb ldr r3, [r7, #12]
  41250. 8011966: 605a str r2, [r3, #4]
  41251. else
  41252. {
  41253. mtCOVERAGE_TEST_MARKER();
  41254. }
  41255. pxItemToRemove->pxContainer = NULL;
  41256. 8011968: 687b ldr r3, [r7, #4]
  41257. 801196a: 2200 movs r2, #0
  41258. 801196c: 611a str r2, [r3, #16]
  41259. ( pxList->uxNumberOfItems )--;
  41260. 801196e: 68fb ldr r3, [r7, #12]
  41261. 8011970: 681b ldr r3, [r3, #0]
  41262. 8011972: 1e5a subs r2, r3, #1
  41263. 8011974: 68fb ldr r3, [r7, #12]
  41264. 8011976: 601a str r2, [r3, #0]
  41265. return pxList->uxNumberOfItems;
  41266. 8011978: 68fb ldr r3, [r7, #12]
  41267. 801197a: 681b ldr r3, [r3, #0]
  41268. }
  41269. 801197c: 4618 mov r0, r3
  41270. 801197e: 3714 adds r7, #20
  41271. 8011980: 46bd mov sp, r7
  41272. 8011982: f85d 7b04 ldr.w r7, [sp], #4
  41273. 8011986: 4770 bx lr
  41274. 08011988 <xQueueGenericReset>:
  41275. } \
  41276. taskEXIT_CRITICAL()
  41277. /*-----------------------------------------------------------*/
  41278. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  41279. {
  41280. 8011988: b580 push {r7, lr}
  41281. 801198a: b084 sub sp, #16
  41282. 801198c: af00 add r7, sp, #0
  41283. 801198e: 6078 str r0, [r7, #4]
  41284. 8011990: 6039 str r1, [r7, #0]
  41285. Queue_t * const pxQueue = xQueue;
  41286. 8011992: 687b ldr r3, [r7, #4]
  41287. 8011994: 60fb str r3, [r7, #12]
  41288. configASSERT( pxQueue );
  41289. 8011996: 68fb ldr r3, [r7, #12]
  41290. 8011998: 2b00 cmp r3, #0
  41291. 801199a: d10b bne.n 80119b4 <xQueueGenericReset+0x2c>
  41292. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  41293. {
  41294. uint32_t ulNewBASEPRI;
  41295. __asm volatile
  41296. 801199c: f04f 0350 mov.w r3, #80 @ 0x50
  41297. 80119a0: f383 8811 msr BASEPRI, r3
  41298. 80119a4: f3bf 8f6f isb sy
  41299. 80119a8: f3bf 8f4f dsb sy
  41300. 80119ac: 60bb str r3, [r7, #8]
  41301. " msr basepri, %0 \n" \
  41302. " isb \n" \
  41303. " dsb \n" \
  41304. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  41305. );
  41306. }
  41307. 80119ae: bf00 nop
  41308. 80119b0: bf00 nop
  41309. 80119b2: e7fd b.n 80119b0 <xQueueGenericReset+0x28>
  41310. taskENTER_CRITICAL();
  41311. 80119b4: f003 fcb0 bl 8015318 <vPortEnterCritical>
  41312. {
  41313. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  41314. 80119b8: 68fb ldr r3, [r7, #12]
  41315. 80119ba: 681a ldr r2, [r3, #0]
  41316. 80119bc: 68fb ldr r3, [r7, #12]
  41317. 80119be: 6bdb ldr r3, [r3, #60] @ 0x3c
  41318. 80119c0: 68f9 ldr r1, [r7, #12]
  41319. 80119c2: 6c09 ldr r1, [r1, #64] @ 0x40
  41320. 80119c4: fb01 f303 mul.w r3, r1, r3
  41321. 80119c8: 441a add r2, r3
  41322. 80119ca: 68fb ldr r3, [r7, #12]
  41323. 80119cc: 609a str r2, [r3, #8]
  41324. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  41325. 80119ce: 68fb ldr r3, [r7, #12]
  41326. 80119d0: 2200 movs r2, #0
  41327. 80119d2: 639a str r2, [r3, #56] @ 0x38
  41328. pxQueue->pcWriteTo = pxQueue->pcHead;
  41329. 80119d4: 68fb ldr r3, [r7, #12]
  41330. 80119d6: 681a ldr r2, [r3, #0]
  41331. 80119d8: 68fb ldr r3, [r7, #12]
  41332. 80119da: 605a str r2, [r3, #4]
  41333. 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. */
  41334. 80119dc: 68fb ldr r3, [r7, #12]
  41335. 80119de: 681a ldr r2, [r3, #0]
  41336. 80119e0: 68fb ldr r3, [r7, #12]
  41337. 80119e2: 6bdb ldr r3, [r3, #60] @ 0x3c
  41338. 80119e4: 3b01 subs r3, #1
  41339. 80119e6: 68f9 ldr r1, [r7, #12]
  41340. 80119e8: 6c09 ldr r1, [r1, #64] @ 0x40
  41341. 80119ea: fb01 f303 mul.w r3, r1, r3
  41342. 80119ee: 441a add r2, r3
  41343. 80119f0: 68fb ldr r3, [r7, #12]
  41344. 80119f2: 60da str r2, [r3, #12]
  41345. pxQueue->cRxLock = queueUNLOCKED;
  41346. 80119f4: 68fb ldr r3, [r7, #12]
  41347. 80119f6: 22ff movs r2, #255 @ 0xff
  41348. 80119f8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  41349. pxQueue->cTxLock = queueUNLOCKED;
  41350. 80119fc: 68fb ldr r3, [r7, #12]
  41351. 80119fe: 22ff movs r2, #255 @ 0xff
  41352. 8011a00: f883 2045 strb.w r2, [r3, #69] @ 0x45
  41353. if( xNewQueue == pdFALSE )
  41354. 8011a04: 683b ldr r3, [r7, #0]
  41355. 8011a06: 2b00 cmp r3, #0
  41356. 8011a08: d114 bne.n 8011a34 <xQueueGenericReset+0xac>
  41357. /* If there are tasks blocked waiting to read from the queue, then
  41358. the tasks will remain blocked as after this function exits the queue
  41359. will still be empty. If there are tasks blocked waiting to write to
  41360. the queue, then one should be unblocked as after this function exits
  41361. it will be possible to write to it. */
  41362. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  41363. 8011a0a: 68fb ldr r3, [r7, #12]
  41364. 8011a0c: 691b ldr r3, [r3, #16]
  41365. 8011a0e: 2b00 cmp r3, #0
  41366. 8011a10: d01a beq.n 8011a48 <xQueueGenericReset+0xc0>
  41367. {
  41368. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  41369. 8011a12: 68fb ldr r3, [r7, #12]
  41370. 8011a14: 3310 adds r3, #16
  41371. 8011a16: 4618 mov r0, r3
  41372. 8011a18: f002 f922 bl 8013c60 <xTaskRemoveFromEventList>
  41373. 8011a1c: 4603 mov r3, r0
  41374. 8011a1e: 2b00 cmp r3, #0
  41375. 8011a20: d012 beq.n 8011a48 <xQueueGenericReset+0xc0>
  41376. {
  41377. queueYIELD_IF_USING_PREEMPTION();
  41378. 8011a22: 4b0d ldr r3, [pc, #52] @ (8011a58 <xQueueGenericReset+0xd0>)
  41379. 8011a24: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  41380. 8011a28: 601a str r2, [r3, #0]
  41381. 8011a2a: f3bf 8f4f dsb sy
  41382. 8011a2e: f3bf 8f6f isb sy
  41383. 8011a32: e009 b.n 8011a48 <xQueueGenericReset+0xc0>
  41384. }
  41385. }
  41386. else
  41387. {
  41388. /* Ensure the event queues start in the correct state. */
  41389. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  41390. 8011a34: 68fb ldr r3, [r7, #12]
  41391. 8011a36: 3310 adds r3, #16
  41392. 8011a38: 4618 mov r0, r3
  41393. 8011a3a: f7ff fef1 bl 8011820 <vListInitialise>
  41394. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  41395. 8011a3e: 68fb ldr r3, [r7, #12]
  41396. 8011a40: 3324 adds r3, #36 @ 0x24
  41397. 8011a42: 4618 mov r0, r3
  41398. 8011a44: f7ff feec bl 8011820 <vListInitialise>
  41399. }
  41400. }
  41401. taskEXIT_CRITICAL();
  41402. 8011a48: f003 fc98 bl 801537c <vPortExitCritical>
  41403. /* A value is returned for calling semantic consistency with previous
  41404. versions. */
  41405. return pdPASS;
  41406. 8011a4c: 2301 movs r3, #1
  41407. }
  41408. 8011a4e: 4618 mov r0, r3
  41409. 8011a50: 3710 adds r7, #16
  41410. 8011a52: 46bd mov sp, r7
  41411. 8011a54: bd80 pop {r7, pc}
  41412. 8011a56: bf00 nop
  41413. 8011a58: e000ed04 .word 0xe000ed04
  41414. 08011a5c <xQueueGenericCreateStatic>:
  41415. /*-----------------------------------------------------------*/
  41416. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  41417. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  41418. {
  41419. 8011a5c: b580 push {r7, lr}
  41420. 8011a5e: b08e sub sp, #56 @ 0x38
  41421. 8011a60: af02 add r7, sp, #8
  41422. 8011a62: 60f8 str r0, [r7, #12]
  41423. 8011a64: 60b9 str r1, [r7, #8]
  41424. 8011a66: 607a str r2, [r7, #4]
  41425. 8011a68: 603b str r3, [r7, #0]
  41426. Queue_t *pxNewQueue;
  41427. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  41428. 8011a6a: 68fb ldr r3, [r7, #12]
  41429. 8011a6c: 2b00 cmp r3, #0
  41430. 8011a6e: d10b bne.n 8011a88 <xQueueGenericCreateStatic+0x2c>
  41431. __asm volatile
  41432. 8011a70: f04f 0350 mov.w r3, #80 @ 0x50
  41433. 8011a74: f383 8811 msr BASEPRI, r3
  41434. 8011a78: f3bf 8f6f isb sy
  41435. 8011a7c: f3bf 8f4f dsb sy
  41436. 8011a80: 62bb str r3, [r7, #40] @ 0x28
  41437. }
  41438. 8011a82: bf00 nop
  41439. 8011a84: bf00 nop
  41440. 8011a86: e7fd b.n 8011a84 <xQueueGenericCreateStatic+0x28>
  41441. /* The StaticQueue_t structure and the queue storage area must be
  41442. supplied. */
  41443. configASSERT( pxStaticQueue != NULL );
  41444. 8011a88: 683b ldr r3, [r7, #0]
  41445. 8011a8a: 2b00 cmp r3, #0
  41446. 8011a8c: d10b bne.n 8011aa6 <xQueueGenericCreateStatic+0x4a>
  41447. __asm volatile
  41448. 8011a8e: f04f 0350 mov.w r3, #80 @ 0x50
  41449. 8011a92: f383 8811 msr BASEPRI, r3
  41450. 8011a96: f3bf 8f6f isb sy
  41451. 8011a9a: f3bf 8f4f dsb sy
  41452. 8011a9e: 627b str r3, [r7, #36] @ 0x24
  41453. }
  41454. 8011aa0: bf00 nop
  41455. 8011aa2: bf00 nop
  41456. 8011aa4: e7fd b.n 8011aa2 <xQueueGenericCreateStatic+0x46>
  41457. /* A queue storage area should be provided if the item size is not 0, and
  41458. should not be provided if the item size is 0. */
  41459. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  41460. 8011aa6: 687b ldr r3, [r7, #4]
  41461. 8011aa8: 2b00 cmp r3, #0
  41462. 8011aaa: d002 beq.n 8011ab2 <xQueueGenericCreateStatic+0x56>
  41463. 8011aac: 68bb ldr r3, [r7, #8]
  41464. 8011aae: 2b00 cmp r3, #0
  41465. 8011ab0: d001 beq.n 8011ab6 <xQueueGenericCreateStatic+0x5a>
  41466. 8011ab2: 2301 movs r3, #1
  41467. 8011ab4: e000 b.n 8011ab8 <xQueueGenericCreateStatic+0x5c>
  41468. 8011ab6: 2300 movs r3, #0
  41469. 8011ab8: 2b00 cmp r3, #0
  41470. 8011aba: d10b bne.n 8011ad4 <xQueueGenericCreateStatic+0x78>
  41471. __asm volatile
  41472. 8011abc: f04f 0350 mov.w r3, #80 @ 0x50
  41473. 8011ac0: f383 8811 msr BASEPRI, r3
  41474. 8011ac4: f3bf 8f6f isb sy
  41475. 8011ac8: f3bf 8f4f dsb sy
  41476. 8011acc: 623b str r3, [r7, #32]
  41477. }
  41478. 8011ace: bf00 nop
  41479. 8011ad0: bf00 nop
  41480. 8011ad2: e7fd b.n 8011ad0 <xQueueGenericCreateStatic+0x74>
  41481. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  41482. 8011ad4: 687b ldr r3, [r7, #4]
  41483. 8011ad6: 2b00 cmp r3, #0
  41484. 8011ad8: d102 bne.n 8011ae0 <xQueueGenericCreateStatic+0x84>
  41485. 8011ada: 68bb ldr r3, [r7, #8]
  41486. 8011adc: 2b00 cmp r3, #0
  41487. 8011ade: d101 bne.n 8011ae4 <xQueueGenericCreateStatic+0x88>
  41488. 8011ae0: 2301 movs r3, #1
  41489. 8011ae2: e000 b.n 8011ae6 <xQueueGenericCreateStatic+0x8a>
  41490. 8011ae4: 2300 movs r3, #0
  41491. 8011ae6: 2b00 cmp r3, #0
  41492. 8011ae8: d10b bne.n 8011b02 <xQueueGenericCreateStatic+0xa6>
  41493. __asm volatile
  41494. 8011aea: f04f 0350 mov.w r3, #80 @ 0x50
  41495. 8011aee: f383 8811 msr BASEPRI, r3
  41496. 8011af2: f3bf 8f6f isb sy
  41497. 8011af6: f3bf 8f4f dsb sy
  41498. 8011afa: 61fb str r3, [r7, #28]
  41499. }
  41500. 8011afc: bf00 nop
  41501. 8011afe: bf00 nop
  41502. 8011b00: e7fd b.n 8011afe <xQueueGenericCreateStatic+0xa2>
  41503. #if( configASSERT_DEFINED == 1 )
  41504. {
  41505. /* Sanity check that the size of the structure used to declare a
  41506. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  41507. the real queue and semaphore structures. */
  41508. volatile size_t xSize = sizeof( StaticQueue_t );
  41509. 8011b02: 2350 movs r3, #80 @ 0x50
  41510. 8011b04: 617b str r3, [r7, #20]
  41511. configASSERT( xSize == sizeof( Queue_t ) );
  41512. 8011b06: 697b ldr r3, [r7, #20]
  41513. 8011b08: 2b50 cmp r3, #80 @ 0x50
  41514. 8011b0a: d00b beq.n 8011b24 <xQueueGenericCreateStatic+0xc8>
  41515. __asm volatile
  41516. 8011b0c: f04f 0350 mov.w r3, #80 @ 0x50
  41517. 8011b10: f383 8811 msr BASEPRI, r3
  41518. 8011b14: f3bf 8f6f isb sy
  41519. 8011b18: f3bf 8f4f dsb sy
  41520. 8011b1c: 61bb str r3, [r7, #24]
  41521. }
  41522. 8011b1e: bf00 nop
  41523. 8011b20: bf00 nop
  41524. 8011b22: e7fd b.n 8011b20 <xQueueGenericCreateStatic+0xc4>
  41525. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  41526. 8011b24: 697b ldr r3, [r7, #20]
  41527. #endif /* configASSERT_DEFINED */
  41528. /* The address of a statically allocated queue was passed in, use it.
  41529. The address of a statically allocated storage area was also passed in
  41530. but is already set. */
  41531. 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. */
  41532. 8011b26: 683b ldr r3, [r7, #0]
  41533. 8011b28: 62fb str r3, [r7, #44] @ 0x2c
  41534. if( pxNewQueue != NULL )
  41535. 8011b2a: 6afb ldr r3, [r7, #44] @ 0x2c
  41536. 8011b2c: 2b00 cmp r3, #0
  41537. 8011b2e: d00d beq.n 8011b4c <xQueueGenericCreateStatic+0xf0>
  41538. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  41539. {
  41540. /* Queues can be allocated wither statically or dynamically, so
  41541. note this queue was allocated statically in case the queue is
  41542. later deleted. */
  41543. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  41544. 8011b30: 6afb ldr r3, [r7, #44] @ 0x2c
  41545. 8011b32: 2201 movs r2, #1
  41546. 8011b34: f883 2046 strb.w r2, [r3, #70] @ 0x46
  41547. }
  41548. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  41549. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  41550. 8011b38: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  41551. 8011b3c: 6afb ldr r3, [r7, #44] @ 0x2c
  41552. 8011b3e: 9300 str r3, [sp, #0]
  41553. 8011b40: 4613 mov r3, r2
  41554. 8011b42: 687a ldr r2, [r7, #4]
  41555. 8011b44: 68b9 ldr r1, [r7, #8]
  41556. 8011b46: 68f8 ldr r0, [r7, #12]
  41557. 8011b48: f000 f840 bl 8011bcc <prvInitialiseNewQueue>
  41558. {
  41559. traceQUEUE_CREATE_FAILED( ucQueueType );
  41560. mtCOVERAGE_TEST_MARKER();
  41561. }
  41562. return pxNewQueue;
  41563. 8011b4c: 6afb ldr r3, [r7, #44] @ 0x2c
  41564. }
  41565. 8011b4e: 4618 mov r0, r3
  41566. 8011b50: 3730 adds r7, #48 @ 0x30
  41567. 8011b52: 46bd mov sp, r7
  41568. 8011b54: bd80 pop {r7, pc}
  41569. 08011b56 <xQueueGenericCreate>:
  41570. /*-----------------------------------------------------------*/
  41571. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  41572. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  41573. {
  41574. 8011b56: b580 push {r7, lr}
  41575. 8011b58: b08a sub sp, #40 @ 0x28
  41576. 8011b5a: af02 add r7, sp, #8
  41577. 8011b5c: 60f8 str r0, [r7, #12]
  41578. 8011b5e: 60b9 str r1, [r7, #8]
  41579. 8011b60: 4613 mov r3, r2
  41580. 8011b62: 71fb strb r3, [r7, #7]
  41581. Queue_t *pxNewQueue;
  41582. size_t xQueueSizeInBytes;
  41583. uint8_t *pucQueueStorage;
  41584. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  41585. 8011b64: 68fb ldr r3, [r7, #12]
  41586. 8011b66: 2b00 cmp r3, #0
  41587. 8011b68: d10b bne.n 8011b82 <xQueueGenericCreate+0x2c>
  41588. __asm volatile
  41589. 8011b6a: f04f 0350 mov.w r3, #80 @ 0x50
  41590. 8011b6e: f383 8811 msr BASEPRI, r3
  41591. 8011b72: f3bf 8f6f isb sy
  41592. 8011b76: f3bf 8f4f dsb sy
  41593. 8011b7a: 613b str r3, [r7, #16]
  41594. }
  41595. 8011b7c: bf00 nop
  41596. 8011b7e: bf00 nop
  41597. 8011b80: e7fd b.n 8011b7e <xQueueGenericCreate+0x28>
  41598. /* Allocate enough space to hold the maximum number of items that
  41599. can be in the queue at any time. It is valid for uxItemSize to be
  41600. zero in the case the queue is used as a semaphore. */
  41601. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  41602. 8011b82: 68fb ldr r3, [r7, #12]
  41603. 8011b84: 68ba ldr r2, [r7, #8]
  41604. 8011b86: fb02 f303 mul.w r3, r2, r3
  41605. 8011b8a: 61fb str r3, [r7, #28]
  41606. alignment requirements of the Queue_t structure - which in this case
  41607. is an int8_t *. Therefore, whenever the stack alignment requirements
  41608. are greater than or equal to the pointer to char requirements the cast
  41609. is safe. In other cases alignment requirements are not strict (one or
  41610. two bytes). */
  41611. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  41612. 8011b8c: 69fb ldr r3, [r7, #28]
  41613. 8011b8e: 3350 adds r3, #80 @ 0x50
  41614. 8011b90: 4618 mov r0, r3
  41615. 8011b92: f003 fce3 bl 801555c <pvPortMalloc>
  41616. 8011b96: 61b8 str r0, [r7, #24]
  41617. if( pxNewQueue != NULL )
  41618. 8011b98: 69bb ldr r3, [r7, #24]
  41619. 8011b9a: 2b00 cmp r3, #0
  41620. 8011b9c: d011 beq.n 8011bc2 <xQueueGenericCreate+0x6c>
  41621. {
  41622. /* Jump past the queue structure to find the location of the queue
  41623. storage area. */
  41624. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  41625. 8011b9e: 69bb ldr r3, [r7, #24]
  41626. 8011ba0: 617b str r3, [r7, #20]
  41627. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  41628. 8011ba2: 697b ldr r3, [r7, #20]
  41629. 8011ba4: 3350 adds r3, #80 @ 0x50
  41630. 8011ba6: 617b str r3, [r7, #20]
  41631. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  41632. {
  41633. /* Queues can be created either statically or dynamically, so
  41634. note this task was created dynamically in case it is later
  41635. deleted. */
  41636. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  41637. 8011ba8: 69bb ldr r3, [r7, #24]
  41638. 8011baa: 2200 movs r2, #0
  41639. 8011bac: f883 2046 strb.w r2, [r3, #70] @ 0x46
  41640. }
  41641. #endif /* configSUPPORT_STATIC_ALLOCATION */
  41642. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  41643. 8011bb0: 79fa ldrb r2, [r7, #7]
  41644. 8011bb2: 69bb ldr r3, [r7, #24]
  41645. 8011bb4: 9300 str r3, [sp, #0]
  41646. 8011bb6: 4613 mov r3, r2
  41647. 8011bb8: 697a ldr r2, [r7, #20]
  41648. 8011bba: 68b9 ldr r1, [r7, #8]
  41649. 8011bbc: 68f8 ldr r0, [r7, #12]
  41650. 8011bbe: f000 f805 bl 8011bcc <prvInitialiseNewQueue>
  41651. {
  41652. traceQUEUE_CREATE_FAILED( ucQueueType );
  41653. mtCOVERAGE_TEST_MARKER();
  41654. }
  41655. return pxNewQueue;
  41656. 8011bc2: 69bb ldr r3, [r7, #24]
  41657. }
  41658. 8011bc4: 4618 mov r0, r3
  41659. 8011bc6: 3720 adds r7, #32
  41660. 8011bc8: 46bd mov sp, r7
  41661. 8011bca: bd80 pop {r7, pc}
  41662. 08011bcc <prvInitialiseNewQueue>:
  41663. #endif /* configSUPPORT_STATIC_ALLOCATION */
  41664. /*-----------------------------------------------------------*/
  41665. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  41666. {
  41667. 8011bcc: b580 push {r7, lr}
  41668. 8011bce: b084 sub sp, #16
  41669. 8011bd0: af00 add r7, sp, #0
  41670. 8011bd2: 60f8 str r0, [r7, #12]
  41671. 8011bd4: 60b9 str r1, [r7, #8]
  41672. 8011bd6: 607a str r2, [r7, #4]
  41673. 8011bd8: 70fb strb r3, [r7, #3]
  41674. /* Remove compiler warnings about unused parameters should
  41675. configUSE_TRACE_FACILITY not be set to 1. */
  41676. ( void ) ucQueueType;
  41677. if( uxItemSize == ( UBaseType_t ) 0 )
  41678. 8011bda: 68bb ldr r3, [r7, #8]
  41679. 8011bdc: 2b00 cmp r3, #0
  41680. 8011bde: d103 bne.n 8011be8 <prvInitialiseNewQueue+0x1c>
  41681. {
  41682. /* No RAM was allocated for the queue storage area, but PC head cannot
  41683. be set to NULL because NULL is used as a key to say the queue is used as
  41684. a mutex. Therefore just set pcHead to point to the queue as a benign
  41685. value that is known to be within the memory map. */
  41686. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  41687. 8011be0: 69bb ldr r3, [r7, #24]
  41688. 8011be2: 69ba ldr r2, [r7, #24]
  41689. 8011be4: 601a str r2, [r3, #0]
  41690. 8011be6: e002 b.n 8011bee <prvInitialiseNewQueue+0x22>
  41691. }
  41692. else
  41693. {
  41694. /* Set the head to the start of the queue storage area. */
  41695. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  41696. 8011be8: 69bb ldr r3, [r7, #24]
  41697. 8011bea: 687a ldr r2, [r7, #4]
  41698. 8011bec: 601a str r2, [r3, #0]
  41699. }
  41700. /* Initialise the queue members as described where the queue type is
  41701. defined. */
  41702. pxNewQueue->uxLength = uxQueueLength;
  41703. 8011bee: 69bb ldr r3, [r7, #24]
  41704. 8011bf0: 68fa ldr r2, [r7, #12]
  41705. 8011bf2: 63da str r2, [r3, #60] @ 0x3c
  41706. pxNewQueue->uxItemSize = uxItemSize;
  41707. 8011bf4: 69bb ldr r3, [r7, #24]
  41708. 8011bf6: 68ba ldr r2, [r7, #8]
  41709. 8011bf8: 641a str r2, [r3, #64] @ 0x40
  41710. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  41711. 8011bfa: 2101 movs r1, #1
  41712. 8011bfc: 69b8 ldr r0, [r7, #24]
  41713. 8011bfe: f7ff fec3 bl 8011988 <xQueueGenericReset>
  41714. #if ( configUSE_TRACE_FACILITY == 1 )
  41715. {
  41716. pxNewQueue->ucQueueType = ucQueueType;
  41717. 8011c02: 69bb ldr r3, [r7, #24]
  41718. 8011c04: 78fa ldrb r2, [r7, #3]
  41719. 8011c06: f883 204c strb.w r2, [r3, #76] @ 0x4c
  41720. pxNewQueue->pxQueueSetContainer = NULL;
  41721. }
  41722. #endif /* configUSE_QUEUE_SETS */
  41723. traceQUEUE_CREATE( pxNewQueue );
  41724. }
  41725. 8011c0a: bf00 nop
  41726. 8011c0c: 3710 adds r7, #16
  41727. 8011c0e: 46bd mov sp, r7
  41728. 8011c10: bd80 pop {r7, pc}
  41729. 08011c12 <prvInitialiseMutex>:
  41730. /*-----------------------------------------------------------*/
  41731. #if( configUSE_MUTEXES == 1 )
  41732. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  41733. {
  41734. 8011c12: b580 push {r7, lr}
  41735. 8011c14: b082 sub sp, #8
  41736. 8011c16: af00 add r7, sp, #0
  41737. 8011c18: 6078 str r0, [r7, #4]
  41738. if( pxNewQueue != NULL )
  41739. 8011c1a: 687b ldr r3, [r7, #4]
  41740. 8011c1c: 2b00 cmp r3, #0
  41741. 8011c1e: d00e beq.n 8011c3e <prvInitialiseMutex+0x2c>
  41742. {
  41743. /* The queue create function will set all the queue structure members
  41744. correctly for a generic queue, but this function is creating a
  41745. mutex. Overwrite those members that need to be set differently -
  41746. in particular the information required for priority inheritance. */
  41747. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  41748. 8011c20: 687b ldr r3, [r7, #4]
  41749. 8011c22: 2200 movs r2, #0
  41750. 8011c24: 609a str r2, [r3, #8]
  41751. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  41752. 8011c26: 687b ldr r3, [r7, #4]
  41753. 8011c28: 2200 movs r2, #0
  41754. 8011c2a: 601a str r2, [r3, #0]
  41755. /* In case this is a recursive mutex. */
  41756. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  41757. 8011c2c: 687b ldr r3, [r7, #4]
  41758. 8011c2e: 2200 movs r2, #0
  41759. 8011c30: 60da str r2, [r3, #12]
  41760. traceCREATE_MUTEX( pxNewQueue );
  41761. /* Start with the semaphore in the expected state. */
  41762. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  41763. 8011c32: 2300 movs r3, #0
  41764. 8011c34: 2200 movs r2, #0
  41765. 8011c36: 2100 movs r1, #0
  41766. 8011c38: 6878 ldr r0, [r7, #4]
  41767. 8011c3a: f000 f911 bl 8011e60 <xQueueGenericSend>
  41768. }
  41769. else
  41770. {
  41771. traceCREATE_MUTEX_FAILED();
  41772. }
  41773. }
  41774. 8011c3e: bf00 nop
  41775. 8011c40: 3708 adds r7, #8
  41776. 8011c42: 46bd mov sp, r7
  41777. 8011c44: bd80 pop {r7, pc}
  41778. 08011c46 <xQueueCreateMutex>:
  41779. /*-----------------------------------------------------------*/
  41780. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  41781. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  41782. {
  41783. 8011c46: b580 push {r7, lr}
  41784. 8011c48: b086 sub sp, #24
  41785. 8011c4a: af00 add r7, sp, #0
  41786. 8011c4c: 4603 mov r3, r0
  41787. 8011c4e: 71fb strb r3, [r7, #7]
  41788. QueueHandle_t xNewQueue;
  41789. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  41790. 8011c50: 2301 movs r3, #1
  41791. 8011c52: 617b str r3, [r7, #20]
  41792. 8011c54: 2300 movs r3, #0
  41793. 8011c56: 613b str r3, [r7, #16]
  41794. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  41795. 8011c58: 79fb ldrb r3, [r7, #7]
  41796. 8011c5a: 461a mov r2, r3
  41797. 8011c5c: 6939 ldr r1, [r7, #16]
  41798. 8011c5e: 6978 ldr r0, [r7, #20]
  41799. 8011c60: f7ff ff79 bl 8011b56 <xQueueGenericCreate>
  41800. 8011c64: 60f8 str r0, [r7, #12]
  41801. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  41802. 8011c66: 68f8 ldr r0, [r7, #12]
  41803. 8011c68: f7ff ffd3 bl 8011c12 <prvInitialiseMutex>
  41804. return xNewQueue;
  41805. 8011c6c: 68fb ldr r3, [r7, #12]
  41806. }
  41807. 8011c6e: 4618 mov r0, r3
  41808. 8011c70: 3718 adds r7, #24
  41809. 8011c72: 46bd mov sp, r7
  41810. 8011c74: bd80 pop {r7, pc}
  41811. 08011c76 <xQueueCreateMutexStatic>:
  41812. /*-----------------------------------------------------------*/
  41813. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  41814. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  41815. {
  41816. 8011c76: b580 push {r7, lr}
  41817. 8011c78: b088 sub sp, #32
  41818. 8011c7a: af02 add r7, sp, #8
  41819. 8011c7c: 4603 mov r3, r0
  41820. 8011c7e: 6039 str r1, [r7, #0]
  41821. 8011c80: 71fb strb r3, [r7, #7]
  41822. QueueHandle_t xNewQueue;
  41823. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  41824. 8011c82: 2301 movs r3, #1
  41825. 8011c84: 617b str r3, [r7, #20]
  41826. 8011c86: 2300 movs r3, #0
  41827. 8011c88: 613b str r3, [r7, #16]
  41828. /* Prevent compiler warnings about unused parameters if
  41829. configUSE_TRACE_FACILITY does not equal 1. */
  41830. ( void ) ucQueueType;
  41831. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  41832. 8011c8a: 79fb ldrb r3, [r7, #7]
  41833. 8011c8c: 9300 str r3, [sp, #0]
  41834. 8011c8e: 683b ldr r3, [r7, #0]
  41835. 8011c90: 2200 movs r2, #0
  41836. 8011c92: 6939 ldr r1, [r7, #16]
  41837. 8011c94: 6978 ldr r0, [r7, #20]
  41838. 8011c96: f7ff fee1 bl 8011a5c <xQueueGenericCreateStatic>
  41839. 8011c9a: 60f8 str r0, [r7, #12]
  41840. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  41841. 8011c9c: 68f8 ldr r0, [r7, #12]
  41842. 8011c9e: f7ff ffb8 bl 8011c12 <prvInitialiseMutex>
  41843. return xNewQueue;
  41844. 8011ca2: 68fb ldr r3, [r7, #12]
  41845. }
  41846. 8011ca4: 4618 mov r0, r3
  41847. 8011ca6: 3718 adds r7, #24
  41848. 8011ca8: 46bd mov sp, r7
  41849. 8011caa: bd80 pop {r7, pc}
  41850. 08011cac <xQueueGiveMutexRecursive>:
  41851. /*-----------------------------------------------------------*/
  41852. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  41853. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  41854. {
  41855. 8011cac: b590 push {r4, r7, lr}
  41856. 8011cae: b087 sub sp, #28
  41857. 8011cb0: af00 add r7, sp, #0
  41858. 8011cb2: 6078 str r0, [r7, #4]
  41859. BaseType_t xReturn;
  41860. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  41861. 8011cb4: 687b ldr r3, [r7, #4]
  41862. 8011cb6: 613b str r3, [r7, #16]
  41863. configASSERT( pxMutex );
  41864. 8011cb8: 693b ldr r3, [r7, #16]
  41865. 8011cba: 2b00 cmp r3, #0
  41866. 8011cbc: d10b bne.n 8011cd6 <xQueueGiveMutexRecursive+0x2a>
  41867. __asm volatile
  41868. 8011cbe: f04f 0350 mov.w r3, #80 @ 0x50
  41869. 8011cc2: f383 8811 msr BASEPRI, r3
  41870. 8011cc6: f3bf 8f6f isb sy
  41871. 8011cca: f3bf 8f4f dsb sy
  41872. 8011cce: 60fb str r3, [r7, #12]
  41873. }
  41874. 8011cd0: bf00 nop
  41875. 8011cd2: bf00 nop
  41876. 8011cd4: e7fd b.n 8011cd2 <xQueueGiveMutexRecursive+0x26>
  41877. change outside of this task. If this task does not hold the mutex then
  41878. pxMutexHolder can never coincidentally equal the tasks handle, and as
  41879. this is the only condition we are interested in it does not matter if
  41880. pxMutexHolder is accessed simultaneously by another task. Therefore no
  41881. mutual exclusion is required to test the pxMutexHolder variable. */
  41882. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  41883. 8011cd6: 693b ldr r3, [r7, #16]
  41884. 8011cd8: 689c ldr r4, [r3, #8]
  41885. 8011cda: f002 f9af bl 801403c <xTaskGetCurrentTaskHandle>
  41886. 8011cde: 4603 mov r3, r0
  41887. 8011ce0: 429c cmp r4, r3
  41888. 8011ce2: d111 bne.n 8011d08 <xQueueGiveMutexRecursive+0x5c>
  41889. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  41890. the task handle, therefore no underflow check is required. Also,
  41891. uxRecursiveCallCount is only modified by the mutex holder, and as
  41892. there can only be one, no mutual exclusion is required to modify the
  41893. uxRecursiveCallCount member. */
  41894. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  41895. 8011ce4: 693b ldr r3, [r7, #16]
  41896. 8011ce6: 68db ldr r3, [r3, #12]
  41897. 8011ce8: 1e5a subs r2, r3, #1
  41898. 8011cea: 693b ldr r3, [r7, #16]
  41899. 8011cec: 60da str r2, [r3, #12]
  41900. /* Has the recursive call count unwound to 0? */
  41901. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  41902. 8011cee: 693b ldr r3, [r7, #16]
  41903. 8011cf0: 68db ldr r3, [r3, #12]
  41904. 8011cf2: 2b00 cmp r3, #0
  41905. 8011cf4: d105 bne.n 8011d02 <xQueueGiveMutexRecursive+0x56>
  41906. {
  41907. /* Return the mutex. This will automatically unblock any other
  41908. task that might be waiting to access the mutex. */
  41909. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  41910. 8011cf6: 2300 movs r3, #0
  41911. 8011cf8: 2200 movs r2, #0
  41912. 8011cfa: 2100 movs r1, #0
  41913. 8011cfc: 6938 ldr r0, [r7, #16]
  41914. 8011cfe: f000 f8af bl 8011e60 <xQueueGenericSend>
  41915. else
  41916. {
  41917. mtCOVERAGE_TEST_MARKER();
  41918. }
  41919. xReturn = pdPASS;
  41920. 8011d02: 2301 movs r3, #1
  41921. 8011d04: 617b str r3, [r7, #20]
  41922. 8011d06: e001 b.n 8011d0c <xQueueGiveMutexRecursive+0x60>
  41923. }
  41924. else
  41925. {
  41926. /* The mutex cannot be given because the calling task is not the
  41927. holder. */
  41928. xReturn = pdFAIL;
  41929. 8011d08: 2300 movs r3, #0
  41930. 8011d0a: 617b str r3, [r7, #20]
  41931. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  41932. }
  41933. return xReturn;
  41934. 8011d0c: 697b ldr r3, [r7, #20]
  41935. }
  41936. 8011d0e: 4618 mov r0, r3
  41937. 8011d10: 371c adds r7, #28
  41938. 8011d12: 46bd mov sp, r7
  41939. 8011d14: bd90 pop {r4, r7, pc}
  41940. 08011d16 <xQueueTakeMutexRecursive>:
  41941. /*-----------------------------------------------------------*/
  41942. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  41943. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  41944. {
  41945. 8011d16: b590 push {r4, r7, lr}
  41946. 8011d18: b087 sub sp, #28
  41947. 8011d1a: af00 add r7, sp, #0
  41948. 8011d1c: 6078 str r0, [r7, #4]
  41949. 8011d1e: 6039 str r1, [r7, #0]
  41950. BaseType_t xReturn;
  41951. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  41952. 8011d20: 687b ldr r3, [r7, #4]
  41953. 8011d22: 613b str r3, [r7, #16]
  41954. configASSERT( pxMutex );
  41955. 8011d24: 693b ldr r3, [r7, #16]
  41956. 8011d26: 2b00 cmp r3, #0
  41957. 8011d28: d10b bne.n 8011d42 <xQueueTakeMutexRecursive+0x2c>
  41958. __asm volatile
  41959. 8011d2a: f04f 0350 mov.w r3, #80 @ 0x50
  41960. 8011d2e: f383 8811 msr BASEPRI, r3
  41961. 8011d32: f3bf 8f6f isb sy
  41962. 8011d36: f3bf 8f4f dsb sy
  41963. 8011d3a: 60fb str r3, [r7, #12]
  41964. }
  41965. 8011d3c: bf00 nop
  41966. 8011d3e: bf00 nop
  41967. 8011d40: e7fd b.n 8011d3e <xQueueTakeMutexRecursive+0x28>
  41968. /* Comments regarding mutual exclusion as per those within
  41969. xQueueGiveMutexRecursive(). */
  41970. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  41971. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  41972. 8011d42: 693b ldr r3, [r7, #16]
  41973. 8011d44: 689c ldr r4, [r3, #8]
  41974. 8011d46: f002 f979 bl 801403c <xTaskGetCurrentTaskHandle>
  41975. 8011d4a: 4603 mov r3, r0
  41976. 8011d4c: 429c cmp r4, r3
  41977. 8011d4e: d107 bne.n 8011d60 <xQueueTakeMutexRecursive+0x4a>
  41978. {
  41979. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  41980. 8011d50: 693b ldr r3, [r7, #16]
  41981. 8011d52: 68db ldr r3, [r3, #12]
  41982. 8011d54: 1c5a adds r2, r3, #1
  41983. 8011d56: 693b ldr r3, [r7, #16]
  41984. 8011d58: 60da str r2, [r3, #12]
  41985. xReturn = pdPASS;
  41986. 8011d5a: 2301 movs r3, #1
  41987. 8011d5c: 617b str r3, [r7, #20]
  41988. 8011d5e: e00c b.n 8011d7a <xQueueTakeMutexRecursive+0x64>
  41989. }
  41990. else
  41991. {
  41992. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  41993. 8011d60: 6839 ldr r1, [r7, #0]
  41994. 8011d62: 6938 ldr r0, [r7, #16]
  41995. 8011d64: f000 fb8e bl 8012484 <xQueueSemaphoreTake>
  41996. 8011d68: 6178 str r0, [r7, #20]
  41997. /* pdPASS will only be returned if the mutex was successfully
  41998. obtained. The calling task may have entered the Blocked state
  41999. before reaching here. */
  42000. if( xReturn != pdFAIL )
  42001. 8011d6a: 697b ldr r3, [r7, #20]
  42002. 8011d6c: 2b00 cmp r3, #0
  42003. 8011d6e: d004 beq.n 8011d7a <xQueueTakeMutexRecursive+0x64>
  42004. {
  42005. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  42006. 8011d70: 693b ldr r3, [r7, #16]
  42007. 8011d72: 68db ldr r3, [r3, #12]
  42008. 8011d74: 1c5a adds r2, r3, #1
  42009. 8011d76: 693b ldr r3, [r7, #16]
  42010. 8011d78: 60da str r2, [r3, #12]
  42011. {
  42012. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  42013. }
  42014. }
  42015. return xReturn;
  42016. 8011d7a: 697b ldr r3, [r7, #20]
  42017. }
  42018. 8011d7c: 4618 mov r0, r3
  42019. 8011d7e: 371c adds r7, #28
  42020. 8011d80: 46bd mov sp, r7
  42021. 8011d82: bd90 pop {r4, r7, pc}
  42022. 08011d84 <xQueueCreateCountingSemaphoreStatic>:
  42023. /*-----------------------------------------------------------*/
  42024. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  42025. QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue )
  42026. {
  42027. 8011d84: b580 push {r7, lr}
  42028. 8011d86: b08a sub sp, #40 @ 0x28
  42029. 8011d88: af02 add r7, sp, #8
  42030. 8011d8a: 60f8 str r0, [r7, #12]
  42031. 8011d8c: 60b9 str r1, [r7, #8]
  42032. 8011d8e: 607a str r2, [r7, #4]
  42033. QueueHandle_t xHandle;
  42034. configASSERT( uxMaxCount != 0 );
  42035. 8011d90: 68fb ldr r3, [r7, #12]
  42036. 8011d92: 2b00 cmp r3, #0
  42037. 8011d94: d10b bne.n 8011dae <xQueueCreateCountingSemaphoreStatic+0x2a>
  42038. __asm volatile
  42039. 8011d96: f04f 0350 mov.w r3, #80 @ 0x50
  42040. 8011d9a: f383 8811 msr BASEPRI, r3
  42041. 8011d9e: f3bf 8f6f isb sy
  42042. 8011da2: f3bf 8f4f dsb sy
  42043. 8011da6: 61bb str r3, [r7, #24]
  42044. }
  42045. 8011da8: bf00 nop
  42046. 8011daa: bf00 nop
  42047. 8011dac: e7fd b.n 8011daa <xQueueCreateCountingSemaphoreStatic+0x26>
  42048. configASSERT( uxInitialCount <= uxMaxCount );
  42049. 8011dae: 68ba ldr r2, [r7, #8]
  42050. 8011db0: 68fb ldr r3, [r7, #12]
  42051. 8011db2: 429a cmp r2, r3
  42052. 8011db4: d90b bls.n 8011dce <xQueueCreateCountingSemaphoreStatic+0x4a>
  42053. __asm volatile
  42054. 8011db6: f04f 0350 mov.w r3, #80 @ 0x50
  42055. 8011dba: f383 8811 msr BASEPRI, r3
  42056. 8011dbe: f3bf 8f6f isb sy
  42057. 8011dc2: f3bf 8f4f dsb sy
  42058. 8011dc6: 617b str r3, [r7, #20]
  42059. }
  42060. 8011dc8: bf00 nop
  42061. 8011dca: bf00 nop
  42062. 8011dcc: e7fd b.n 8011dca <xQueueCreateCountingSemaphoreStatic+0x46>
  42063. xHandle = xQueueGenericCreateStatic( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticQueue, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  42064. 8011dce: 2302 movs r3, #2
  42065. 8011dd0: 9300 str r3, [sp, #0]
  42066. 8011dd2: 687b ldr r3, [r7, #4]
  42067. 8011dd4: 2200 movs r2, #0
  42068. 8011dd6: 2100 movs r1, #0
  42069. 8011dd8: 68f8 ldr r0, [r7, #12]
  42070. 8011dda: f7ff fe3f bl 8011a5c <xQueueGenericCreateStatic>
  42071. 8011dde: 61f8 str r0, [r7, #28]
  42072. if( xHandle != NULL )
  42073. 8011de0: 69fb ldr r3, [r7, #28]
  42074. 8011de2: 2b00 cmp r3, #0
  42075. 8011de4: d002 beq.n 8011dec <xQueueCreateCountingSemaphoreStatic+0x68>
  42076. {
  42077. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  42078. 8011de6: 69fb ldr r3, [r7, #28]
  42079. 8011de8: 68ba ldr r2, [r7, #8]
  42080. 8011dea: 639a str r2, [r3, #56] @ 0x38
  42081. else
  42082. {
  42083. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  42084. }
  42085. return xHandle;
  42086. 8011dec: 69fb ldr r3, [r7, #28]
  42087. }
  42088. 8011dee: 4618 mov r0, r3
  42089. 8011df0: 3720 adds r7, #32
  42090. 8011df2: 46bd mov sp, r7
  42091. 8011df4: bd80 pop {r7, pc}
  42092. 08011df6 <xQueueCreateCountingSemaphore>:
  42093. /*-----------------------------------------------------------*/
  42094. #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  42095. QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount )
  42096. {
  42097. 8011df6: b580 push {r7, lr}
  42098. 8011df8: b086 sub sp, #24
  42099. 8011dfa: af00 add r7, sp, #0
  42100. 8011dfc: 6078 str r0, [r7, #4]
  42101. 8011dfe: 6039 str r1, [r7, #0]
  42102. QueueHandle_t xHandle;
  42103. configASSERT( uxMaxCount != 0 );
  42104. 8011e00: 687b ldr r3, [r7, #4]
  42105. 8011e02: 2b00 cmp r3, #0
  42106. 8011e04: d10b bne.n 8011e1e <xQueueCreateCountingSemaphore+0x28>
  42107. __asm volatile
  42108. 8011e06: f04f 0350 mov.w r3, #80 @ 0x50
  42109. 8011e0a: f383 8811 msr BASEPRI, r3
  42110. 8011e0e: f3bf 8f6f isb sy
  42111. 8011e12: f3bf 8f4f dsb sy
  42112. 8011e16: 613b str r3, [r7, #16]
  42113. }
  42114. 8011e18: bf00 nop
  42115. 8011e1a: bf00 nop
  42116. 8011e1c: e7fd b.n 8011e1a <xQueueCreateCountingSemaphore+0x24>
  42117. configASSERT( uxInitialCount <= uxMaxCount );
  42118. 8011e1e: 683a ldr r2, [r7, #0]
  42119. 8011e20: 687b ldr r3, [r7, #4]
  42120. 8011e22: 429a cmp r2, r3
  42121. 8011e24: d90b bls.n 8011e3e <xQueueCreateCountingSemaphore+0x48>
  42122. __asm volatile
  42123. 8011e26: f04f 0350 mov.w r3, #80 @ 0x50
  42124. 8011e2a: f383 8811 msr BASEPRI, r3
  42125. 8011e2e: f3bf 8f6f isb sy
  42126. 8011e32: f3bf 8f4f dsb sy
  42127. 8011e36: 60fb str r3, [r7, #12]
  42128. }
  42129. 8011e38: bf00 nop
  42130. 8011e3a: bf00 nop
  42131. 8011e3c: e7fd b.n 8011e3a <xQueueCreateCountingSemaphore+0x44>
  42132. xHandle = xQueueGenericCreate( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_COUNTING_SEMAPHORE );
  42133. 8011e3e: 2202 movs r2, #2
  42134. 8011e40: 2100 movs r1, #0
  42135. 8011e42: 6878 ldr r0, [r7, #4]
  42136. 8011e44: f7ff fe87 bl 8011b56 <xQueueGenericCreate>
  42137. 8011e48: 6178 str r0, [r7, #20]
  42138. if( xHandle != NULL )
  42139. 8011e4a: 697b ldr r3, [r7, #20]
  42140. 8011e4c: 2b00 cmp r3, #0
  42141. 8011e4e: d002 beq.n 8011e56 <xQueueCreateCountingSemaphore+0x60>
  42142. {
  42143. ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount;
  42144. 8011e50: 697b ldr r3, [r7, #20]
  42145. 8011e52: 683a ldr r2, [r7, #0]
  42146. 8011e54: 639a str r2, [r3, #56] @ 0x38
  42147. else
  42148. {
  42149. traceCREATE_COUNTING_SEMAPHORE_FAILED();
  42150. }
  42151. return xHandle;
  42152. 8011e56: 697b ldr r3, [r7, #20]
  42153. }
  42154. 8011e58: 4618 mov r0, r3
  42155. 8011e5a: 3718 adds r7, #24
  42156. 8011e5c: 46bd mov sp, r7
  42157. 8011e5e: bd80 pop {r7, pc}
  42158. 08011e60 <xQueueGenericSend>:
  42159. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  42160. /*-----------------------------------------------------------*/
  42161. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  42162. {
  42163. 8011e60: b580 push {r7, lr}
  42164. 8011e62: b08e sub sp, #56 @ 0x38
  42165. 8011e64: af00 add r7, sp, #0
  42166. 8011e66: 60f8 str r0, [r7, #12]
  42167. 8011e68: 60b9 str r1, [r7, #8]
  42168. 8011e6a: 607a str r2, [r7, #4]
  42169. 8011e6c: 603b str r3, [r7, #0]
  42170. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  42171. 8011e6e: 2300 movs r3, #0
  42172. 8011e70: 637b str r3, [r7, #52] @ 0x34
  42173. TimeOut_t xTimeOut;
  42174. Queue_t * const pxQueue = xQueue;
  42175. 8011e72: 68fb ldr r3, [r7, #12]
  42176. 8011e74: 633b str r3, [r7, #48] @ 0x30
  42177. configASSERT( pxQueue );
  42178. 8011e76: 6b3b ldr r3, [r7, #48] @ 0x30
  42179. 8011e78: 2b00 cmp r3, #0
  42180. 8011e7a: d10b bne.n 8011e94 <xQueueGenericSend+0x34>
  42181. __asm volatile
  42182. 8011e7c: f04f 0350 mov.w r3, #80 @ 0x50
  42183. 8011e80: f383 8811 msr BASEPRI, r3
  42184. 8011e84: f3bf 8f6f isb sy
  42185. 8011e88: f3bf 8f4f dsb sy
  42186. 8011e8c: 62bb str r3, [r7, #40] @ 0x28
  42187. }
  42188. 8011e8e: bf00 nop
  42189. 8011e90: bf00 nop
  42190. 8011e92: e7fd b.n 8011e90 <xQueueGenericSend+0x30>
  42191. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  42192. 8011e94: 68bb ldr r3, [r7, #8]
  42193. 8011e96: 2b00 cmp r3, #0
  42194. 8011e98: d103 bne.n 8011ea2 <xQueueGenericSend+0x42>
  42195. 8011e9a: 6b3b ldr r3, [r7, #48] @ 0x30
  42196. 8011e9c: 6c1b ldr r3, [r3, #64] @ 0x40
  42197. 8011e9e: 2b00 cmp r3, #0
  42198. 8011ea0: d101 bne.n 8011ea6 <xQueueGenericSend+0x46>
  42199. 8011ea2: 2301 movs r3, #1
  42200. 8011ea4: e000 b.n 8011ea8 <xQueueGenericSend+0x48>
  42201. 8011ea6: 2300 movs r3, #0
  42202. 8011ea8: 2b00 cmp r3, #0
  42203. 8011eaa: d10b bne.n 8011ec4 <xQueueGenericSend+0x64>
  42204. __asm volatile
  42205. 8011eac: f04f 0350 mov.w r3, #80 @ 0x50
  42206. 8011eb0: f383 8811 msr BASEPRI, r3
  42207. 8011eb4: f3bf 8f6f isb sy
  42208. 8011eb8: f3bf 8f4f dsb sy
  42209. 8011ebc: 627b str r3, [r7, #36] @ 0x24
  42210. }
  42211. 8011ebe: bf00 nop
  42212. 8011ec0: bf00 nop
  42213. 8011ec2: e7fd b.n 8011ec0 <xQueueGenericSend+0x60>
  42214. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  42215. 8011ec4: 683b ldr r3, [r7, #0]
  42216. 8011ec6: 2b02 cmp r3, #2
  42217. 8011ec8: d103 bne.n 8011ed2 <xQueueGenericSend+0x72>
  42218. 8011eca: 6b3b ldr r3, [r7, #48] @ 0x30
  42219. 8011ecc: 6bdb ldr r3, [r3, #60] @ 0x3c
  42220. 8011ece: 2b01 cmp r3, #1
  42221. 8011ed0: d101 bne.n 8011ed6 <xQueueGenericSend+0x76>
  42222. 8011ed2: 2301 movs r3, #1
  42223. 8011ed4: e000 b.n 8011ed8 <xQueueGenericSend+0x78>
  42224. 8011ed6: 2300 movs r3, #0
  42225. 8011ed8: 2b00 cmp r3, #0
  42226. 8011eda: d10b bne.n 8011ef4 <xQueueGenericSend+0x94>
  42227. __asm volatile
  42228. 8011edc: f04f 0350 mov.w r3, #80 @ 0x50
  42229. 8011ee0: f383 8811 msr BASEPRI, r3
  42230. 8011ee4: f3bf 8f6f isb sy
  42231. 8011ee8: f3bf 8f4f dsb sy
  42232. 8011eec: 623b str r3, [r7, #32]
  42233. }
  42234. 8011eee: bf00 nop
  42235. 8011ef0: bf00 nop
  42236. 8011ef2: e7fd b.n 8011ef0 <xQueueGenericSend+0x90>
  42237. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  42238. {
  42239. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  42240. 8011ef4: f002 f8b2 bl 801405c <xTaskGetSchedulerState>
  42241. 8011ef8: 4603 mov r3, r0
  42242. 8011efa: 2b00 cmp r3, #0
  42243. 8011efc: d102 bne.n 8011f04 <xQueueGenericSend+0xa4>
  42244. 8011efe: 687b ldr r3, [r7, #4]
  42245. 8011f00: 2b00 cmp r3, #0
  42246. 8011f02: d101 bne.n 8011f08 <xQueueGenericSend+0xa8>
  42247. 8011f04: 2301 movs r3, #1
  42248. 8011f06: e000 b.n 8011f0a <xQueueGenericSend+0xaa>
  42249. 8011f08: 2300 movs r3, #0
  42250. 8011f0a: 2b00 cmp r3, #0
  42251. 8011f0c: d10b bne.n 8011f26 <xQueueGenericSend+0xc6>
  42252. __asm volatile
  42253. 8011f0e: f04f 0350 mov.w r3, #80 @ 0x50
  42254. 8011f12: f383 8811 msr BASEPRI, r3
  42255. 8011f16: f3bf 8f6f isb sy
  42256. 8011f1a: f3bf 8f4f dsb sy
  42257. 8011f1e: 61fb str r3, [r7, #28]
  42258. }
  42259. 8011f20: bf00 nop
  42260. 8011f22: bf00 nop
  42261. 8011f24: e7fd b.n 8011f22 <xQueueGenericSend+0xc2>
  42262. /*lint -save -e904 This function relaxes the coding standard somewhat to
  42263. allow return statements within the function itself. This is done in the
  42264. interest of execution time efficiency. */
  42265. for( ;; )
  42266. {
  42267. taskENTER_CRITICAL();
  42268. 8011f26: f003 f9f7 bl 8015318 <vPortEnterCritical>
  42269. {
  42270. /* Is there room on the queue now? The running task must be the
  42271. highest priority task wanting to access the queue. If the head item
  42272. in the queue is to be overwritten then it does not matter if the
  42273. queue is full. */
  42274. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  42275. 8011f2a: 6b3b ldr r3, [r7, #48] @ 0x30
  42276. 8011f2c: 6b9a ldr r2, [r3, #56] @ 0x38
  42277. 8011f2e: 6b3b ldr r3, [r7, #48] @ 0x30
  42278. 8011f30: 6bdb ldr r3, [r3, #60] @ 0x3c
  42279. 8011f32: 429a cmp r2, r3
  42280. 8011f34: d302 bcc.n 8011f3c <xQueueGenericSend+0xdc>
  42281. 8011f36: 683b ldr r3, [r7, #0]
  42282. 8011f38: 2b02 cmp r3, #2
  42283. 8011f3a: d129 bne.n 8011f90 <xQueueGenericSend+0x130>
  42284. }
  42285. }
  42286. }
  42287. #else /* configUSE_QUEUE_SETS */
  42288. {
  42289. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  42290. 8011f3c: 683a ldr r2, [r7, #0]
  42291. 8011f3e: 68b9 ldr r1, [r7, #8]
  42292. 8011f40: 6b38 ldr r0, [r7, #48] @ 0x30
  42293. 8011f42: f000 fcab bl 801289c <prvCopyDataToQueue>
  42294. 8011f46: 62f8 str r0, [r7, #44] @ 0x2c
  42295. /* If there was a task waiting for data to arrive on the
  42296. queue then unblock it now. */
  42297. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  42298. 8011f48: 6b3b ldr r3, [r7, #48] @ 0x30
  42299. 8011f4a: 6a5b ldr r3, [r3, #36] @ 0x24
  42300. 8011f4c: 2b00 cmp r3, #0
  42301. 8011f4e: d010 beq.n 8011f72 <xQueueGenericSend+0x112>
  42302. {
  42303. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  42304. 8011f50: 6b3b ldr r3, [r7, #48] @ 0x30
  42305. 8011f52: 3324 adds r3, #36 @ 0x24
  42306. 8011f54: 4618 mov r0, r3
  42307. 8011f56: f001 fe83 bl 8013c60 <xTaskRemoveFromEventList>
  42308. 8011f5a: 4603 mov r3, r0
  42309. 8011f5c: 2b00 cmp r3, #0
  42310. 8011f5e: d013 beq.n 8011f88 <xQueueGenericSend+0x128>
  42311. {
  42312. /* The unblocked task has a priority higher than
  42313. our own so yield immediately. Yes it is ok to do
  42314. this from within the critical section - the kernel
  42315. takes care of that. */
  42316. queueYIELD_IF_USING_PREEMPTION();
  42317. 8011f60: 4b3f ldr r3, [pc, #252] @ (8012060 <xQueueGenericSend+0x200>)
  42318. 8011f62: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42319. 8011f66: 601a str r2, [r3, #0]
  42320. 8011f68: f3bf 8f4f dsb sy
  42321. 8011f6c: f3bf 8f6f isb sy
  42322. 8011f70: e00a b.n 8011f88 <xQueueGenericSend+0x128>
  42323. else
  42324. {
  42325. mtCOVERAGE_TEST_MARKER();
  42326. }
  42327. }
  42328. else if( xYieldRequired != pdFALSE )
  42329. 8011f72: 6afb ldr r3, [r7, #44] @ 0x2c
  42330. 8011f74: 2b00 cmp r3, #0
  42331. 8011f76: d007 beq.n 8011f88 <xQueueGenericSend+0x128>
  42332. {
  42333. /* This path is a special case that will only get
  42334. executed if the task was holding multiple mutexes and
  42335. the mutexes were given back in an order that is
  42336. different to that in which they were taken. */
  42337. queueYIELD_IF_USING_PREEMPTION();
  42338. 8011f78: 4b39 ldr r3, [pc, #228] @ (8012060 <xQueueGenericSend+0x200>)
  42339. 8011f7a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42340. 8011f7e: 601a str r2, [r3, #0]
  42341. 8011f80: f3bf 8f4f dsb sy
  42342. 8011f84: f3bf 8f6f isb sy
  42343. mtCOVERAGE_TEST_MARKER();
  42344. }
  42345. }
  42346. #endif /* configUSE_QUEUE_SETS */
  42347. taskEXIT_CRITICAL();
  42348. 8011f88: f003 f9f8 bl 801537c <vPortExitCritical>
  42349. return pdPASS;
  42350. 8011f8c: 2301 movs r3, #1
  42351. 8011f8e: e063 b.n 8012058 <xQueueGenericSend+0x1f8>
  42352. }
  42353. else
  42354. {
  42355. if( xTicksToWait == ( TickType_t ) 0 )
  42356. 8011f90: 687b ldr r3, [r7, #4]
  42357. 8011f92: 2b00 cmp r3, #0
  42358. 8011f94: d103 bne.n 8011f9e <xQueueGenericSend+0x13e>
  42359. {
  42360. /* The queue was full and no block time is specified (or
  42361. the block time has expired) so leave now. */
  42362. taskEXIT_CRITICAL();
  42363. 8011f96: f003 f9f1 bl 801537c <vPortExitCritical>
  42364. /* Return to the original privilege level before exiting
  42365. the function. */
  42366. traceQUEUE_SEND_FAILED( pxQueue );
  42367. return errQUEUE_FULL;
  42368. 8011f9a: 2300 movs r3, #0
  42369. 8011f9c: e05c b.n 8012058 <xQueueGenericSend+0x1f8>
  42370. }
  42371. else if( xEntryTimeSet == pdFALSE )
  42372. 8011f9e: 6b7b ldr r3, [r7, #52] @ 0x34
  42373. 8011fa0: 2b00 cmp r3, #0
  42374. 8011fa2: d106 bne.n 8011fb2 <xQueueGenericSend+0x152>
  42375. {
  42376. /* The queue was full and a block time was specified so
  42377. configure the timeout structure. */
  42378. vTaskInternalSetTimeOutState( &xTimeOut );
  42379. 8011fa4: f107 0314 add.w r3, r7, #20
  42380. 8011fa8: 4618 mov r0, r3
  42381. 8011faa: f001 fee5 bl 8013d78 <vTaskInternalSetTimeOutState>
  42382. xEntryTimeSet = pdTRUE;
  42383. 8011fae: 2301 movs r3, #1
  42384. 8011fb0: 637b str r3, [r7, #52] @ 0x34
  42385. /* Entry time was already set. */
  42386. mtCOVERAGE_TEST_MARKER();
  42387. }
  42388. }
  42389. }
  42390. taskEXIT_CRITICAL();
  42391. 8011fb2: f003 f9e3 bl 801537c <vPortExitCritical>
  42392. /* Interrupts and other tasks can send to and receive from the queue
  42393. now the critical section has been exited. */
  42394. vTaskSuspendAll();
  42395. 8011fb6: f001 fc05 bl 80137c4 <vTaskSuspendAll>
  42396. prvLockQueue( pxQueue );
  42397. 8011fba: f003 f9ad bl 8015318 <vPortEnterCritical>
  42398. 8011fbe: 6b3b ldr r3, [r7, #48] @ 0x30
  42399. 8011fc0: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  42400. 8011fc4: b25b sxtb r3, r3
  42401. 8011fc6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42402. 8011fca: d103 bne.n 8011fd4 <xQueueGenericSend+0x174>
  42403. 8011fcc: 6b3b ldr r3, [r7, #48] @ 0x30
  42404. 8011fce: 2200 movs r2, #0
  42405. 8011fd0: f883 2044 strb.w r2, [r3, #68] @ 0x44
  42406. 8011fd4: 6b3b ldr r3, [r7, #48] @ 0x30
  42407. 8011fd6: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  42408. 8011fda: b25b sxtb r3, r3
  42409. 8011fdc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42410. 8011fe0: d103 bne.n 8011fea <xQueueGenericSend+0x18a>
  42411. 8011fe2: 6b3b ldr r3, [r7, #48] @ 0x30
  42412. 8011fe4: 2200 movs r2, #0
  42413. 8011fe6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42414. 8011fea: f003 f9c7 bl 801537c <vPortExitCritical>
  42415. /* Update the timeout state to see if it has expired yet. */
  42416. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  42417. 8011fee: 1d3a adds r2, r7, #4
  42418. 8011ff0: f107 0314 add.w r3, r7, #20
  42419. 8011ff4: 4611 mov r1, r2
  42420. 8011ff6: 4618 mov r0, r3
  42421. 8011ff8: f001 fed4 bl 8013da4 <xTaskCheckForTimeOut>
  42422. 8011ffc: 4603 mov r3, r0
  42423. 8011ffe: 2b00 cmp r3, #0
  42424. 8012000: d124 bne.n 801204c <xQueueGenericSend+0x1ec>
  42425. {
  42426. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  42427. 8012002: 6b38 ldr r0, [r7, #48] @ 0x30
  42428. 8012004: f000 fd42 bl 8012a8c <prvIsQueueFull>
  42429. 8012008: 4603 mov r3, r0
  42430. 801200a: 2b00 cmp r3, #0
  42431. 801200c: d018 beq.n 8012040 <xQueueGenericSend+0x1e0>
  42432. {
  42433. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  42434. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  42435. 801200e: 6b3b ldr r3, [r7, #48] @ 0x30
  42436. 8012010: 3310 adds r3, #16
  42437. 8012012: 687a ldr r2, [r7, #4]
  42438. 8012014: 4611 mov r1, r2
  42439. 8012016: 4618 mov r0, r3
  42440. 8012018: f001 fdd0 bl 8013bbc <vTaskPlaceOnEventList>
  42441. /* Unlocking the queue means queue events can effect the
  42442. event list. It is possible that interrupts occurring now
  42443. remove this task from the event list again - but as the
  42444. scheduler is suspended the task will go onto the pending
  42445. ready last instead of the actual ready list. */
  42446. prvUnlockQueue( pxQueue );
  42447. 801201c: 6b38 ldr r0, [r7, #48] @ 0x30
  42448. 801201e: f000 fccd bl 80129bc <prvUnlockQueue>
  42449. /* Resuming the scheduler will move tasks from the pending
  42450. ready list into the ready list - so it is feasible that this
  42451. task is already in a ready list before it yields - in which
  42452. case the yield will not cause a context switch unless there
  42453. is also a higher priority task in the pending ready list. */
  42454. if( xTaskResumeAll() == pdFALSE )
  42455. 8012022: f001 fbdd bl 80137e0 <xTaskResumeAll>
  42456. 8012026: 4603 mov r3, r0
  42457. 8012028: 2b00 cmp r3, #0
  42458. 801202a: f47f af7c bne.w 8011f26 <xQueueGenericSend+0xc6>
  42459. {
  42460. portYIELD_WITHIN_API();
  42461. 801202e: 4b0c ldr r3, [pc, #48] @ (8012060 <xQueueGenericSend+0x200>)
  42462. 8012030: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  42463. 8012034: 601a str r2, [r3, #0]
  42464. 8012036: f3bf 8f4f dsb sy
  42465. 801203a: f3bf 8f6f isb sy
  42466. 801203e: e772 b.n 8011f26 <xQueueGenericSend+0xc6>
  42467. }
  42468. }
  42469. else
  42470. {
  42471. /* Try again. */
  42472. prvUnlockQueue( pxQueue );
  42473. 8012040: 6b38 ldr r0, [r7, #48] @ 0x30
  42474. 8012042: f000 fcbb bl 80129bc <prvUnlockQueue>
  42475. ( void ) xTaskResumeAll();
  42476. 8012046: f001 fbcb bl 80137e0 <xTaskResumeAll>
  42477. 801204a: e76c b.n 8011f26 <xQueueGenericSend+0xc6>
  42478. }
  42479. }
  42480. else
  42481. {
  42482. /* The timeout has expired. */
  42483. prvUnlockQueue( pxQueue );
  42484. 801204c: 6b38 ldr r0, [r7, #48] @ 0x30
  42485. 801204e: f000 fcb5 bl 80129bc <prvUnlockQueue>
  42486. ( void ) xTaskResumeAll();
  42487. 8012052: f001 fbc5 bl 80137e0 <xTaskResumeAll>
  42488. traceQUEUE_SEND_FAILED( pxQueue );
  42489. return errQUEUE_FULL;
  42490. 8012056: 2300 movs r3, #0
  42491. }
  42492. } /*lint -restore */
  42493. }
  42494. 8012058: 4618 mov r0, r3
  42495. 801205a: 3738 adds r7, #56 @ 0x38
  42496. 801205c: 46bd mov sp, r7
  42497. 801205e: bd80 pop {r7, pc}
  42498. 8012060: e000ed04 .word 0xe000ed04
  42499. 08012064 <xQueueGenericSendFromISR>:
  42500. /*-----------------------------------------------------------*/
  42501. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  42502. {
  42503. 8012064: b580 push {r7, lr}
  42504. 8012066: b090 sub sp, #64 @ 0x40
  42505. 8012068: af00 add r7, sp, #0
  42506. 801206a: 60f8 str r0, [r7, #12]
  42507. 801206c: 60b9 str r1, [r7, #8]
  42508. 801206e: 607a str r2, [r7, #4]
  42509. 8012070: 603b str r3, [r7, #0]
  42510. BaseType_t xReturn;
  42511. UBaseType_t uxSavedInterruptStatus;
  42512. Queue_t * const pxQueue = xQueue;
  42513. 8012072: 68fb ldr r3, [r7, #12]
  42514. 8012074: 63bb str r3, [r7, #56] @ 0x38
  42515. configASSERT( pxQueue );
  42516. 8012076: 6bbb ldr r3, [r7, #56] @ 0x38
  42517. 8012078: 2b00 cmp r3, #0
  42518. 801207a: d10b bne.n 8012094 <xQueueGenericSendFromISR+0x30>
  42519. __asm volatile
  42520. 801207c: f04f 0350 mov.w r3, #80 @ 0x50
  42521. 8012080: f383 8811 msr BASEPRI, r3
  42522. 8012084: f3bf 8f6f isb sy
  42523. 8012088: f3bf 8f4f dsb sy
  42524. 801208c: 62bb str r3, [r7, #40] @ 0x28
  42525. }
  42526. 801208e: bf00 nop
  42527. 8012090: bf00 nop
  42528. 8012092: e7fd b.n 8012090 <xQueueGenericSendFromISR+0x2c>
  42529. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  42530. 8012094: 68bb ldr r3, [r7, #8]
  42531. 8012096: 2b00 cmp r3, #0
  42532. 8012098: d103 bne.n 80120a2 <xQueueGenericSendFromISR+0x3e>
  42533. 801209a: 6bbb ldr r3, [r7, #56] @ 0x38
  42534. 801209c: 6c1b ldr r3, [r3, #64] @ 0x40
  42535. 801209e: 2b00 cmp r3, #0
  42536. 80120a0: d101 bne.n 80120a6 <xQueueGenericSendFromISR+0x42>
  42537. 80120a2: 2301 movs r3, #1
  42538. 80120a4: e000 b.n 80120a8 <xQueueGenericSendFromISR+0x44>
  42539. 80120a6: 2300 movs r3, #0
  42540. 80120a8: 2b00 cmp r3, #0
  42541. 80120aa: d10b bne.n 80120c4 <xQueueGenericSendFromISR+0x60>
  42542. __asm volatile
  42543. 80120ac: f04f 0350 mov.w r3, #80 @ 0x50
  42544. 80120b0: f383 8811 msr BASEPRI, r3
  42545. 80120b4: f3bf 8f6f isb sy
  42546. 80120b8: f3bf 8f4f dsb sy
  42547. 80120bc: 627b str r3, [r7, #36] @ 0x24
  42548. }
  42549. 80120be: bf00 nop
  42550. 80120c0: bf00 nop
  42551. 80120c2: e7fd b.n 80120c0 <xQueueGenericSendFromISR+0x5c>
  42552. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  42553. 80120c4: 683b ldr r3, [r7, #0]
  42554. 80120c6: 2b02 cmp r3, #2
  42555. 80120c8: d103 bne.n 80120d2 <xQueueGenericSendFromISR+0x6e>
  42556. 80120ca: 6bbb ldr r3, [r7, #56] @ 0x38
  42557. 80120cc: 6bdb ldr r3, [r3, #60] @ 0x3c
  42558. 80120ce: 2b01 cmp r3, #1
  42559. 80120d0: d101 bne.n 80120d6 <xQueueGenericSendFromISR+0x72>
  42560. 80120d2: 2301 movs r3, #1
  42561. 80120d4: e000 b.n 80120d8 <xQueueGenericSendFromISR+0x74>
  42562. 80120d6: 2300 movs r3, #0
  42563. 80120d8: 2b00 cmp r3, #0
  42564. 80120da: d10b bne.n 80120f4 <xQueueGenericSendFromISR+0x90>
  42565. __asm volatile
  42566. 80120dc: f04f 0350 mov.w r3, #80 @ 0x50
  42567. 80120e0: f383 8811 msr BASEPRI, r3
  42568. 80120e4: f3bf 8f6f isb sy
  42569. 80120e8: f3bf 8f4f dsb sy
  42570. 80120ec: 623b str r3, [r7, #32]
  42571. }
  42572. 80120ee: bf00 nop
  42573. 80120f0: bf00 nop
  42574. 80120f2: e7fd b.n 80120f0 <xQueueGenericSendFromISR+0x8c>
  42575. that have been assigned a priority at or (logically) below the maximum
  42576. system call interrupt priority. FreeRTOS maintains a separate interrupt
  42577. safe API to ensure interrupt entry is as fast and as simple as possible.
  42578. More information (albeit Cortex-M specific) is provided on the following
  42579. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  42580. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  42581. 80120f4: f003 f9f0 bl 80154d8 <vPortValidateInterruptPriority>
  42582. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  42583. {
  42584. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  42585. __asm volatile
  42586. 80120f8: f3ef 8211 mrs r2, BASEPRI
  42587. 80120fc: f04f 0350 mov.w r3, #80 @ 0x50
  42588. 8012100: f383 8811 msr BASEPRI, r3
  42589. 8012104: f3bf 8f6f isb sy
  42590. 8012108: f3bf 8f4f dsb sy
  42591. 801210c: 61fa str r2, [r7, #28]
  42592. 801210e: 61bb str r3, [r7, #24]
  42593. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  42594. );
  42595. /* This return will not be reached but is necessary to prevent compiler
  42596. warnings. */
  42597. return ulOriginalBASEPRI;
  42598. 8012110: 69fb ldr r3, [r7, #28]
  42599. /* Similar to xQueueGenericSend, except without blocking if there is no room
  42600. in the queue. Also don't directly wake a task that was blocked on a queue
  42601. read, instead return a flag to say whether a context switch is required or
  42602. not (i.e. has a task with a higher priority than us been woken by this
  42603. post). */
  42604. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  42605. 8012112: 637b str r3, [r7, #52] @ 0x34
  42606. {
  42607. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  42608. 8012114: 6bbb ldr r3, [r7, #56] @ 0x38
  42609. 8012116: 6b9a ldr r2, [r3, #56] @ 0x38
  42610. 8012118: 6bbb ldr r3, [r7, #56] @ 0x38
  42611. 801211a: 6bdb ldr r3, [r3, #60] @ 0x3c
  42612. 801211c: 429a cmp r2, r3
  42613. 801211e: d302 bcc.n 8012126 <xQueueGenericSendFromISR+0xc2>
  42614. 8012120: 683b ldr r3, [r7, #0]
  42615. 8012122: 2b02 cmp r3, #2
  42616. 8012124: d12f bne.n 8012186 <xQueueGenericSendFromISR+0x122>
  42617. {
  42618. const int8_t cTxLock = pxQueue->cTxLock;
  42619. 8012126: 6bbb ldr r3, [r7, #56] @ 0x38
  42620. 8012128: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  42621. 801212c: f887 3033 strb.w r3, [r7, #51] @ 0x33
  42622. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  42623. 8012130: 6bbb ldr r3, [r7, #56] @ 0x38
  42624. 8012132: 6b9b ldr r3, [r3, #56] @ 0x38
  42625. 8012134: 62fb str r3, [r7, #44] @ 0x2c
  42626. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  42627. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  42628. in a task disinheriting a priority and prvCopyDataToQueue() can be
  42629. called here even though the disinherit function does not check if
  42630. the scheduler is suspended before accessing the ready lists. */
  42631. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  42632. 8012136: 683a ldr r2, [r7, #0]
  42633. 8012138: 68b9 ldr r1, [r7, #8]
  42634. 801213a: 6bb8 ldr r0, [r7, #56] @ 0x38
  42635. 801213c: f000 fbae bl 801289c <prvCopyDataToQueue>
  42636. /* The event list is not altered if the queue is locked. This will
  42637. be done when the queue is unlocked later. */
  42638. if( cTxLock == queueUNLOCKED )
  42639. 8012140: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  42640. 8012144: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42641. 8012148: d112 bne.n 8012170 <xQueueGenericSendFromISR+0x10c>
  42642. }
  42643. }
  42644. }
  42645. #else /* configUSE_QUEUE_SETS */
  42646. {
  42647. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  42648. 801214a: 6bbb ldr r3, [r7, #56] @ 0x38
  42649. 801214c: 6a5b ldr r3, [r3, #36] @ 0x24
  42650. 801214e: 2b00 cmp r3, #0
  42651. 8012150: d016 beq.n 8012180 <xQueueGenericSendFromISR+0x11c>
  42652. {
  42653. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  42654. 8012152: 6bbb ldr r3, [r7, #56] @ 0x38
  42655. 8012154: 3324 adds r3, #36 @ 0x24
  42656. 8012156: 4618 mov r0, r3
  42657. 8012158: f001 fd82 bl 8013c60 <xTaskRemoveFromEventList>
  42658. 801215c: 4603 mov r3, r0
  42659. 801215e: 2b00 cmp r3, #0
  42660. 8012160: d00e beq.n 8012180 <xQueueGenericSendFromISR+0x11c>
  42661. {
  42662. /* The task waiting has a higher priority so record that a
  42663. context switch is required. */
  42664. if( pxHigherPriorityTaskWoken != NULL )
  42665. 8012162: 687b ldr r3, [r7, #4]
  42666. 8012164: 2b00 cmp r3, #0
  42667. 8012166: d00b beq.n 8012180 <xQueueGenericSendFromISR+0x11c>
  42668. {
  42669. *pxHigherPriorityTaskWoken = pdTRUE;
  42670. 8012168: 687b ldr r3, [r7, #4]
  42671. 801216a: 2201 movs r2, #1
  42672. 801216c: 601a str r2, [r3, #0]
  42673. 801216e: e007 b.n 8012180 <xQueueGenericSendFromISR+0x11c>
  42674. }
  42675. else
  42676. {
  42677. /* Increment the lock count so the task that unlocks the queue
  42678. knows that data was posted while it was locked. */
  42679. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  42680. 8012170: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  42681. 8012174: 3301 adds r3, #1
  42682. 8012176: b2db uxtb r3, r3
  42683. 8012178: b25a sxtb r2, r3
  42684. 801217a: 6bbb ldr r3, [r7, #56] @ 0x38
  42685. 801217c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42686. }
  42687. xReturn = pdPASS;
  42688. 8012180: 2301 movs r3, #1
  42689. 8012182: 63fb str r3, [r7, #60] @ 0x3c
  42690. {
  42691. 8012184: e001 b.n 801218a <xQueueGenericSendFromISR+0x126>
  42692. }
  42693. else
  42694. {
  42695. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  42696. xReturn = errQUEUE_FULL;
  42697. 8012186: 2300 movs r3, #0
  42698. 8012188: 63fb str r3, [r7, #60] @ 0x3c
  42699. 801218a: 6b7b ldr r3, [r7, #52] @ 0x34
  42700. 801218c: 617b str r3, [r7, #20]
  42701. }
  42702. /*-----------------------------------------------------------*/
  42703. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  42704. {
  42705. __asm volatile
  42706. 801218e: 697b ldr r3, [r7, #20]
  42707. 8012190: f383 8811 msr BASEPRI, r3
  42708. (
  42709. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  42710. );
  42711. }
  42712. 8012194: bf00 nop
  42713. }
  42714. }
  42715. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  42716. return xReturn;
  42717. 8012196: 6bfb ldr r3, [r7, #60] @ 0x3c
  42718. }
  42719. 8012198: 4618 mov r0, r3
  42720. 801219a: 3740 adds r7, #64 @ 0x40
  42721. 801219c: 46bd mov sp, r7
  42722. 801219e: bd80 pop {r7, pc}
  42723. 080121a0 <xQueueGiveFromISR>:
  42724. /*-----------------------------------------------------------*/
  42725. BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken )
  42726. {
  42727. 80121a0: b580 push {r7, lr}
  42728. 80121a2: b08e sub sp, #56 @ 0x38
  42729. 80121a4: af00 add r7, sp, #0
  42730. 80121a6: 6078 str r0, [r7, #4]
  42731. 80121a8: 6039 str r1, [r7, #0]
  42732. BaseType_t xReturn;
  42733. UBaseType_t uxSavedInterruptStatus;
  42734. Queue_t * const pxQueue = xQueue;
  42735. 80121aa: 687b ldr r3, [r7, #4]
  42736. 80121ac: 633b str r3, [r7, #48] @ 0x30
  42737. item size is 0. Don't directly wake a task that was blocked on a queue
  42738. read, instead return a flag to say whether a context switch is required or
  42739. not (i.e. has a task with a higher priority than us been woken by this
  42740. post). */
  42741. configASSERT( pxQueue );
  42742. 80121ae: 6b3b ldr r3, [r7, #48] @ 0x30
  42743. 80121b0: 2b00 cmp r3, #0
  42744. 80121b2: d10b bne.n 80121cc <xQueueGiveFromISR+0x2c>
  42745. __asm volatile
  42746. 80121b4: f04f 0350 mov.w r3, #80 @ 0x50
  42747. 80121b8: f383 8811 msr BASEPRI, r3
  42748. 80121bc: f3bf 8f6f isb sy
  42749. 80121c0: f3bf 8f4f dsb sy
  42750. 80121c4: 623b str r3, [r7, #32]
  42751. }
  42752. 80121c6: bf00 nop
  42753. 80121c8: bf00 nop
  42754. 80121ca: e7fd b.n 80121c8 <xQueueGiveFromISR+0x28>
  42755. /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR()
  42756. if the item size is not 0. */
  42757. configASSERT( pxQueue->uxItemSize == 0 );
  42758. 80121cc: 6b3b ldr r3, [r7, #48] @ 0x30
  42759. 80121ce: 6c1b ldr r3, [r3, #64] @ 0x40
  42760. 80121d0: 2b00 cmp r3, #0
  42761. 80121d2: d00b beq.n 80121ec <xQueueGiveFromISR+0x4c>
  42762. __asm volatile
  42763. 80121d4: f04f 0350 mov.w r3, #80 @ 0x50
  42764. 80121d8: f383 8811 msr BASEPRI, r3
  42765. 80121dc: f3bf 8f6f isb sy
  42766. 80121e0: f3bf 8f4f dsb sy
  42767. 80121e4: 61fb str r3, [r7, #28]
  42768. }
  42769. 80121e6: bf00 nop
  42770. 80121e8: bf00 nop
  42771. 80121ea: e7fd b.n 80121e8 <xQueueGiveFromISR+0x48>
  42772. /* Normally a mutex would not be given from an interrupt, especially if
  42773. there is a mutex holder, as priority inheritance makes no sense for an
  42774. interrupts, only tasks. */
  42775. configASSERT( !( ( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue->u.xSemaphore.xMutexHolder != NULL ) ) );
  42776. 80121ec: 6b3b ldr r3, [r7, #48] @ 0x30
  42777. 80121ee: 681b ldr r3, [r3, #0]
  42778. 80121f0: 2b00 cmp r3, #0
  42779. 80121f2: d103 bne.n 80121fc <xQueueGiveFromISR+0x5c>
  42780. 80121f4: 6b3b ldr r3, [r7, #48] @ 0x30
  42781. 80121f6: 689b ldr r3, [r3, #8]
  42782. 80121f8: 2b00 cmp r3, #0
  42783. 80121fa: d101 bne.n 8012200 <xQueueGiveFromISR+0x60>
  42784. 80121fc: 2301 movs r3, #1
  42785. 80121fe: e000 b.n 8012202 <xQueueGiveFromISR+0x62>
  42786. 8012200: 2300 movs r3, #0
  42787. 8012202: 2b00 cmp r3, #0
  42788. 8012204: d10b bne.n 801221e <xQueueGiveFromISR+0x7e>
  42789. __asm volatile
  42790. 8012206: f04f 0350 mov.w r3, #80 @ 0x50
  42791. 801220a: f383 8811 msr BASEPRI, r3
  42792. 801220e: f3bf 8f6f isb sy
  42793. 8012212: f3bf 8f4f dsb sy
  42794. 8012216: 61bb str r3, [r7, #24]
  42795. }
  42796. 8012218: bf00 nop
  42797. 801221a: bf00 nop
  42798. 801221c: e7fd b.n 801221a <xQueueGiveFromISR+0x7a>
  42799. that have been assigned a priority at or (logically) below the maximum
  42800. system call interrupt priority. FreeRTOS maintains a separate interrupt
  42801. safe API to ensure interrupt entry is as fast and as simple as possible.
  42802. More information (albeit Cortex-M specific) is provided on the following
  42803. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  42804. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  42805. 801221e: f003 f95b bl 80154d8 <vPortValidateInterruptPriority>
  42806. __asm volatile
  42807. 8012222: f3ef 8211 mrs r2, BASEPRI
  42808. 8012226: f04f 0350 mov.w r3, #80 @ 0x50
  42809. 801222a: f383 8811 msr BASEPRI, r3
  42810. 801222e: f3bf 8f6f isb sy
  42811. 8012232: f3bf 8f4f dsb sy
  42812. 8012236: 617a str r2, [r7, #20]
  42813. 8012238: 613b str r3, [r7, #16]
  42814. return ulOriginalBASEPRI;
  42815. 801223a: 697b ldr r3, [r7, #20]
  42816. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  42817. 801223c: 62fb str r3, [r7, #44] @ 0x2c
  42818. {
  42819. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  42820. 801223e: 6b3b ldr r3, [r7, #48] @ 0x30
  42821. 8012240: 6b9b ldr r3, [r3, #56] @ 0x38
  42822. 8012242: 62bb str r3, [r7, #40] @ 0x28
  42823. /* When the queue is used to implement a semaphore no data is ever
  42824. moved through the queue but it is still valid to see if the queue 'has
  42825. space'. */
  42826. if( uxMessagesWaiting < pxQueue->uxLength )
  42827. 8012244: 6b3b ldr r3, [r7, #48] @ 0x30
  42828. 8012246: 6bdb ldr r3, [r3, #60] @ 0x3c
  42829. 8012248: 6aba ldr r2, [r7, #40] @ 0x28
  42830. 801224a: 429a cmp r2, r3
  42831. 801224c: d22b bcs.n 80122a6 <xQueueGiveFromISR+0x106>
  42832. {
  42833. const int8_t cTxLock = pxQueue->cTxLock;
  42834. 801224e: 6b3b ldr r3, [r7, #48] @ 0x30
  42835. 8012250: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  42836. 8012254: f887 3027 strb.w r3, [r7, #39] @ 0x27
  42837. holder - and if there is a mutex holder then the mutex cannot be
  42838. given from an ISR. As this is the ISR version of the function it
  42839. can be assumed there is no mutex holder and no need to determine if
  42840. priority disinheritance is needed. Simply increase the count of
  42841. messages (semaphores) available. */
  42842. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  42843. 8012258: 6abb ldr r3, [r7, #40] @ 0x28
  42844. 801225a: 1c5a adds r2, r3, #1
  42845. 801225c: 6b3b ldr r3, [r7, #48] @ 0x30
  42846. 801225e: 639a str r2, [r3, #56] @ 0x38
  42847. /* The event list is not altered if the queue is locked. This will
  42848. be done when the queue is unlocked later. */
  42849. if( cTxLock == queueUNLOCKED )
  42850. 8012260: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  42851. 8012264: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  42852. 8012268: d112 bne.n 8012290 <xQueueGiveFromISR+0xf0>
  42853. }
  42854. }
  42855. }
  42856. #else /* configUSE_QUEUE_SETS */
  42857. {
  42858. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  42859. 801226a: 6b3b ldr r3, [r7, #48] @ 0x30
  42860. 801226c: 6a5b ldr r3, [r3, #36] @ 0x24
  42861. 801226e: 2b00 cmp r3, #0
  42862. 8012270: d016 beq.n 80122a0 <xQueueGiveFromISR+0x100>
  42863. {
  42864. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  42865. 8012272: 6b3b ldr r3, [r7, #48] @ 0x30
  42866. 8012274: 3324 adds r3, #36 @ 0x24
  42867. 8012276: 4618 mov r0, r3
  42868. 8012278: f001 fcf2 bl 8013c60 <xTaskRemoveFromEventList>
  42869. 801227c: 4603 mov r3, r0
  42870. 801227e: 2b00 cmp r3, #0
  42871. 8012280: d00e beq.n 80122a0 <xQueueGiveFromISR+0x100>
  42872. {
  42873. /* The task waiting has a higher priority so record that a
  42874. context switch is required. */
  42875. if( pxHigherPriorityTaskWoken != NULL )
  42876. 8012282: 683b ldr r3, [r7, #0]
  42877. 8012284: 2b00 cmp r3, #0
  42878. 8012286: d00b beq.n 80122a0 <xQueueGiveFromISR+0x100>
  42879. {
  42880. *pxHigherPriorityTaskWoken = pdTRUE;
  42881. 8012288: 683b ldr r3, [r7, #0]
  42882. 801228a: 2201 movs r2, #1
  42883. 801228c: 601a str r2, [r3, #0]
  42884. 801228e: e007 b.n 80122a0 <xQueueGiveFromISR+0x100>
  42885. }
  42886. else
  42887. {
  42888. /* Increment the lock count so the task that unlocks the queue
  42889. knows that data was posted while it was locked. */
  42890. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  42891. 8012290: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  42892. 8012294: 3301 adds r3, #1
  42893. 8012296: b2db uxtb r3, r3
  42894. 8012298: b25a sxtb r2, r3
  42895. 801229a: 6b3b ldr r3, [r7, #48] @ 0x30
  42896. 801229c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  42897. }
  42898. xReturn = pdPASS;
  42899. 80122a0: 2301 movs r3, #1
  42900. 80122a2: 637b str r3, [r7, #52] @ 0x34
  42901. 80122a4: e001 b.n 80122aa <xQueueGiveFromISR+0x10a>
  42902. }
  42903. else
  42904. {
  42905. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  42906. xReturn = errQUEUE_FULL;
  42907. 80122a6: 2300 movs r3, #0
  42908. 80122a8: 637b str r3, [r7, #52] @ 0x34
  42909. 80122aa: 6afb ldr r3, [r7, #44] @ 0x2c
  42910. 80122ac: 60fb str r3, [r7, #12]
  42911. __asm volatile
  42912. 80122ae: 68fb ldr r3, [r7, #12]
  42913. 80122b0: f383 8811 msr BASEPRI, r3
  42914. }
  42915. 80122b4: bf00 nop
  42916. }
  42917. }
  42918. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  42919. return xReturn;
  42920. 80122b6: 6b7b ldr r3, [r7, #52] @ 0x34
  42921. }
  42922. 80122b8: 4618 mov r0, r3
  42923. 80122ba: 3738 adds r7, #56 @ 0x38
  42924. 80122bc: 46bd mov sp, r7
  42925. 80122be: bd80 pop {r7, pc}
  42926. 080122c0 <xQueueReceive>:
  42927. /*-----------------------------------------------------------*/
  42928. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  42929. {
  42930. 80122c0: b580 push {r7, lr}
  42931. 80122c2: b08c sub sp, #48 @ 0x30
  42932. 80122c4: af00 add r7, sp, #0
  42933. 80122c6: 60f8 str r0, [r7, #12]
  42934. 80122c8: 60b9 str r1, [r7, #8]
  42935. 80122ca: 607a str r2, [r7, #4]
  42936. BaseType_t xEntryTimeSet = pdFALSE;
  42937. 80122cc: 2300 movs r3, #0
  42938. 80122ce: 62fb str r3, [r7, #44] @ 0x2c
  42939. TimeOut_t xTimeOut;
  42940. Queue_t * const pxQueue = xQueue;
  42941. 80122d0: 68fb ldr r3, [r7, #12]
  42942. 80122d2: 62bb str r3, [r7, #40] @ 0x28
  42943. /* Check the pointer is not NULL. */
  42944. configASSERT( ( pxQueue ) );
  42945. 80122d4: 6abb ldr r3, [r7, #40] @ 0x28
  42946. 80122d6: 2b00 cmp r3, #0
  42947. 80122d8: d10b bne.n 80122f2 <xQueueReceive+0x32>
  42948. __asm volatile
  42949. 80122da: f04f 0350 mov.w r3, #80 @ 0x50
  42950. 80122de: f383 8811 msr BASEPRI, r3
  42951. 80122e2: f3bf 8f6f isb sy
  42952. 80122e6: f3bf 8f4f dsb sy
  42953. 80122ea: 623b str r3, [r7, #32]
  42954. }
  42955. 80122ec: bf00 nop
  42956. 80122ee: bf00 nop
  42957. 80122f0: e7fd b.n 80122ee <xQueueReceive+0x2e>
  42958. /* The buffer into which data is received can only be NULL if the data size
  42959. is zero (so no data is copied into the buffer. */
  42960. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  42961. 80122f2: 68bb ldr r3, [r7, #8]
  42962. 80122f4: 2b00 cmp r3, #0
  42963. 80122f6: d103 bne.n 8012300 <xQueueReceive+0x40>
  42964. 80122f8: 6abb ldr r3, [r7, #40] @ 0x28
  42965. 80122fa: 6c1b ldr r3, [r3, #64] @ 0x40
  42966. 80122fc: 2b00 cmp r3, #0
  42967. 80122fe: d101 bne.n 8012304 <xQueueReceive+0x44>
  42968. 8012300: 2301 movs r3, #1
  42969. 8012302: e000 b.n 8012306 <xQueueReceive+0x46>
  42970. 8012304: 2300 movs r3, #0
  42971. 8012306: 2b00 cmp r3, #0
  42972. 8012308: d10b bne.n 8012322 <xQueueReceive+0x62>
  42973. __asm volatile
  42974. 801230a: f04f 0350 mov.w r3, #80 @ 0x50
  42975. 801230e: f383 8811 msr BASEPRI, r3
  42976. 8012312: f3bf 8f6f isb sy
  42977. 8012316: f3bf 8f4f dsb sy
  42978. 801231a: 61fb str r3, [r7, #28]
  42979. }
  42980. 801231c: bf00 nop
  42981. 801231e: bf00 nop
  42982. 8012320: e7fd b.n 801231e <xQueueReceive+0x5e>
  42983. /* Cannot block if the scheduler is suspended. */
  42984. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  42985. {
  42986. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  42987. 8012322: f001 fe9b bl 801405c <xTaskGetSchedulerState>
  42988. 8012326: 4603 mov r3, r0
  42989. 8012328: 2b00 cmp r3, #0
  42990. 801232a: d102 bne.n 8012332 <xQueueReceive+0x72>
  42991. 801232c: 687b ldr r3, [r7, #4]
  42992. 801232e: 2b00 cmp r3, #0
  42993. 8012330: d101 bne.n 8012336 <xQueueReceive+0x76>
  42994. 8012332: 2301 movs r3, #1
  42995. 8012334: e000 b.n 8012338 <xQueueReceive+0x78>
  42996. 8012336: 2300 movs r3, #0
  42997. 8012338: 2b00 cmp r3, #0
  42998. 801233a: d10b bne.n 8012354 <xQueueReceive+0x94>
  42999. __asm volatile
  43000. 801233c: f04f 0350 mov.w r3, #80 @ 0x50
  43001. 8012340: f383 8811 msr BASEPRI, r3
  43002. 8012344: f3bf 8f6f isb sy
  43003. 8012348: f3bf 8f4f dsb sy
  43004. 801234c: 61bb str r3, [r7, #24]
  43005. }
  43006. 801234e: bf00 nop
  43007. 8012350: bf00 nop
  43008. 8012352: e7fd b.n 8012350 <xQueueReceive+0x90>
  43009. /*lint -save -e904 This function relaxes the coding standard somewhat to
  43010. allow return statements within the function itself. This is done in the
  43011. interest of execution time efficiency. */
  43012. for( ;; )
  43013. {
  43014. taskENTER_CRITICAL();
  43015. 8012354: f002 ffe0 bl 8015318 <vPortEnterCritical>
  43016. {
  43017. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  43018. 8012358: 6abb ldr r3, [r7, #40] @ 0x28
  43019. 801235a: 6b9b ldr r3, [r3, #56] @ 0x38
  43020. 801235c: 627b str r3, [r7, #36] @ 0x24
  43021. /* Is there data in the queue now? To be running the calling task
  43022. must be the highest priority task wanting to access the queue. */
  43023. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  43024. 801235e: 6a7b ldr r3, [r7, #36] @ 0x24
  43025. 8012360: 2b00 cmp r3, #0
  43026. 8012362: d01f beq.n 80123a4 <xQueueReceive+0xe4>
  43027. {
  43028. /* Data available, remove one item. */
  43029. prvCopyDataFromQueue( pxQueue, pvBuffer );
  43030. 8012364: 68b9 ldr r1, [r7, #8]
  43031. 8012366: 6ab8 ldr r0, [r7, #40] @ 0x28
  43032. 8012368: f000 fb02 bl 8012970 <prvCopyDataFromQueue>
  43033. traceQUEUE_RECEIVE( pxQueue );
  43034. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  43035. 801236c: 6a7b ldr r3, [r7, #36] @ 0x24
  43036. 801236e: 1e5a subs r2, r3, #1
  43037. 8012370: 6abb ldr r3, [r7, #40] @ 0x28
  43038. 8012372: 639a str r2, [r3, #56] @ 0x38
  43039. /* There is now space in the queue, were any tasks waiting to
  43040. post to the queue? If so, unblock the highest priority waiting
  43041. task. */
  43042. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  43043. 8012374: 6abb ldr r3, [r7, #40] @ 0x28
  43044. 8012376: 691b ldr r3, [r3, #16]
  43045. 8012378: 2b00 cmp r3, #0
  43046. 801237a: d00f beq.n 801239c <xQueueReceive+0xdc>
  43047. {
  43048. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  43049. 801237c: 6abb ldr r3, [r7, #40] @ 0x28
  43050. 801237e: 3310 adds r3, #16
  43051. 8012380: 4618 mov r0, r3
  43052. 8012382: f001 fc6d bl 8013c60 <xTaskRemoveFromEventList>
  43053. 8012386: 4603 mov r3, r0
  43054. 8012388: 2b00 cmp r3, #0
  43055. 801238a: d007 beq.n 801239c <xQueueReceive+0xdc>
  43056. {
  43057. queueYIELD_IF_USING_PREEMPTION();
  43058. 801238c: 4b3c ldr r3, [pc, #240] @ (8012480 <xQueueReceive+0x1c0>)
  43059. 801238e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43060. 8012392: 601a str r2, [r3, #0]
  43061. 8012394: f3bf 8f4f dsb sy
  43062. 8012398: f3bf 8f6f isb sy
  43063. else
  43064. {
  43065. mtCOVERAGE_TEST_MARKER();
  43066. }
  43067. taskEXIT_CRITICAL();
  43068. 801239c: f002 ffee bl 801537c <vPortExitCritical>
  43069. return pdPASS;
  43070. 80123a0: 2301 movs r3, #1
  43071. 80123a2: e069 b.n 8012478 <xQueueReceive+0x1b8>
  43072. }
  43073. else
  43074. {
  43075. if( xTicksToWait == ( TickType_t ) 0 )
  43076. 80123a4: 687b ldr r3, [r7, #4]
  43077. 80123a6: 2b00 cmp r3, #0
  43078. 80123a8: d103 bne.n 80123b2 <xQueueReceive+0xf2>
  43079. {
  43080. /* The queue was empty and no block time is specified (or
  43081. the block time has expired) so leave now. */
  43082. taskEXIT_CRITICAL();
  43083. 80123aa: f002 ffe7 bl 801537c <vPortExitCritical>
  43084. traceQUEUE_RECEIVE_FAILED( pxQueue );
  43085. return errQUEUE_EMPTY;
  43086. 80123ae: 2300 movs r3, #0
  43087. 80123b0: e062 b.n 8012478 <xQueueReceive+0x1b8>
  43088. }
  43089. else if( xEntryTimeSet == pdFALSE )
  43090. 80123b2: 6afb ldr r3, [r7, #44] @ 0x2c
  43091. 80123b4: 2b00 cmp r3, #0
  43092. 80123b6: d106 bne.n 80123c6 <xQueueReceive+0x106>
  43093. {
  43094. /* The queue was empty and a block time was specified so
  43095. configure the timeout structure. */
  43096. vTaskInternalSetTimeOutState( &xTimeOut );
  43097. 80123b8: f107 0310 add.w r3, r7, #16
  43098. 80123bc: 4618 mov r0, r3
  43099. 80123be: f001 fcdb bl 8013d78 <vTaskInternalSetTimeOutState>
  43100. xEntryTimeSet = pdTRUE;
  43101. 80123c2: 2301 movs r3, #1
  43102. 80123c4: 62fb str r3, [r7, #44] @ 0x2c
  43103. /* Entry time was already set. */
  43104. mtCOVERAGE_TEST_MARKER();
  43105. }
  43106. }
  43107. }
  43108. taskEXIT_CRITICAL();
  43109. 80123c6: f002 ffd9 bl 801537c <vPortExitCritical>
  43110. /* Interrupts and other tasks can send to and receive from the queue
  43111. now the critical section has been exited. */
  43112. vTaskSuspendAll();
  43113. 80123ca: f001 f9fb bl 80137c4 <vTaskSuspendAll>
  43114. prvLockQueue( pxQueue );
  43115. 80123ce: f002 ffa3 bl 8015318 <vPortEnterCritical>
  43116. 80123d2: 6abb ldr r3, [r7, #40] @ 0x28
  43117. 80123d4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  43118. 80123d8: b25b sxtb r3, r3
  43119. 80123da: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43120. 80123de: d103 bne.n 80123e8 <xQueueReceive+0x128>
  43121. 80123e0: 6abb ldr r3, [r7, #40] @ 0x28
  43122. 80123e2: 2200 movs r2, #0
  43123. 80123e4: f883 2044 strb.w r2, [r3, #68] @ 0x44
  43124. 80123e8: 6abb ldr r3, [r7, #40] @ 0x28
  43125. 80123ea: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43126. 80123ee: b25b sxtb r3, r3
  43127. 80123f0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43128. 80123f4: d103 bne.n 80123fe <xQueueReceive+0x13e>
  43129. 80123f6: 6abb ldr r3, [r7, #40] @ 0x28
  43130. 80123f8: 2200 movs r2, #0
  43131. 80123fa: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43132. 80123fe: f002 ffbd bl 801537c <vPortExitCritical>
  43133. /* Update the timeout state to see if it has expired yet. */
  43134. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  43135. 8012402: 1d3a adds r2, r7, #4
  43136. 8012404: f107 0310 add.w r3, r7, #16
  43137. 8012408: 4611 mov r1, r2
  43138. 801240a: 4618 mov r0, r3
  43139. 801240c: f001 fcca bl 8013da4 <xTaskCheckForTimeOut>
  43140. 8012410: 4603 mov r3, r0
  43141. 8012412: 2b00 cmp r3, #0
  43142. 8012414: d123 bne.n 801245e <xQueueReceive+0x19e>
  43143. {
  43144. /* The timeout has not expired. If the queue is still empty place
  43145. the task on the list of tasks waiting to receive from the queue. */
  43146. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  43147. 8012416: 6ab8 ldr r0, [r7, #40] @ 0x28
  43148. 8012418: f000 fb22 bl 8012a60 <prvIsQueueEmpty>
  43149. 801241c: 4603 mov r3, r0
  43150. 801241e: 2b00 cmp r3, #0
  43151. 8012420: d017 beq.n 8012452 <xQueueReceive+0x192>
  43152. {
  43153. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  43154. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  43155. 8012422: 6abb ldr r3, [r7, #40] @ 0x28
  43156. 8012424: 3324 adds r3, #36 @ 0x24
  43157. 8012426: 687a ldr r2, [r7, #4]
  43158. 8012428: 4611 mov r1, r2
  43159. 801242a: 4618 mov r0, r3
  43160. 801242c: f001 fbc6 bl 8013bbc <vTaskPlaceOnEventList>
  43161. prvUnlockQueue( pxQueue );
  43162. 8012430: 6ab8 ldr r0, [r7, #40] @ 0x28
  43163. 8012432: f000 fac3 bl 80129bc <prvUnlockQueue>
  43164. if( xTaskResumeAll() == pdFALSE )
  43165. 8012436: f001 f9d3 bl 80137e0 <xTaskResumeAll>
  43166. 801243a: 4603 mov r3, r0
  43167. 801243c: 2b00 cmp r3, #0
  43168. 801243e: d189 bne.n 8012354 <xQueueReceive+0x94>
  43169. {
  43170. portYIELD_WITHIN_API();
  43171. 8012440: 4b0f ldr r3, [pc, #60] @ (8012480 <xQueueReceive+0x1c0>)
  43172. 8012442: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43173. 8012446: 601a str r2, [r3, #0]
  43174. 8012448: f3bf 8f4f dsb sy
  43175. 801244c: f3bf 8f6f isb sy
  43176. 8012450: e780 b.n 8012354 <xQueueReceive+0x94>
  43177. }
  43178. else
  43179. {
  43180. /* The queue contains data again. Loop back to try and read the
  43181. data. */
  43182. prvUnlockQueue( pxQueue );
  43183. 8012452: 6ab8 ldr r0, [r7, #40] @ 0x28
  43184. 8012454: f000 fab2 bl 80129bc <prvUnlockQueue>
  43185. ( void ) xTaskResumeAll();
  43186. 8012458: f001 f9c2 bl 80137e0 <xTaskResumeAll>
  43187. 801245c: e77a b.n 8012354 <xQueueReceive+0x94>
  43188. }
  43189. else
  43190. {
  43191. /* Timed out. If there is no data in the queue exit, otherwise loop
  43192. back and attempt to read the data. */
  43193. prvUnlockQueue( pxQueue );
  43194. 801245e: 6ab8 ldr r0, [r7, #40] @ 0x28
  43195. 8012460: f000 faac bl 80129bc <prvUnlockQueue>
  43196. ( void ) xTaskResumeAll();
  43197. 8012464: f001 f9bc bl 80137e0 <xTaskResumeAll>
  43198. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  43199. 8012468: 6ab8 ldr r0, [r7, #40] @ 0x28
  43200. 801246a: f000 faf9 bl 8012a60 <prvIsQueueEmpty>
  43201. 801246e: 4603 mov r3, r0
  43202. 8012470: 2b00 cmp r3, #0
  43203. 8012472: f43f af6f beq.w 8012354 <xQueueReceive+0x94>
  43204. {
  43205. traceQUEUE_RECEIVE_FAILED( pxQueue );
  43206. return errQUEUE_EMPTY;
  43207. 8012476: 2300 movs r3, #0
  43208. {
  43209. mtCOVERAGE_TEST_MARKER();
  43210. }
  43211. }
  43212. } /*lint -restore */
  43213. }
  43214. 8012478: 4618 mov r0, r3
  43215. 801247a: 3730 adds r7, #48 @ 0x30
  43216. 801247c: 46bd mov sp, r7
  43217. 801247e: bd80 pop {r7, pc}
  43218. 8012480: e000ed04 .word 0xe000ed04
  43219. 08012484 <xQueueSemaphoreTake>:
  43220. /*-----------------------------------------------------------*/
  43221. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  43222. {
  43223. 8012484: b580 push {r7, lr}
  43224. 8012486: b08e sub sp, #56 @ 0x38
  43225. 8012488: af00 add r7, sp, #0
  43226. 801248a: 6078 str r0, [r7, #4]
  43227. 801248c: 6039 str r1, [r7, #0]
  43228. BaseType_t xEntryTimeSet = pdFALSE;
  43229. 801248e: 2300 movs r3, #0
  43230. 8012490: 637b str r3, [r7, #52] @ 0x34
  43231. TimeOut_t xTimeOut;
  43232. Queue_t * const pxQueue = xQueue;
  43233. 8012492: 687b ldr r3, [r7, #4]
  43234. 8012494: 62fb str r3, [r7, #44] @ 0x2c
  43235. #if( configUSE_MUTEXES == 1 )
  43236. BaseType_t xInheritanceOccurred = pdFALSE;
  43237. 8012496: 2300 movs r3, #0
  43238. 8012498: 633b str r3, [r7, #48] @ 0x30
  43239. #endif
  43240. /* Check the queue pointer is not NULL. */
  43241. configASSERT( ( pxQueue ) );
  43242. 801249a: 6afb ldr r3, [r7, #44] @ 0x2c
  43243. 801249c: 2b00 cmp r3, #0
  43244. 801249e: d10b bne.n 80124b8 <xQueueSemaphoreTake+0x34>
  43245. __asm volatile
  43246. 80124a0: f04f 0350 mov.w r3, #80 @ 0x50
  43247. 80124a4: f383 8811 msr BASEPRI, r3
  43248. 80124a8: f3bf 8f6f isb sy
  43249. 80124ac: f3bf 8f4f dsb sy
  43250. 80124b0: 623b str r3, [r7, #32]
  43251. }
  43252. 80124b2: bf00 nop
  43253. 80124b4: bf00 nop
  43254. 80124b6: e7fd b.n 80124b4 <xQueueSemaphoreTake+0x30>
  43255. /* Check this really is a semaphore, in which case the item size will be
  43256. 0. */
  43257. configASSERT( pxQueue->uxItemSize == 0 );
  43258. 80124b8: 6afb ldr r3, [r7, #44] @ 0x2c
  43259. 80124ba: 6c1b ldr r3, [r3, #64] @ 0x40
  43260. 80124bc: 2b00 cmp r3, #0
  43261. 80124be: d00b beq.n 80124d8 <xQueueSemaphoreTake+0x54>
  43262. __asm volatile
  43263. 80124c0: f04f 0350 mov.w r3, #80 @ 0x50
  43264. 80124c4: f383 8811 msr BASEPRI, r3
  43265. 80124c8: f3bf 8f6f isb sy
  43266. 80124cc: f3bf 8f4f dsb sy
  43267. 80124d0: 61fb str r3, [r7, #28]
  43268. }
  43269. 80124d2: bf00 nop
  43270. 80124d4: bf00 nop
  43271. 80124d6: e7fd b.n 80124d4 <xQueueSemaphoreTake+0x50>
  43272. /* Cannot block if the scheduler is suspended. */
  43273. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  43274. {
  43275. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  43276. 80124d8: f001 fdc0 bl 801405c <xTaskGetSchedulerState>
  43277. 80124dc: 4603 mov r3, r0
  43278. 80124de: 2b00 cmp r3, #0
  43279. 80124e0: d102 bne.n 80124e8 <xQueueSemaphoreTake+0x64>
  43280. 80124e2: 683b ldr r3, [r7, #0]
  43281. 80124e4: 2b00 cmp r3, #0
  43282. 80124e6: d101 bne.n 80124ec <xQueueSemaphoreTake+0x68>
  43283. 80124e8: 2301 movs r3, #1
  43284. 80124ea: e000 b.n 80124ee <xQueueSemaphoreTake+0x6a>
  43285. 80124ec: 2300 movs r3, #0
  43286. 80124ee: 2b00 cmp r3, #0
  43287. 80124f0: d10b bne.n 801250a <xQueueSemaphoreTake+0x86>
  43288. __asm volatile
  43289. 80124f2: f04f 0350 mov.w r3, #80 @ 0x50
  43290. 80124f6: f383 8811 msr BASEPRI, r3
  43291. 80124fa: f3bf 8f6f isb sy
  43292. 80124fe: f3bf 8f4f dsb sy
  43293. 8012502: 61bb str r3, [r7, #24]
  43294. }
  43295. 8012504: bf00 nop
  43296. 8012506: bf00 nop
  43297. 8012508: e7fd b.n 8012506 <xQueueSemaphoreTake+0x82>
  43298. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  43299. statements within the function itself. This is done in the interest
  43300. of execution time efficiency. */
  43301. for( ;; )
  43302. {
  43303. taskENTER_CRITICAL();
  43304. 801250a: f002 ff05 bl 8015318 <vPortEnterCritical>
  43305. {
  43306. /* Semaphores are queues with an item size of 0, and where the
  43307. number of messages in the queue is the semaphore's count value. */
  43308. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  43309. 801250e: 6afb ldr r3, [r7, #44] @ 0x2c
  43310. 8012510: 6b9b ldr r3, [r3, #56] @ 0x38
  43311. 8012512: 62bb str r3, [r7, #40] @ 0x28
  43312. /* Is there data in the queue now? To be running the calling task
  43313. must be the highest priority task wanting to access the queue. */
  43314. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  43315. 8012514: 6abb ldr r3, [r7, #40] @ 0x28
  43316. 8012516: 2b00 cmp r3, #0
  43317. 8012518: d024 beq.n 8012564 <xQueueSemaphoreTake+0xe0>
  43318. {
  43319. traceQUEUE_RECEIVE( pxQueue );
  43320. /* Semaphores are queues with a data size of zero and where the
  43321. messages waiting is the semaphore's count. Reduce the count. */
  43322. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  43323. 801251a: 6abb ldr r3, [r7, #40] @ 0x28
  43324. 801251c: 1e5a subs r2, r3, #1
  43325. 801251e: 6afb ldr r3, [r7, #44] @ 0x2c
  43326. 8012520: 639a str r2, [r3, #56] @ 0x38
  43327. #if ( configUSE_MUTEXES == 1 )
  43328. {
  43329. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  43330. 8012522: 6afb ldr r3, [r7, #44] @ 0x2c
  43331. 8012524: 681b ldr r3, [r3, #0]
  43332. 8012526: 2b00 cmp r3, #0
  43333. 8012528: d104 bne.n 8012534 <xQueueSemaphoreTake+0xb0>
  43334. {
  43335. /* Record the information required to implement
  43336. priority inheritance should it become necessary. */
  43337. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  43338. 801252a: f001 ff11 bl 8014350 <pvTaskIncrementMutexHeldCount>
  43339. 801252e: 4602 mov r2, r0
  43340. 8012530: 6afb ldr r3, [r7, #44] @ 0x2c
  43341. 8012532: 609a str r2, [r3, #8]
  43342. }
  43343. #endif /* configUSE_MUTEXES */
  43344. /* Check to see if other tasks are blocked waiting to give the
  43345. semaphore, and if so, unblock the highest priority such task. */
  43346. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  43347. 8012534: 6afb ldr r3, [r7, #44] @ 0x2c
  43348. 8012536: 691b ldr r3, [r3, #16]
  43349. 8012538: 2b00 cmp r3, #0
  43350. 801253a: d00f beq.n 801255c <xQueueSemaphoreTake+0xd8>
  43351. {
  43352. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  43353. 801253c: 6afb ldr r3, [r7, #44] @ 0x2c
  43354. 801253e: 3310 adds r3, #16
  43355. 8012540: 4618 mov r0, r3
  43356. 8012542: f001 fb8d bl 8013c60 <xTaskRemoveFromEventList>
  43357. 8012546: 4603 mov r3, r0
  43358. 8012548: 2b00 cmp r3, #0
  43359. 801254a: d007 beq.n 801255c <xQueueSemaphoreTake+0xd8>
  43360. {
  43361. queueYIELD_IF_USING_PREEMPTION();
  43362. 801254c: 4b54 ldr r3, [pc, #336] @ (80126a0 <xQueueSemaphoreTake+0x21c>)
  43363. 801254e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43364. 8012552: 601a str r2, [r3, #0]
  43365. 8012554: f3bf 8f4f dsb sy
  43366. 8012558: f3bf 8f6f isb sy
  43367. else
  43368. {
  43369. mtCOVERAGE_TEST_MARKER();
  43370. }
  43371. taskEXIT_CRITICAL();
  43372. 801255c: f002 ff0e bl 801537c <vPortExitCritical>
  43373. return pdPASS;
  43374. 8012560: 2301 movs r3, #1
  43375. 8012562: e098 b.n 8012696 <xQueueSemaphoreTake+0x212>
  43376. }
  43377. else
  43378. {
  43379. if( xTicksToWait == ( TickType_t ) 0 )
  43380. 8012564: 683b ldr r3, [r7, #0]
  43381. 8012566: 2b00 cmp r3, #0
  43382. 8012568: d112 bne.n 8012590 <xQueueSemaphoreTake+0x10c>
  43383. /* For inheritance to have occurred there must have been an
  43384. initial timeout, and an adjusted timeout cannot become 0, as
  43385. if it were 0 the function would have exited. */
  43386. #if( configUSE_MUTEXES == 1 )
  43387. {
  43388. configASSERT( xInheritanceOccurred == pdFALSE );
  43389. 801256a: 6b3b ldr r3, [r7, #48] @ 0x30
  43390. 801256c: 2b00 cmp r3, #0
  43391. 801256e: d00b beq.n 8012588 <xQueueSemaphoreTake+0x104>
  43392. __asm volatile
  43393. 8012570: f04f 0350 mov.w r3, #80 @ 0x50
  43394. 8012574: f383 8811 msr BASEPRI, r3
  43395. 8012578: f3bf 8f6f isb sy
  43396. 801257c: f3bf 8f4f dsb sy
  43397. 8012580: 617b str r3, [r7, #20]
  43398. }
  43399. 8012582: bf00 nop
  43400. 8012584: bf00 nop
  43401. 8012586: e7fd b.n 8012584 <xQueueSemaphoreTake+0x100>
  43402. }
  43403. #endif /* configUSE_MUTEXES */
  43404. /* The semaphore count was 0 and no block time is specified
  43405. (or the block time has expired) so exit now. */
  43406. taskEXIT_CRITICAL();
  43407. 8012588: f002 fef8 bl 801537c <vPortExitCritical>
  43408. traceQUEUE_RECEIVE_FAILED( pxQueue );
  43409. return errQUEUE_EMPTY;
  43410. 801258c: 2300 movs r3, #0
  43411. 801258e: e082 b.n 8012696 <xQueueSemaphoreTake+0x212>
  43412. }
  43413. else if( xEntryTimeSet == pdFALSE )
  43414. 8012590: 6b7b ldr r3, [r7, #52] @ 0x34
  43415. 8012592: 2b00 cmp r3, #0
  43416. 8012594: d106 bne.n 80125a4 <xQueueSemaphoreTake+0x120>
  43417. {
  43418. /* The semaphore count was 0 and a block time was specified
  43419. so configure the timeout structure ready to block. */
  43420. vTaskInternalSetTimeOutState( &xTimeOut );
  43421. 8012596: f107 030c add.w r3, r7, #12
  43422. 801259a: 4618 mov r0, r3
  43423. 801259c: f001 fbec bl 8013d78 <vTaskInternalSetTimeOutState>
  43424. xEntryTimeSet = pdTRUE;
  43425. 80125a0: 2301 movs r3, #1
  43426. 80125a2: 637b str r3, [r7, #52] @ 0x34
  43427. /* Entry time was already set. */
  43428. mtCOVERAGE_TEST_MARKER();
  43429. }
  43430. }
  43431. }
  43432. taskEXIT_CRITICAL();
  43433. 80125a4: f002 feea bl 801537c <vPortExitCritical>
  43434. /* Interrupts and other tasks can give to and take from the semaphore
  43435. now the critical section has been exited. */
  43436. vTaskSuspendAll();
  43437. 80125a8: f001 f90c bl 80137c4 <vTaskSuspendAll>
  43438. prvLockQueue( pxQueue );
  43439. 80125ac: f002 feb4 bl 8015318 <vPortEnterCritical>
  43440. 80125b0: 6afb ldr r3, [r7, #44] @ 0x2c
  43441. 80125b2: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  43442. 80125b6: b25b sxtb r3, r3
  43443. 80125b8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43444. 80125bc: d103 bne.n 80125c6 <xQueueSemaphoreTake+0x142>
  43445. 80125be: 6afb ldr r3, [r7, #44] @ 0x2c
  43446. 80125c0: 2200 movs r2, #0
  43447. 80125c2: f883 2044 strb.w r2, [r3, #68] @ 0x44
  43448. 80125c6: 6afb ldr r3, [r7, #44] @ 0x2c
  43449. 80125c8: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  43450. 80125cc: b25b sxtb r3, r3
  43451. 80125ce: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43452. 80125d2: d103 bne.n 80125dc <xQueueSemaphoreTake+0x158>
  43453. 80125d4: 6afb ldr r3, [r7, #44] @ 0x2c
  43454. 80125d6: 2200 movs r2, #0
  43455. 80125d8: f883 2045 strb.w r2, [r3, #69] @ 0x45
  43456. 80125dc: f002 fece bl 801537c <vPortExitCritical>
  43457. /* Update the timeout state to see if it has expired yet. */
  43458. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  43459. 80125e0: 463a mov r2, r7
  43460. 80125e2: f107 030c add.w r3, r7, #12
  43461. 80125e6: 4611 mov r1, r2
  43462. 80125e8: 4618 mov r0, r3
  43463. 80125ea: f001 fbdb bl 8013da4 <xTaskCheckForTimeOut>
  43464. 80125ee: 4603 mov r3, r0
  43465. 80125f0: 2b00 cmp r3, #0
  43466. 80125f2: d132 bne.n 801265a <xQueueSemaphoreTake+0x1d6>
  43467. {
  43468. /* A block time is specified and not expired. If the semaphore
  43469. count is 0 then enter the Blocked state to wait for a semaphore to
  43470. become available. As semaphores are implemented with queues the
  43471. queue being empty is equivalent to the semaphore count being 0. */
  43472. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  43473. 80125f4: 6af8 ldr r0, [r7, #44] @ 0x2c
  43474. 80125f6: f000 fa33 bl 8012a60 <prvIsQueueEmpty>
  43475. 80125fa: 4603 mov r3, r0
  43476. 80125fc: 2b00 cmp r3, #0
  43477. 80125fe: d026 beq.n 801264e <xQueueSemaphoreTake+0x1ca>
  43478. {
  43479. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  43480. #if ( configUSE_MUTEXES == 1 )
  43481. {
  43482. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  43483. 8012600: 6afb ldr r3, [r7, #44] @ 0x2c
  43484. 8012602: 681b ldr r3, [r3, #0]
  43485. 8012604: 2b00 cmp r3, #0
  43486. 8012606: d109 bne.n 801261c <xQueueSemaphoreTake+0x198>
  43487. {
  43488. taskENTER_CRITICAL();
  43489. 8012608: f002 fe86 bl 8015318 <vPortEnterCritical>
  43490. {
  43491. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  43492. 801260c: 6afb ldr r3, [r7, #44] @ 0x2c
  43493. 801260e: 689b ldr r3, [r3, #8]
  43494. 8012610: 4618 mov r0, r3
  43495. 8012612: f001 fd41 bl 8014098 <xTaskPriorityInherit>
  43496. 8012616: 6338 str r0, [r7, #48] @ 0x30
  43497. }
  43498. taskEXIT_CRITICAL();
  43499. 8012618: f002 feb0 bl 801537c <vPortExitCritical>
  43500. mtCOVERAGE_TEST_MARKER();
  43501. }
  43502. }
  43503. #endif
  43504. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  43505. 801261c: 6afb ldr r3, [r7, #44] @ 0x2c
  43506. 801261e: 3324 adds r3, #36 @ 0x24
  43507. 8012620: 683a ldr r2, [r7, #0]
  43508. 8012622: 4611 mov r1, r2
  43509. 8012624: 4618 mov r0, r3
  43510. 8012626: f001 fac9 bl 8013bbc <vTaskPlaceOnEventList>
  43511. prvUnlockQueue( pxQueue );
  43512. 801262a: 6af8 ldr r0, [r7, #44] @ 0x2c
  43513. 801262c: f000 f9c6 bl 80129bc <prvUnlockQueue>
  43514. if( xTaskResumeAll() == pdFALSE )
  43515. 8012630: f001 f8d6 bl 80137e0 <xTaskResumeAll>
  43516. 8012634: 4603 mov r3, r0
  43517. 8012636: 2b00 cmp r3, #0
  43518. 8012638: f47f af67 bne.w 801250a <xQueueSemaphoreTake+0x86>
  43519. {
  43520. portYIELD_WITHIN_API();
  43521. 801263c: 4b18 ldr r3, [pc, #96] @ (80126a0 <xQueueSemaphoreTake+0x21c>)
  43522. 801263e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  43523. 8012642: 601a str r2, [r3, #0]
  43524. 8012644: f3bf 8f4f dsb sy
  43525. 8012648: f3bf 8f6f isb sy
  43526. 801264c: e75d b.n 801250a <xQueueSemaphoreTake+0x86>
  43527. }
  43528. else
  43529. {
  43530. /* There was no timeout and the semaphore count was not 0, so
  43531. attempt to take the semaphore again. */
  43532. prvUnlockQueue( pxQueue );
  43533. 801264e: 6af8 ldr r0, [r7, #44] @ 0x2c
  43534. 8012650: f000 f9b4 bl 80129bc <prvUnlockQueue>
  43535. ( void ) xTaskResumeAll();
  43536. 8012654: f001 f8c4 bl 80137e0 <xTaskResumeAll>
  43537. 8012658: e757 b.n 801250a <xQueueSemaphoreTake+0x86>
  43538. }
  43539. }
  43540. else
  43541. {
  43542. /* Timed out. */
  43543. prvUnlockQueue( pxQueue );
  43544. 801265a: 6af8 ldr r0, [r7, #44] @ 0x2c
  43545. 801265c: f000 f9ae bl 80129bc <prvUnlockQueue>
  43546. ( void ) xTaskResumeAll();
  43547. 8012660: f001 f8be bl 80137e0 <xTaskResumeAll>
  43548. /* If the semaphore count is 0 exit now as the timeout has
  43549. expired. Otherwise return to attempt to take the semaphore that is
  43550. known to be available. As semaphores are implemented by queues the
  43551. queue being empty is equivalent to the semaphore count being 0. */
  43552. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  43553. 8012664: 6af8 ldr r0, [r7, #44] @ 0x2c
  43554. 8012666: f000 f9fb bl 8012a60 <prvIsQueueEmpty>
  43555. 801266a: 4603 mov r3, r0
  43556. 801266c: 2b00 cmp r3, #0
  43557. 801266e: f43f af4c beq.w 801250a <xQueueSemaphoreTake+0x86>
  43558. #if ( configUSE_MUTEXES == 1 )
  43559. {
  43560. /* xInheritanceOccurred could only have be set if
  43561. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  43562. test the mutex type again to check it is actually a mutex. */
  43563. if( xInheritanceOccurred != pdFALSE )
  43564. 8012672: 6b3b ldr r3, [r7, #48] @ 0x30
  43565. 8012674: 2b00 cmp r3, #0
  43566. 8012676: d00d beq.n 8012694 <xQueueSemaphoreTake+0x210>
  43567. {
  43568. taskENTER_CRITICAL();
  43569. 8012678: f002 fe4e bl 8015318 <vPortEnterCritical>
  43570. /* This task blocking on the mutex caused another
  43571. task to inherit this task's priority. Now this task
  43572. has timed out the priority should be disinherited
  43573. again, but only as low as the next highest priority
  43574. task that is waiting for the same mutex. */
  43575. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  43576. 801267c: 6af8 ldr r0, [r7, #44] @ 0x2c
  43577. 801267e: f000 f8f5 bl 801286c <prvGetDisinheritPriorityAfterTimeout>
  43578. 8012682: 6278 str r0, [r7, #36] @ 0x24
  43579. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  43580. 8012684: 6afb ldr r3, [r7, #44] @ 0x2c
  43581. 8012686: 689b ldr r3, [r3, #8]
  43582. 8012688: 6a79 ldr r1, [r7, #36] @ 0x24
  43583. 801268a: 4618 mov r0, r3
  43584. 801268c: f001 fddc bl 8014248 <vTaskPriorityDisinheritAfterTimeout>
  43585. }
  43586. taskEXIT_CRITICAL();
  43587. 8012690: f002 fe74 bl 801537c <vPortExitCritical>
  43588. }
  43589. }
  43590. #endif /* configUSE_MUTEXES */
  43591. traceQUEUE_RECEIVE_FAILED( pxQueue );
  43592. return errQUEUE_EMPTY;
  43593. 8012694: 2300 movs r3, #0
  43594. {
  43595. mtCOVERAGE_TEST_MARKER();
  43596. }
  43597. }
  43598. } /*lint -restore */
  43599. }
  43600. 8012696: 4618 mov r0, r3
  43601. 8012698: 3738 adds r7, #56 @ 0x38
  43602. 801269a: 46bd mov sp, r7
  43603. 801269c: bd80 pop {r7, pc}
  43604. 801269e: bf00 nop
  43605. 80126a0: e000ed04 .word 0xe000ed04
  43606. 080126a4 <xQueueReceiveFromISR>:
  43607. } /*lint -restore */
  43608. }
  43609. /*-----------------------------------------------------------*/
  43610. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  43611. {
  43612. 80126a4: b580 push {r7, lr}
  43613. 80126a6: b08e sub sp, #56 @ 0x38
  43614. 80126a8: af00 add r7, sp, #0
  43615. 80126aa: 60f8 str r0, [r7, #12]
  43616. 80126ac: 60b9 str r1, [r7, #8]
  43617. 80126ae: 607a str r2, [r7, #4]
  43618. BaseType_t xReturn;
  43619. UBaseType_t uxSavedInterruptStatus;
  43620. Queue_t * const pxQueue = xQueue;
  43621. 80126b0: 68fb ldr r3, [r7, #12]
  43622. 80126b2: 633b str r3, [r7, #48] @ 0x30
  43623. configASSERT( pxQueue );
  43624. 80126b4: 6b3b ldr r3, [r7, #48] @ 0x30
  43625. 80126b6: 2b00 cmp r3, #0
  43626. 80126b8: d10b bne.n 80126d2 <xQueueReceiveFromISR+0x2e>
  43627. __asm volatile
  43628. 80126ba: f04f 0350 mov.w r3, #80 @ 0x50
  43629. 80126be: f383 8811 msr BASEPRI, r3
  43630. 80126c2: f3bf 8f6f isb sy
  43631. 80126c6: f3bf 8f4f dsb sy
  43632. 80126ca: 623b str r3, [r7, #32]
  43633. }
  43634. 80126cc: bf00 nop
  43635. 80126ce: bf00 nop
  43636. 80126d0: e7fd b.n 80126ce <xQueueReceiveFromISR+0x2a>
  43637. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  43638. 80126d2: 68bb ldr r3, [r7, #8]
  43639. 80126d4: 2b00 cmp r3, #0
  43640. 80126d6: d103 bne.n 80126e0 <xQueueReceiveFromISR+0x3c>
  43641. 80126d8: 6b3b ldr r3, [r7, #48] @ 0x30
  43642. 80126da: 6c1b ldr r3, [r3, #64] @ 0x40
  43643. 80126dc: 2b00 cmp r3, #0
  43644. 80126de: d101 bne.n 80126e4 <xQueueReceiveFromISR+0x40>
  43645. 80126e0: 2301 movs r3, #1
  43646. 80126e2: e000 b.n 80126e6 <xQueueReceiveFromISR+0x42>
  43647. 80126e4: 2300 movs r3, #0
  43648. 80126e6: 2b00 cmp r3, #0
  43649. 80126e8: d10b bne.n 8012702 <xQueueReceiveFromISR+0x5e>
  43650. __asm volatile
  43651. 80126ea: f04f 0350 mov.w r3, #80 @ 0x50
  43652. 80126ee: f383 8811 msr BASEPRI, r3
  43653. 80126f2: f3bf 8f6f isb sy
  43654. 80126f6: f3bf 8f4f dsb sy
  43655. 80126fa: 61fb str r3, [r7, #28]
  43656. }
  43657. 80126fc: bf00 nop
  43658. 80126fe: bf00 nop
  43659. 8012700: e7fd b.n 80126fe <xQueueReceiveFromISR+0x5a>
  43660. that have been assigned a priority at or (logically) below the maximum
  43661. system call interrupt priority. FreeRTOS maintains a separate interrupt
  43662. safe API to ensure interrupt entry is as fast and as simple as possible.
  43663. More information (albeit Cortex-M specific) is provided on the following
  43664. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  43665. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  43666. 8012702: f002 fee9 bl 80154d8 <vPortValidateInterruptPriority>
  43667. __asm volatile
  43668. 8012706: f3ef 8211 mrs r2, BASEPRI
  43669. 801270a: f04f 0350 mov.w r3, #80 @ 0x50
  43670. 801270e: f383 8811 msr BASEPRI, r3
  43671. 8012712: f3bf 8f6f isb sy
  43672. 8012716: f3bf 8f4f dsb sy
  43673. 801271a: 61ba str r2, [r7, #24]
  43674. 801271c: 617b str r3, [r7, #20]
  43675. return ulOriginalBASEPRI;
  43676. 801271e: 69bb ldr r3, [r7, #24]
  43677. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  43678. 8012720: 62fb str r3, [r7, #44] @ 0x2c
  43679. {
  43680. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  43681. 8012722: 6b3b ldr r3, [r7, #48] @ 0x30
  43682. 8012724: 6b9b ldr r3, [r3, #56] @ 0x38
  43683. 8012726: 62bb str r3, [r7, #40] @ 0x28
  43684. /* Cannot block in an ISR, so check there is data available. */
  43685. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  43686. 8012728: 6abb ldr r3, [r7, #40] @ 0x28
  43687. 801272a: 2b00 cmp r3, #0
  43688. 801272c: d02f beq.n 801278e <xQueueReceiveFromISR+0xea>
  43689. {
  43690. const int8_t cRxLock = pxQueue->cRxLock;
  43691. 801272e: 6b3b ldr r3, [r7, #48] @ 0x30
  43692. 8012730: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  43693. 8012734: f887 3027 strb.w r3, [r7, #39] @ 0x27
  43694. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  43695. prvCopyDataFromQueue( pxQueue, pvBuffer );
  43696. 8012738: 68b9 ldr r1, [r7, #8]
  43697. 801273a: 6b38 ldr r0, [r7, #48] @ 0x30
  43698. 801273c: f000 f918 bl 8012970 <prvCopyDataFromQueue>
  43699. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  43700. 8012740: 6abb ldr r3, [r7, #40] @ 0x28
  43701. 8012742: 1e5a subs r2, r3, #1
  43702. 8012744: 6b3b ldr r3, [r7, #48] @ 0x30
  43703. 8012746: 639a str r2, [r3, #56] @ 0x38
  43704. /* If the queue is locked the event list will not be modified.
  43705. Instead update the lock count so the task that unlocks the queue
  43706. will know that an ISR has removed data while the queue was
  43707. locked. */
  43708. if( cRxLock == queueUNLOCKED )
  43709. 8012748: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  43710. 801274c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  43711. 8012750: d112 bne.n 8012778 <xQueueReceiveFromISR+0xd4>
  43712. {
  43713. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  43714. 8012752: 6b3b ldr r3, [r7, #48] @ 0x30
  43715. 8012754: 691b ldr r3, [r3, #16]
  43716. 8012756: 2b00 cmp r3, #0
  43717. 8012758: d016 beq.n 8012788 <xQueueReceiveFromISR+0xe4>
  43718. {
  43719. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  43720. 801275a: 6b3b ldr r3, [r7, #48] @ 0x30
  43721. 801275c: 3310 adds r3, #16
  43722. 801275e: 4618 mov r0, r3
  43723. 8012760: f001 fa7e bl 8013c60 <xTaskRemoveFromEventList>
  43724. 8012764: 4603 mov r3, r0
  43725. 8012766: 2b00 cmp r3, #0
  43726. 8012768: d00e beq.n 8012788 <xQueueReceiveFromISR+0xe4>
  43727. {
  43728. /* The task waiting has a higher priority than us so
  43729. force a context switch. */
  43730. if( pxHigherPriorityTaskWoken != NULL )
  43731. 801276a: 687b ldr r3, [r7, #4]
  43732. 801276c: 2b00 cmp r3, #0
  43733. 801276e: d00b beq.n 8012788 <xQueueReceiveFromISR+0xe4>
  43734. {
  43735. *pxHigherPriorityTaskWoken = pdTRUE;
  43736. 8012770: 687b ldr r3, [r7, #4]
  43737. 8012772: 2201 movs r2, #1
  43738. 8012774: 601a str r2, [r3, #0]
  43739. 8012776: e007 b.n 8012788 <xQueueReceiveFromISR+0xe4>
  43740. }
  43741. else
  43742. {
  43743. /* Increment the lock count so the task that unlocks the queue
  43744. knows that data was removed while it was locked. */
  43745. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  43746. 8012778: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  43747. 801277c: 3301 adds r3, #1
  43748. 801277e: b2db uxtb r3, r3
  43749. 8012780: b25a sxtb r2, r3
  43750. 8012782: 6b3b ldr r3, [r7, #48] @ 0x30
  43751. 8012784: f883 2044 strb.w r2, [r3, #68] @ 0x44
  43752. }
  43753. xReturn = pdPASS;
  43754. 8012788: 2301 movs r3, #1
  43755. 801278a: 637b str r3, [r7, #52] @ 0x34
  43756. 801278c: e001 b.n 8012792 <xQueueReceiveFromISR+0xee>
  43757. }
  43758. else
  43759. {
  43760. xReturn = pdFAIL;
  43761. 801278e: 2300 movs r3, #0
  43762. 8012790: 637b str r3, [r7, #52] @ 0x34
  43763. 8012792: 6afb ldr r3, [r7, #44] @ 0x2c
  43764. 8012794: 613b str r3, [r7, #16]
  43765. __asm volatile
  43766. 8012796: 693b ldr r3, [r7, #16]
  43767. 8012798: f383 8811 msr BASEPRI, r3
  43768. }
  43769. 801279c: bf00 nop
  43770. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  43771. }
  43772. }
  43773. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  43774. return xReturn;
  43775. 801279e: 6b7b ldr r3, [r7, #52] @ 0x34
  43776. }
  43777. 80127a0: 4618 mov r0, r3
  43778. 80127a2: 3738 adds r7, #56 @ 0x38
  43779. 80127a4: 46bd mov sp, r7
  43780. 80127a6: bd80 pop {r7, pc}
  43781. 080127a8 <uxQueueMessagesWaiting>:
  43782. return xReturn;
  43783. }
  43784. /*-----------------------------------------------------------*/
  43785. UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue )
  43786. {
  43787. 80127a8: b580 push {r7, lr}
  43788. 80127aa: b084 sub sp, #16
  43789. 80127ac: af00 add r7, sp, #0
  43790. 80127ae: 6078 str r0, [r7, #4]
  43791. UBaseType_t uxReturn;
  43792. configASSERT( xQueue );
  43793. 80127b0: 687b ldr r3, [r7, #4]
  43794. 80127b2: 2b00 cmp r3, #0
  43795. 80127b4: d10b bne.n 80127ce <uxQueueMessagesWaiting+0x26>
  43796. __asm volatile
  43797. 80127b6: f04f 0350 mov.w r3, #80 @ 0x50
  43798. 80127ba: f383 8811 msr BASEPRI, r3
  43799. 80127be: f3bf 8f6f isb sy
  43800. 80127c2: f3bf 8f4f dsb sy
  43801. 80127c6: 60bb str r3, [r7, #8]
  43802. }
  43803. 80127c8: bf00 nop
  43804. 80127ca: bf00 nop
  43805. 80127cc: e7fd b.n 80127ca <uxQueueMessagesWaiting+0x22>
  43806. taskENTER_CRITICAL();
  43807. 80127ce: f002 fda3 bl 8015318 <vPortEnterCritical>
  43808. {
  43809. uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting;
  43810. 80127d2: 687b ldr r3, [r7, #4]
  43811. 80127d4: 6b9b ldr r3, [r3, #56] @ 0x38
  43812. 80127d6: 60fb str r3, [r7, #12]
  43813. }
  43814. taskEXIT_CRITICAL();
  43815. 80127d8: f002 fdd0 bl 801537c <vPortExitCritical>
  43816. return uxReturn;
  43817. 80127dc: 68fb ldr r3, [r7, #12]
  43818. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  43819. 80127de: 4618 mov r0, r3
  43820. 80127e0: 3710 adds r7, #16
  43821. 80127e2: 46bd mov sp, r7
  43822. 80127e4: bd80 pop {r7, pc}
  43823. 080127e6 <uxQueueMessagesWaitingFromISR>:
  43824. return uxReturn;
  43825. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  43826. /*-----------------------------------------------------------*/
  43827. UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue )
  43828. {
  43829. 80127e6: b480 push {r7}
  43830. 80127e8: b087 sub sp, #28
  43831. 80127ea: af00 add r7, sp, #0
  43832. 80127ec: 6078 str r0, [r7, #4]
  43833. UBaseType_t uxReturn;
  43834. Queue_t * const pxQueue = xQueue;
  43835. 80127ee: 687b ldr r3, [r7, #4]
  43836. 80127f0: 617b str r3, [r7, #20]
  43837. configASSERT( pxQueue );
  43838. 80127f2: 697b ldr r3, [r7, #20]
  43839. 80127f4: 2b00 cmp r3, #0
  43840. 80127f6: d10b bne.n 8012810 <uxQueueMessagesWaitingFromISR+0x2a>
  43841. __asm volatile
  43842. 80127f8: f04f 0350 mov.w r3, #80 @ 0x50
  43843. 80127fc: f383 8811 msr BASEPRI, r3
  43844. 8012800: f3bf 8f6f isb sy
  43845. 8012804: f3bf 8f4f dsb sy
  43846. 8012808: 60fb str r3, [r7, #12]
  43847. }
  43848. 801280a: bf00 nop
  43849. 801280c: bf00 nop
  43850. 801280e: e7fd b.n 801280c <uxQueueMessagesWaitingFromISR+0x26>
  43851. uxReturn = pxQueue->uxMessagesWaiting;
  43852. 8012810: 697b ldr r3, [r7, #20]
  43853. 8012812: 6b9b ldr r3, [r3, #56] @ 0x38
  43854. 8012814: 613b str r3, [r7, #16]
  43855. return uxReturn;
  43856. 8012816: 693b ldr r3, [r7, #16]
  43857. } /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
  43858. 8012818: 4618 mov r0, r3
  43859. 801281a: 371c adds r7, #28
  43860. 801281c: 46bd mov sp, r7
  43861. 801281e: f85d 7b04 ldr.w r7, [sp], #4
  43862. 8012822: 4770 bx lr
  43863. 08012824 <vQueueDelete>:
  43864. /*-----------------------------------------------------------*/
  43865. void vQueueDelete( QueueHandle_t xQueue )
  43866. {
  43867. 8012824: b580 push {r7, lr}
  43868. 8012826: b084 sub sp, #16
  43869. 8012828: af00 add r7, sp, #0
  43870. 801282a: 6078 str r0, [r7, #4]
  43871. Queue_t * const pxQueue = xQueue;
  43872. 801282c: 687b ldr r3, [r7, #4]
  43873. 801282e: 60fb str r3, [r7, #12]
  43874. configASSERT( pxQueue );
  43875. 8012830: 68fb ldr r3, [r7, #12]
  43876. 8012832: 2b00 cmp r3, #0
  43877. 8012834: d10b bne.n 801284e <vQueueDelete+0x2a>
  43878. __asm volatile
  43879. 8012836: f04f 0350 mov.w r3, #80 @ 0x50
  43880. 801283a: f383 8811 msr BASEPRI, r3
  43881. 801283e: f3bf 8f6f isb sy
  43882. 8012842: f3bf 8f4f dsb sy
  43883. 8012846: 60bb str r3, [r7, #8]
  43884. }
  43885. 8012848: bf00 nop
  43886. 801284a: bf00 nop
  43887. 801284c: e7fd b.n 801284a <vQueueDelete+0x26>
  43888. traceQUEUE_DELETE( pxQueue );
  43889. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  43890. {
  43891. vQueueUnregisterQueue( pxQueue );
  43892. 801284e: 68f8 ldr r0, [r7, #12]
  43893. 8012850: f000 f95e bl 8012b10 <vQueueUnregisterQueue>
  43894. }
  43895. #elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  43896. {
  43897. /* The queue could have been allocated statically or dynamically, so
  43898. check before attempting to free the memory. */
  43899. if( pxQueue->ucStaticallyAllocated == ( uint8_t ) pdFALSE )
  43900. 8012854: 68fb ldr r3, [r7, #12]
  43901. 8012856: f893 3046 ldrb.w r3, [r3, #70] @ 0x46
  43902. 801285a: 2b00 cmp r3, #0
  43903. 801285c: d102 bne.n 8012864 <vQueueDelete+0x40>
  43904. {
  43905. vPortFree( pxQueue );
  43906. 801285e: 68f8 ldr r0, [r7, #12]
  43907. 8012860: f002 ff4a bl 80156f8 <vPortFree>
  43908. /* The queue must have been statically allocated, so is not going to be
  43909. deleted. Avoid compiler warnings about the unused parameter. */
  43910. ( void ) pxQueue;
  43911. }
  43912. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  43913. }
  43914. 8012864: bf00 nop
  43915. 8012866: 3710 adds r7, #16
  43916. 8012868: 46bd mov sp, r7
  43917. 801286a: bd80 pop {r7, pc}
  43918. 0801286c <prvGetDisinheritPriorityAfterTimeout>:
  43919. /*-----------------------------------------------------------*/
  43920. #if( configUSE_MUTEXES == 1 )
  43921. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  43922. {
  43923. 801286c: b480 push {r7}
  43924. 801286e: b085 sub sp, #20
  43925. 8012870: af00 add r7, sp, #0
  43926. 8012872: 6078 str r0, [r7, #4]
  43927. priority, but the waiting task times out, then the holder should
  43928. disinherit the priority - but only down to the highest priority of any
  43929. other tasks that are waiting for the same mutex. For this purpose,
  43930. return the priority of the highest priority task that is waiting for the
  43931. mutex. */
  43932. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  43933. 8012874: 687b ldr r3, [r7, #4]
  43934. 8012876: 6a5b ldr r3, [r3, #36] @ 0x24
  43935. 8012878: 2b00 cmp r3, #0
  43936. 801287a: d006 beq.n 801288a <prvGetDisinheritPriorityAfterTimeout+0x1e>
  43937. {
  43938. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  43939. 801287c: 687b ldr r3, [r7, #4]
  43940. 801287e: 6b1b ldr r3, [r3, #48] @ 0x30
  43941. 8012880: 681b ldr r3, [r3, #0]
  43942. 8012882: f1c3 0338 rsb r3, r3, #56 @ 0x38
  43943. 8012886: 60fb str r3, [r7, #12]
  43944. 8012888: e001 b.n 801288e <prvGetDisinheritPriorityAfterTimeout+0x22>
  43945. }
  43946. else
  43947. {
  43948. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  43949. 801288a: 2300 movs r3, #0
  43950. 801288c: 60fb str r3, [r7, #12]
  43951. }
  43952. return uxHighestPriorityOfWaitingTasks;
  43953. 801288e: 68fb ldr r3, [r7, #12]
  43954. }
  43955. 8012890: 4618 mov r0, r3
  43956. 8012892: 3714 adds r7, #20
  43957. 8012894: 46bd mov sp, r7
  43958. 8012896: f85d 7b04 ldr.w r7, [sp], #4
  43959. 801289a: 4770 bx lr
  43960. 0801289c <prvCopyDataToQueue>:
  43961. #endif /* configUSE_MUTEXES */
  43962. /*-----------------------------------------------------------*/
  43963. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  43964. {
  43965. 801289c: b580 push {r7, lr}
  43966. 801289e: b086 sub sp, #24
  43967. 80128a0: af00 add r7, sp, #0
  43968. 80128a2: 60f8 str r0, [r7, #12]
  43969. 80128a4: 60b9 str r1, [r7, #8]
  43970. 80128a6: 607a str r2, [r7, #4]
  43971. BaseType_t xReturn = pdFALSE;
  43972. 80128a8: 2300 movs r3, #0
  43973. 80128aa: 617b str r3, [r7, #20]
  43974. UBaseType_t uxMessagesWaiting;
  43975. /* This function is called from a critical section. */
  43976. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  43977. 80128ac: 68fb ldr r3, [r7, #12]
  43978. 80128ae: 6b9b ldr r3, [r3, #56] @ 0x38
  43979. 80128b0: 613b str r3, [r7, #16]
  43980. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  43981. 80128b2: 68fb ldr r3, [r7, #12]
  43982. 80128b4: 6c1b ldr r3, [r3, #64] @ 0x40
  43983. 80128b6: 2b00 cmp r3, #0
  43984. 80128b8: d10d bne.n 80128d6 <prvCopyDataToQueue+0x3a>
  43985. {
  43986. #if ( configUSE_MUTEXES == 1 )
  43987. {
  43988. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  43989. 80128ba: 68fb ldr r3, [r7, #12]
  43990. 80128bc: 681b ldr r3, [r3, #0]
  43991. 80128be: 2b00 cmp r3, #0
  43992. 80128c0: d14d bne.n 801295e <prvCopyDataToQueue+0xc2>
  43993. {
  43994. /* The mutex is no longer being held. */
  43995. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  43996. 80128c2: 68fb ldr r3, [r7, #12]
  43997. 80128c4: 689b ldr r3, [r3, #8]
  43998. 80128c6: 4618 mov r0, r3
  43999. 80128c8: f001 fc4e bl 8014168 <xTaskPriorityDisinherit>
  44000. 80128cc: 6178 str r0, [r7, #20]
  44001. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  44002. 80128ce: 68fb ldr r3, [r7, #12]
  44003. 80128d0: 2200 movs r2, #0
  44004. 80128d2: 609a str r2, [r3, #8]
  44005. 80128d4: e043 b.n 801295e <prvCopyDataToQueue+0xc2>
  44006. mtCOVERAGE_TEST_MARKER();
  44007. }
  44008. }
  44009. #endif /* configUSE_MUTEXES */
  44010. }
  44011. else if( xPosition == queueSEND_TO_BACK )
  44012. 80128d6: 687b ldr r3, [r7, #4]
  44013. 80128d8: 2b00 cmp r3, #0
  44014. 80128da: d119 bne.n 8012910 <prvCopyDataToQueue+0x74>
  44015. {
  44016. ( 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. */
  44017. 80128dc: 68fb ldr r3, [r7, #12]
  44018. 80128de: 6858 ldr r0, [r3, #4]
  44019. 80128e0: 68fb ldr r3, [r7, #12]
  44020. 80128e2: 6c1b ldr r3, [r3, #64] @ 0x40
  44021. 80128e4: 461a mov r2, r3
  44022. 80128e6: 68b9 ldr r1, [r7, #8]
  44023. 80128e8: f017 fef1 bl 802a6ce <memcpy>
  44024. 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. */
  44025. 80128ec: 68fb ldr r3, [r7, #12]
  44026. 80128ee: 685a ldr r2, [r3, #4]
  44027. 80128f0: 68fb ldr r3, [r7, #12]
  44028. 80128f2: 6c1b ldr r3, [r3, #64] @ 0x40
  44029. 80128f4: 441a add r2, r3
  44030. 80128f6: 68fb ldr r3, [r7, #12]
  44031. 80128f8: 605a str r2, [r3, #4]
  44032. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  44033. 80128fa: 68fb ldr r3, [r7, #12]
  44034. 80128fc: 685a ldr r2, [r3, #4]
  44035. 80128fe: 68fb ldr r3, [r7, #12]
  44036. 8012900: 689b ldr r3, [r3, #8]
  44037. 8012902: 429a cmp r2, r3
  44038. 8012904: d32b bcc.n 801295e <prvCopyDataToQueue+0xc2>
  44039. {
  44040. pxQueue->pcWriteTo = pxQueue->pcHead;
  44041. 8012906: 68fb ldr r3, [r7, #12]
  44042. 8012908: 681a ldr r2, [r3, #0]
  44043. 801290a: 68fb ldr r3, [r7, #12]
  44044. 801290c: 605a str r2, [r3, #4]
  44045. 801290e: e026 b.n 801295e <prvCopyDataToQueue+0xc2>
  44046. mtCOVERAGE_TEST_MARKER();
  44047. }
  44048. }
  44049. else
  44050. {
  44051. ( 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. */
  44052. 8012910: 68fb ldr r3, [r7, #12]
  44053. 8012912: 68d8 ldr r0, [r3, #12]
  44054. 8012914: 68fb ldr r3, [r7, #12]
  44055. 8012916: 6c1b ldr r3, [r3, #64] @ 0x40
  44056. 8012918: 461a mov r2, r3
  44057. 801291a: 68b9 ldr r1, [r7, #8]
  44058. 801291c: f017 fed7 bl 802a6ce <memcpy>
  44059. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  44060. 8012920: 68fb ldr r3, [r7, #12]
  44061. 8012922: 68da ldr r2, [r3, #12]
  44062. 8012924: 68fb ldr r3, [r7, #12]
  44063. 8012926: 6c1b ldr r3, [r3, #64] @ 0x40
  44064. 8012928: 425b negs r3, r3
  44065. 801292a: 441a add r2, r3
  44066. 801292c: 68fb ldr r3, [r7, #12]
  44067. 801292e: 60da str r2, [r3, #12]
  44068. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  44069. 8012930: 68fb ldr r3, [r7, #12]
  44070. 8012932: 68da ldr r2, [r3, #12]
  44071. 8012934: 68fb ldr r3, [r7, #12]
  44072. 8012936: 681b ldr r3, [r3, #0]
  44073. 8012938: 429a cmp r2, r3
  44074. 801293a: d207 bcs.n 801294c <prvCopyDataToQueue+0xb0>
  44075. {
  44076. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  44077. 801293c: 68fb ldr r3, [r7, #12]
  44078. 801293e: 689a ldr r2, [r3, #8]
  44079. 8012940: 68fb ldr r3, [r7, #12]
  44080. 8012942: 6c1b ldr r3, [r3, #64] @ 0x40
  44081. 8012944: 425b negs r3, r3
  44082. 8012946: 441a add r2, r3
  44083. 8012948: 68fb ldr r3, [r7, #12]
  44084. 801294a: 60da str r2, [r3, #12]
  44085. else
  44086. {
  44087. mtCOVERAGE_TEST_MARKER();
  44088. }
  44089. if( xPosition == queueOVERWRITE )
  44090. 801294c: 687b ldr r3, [r7, #4]
  44091. 801294e: 2b02 cmp r3, #2
  44092. 8012950: d105 bne.n 801295e <prvCopyDataToQueue+0xc2>
  44093. {
  44094. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  44095. 8012952: 693b ldr r3, [r7, #16]
  44096. 8012954: 2b00 cmp r3, #0
  44097. 8012956: d002 beq.n 801295e <prvCopyDataToQueue+0xc2>
  44098. {
  44099. /* An item is not being added but overwritten, so subtract
  44100. one from the recorded number of items in the queue so when
  44101. one is added again below the number of recorded items remains
  44102. correct. */
  44103. --uxMessagesWaiting;
  44104. 8012958: 693b ldr r3, [r7, #16]
  44105. 801295a: 3b01 subs r3, #1
  44106. 801295c: 613b str r3, [r7, #16]
  44107. {
  44108. mtCOVERAGE_TEST_MARKER();
  44109. }
  44110. }
  44111. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  44112. 801295e: 693b ldr r3, [r7, #16]
  44113. 8012960: 1c5a adds r2, r3, #1
  44114. 8012962: 68fb ldr r3, [r7, #12]
  44115. 8012964: 639a str r2, [r3, #56] @ 0x38
  44116. return xReturn;
  44117. 8012966: 697b ldr r3, [r7, #20]
  44118. }
  44119. 8012968: 4618 mov r0, r3
  44120. 801296a: 3718 adds r7, #24
  44121. 801296c: 46bd mov sp, r7
  44122. 801296e: bd80 pop {r7, pc}
  44123. 08012970 <prvCopyDataFromQueue>:
  44124. /*-----------------------------------------------------------*/
  44125. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  44126. {
  44127. 8012970: b580 push {r7, lr}
  44128. 8012972: b082 sub sp, #8
  44129. 8012974: af00 add r7, sp, #0
  44130. 8012976: 6078 str r0, [r7, #4]
  44131. 8012978: 6039 str r1, [r7, #0]
  44132. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  44133. 801297a: 687b ldr r3, [r7, #4]
  44134. 801297c: 6c1b ldr r3, [r3, #64] @ 0x40
  44135. 801297e: 2b00 cmp r3, #0
  44136. 8012980: d018 beq.n 80129b4 <prvCopyDataFromQueue+0x44>
  44137. {
  44138. 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. */
  44139. 8012982: 687b ldr r3, [r7, #4]
  44140. 8012984: 68da ldr r2, [r3, #12]
  44141. 8012986: 687b ldr r3, [r7, #4]
  44142. 8012988: 6c1b ldr r3, [r3, #64] @ 0x40
  44143. 801298a: 441a add r2, r3
  44144. 801298c: 687b ldr r3, [r7, #4]
  44145. 801298e: 60da str r2, [r3, #12]
  44146. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  44147. 8012990: 687b ldr r3, [r7, #4]
  44148. 8012992: 68da ldr r2, [r3, #12]
  44149. 8012994: 687b ldr r3, [r7, #4]
  44150. 8012996: 689b ldr r3, [r3, #8]
  44151. 8012998: 429a cmp r2, r3
  44152. 801299a: d303 bcc.n 80129a4 <prvCopyDataFromQueue+0x34>
  44153. {
  44154. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  44155. 801299c: 687b ldr r3, [r7, #4]
  44156. 801299e: 681a ldr r2, [r3, #0]
  44157. 80129a0: 687b ldr r3, [r7, #4]
  44158. 80129a2: 60da str r2, [r3, #12]
  44159. }
  44160. else
  44161. {
  44162. mtCOVERAGE_TEST_MARKER();
  44163. }
  44164. ( 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. */
  44165. 80129a4: 687b ldr r3, [r7, #4]
  44166. 80129a6: 68d9 ldr r1, [r3, #12]
  44167. 80129a8: 687b ldr r3, [r7, #4]
  44168. 80129aa: 6c1b ldr r3, [r3, #64] @ 0x40
  44169. 80129ac: 461a mov r2, r3
  44170. 80129ae: 6838 ldr r0, [r7, #0]
  44171. 80129b0: f017 fe8d bl 802a6ce <memcpy>
  44172. }
  44173. }
  44174. 80129b4: bf00 nop
  44175. 80129b6: 3708 adds r7, #8
  44176. 80129b8: 46bd mov sp, r7
  44177. 80129ba: bd80 pop {r7, pc}
  44178. 080129bc <prvUnlockQueue>:
  44179. /*-----------------------------------------------------------*/
  44180. static void prvUnlockQueue( Queue_t * const pxQueue )
  44181. {
  44182. 80129bc: b580 push {r7, lr}
  44183. 80129be: b084 sub sp, #16
  44184. 80129c0: af00 add r7, sp, #0
  44185. 80129c2: 6078 str r0, [r7, #4]
  44186. /* The lock counts contains the number of extra data items placed or
  44187. removed from the queue while the queue was locked. When a queue is
  44188. locked items can be added or removed, but the event lists cannot be
  44189. updated. */
  44190. taskENTER_CRITICAL();
  44191. 80129c4: f002 fca8 bl 8015318 <vPortEnterCritical>
  44192. {
  44193. int8_t cTxLock = pxQueue->cTxLock;
  44194. 80129c8: 687b ldr r3, [r7, #4]
  44195. 80129ca: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  44196. 80129ce: 73fb strb r3, [r7, #15]
  44197. /* See if data was added to the queue while it was locked. */
  44198. while( cTxLock > queueLOCKED_UNMODIFIED )
  44199. 80129d0: e011 b.n 80129f6 <prvUnlockQueue+0x3a>
  44200. }
  44201. #else /* configUSE_QUEUE_SETS */
  44202. {
  44203. /* Tasks that are removed from the event list will get added to
  44204. the pending ready list as the scheduler is still suspended. */
  44205. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  44206. 80129d2: 687b ldr r3, [r7, #4]
  44207. 80129d4: 6a5b ldr r3, [r3, #36] @ 0x24
  44208. 80129d6: 2b00 cmp r3, #0
  44209. 80129d8: d012 beq.n 8012a00 <prvUnlockQueue+0x44>
  44210. {
  44211. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  44212. 80129da: 687b ldr r3, [r7, #4]
  44213. 80129dc: 3324 adds r3, #36 @ 0x24
  44214. 80129de: 4618 mov r0, r3
  44215. 80129e0: f001 f93e bl 8013c60 <xTaskRemoveFromEventList>
  44216. 80129e4: 4603 mov r3, r0
  44217. 80129e6: 2b00 cmp r3, #0
  44218. 80129e8: d001 beq.n 80129ee <prvUnlockQueue+0x32>
  44219. {
  44220. /* The task waiting has a higher priority so record that
  44221. a context switch is required. */
  44222. vTaskMissedYield();
  44223. 80129ea: f001 fa3f bl 8013e6c <vTaskMissedYield>
  44224. break;
  44225. }
  44226. }
  44227. #endif /* configUSE_QUEUE_SETS */
  44228. --cTxLock;
  44229. 80129ee: 7bfb ldrb r3, [r7, #15]
  44230. 80129f0: 3b01 subs r3, #1
  44231. 80129f2: b2db uxtb r3, r3
  44232. 80129f4: 73fb strb r3, [r7, #15]
  44233. while( cTxLock > queueLOCKED_UNMODIFIED )
  44234. 80129f6: f997 300f ldrsb.w r3, [r7, #15]
  44235. 80129fa: 2b00 cmp r3, #0
  44236. 80129fc: dce9 bgt.n 80129d2 <prvUnlockQueue+0x16>
  44237. 80129fe: e000 b.n 8012a02 <prvUnlockQueue+0x46>
  44238. break;
  44239. 8012a00: bf00 nop
  44240. }
  44241. pxQueue->cTxLock = queueUNLOCKED;
  44242. 8012a02: 687b ldr r3, [r7, #4]
  44243. 8012a04: 22ff movs r2, #255 @ 0xff
  44244. 8012a06: f883 2045 strb.w r2, [r3, #69] @ 0x45
  44245. }
  44246. taskEXIT_CRITICAL();
  44247. 8012a0a: f002 fcb7 bl 801537c <vPortExitCritical>
  44248. /* Do the same for the Rx lock. */
  44249. taskENTER_CRITICAL();
  44250. 8012a0e: f002 fc83 bl 8015318 <vPortEnterCritical>
  44251. {
  44252. int8_t cRxLock = pxQueue->cRxLock;
  44253. 8012a12: 687b ldr r3, [r7, #4]
  44254. 8012a14: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  44255. 8012a18: 73bb strb r3, [r7, #14]
  44256. while( cRxLock > queueLOCKED_UNMODIFIED )
  44257. 8012a1a: e011 b.n 8012a40 <prvUnlockQueue+0x84>
  44258. {
  44259. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  44260. 8012a1c: 687b ldr r3, [r7, #4]
  44261. 8012a1e: 691b ldr r3, [r3, #16]
  44262. 8012a20: 2b00 cmp r3, #0
  44263. 8012a22: d012 beq.n 8012a4a <prvUnlockQueue+0x8e>
  44264. {
  44265. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  44266. 8012a24: 687b ldr r3, [r7, #4]
  44267. 8012a26: 3310 adds r3, #16
  44268. 8012a28: 4618 mov r0, r3
  44269. 8012a2a: f001 f919 bl 8013c60 <xTaskRemoveFromEventList>
  44270. 8012a2e: 4603 mov r3, r0
  44271. 8012a30: 2b00 cmp r3, #0
  44272. 8012a32: d001 beq.n 8012a38 <prvUnlockQueue+0x7c>
  44273. {
  44274. vTaskMissedYield();
  44275. 8012a34: f001 fa1a bl 8013e6c <vTaskMissedYield>
  44276. else
  44277. {
  44278. mtCOVERAGE_TEST_MARKER();
  44279. }
  44280. --cRxLock;
  44281. 8012a38: 7bbb ldrb r3, [r7, #14]
  44282. 8012a3a: 3b01 subs r3, #1
  44283. 8012a3c: b2db uxtb r3, r3
  44284. 8012a3e: 73bb strb r3, [r7, #14]
  44285. while( cRxLock > queueLOCKED_UNMODIFIED )
  44286. 8012a40: f997 300e ldrsb.w r3, [r7, #14]
  44287. 8012a44: 2b00 cmp r3, #0
  44288. 8012a46: dce9 bgt.n 8012a1c <prvUnlockQueue+0x60>
  44289. 8012a48: e000 b.n 8012a4c <prvUnlockQueue+0x90>
  44290. }
  44291. else
  44292. {
  44293. break;
  44294. 8012a4a: bf00 nop
  44295. }
  44296. }
  44297. pxQueue->cRxLock = queueUNLOCKED;
  44298. 8012a4c: 687b ldr r3, [r7, #4]
  44299. 8012a4e: 22ff movs r2, #255 @ 0xff
  44300. 8012a50: f883 2044 strb.w r2, [r3, #68] @ 0x44
  44301. }
  44302. taskEXIT_CRITICAL();
  44303. 8012a54: f002 fc92 bl 801537c <vPortExitCritical>
  44304. }
  44305. 8012a58: bf00 nop
  44306. 8012a5a: 3710 adds r7, #16
  44307. 8012a5c: 46bd mov sp, r7
  44308. 8012a5e: bd80 pop {r7, pc}
  44309. 08012a60 <prvIsQueueEmpty>:
  44310. /*-----------------------------------------------------------*/
  44311. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  44312. {
  44313. 8012a60: b580 push {r7, lr}
  44314. 8012a62: b084 sub sp, #16
  44315. 8012a64: af00 add r7, sp, #0
  44316. 8012a66: 6078 str r0, [r7, #4]
  44317. BaseType_t xReturn;
  44318. taskENTER_CRITICAL();
  44319. 8012a68: f002 fc56 bl 8015318 <vPortEnterCritical>
  44320. {
  44321. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  44322. 8012a6c: 687b ldr r3, [r7, #4]
  44323. 8012a6e: 6b9b ldr r3, [r3, #56] @ 0x38
  44324. 8012a70: 2b00 cmp r3, #0
  44325. 8012a72: d102 bne.n 8012a7a <prvIsQueueEmpty+0x1a>
  44326. {
  44327. xReturn = pdTRUE;
  44328. 8012a74: 2301 movs r3, #1
  44329. 8012a76: 60fb str r3, [r7, #12]
  44330. 8012a78: e001 b.n 8012a7e <prvIsQueueEmpty+0x1e>
  44331. }
  44332. else
  44333. {
  44334. xReturn = pdFALSE;
  44335. 8012a7a: 2300 movs r3, #0
  44336. 8012a7c: 60fb str r3, [r7, #12]
  44337. }
  44338. }
  44339. taskEXIT_CRITICAL();
  44340. 8012a7e: f002 fc7d bl 801537c <vPortExitCritical>
  44341. return xReturn;
  44342. 8012a82: 68fb ldr r3, [r7, #12]
  44343. }
  44344. 8012a84: 4618 mov r0, r3
  44345. 8012a86: 3710 adds r7, #16
  44346. 8012a88: 46bd mov sp, r7
  44347. 8012a8a: bd80 pop {r7, pc}
  44348. 08012a8c <prvIsQueueFull>:
  44349. return xReturn;
  44350. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  44351. /*-----------------------------------------------------------*/
  44352. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  44353. {
  44354. 8012a8c: b580 push {r7, lr}
  44355. 8012a8e: b084 sub sp, #16
  44356. 8012a90: af00 add r7, sp, #0
  44357. 8012a92: 6078 str r0, [r7, #4]
  44358. BaseType_t xReturn;
  44359. taskENTER_CRITICAL();
  44360. 8012a94: f002 fc40 bl 8015318 <vPortEnterCritical>
  44361. {
  44362. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  44363. 8012a98: 687b ldr r3, [r7, #4]
  44364. 8012a9a: 6b9a ldr r2, [r3, #56] @ 0x38
  44365. 8012a9c: 687b ldr r3, [r7, #4]
  44366. 8012a9e: 6bdb ldr r3, [r3, #60] @ 0x3c
  44367. 8012aa0: 429a cmp r2, r3
  44368. 8012aa2: d102 bne.n 8012aaa <prvIsQueueFull+0x1e>
  44369. {
  44370. xReturn = pdTRUE;
  44371. 8012aa4: 2301 movs r3, #1
  44372. 8012aa6: 60fb str r3, [r7, #12]
  44373. 8012aa8: e001 b.n 8012aae <prvIsQueueFull+0x22>
  44374. }
  44375. else
  44376. {
  44377. xReturn = pdFALSE;
  44378. 8012aaa: 2300 movs r3, #0
  44379. 8012aac: 60fb str r3, [r7, #12]
  44380. }
  44381. }
  44382. taskEXIT_CRITICAL();
  44383. 8012aae: f002 fc65 bl 801537c <vPortExitCritical>
  44384. return xReturn;
  44385. 8012ab2: 68fb ldr r3, [r7, #12]
  44386. }
  44387. 8012ab4: 4618 mov r0, r3
  44388. 8012ab6: 3710 adds r7, #16
  44389. 8012ab8: 46bd mov sp, r7
  44390. 8012aba: bd80 pop {r7, pc}
  44391. 08012abc <vQueueAddToRegistry>:
  44392. /*-----------------------------------------------------------*/
  44393. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  44394. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  44395. {
  44396. 8012abc: b480 push {r7}
  44397. 8012abe: b085 sub sp, #20
  44398. 8012ac0: af00 add r7, sp, #0
  44399. 8012ac2: 6078 str r0, [r7, #4]
  44400. 8012ac4: 6039 str r1, [r7, #0]
  44401. UBaseType_t ux;
  44402. /* See if there is an empty space in the registry. A NULL name denotes
  44403. a free slot. */
  44404. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  44405. 8012ac6: 2300 movs r3, #0
  44406. 8012ac8: 60fb str r3, [r7, #12]
  44407. 8012aca: e014 b.n 8012af6 <vQueueAddToRegistry+0x3a>
  44408. {
  44409. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  44410. 8012acc: 4a0f ldr r2, [pc, #60] @ (8012b0c <vQueueAddToRegistry+0x50>)
  44411. 8012ace: 68fb ldr r3, [r7, #12]
  44412. 8012ad0: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  44413. 8012ad4: 2b00 cmp r3, #0
  44414. 8012ad6: d10b bne.n 8012af0 <vQueueAddToRegistry+0x34>
  44415. {
  44416. /* Store the information on this queue. */
  44417. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  44418. 8012ad8: 490c ldr r1, [pc, #48] @ (8012b0c <vQueueAddToRegistry+0x50>)
  44419. 8012ada: 68fb ldr r3, [r7, #12]
  44420. 8012adc: 683a ldr r2, [r7, #0]
  44421. 8012ade: f841 2033 str.w r2, [r1, r3, lsl #3]
  44422. xQueueRegistry[ ux ].xHandle = xQueue;
  44423. 8012ae2: 4a0a ldr r2, [pc, #40] @ (8012b0c <vQueueAddToRegistry+0x50>)
  44424. 8012ae4: 68fb ldr r3, [r7, #12]
  44425. 8012ae6: 00db lsls r3, r3, #3
  44426. 8012ae8: 4413 add r3, r2
  44427. 8012aea: 687a ldr r2, [r7, #4]
  44428. 8012aec: 605a str r2, [r3, #4]
  44429. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  44430. break;
  44431. 8012aee: e006 b.n 8012afe <vQueueAddToRegistry+0x42>
  44432. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  44433. 8012af0: 68fb ldr r3, [r7, #12]
  44434. 8012af2: 3301 adds r3, #1
  44435. 8012af4: 60fb str r3, [r7, #12]
  44436. 8012af6: 68fb ldr r3, [r7, #12]
  44437. 8012af8: 2b07 cmp r3, #7
  44438. 8012afa: d9e7 bls.n 8012acc <vQueueAddToRegistry+0x10>
  44439. else
  44440. {
  44441. mtCOVERAGE_TEST_MARKER();
  44442. }
  44443. }
  44444. }
  44445. 8012afc: bf00 nop
  44446. 8012afe: bf00 nop
  44447. 8012b00: 3714 adds r7, #20
  44448. 8012b02: 46bd mov sp, r7
  44449. 8012b04: f85d 7b04 ldr.w r7, [sp], #4
  44450. 8012b08: 4770 bx lr
  44451. 8012b0a: bf00 nop
  44452. 8012b0c: 24003d20 .word 0x24003d20
  44453. 08012b10 <vQueueUnregisterQueue>:
  44454. /*-----------------------------------------------------------*/
  44455. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  44456. void vQueueUnregisterQueue( QueueHandle_t xQueue )
  44457. {
  44458. 8012b10: b480 push {r7}
  44459. 8012b12: b085 sub sp, #20
  44460. 8012b14: af00 add r7, sp, #0
  44461. 8012b16: 6078 str r0, [r7, #4]
  44462. UBaseType_t ux;
  44463. /* See if the handle of the queue being unregistered in actually in the
  44464. registry. */
  44465. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  44466. 8012b18: 2300 movs r3, #0
  44467. 8012b1a: 60fb str r3, [r7, #12]
  44468. 8012b1c: e016 b.n 8012b4c <vQueueUnregisterQueue+0x3c>
  44469. {
  44470. if( xQueueRegistry[ ux ].xHandle == xQueue )
  44471. 8012b1e: 4a10 ldr r2, [pc, #64] @ (8012b60 <vQueueUnregisterQueue+0x50>)
  44472. 8012b20: 68fb ldr r3, [r7, #12]
  44473. 8012b22: 00db lsls r3, r3, #3
  44474. 8012b24: 4413 add r3, r2
  44475. 8012b26: 685b ldr r3, [r3, #4]
  44476. 8012b28: 687a ldr r2, [r7, #4]
  44477. 8012b2a: 429a cmp r2, r3
  44478. 8012b2c: d10b bne.n 8012b46 <vQueueUnregisterQueue+0x36>
  44479. {
  44480. /* Set the name to NULL to show that this slot if free again. */
  44481. xQueueRegistry[ ux ].pcQueueName = NULL;
  44482. 8012b2e: 4a0c ldr r2, [pc, #48] @ (8012b60 <vQueueUnregisterQueue+0x50>)
  44483. 8012b30: 68fb ldr r3, [r7, #12]
  44484. 8012b32: 2100 movs r1, #0
  44485. 8012b34: f842 1033 str.w r1, [r2, r3, lsl #3]
  44486. /* Set the handle to NULL to ensure the same queue handle cannot
  44487. appear in the registry twice if it is added, removed, then
  44488. added again. */
  44489. xQueueRegistry[ ux ].xHandle = ( QueueHandle_t ) 0;
  44490. 8012b38: 4a09 ldr r2, [pc, #36] @ (8012b60 <vQueueUnregisterQueue+0x50>)
  44491. 8012b3a: 68fb ldr r3, [r7, #12]
  44492. 8012b3c: 00db lsls r3, r3, #3
  44493. 8012b3e: 4413 add r3, r2
  44494. 8012b40: 2200 movs r2, #0
  44495. 8012b42: 605a str r2, [r3, #4]
  44496. break;
  44497. 8012b44: e006 b.n 8012b54 <vQueueUnregisterQueue+0x44>
  44498. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  44499. 8012b46: 68fb ldr r3, [r7, #12]
  44500. 8012b48: 3301 adds r3, #1
  44501. 8012b4a: 60fb str r3, [r7, #12]
  44502. 8012b4c: 68fb ldr r3, [r7, #12]
  44503. 8012b4e: 2b07 cmp r3, #7
  44504. 8012b50: d9e5 bls.n 8012b1e <vQueueUnregisterQueue+0xe>
  44505. {
  44506. mtCOVERAGE_TEST_MARKER();
  44507. }
  44508. }
  44509. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  44510. 8012b52: bf00 nop
  44511. 8012b54: bf00 nop
  44512. 8012b56: 3714 adds r7, #20
  44513. 8012b58: 46bd mov sp, r7
  44514. 8012b5a: f85d 7b04 ldr.w r7, [sp], #4
  44515. 8012b5e: 4770 bx lr
  44516. 8012b60: 24003d20 .word 0x24003d20
  44517. 08012b64 <vQueueWaitForMessageRestricted>:
  44518. /*-----------------------------------------------------------*/
  44519. #if ( configUSE_TIMERS == 1 )
  44520. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  44521. {
  44522. 8012b64: b580 push {r7, lr}
  44523. 8012b66: b086 sub sp, #24
  44524. 8012b68: af00 add r7, sp, #0
  44525. 8012b6a: 60f8 str r0, [r7, #12]
  44526. 8012b6c: 60b9 str r1, [r7, #8]
  44527. 8012b6e: 607a str r2, [r7, #4]
  44528. Queue_t * const pxQueue = xQueue;
  44529. 8012b70: 68fb ldr r3, [r7, #12]
  44530. 8012b72: 617b str r3, [r7, #20]
  44531. will not actually cause the task to block, just place it on a blocked
  44532. list. It will not block until the scheduler is unlocked - at which
  44533. time a yield will be performed. If an item is added to the queue while
  44534. the queue is locked, and the calling task blocks on the queue, then the
  44535. calling task will be immediately unblocked when the queue is unlocked. */
  44536. prvLockQueue( pxQueue );
  44537. 8012b74: f002 fbd0 bl 8015318 <vPortEnterCritical>
  44538. 8012b78: 697b ldr r3, [r7, #20]
  44539. 8012b7a: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  44540. 8012b7e: b25b sxtb r3, r3
  44541. 8012b80: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  44542. 8012b84: d103 bne.n 8012b8e <vQueueWaitForMessageRestricted+0x2a>
  44543. 8012b86: 697b ldr r3, [r7, #20]
  44544. 8012b88: 2200 movs r2, #0
  44545. 8012b8a: f883 2044 strb.w r2, [r3, #68] @ 0x44
  44546. 8012b8e: 697b ldr r3, [r7, #20]
  44547. 8012b90: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  44548. 8012b94: b25b sxtb r3, r3
  44549. 8012b96: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  44550. 8012b9a: d103 bne.n 8012ba4 <vQueueWaitForMessageRestricted+0x40>
  44551. 8012b9c: 697b ldr r3, [r7, #20]
  44552. 8012b9e: 2200 movs r2, #0
  44553. 8012ba0: f883 2045 strb.w r2, [r3, #69] @ 0x45
  44554. 8012ba4: f002 fbea bl 801537c <vPortExitCritical>
  44555. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  44556. 8012ba8: 697b ldr r3, [r7, #20]
  44557. 8012baa: 6b9b ldr r3, [r3, #56] @ 0x38
  44558. 8012bac: 2b00 cmp r3, #0
  44559. 8012bae: d106 bne.n 8012bbe <vQueueWaitForMessageRestricted+0x5a>
  44560. {
  44561. /* There is nothing in the queue, block for the specified period. */
  44562. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  44563. 8012bb0: 697b ldr r3, [r7, #20]
  44564. 8012bb2: 3324 adds r3, #36 @ 0x24
  44565. 8012bb4: 687a ldr r2, [r7, #4]
  44566. 8012bb6: 68b9 ldr r1, [r7, #8]
  44567. 8012bb8: 4618 mov r0, r3
  44568. 8012bba: f001 f825 bl 8013c08 <vTaskPlaceOnEventListRestricted>
  44569. }
  44570. else
  44571. {
  44572. mtCOVERAGE_TEST_MARKER();
  44573. }
  44574. prvUnlockQueue( pxQueue );
  44575. 8012bbe: 6978 ldr r0, [r7, #20]
  44576. 8012bc0: f7ff fefc bl 80129bc <prvUnlockQueue>
  44577. }
  44578. 8012bc4: bf00 nop
  44579. 8012bc6: 3718 adds r7, #24
  44580. 8012bc8: 46bd mov sp, r7
  44581. 8012bca: bd80 pop {r7, pc}
  44582. 08012bcc <xStreamBufferGenericCreate>:
  44583. /*-----------------------------------------------------------*/
  44584. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  44585. StreamBufferHandle_t xStreamBufferGenericCreate( size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer )
  44586. {
  44587. 8012bcc: b580 push {r7, lr}
  44588. 8012bce: b08c sub sp, #48 @ 0x30
  44589. 8012bd0: af02 add r7, sp, #8
  44590. 8012bd2: 60f8 str r0, [r7, #12]
  44591. 8012bd4: 60b9 str r1, [r7, #8]
  44592. 8012bd6: 607a str r2, [r7, #4]
  44593. /* In case the stream buffer is going to be used as a message buffer
  44594. (that is, it will hold discrete messages with a little meta data that
  44595. says how big the next message is) check the buffer will be large enough
  44596. to hold at least one message. */
  44597. if( xIsMessageBuffer == pdTRUE )
  44598. 8012bd8: 687b ldr r3, [r7, #4]
  44599. 8012bda: 2b01 cmp r3, #1
  44600. 8012bdc: d111 bne.n 8012c02 <xStreamBufferGenericCreate+0x36>
  44601. {
  44602. /* Is a message buffer but not statically allocated. */
  44603. ucFlags = sbFLAGS_IS_MESSAGE_BUFFER;
  44604. 8012bde: 2301 movs r3, #1
  44605. 8012be0: f887 3027 strb.w r3, [r7, #39] @ 0x27
  44606. configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );
  44607. 8012be4: 68fb ldr r3, [r7, #12]
  44608. 8012be6: 2b04 cmp r3, #4
  44609. 8012be8: d81d bhi.n 8012c26 <xStreamBufferGenericCreate+0x5a>
  44610. __asm volatile
  44611. 8012bea: f04f 0350 mov.w r3, #80 @ 0x50
  44612. 8012bee: f383 8811 msr BASEPRI, r3
  44613. 8012bf2: f3bf 8f6f isb sy
  44614. 8012bf6: f3bf 8f4f dsb sy
  44615. 8012bfa: 61fb str r3, [r7, #28]
  44616. }
  44617. 8012bfc: bf00 nop
  44618. 8012bfe: bf00 nop
  44619. 8012c00: e7fd b.n 8012bfe <xStreamBufferGenericCreate+0x32>
  44620. }
  44621. else
  44622. {
  44623. /* Not a message buffer and not statically allocated. */
  44624. ucFlags = 0;
  44625. 8012c02: 2300 movs r3, #0
  44626. 8012c04: f887 3027 strb.w r3, [r7, #39] @ 0x27
  44627. configASSERT( xBufferSizeBytes > 0 );
  44628. 8012c08: 68fb ldr r3, [r7, #12]
  44629. 8012c0a: 2b00 cmp r3, #0
  44630. 8012c0c: d10b bne.n 8012c26 <xStreamBufferGenericCreate+0x5a>
  44631. __asm volatile
  44632. 8012c0e: f04f 0350 mov.w r3, #80 @ 0x50
  44633. 8012c12: f383 8811 msr BASEPRI, r3
  44634. 8012c16: f3bf 8f6f isb sy
  44635. 8012c1a: f3bf 8f4f dsb sy
  44636. 8012c1e: 61bb str r3, [r7, #24]
  44637. }
  44638. 8012c20: bf00 nop
  44639. 8012c22: bf00 nop
  44640. 8012c24: e7fd b.n 8012c22 <xStreamBufferGenericCreate+0x56>
  44641. }
  44642. configASSERT( xTriggerLevelBytes <= xBufferSizeBytes );
  44643. 8012c26: 68ba ldr r2, [r7, #8]
  44644. 8012c28: 68fb ldr r3, [r7, #12]
  44645. 8012c2a: 429a cmp r2, r3
  44646. 8012c2c: d90b bls.n 8012c46 <xStreamBufferGenericCreate+0x7a>
  44647. __asm volatile
  44648. 8012c2e: f04f 0350 mov.w r3, #80 @ 0x50
  44649. 8012c32: f383 8811 msr BASEPRI, r3
  44650. 8012c36: f3bf 8f6f isb sy
  44651. 8012c3a: f3bf 8f4f dsb sy
  44652. 8012c3e: 617b str r3, [r7, #20]
  44653. }
  44654. 8012c40: bf00 nop
  44655. 8012c42: bf00 nop
  44656. 8012c44: e7fd b.n 8012c42 <xStreamBufferGenericCreate+0x76>
  44657. /* A trigger level of 0 would cause a waiting task to unblock even when
  44658. the buffer was empty. */
  44659. if( xTriggerLevelBytes == ( size_t ) 0 )
  44660. 8012c46: 68bb ldr r3, [r7, #8]
  44661. 8012c48: 2b00 cmp r3, #0
  44662. 8012c4a: d101 bne.n 8012c50 <xStreamBufferGenericCreate+0x84>
  44663. {
  44664. xTriggerLevelBytes = ( size_t ) 1;
  44665. 8012c4c: 2301 movs r3, #1
  44666. 8012c4e: 60bb str r3, [r7, #8]
  44667. and the buffer follows immediately after. The requested size is
  44668. incremented so the free space is returned as the user would expect -
  44669. this is a quirk of the implementation that means otherwise the free
  44670. space would be reported as one byte smaller than would be logically
  44671. expected. */
  44672. xBufferSizeBytes++;
  44673. 8012c50: 68fb ldr r3, [r7, #12]
  44674. 8012c52: 3301 adds r3, #1
  44675. 8012c54: 60fb str r3, [r7, #12]
  44676. pucAllocatedMemory = ( uint8_t * ) pvPortMalloc( xBufferSizeBytes + sizeof( StreamBuffer_t ) ); /*lint !e9079 malloc() only returns void*. */
  44677. 8012c56: 68fb ldr r3, [r7, #12]
  44678. 8012c58: 3324 adds r3, #36 @ 0x24
  44679. 8012c5a: 4618 mov r0, r3
  44680. 8012c5c: f002 fc7e bl 801555c <pvPortMalloc>
  44681. 8012c60: 6238 str r0, [r7, #32]
  44682. if( pucAllocatedMemory != NULL )
  44683. 8012c62: 6a3b ldr r3, [r7, #32]
  44684. 8012c64: 2b00 cmp r3, #0
  44685. 8012c66: d00a beq.n 8012c7e <xStreamBufferGenericCreate+0xb2>
  44686. {
  44687. 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. */
  44688. 8012c68: 6a3b ldr r3, [r7, #32]
  44689. 8012c6a: f103 0124 add.w r1, r3, #36 @ 0x24
  44690. 8012c6e: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  44691. 8012c72: 9300 str r3, [sp, #0]
  44692. 8012c74: 68bb ldr r3, [r7, #8]
  44693. 8012c76: 68fa ldr r2, [r7, #12]
  44694. 8012c78: 6a38 ldr r0, [r7, #32]
  44695. 8012c7a: f000 fb0b bl 8013294 <prvInitialiseNewStreamBuffer>
  44696. else
  44697. {
  44698. traceSTREAM_BUFFER_CREATE_FAILED( xIsMessageBuffer );
  44699. }
  44700. return ( StreamBufferHandle_t ) pucAllocatedMemory; /*lint !e9087 !e826 Safe cast as allocated memory is aligned. */
  44701. 8012c7e: 6a3b ldr r3, [r7, #32]
  44702. }
  44703. 8012c80: 4618 mov r0, r3
  44704. 8012c82: 3728 adds r7, #40 @ 0x28
  44705. 8012c84: 46bd mov sp, r7
  44706. 8012c86: bd80 pop {r7, pc}
  44707. 08012c88 <xStreamBufferSpacesAvailable>:
  44708. return xReturn;
  44709. }
  44710. /*-----------------------------------------------------------*/
  44711. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  44712. {
  44713. 8012c88: b480 push {r7}
  44714. 8012c8a: b087 sub sp, #28
  44715. 8012c8c: af00 add r7, sp, #0
  44716. 8012c8e: 6078 str r0, [r7, #4]
  44717. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  44718. 8012c90: 687b ldr r3, [r7, #4]
  44719. 8012c92: 613b str r3, [r7, #16]
  44720. size_t xSpace;
  44721. configASSERT( pxStreamBuffer );
  44722. 8012c94: 693b ldr r3, [r7, #16]
  44723. 8012c96: 2b00 cmp r3, #0
  44724. 8012c98: d10b bne.n 8012cb2 <xStreamBufferSpacesAvailable+0x2a>
  44725. __asm volatile
  44726. 8012c9a: f04f 0350 mov.w r3, #80 @ 0x50
  44727. 8012c9e: f383 8811 msr BASEPRI, r3
  44728. 8012ca2: f3bf 8f6f isb sy
  44729. 8012ca6: f3bf 8f4f dsb sy
  44730. 8012caa: 60fb str r3, [r7, #12]
  44731. }
  44732. 8012cac: bf00 nop
  44733. 8012cae: bf00 nop
  44734. 8012cb0: e7fd b.n 8012cae <xStreamBufferSpacesAvailable+0x26>
  44735. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  44736. 8012cb2: 693b ldr r3, [r7, #16]
  44737. 8012cb4: 689a ldr r2, [r3, #8]
  44738. 8012cb6: 693b ldr r3, [r7, #16]
  44739. 8012cb8: 681b ldr r3, [r3, #0]
  44740. 8012cba: 4413 add r3, r2
  44741. 8012cbc: 617b str r3, [r7, #20]
  44742. xSpace -= pxStreamBuffer->xHead;
  44743. 8012cbe: 693b ldr r3, [r7, #16]
  44744. 8012cc0: 685b ldr r3, [r3, #4]
  44745. 8012cc2: 697a ldr r2, [r7, #20]
  44746. 8012cc4: 1ad3 subs r3, r2, r3
  44747. 8012cc6: 617b str r3, [r7, #20]
  44748. xSpace -= ( size_t ) 1;
  44749. 8012cc8: 697b ldr r3, [r7, #20]
  44750. 8012cca: 3b01 subs r3, #1
  44751. 8012ccc: 617b str r3, [r7, #20]
  44752. if( xSpace >= pxStreamBuffer->xLength )
  44753. 8012cce: 693b ldr r3, [r7, #16]
  44754. 8012cd0: 689b ldr r3, [r3, #8]
  44755. 8012cd2: 697a ldr r2, [r7, #20]
  44756. 8012cd4: 429a cmp r2, r3
  44757. 8012cd6: d304 bcc.n 8012ce2 <xStreamBufferSpacesAvailable+0x5a>
  44758. {
  44759. xSpace -= pxStreamBuffer->xLength;
  44760. 8012cd8: 693b ldr r3, [r7, #16]
  44761. 8012cda: 689b ldr r3, [r3, #8]
  44762. 8012cdc: 697a ldr r2, [r7, #20]
  44763. 8012cde: 1ad3 subs r3, r2, r3
  44764. 8012ce0: 617b str r3, [r7, #20]
  44765. else
  44766. {
  44767. mtCOVERAGE_TEST_MARKER();
  44768. }
  44769. return xSpace;
  44770. 8012ce2: 697b ldr r3, [r7, #20]
  44771. }
  44772. 8012ce4: 4618 mov r0, r3
  44773. 8012ce6: 371c adds r7, #28
  44774. 8012ce8: 46bd mov sp, r7
  44775. 8012cea: f85d 7b04 ldr.w r7, [sp], #4
  44776. 8012cee: 4770 bx lr
  44777. 08012cf0 <xStreamBufferSend>:
  44778. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  44779. const void *pvTxData,
  44780. size_t xDataLengthBytes,
  44781. TickType_t xTicksToWait )
  44782. {
  44783. 8012cf0: b580 push {r7, lr}
  44784. 8012cf2: b090 sub sp, #64 @ 0x40
  44785. 8012cf4: af02 add r7, sp, #8
  44786. 8012cf6: 60f8 str r0, [r7, #12]
  44787. 8012cf8: 60b9 str r1, [r7, #8]
  44788. 8012cfa: 607a str r2, [r7, #4]
  44789. 8012cfc: 603b str r3, [r7, #0]
  44790. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  44791. 8012cfe: 68fb ldr r3, [r7, #12]
  44792. 8012d00: 62fb str r3, [r7, #44] @ 0x2c
  44793. size_t xReturn, xSpace = 0;
  44794. 8012d02: 2300 movs r3, #0
  44795. 8012d04: 637b str r3, [r7, #52] @ 0x34
  44796. size_t xRequiredSpace = xDataLengthBytes;
  44797. 8012d06: 687b ldr r3, [r7, #4]
  44798. 8012d08: 633b str r3, [r7, #48] @ 0x30
  44799. TimeOut_t xTimeOut;
  44800. configASSERT( pvTxData );
  44801. 8012d0a: 68bb ldr r3, [r7, #8]
  44802. 8012d0c: 2b00 cmp r3, #0
  44803. 8012d0e: d10b bne.n 8012d28 <xStreamBufferSend+0x38>
  44804. __asm volatile
  44805. 8012d10: f04f 0350 mov.w r3, #80 @ 0x50
  44806. 8012d14: f383 8811 msr BASEPRI, r3
  44807. 8012d18: f3bf 8f6f isb sy
  44808. 8012d1c: f3bf 8f4f dsb sy
  44809. 8012d20: 627b str r3, [r7, #36] @ 0x24
  44810. }
  44811. 8012d22: bf00 nop
  44812. 8012d24: bf00 nop
  44813. 8012d26: e7fd b.n 8012d24 <xStreamBufferSend+0x34>
  44814. configASSERT( pxStreamBuffer );
  44815. 8012d28: 6afb ldr r3, [r7, #44] @ 0x2c
  44816. 8012d2a: 2b00 cmp r3, #0
  44817. 8012d2c: d10b bne.n 8012d46 <xStreamBufferSend+0x56>
  44818. __asm volatile
  44819. 8012d2e: f04f 0350 mov.w r3, #80 @ 0x50
  44820. 8012d32: f383 8811 msr BASEPRI, r3
  44821. 8012d36: f3bf 8f6f isb sy
  44822. 8012d3a: f3bf 8f4f dsb sy
  44823. 8012d3e: 623b str r3, [r7, #32]
  44824. }
  44825. 8012d40: bf00 nop
  44826. 8012d42: bf00 nop
  44827. 8012d44: e7fd b.n 8012d42 <xStreamBufferSend+0x52>
  44828. /* This send function is used to write to both message buffers and stream
  44829. buffers. If this is a message buffer then the space needed must be
  44830. increased by the amount of bytes needed to store the length of the
  44831. message. */
  44832. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  44833. 8012d46: 6afb ldr r3, [r7, #44] @ 0x2c
  44834. 8012d48: 7f1b ldrb r3, [r3, #28]
  44835. 8012d4a: f003 0301 and.w r3, r3, #1
  44836. 8012d4e: 2b00 cmp r3, #0
  44837. 8012d50: d012 beq.n 8012d78 <xStreamBufferSend+0x88>
  44838. {
  44839. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  44840. 8012d52: 6b3b ldr r3, [r7, #48] @ 0x30
  44841. 8012d54: 3304 adds r3, #4
  44842. 8012d56: 633b str r3, [r7, #48] @ 0x30
  44843. /* Overflow? */
  44844. configASSERT( xRequiredSpace > xDataLengthBytes );
  44845. 8012d58: 6b3a ldr r2, [r7, #48] @ 0x30
  44846. 8012d5a: 687b ldr r3, [r7, #4]
  44847. 8012d5c: 429a cmp r2, r3
  44848. 8012d5e: d80b bhi.n 8012d78 <xStreamBufferSend+0x88>
  44849. __asm volatile
  44850. 8012d60: f04f 0350 mov.w r3, #80 @ 0x50
  44851. 8012d64: f383 8811 msr BASEPRI, r3
  44852. 8012d68: f3bf 8f6f isb sy
  44853. 8012d6c: f3bf 8f4f dsb sy
  44854. 8012d70: 61fb str r3, [r7, #28]
  44855. }
  44856. 8012d72: bf00 nop
  44857. 8012d74: bf00 nop
  44858. 8012d76: e7fd b.n 8012d74 <xStreamBufferSend+0x84>
  44859. else
  44860. {
  44861. mtCOVERAGE_TEST_MARKER();
  44862. }
  44863. if( xTicksToWait != ( TickType_t ) 0 )
  44864. 8012d78: 683b ldr r3, [r7, #0]
  44865. 8012d7a: 2b00 cmp r3, #0
  44866. 8012d7c: d03f beq.n 8012dfe <xStreamBufferSend+0x10e>
  44867. {
  44868. vTaskSetTimeOutState( &xTimeOut );
  44869. 8012d7e: f107 0310 add.w r3, r7, #16
  44870. 8012d82: 4618 mov r0, r3
  44871. 8012d84: f000 ffd0 bl 8013d28 <vTaskSetTimeOutState>
  44872. do
  44873. {
  44874. /* Wait until the required number of bytes are free in the message
  44875. buffer. */
  44876. taskENTER_CRITICAL();
  44877. 8012d88: f002 fac6 bl 8015318 <vPortEnterCritical>
  44878. {
  44879. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  44880. 8012d8c: 6af8 ldr r0, [r7, #44] @ 0x2c
  44881. 8012d8e: f7ff ff7b bl 8012c88 <xStreamBufferSpacesAvailable>
  44882. 8012d92: 6378 str r0, [r7, #52] @ 0x34
  44883. if( xSpace < xRequiredSpace )
  44884. 8012d94: 6b7a ldr r2, [r7, #52] @ 0x34
  44885. 8012d96: 6b3b ldr r3, [r7, #48] @ 0x30
  44886. 8012d98: 429a cmp r2, r3
  44887. 8012d9a: d218 bcs.n 8012dce <xStreamBufferSend+0xde>
  44888. {
  44889. /* Clear notification state as going to wait for space. */
  44890. ( void ) xTaskNotifyStateClear( NULL );
  44891. 8012d9c: 2000 movs r0, #0
  44892. 8012d9e: f001 fcf3 bl 8014788 <xTaskNotifyStateClear>
  44893. /* Should only be one writer. */
  44894. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  44895. 8012da2: 6afb ldr r3, [r7, #44] @ 0x2c
  44896. 8012da4: 695b ldr r3, [r3, #20]
  44897. 8012da6: 2b00 cmp r3, #0
  44898. 8012da8: d00b beq.n 8012dc2 <xStreamBufferSend+0xd2>
  44899. __asm volatile
  44900. 8012daa: f04f 0350 mov.w r3, #80 @ 0x50
  44901. 8012dae: f383 8811 msr BASEPRI, r3
  44902. 8012db2: f3bf 8f6f isb sy
  44903. 8012db6: f3bf 8f4f dsb sy
  44904. 8012dba: 61bb str r3, [r7, #24]
  44905. }
  44906. 8012dbc: bf00 nop
  44907. 8012dbe: bf00 nop
  44908. 8012dc0: e7fd b.n 8012dbe <xStreamBufferSend+0xce>
  44909. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  44910. 8012dc2: f001 f93b bl 801403c <xTaskGetCurrentTaskHandle>
  44911. 8012dc6: 4602 mov r2, r0
  44912. 8012dc8: 6afb ldr r3, [r7, #44] @ 0x2c
  44913. 8012dca: 615a str r2, [r3, #20]
  44914. 8012dcc: e002 b.n 8012dd4 <xStreamBufferSend+0xe4>
  44915. }
  44916. else
  44917. {
  44918. taskEXIT_CRITICAL();
  44919. 8012dce: f002 fad5 bl 801537c <vPortExitCritical>
  44920. break;
  44921. 8012dd2: e014 b.n 8012dfe <xStreamBufferSend+0x10e>
  44922. }
  44923. }
  44924. taskEXIT_CRITICAL();
  44925. 8012dd4: f002 fad2 bl 801537c <vPortExitCritical>
  44926. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  44927. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  44928. 8012dd8: 683b ldr r3, [r7, #0]
  44929. 8012dda: 2200 movs r2, #0
  44930. 8012ddc: 2100 movs r1, #0
  44931. 8012dde: 2000 movs r0, #0
  44932. 8012de0: f001 faca bl 8014378 <xTaskNotifyWait>
  44933. pxStreamBuffer->xTaskWaitingToSend = NULL;
  44934. 8012de4: 6afb ldr r3, [r7, #44] @ 0x2c
  44935. 8012de6: 2200 movs r2, #0
  44936. 8012de8: 615a str r2, [r3, #20]
  44937. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  44938. 8012dea: 463a mov r2, r7
  44939. 8012dec: f107 0310 add.w r3, r7, #16
  44940. 8012df0: 4611 mov r1, r2
  44941. 8012df2: 4618 mov r0, r3
  44942. 8012df4: f000 ffd6 bl 8013da4 <xTaskCheckForTimeOut>
  44943. 8012df8: 4603 mov r3, r0
  44944. 8012dfa: 2b00 cmp r3, #0
  44945. 8012dfc: d0c4 beq.n 8012d88 <xStreamBufferSend+0x98>
  44946. else
  44947. {
  44948. mtCOVERAGE_TEST_MARKER();
  44949. }
  44950. if( xSpace == ( size_t ) 0 )
  44951. 8012dfe: 6b7b ldr r3, [r7, #52] @ 0x34
  44952. 8012e00: 2b00 cmp r3, #0
  44953. 8012e02: d103 bne.n 8012e0c <xStreamBufferSend+0x11c>
  44954. {
  44955. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  44956. 8012e04: 6af8 ldr r0, [r7, #44] @ 0x2c
  44957. 8012e06: f7ff ff3f bl 8012c88 <xStreamBufferSpacesAvailable>
  44958. 8012e0a: 6378 str r0, [r7, #52] @ 0x34
  44959. else
  44960. {
  44961. mtCOVERAGE_TEST_MARKER();
  44962. }
  44963. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  44964. 8012e0c: 6b3b ldr r3, [r7, #48] @ 0x30
  44965. 8012e0e: 9300 str r3, [sp, #0]
  44966. 8012e10: 6b7b ldr r3, [r7, #52] @ 0x34
  44967. 8012e12: 687a ldr r2, [r7, #4]
  44968. 8012e14: 68b9 ldr r1, [r7, #8]
  44969. 8012e16: 6af8 ldr r0, [r7, #44] @ 0x2c
  44970. 8012e18: f000 f823 bl 8012e62 <prvWriteMessageToBuffer>
  44971. 8012e1c: 62b8 str r0, [r7, #40] @ 0x28
  44972. if( xReturn > ( size_t ) 0 )
  44973. 8012e1e: 6abb ldr r3, [r7, #40] @ 0x28
  44974. 8012e20: 2b00 cmp r3, #0
  44975. 8012e22: d019 beq.n 8012e58 <xStreamBufferSend+0x168>
  44976. {
  44977. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  44978. /* Was a task waiting for the data? */
  44979. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  44980. 8012e24: 6af8 ldr r0, [r7, #44] @ 0x2c
  44981. 8012e26: f000 fa15 bl 8013254 <prvBytesInBuffer>
  44982. 8012e2a: 4602 mov r2, r0
  44983. 8012e2c: 6afb ldr r3, [r7, #44] @ 0x2c
  44984. 8012e2e: 68db ldr r3, [r3, #12]
  44985. 8012e30: 429a cmp r2, r3
  44986. 8012e32: d311 bcc.n 8012e58 <xStreamBufferSend+0x168>
  44987. {
  44988. sbSEND_COMPLETED( pxStreamBuffer );
  44989. 8012e34: f000 fcc6 bl 80137c4 <vTaskSuspendAll>
  44990. 8012e38: 6afb ldr r3, [r7, #44] @ 0x2c
  44991. 8012e3a: 691b ldr r3, [r3, #16]
  44992. 8012e3c: 2b00 cmp r3, #0
  44993. 8012e3e: d009 beq.n 8012e54 <xStreamBufferSend+0x164>
  44994. 8012e40: 6afb ldr r3, [r7, #44] @ 0x2c
  44995. 8012e42: 6918 ldr r0, [r3, #16]
  44996. 8012e44: 2300 movs r3, #0
  44997. 8012e46: 2200 movs r2, #0
  44998. 8012e48: 2100 movs r1, #0
  44999. 8012e4a: f001 faf5 bl 8014438 <xTaskGenericNotify>
  45000. 8012e4e: 6afb ldr r3, [r7, #44] @ 0x2c
  45001. 8012e50: 2200 movs r2, #0
  45002. 8012e52: 611a str r2, [r3, #16]
  45003. 8012e54: f000 fcc4 bl 80137e0 <xTaskResumeAll>
  45004. {
  45005. mtCOVERAGE_TEST_MARKER();
  45006. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  45007. }
  45008. return xReturn;
  45009. 8012e58: 6abb ldr r3, [r7, #40] @ 0x28
  45010. }
  45011. 8012e5a: 4618 mov r0, r3
  45012. 8012e5c: 3738 adds r7, #56 @ 0x38
  45013. 8012e5e: 46bd mov sp, r7
  45014. 8012e60: bd80 pop {r7, pc}
  45015. 08012e62 <prvWriteMessageToBuffer>:
  45016. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  45017. const void * pvTxData,
  45018. size_t xDataLengthBytes,
  45019. size_t xSpace,
  45020. size_t xRequiredSpace )
  45021. {
  45022. 8012e62: b580 push {r7, lr}
  45023. 8012e64: b086 sub sp, #24
  45024. 8012e66: af00 add r7, sp, #0
  45025. 8012e68: 60f8 str r0, [r7, #12]
  45026. 8012e6a: 60b9 str r1, [r7, #8]
  45027. 8012e6c: 607a str r2, [r7, #4]
  45028. 8012e6e: 603b str r3, [r7, #0]
  45029. BaseType_t xShouldWrite;
  45030. size_t xReturn;
  45031. if( xSpace == ( size_t ) 0 )
  45032. 8012e70: 683b ldr r3, [r7, #0]
  45033. 8012e72: 2b00 cmp r3, #0
  45034. 8012e74: d102 bne.n 8012e7c <prvWriteMessageToBuffer+0x1a>
  45035. {
  45036. /* Doesn't matter if this is a stream buffer or a message buffer, there
  45037. is no space to write. */
  45038. xShouldWrite = pdFALSE;
  45039. 8012e76: 2300 movs r3, #0
  45040. 8012e78: 617b str r3, [r7, #20]
  45041. 8012e7a: e01d b.n 8012eb8 <prvWriteMessageToBuffer+0x56>
  45042. }
  45043. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  45044. 8012e7c: 68fb ldr r3, [r7, #12]
  45045. 8012e7e: 7f1b ldrb r3, [r3, #28]
  45046. 8012e80: f003 0301 and.w r3, r3, #1
  45047. 8012e84: 2b00 cmp r3, #0
  45048. 8012e86: d108 bne.n 8012e9a <prvWriteMessageToBuffer+0x38>
  45049. {
  45050. /* This is a stream buffer, as opposed to a message buffer, so writing a
  45051. stream of bytes rather than discrete messages. Write as many bytes as
  45052. possible. */
  45053. xShouldWrite = pdTRUE;
  45054. 8012e88: 2301 movs r3, #1
  45055. 8012e8a: 617b str r3, [r7, #20]
  45056. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  45057. 8012e8c: 687a ldr r2, [r7, #4]
  45058. 8012e8e: 683b ldr r3, [r7, #0]
  45059. 8012e90: 4293 cmp r3, r2
  45060. 8012e92: bf28 it cs
  45061. 8012e94: 4613 movcs r3, r2
  45062. 8012e96: 607b str r3, [r7, #4]
  45063. 8012e98: e00e b.n 8012eb8 <prvWriteMessageToBuffer+0x56>
  45064. }
  45065. else if( xSpace >= xRequiredSpace )
  45066. 8012e9a: 683a ldr r2, [r7, #0]
  45067. 8012e9c: 6a3b ldr r3, [r7, #32]
  45068. 8012e9e: 429a cmp r2, r3
  45069. 8012ea0: d308 bcc.n 8012eb4 <prvWriteMessageToBuffer+0x52>
  45070. {
  45071. /* This is a message buffer, as opposed to a stream buffer, and there
  45072. is enough space to write both the message length and the message itself
  45073. into the buffer. Start by writing the length of the data, the data
  45074. itself will be written later in this function. */
  45075. xShouldWrite = pdTRUE;
  45076. 8012ea2: 2301 movs r3, #1
  45077. 8012ea4: 617b str r3, [r7, #20]
  45078. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  45079. 8012ea6: 1d3b adds r3, r7, #4
  45080. 8012ea8: 2204 movs r2, #4
  45081. 8012eaa: 4619 mov r1, r3
  45082. 8012eac: 68f8 ldr r0, [r7, #12]
  45083. 8012eae: f000 f8df bl 8013070 <prvWriteBytesToBuffer>
  45084. 8012eb2: e001 b.n 8012eb8 <prvWriteMessageToBuffer+0x56>
  45085. }
  45086. else
  45087. {
  45088. /* There is space available, but not enough space. */
  45089. xShouldWrite = pdFALSE;
  45090. 8012eb4: 2300 movs r3, #0
  45091. 8012eb6: 617b str r3, [r7, #20]
  45092. }
  45093. if( xShouldWrite != pdFALSE )
  45094. 8012eb8: 697b ldr r3, [r7, #20]
  45095. 8012eba: 2b00 cmp r3, #0
  45096. 8012ebc: d007 beq.n 8012ece <prvWriteMessageToBuffer+0x6c>
  45097. {
  45098. /* Writes the data itself. */
  45099. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  45100. 8012ebe: 687b ldr r3, [r7, #4]
  45101. 8012ec0: 461a mov r2, r3
  45102. 8012ec2: 68b9 ldr r1, [r7, #8]
  45103. 8012ec4: 68f8 ldr r0, [r7, #12]
  45104. 8012ec6: f000 f8d3 bl 8013070 <prvWriteBytesToBuffer>
  45105. 8012eca: 6138 str r0, [r7, #16]
  45106. 8012ecc: e001 b.n 8012ed2 <prvWriteMessageToBuffer+0x70>
  45107. }
  45108. else
  45109. {
  45110. xReturn = 0;
  45111. 8012ece: 2300 movs r3, #0
  45112. 8012ed0: 613b str r3, [r7, #16]
  45113. }
  45114. return xReturn;
  45115. 8012ed2: 693b ldr r3, [r7, #16]
  45116. }
  45117. 8012ed4: 4618 mov r0, r3
  45118. 8012ed6: 3718 adds r7, #24
  45119. 8012ed8: 46bd mov sp, r7
  45120. 8012eda: bd80 pop {r7, pc}
  45121. 08012edc <xStreamBufferReceive>:
  45122. size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
  45123. void *pvRxData,
  45124. size_t xBufferLengthBytes,
  45125. TickType_t xTicksToWait )
  45126. {
  45127. 8012edc: b580 push {r7, lr}
  45128. 8012ede: b08e sub sp, #56 @ 0x38
  45129. 8012ee0: af02 add r7, sp, #8
  45130. 8012ee2: 60f8 str r0, [r7, #12]
  45131. 8012ee4: 60b9 str r1, [r7, #8]
  45132. 8012ee6: 607a str r2, [r7, #4]
  45133. 8012ee8: 603b str r3, [r7, #0]
  45134. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  45135. 8012eea: 68fb ldr r3, [r7, #12]
  45136. 8012eec: 623b str r3, [r7, #32]
  45137. size_t xReceivedLength = 0, xBytesAvailable, xBytesToStoreMessageLength;
  45138. 8012eee: 2300 movs r3, #0
  45139. 8012ef0: 62fb str r3, [r7, #44] @ 0x2c
  45140. configASSERT( pvRxData );
  45141. 8012ef2: 68bb ldr r3, [r7, #8]
  45142. 8012ef4: 2b00 cmp r3, #0
  45143. 8012ef6: d10b bne.n 8012f10 <xStreamBufferReceive+0x34>
  45144. __asm volatile
  45145. 8012ef8: f04f 0350 mov.w r3, #80 @ 0x50
  45146. 8012efc: f383 8811 msr BASEPRI, r3
  45147. 8012f00: f3bf 8f6f isb sy
  45148. 8012f04: f3bf 8f4f dsb sy
  45149. 8012f08: 61fb str r3, [r7, #28]
  45150. }
  45151. 8012f0a: bf00 nop
  45152. 8012f0c: bf00 nop
  45153. 8012f0e: e7fd b.n 8012f0c <xStreamBufferReceive+0x30>
  45154. configASSERT( pxStreamBuffer );
  45155. 8012f10: 6a3b ldr r3, [r7, #32]
  45156. 8012f12: 2b00 cmp r3, #0
  45157. 8012f14: d10b bne.n 8012f2e <xStreamBufferReceive+0x52>
  45158. __asm volatile
  45159. 8012f16: f04f 0350 mov.w r3, #80 @ 0x50
  45160. 8012f1a: f383 8811 msr BASEPRI, r3
  45161. 8012f1e: f3bf 8f6f isb sy
  45162. 8012f22: f3bf 8f4f dsb sy
  45163. 8012f26: 61bb str r3, [r7, #24]
  45164. }
  45165. 8012f28: bf00 nop
  45166. 8012f2a: bf00 nop
  45167. 8012f2c: e7fd b.n 8012f2a <xStreamBufferReceive+0x4e>
  45168. /* This receive function is used by both message buffers, which store
  45169. discrete messages, and stream buffers, which store a continuous stream of
  45170. bytes. Discrete messages include an additional
  45171. sbBYTES_TO_STORE_MESSAGE_LENGTH bytes that hold the length of the
  45172. message. */
  45173. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  45174. 8012f2e: 6a3b ldr r3, [r7, #32]
  45175. 8012f30: 7f1b ldrb r3, [r3, #28]
  45176. 8012f32: f003 0301 and.w r3, r3, #1
  45177. 8012f36: 2b00 cmp r3, #0
  45178. 8012f38: d002 beq.n 8012f40 <xStreamBufferReceive+0x64>
  45179. {
  45180. xBytesToStoreMessageLength = sbBYTES_TO_STORE_MESSAGE_LENGTH;
  45181. 8012f3a: 2304 movs r3, #4
  45182. 8012f3c: 627b str r3, [r7, #36] @ 0x24
  45183. 8012f3e: e001 b.n 8012f44 <xStreamBufferReceive+0x68>
  45184. }
  45185. else
  45186. {
  45187. xBytesToStoreMessageLength = 0;
  45188. 8012f40: 2300 movs r3, #0
  45189. 8012f42: 627b str r3, [r7, #36] @ 0x24
  45190. }
  45191. if( xTicksToWait != ( TickType_t ) 0 )
  45192. 8012f44: 683b ldr r3, [r7, #0]
  45193. 8012f46: 2b00 cmp r3, #0
  45194. 8012f48: d035 beq.n 8012fb6 <xStreamBufferReceive+0xda>
  45195. {
  45196. /* Checking if there is data and clearing the notification state must be
  45197. performed atomically. */
  45198. taskENTER_CRITICAL();
  45199. 8012f4a: f002 f9e5 bl 8015318 <vPortEnterCritical>
  45200. {
  45201. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  45202. 8012f4e: 6a38 ldr r0, [r7, #32]
  45203. 8012f50: f000 f980 bl 8013254 <prvBytesInBuffer>
  45204. 8012f54: 62b8 str r0, [r7, #40] @ 0x28
  45205. /* If this function was invoked by a message buffer read then
  45206. xBytesToStoreMessageLength holds the number of bytes used to hold
  45207. the length of the next discrete message. If this function was
  45208. invoked by a stream buffer read then xBytesToStoreMessageLength will
  45209. be 0. */
  45210. if( xBytesAvailable <= xBytesToStoreMessageLength )
  45211. 8012f56: 6aba ldr r2, [r7, #40] @ 0x28
  45212. 8012f58: 6a7b ldr r3, [r7, #36] @ 0x24
  45213. 8012f5a: 429a cmp r2, r3
  45214. 8012f5c: d817 bhi.n 8012f8e <xStreamBufferReceive+0xb2>
  45215. {
  45216. /* Clear notification state as going to wait for data. */
  45217. ( void ) xTaskNotifyStateClear( NULL );
  45218. 8012f5e: 2000 movs r0, #0
  45219. 8012f60: f001 fc12 bl 8014788 <xTaskNotifyStateClear>
  45220. /* Should only be one reader. */
  45221. configASSERT( pxStreamBuffer->xTaskWaitingToReceive == NULL );
  45222. 8012f64: 6a3b ldr r3, [r7, #32]
  45223. 8012f66: 691b ldr r3, [r3, #16]
  45224. 8012f68: 2b00 cmp r3, #0
  45225. 8012f6a: d00b beq.n 8012f84 <xStreamBufferReceive+0xa8>
  45226. __asm volatile
  45227. 8012f6c: f04f 0350 mov.w r3, #80 @ 0x50
  45228. 8012f70: f383 8811 msr BASEPRI, r3
  45229. 8012f74: f3bf 8f6f isb sy
  45230. 8012f78: f3bf 8f4f dsb sy
  45231. 8012f7c: 617b str r3, [r7, #20]
  45232. }
  45233. 8012f7e: bf00 nop
  45234. 8012f80: bf00 nop
  45235. 8012f82: e7fd b.n 8012f80 <xStreamBufferReceive+0xa4>
  45236. pxStreamBuffer->xTaskWaitingToReceive = xTaskGetCurrentTaskHandle();
  45237. 8012f84: f001 f85a bl 801403c <xTaskGetCurrentTaskHandle>
  45238. 8012f88: 4602 mov r2, r0
  45239. 8012f8a: 6a3b ldr r3, [r7, #32]
  45240. 8012f8c: 611a str r2, [r3, #16]
  45241. else
  45242. {
  45243. mtCOVERAGE_TEST_MARKER();
  45244. }
  45245. }
  45246. taskEXIT_CRITICAL();
  45247. 8012f8e: f002 f9f5 bl 801537c <vPortExitCritical>
  45248. if( xBytesAvailable <= xBytesToStoreMessageLength )
  45249. 8012f92: 6aba ldr r2, [r7, #40] @ 0x28
  45250. 8012f94: 6a7b ldr r3, [r7, #36] @ 0x24
  45251. 8012f96: 429a cmp r2, r3
  45252. 8012f98: d811 bhi.n 8012fbe <xStreamBufferReceive+0xe2>
  45253. {
  45254. /* Wait for data to be available. */
  45255. traceBLOCKING_ON_STREAM_BUFFER_RECEIVE( xStreamBuffer );
  45256. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  45257. 8012f9a: 683b ldr r3, [r7, #0]
  45258. 8012f9c: 2200 movs r2, #0
  45259. 8012f9e: 2100 movs r1, #0
  45260. 8012fa0: 2000 movs r0, #0
  45261. 8012fa2: f001 f9e9 bl 8014378 <xTaskNotifyWait>
  45262. pxStreamBuffer->xTaskWaitingToReceive = NULL;
  45263. 8012fa6: 6a3b ldr r3, [r7, #32]
  45264. 8012fa8: 2200 movs r2, #0
  45265. 8012faa: 611a str r2, [r3, #16]
  45266. /* Recheck the data available after blocking. */
  45267. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  45268. 8012fac: 6a38 ldr r0, [r7, #32]
  45269. 8012fae: f000 f951 bl 8013254 <prvBytesInBuffer>
  45270. 8012fb2: 62b8 str r0, [r7, #40] @ 0x28
  45271. 8012fb4: e003 b.n 8012fbe <xStreamBufferReceive+0xe2>
  45272. mtCOVERAGE_TEST_MARKER();
  45273. }
  45274. }
  45275. else
  45276. {
  45277. xBytesAvailable = prvBytesInBuffer( pxStreamBuffer );
  45278. 8012fb6: 6a38 ldr r0, [r7, #32]
  45279. 8012fb8: f000 f94c bl 8013254 <prvBytesInBuffer>
  45280. 8012fbc: 62b8 str r0, [r7, #40] @ 0x28
  45281. /* Whether receiving a discrete message (where xBytesToStoreMessageLength
  45282. holds the number of bytes used to store the message length) or a stream of
  45283. bytes (where xBytesToStoreMessageLength is zero), the number of bytes
  45284. available must be greater than xBytesToStoreMessageLength to be able to
  45285. read bytes from the buffer. */
  45286. if( xBytesAvailable > xBytesToStoreMessageLength )
  45287. 8012fbe: 6aba ldr r2, [r7, #40] @ 0x28
  45288. 8012fc0: 6a7b ldr r3, [r7, #36] @ 0x24
  45289. 8012fc2: 429a cmp r2, r3
  45290. 8012fc4: d91d bls.n 8013002 <xStreamBufferReceive+0x126>
  45291. {
  45292. xReceivedLength = prvReadMessageFromBuffer( pxStreamBuffer, pvRxData, xBufferLengthBytes, xBytesAvailable, xBytesToStoreMessageLength );
  45293. 8012fc6: 6a7b ldr r3, [r7, #36] @ 0x24
  45294. 8012fc8: 9300 str r3, [sp, #0]
  45295. 8012fca: 6abb ldr r3, [r7, #40] @ 0x28
  45296. 8012fcc: 687a ldr r2, [r7, #4]
  45297. 8012fce: 68b9 ldr r1, [r7, #8]
  45298. 8012fd0: 6a38 ldr r0, [r7, #32]
  45299. 8012fd2: f000 f81b bl 801300c <prvReadMessageFromBuffer>
  45300. 8012fd6: 62f8 str r0, [r7, #44] @ 0x2c
  45301. /* Was a task waiting for space in the buffer? */
  45302. if( xReceivedLength != ( size_t ) 0 )
  45303. 8012fd8: 6afb ldr r3, [r7, #44] @ 0x2c
  45304. 8012fda: 2b00 cmp r3, #0
  45305. 8012fdc: d011 beq.n 8013002 <xStreamBufferReceive+0x126>
  45306. {
  45307. traceSTREAM_BUFFER_RECEIVE( xStreamBuffer, xReceivedLength );
  45308. sbRECEIVE_COMPLETED( pxStreamBuffer );
  45309. 8012fde: f000 fbf1 bl 80137c4 <vTaskSuspendAll>
  45310. 8012fe2: 6a3b ldr r3, [r7, #32]
  45311. 8012fe4: 695b ldr r3, [r3, #20]
  45312. 8012fe6: 2b00 cmp r3, #0
  45313. 8012fe8: d009 beq.n 8012ffe <xStreamBufferReceive+0x122>
  45314. 8012fea: 6a3b ldr r3, [r7, #32]
  45315. 8012fec: 6958 ldr r0, [r3, #20]
  45316. 8012fee: 2300 movs r3, #0
  45317. 8012ff0: 2200 movs r2, #0
  45318. 8012ff2: 2100 movs r1, #0
  45319. 8012ff4: f001 fa20 bl 8014438 <xTaskGenericNotify>
  45320. 8012ff8: 6a3b ldr r3, [r7, #32]
  45321. 8012ffa: 2200 movs r2, #0
  45322. 8012ffc: 615a str r2, [r3, #20]
  45323. 8012ffe: f000 fbef bl 80137e0 <xTaskResumeAll>
  45324. {
  45325. traceSTREAM_BUFFER_RECEIVE_FAILED( xStreamBuffer );
  45326. mtCOVERAGE_TEST_MARKER();
  45327. }
  45328. return xReceivedLength;
  45329. 8013002: 6afb ldr r3, [r7, #44] @ 0x2c
  45330. }
  45331. 8013004: 4618 mov r0, r3
  45332. 8013006: 3730 adds r7, #48 @ 0x30
  45333. 8013008: 46bd mov sp, r7
  45334. 801300a: bd80 pop {r7, pc}
  45335. 0801300c <prvReadMessageFromBuffer>:
  45336. static size_t prvReadMessageFromBuffer( StreamBuffer_t *pxStreamBuffer,
  45337. void *pvRxData,
  45338. size_t xBufferLengthBytes,
  45339. size_t xBytesAvailable,
  45340. size_t xBytesToStoreMessageLength )
  45341. {
  45342. 801300c: b580 push {r7, lr}
  45343. 801300e: b088 sub sp, #32
  45344. 8013010: af00 add r7, sp, #0
  45345. 8013012: 60f8 str r0, [r7, #12]
  45346. 8013014: 60b9 str r1, [r7, #8]
  45347. 8013016: 607a str r2, [r7, #4]
  45348. 8013018: 603b str r3, [r7, #0]
  45349. size_t xOriginalTail, xReceivedLength, xNextMessageLength;
  45350. configMESSAGE_BUFFER_LENGTH_TYPE xTempNextMessageLength;
  45351. if( xBytesToStoreMessageLength != ( size_t ) 0 )
  45352. 801301a: 6abb ldr r3, [r7, #40] @ 0x28
  45353. 801301c: 2b00 cmp r3, #0
  45354. 801301e: d019 beq.n 8013054 <prvReadMessageFromBuffer+0x48>
  45355. {
  45356. /* A discrete message is being received. First receive the length
  45357. of the message. A copy of the tail is stored so the buffer can be
  45358. returned to its prior state if the length of the message is too
  45359. large for the provided buffer. */
  45360. xOriginalTail = pxStreamBuffer->xTail;
  45361. 8013020: 68fb ldr r3, [r7, #12]
  45362. 8013022: 681b ldr r3, [r3, #0]
  45363. 8013024: 61bb str r3, [r7, #24]
  45364. ( void ) prvReadBytesFromBuffer( pxStreamBuffer, ( uint8_t * ) &xTempNextMessageLength, xBytesToStoreMessageLength, xBytesAvailable );
  45365. 8013026: f107 0110 add.w r1, r7, #16
  45366. 801302a: 683b ldr r3, [r7, #0]
  45367. 801302c: 6aba ldr r2, [r7, #40] @ 0x28
  45368. 801302e: 68f8 ldr r0, [r7, #12]
  45369. 8013030: f000 f893 bl 801315a <prvReadBytesFromBuffer>
  45370. xNextMessageLength = ( size_t ) xTempNextMessageLength;
  45371. 8013034: 693b ldr r3, [r7, #16]
  45372. 8013036: 61fb str r3, [r7, #28]
  45373. /* Reduce the number of bytes available by the number of bytes just
  45374. read out. */
  45375. xBytesAvailable -= xBytesToStoreMessageLength;
  45376. 8013038: 683a ldr r2, [r7, #0]
  45377. 801303a: 6abb ldr r3, [r7, #40] @ 0x28
  45378. 801303c: 1ad3 subs r3, r2, r3
  45379. 801303e: 603b str r3, [r7, #0]
  45380. /* Check there is enough space in the buffer provided by the
  45381. user. */
  45382. if( xNextMessageLength > xBufferLengthBytes )
  45383. 8013040: 69fa ldr r2, [r7, #28]
  45384. 8013042: 687b ldr r3, [r7, #4]
  45385. 8013044: 429a cmp r2, r3
  45386. 8013046: d907 bls.n 8013058 <prvReadMessageFromBuffer+0x4c>
  45387. {
  45388. /* The user has provided insufficient space to read the message
  45389. so return the buffer to its previous state (so the length of
  45390. the message is in the buffer again). */
  45391. pxStreamBuffer->xTail = xOriginalTail;
  45392. 8013048: 68fb ldr r3, [r7, #12]
  45393. 801304a: 69ba ldr r2, [r7, #24]
  45394. 801304c: 601a str r2, [r3, #0]
  45395. xNextMessageLength = 0;
  45396. 801304e: 2300 movs r3, #0
  45397. 8013050: 61fb str r3, [r7, #28]
  45398. 8013052: e001 b.n 8013058 <prvReadMessageFromBuffer+0x4c>
  45399. }
  45400. else
  45401. {
  45402. /* A stream of bytes is being received (as opposed to a discrete
  45403. message), so read as many bytes as possible. */
  45404. xNextMessageLength = xBufferLengthBytes;
  45405. 8013054: 687b ldr r3, [r7, #4]
  45406. 8013056: 61fb str r3, [r7, #28]
  45407. }
  45408. /* Read the actual data. */
  45409. 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. */
  45410. 8013058: 683b ldr r3, [r7, #0]
  45411. 801305a: 69fa ldr r2, [r7, #28]
  45412. 801305c: 68b9 ldr r1, [r7, #8]
  45413. 801305e: 68f8 ldr r0, [r7, #12]
  45414. 8013060: f000 f87b bl 801315a <prvReadBytesFromBuffer>
  45415. 8013064: 6178 str r0, [r7, #20]
  45416. return xReceivedLength;
  45417. 8013066: 697b ldr r3, [r7, #20]
  45418. }
  45419. 8013068: 4618 mov r0, r3
  45420. 801306a: 3720 adds r7, #32
  45421. 801306c: 46bd mov sp, r7
  45422. 801306e: bd80 pop {r7, pc}
  45423. 08013070 <prvWriteBytesToBuffer>:
  45424. return xReturn;
  45425. }
  45426. /*-----------------------------------------------------------*/
  45427. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  45428. {
  45429. 8013070: b580 push {r7, lr}
  45430. 8013072: b08a sub sp, #40 @ 0x28
  45431. 8013074: af00 add r7, sp, #0
  45432. 8013076: 60f8 str r0, [r7, #12]
  45433. 8013078: 60b9 str r1, [r7, #8]
  45434. 801307a: 607a str r2, [r7, #4]
  45435. size_t xNextHead, xFirstLength;
  45436. configASSERT( xCount > ( size_t ) 0 );
  45437. 801307c: 687b ldr r3, [r7, #4]
  45438. 801307e: 2b00 cmp r3, #0
  45439. 8013080: d10b bne.n 801309a <prvWriteBytesToBuffer+0x2a>
  45440. __asm volatile
  45441. 8013082: f04f 0350 mov.w r3, #80 @ 0x50
  45442. 8013086: f383 8811 msr BASEPRI, r3
  45443. 801308a: f3bf 8f6f isb sy
  45444. 801308e: f3bf 8f4f dsb sy
  45445. 8013092: 61fb str r3, [r7, #28]
  45446. }
  45447. 8013094: bf00 nop
  45448. 8013096: bf00 nop
  45449. 8013098: e7fd b.n 8013096 <prvWriteBytesToBuffer+0x26>
  45450. xNextHead = pxStreamBuffer->xHead;
  45451. 801309a: 68fb ldr r3, [r7, #12]
  45452. 801309c: 685b ldr r3, [r3, #4]
  45453. 801309e: 627b str r3, [r7, #36] @ 0x24
  45454. /* Calculate the number of bytes that can be added in the first write -
  45455. which may be less than the total number of bytes that need to be added if
  45456. the buffer will wrap back to the beginning. */
  45457. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  45458. 80130a0: 68fb ldr r3, [r7, #12]
  45459. 80130a2: 689a ldr r2, [r3, #8]
  45460. 80130a4: 6a7b ldr r3, [r7, #36] @ 0x24
  45461. 80130a6: 1ad3 subs r3, r2, r3
  45462. 80130a8: 687a ldr r2, [r7, #4]
  45463. 80130aa: 4293 cmp r3, r2
  45464. 80130ac: bf28 it cs
  45465. 80130ae: 4613 movcs r3, r2
  45466. 80130b0: 623b str r3, [r7, #32]
  45467. /* Write as many bytes as can be written in the first write. */
  45468. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  45469. 80130b2: 6a7a ldr r2, [r7, #36] @ 0x24
  45470. 80130b4: 6a3b ldr r3, [r7, #32]
  45471. 80130b6: 441a add r2, r3
  45472. 80130b8: 68fb ldr r3, [r7, #12]
  45473. 80130ba: 689b ldr r3, [r3, #8]
  45474. 80130bc: 429a cmp r2, r3
  45475. 80130be: d90b bls.n 80130d8 <prvWriteBytesToBuffer+0x68>
  45476. __asm volatile
  45477. 80130c0: f04f 0350 mov.w r3, #80 @ 0x50
  45478. 80130c4: f383 8811 msr BASEPRI, r3
  45479. 80130c8: f3bf 8f6f isb sy
  45480. 80130cc: f3bf 8f4f dsb sy
  45481. 80130d0: 61bb str r3, [r7, #24]
  45482. }
  45483. 80130d2: bf00 nop
  45484. 80130d4: bf00 nop
  45485. 80130d6: e7fd b.n 80130d4 <prvWriteBytesToBuffer+0x64>
  45486. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  45487. 80130d8: 68fb ldr r3, [r7, #12]
  45488. 80130da: 699a ldr r2, [r3, #24]
  45489. 80130dc: 6a7b ldr r3, [r7, #36] @ 0x24
  45490. 80130de: 4413 add r3, r2
  45491. 80130e0: 6a3a ldr r2, [r7, #32]
  45492. 80130e2: 68b9 ldr r1, [r7, #8]
  45493. 80130e4: 4618 mov r0, r3
  45494. 80130e6: f017 faf2 bl 802a6ce <memcpy>
  45495. /* If the number of bytes written was less than the number that could be
  45496. written in the first write... */
  45497. if( xCount > xFirstLength )
  45498. 80130ea: 687a ldr r2, [r7, #4]
  45499. 80130ec: 6a3b ldr r3, [r7, #32]
  45500. 80130ee: 429a cmp r2, r3
  45501. 80130f0: d91d bls.n 801312e <prvWriteBytesToBuffer+0xbe>
  45502. {
  45503. /* ...then write the remaining bytes to the start of the buffer. */
  45504. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  45505. 80130f2: 687a ldr r2, [r7, #4]
  45506. 80130f4: 6a3b ldr r3, [r7, #32]
  45507. 80130f6: 1ad2 subs r2, r2, r3
  45508. 80130f8: 68fb ldr r3, [r7, #12]
  45509. 80130fa: 689b ldr r3, [r3, #8]
  45510. 80130fc: 429a cmp r2, r3
  45511. 80130fe: d90b bls.n 8013118 <prvWriteBytesToBuffer+0xa8>
  45512. __asm volatile
  45513. 8013100: f04f 0350 mov.w r3, #80 @ 0x50
  45514. 8013104: f383 8811 msr BASEPRI, r3
  45515. 8013108: f3bf 8f6f isb sy
  45516. 801310c: f3bf 8f4f dsb sy
  45517. 8013110: 617b str r3, [r7, #20]
  45518. }
  45519. 8013112: bf00 nop
  45520. 8013114: bf00 nop
  45521. 8013116: e7fd b.n 8013114 <prvWriteBytesToBuffer+0xa4>
  45522. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  45523. 8013118: 68fb ldr r3, [r7, #12]
  45524. 801311a: 6998 ldr r0, [r3, #24]
  45525. 801311c: 68ba ldr r2, [r7, #8]
  45526. 801311e: 6a3b ldr r3, [r7, #32]
  45527. 8013120: 18d1 adds r1, r2, r3
  45528. 8013122: 687a ldr r2, [r7, #4]
  45529. 8013124: 6a3b ldr r3, [r7, #32]
  45530. 8013126: 1ad3 subs r3, r2, r3
  45531. 8013128: 461a mov r2, r3
  45532. 801312a: f017 fad0 bl 802a6ce <memcpy>
  45533. else
  45534. {
  45535. mtCOVERAGE_TEST_MARKER();
  45536. }
  45537. xNextHead += xCount;
  45538. 801312e: 6a7a ldr r2, [r7, #36] @ 0x24
  45539. 8013130: 687b ldr r3, [r7, #4]
  45540. 8013132: 4413 add r3, r2
  45541. 8013134: 627b str r3, [r7, #36] @ 0x24
  45542. if( xNextHead >= pxStreamBuffer->xLength )
  45543. 8013136: 68fb ldr r3, [r7, #12]
  45544. 8013138: 689b ldr r3, [r3, #8]
  45545. 801313a: 6a7a ldr r2, [r7, #36] @ 0x24
  45546. 801313c: 429a cmp r2, r3
  45547. 801313e: d304 bcc.n 801314a <prvWriteBytesToBuffer+0xda>
  45548. {
  45549. xNextHead -= pxStreamBuffer->xLength;
  45550. 8013140: 68fb ldr r3, [r7, #12]
  45551. 8013142: 689b ldr r3, [r3, #8]
  45552. 8013144: 6a7a ldr r2, [r7, #36] @ 0x24
  45553. 8013146: 1ad3 subs r3, r2, r3
  45554. 8013148: 627b str r3, [r7, #36] @ 0x24
  45555. else
  45556. {
  45557. mtCOVERAGE_TEST_MARKER();
  45558. }
  45559. pxStreamBuffer->xHead = xNextHead;
  45560. 801314a: 68fb ldr r3, [r7, #12]
  45561. 801314c: 6a7a ldr r2, [r7, #36] @ 0x24
  45562. 801314e: 605a str r2, [r3, #4]
  45563. return xCount;
  45564. 8013150: 687b ldr r3, [r7, #4]
  45565. }
  45566. 8013152: 4618 mov r0, r3
  45567. 8013154: 3728 adds r7, #40 @ 0x28
  45568. 8013156: 46bd mov sp, r7
  45569. 8013158: bd80 pop {r7, pc}
  45570. 0801315a <prvReadBytesFromBuffer>:
  45571. /*-----------------------------------------------------------*/
  45572. static size_t prvReadBytesFromBuffer( StreamBuffer_t *pxStreamBuffer, uint8_t *pucData, size_t xMaxCount, size_t xBytesAvailable )
  45573. {
  45574. 801315a: b580 push {r7, lr}
  45575. 801315c: b08a sub sp, #40 @ 0x28
  45576. 801315e: af00 add r7, sp, #0
  45577. 8013160: 60f8 str r0, [r7, #12]
  45578. 8013162: 60b9 str r1, [r7, #8]
  45579. 8013164: 607a str r2, [r7, #4]
  45580. 8013166: 603b str r3, [r7, #0]
  45581. size_t xCount, xFirstLength, xNextTail;
  45582. /* Use the minimum of the wanted bytes and the available bytes. */
  45583. xCount = configMIN( xBytesAvailable, xMaxCount );
  45584. 8013168: 687a ldr r2, [r7, #4]
  45585. 801316a: 683b ldr r3, [r7, #0]
  45586. 801316c: 4293 cmp r3, r2
  45587. 801316e: bf28 it cs
  45588. 8013170: 4613 movcs r3, r2
  45589. 8013172: 623b str r3, [r7, #32]
  45590. if( xCount > ( size_t ) 0 )
  45591. 8013174: 6a3b ldr r3, [r7, #32]
  45592. 8013176: 2b00 cmp r3, #0
  45593. 8013178: d067 beq.n 801324a <prvReadBytesFromBuffer+0xf0>
  45594. {
  45595. xNextTail = pxStreamBuffer->xTail;
  45596. 801317a: 68fb ldr r3, [r7, #12]
  45597. 801317c: 681b ldr r3, [r3, #0]
  45598. 801317e: 627b str r3, [r7, #36] @ 0x24
  45599. /* Calculate the number of bytes that can be read - which may be
  45600. less than the number wanted if the data wraps around to the start of
  45601. the buffer. */
  45602. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextTail, xCount );
  45603. 8013180: 68fb ldr r3, [r7, #12]
  45604. 8013182: 689a ldr r2, [r3, #8]
  45605. 8013184: 6a7b ldr r3, [r7, #36] @ 0x24
  45606. 8013186: 1ad3 subs r3, r2, r3
  45607. 8013188: 6a3a ldr r2, [r7, #32]
  45608. 801318a: 4293 cmp r3, r2
  45609. 801318c: bf28 it cs
  45610. 801318e: 4613 movcs r3, r2
  45611. 8013190: 61fb str r3, [r7, #28]
  45612. /* Obtain the number of bytes it is possible to obtain in the first
  45613. read. Asserts check bounds of read and write. */
  45614. configASSERT( xFirstLength <= xMaxCount );
  45615. 8013192: 69fa ldr r2, [r7, #28]
  45616. 8013194: 687b ldr r3, [r7, #4]
  45617. 8013196: 429a cmp r2, r3
  45618. 8013198: d90b bls.n 80131b2 <prvReadBytesFromBuffer+0x58>
  45619. __asm volatile
  45620. 801319a: f04f 0350 mov.w r3, #80 @ 0x50
  45621. 801319e: f383 8811 msr BASEPRI, r3
  45622. 80131a2: f3bf 8f6f isb sy
  45623. 80131a6: f3bf 8f4f dsb sy
  45624. 80131aa: 61bb str r3, [r7, #24]
  45625. }
  45626. 80131ac: bf00 nop
  45627. 80131ae: bf00 nop
  45628. 80131b0: e7fd b.n 80131ae <prvReadBytesFromBuffer+0x54>
  45629. configASSERT( ( xNextTail + xFirstLength ) <= pxStreamBuffer->xLength );
  45630. 80131b2: 6a7a ldr r2, [r7, #36] @ 0x24
  45631. 80131b4: 69fb ldr r3, [r7, #28]
  45632. 80131b6: 441a add r2, r3
  45633. 80131b8: 68fb ldr r3, [r7, #12]
  45634. 80131ba: 689b ldr r3, [r3, #8]
  45635. 80131bc: 429a cmp r2, r3
  45636. 80131be: d90b bls.n 80131d8 <prvReadBytesFromBuffer+0x7e>
  45637. __asm volatile
  45638. 80131c0: f04f 0350 mov.w r3, #80 @ 0x50
  45639. 80131c4: f383 8811 msr BASEPRI, r3
  45640. 80131c8: f3bf 8f6f isb sy
  45641. 80131cc: f3bf 8f4f dsb sy
  45642. 80131d0: 617b str r3, [r7, #20]
  45643. }
  45644. 80131d2: bf00 nop
  45645. 80131d4: bf00 nop
  45646. 80131d6: e7fd b.n 80131d4 <prvReadBytesFromBuffer+0x7a>
  45647. ( void ) memcpy( ( void * ) pucData, ( const void * ) &( pxStreamBuffer->pucBuffer[ xNextTail ] ), xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  45648. 80131d8: 68fb ldr r3, [r7, #12]
  45649. 80131da: 699a ldr r2, [r3, #24]
  45650. 80131dc: 6a7b ldr r3, [r7, #36] @ 0x24
  45651. 80131de: 4413 add r3, r2
  45652. 80131e0: 69fa ldr r2, [r7, #28]
  45653. 80131e2: 4619 mov r1, r3
  45654. 80131e4: 68b8 ldr r0, [r7, #8]
  45655. 80131e6: f017 fa72 bl 802a6ce <memcpy>
  45656. /* If the total number of wanted bytes is greater than the number
  45657. that could be read in the first read... */
  45658. if( xCount > xFirstLength )
  45659. 80131ea: 6a3a ldr r2, [r7, #32]
  45660. 80131ec: 69fb ldr r3, [r7, #28]
  45661. 80131ee: 429a cmp r2, r3
  45662. 80131f0: d91a bls.n 8013228 <prvReadBytesFromBuffer+0xce>
  45663. {
  45664. /*...then read the remaining bytes from the start of the buffer. */
  45665. configASSERT( xCount <= xMaxCount );
  45666. 80131f2: 6a3a ldr r2, [r7, #32]
  45667. 80131f4: 687b ldr r3, [r7, #4]
  45668. 80131f6: 429a cmp r2, r3
  45669. 80131f8: d90b bls.n 8013212 <prvReadBytesFromBuffer+0xb8>
  45670. __asm volatile
  45671. 80131fa: f04f 0350 mov.w r3, #80 @ 0x50
  45672. 80131fe: f383 8811 msr BASEPRI, r3
  45673. 8013202: f3bf 8f6f isb sy
  45674. 8013206: f3bf 8f4f dsb sy
  45675. 801320a: 613b str r3, [r7, #16]
  45676. }
  45677. 801320c: bf00 nop
  45678. 801320e: bf00 nop
  45679. 8013210: e7fd b.n 801320e <prvReadBytesFromBuffer+0xb4>
  45680. ( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  45681. 8013212: 68ba ldr r2, [r7, #8]
  45682. 8013214: 69fb ldr r3, [r7, #28]
  45683. 8013216: 18d0 adds r0, r2, r3
  45684. 8013218: 68fb ldr r3, [r7, #12]
  45685. 801321a: 6999 ldr r1, [r3, #24]
  45686. 801321c: 6a3a ldr r2, [r7, #32]
  45687. 801321e: 69fb ldr r3, [r7, #28]
  45688. 8013220: 1ad3 subs r3, r2, r3
  45689. 8013222: 461a mov r2, r3
  45690. 8013224: f017 fa53 bl 802a6ce <memcpy>
  45691. mtCOVERAGE_TEST_MARKER();
  45692. }
  45693. /* Move the tail pointer to effectively remove the data read from
  45694. the buffer. */
  45695. xNextTail += xCount;
  45696. 8013228: 6a7a ldr r2, [r7, #36] @ 0x24
  45697. 801322a: 6a3b ldr r3, [r7, #32]
  45698. 801322c: 4413 add r3, r2
  45699. 801322e: 627b str r3, [r7, #36] @ 0x24
  45700. if( xNextTail >= pxStreamBuffer->xLength )
  45701. 8013230: 68fb ldr r3, [r7, #12]
  45702. 8013232: 689b ldr r3, [r3, #8]
  45703. 8013234: 6a7a ldr r2, [r7, #36] @ 0x24
  45704. 8013236: 429a cmp r2, r3
  45705. 8013238: d304 bcc.n 8013244 <prvReadBytesFromBuffer+0xea>
  45706. {
  45707. xNextTail -= pxStreamBuffer->xLength;
  45708. 801323a: 68fb ldr r3, [r7, #12]
  45709. 801323c: 689b ldr r3, [r3, #8]
  45710. 801323e: 6a7a ldr r2, [r7, #36] @ 0x24
  45711. 8013240: 1ad3 subs r3, r2, r3
  45712. 8013242: 627b str r3, [r7, #36] @ 0x24
  45713. }
  45714. pxStreamBuffer->xTail = xNextTail;
  45715. 8013244: 68fb ldr r3, [r7, #12]
  45716. 8013246: 6a7a ldr r2, [r7, #36] @ 0x24
  45717. 8013248: 601a str r2, [r3, #0]
  45718. else
  45719. {
  45720. mtCOVERAGE_TEST_MARKER();
  45721. }
  45722. return xCount;
  45723. 801324a: 6a3b ldr r3, [r7, #32]
  45724. }
  45725. 801324c: 4618 mov r0, r3
  45726. 801324e: 3728 adds r7, #40 @ 0x28
  45727. 8013250: 46bd mov sp, r7
  45728. 8013252: bd80 pop {r7, pc}
  45729. 08013254 <prvBytesInBuffer>:
  45730. /*-----------------------------------------------------------*/
  45731. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  45732. {
  45733. 8013254: b480 push {r7}
  45734. 8013256: b085 sub sp, #20
  45735. 8013258: af00 add r7, sp, #0
  45736. 801325a: 6078 str r0, [r7, #4]
  45737. /* Returns the distance between xTail and xHead. */
  45738. size_t xCount;
  45739. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  45740. 801325c: 687b ldr r3, [r7, #4]
  45741. 801325e: 689a ldr r2, [r3, #8]
  45742. 8013260: 687b ldr r3, [r7, #4]
  45743. 8013262: 685b ldr r3, [r3, #4]
  45744. 8013264: 4413 add r3, r2
  45745. 8013266: 60fb str r3, [r7, #12]
  45746. xCount -= pxStreamBuffer->xTail;
  45747. 8013268: 687b ldr r3, [r7, #4]
  45748. 801326a: 681b ldr r3, [r3, #0]
  45749. 801326c: 68fa ldr r2, [r7, #12]
  45750. 801326e: 1ad3 subs r3, r2, r3
  45751. 8013270: 60fb str r3, [r7, #12]
  45752. if ( xCount >= pxStreamBuffer->xLength )
  45753. 8013272: 687b ldr r3, [r7, #4]
  45754. 8013274: 689b ldr r3, [r3, #8]
  45755. 8013276: 68fa ldr r2, [r7, #12]
  45756. 8013278: 429a cmp r2, r3
  45757. 801327a: d304 bcc.n 8013286 <prvBytesInBuffer+0x32>
  45758. {
  45759. xCount -= pxStreamBuffer->xLength;
  45760. 801327c: 687b ldr r3, [r7, #4]
  45761. 801327e: 689b ldr r3, [r3, #8]
  45762. 8013280: 68fa ldr r2, [r7, #12]
  45763. 8013282: 1ad3 subs r3, r2, r3
  45764. 8013284: 60fb str r3, [r7, #12]
  45765. else
  45766. {
  45767. mtCOVERAGE_TEST_MARKER();
  45768. }
  45769. return xCount;
  45770. 8013286: 68fb ldr r3, [r7, #12]
  45771. }
  45772. 8013288: 4618 mov r0, r3
  45773. 801328a: 3714 adds r7, #20
  45774. 801328c: 46bd mov sp, r7
  45775. 801328e: f85d 7b04 ldr.w r7, [sp], #4
  45776. 8013292: 4770 bx lr
  45777. 08013294 <prvInitialiseNewStreamBuffer>:
  45778. static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
  45779. uint8_t * const pucBuffer,
  45780. size_t xBufferSizeBytes,
  45781. size_t xTriggerLevelBytes,
  45782. uint8_t ucFlags )
  45783. {
  45784. 8013294: b580 push {r7, lr}
  45785. 8013296: b086 sub sp, #24
  45786. 8013298: af00 add r7, sp, #0
  45787. 801329a: 60f8 str r0, [r7, #12]
  45788. 801329c: 60b9 str r1, [r7, #8]
  45789. 801329e: 607a str r2, [r7, #4]
  45790. 80132a0: 603b str r3, [r7, #0]
  45791. #if( configASSERT_DEFINED == 1 )
  45792. {
  45793. /* The value written just has to be identifiable when looking at the
  45794. memory. Don't use 0xA5 as that is the stack fill value and could
  45795. result in confusion as to what is actually being observed. */
  45796. const BaseType_t xWriteValue = 0x55;
  45797. 80132a2: 2355 movs r3, #85 @ 0x55
  45798. 80132a4: 617b str r3, [r7, #20]
  45799. configASSERT( memset( pucBuffer, ( int ) xWriteValue, xBufferSizeBytes ) == pucBuffer );
  45800. 80132a6: 687a ldr r2, [r7, #4]
  45801. 80132a8: 6979 ldr r1, [r7, #20]
  45802. 80132aa: 68b8 ldr r0, [r7, #8]
  45803. 80132ac: f017 f918 bl 802a4e0 <memset>
  45804. 80132b0: 4602 mov r2, r0
  45805. 80132b2: 68bb ldr r3, [r7, #8]
  45806. 80132b4: 4293 cmp r3, r2
  45807. 80132b6: d00b beq.n 80132d0 <prvInitialiseNewStreamBuffer+0x3c>
  45808. __asm volatile
  45809. 80132b8: f04f 0350 mov.w r3, #80 @ 0x50
  45810. 80132bc: f383 8811 msr BASEPRI, r3
  45811. 80132c0: f3bf 8f6f isb sy
  45812. 80132c4: f3bf 8f4f dsb sy
  45813. 80132c8: 613b str r3, [r7, #16]
  45814. }
  45815. 80132ca: bf00 nop
  45816. 80132cc: bf00 nop
  45817. 80132ce: e7fd b.n 80132cc <prvInitialiseNewStreamBuffer+0x38>
  45818. } /*lint !e529 !e438 xWriteValue is only used if configASSERT() is defined. */
  45819. #endif
  45820. ( void ) memset( ( void * ) pxStreamBuffer, 0x00, sizeof( StreamBuffer_t ) ); /*lint !e9087 memset() requires void *. */
  45821. 80132d0: 2224 movs r2, #36 @ 0x24
  45822. 80132d2: 2100 movs r1, #0
  45823. 80132d4: 68f8 ldr r0, [r7, #12]
  45824. 80132d6: f017 f903 bl 802a4e0 <memset>
  45825. pxStreamBuffer->pucBuffer = pucBuffer;
  45826. 80132da: 68fb ldr r3, [r7, #12]
  45827. 80132dc: 68ba ldr r2, [r7, #8]
  45828. 80132de: 619a str r2, [r3, #24]
  45829. pxStreamBuffer->xLength = xBufferSizeBytes;
  45830. 80132e0: 68fb ldr r3, [r7, #12]
  45831. 80132e2: 687a ldr r2, [r7, #4]
  45832. 80132e4: 609a str r2, [r3, #8]
  45833. pxStreamBuffer->xTriggerLevelBytes = xTriggerLevelBytes;
  45834. 80132e6: 68fb ldr r3, [r7, #12]
  45835. 80132e8: 683a ldr r2, [r7, #0]
  45836. 80132ea: 60da str r2, [r3, #12]
  45837. pxStreamBuffer->ucFlags = ucFlags;
  45838. 80132ec: 68fb ldr r3, [r7, #12]
  45839. 80132ee: f897 2020 ldrb.w r2, [r7, #32]
  45840. 80132f2: 771a strb r2, [r3, #28]
  45841. }
  45842. 80132f4: bf00 nop
  45843. 80132f6: 3718 adds r7, #24
  45844. 80132f8: 46bd mov sp, r7
  45845. 80132fa: bd80 pop {r7, pc}
  45846. 080132fc <xTaskCreateStatic>:
  45847. const uint32_t ulStackDepth,
  45848. void * const pvParameters,
  45849. UBaseType_t uxPriority,
  45850. StackType_t * const puxStackBuffer,
  45851. StaticTask_t * const pxTaskBuffer )
  45852. {
  45853. 80132fc: b580 push {r7, lr}
  45854. 80132fe: b08e sub sp, #56 @ 0x38
  45855. 8013300: af04 add r7, sp, #16
  45856. 8013302: 60f8 str r0, [r7, #12]
  45857. 8013304: 60b9 str r1, [r7, #8]
  45858. 8013306: 607a str r2, [r7, #4]
  45859. 8013308: 603b str r3, [r7, #0]
  45860. TCB_t *pxNewTCB;
  45861. TaskHandle_t xReturn;
  45862. configASSERT( puxStackBuffer != NULL );
  45863. 801330a: 6b7b ldr r3, [r7, #52] @ 0x34
  45864. 801330c: 2b00 cmp r3, #0
  45865. 801330e: d10b bne.n 8013328 <xTaskCreateStatic+0x2c>
  45866. __asm volatile
  45867. 8013310: f04f 0350 mov.w r3, #80 @ 0x50
  45868. 8013314: f383 8811 msr BASEPRI, r3
  45869. 8013318: f3bf 8f6f isb sy
  45870. 801331c: f3bf 8f4f dsb sy
  45871. 8013320: 623b str r3, [r7, #32]
  45872. }
  45873. 8013322: bf00 nop
  45874. 8013324: bf00 nop
  45875. 8013326: e7fd b.n 8013324 <xTaskCreateStatic+0x28>
  45876. configASSERT( pxTaskBuffer != NULL );
  45877. 8013328: 6bbb ldr r3, [r7, #56] @ 0x38
  45878. 801332a: 2b00 cmp r3, #0
  45879. 801332c: d10b bne.n 8013346 <xTaskCreateStatic+0x4a>
  45880. __asm volatile
  45881. 801332e: f04f 0350 mov.w r3, #80 @ 0x50
  45882. 8013332: f383 8811 msr BASEPRI, r3
  45883. 8013336: f3bf 8f6f isb sy
  45884. 801333a: f3bf 8f4f dsb sy
  45885. 801333e: 61fb str r3, [r7, #28]
  45886. }
  45887. 8013340: bf00 nop
  45888. 8013342: bf00 nop
  45889. 8013344: e7fd b.n 8013342 <xTaskCreateStatic+0x46>
  45890. #if( configASSERT_DEFINED == 1 )
  45891. {
  45892. /* Sanity check that the size of the structure used to declare a
  45893. variable of type StaticTask_t equals the size of the real task
  45894. structure. */
  45895. volatile size_t xSize = sizeof( StaticTask_t );
  45896. 8013346: 23a8 movs r3, #168 @ 0xa8
  45897. 8013348: 613b str r3, [r7, #16]
  45898. configASSERT( xSize == sizeof( TCB_t ) );
  45899. 801334a: 693b ldr r3, [r7, #16]
  45900. 801334c: 2ba8 cmp r3, #168 @ 0xa8
  45901. 801334e: d00b beq.n 8013368 <xTaskCreateStatic+0x6c>
  45902. __asm volatile
  45903. 8013350: f04f 0350 mov.w r3, #80 @ 0x50
  45904. 8013354: f383 8811 msr BASEPRI, r3
  45905. 8013358: f3bf 8f6f isb sy
  45906. 801335c: f3bf 8f4f dsb sy
  45907. 8013360: 61bb str r3, [r7, #24]
  45908. }
  45909. 8013362: bf00 nop
  45910. 8013364: bf00 nop
  45911. 8013366: e7fd b.n 8013364 <xTaskCreateStatic+0x68>
  45912. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  45913. 8013368: 693b ldr r3, [r7, #16]
  45914. }
  45915. #endif /* configASSERT_DEFINED */
  45916. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  45917. 801336a: 6bbb ldr r3, [r7, #56] @ 0x38
  45918. 801336c: 2b00 cmp r3, #0
  45919. 801336e: d01e beq.n 80133ae <xTaskCreateStatic+0xb2>
  45920. 8013370: 6b7b ldr r3, [r7, #52] @ 0x34
  45921. 8013372: 2b00 cmp r3, #0
  45922. 8013374: d01b beq.n 80133ae <xTaskCreateStatic+0xb2>
  45923. {
  45924. /* The memory used for the task's TCB and stack are passed into this
  45925. function - use them. */
  45926. 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. */
  45927. 8013376: 6bbb ldr r3, [r7, #56] @ 0x38
  45928. 8013378: 627b str r3, [r7, #36] @ 0x24
  45929. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  45930. 801337a: 6a7b ldr r3, [r7, #36] @ 0x24
  45931. 801337c: 6b7a ldr r2, [r7, #52] @ 0x34
  45932. 801337e: 631a str r2, [r3, #48] @ 0x30
  45933. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  45934. {
  45935. /* Tasks can be created statically or dynamically, so note this
  45936. task was created statically in case the task is later deleted. */
  45937. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  45938. 8013380: 6a7b ldr r3, [r7, #36] @ 0x24
  45939. 8013382: 2202 movs r2, #2
  45940. 8013384: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  45941. }
  45942. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  45943. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  45944. 8013388: 2300 movs r3, #0
  45945. 801338a: 9303 str r3, [sp, #12]
  45946. 801338c: 6a7b ldr r3, [r7, #36] @ 0x24
  45947. 801338e: 9302 str r3, [sp, #8]
  45948. 8013390: f107 0314 add.w r3, r7, #20
  45949. 8013394: 9301 str r3, [sp, #4]
  45950. 8013396: 6b3b ldr r3, [r7, #48] @ 0x30
  45951. 8013398: 9300 str r3, [sp, #0]
  45952. 801339a: 683b ldr r3, [r7, #0]
  45953. 801339c: 687a ldr r2, [r7, #4]
  45954. 801339e: 68b9 ldr r1, [r7, #8]
  45955. 80133a0: 68f8 ldr r0, [r7, #12]
  45956. 80133a2: f000 f851 bl 8013448 <prvInitialiseNewTask>
  45957. prvAddNewTaskToReadyList( pxNewTCB );
  45958. 80133a6: 6a78 ldr r0, [r7, #36] @ 0x24
  45959. 80133a8: f000 f8f6 bl 8013598 <prvAddNewTaskToReadyList>
  45960. 80133ac: e001 b.n 80133b2 <xTaskCreateStatic+0xb6>
  45961. }
  45962. else
  45963. {
  45964. xReturn = NULL;
  45965. 80133ae: 2300 movs r3, #0
  45966. 80133b0: 617b str r3, [r7, #20]
  45967. }
  45968. return xReturn;
  45969. 80133b2: 697b ldr r3, [r7, #20]
  45970. }
  45971. 80133b4: 4618 mov r0, r3
  45972. 80133b6: 3728 adds r7, #40 @ 0x28
  45973. 80133b8: 46bd mov sp, r7
  45974. 80133ba: bd80 pop {r7, pc}
  45975. 080133bc <xTaskCreate>:
  45976. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  45977. const configSTACK_DEPTH_TYPE usStackDepth,
  45978. void * const pvParameters,
  45979. UBaseType_t uxPriority,
  45980. TaskHandle_t * const pxCreatedTask )
  45981. {
  45982. 80133bc: b580 push {r7, lr}
  45983. 80133be: b08c sub sp, #48 @ 0x30
  45984. 80133c0: af04 add r7, sp, #16
  45985. 80133c2: 60f8 str r0, [r7, #12]
  45986. 80133c4: 60b9 str r1, [r7, #8]
  45987. 80133c6: 603b str r3, [r7, #0]
  45988. 80133c8: 4613 mov r3, r2
  45989. 80133ca: 80fb strh r3, [r7, #6]
  45990. #else /* portSTACK_GROWTH */
  45991. {
  45992. StackType_t *pxStack;
  45993. /* Allocate space for the stack used by the task being created. */
  45994. 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. */
  45995. 80133cc: 88fb ldrh r3, [r7, #6]
  45996. 80133ce: 009b lsls r3, r3, #2
  45997. 80133d0: 4618 mov r0, r3
  45998. 80133d2: f002 f8c3 bl 801555c <pvPortMalloc>
  45999. 80133d6: 6178 str r0, [r7, #20]
  46000. if( pxStack != NULL )
  46001. 80133d8: 697b ldr r3, [r7, #20]
  46002. 80133da: 2b00 cmp r3, #0
  46003. 80133dc: d00e beq.n 80133fc <xTaskCreate+0x40>
  46004. {
  46005. /* Allocate space for the TCB. */
  46006. 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. */
  46007. 80133de: 20a8 movs r0, #168 @ 0xa8
  46008. 80133e0: f002 f8bc bl 801555c <pvPortMalloc>
  46009. 80133e4: 61f8 str r0, [r7, #28]
  46010. if( pxNewTCB != NULL )
  46011. 80133e6: 69fb ldr r3, [r7, #28]
  46012. 80133e8: 2b00 cmp r3, #0
  46013. 80133ea: d003 beq.n 80133f4 <xTaskCreate+0x38>
  46014. {
  46015. /* Store the stack location in the TCB. */
  46016. pxNewTCB->pxStack = pxStack;
  46017. 80133ec: 69fb ldr r3, [r7, #28]
  46018. 80133ee: 697a ldr r2, [r7, #20]
  46019. 80133f0: 631a str r2, [r3, #48] @ 0x30
  46020. 80133f2: e005 b.n 8013400 <xTaskCreate+0x44>
  46021. }
  46022. else
  46023. {
  46024. /* The stack cannot be used as the TCB was not created. Free
  46025. it again. */
  46026. vPortFree( pxStack );
  46027. 80133f4: 6978 ldr r0, [r7, #20]
  46028. 80133f6: f002 f97f bl 80156f8 <vPortFree>
  46029. 80133fa: e001 b.n 8013400 <xTaskCreate+0x44>
  46030. }
  46031. }
  46032. else
  46033. {
  46034. pxNewTCB = NULL;
  46035. 80133fc: 2300 movs r3, #0
  46036. 80133fe: 61fb str r3, [r7, #28]
  46037. }
  46038. }
  46039. #endif /* portSTACK_GROWTH */
  46040. if( pxNewTCB != NULL )
  46041. 8013400: 69fb ldr r3, [r7, #28]
  46042. 8013402: 2b00 cmp r3, #0
  46043. 8013404: d017 beq.n 8013436 <xTaskCreate+0x7a>
  46044. {
  46045. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  46046. {
  46047. /* Tasks can be created statically or dynamically, so note this
  46048. task was created dynamically in case it is later deleted. */
  46049. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  46050. 8013406: 69fb ldr r3, [r7, #28]
  46051. 8013408: 2200 movs r2, #0
  46052. 801340a: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  46053. }
  46054. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  46055. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  46056. 801340e: 88fa ldrh r2, [r7, #6]
  46057. 8013410: 2300 movs r3, #0
  46058. 8013412: 9303 str r3, [sp, #12]
  46059. 8013414: 69fb ldr r3, [r7, #28]
  46060. 8013416: 9302 str r3, [sp, #8]
  46061. 8013418: 6afb ldr r3, [r7, #44] @ 0x2c
  46062. 801341a: 9301 str r3, [sp, #4]
  46063. 801341c: 6abb ldr r3, [r7, #40] @ 0x28
  46064. 801341e: 9300 str r3, [sp, #0]
  46065. 8013420: 683b ldr r3, [r7, #0]
  46066. 8013422: 68b9 ldr r1, [r7, #8]
  46067. 8013424: 68f8 ldr r0, [r7, #12]
  46068. 8013426: f000 f80f bl 8013448 <prvInitialiseNewTask>
  46069. prvAddNewTaskToReadyList( pxNewTCB );
  46070. 801342a: 69f8 ldr r0, [r7, #28]
  46071. 801342c: f000 f8b4 bl 8013598 <prvAddNewTaskToReadyList>
  46072. xReturn = pdPASS;
  46073. 8013430: 2301 movs r3, #1
  46074. 8013432: 61bb str r3, [r7, #24]
  46075. 8013434: e002 b.n 801343c <xTaskCreate+0x80>
  46076. }
  46077. else
  46078. {
  46079. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  46080. 8013436: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46081. 801343a: 61bb str r3, [r7, #24]
  46082. }
  46083. return xReturn;
  46084. 801343c: 69bb ldr r3, [r7, #24]
  46085. }
  46086. 801343e: 4618 mov r0, r3
  46087. 8013440: 3720 adds r7, #32
  46088. 8013442: 46bd mov sp, r7
  46089. 8013444: bd80 pop {r7, pc}
  46090. ...
  46091. 08013448 <prvInitialiseNewTask>:
  46092. void * const pvParameters,
  46093. UBaseType_t uxPriority,
  46094. TaskHandle_t * const pxCreatedTask,
  46095. TCB_t *pxNewTCB,
  46096. const MemoryRegion_t * const xRegions )
  46097. {
  46098. 8013448: b580 push {r7, lr}
  46099. 801344a: b088 sub sp, #32
  46100. 801344c: af00 add r7, sp, #0
  46101. 801344e: 60f8 str r0, [r7, #12]
  46102. 8013450: 60b9 str r1, [r7, #8]
  46103. 8013452: 607a str r2, [r7, #4]
  46104. 8013454: 603b str r3, [r7, #0]
  46105. /* Avoid dependency on memset() if it is not required. */
  46106. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  46107. {
  46108. /* Fill the stack with a known value to assist debugging. */
  46109. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  46110. 8013456: 6b3b ldr r3, [r7, #48] @ 0x30
  46111. 8013458: 6b18 ldr r0, [r3, #48] @ 0x30
  46112. 801345a: 687b ldr r3, [r7, #4]
  46113. 801345c: 009b lsls r3, r3, #2
  46114. 801345e: 461a mov r2, r3
  46115. 8013460: 21a5 movs r1, #165 @ 0xa5
  46116. 8013462: f017 f83d bl 802a4e0 <memset>
  46117. grows from high memory to low (as per the 80x86) or vice versa.
  46118. portSTACK_GROWTH is used to make the result positive or negative as required
  46119. by the port. */
  46120. #if( portSTACK_GROWTH < 0 )
  46121. {
  46122. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  46123. 8013466: 6b3b ldr r3, [r7, #48] @ 0x30
  46124. 8013468: 6b1a ldr r2, [r3, #48] @ 0x30
  46125. 801346a: 6879 ldr r1, [r7, #4]
  46126. 801346c: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  46127. 8013470: 440b add r3, r1
  46128. 8013472: 009b lsls r3, r3, #2
  46129. 8013474: 4413 add r3, r2
  46130. 8013476: 61bb str r3, [r7, #24]
  46131. 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(). */
  46132. 8013478: 69bb ldr r3, [r7, #24]
  46133. 801347a: f023 0307 bic.w r3, r3, #7
  46134. 801347e: 61bb str r3, [r7, #24]
  46135. /* Check the alignment of the calculated top of stack is correct. */
  46136. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  46137. 8013480: 69bb ldr r3, [r7, #24]
  46138. 8013482: f003 0307 and.w r3, r3, #7
  46139. 8013486: 2b00 cmp r3, #0
  46140. 8013488: d00b beq.n 80134a2 <prvInitialiseNewTask+0x5a>
  46141. __asm volatile
  46142. 801348a: f04f 0350 mov.w r3, #80 @ 0x50
  46143. 801348e: f383 8811 msr BASEPRI, r3
  46144. 8013492: f3bf 8f6f isb sy
  46145. 8013496: f3bf 8f4f dsb sy
  46146. 801349a: 617b str r3, [r7, #20]
  46147. }
  46148. 801349c: bf00 nop
  46149. 801349e: bf00 nop
  46150. 80134a0: e7fd b.n 801349e <prvInitialiseNewTask+0x56>
  46151. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  46152. }
  46153. #endif /* portSTACK_GROWTH */
  46154. /* Store the task name in the TCB. */
  46155. if( pcName != NULL )
  46156. 80134a2: 68bb ldr r3, [r7, #8]
  46157. 80134a4: 2b00 cmp r3, #0
  46158. 80134a6: d01f beq.n 80134e8 <prvInitialiseNewTask+0xa0>
  46159. {
  46160. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  46161. 80134a8: 2300 movs r3, #0
  46162. 80134aa: 61fb str r3, [r7, #28]
  46163. 80134ac: e012 b.n 80134d4 <prvInitialiseNewTask+0x8c>
  46164. {
  46165. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  46166. 80134ae: 68ba ldr r2, [r7, #8]
  46167. 80134b0: 69fb ldr r3, [r7, #28]
  46168. 80134b2: 4413 add r3, r2
  46169. 80134b4: 7819 ldrb r1, [r3, #0]
  46170. 80134b6: 6b3a ldr r2, [r7, #48] @ 0x30
  46171. 80134b8: 69fb ldr r3, [r7, #28]
  46172. 80134ba: 4413 add r3, r2
  46173. 80134bc: 3334 adds r3, #52 @ 0x34
  46174. 80134be: 460a mov r2, r1
  46175. 80134c0: 701a strb r2, [r3, #0]
  46176. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  46177. configMAX_TASK_NAME_LEN characters just in case the memory after the
  46178. string is not accessible (extremely unlikely). */
  46179. if( pcName[ x ] == ( char ) 0x00 )
  46180. 80134c2: 68ba ldr r2, [r7, #8]
  46181. 80134c4: 69fb ldr r3, [r7, #28]
  46182. 80134c6: 4413 add r3, r2
  46183. 80134c8: 781b ldrb r3, [r3, #0]
  46184. 80134ca: 2b00 cmp r3, #0
  46185. 80134cc: d006 beq.n 80134dc <prvInitialiseNewTask+0x94>
  46186. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  46187. 80134ce: 69fb ldr r3, [r7, #28]
  46188. 80134d0: 3301 adds r3, #1
  46189. 80134d2: 61fb str r3, [r7, #28]
  46190. 80134d4: 69fb ldr r3, [r7, #28]
  46191. 80134d6: 2b0f cmp r3, #15
  46192. 80134d8: d9e9 bls.n 80134ae <prvInitialiseNewTask+0x66>
  46193. 80134da: e000 b.n 80134de <prvInitialiseNewTask+0x96>
  46194. {
  46195. break;
  46196. 80134dc: bf00 nop
  46197. }
  46198. }
  46199. /* Ensure the name string is terminated in the case that the string length
  46200. was greater or equal to configMAX_TASK_NAME_LEN. */
  46201. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  46202. 80134de: 6b3b ldr r3, [r7, #48] @ 0x30
  46203. 80134e0: 2200 movs r2, #0
  46204. 80134e2: f883 2043 strb.w r2, [r3, #67] @ 0x43
  46205. 80134e6: e003 b.n 80134f0 <prvInitialiseNewTask+0xa8>
  46206. }
  46207. else
  46208. {
  46209. /* The task has not been given a name, so just ensure there is a NULL
  46210. terminator when it is read out. */
  46211. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  46212. 80134e8: 6b3b ldr r3, [r7, #48] @ 0x30
  46213. 80134ea: 2200 movs r2, #0
  46214. 80134ec: f883 2034 strb.w r2, [r3, #52] @ 0x34
  46215. }
  46216. /* This is used as an array index so must ensure it's not too large. First
  46217. remove the privilege bit if one is present. */
  46218. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  46219. 80134f0: 6abb ldr r3, [r7, #40] @ 0x28
  46220. 80134f2: 2b37 cmp r3, #55 @ 0x37
  46221. 80134f4: d901 bls.n 80134fa <prvInitialiseNewTask+0xb2>
  46222. {
  46223. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  46224. 80134f6: 2337 movs r3, #55 @ 0x37
  46225. 80134f8: 62bb str r3, [r7, #40] @ 0x28
  46226. else
  46227. {
  46228. mtCOVERAGE_TEST_MARKER();
  46229. }
  46230. pxNewTCB->uxPriority = uxPriority;
  46231. 80134fa: 6b3b ldr r3, [r7, #48] @ 0x30
  46232. 80134fc: 6aba ldr r2, [r7, #40] @ 0x28
  46233. 80134fe: 62da str r2, [r3, #44] @ 0x2c
  46234. #if ( configUSE_MUTEXES == 1 )
  46235. {
  46236. pxNewTCB->uxBasePriority = uxPriority;
  46237. 8013500: 6b3b ldr r3, [r7, #48] @ 0x30
  46238. 8013502: 6aba ldr r2, [r7, #40] @ 0x28
  46239. 8013504: 64da str r2, [r3, #76] @ 0x4c
  46240. pxNewTCB->uxMutexesHeld = 0;
  46241. 8013506: 6b3b ldr r3, [r7, #48] @ 0x30
  46242. 8013508: 2200 movs r2, #0
  46243. 801350a: 651a str r2, [r3, #80] @ 0x50
  46244. }
  46245. #endif /* configUSE_MUTEXES */
  46246. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  46247. 801350c: 6b3b ldr r3, [r7, #48] @ 0x30
  46248. 801350e: 3304 adds r3, #4
  46249. 8013510: 4618 mov r0, r3
  46250. 8013512: f7fe f9a5 bl 8011860 <vListInitialiseItem>
  46251. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  46252. 8013516: 6b3b ldr r3, [r7, #48] @ 0x30
  46253. 8013518: 3318 adds r3, #24
  46254. 801351a: 4618 mov r0, r3
  46255. 801351c: f7fe f9a0 bl 8011860 <vListInitialiseItem>
  46256. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  46257. back to the containing TCB from a generic item in a list. */
  46258. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  46259. 8013520: 6b3b ldr r3, [r7, #48] @ 0x30
  46260. 8013522: 6b3a ldr r2, [r7, #48] @ 0x30
  46261. 8013524: 611a str r2, [r3, #16]
  46262. /* Event lists are always in priority order. */
  46263. 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. */
  46264. 8013526: 6abb ldr r3, [r7, #40] @ 0x28
  46265. 8013528: f1c3 0238 rsb r2, r3, #56 @ 0x38
  46266. 801352c: 6b3b ldr r3, [r7, #48] @ 0x30
  46267. 801352e: 619a str r2, [r3, #24]
  46268. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  46269. 8013530: 6b3b ldr r3, [r7, #48] @ 0x30
  46270. 8013532: 6b3a ldr r2, [r7, #48] @ 0x30
  46271. 8013534: 625a str r2, [r3, #36] @ 0x24
  46272. }
  46273. #endif
  46274. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  46275. {
  46276. pxNewTCB->ulNotifiedValue = 0;
  46277. 8013536: 6b3b ldr r3, [r7, #48] @ 0x30
  46278. 8013538: 2200 movs r2, #0
  46279. 801353a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  46280. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  46281. 801353e: 6b3b ldr r3, [r7, #48] @ 0x30
  46282. 8013540: 2200 movs r2, #0
  46283. 8013542: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  46284. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  46285. {
  46286. /* Initialise this task's Newlib reent structure.
  46287. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  46288. for additional information. */
  46289. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  46290. 8013546: 6b3b ldr r3, [r7, #48] @ 0x30
  46291. 8013548: 3354 adds r3, #84 @ 0x54
  46292. 801354a: 224c movs r2, #76 @ 0x4c
  46293. 801354c: 2100 movs r1, #0
  46294. 801354e: 4618 mov r0, r3
  46295. 8013550: f016 ffc6 bl 802a4e0 <memset>
  46296. 8013554: 6b3b ldr r3, [r7, #48] @ 0x30
  46297. 8013556: 4a0d ldr r2, [pc, #52] @ (801358c <prvInitialiseNewTask+0x144>)
  46298. 8013558: 659a str r2, [r3, #88] @ 0x58
  46299. 801355a: 6b3b ldr r3, [r7, #48] @ 0x30
  46300. 801355c: 4a0c ldr r2, [pc, #48] @ (8013590 <prvInitialiseNewTask+0x148>)
  46301. 801355e: 65da str r2, [r3, #92] @ 0x5c
  46302. 8013560: 6b3b ldr r3, [r7, #48] @ 0x30
  46303. 8013562: 4a0c ldr r2, [pc, #48] @ (8013594 <prvInitialiseNewTask+0x14c>)
  46304. 8013564: 661a str r2, [r3, #96] @ 0x60
  46305. }
  46306. #endif /* portSTACK_GROWTH */
  46307. }
  46308. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  46309. {
  46310. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  46311. 8013566: 683a ldr r2, [r7, #0]
  46312. 8013568: 68f9 ldr r1, [r7, #12]
  46313. 801356a: 69b8 ldr r0, [r7, #24]
  46314. 801356c: f001 fda0 bl 80150b0 <pxPortInitialiseStack>
  46315. 8013570: 4602 mov r2, r0
  46316. 8013572: 6b3b ldr r3, [r7, #48] @ 0x30
  46317. 8013574: 601a str r2, [r3, #0]
  46318. }
  46319. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  46320. }
  46321. #endif /* portUSING_MPU_WRAPPERS */
  46322. if( pxCreatedTask != NULL )
  46323. 8013576: 6afb ldr r3, [r7, #44] @ 0x2c
  46324. 8013578: 2b00 cmp r3, #0
  46325. 801357a: d002 beq.n 8013582 <prvInitialiseNewTask+0x13a>
  46326. {
  46327. /* Pass the handle out in an anonymous way. The handle can be used to
  46328. change the created task's priority, delete the created task, etc.*/
  46329. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  46330. 801357c: 6afb ldr r3, [r7, #44] @ 0x2c
  46331. 801357e: 6b3a ldr r2, [r7, #48] @ 0x30
  46332. 8013580: 601a str r2, [r3, #0]
  46333. }
  46334. else
  46335. {
  46336. mtCOVERAGE_TEST_MARKER();
  46337. }
  46338. }
  46339. 8013582: bf00 nop
  46340. 8013584: 3720 adds r7, #32
  46341. 8013586: 46bd mov sp, r7
  46342. 8013588: bd80 pop {r7, pc}
  46343. 801358a: bf00 nop
  46344. 801358c: 2402b114 .word 0x2402b114
  46345. 8013590: 2402b17c .word 0x2402b17c
  46346. 8013594: 2402b1e4 .word 0x2402b1e4
  46347. 08013598 <prvAddNewTaskToReadyList>:
  46348. /*-----------------------------------------------------------*/
  46349. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  46350. {
  46351. 8013598: b580 push {r7, lr}
  46352. 801359a: b082 sub sp, #8
  46353. 801359c: af00 add r7, sp, #0
  46354. 801359e: 6078 str r0, [r7, #4]
  46355. /* Ensure interrupts don't access the task lists while the lists are being
  46356. updated. */
  46357. taskENTER_CRITICAL();
  46358. 80135a0: f001 feba bl 8015318 <vPortEnterCritical>
  46359. {
  46360. uxCurrentNumberOfTasks++;
  46361. 80135a4: 4b2d ldr r3, [pc, #180] @ (801365c <prvAddNewTaskToReadyList+0xc4>)
  46362. 80135a6: 681b ldr r3, [r3, #0]
  46363. 80135a8: 3301 adds r3, #1
  46364. 80135aa: 4a2c ldr r2, [pc, #176] @ (801365c <prvAddNewTaskToReadyList+0xc4>)
  46365. 80135ac: 6013 str r3, [r2, #0]
  46366. if( pxCurrentTCB == NULL )
  46367. 80135ae: 4b2c ldr r3, [pc, #176] @ (8013660 <prvAddNewTaskToReadyList+0xc8>)
  46368. 80135b0: 681b ldr r3, [r3, #0]
  46369. 80135b2: 2b00 cmp r3, #0
  46370. 80135b4: d109 bne.n 80135ca <prvAddNewTaskToReadyList+0x32>
  46371. {
  46372. /* There are no other tasks, or all the other tasks are in
  46373. the suspended state - make this the current task. */
  46374. pxCurrentTCB = pxNewTCB;
  46375. 80135b6: 4a2a ldr r2, [pc, #168] @ (8013660 <prvAddNewTaskToReadyList+0xc8>)
  46376. 80135b8: 687b ldr r3, [r7, #4]
  46377. 80135ba: 6013 str r3, [r2, #0]
  46378. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  46379. 80135bc: 4b27 ldr r3, [pc, #156] @ (801365c <prvAddNewTaskToReadyList+0xc4>)
  46380. 80135be: 681b ldr r3, [r3, #0]
  46381. 80135c0: 2b01 cmp r3, #1
  46382. 80135c2: d110 bne.n 80135e6 <prvAddNewTaskToReadyList+0x4e>
  46383. {
  46384. /* This is the first task to be created so do the preliminary
  46385. initialisation required. We will not recover if this call
  46386. fails, but we will report the failure. */
  46387. prvInitialiseTaskLists();
  46388. 80135c4: f000 fc76 bl 8013eb4 <prvInitialiseTaskLists>
  46389. 80135c8: e00d b.n 80135e6 <prvAddNewTaskToReadyList+0x4e>
  46390. else
  46391. {
  46392. /* If the scheduler is not already running, make this task the
  46393. current task if it is the highest priority task to be created
  46394. so far. */
  46395. if( xSchedulerRunning == pdFALSE )
  46396. 80135ca: 4b26 ldr r3, [pc, #152] @ (8013664 <prvAddNewTaskToReadyList+0xcc>)
  46397. 80135cc: 681b ldr r3, [r3, #0]
  46398. 80135ce: 2b00 cmp r3, #0
  46399. 80135d0: d109 bne.n 80135e6 <prvAddNewTaskToReadyList+0x4e>
  46400. {
  46401. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  46402. 80135d2: 4b23 ldr r3, [pc, #140] @ (8013660 <prvAddNewTaskToReadyList+0xc8>)
  46403. 80135d4: 681b ldr r3, [r3, #0]
  46404. 80135d6: 6ada ldr r2, [r3, #44] @ 0x2c
  46405. 80135d8: 687b ldr r3, [r7, #4]
  46406. 80135da: 6adb ldr r3, [r3, #44] @ 0x2c
  46407. 80135dc: 429a cmp r2, r3
  46408. 80135de: d802 bhi.n 80135e6 <prvAddNewTaskToReadyList+0x4e>
  46409. {
  46410. pxCurrentTCB = pxNewTCB;
  46411. 80135e0: 4a1f ldr r2, [pc, #124] @ (8013660 <prvAddNewTaskToReadyList+0xc8>)
  46412. 80135e2: 687b ldr r3, [r7, #4]
  46413. 80135e4: 6013 str r3, [r2, #0]
  46414. {
  46415. mtCOVERAGE_TEST_MARKER();
  46416. }
  46417. }
  46418. uxTaskNumber++;
  46419. 80135e6: 4b20 ldr r3, [pc, #128] @ (8013668 <prvAddNewTaskToReadyList+0xd0>)
  46420. 80135e8: 681b ldr r3, [r3, #0]
  46421. 80135ea: 3301 adds r3, #1
  46422. 80135ec: 4a1e ldr r2, [pc, #120] @ (8013668 <prvAddNewTaskToReadyList+0xd0>)
  46423. 80135ee: 6013 str r3, [r2, #0]
  46424. #if ( configUSE_TRACE_FACILITY == 1 )
  46425. {
  46426. /* Add a counter into the TCB for tracing only. */
  46427. pxNewTCB->uxTCBNumber = uxTaskNumber;
  46428. 80135f0: 4b1d ldr r3, [pc, #116] @ (8013668 <prvAddNewTaskToReadyList+0xd0>)
  46429. 80135f2: 681a ldr r2, [r3, #0]
  46430. 80135f4: 687b ldr r3, [r7, #4]
  46431. 80135f6: 645a str r2, [r3, #68] @ 0x44
  46432. }
  46433. #endif /* configUSE_TRACE_FACILITY */
  46434. traceTASK_CREATE( pxNewTCB );
  46435. prvAddTaskToReadyList( pxNewTCB );
  46436. 80135f8: 687b ldr r3, [r7, #4]
  46437. 80135fa: 6ada ldr r2, [r3, #44] @ 0x2c
  46438. 80135fc: 4b1b ldr r3, [pc, #108] @ (801366c <prvAddNewTaskToReadyList+0xd4>)
  46439. 80135fe: 681b ldr r3, [r3, #0]
  46440. 8013600: 429a cmp r2, r3
  46441. 8013602: d903 bls.n 801360c <prvAddNewTaskToReadyList+0x74>
  46442. 8013604: 687b ldr r3, [r7, #4]
  46443. 8013606: 6adb ldr r3, [r3, #44] @ 0x2c
  46444. 8013608: 4a18 ldr r2, [pc, #96] @ (801366c <prvAddNewTaskToReadyList+0xd4>)
  46445. 801360a: 6013 str r3, [r2, #0]
  46446. 801360c: 687b ldr r3, [r7, #4]
  46447. 801360e: 6ada ldr r2, [r3, #44] @ 0x2c
  46448. 8013610: 4613 mov r3, r2
  46449. 8013612: 009b lsls r3, r3, #2
  46450. 8013614: 4413 add r3, r2
  46451. 8013616: 009b lsls r3, r3, #2
  46452. 8013618: 4a15 ldr r2, [pc, #84] @ (8013670 <prvAddNewTaskToReadyList+0xd8>)
  46453. 801361a: 441a add r2, r3
  46454. 801361c: 687b ldr r3, [r7, #4]
  46455. 801361e: 3304 adds r3, #4
  46456. 8013620: 4619 mov r1, r3
  46457. 8013622: 4610 mov r0, r2
  46458. 8013624: f7fe f929 bl 801187a <vListInsertEnd>
  46459. portSETUP_TCB( pxNewTCB );
  46460. }
  46461. taskEXIT_CRITICAL();
  46462. 8013628: f001 fea8 bl 801537c <vPortExitCritical>
  46463. if( xSchedulerRunning != pdFALSE )
  46464. 801362c: 4b0d ldr r3, [pc, #52] @ (8013664 <prvAddNewTaskToReadyList+0xcc>)
  46465. 801362e: 681b ldr r3, [r3, #0]
  46466. 8013630: 2b00 cmp r3, #0
  46467. 8013632: d00e beq.n 8013652 <prvAddNewTaskToReadyList+0xba>
  46468. {
  46469. /* If the created task is of a higher priority than the current task
  46470. then it should run now. */
  46471. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  46472. 8013634: 4b0a ldr r3, [pc, #40] @ (8013660 <prvAddNewTaskToReadyList+0xc8>)
  46473. 8013636: 681b ldr r3, [r3, #0]
  46474. 8013638: 6ada ldr r2, [r3, #44] @ 0x2c
  46475. 801363a: 687b ldr r3, [r7, #4]
  46476. 801363c: 6adb ldr r3, [r3, #44] @ 0x2c
  46477. 801363e: 429a cmp r2, r3
  46478. 8013640: d207 bcs.n 8013652 <prvAddNewTaskToReadyList+0xba>
  46479. {
  46480. taskYIELD_IF_USING_PREEMPTION();
  46481. 8013642: 4b0c ldr r3, [pc, #48] @ (8013674 <prvAddNewTaskToReadyList+0xdc>)
  46482. 8013644: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46483. 8013648: 601a str r2, [r3, #0]
  46484. 801364a: f3bf 8f4f dsb sy
  46485. 801364e: f3bf 8f6f isb sy
  46486. }
  46487. else
  46488. {
  46489. mtCOVERAGE_TEST_MARKER();
  46490. }
  46491. }
  46492. 8013652: bf00 nop
  46493. 8013654: 3708 adds r7, #8
  46494. 8013656: 46bd mov sp, r7
  46495. 8013658: bd80 pop {r7, pc}
  46496. 801365a: bf00 nop
  46497. 801365c: 24004234 .word 0x24004234
  46498. 8013660: 24003d60 .word 0x24003d60
  46499. 8013664: 24004240 .word 0x24004240
  46500. 8013668: 24004250 .word 0x24004250
  46501. 801366c: 2400423c .word 0x2400423c
  46502. 8013670: 24003d64 .word 0x24003d64
  46503. 8013674: e000ed04 .word 0xe000ed04
  46504. 08013678 <vTaskDelay>:
  46505. /*-----------------------------------------------------------*/
  46506. #if ( INCLUDE_vTaskDelay == 1 )
  46507. void vTaskDelay( const TickType_t xTicksToDelay )
  46508. {
  46509. 8013678: b580 push {r7, lr}
  46510. 801367a: b084 sub sp, #16
  46511. 801367c: af00 add r7, sp, #0
  46512. 801367e: 6078 str r0, [r7, #4]
  46513. BaseType_t xAlreadyYielded = pdFALSE;
  46514. 8013680: 2300 movs r3, #0
  46515. 8013682: 60fb str r3, [r7, #12]
  46516. /* A delay time of zero just forces a reschedule. */
  46517. if( xTicksToDelay > ( TickType_t ) 0U )
  46518. 8013684: 687b ldr r3, [r7, #4]
  46519. 8013686: 2b00 cmp r3, #0
  46520. 8013688: d018 beq.n 80136bc <vTaskDelay+0x44>
  46521. {
  46522. configASSERT( uxSchedulerSuspended == 0 );
  46523. 801368a: 4b14 ldr r3, [pc, #80] @ (80136dc <vTaskDelay+0x64>)
  46524. 801368c: 681b ldr r3, [r3, #0]
  46525. 801368e: 2b00 cmp r3, #0
  46526. 8013690: d00b beq.n 80136aa <vTaskDelay+0x32>
  46527. __asm volatile
  46528. 8013692: f04f 0350 mov.w r3, #80 @ 0x50
  46529. 8013696: f383 8811 msr BASEPRI, r3
  46530. 801369a: f3bf 8f6f isb sy
  46531. 801369e: f3bf 8f4f dsb sy
  46532. 80136a2: 60bb str r3, [r7, #8]
  46533. }
  46534. 80136a4: bf00 nop
  46535. 80136a6: bf00 nop
  46536. 80136a8: e7fd b.n 80136a6 <vTaskDelay+0x2e>
  46537. vTaskSuspendAll();
  46538. 80136aa: f000 f88b bl 80137c4 <vTaskSuspendAll>
  46539. list or removed from the blocked list until the scheduler
  46540. is resumed.
  46541. This task cannot be in an event list as it is the currently
  46542. executing task. */
  46543. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  46544. 80136ae: 2100 movs r1, #0
  46545. 80136b0: 6878 ldr r0, [r7, #4]
  46546. 80136b2: f001 f88f bl 80147d4 <prvAddCurrentTaskToDelayedList>
  46547. }
  46548. xAlreadyYielded = xTaskResumeAll();
  46549. 80136b6: f000 f893 bl 80137e0 <xTaskResumeAll>
  46550. 80136ba: 60f8 str r0, [r7, #12]
  46551. mtCOVERAGE_TEST_MARKER();
  46552. }
  46553. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  46554. have put ourselves to sleep. */
  46555. if( xAlreadyYielded == pdFALSE )
  46556. 80136bc: 68fb ldr r3, [r7, #12]
  46557. 80136be: 2b00 cmp r3, #0
  46558. 80136c0: d107 bne.n 80136d2 <vTaskDelay+0x5a>
  46559. {
  46560. portYIELD_WITHIN_API();
  46561. 80136c2: 4b07 ldr r3, [pc, #28] @ (80136e0 <vTaskDelay+0x68>)
  46562. 80136c4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46563. 80136c8: 601a str r2, [r3, #0]
  46564. 80136ca: f3bf 8f4f dsb sy
  46565. 80136ce: f3bf 8f6f isb sy
  46566. }
  46567. else
  46568. {
  46569. mtCOVERAGE_TEST_MARKER();
  46570. }
  46571. }
  46572. 80136d2: bf00 nop
  46573. 80136d4: 3710 adds r7, #16
  46574. 80136d6: 46bd mov sp, r7
  46575. 80136d8: bd80 pop {r7, pc}
  46576. 80136da: bf00 nop
  46577. 80136dc: 2400425c .word 0x2400425c
  46578. 80136e0: e000ed04 .word 0xe000ed04
  46579. 080136e4 <vTaskStartScheduler>:
  46580. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  46581. /*-----------------------------------------------------------*/
  46582. void vTaskStartScheduler( void )
  46583. {
  46584. 80136e4: b580 push {r7, lr}
  46585. 80136e6: b08a sub sp, #40 @ 0x28
  46586. 80136e8: af04 add r7, sp, #16
  46587. BaseType_t xReturn;
  46588. /* Add the idle task at the lowest priority. */
  46589. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  46590. {
  46591. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  46592. 80136ea: 2300 movs r3, #0
  46593. 80136ec: 60bb str r3, [r7, #8]
  46594. StackType_t *pxIdleTaskStackBuffer = NULL;
  46595. 80136ee: 2300 movs r3, #0
  46596. 80136f0: 607b str r3, [r7, #4]
  46597. uint32_t ulIdleTaskStackSize;
  46598. /* The Idle task is created using user provided RAM - obtain the
  46599. address of the RAM then create the idle task. */
  46600. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  46601. 80136f2: 463a mov r2, r7
  46602. 80136f4: 1d39 adds r1, r7, #4
  46603. 80136f6: f107 0308 add.w r3, r7, #8
  46604. 80136fa: 4618 mov r0, r3
  46605. 80136fc: f7fe f85c bl 80117b8 <vApplicationGetIdleTaskMemory>
  46606. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  46607. 8013700: 6839 ldr r1, [r7, #0]
  46608. 8013702: 687b ldr r3, [r7, #4]
  46609. 8013704: 68ba ldr r2, [r7, #8]
  46610. 8013706: 9202 str r2, [sp, #8]
  46611. 8013708: 9301 str r3, [sp, #4]
  46612. 801370a: 2300 movs r3, #0
  46613. 801370c: 9300 str r3, [sp, #0]
  46614. 801370e: 2300 movs r3, #0
  46615. 8013710: 460a mov r2, r1
  46616. 8013712: 4924 ldr r1, [pc, #144] @ (80137a4 <vTaskStartScheduler+0xc0>)
  46617. 8013714: 4824 ldr r0, [pc, #144] @ (80137a8 <vTaskStartScheduler+0xc4>)
  46618. 8013716: f7ff fdf1 bl 80132fc <xTaskCreateStatic>
  46619. 801371a: 4603 mov r3, r0
  46620. 801371c: 4a23 ldr r2, [pc, #140] @ (80137ac <vTaskStartScheduler+0xc8>)
  46621. 801371e: 6013 str r3, [r2, #0]
  46622. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  46623. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  46624. pxIdleTaskStackBuffer,
  46625. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  46626. if( xIdleTaskHandle != NULL )
  46627. 8013720: 4b22 ldr r3, [pc, #136] @ (80137ac <vTaskStartScheduler+0xc8>)
  46628. 8013722: 681b ldr r3, [r3, #0]
  46629. 8013724: 2b00 cmp r3, #0
  46630. 8013726: d002 beq.n 801372e <vTaskStartScheduler+0x4a>
  46631. {
  46632. xReturn = pdPASS;
  46633. 8013728: 2301 movs r3, #1
  46634. 801372a: 617b str r3, [r7, #20]
  46635. 801372c: e001 b.n 8013732 <vTaskStartScheduler+0x4e>
  46636. }
  46637. else
  46638. {
  46639. xReturn = pdFAIL;
  46640. 801372e: 2300 movs r3, #0
  46641. 8013730: 617b str r3, [r7, #20]
  46642. }
  46643. #endif /* configSUPPORT_STATIC_ALLOCATION */
  46644. #if ( configUSE_TIMERS == 1 )
  46645. {
  46646. if( xReturn == pdPASS )
  46647. 8013732: 697b ldr r3, [r7, #20]
  46648. 8013734: 2b01 cmp r3, #1
  46649. 8013736: d102 bne.n 801373e <vTaskStartScheduler+0x5a>
  46650. {
  46651. xReturn = xTimerCreateTimerTask();
  46652. 8013738: f001 f8a0 bl 801487c <xTimerCreateTimerTask>
  46653. 801373c: 6178 str r0, [r7, #20]
  46654. mtCOVERAGE_TEST_MARKER();
  46655. }
  46656. }
  46657. #endif /* configUSE_TIMERS */
  46658. if( xReturn == pdPASS )
  46659. 801373e: 697b ldr r3, [r7, #20]
  46660. 8013740: 2b01 cmp r3, #1
  46661. 8013742: d11b bne.n 801377c <vTaskStartScheduler+0x98>
  46662. __asm volatile
  46663. 8013744: f04f 0350 mov.w r3, #80 @ 0x50
  46664. 8013748: f383 8811 msr BASEPRI, r3
  46665. 801374c: f3bf 8f6f isb sy
  46666. 8013750: f3bf 8f4f dsb sy
  46667. 8013754: 613b str r3, [r7, #16]
  46668. }
  46669. 8013756: bf00 nop
  46670. {
  46671. /* Switch Newlib's _impure_ptr variable to point to the _reent
  46672. structure specific to the task that will run first.
  46673. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  46674. for additional information. */
  46675. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  46676. 8013758: 4b15 ldr r3, [pc, #84] @ (80137b0 <vTaskStartScheduler+0xcc>)
  46677. 801375a: 681b ldr r3, [r3, #0]
  46678. 801375c: 3354 adds r3, #84 @ 0x54
  46679. 801375e: 4a15 ldr r2, [pc, #84] @ (80137b4 <vTaskStartScheduler+0xd0>)
  46680. 8013760: 6013 str r3, [r2, #0]
  46681. }
  46682. #endif /* configUSE_NEWLIB_REENTRANT */
  46683. xNextTaskUnblockTime = portMAX_DELAY;
  46684. 8013762: 4b15 ldr r3, [pc, #84] @ (80137b8 <vTaskStartScheduler+0xd4>)
  46685. 8013764: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  46686. 8013768: 601a str r2, [r3, #0]
  46687. xSchedulerRunning = pdTRUE;
  46688. 801376a: 4b14 ldr r3, [pc, #80] @ (80137bc <vTaskStartScheduler+0xd8>)
  46689. 801376c: 2201 movs r2, #1
  46690. 801376e: 601a str r2, [r3, #0]
  46691. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  46692. 8013770: 4b13 ldr r3, [pc, #76] @ (80137c0 <vTaskStartScheduler+0xdc>)
  46693. 8013772: 2200 movs r2, #0
  46694. 8013774: 601a str r2, [r3, #0]
  46695. traceTASK_SWITCHED_IN();
  46696. /* Setting up the timer tick is hardware specific and thus in the
  46697. portable interface. */
  46698. if( xPortStartScheduler() != pdFALSE )
  46699. 8013776: f001 fd2b bl 80151d0 <xPortStartScheduler>
  46700. }
  46701. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  46702. meaning xIdleTaskHandle is not used anywhere else. */
  46703. ( void ) xIdleTaskHandle;
  46704. }
  46705. 801377a: e00f b.n 801379c <vTaskStartScheduler+0xb8>
  46706. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  46707. 801377c: 697b ldr r3, [r7, #20]
  46708. 801377e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  46709. 8013782: d10b bne.n 801379c <vTaskStartScheduler+0xb8>
  46710. __asm volatile
  46711. 8013784: f04f 0350 mov.w r3, #80 @ 0x50
  46712. 8013788: f383 8811 msr BASEPRI, r3
  46713. 801378c: f3bf 8f6f isb sy
  46714. 8013790: f3bf 8f4f dsb sy
  46715. 8013794: 60fb str r3, [r7, #12]
  46716. }
  46717. 8013796: bf00 nop
  46718. 8013798: bf00 nop
  46719. 801379a: e7fd b.n 8013798 <vTaskStartScheduler+0xb4>
  46720. }
  46721. 801379c: bf00 nop
  46722. 801379e: 3718 adds r7, #24
  46723. 80137a0: 46bd mov sp, r7
  46724. 80137a2: bd80 pop {r7, pc}
  46725. 80137a4: 0802d400 .word 0x0802d400
  46726. 80137a8: 08013e85 .word 0x08013e85
  46727. 80137ac: 24004258 .word 0x24004258
  46728. 80137b0: 24003d60 .word 0x24003d60
  46729. 80137b4: 240001d4 .word 0x240001d4
  46730. 80137b8: 24004254 .word 0x24004254
  46731. 80137bc: 24004240 .word 0x24004240
  46732. 80137c0: 24004238 .word 0x24004238
  46733. 080137c4 <vTaskSuspendAll>:
  46734. vPortEndScheduler();
  46735. }
  46736. /*----------------------------------------------------------*/
  46737. void vTaskSuspendAll( void )
  46738. {
  46739. 80137c4: b480 push {r7}
  46740. 80137c6: af00 add r7, sp, #0
  46741. do not otherwise exhibit real time behaviour. */
  46742. portSOFTWARE_BARRIER();
  46743. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  46744. is used to allow calls to vTaskSuspendAll() to nest. */
  46745. ++uxSchedulerSuspended;
  46746. 80137c8: 4b04 ldr r3, [pc, #16] @ (80137dc <vTaskSuspendAll+0x18>)
  46747. 80137ca: 681b ldr r3, [r3, #0]
  46748. 80137cc: 3301 adds r3, #1
  46749. 80137ce: 4a03 ldr r2, [pc, #12] @ (80137dc <vTaskSuspendAll+0x18>)
  46750. 80137d0: 6013 str r3, [r2, #0]
  46751. /* Enforces ordering for ports and optimised compilers that may otherwise place
  46752. the above increment elsewhere. */
  46753. portMEMORY_BARRIER();
  46754. }
  46755. 80137d2: bf00 nop
  46756. 80137d4: 46bd mov sp, r7
  46757. 80137d6: f85d 7b04 ldr.w r7, [sp], #4
  46758. 80137da: 4770 bx lr
  46759. 80137dc: 2400425c .word 0x2400425c
  46760. 080137e0 <xTaskResumeAll>:
  46761. #endif /* configUSE_TICKLESS_IDLE */
  46762. /*----------------------------------------------------------*/
  46763. BaseType_t xTaskResumeAll( void )
  46764. {
  46765. 80137e0: b580 push {r7, lr}
  46766. 80137e2: b084 sub sp, #16
  46767. 80137e4: af00 add r7, sp, #0
  46768. TCB_t *pxTCB = NULL;
  46769. 80137e6: 2300 movs r3, #0
  46770. 80137e8: 60fb str r3, [r7, #12]
  46771. BaseType_t xAlreadyYielded = pdFALSE;
  46772. 80137ea: 2300 movs r3, #0
  46773. 80137ec: 60bb str r3, [r7, #8]
  46774. /* If uxSchedulerSuspended is zero then this function does not match a
  46775. previous call to vTaskSuspendAll(). */
  46776. configASSERT( uxSchedulerSuspended );
  46777. 80137ee: 4b42 ldr r3, [pc, #264] @ (80138f8 <xTaskResumeAll+0x118>)
  46778. 80137f0: 681b ldr r3, [r3, #0]
  46779. 80137f2: 2b00 cmp r3, #0
  46780. 80137f4: d10b bne.n 801380e <xTaskResumeAll+0x2e>
  46781. __asm volatile
  46782. 80137f6: f04f 0350 mov.w r3, #80 @ 0x50
  46783. 80137fa: f383 8811 msr BASEPRI, r3
  46784. 80137fe: f3bf 8f6f isb sy
  46785. 8013802: f3bf 8f4f dsb sy
  46786. 8013806: 603b str r3, [r7, #0]
  46787. }
  46788. 8013808: bf00 nop
  46789. 801380a: bf00 nop
  46790. 801380c: e7fd b.n 801380a <xTaskResumeAll+0x2a>
  46791. /* It is possible that an ISR caused a task to be removed from an event
  46792. list while the scheduler was suspended. If this was the case then the
  46793. removed task will have been added to the xPendingReadyList. Once the
  46794. scheduler has been resumed it is safe to move all the pending ready
  46795. tasks from this list into their appropriate ready list. */
  46796. taskENTER_CRITICAL();
  46797. 801380e: f001 fd83 bl 8015318 <vPortEnterCritical>
  46798. {
  46799. --uxSchedulerSuspended;
  46800. 8013812: 4b39 ldr r3, [pc, #228] @ (80138f8 <xTaskResumeAll+0x118>)
  46801. 8013814: 681b ldr r3, [r3, #0]
  46802. 8013816: 3b01 subs r3, #1
  46803. 8013818: 4a37 ldr r2, [pc, #220] @ (80138f8 <xTaskResumeAll+0x118>)
  46804. 801381a: 6013 str r3, [r2, #0]
  46805. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  46806. 801381c: 4b36 ldr r3, [pc, #216] @ (80138f8 <xTaskResumeAll+0x118>)
  46807. 801381e: 681b ldr r3, [r3, #0]
  46808. 8013820: 2b00 cmp r3, #0
  46809. 8013822: d162 bne.n 80138ea <xTaskResumeAll+0x10a>
  46810. {
  46811. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  46812. 8013824: 4b35 ldr r3, [pc, #212] @ (80138fc <xTaskResumeAll+0x11c>)
  46813. 8013826: 681b ldr r3, [r3, #0]
  46814. 8013828: 2b00 cmp r3, #0
  46815. 801382a: d05e beq.n 80138ea <xTaskResumeAll+0x10a>
  46816. {
  46817. /* Move any readied tasks from the pending list into the
  46818. appropriate ready list. */
  46819. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  46820. 801382c: e02f b.n 801388e <xTaskResumeAll+0xae>
  46821. {
  46822. 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. */
  46823. 801382e: 4b34 ldr r3, [pc, #208] @ (8013900 <xTaskResumeAll+0x120>)
  46824. 8013830: 68db ldr r3, [r3, #12]
  46825. 8013832: 68db ldr r3, [r3, #12]
  46826. 8013834: 60fb str r3, [r7, #12]
  46827. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  46828. 8013836: 68fb ldr r3, [r7, #12]
  46829. 8013838: 3318 adds r3, #24
  46830. 801383a: 4618 mov r0, r3
  46831. 801383c: f7fe f87a bl 8011934 <uxListRemove>
  46832. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  46833. 8013840: 68fb ldr r3, [r7, #12]
  46834. 8013842: 3304 adds r3, #4
  46835. 8013844: 4618 mov r0, r3
  46836. 8013846: f7fe f875 bl 8011934 <uxListRemove>
  46837. prvAddTaskToReadyList( pxTCB );
  46838. 801384a: 68fb ldr r3, [r7, #12]
  46839. 801384c: 6ada ldr r2, [r3, #44] @ 0x2c
  46840. 801384e: 4b2d ldr r3, [pc, #180] @ (8013904 <xTaskResumeAll+0x124>)
  46841. 8013850: 681b ldr r3, [r3, #0]
  46842. 8013852: 429a cmp r2, r3
  46843. 8013854: d903 bls.n 801385e <xTaskResumeAll+0x7e>
  46844. 8013856: 68fb ldr r3, [r7, #12]
  46845. 8013858: 6adb ldr r3, [r3, #44] @ 0x2c
  46846. 801385a: 4a2a ldr r2, [pc, #168] @ (8013904 <xTaskResumeAll+0x124>)
  46847. 801385c: 6013 str r3, [r2, #0]
  46848. 801385e: 68fb ldr r3, [r7, #12]
  46849. 8013860: 6ada ldr r2, [r3, #44] @ 0x2c
  46850. 8013862: 4613 mov r3, r2
  46851. 8013864: 009b lsls r3, r3, #2
  46852. 8013866: 4413 add r3, r2
  46853. 8013868: 009b lsls r3, r3, #2
  46854. 801386a: 4a27 ldr r2, [pc, #156] @ (8013908 <xTaskResumeAll+0x128>)
  46855. 801386c: 441a add r2, r3
  46856. 801386e: 68fb ldr r3, [r7, #12]
  46857. 8013870: 3304 adds r3, #4
  46858. 8013872: 4619 mov r1, r3
  46859. 8013874: 4610 mov r0, r2
  46860. 8013876: f7fe f800 bl 801187a <vListInsertEnd>
  46861. /* If the moved task has a priority higher than the current
  46862. task then a yield must be performed. */
  46863. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  46864. 801387a: 68fb ldr r3, [r7, #12]
  46865. 801387c: 6ada ldr r2, [r3, #44] @ 0x2c
  46866. 801387e: 4b23 ldr r3, [pc, #140] @ (801390c <xTaskResumeAll+0x12c>)
  46867. 8013880: 681b ldr r3, [r3, #0]
  46868. 8013882: 6adb ldr r3, [r3, #44] @ 0x2c
  46869. 8013884: 429a cmp r2, r3
  46870. 8013886: d302 bcc.n 801388e <xTaskResumeAll+0xae>
  46871. {
  46872. xYieldPending = pdTRUE;
  46873. 8013888: 4b21 ldr r3, [pc, #132] @ (8013910 <xTaskResumeAll+0x130>)
  46874. 801388a: 2201 movs r2, #1
  46875. 801388c: 601a str r2, [r3, #0]
  46876. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  46877. 801388e: 4b1c ldr r3, [pc, #112] @ (8013900 <xTaskResumeAll+0x120>)
  46878. 8013890: 681b ldr r3, [r3, #0]
  46879. 8013892: 2b00 cmp r3, #0
  46880. 8013894: d1cb bne.n 801382e <xTaskResumeAll+0x4e>
  46881. {
  46882. mtCOVERAGE_TEST_MARKER();
  46883. }
  46884. }
  46885. if( pxTCB != NULL )
  46886. 8013896: 68fb ldr r3, [r7, #12]
  46887. 8013898: 2b00 cmp r3, #0
  46888. 801389a: d001 beq.n 80138a0 <xTaskResumeAll+0xc0>
  46889. which may have prevented the next unblock time from being
  46890. re-calculated, in which case re-calculate it now. Mainly
  46891. important for low power tickless implementations, where
  46892. this can prevent an unnecessary exit from low power
  46893. state. */
  46894. prvResetNextTaskUnblockTime();
  46895. 801389c: f000 fbae bl 8013ffc <prvResetNextTaskUnblockTime>
  46896. /* If any ticks occurred while the scheduler was suspended then
  46897. they should be processed now. This ensures the tick count does
  46898. not slip, and that any delayed tasks are resumed at the correct
  46899. time. */
  46900. {
  46901. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  46902. 80138a0: 4b1c ldr r3, [pc, #112] @ (8013914 <xTaskResumeAll+0x134>)
  46903. 80138a2: 681b ldr r3, [r3, #0]
  46904. 80138a4: 607b str r3, [r7, #4]
  46905. if( xPendedCounts > ( TickType_t ) 0U )
  46906. 80138a6: 687b ldr r3, [r7, #4]
  46907. 80138a8: 2b00 cmp r3, #0
  46908. 80138aa: d010 beq.n 80138ce <xTaskResumeAll+0xee>
  46909. {
  46910. do
  46911. {
  46912. if( xTaskIncrementTick() != pdFALSE )
  46913. 80138ac: f000 f858 bl 8013960 <xTaskIncrementTick>
  46914. 80138b0: 4603 mov r3, r0
  46915. 80138b2: 2b00 cmp r3, #0
  46916. 80138b4: d002 beq.n 80138bc <xTaskResumeAll+0xdc>
  46917. {
  46918. xYieldPending = pdTRUE;
  46919. 80138b6: 4b16 ldr r3, [pc, #88] @ (8013910 <xTaskResumeAll+0x130>)
  46920. 80138b8: 2201 movs r2, #1
  46921. 80138ba: 601a str r2, [r3, #0]
  46922. }
  46923. else
  46924. {
  46925. mtCOVERAGE_TEST_MARKER();
  46926. }
  46927. --xPendedCounts;
  46928. 80138bc: 687b ldr r3, [r7, #4]
  46929. 80138be: 3b01 subs r3, #1
  46930. 80138c0: 607b str r3, [r7, #4]
  46931. } while( xPendedCounts > ( TickType_t ) 0U );
  46932. 80138c2: 687b ldr r3, [r7, #4]
  46933. 80138c4: 2b00 cmp r3, #0
  46934. 80138c6: d1f1 bne.n 80138ac <xTaskResumeAll+0xcc>
  46935. xPendedTicks = 0;
  46936. 80138c8: 4b12 ldr r3, [pc, #72] @ (8013914 <xTaskResumeAll+0x134>)
  46937. 80138ca: 2200 movs r2, #0
  46938. 80138cc: 601a str r2, [r3, #0]
  46939. {
  46940. mtCOVERAGE_TEST_MARKER();
  46941. }
  46942. }
  46943. if( xYieldPending != pdFALSE )
  46944. 80138ce: 4b10 ldr r3, [pc, #64] @ (8013910 <xTaskResumeAll+0x130>)
  46945. 80138d0: 681b ldr r3, [r3, #0]
  46946. 80138d2: 2b00 cmp r3, #0
  46947. 80138d4: d009 beq.n 80138ea <xTaskResumeAll+0x10a>
  46948. {
  46949. #if( configUSE_PREEMPTION != 0 )
  46950. {
  46951. xAlreadyYielded = pdTRUE;
  46952. 80138d6: 2301 movs r3, #1
  46953. 80138d8: 60bb str r3, [r7, #8]
  46954. }
  46955. #endif
  46956. taskYIELD_IF_USING_PREEMPTION();
  46957. 80138da: 4b0f ldr r3, [pc, #60] @ (8013918 <xTaskResumeAll+0x138>)
  46958. 80138dc: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46959. 80138e0: 601a str r2, [r3, #0]
  46960. 80138e2: f3bf 8f4f dsb sy
  46961. 80138e6: f3bf 8f6f isb sy
  46962. else
  46963. {
  46964. mtCOVERAGE_TEST_MARKER();
  46965. }
  46966. }
  46967. taskEXIT_CRITICAL();
  46968. 80138ea: f001 fd47 bl 801537c <vPortExitCritical>
  46969. return xAlreadyYielded;
  46970. 80138ee: 68bb ldr r3, [r7, #8]
  46971. }
  46972. 80138f0: 4618 mov r0, r3
  46973. 80138f2: 3710 adds r7, #16
  46974. 80138f4: 46bd mov sp, r7
  46975. 80138f6: bd80 pop {r7, pc}
  46976. 80138f8: 2400425c .word 0x2400425c
  46977. 80138fc: 24004234 .word 0x24004234
  46978. 8013900: 240041f4 .word 0x240041f4
  46979. 8013904: 2400423c .word 0x2400423c
  46980. 8013908: 24003d64 .word 0x24003d64
  46981. 801390c: 24003d60 .word 0x24003d60
  46982. 8013910: 24004248 .word 0x24004248
  46983. 8013914: 24004244 .word 0x24004244
  46984. 8013918: e000ed04 .word 0xe000ed04
  46985. 0801391c <xTaskGetTickCount>:
  46986. /*-----------------------------------------------------------*/
  46987. TickType_t xTaskGetTickCount( void )
  46988. {
  46989. 801391c: b480 push {r7}
  46990. 801391e: b083 sub sp, #12
  46991. 8013920: af00 add r7, sp, #0
  46992. TickType_t xTicks;
  46993. /* Critical section required if running on a 16 bit processor. */
  46994. portTICK_TYPE_ENTER_CRITICAL();
  46995. {
  46996. xTicks = xTickCount;
  46997. 8013922: 4b05 ldr r3, [pc, #20] @ (8013938 <xTaskGetTickCount+0x1c>)
  46998. 8013924: 681b ldr r3, [r3, #0]
  46999. 8013926: 607b str r3, [r7, #4]
  47000. }
  47001. portTICK_TYPE_EXIT_CRITICAL();
  47002. return xTicks;
  47003. 8013928: 687b ldr r3, [r7, #4]
  47004. }
  47005. 801392a: 4618 mov r0, r3
  47006. 801392c: 370c adds r7, #12
  47007. 801392e: 46bd mov sp, r7
  47008. 8013930: f85d 7b04 ldr.w r7, [sp], #4
  47009. 8013934: 4770 bx lr
  47010. 8013936: bf00 nop
  47011. 8013938: 24004238 .word 0x24004238
  47012. 0801393c <xTaskGetTickCountFromISR>:
  47013. /*-----------------------------------------------------------*/
  47014. TickType_t xTaskGetTickCountFromISR( void )
  47015. {
  47016. 801393c: b580 push {r7, lr}
  47017. 801393e: b082 sub sp, #8
  47018. 8013940: af00 add r7, sp, #0
  47019. that have been assigned a priority at or (logically) below the maximum
  47020. system call interrupt priority. FreeRTOS maintains a separate interrupt
  47021. safe API to ensure interrupt entry is as fast and as simple as possible.
  47022. More information (albeit Cortex-M specific) is provided on the following
  47023. link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */
  47024. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  47025. 8013942: f001 fdc9 bl 80154d8 <vPortValidateInterruptPriority>
  47026. uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR();
  47027. 8013946: 2300 movs r3, #0
  47028. 8013948: 607b str r3, [r7, #4]
  47029. {
  47030. xReturn = xTickCount;
  47031. 801394a: 4b04 ldr r3, [pc, #16] @ (801395c <xTaskGetTickCountFromISR+0x20>)
  47032. 801394c: 681b ldr r3, [r3, #0]
  47033. 801394e: 603b str r3, [r7, #0]
  47034. }
  47035. portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  47036. return xReturn;
  47037. 8013950: 683b ldr r3, [r7, #0]
  47038. }
  47039. 8013952: 4618 mov r0, r3
  47040. 8013954: 3708 adds r7, #8
  47041. 8013956: 46bd mov sp, r7
  47042. 8013958: bd80 pop {r7, pc}
  47043. 801395a: bf00 nop
  47044. 801395c: 24004238 .word 0x24004238
  47045. 08013960 <xTaskIncrementTick>:
  47046. #endif /* INCLUDE_xTaskAbortDelay */
  47047. /*----------------------------------------------------------*/
  47048. BaseType_t xTaskIncrementTick( void )
  47049. {
  47050. 8013960: b580 push {r7, lr}
  47051. 8013962: b086 sub sp, #24
  47052. 8013964: af00 add r7, sp, #0
  47053. TCB_t * pxTCB;
  47054. TickType_t xItemValue;
  47055. BaseType_t xSwitchRequired = pdFALSE;
  47056. 8013966: 2300 movs r3, #0
  47057. 8013968: 617b str r3, [r7, #20]
  47058. /* Called by the portable layer each time a tick interrupt occurs.
  47059. Increments the tick then checks to see if the new tick value will cause any
  47060. tasks to be unblocked. */
  47061. traceTASK_INCREMENT_TICK( xTickCount );
  47062. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  47063. 801396a: 4b4f ldr r3, [pc, #316] @ (8013aa8 <xTaskIncrementTick+0x148>)
  47064. 801396c: 681b ldr r3, [r3, #0]
  47065. 801396e: 2b00 cmp r3, #0
  47066. 8013970: f040 8090 bne.w 8013a94 <xTaskIncrementTick+0x134>
  47067. {
  47068. /* Minor optimisation. The tick count cannot change in this
  47069. block. */
  47070. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  47071. 8013974: 4b4d ldr r3, [pc, #308] @ (8013aac <xTaskIncrementTick+0x14c>)
  47072. 8013976: 681b ldr r3, [r3, #0]
  47073. 8013978: 3301 adds r3, #1
  47074. 801397a: 613b str r3, [r7, #16]
  47075. /* Increment the RTOS tick, switching the delayed and overflowed
  47076. delayed lists if it wraps to 0. */
  47077. xTickCount = xConstTickCount;
  47078. 801397c: 4a4b ldr r2, [pc, #300] @ (8013aac <xTaskIncrementTick+0x14c>)
  47079. 801397e: 693b ldr r3, [r7, #16]
  47080. 8013980: 6013 str r3, [r2, #0]
  47081. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  47082. 8013982: 693b ldr r3, [r7, #16]
  47083. 8013984: 2b00 cmp r3, #0
  47084. 8013986: d121 bne.n 80139cc <xTaskIncrementTick+0x6c>
  47085. {
  47086. taskSWITCH_DELAYED_LISTS();
  47087. 8013988: 4b49 ldr r3, [pc, #292] @ (8013ab0 <xTaskIncrementTick+0x150>)
  47088. 801398a: 681b ldr r3, [r3, #0]
  47089. 801398c: 681b ldr r3, [r3, #0]
  47090. 801398e: 2b00 cmp r3, #0
  47091. 8013990: d00b beq.n 80139aa <xTaskIncrementTick+0x4a>
  47092. __asm volatile
  47093. 8013992: f04f 0350 mov.w r3, #80 @ 0x50
  47094. 8013996: f383 8811 msr BASEPRI, r3
  47095. 801399a: f3bf 8f6f isb sy
  47096. 801399e: f3bf 8f4f dsb sy
  47097. 80139a2: 603b str r3, [r7, #0]
  47098. }
  47099. 80139a4: bf00 nop
  47100. 80139a6: bf00 nop
  47101. 80139a8: e7fd b.n 80139a6 <xTaskIncrementTick+0x46>
  47102. 80139aa: 4b41 ldr r3, [pc, #260] @ (8013ab0 <xTaskIncrementTick+0x150>)
  47103. 80139ac: 681b ldr r3, [r3, #0]
  47104. 80139ae: 60fb str r3, [r7, #12]
  47105. 80139b0: 4b40 ldr r3, [pc, #256] @ (8013ab4 <xTaskIncrementTick+0x154>)
  47106. 80139b2: 681b ldr r3, [r3, #0]
  47107. 80139b4: 4a3e ldr r2, [pc, #248] @ (8013ab0 <xTaskIncrementTick+0x150>)
  47108. 80139b6: 6013 str r3, [r2, #0]
  47109. 80139b8: 4a3e ldr r2, [pc, #248] @ (8013ab4 <xTaskIncrementTick+0x154>)
  47110. 80139ba: 68fb ldr r3, [r7, #12]
  47111. 80139bc: 6013 str r3, [r2, #0]
  47112. 80139be: 4b3e ldr r3, [pc, #248] @ (8013ab8 <xTaskIncrementTick+0x158>)
  47113. 80139c0: 681b ldr r3, [r3, #0]
  47114. 80139c2: 3301 adds r3, #1
  47115. 80139c4: 4a3c ldr r2, [pc, #240] @ (8013ab8 <xTaskIncrementTick+0x158>)
  47116. 80139c6: 6013 str r3, [r2, #0]
  47117. 80139c8: f000 fb18 bl 8013ffc <prvResetNextTaskUnblockTime>
  47118. /* See if this tick has made a timeout expire. Tasks are stored in
  47119. the queue in the order of their wake time - meaning once one task
  47120. has been found whose block time has not expired there is no need to
  47121. look any further down the list. */
  47122. if( xConstTickCount >= xNextTaskUnblockTime )
  47123. 80139cc: 4b3b ldr r3, [pc, #236] @ (8013abc <xTaskIncrementTick+0x15c>)
  47124. 80139ce: 681b ldr r3, [r3, #0]
  47125. 80139d0: 693a ldr r2, [r7, #16]
  47126. 80139d2: 429a cmp r2, r3
  47127. 80139d4: d349 bcc.n 8013a6a <xTaskIncrementTick+0x10a>
  47128. {
  47129. for( ;; )
  47130. {
  47131. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  47132. 80139d6: 4b36 ldr r3, [pc, #216] @ (8013ab0 <xTaskIncrementTick+0x150>)
  47133. 80139d8: 681b ldr r3, [r3, #0]
  47134. 80139da: 681b ldr r3, [r3, #0]
  47135. 80139dc: 2b00 cmp r3, #0
  47136. 80139de: d104 bne.n 80139ea <xTaskIncrementTick+0x8a>
  47137. /* The delayed list is empty. Set xNextTaskUnblockTime
  47138. to the maximum possible value so it is extremely
  47139. unlikely that the
  47140. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  47141. next time through. */
  47142. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  47143. 80139e0: 4b36 ldr r3, [pc, #216] @ (8013abc <xTaskIncrementTick+0x15c>)
  47144. 80139e2: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  47145. 80139e6: 601a str r2, [r3, #0]
  47146. break;
  47147. 80139e8: e03f b.n 8013a6a <xTaskIncrementTick+0x10a>
  47148. {
  47149. /* The delayed list is not empty, get the value of the
  47150. item at the head of the delayed list. This is the time
  47151. at which the task at the head of the delayed list must
  47152. be removed from the Blocked state. */
  47153. 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. */
  47154. 80139ea: 4b31 ldr r3, [pc, #196] @ (8013ab0 <xTaskIncrementTick+0x150>)
  47155. 80139ec: 681b ldr r3, [r3, #0]
  47156. 80139ee: 68db ldr r3, [r3, #12]
  47157. 80139f0: 68db ldr r3, [r3, #12]
  47158. 80139f2: 60bb str r3, [r7, #8]
  47159. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  47160. 80139f4: 68bb ldr r3, [r7, #8]
  47161. 80139f6: 685b ldr r3, [r3, #4]
  47162. 80139f8: 607b str r3, [r7, #4]
  47163. if( xConstTickCount < xItemValue )
  47164. 80139fa: 693a ldr r2, [r7, #16]
  47165. 80139fc: 687b ldr r3, [r7, #4]
  47166. 80139fe: 429a cmp r2, r3
  47167. 8013a00: d203 bcs.n 8013a0a <xTaskIncrementTick+0xaa>
  47168. /* It is not time to unblock this item yet, but the
  47169. item value is the time at which the task at the head
  47170. of the blocked list must be removed from the Blocked
  47171. state - so record the item value in
  47172. xNextTaskUnblockTime. */
  47173. xNextTaskUnblockTime = xItemValue;
  47174. 8013a02: 4a2e ldr r2, [pc, #184] @ (8013abc <xTaskIncrementTick+0x15c>)
  47175. 8013a04: 687b ldr r3, [r7, #4]
  47176. 8013a06: 6013 str r3, [r2, #0]
  47177. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  47178. 8013a08: e02f b.n 8013a6a <xTaskIncrementTick+0x10a>
  47179. {
  47180. mtCOVERAGE_TEST_MARKER();
  47181. }
  47182. /* It is time to remove the item from the Blocked state. */
  47183. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  47184. 8013a0a: 68bb ldr r3, [r7, #8]
  47185. 8013a0c: 3304 adds r3, #4
  47186. 8013a0e: 4618 mov r0, r3
  47187. 8013a10: f7fd ff90 bl 8011934 <uxListRemove>
  47188. /* Is the task waiting on an event also? If so remove
  47189. it from the event list. */
  47190. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  47191. 8013a14: 68bb ldr r3, [r7, #8]
  47192. 8013a16: 6a9b ldr r3, [r3, #40] @ 0x28
  47193. 8013a18: 2b00 cmp r3, #0
  47194. 8013a1a: d004 beq.n 8013a26 <xTaskIncrementTick+0xc6>
  47195. {
  47196. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  47197. 8013a1c: 68bb ldr r3, [r7, #8]
  47198. 8013a1e: 3318 adds r3, #24
  47199. 8013a20: 4618 mov r0, r3
  47200. 8013a22: f7fd ff87 bl 8011934 <uxListRemove>
  47201. mtCOVERAGE_TEST_MARKER();
  47202. }
  47203. /* Place the unblocked task into the appropriate ready
  47204. list. */
  47205. prvAddTaskToReadyList( pxTCB );
  47206. 8013a26: 68bb ldr r3, [r7, #8]
  47207. 8013a28: 6ada ldr r2, [r3, #44] @ 0x2c
  47208. 8013a2a: 4b25 ldr r3, [pc, #148] @ (8013ac0 <xTaskIncrementTick+0x160>)
  47209. 8013a2c: 681b ldr r3, [r3, #0]
  47210. 8013a2e: 429a cmp r2, r3
  47211. 8013a30: d903 bls.n 8013a3a <xTaskIncrementTick+0xda>
  47212. 8013a32: 68bb ldr r3, [r7, #8]
  47213. 8013a34: 6adb ldr r3, [r3, #44] @ 0x2c
  47214. 8013a36: 4a22 ldr r2, [pc, #136] @ (8013ac0 <xTaskIncrementTick+0x160>)
  47215. 8013a38: 6013 str r3, [r2, #0]
  47216. 8013a3a: 68bb ldr r3, [r7, #8]
  47217. 8013a3c: 6ada ldr r2, [r3, #44] @ 0x2c
  47218. 8013a3e: 4613 mov r3, r2
  47219. 8013a40: 009b lsls r3, r3, #2
  47220. 8013a42: 4413 add r3, r2
  47221. 8013a44: 009b lsls r3, r3, #2
  47222. 8013a46: 4a1f ldr r2, [pc, #124] @ (8013ac4 <xTaskIncrementTick+0x164>)
  47223. 8013a48: 441a add r2, r3
  47224. 8013a4a: 68bb ldr r3, [r7, #8]
  47225. 8013a4c: 3304 adds r3, #4
  47226. 8013a4e: 4619 mov r1, r3
  47227. 8013a50: 4610 mov r0, r2
  47228. 8013a52: f7fd ff12 bl 801187a <vListInsertEnd>
  47229. {
  47230. /* Preemption is on, but a context switch should
  47231. only be performed if the unblocked task has a
  47232. priority that is equal to or higher than the
  47233. currently executing task. */
  47234. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  47235. 8013a56: 68bb ldr r3, [r7, #8]
  47236. 8013a58: 6ada ldr r2, [r3, #44] @ 0x2c
  47237. 8013a5a: 4b1b ldr r3, [pc, #108] @ (8013ac8 <xTaskIncrementTick+0x168>)
  47238. 8013a5c: 681b ldr r3, [r3, #0]
  47239. 8013a5e: 6adb ldr r3, [r3, #44] @ 0x2c
  47240. 8013a60: 429a cmp r2, r3
  47241. 8013a62: d3b8 bcc.n 80139d6 <xTaskIncrementTick+0x76>
  47242. {
  47243. xSwitchRequired = pdTRUE;
  47244. 8013a64: 2301 movs r3, #1
  47245. 8013a66: 617b str r3, [r7, #20]
  47246. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  47247. 8013a68: e7b5 b.n 80139d6 <xTaskIncrementTick+0x76>
  47248. /* Tasks of equal priority to the currently running task will share
  47249. processing time (time slice) if preemption is on, and the application
  47250. writer has not explicitly turned time slicing off. */
  47251. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  47252. {
  47253. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  47254. 8013a6a: 4b17 ldr r3, [pc, #92] @ (8013ac8 <xTaskIncrementTick+0x168>)
  47255. 8013a6c: 681b ldr r3, [r3, #0]
  47256. 8013a6e: 6ada ldr r2, [r3, #44] @ 0x2c
  47257. 8013a70: 4914 ldr r1, [pc, #80] @ (8013ac4 <xTaskIncrementTick+0x164>)
  47258. 8013a72: 4613 mov r3, r2
  47259. 8013a74: 009b lsls r3, r3, #2
  47260. 8013a76: 4413 add r3, r2
  47261. 8013a78: 009b lsls r3, r3, #2
  47262. 8013a7a: 440b add r3, r1
  47263. 8013a7c: 681b ldr r3, [r3, #0]
  47264. 8013a7e: 2b01 cmp r3, #1
  47265. 8013a80: d901 bls.n 8013a86 <xTaskIncrementTick+0x126>
  47266. {
  47267. xSwitchRequired = pdTRUE;
  47268. 8013a82: 2301 movs r3, #1
  47269. 8013a84: 617b str r3, [r7, #20]
  47270. }
  47271. #endif /* configUSE_TICK_HOOK */
  47272. #if ( configUSE_PREEMPTION == 1 )
  47273. {
  47274. if( xYieldPending != pdFALSE )
  47275. 8013a86: 4b11 ldr r3, [pc, #68] @ (8013acc <xTaskIncrementTick+0x16c>)
  47276. 8013a88: 681b ldr r3, [r3, #0]
  47277. 8013a8a: 2b00 cmp r3, #0
  47278. 8013a8c: d007 beq.n 8013a9e <xTaskIncrementTick+0x13e>
  47279. {
  47280. xSwitchRequired = pdTRUE;
  47281. 8013a8e: 2301 movs r3, #1
  47282. 8013a90: 617b str r3, [r7, #20]
  47283. 8013a92: e004 b.n 8013a9e <xTaskIncrementTick+0x13e>
  47284. }
  47285. #endif /* configUSE_PREEMPTION */
  47286. }
  47287. else
  47288. {
  47289. ++xPendedTicks;
  47290. 8013a94: 4b0e ldr r3, [pc, #56] @ (8013ad0 <xTaskIncrementTick+0x170>)
  47291. 8013a96: 681b ldr r3, [r3, #0]
  47292. 8013a98: 3301 adds r3, #1
  47293. 8013a9a: 4a0d ldr r2, [pc, #52] @ (8013ad0 <xTaskIncrementTick+0x170>)
  47294. 8013a9c: 6013 str r3, [r2, #0]
  47295. vApplicationTickHook();
  47296. }
  47297. #endif
  47298. }
  47299. return xSwitchRequired;
  47300. 8013a9e: 697b ldr r3, [r7, #20]
  47301. }
  47302. 8013aa0: 4618 mov r0, r3
  47303. 8013aa2: 3718 adds r7, #24
  47304. 8013aa4: 46bd mov sp, r7
  47305. 8013aa6: bd80 pop {r7, pc}
  47306. 8013aa8: 2400425c .word 0x2400425c
  47307. 8013aac: 24004238 .word 0x24004238
  47308. 8013ab0: 240041ec .word 0x240041ec
  47309. 8013ab4: 240041f0 .word 0x240041f0
  47310. 8013ab8: 2400424c .word 0x2400424c
  47311. 8013abc: 24004254 .word 0x24004254
  47312. 8013ac0: 2400423c .word 0x2400423c
  47313. 8013ac4: 24003d64 .word 0x24003d64
  47314. 8013ac8: 24003d60 .word 0x24003d60
  47315. 8013acc: 24004248 .word 0x24004248
  47316. 8013ad0: 24004244 .word 0x24004244
  47317. 08013ad4 <vTaskSwitchContext>:
  47318. #endif /* configUSE_APPLICATION_TASK_TAG */
  47319. /*-----------------------------------------------------------*/
  47320. void vTaskSwitchContext( void )
  47321. {
  47322. 8013ad4: b580 push {r7, lr}
  47323. 8013ad6: b084 sub sp, #16
  47324. 8013ad8: af00 add r7, sp, #0
  47325. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  47326. 8013ada: 4b32 ldr r3, [pc, #200] @ (8013ba4 <vTaskSwitchContext+0xd0>)
  47327. 8013adc: 681b ldr r3, [r3, #0]
  47328. 8013ade: 2b00 cmp r3, #0
  47329. 8013ae0: d003 beq.n 8013aea <vTaskSwitchContext+0x16>
  47330. {
  47331. /* The scheduler is currently suspended - do not allow a context
  47332. switch. */
  47333. xYieldPending = pdTRUE;
  47334. 8013ae2: 4b31 ldr r3, [pc, #196] @ (8013ba8 <vTaskSwitchContext+0xd4>)
  47335. 8013ae4: 2201 movs r2, #1
  47336. 8013ae6: 601a str r2, [r3, #0]
  47337. for additional information. */
  47338. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  47339. }
  47340. #endif /* configUSE_NEWLIB_REENTRANT */
  47341. }
  47342. }
  47343. 8013ae8: e058 b.n 8013b9c <vTaskSwitchContext+0xc8>
  47344. xYieldPending = pdFALSE;
  47345. 8013aea: 4b2f ldr r3, [pc, #188] @ (8013ba8 <vTaskSwitchContext+0xd4>)
  47346. 8013aec: 2200 movs r2, #0
  47347. 8013aee: 601a str r2, [r3, #0]
  47348. taskCHECK_FOR_STACK_OVERFLOW();
  47349. 8013af0: 4b2e ldr r3, [pc, #184] @ (8013bac <vTaskSwitchContext+0xd8>)
  47350. 8013af2: 681b ldr r3, [r3, #0]
  47351. 8013af4: 681a ldr r2, [r3, #0]
  47352. 8013af6: 4b2d ldr r3, [pc, #180] @ (8013bac <vTaskSwitchContext+0xd8>)
  47353. 8013af8: 681b ldr r3, [r3, #0]
  47354. 8013afa: 6b1b ldr r3, [r3, #48] @ 0x30
  47355. 8013afc: 429a cmp r2, r3
  47356. 8013afe: d808 bhi.n 8013b12 <vTaskSwitchContext+0x3e>
  47357. 8013b00: 4b2a ldr r3, [pc, #168] @ (8013bac <vTaskSwitchContext+0xd8>)
  47358. 8013b02: 681a ldr r2, [r3, #0]
  47359. 8013b04: 4b29 ldr r3, [pc, #164] @ (8013bac <vTaskSwitchContext+0xd8>)
  47360. 8013b06: 681b ldr r3, [r3, #0]
  47361. 8013b08: 3334 adds r3, #52 @ 0x34
  47362. 8013b0a: 4619 mov r1, r3
  47363. 8013b0c: 4610 mov r0, r2
  47364. 8013b0e: f7ee f8c8 bl 8001ca2 <vApplicationStackOverflowHook>
  47365. 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. */
  47366. 8013b12: 4b27 ldr r3, [pc, #156] @ (8013bb0 <vTaskSwitchContext+0xdc>)
  47367. 8013b14: 681b ldr r3, [r3, #0]
  47368. 8013b16: 60fb str r3, [r7, #12]
  47369. 8013b18: e011 b.n 8013b3e <vTaskSwitchContext+0x6a>
  47370. 8013b1a: 68fb ldr r3, [r7, #12]
  47371. 8013b1c: 2b00 cmp r3, #0
  47372. 8013b1e: d10b bne.n 8013b38 <vTaskSwitchContext+0x64>
  47373. __asm volatile
  47374. 8013b20: f04f 0350 mov.w r3, #80 @ 0x50
  47375. 8013b24: f383 8811 msr BASEPRI, r3
  47376. 8013b28: f3bf 8f6f isb sy
  47377. 8013b2c: f3bf 8f4f dsb sy
  47378. 8013b30: 607b str r3, [r7, #4]
  47379. }
  47380. 8013b32: bf00 nop
  47381. 8013b34: bf00 nop
  47382. 8013b36: e7fd b.n 8013b34 <vTaskSwitchContext+0x60>
  47383. 8013b38: 68fb ldr r3, [r7, #12]
  47384. 8013b3a: 3b01 subs r3, #1
  47385. 8013b3c: 60fb str r3, [r7, #12]
  47386. 8013b3e: 491d ldr r1, [pc, #116] @ (8013bb4 <vTaskSwitchContext+0xe0>)
  47387. 8013b40: 68fa ldr r2, [r7, #12]
  47388. 8013b42: 4613 mov r3, r2
  47389. 8013b44: 009b lsls r3, r3, #2
  47390. 8013b46: 4413 add r3, r2
  47391. 8013b48: 009b lsls r3, r3, #2
  47392. 8013b4a: 440b add r3, r1
  47393. 8013b4c: 681b ldr r3, [r3, #0]
  47394. 8013b4e: 2b00 cmp r3, #0
  47395. 8013b50: d0e3 beq.n 8013b1a <vTaskSwitchContext+0x46>
  47396. 8013b52: 68fa ldr r2, [r7, #12]
  47397. 8013b54: 4613 mov r3, r2
  47398. 8013b56: 009b lsls r3, r3, #2
  47399. 8013b58: 4413 add r3, r2
  47400. 8013b5a: 009b lsls r3, r3, #2
  47401. 8013b5c: 4a15 ldr r2, [pc, #84] @ (8013bb4 <vTaskSwitchContext+0xe0>)
  47402. 8013b5e: 4413 add r3, r2
  47403. 8013b60: 60bb str r3, [r7, #8]
  47404. 8013b62: 68bb ldr r3, [r7, #8]
  47405. 8013b64: 685b ldr r3, [r3, #4]
  47406. 8013b66: 685a ldr r2, [r3, #4]
  47407. 8013b68: 68bb ldr r3, [r7, #8]
  47408. 8013b6a: 605a str r2, [r3, #4]
  47409. 8013b6c: 68bb ldr r3, [r7, #8]
  47410. 8013b6e: 685a ldr r2, [r3, #4]
  47411. 8013b70: 68bb ldr r3, [r7, #8]
  47412. 8013b72: 3308 adds r3, #8
  47413. 8013b74: 429a cmp r2, r3
  47414. 8013b76: d104 bne.n 8013b82 <vTaskSwitchContext+0xae>
  47415. 8013b78: 68bb ldr r3, [r7, #8]
  47416. 8013b7a: 685b ldr r3, [r3, #4]
  47417. 8013b7c: 685a ldr r2, [r3, #4]
  47418. 8013b7e: 68bb ldr r3, [r7, #8]
  47419. 8013b80: 605a str r2, [r3, #4]
  47420. 8013b82: 68bb ldr r3, [r7, #8]
  47421. 8013b84: 685b ldr r3, [r3, #4]
  47422. 8013b86: 68db ldr r3, [r3, #12]
  47423. 8013b88: 4a08 ldr r2, [pc, #32] @ (8013bac <vTaskSwitchContext+0xd8>)
  47424. 8013b8a: 6013 str r3, [r2, #0]
  47425. 8013b8c: 4a08 ldr r2, [pc, #32] @ (8013bb0 <vTaskSwitchContext+0xdc>)
  47426. 8013b8e: 68fb ldr r3, [r7, #12]
  47427. 8013b90: 6013 str r3, [r2, #0]
  47428. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  47429. 8013b92: 4b06 ldr r3, [pc, #24] @ (8013bac <vTaskSwitchContext+0xd8>)
  47430. 8013b94: 681b ldr r3, [r3, #0]
  47431. 8013b96: 3354 adds r3, #84 @ 0x54
  47432. 8013b98: 4a07 ldr r2, [pc, #28] @ (8013bb8 <vTaskSwitchContext+0xe4>)
  47433. 8013b9a: 6013 str r3, [r2, #0]
  47434. }
  47435. 8013b9c: bf00 nop
  47436. 8013b9e: 3710 adds r7, #16
  47437. 8013ba0: 46bd mov sp, r7
  47438. 8013ba2: bd80 pop {r7, pc}
  47439. 8013ba4: 2400425c .word 0x2400425c
  47440. 8013ba8: 24004248 .word 0x24004248
  47441. 8013bac: 24003d60 .word 0x24003d60
  47442. 8013bb0: 2400423c .word 0x2400423c
  47443. 8013bb4: 24003d64 .word 0x24003d64
  47444. 8013bb8: 240001d4 .word 0x240001d4
  47445. 08013bbc <vTaskPlaceOnEventList>:
  47446. /*-----------------------------------------------------------*/
  47447. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  47448. {
  47449. 8013bbc: b580 push {r7, lr}
  47450. 8013bbe: b084 sub sp, #16
  47451. 8013bc0: af00 add r7, sp, #0
  47452. 8013bc2: 6078 str r0, [r7, #4]
  47453. 8013bc4: 6039 str r1, [r7, #0]
  47454. configASSERT( pxEventList );
  47455. 8013bc6: 687b ldr r3, [r7, #4]
  47456. 8013bc8: 2b00 cmp r3, #0
  47457. 8013bca: d10b bne.n 8013be4 <vTaskPlaceOnEventList+0x28>
  47458. __asm volatile
  47459. 8013bcc: f04f 0350 mov.w r3, #80 @ 0x50
  47460. 8013bd0: f383 8811 msr BASEPRI, r3
  47461. 8013bd4: f3bf 8f6f isb sy
  47462. 8013bd8: f3bf 8f4f dsb sy
  47463. 8013bdc: 60fb str r3, [r7, #12]
  47464. }
  47465. 8013bde: bf00 nop
  47466. 8013be0: bf00 nop
  47467. 8013be2: e7fd b.n 8013be0 <vTaskPlaceOnEventList+0x24>
  47468. /* Place the event list item of the TCB in the appropriate event list.
  47469. This is placed in the list in priority order so the highest priority task
  47470. is the first to be woken by the event. The queue that contains the event
  47471. list is locked, preventing simultaneous access from interrupts. */
  47472. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  47473. 8013be4: 4b07 ldr r3, [pc, #28] @ (8013c04 <vTaskPlaceOnEventList+0x48>)
  47474. 8013be6: 681b ldr r3, [r3, #0]
  47475. 8013be8: 3318 adds r3, #24
  47476. 8013bea: 4619 mov r1, r3
  47477. 8013bec: 6878 ldr r0, [r7, #4]
  47478. 8013bee: f7fd fe68 bl 80118c2 <vListInsert>
  47479. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  47480. 8013bf2: 2101 movs r1, #1
  47481. 8013bf4: 6838 ldr r0, [r7, #0]
  47482. 8013bf6: f000 fded bl 80147d4 <prvAddCurrentTaskToDelayedList>
  47483. }
  47484. 8013bfa: bf00 nop
  47485. 8013bfc: 3710 adds r7, #16
  47486. 8013bfe: 46bd mov sp, r7
  47487. 8013c00: bd80 pop {r7, pc}
  47488. 8013c02: bf00 nop
  47489. 8013c04: 24003d60 .word 0x24003d60
  47490. 08013c08 <vTaskPlaceOnEventListRestricted>:
  47491. /*-----------------------------------------------------------*/
  47492. #if( configUSE_TIMERS == 1 )
  47493. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  47494. {
  47495. 8013c08: b580 push {r7, lr}
  47496. 8013c0a: b086 sub sp, #24
  47497. 8013c0c: af00 add r7, sp, #0
  47498. 8013c0e: 60f8 str r0, [r7, #12]
  47499. 8013c10: 60b9 str r1, [r7, #8]
  47500. 8013c12: 607a str r2, [r7, #4]
  47501. configASSERT( pxEventList );
  47502. 8013c14: 68fb ldr r3, [r7, #12]
  47503. 8013c16: 2b00 cmp r3, #0
  47504. 8013c18: d10b bne.n 8013c32 <vTaskPlaceOnEventListRestricted+0x2a>
  47505. __asm volatile
  47506. 8013c1a: f04f 0350 mov.w r3, #80 @ 0x50
  47507. 8013c1e: f383 8811 msr BASEPRI, r3
  47508. 8013c22: f3bf 8f6f isb sy
  47509. 8013c26: f3bf 8f4f dsb sy
  47510. 8013c2a: 617b str r3, [r7, #20]
  47511. }
  47512. 8013c2c: bf00 nop
  47513. 8013c2e: bf00 nop
  47514. 8013c30: e7fd b.n 8013c2e <vTaskPlaceOnEventListRestricted+0x26>
  47515. /* Place the event list item of the TCB in the appropriate event list.
  47516. In this case it is assume that this is the only task that is going to
  47517. be waiting on this event list, so the faster vListInsertEnd() function
  47518. can be used in place of vListInsert. */
  47519. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  47520. 8013c32: 4b0a ldr r3, [pc, #40] @ (8013c5c <vTaskPlaceOnEventListRestricted+0x54>)
  47521. 8013c34: 681b ldr r3, [r3, #0]
  47522. 8013c36: 3318 adds r3, #24
  47523. 8013c38: 4619 mov r1, r3
  47524. 8013c3a: 68f8 ldr r0, [r7, #12]
  47525. 8013c3c: f7fd fe1d bl 801187a <vListInsertEnd>
  47526. /* If the task should block indefinitely then set the block time to a
  47527. value that will be recognised as an indefinite delay inside the
  47528. prvAddCurrentTaskToDelayedList() function. */
  47529. if( xWaitIndefinitely != pdFALSE )
  47530. 8013c40: 687b ldr r3, [r7, #4]
  47531. 8013c42: 2b00 cmp r3, #0
  47532. 8013c44: d002 beq.n 8013c4c <vTaskPlaceOnEventListRestricted+0x44>
  47533. {
  47534. xTicksToWait = portMAX_DELAY;
  47535. 8013c46: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  47536. 8013c4a: 60bb str r3, [r7, #8]
  47537. }
  47538. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  47539. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  47540. 8013c4c: 6879 ldr r1, [r7, #4]
  47541. 8013c4e: 68b8 ldr r0, [r7, #8]
  47542. 8013c50: f000 fdc0 bl 80147d4 <prvAddCurrentTaskToDelayedList>
  47543. }
  47544. 8013c54: bf00 nop
  47545. 8013c56: 3718 adds r7, #24
  47546. 8013c58: 46bd mov sp, r7
  47547. 8013c5a: bd80 pop {r7, pc}
  47548. 8013c5c: 24003d60 .word 0x24003d60
  47549. 08013c60 <xTaskRemoveFromEventList>:
  47550. #endif /* configUSE_TIMERS */
  47551. /*-----------------------------------------------------------*/
  47552. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  47553. {
  47554. 8013c60: b580 push {r7, lr}
  47555. 8013c62: b086 sub sp, #24
  47556. 8013c64: af00 add r7, sp, #0
  47557. 8013c66: 6078 str r0, [r7, #4]
  47558. get called - the lock count on the queue will get modified instead. This
  47559. means exclusive access to the event list is guaranteed here.
  47560. This function assumes that a check has already been made to ensure that
  47561. pxEventList is not empty. */
  47562. 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. */
  47563. 8013c68: 687b ldr r3, [r7, #4]
  47564. 8013c6a: 68db ldr r3, [r3, #12]
  47565. 8013c6c: 68db ldr r3, [r3, #12]
  47566. 8013c6e: 613b str r3, [r7, #16]
  47567. configASSERT( pxUnblockedTCB );
  47568. 8013c70: 693b ldr r3, [r7, #16]
  47569. 8013c72: 2b00 cmp r3, #0
  47570. 8013c74: d10b bne.n 8013c8e <xTaskRemoveFromEventList+0x2e>
  47571. __asm volatile
  47572. 8013c76: f04f 0350 mov.w r3, #80 @ 0x50
  47573. 8013c7a: f383 8811 msr BASEPRI, r3
  47574. 8013c7e: f3bf 8f6f isb sy
  47575. 8013c82: f3bf 8f4f dsb sy
  47576. 8013c86: 60fb str r3, [r7, #12]
  47577. }
  47578. 8013c88: bf00 nop
  47579. 8013c8a: bf00 nop
  47580. 8013c8c: e7fd b.n 8013c8a <xTaskRemoveFromEventList+0x2a>
  47581. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  47582. 8013c8e: 693b ldr r3, [r7, #16]
  47583. 8013c90: 3318 adds r3, #24
  47584. 8013c92: 4618 mov r0, r3
  47585. 8013c94: f7fd fe4e bl 8011934 <uxListRemove>
  47586. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  47587. 8013c98: 4b1d ldr r3, [pc, #116] @ (8013d10 <xTaskRemoveFromEventList+0xb0>)
  47588. 8013c9a: 681b ldr r3, [r3, #0]
  47589. 8013c9c: 2b00 cmp r3, #0
  47590. 8013c9e: d11d bne.n 8013cdc <xTaskRemoveFromEventList+0x7c>
  47591. {
  47592. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  47593. 8013ca0: 693b ldr r3, [r7, #16]
  47594. 8013ca2: 3304 adds r3, #4
  47595. 8013ca4: 4618 mov r0, r3
  47596. 8013ca6: f7fd fe45 bl 8011934 <uxListRemove>
  47597. prvAddTaskToReadyList( pxUnblockedTCB );
  47598. 8013caa: 693b ldr r3, [r7, #16]
  47599. 8013cac: 6ada ldr r2, [r3, #44] @ 0x2c
  47600. 8013cae: 4b19 ldr r3, [pc, #100] @ (8013d14 <xTaskRemoveFromEventList+0xb4>)
  47601. 8013cb0: 681b ldr r3, [r3, #0]
  47602. 8013cb2: 429a cmp r2, r3
  47603. 8013cb4: d903 bls.n 8013cbe <xTaskRemoveFromEventList+0x5e>
  47604. 8013cb6: 693b ldr r3, [r7, #16]
  47605. 8013cb8: 6adb ldr r3, [r3, #44] @ 0x2c
  47606. 8013cba: 4a16 ldr r2, [pc, #88] @ (8013d14 <xTaskRemoveFromEventList+0xb4>)
  47607. 8013cbc: 6013 str r3, [r2, #0]
  47608. 8013cbe: 693b ldr r3, [r7, #16]
  47609. 8013cc0: 6ada ldr r2, [r3, #44] @ 0x2c
  47610. 8013cc2: 4613 mov r3, r2
  47611. 8013cc4: 009b lsls r3, r3, #2
  47612. 8013cc6: 4413 add r3, r2
  47613. 8013cc8: 009b lsls r3, r3, #2
  47614. 8013cca: 4a13 ldr r2, [pc, #76] @ (8013d18 <xTaskRemoveFromEventList+0xb8>)
  47615. 8013ccc: 441a add r2, r3
  47616. 8013cce: 693b ldr r3, [r7, #16]
  47617. 8013cd0: 3304 adds r3, #4
  47618. 8013cd2: 4619 mov r1, r3
  47619. 8013cd4: 4610 mov r0, r2
  47620. 8013cd6: f7fd fdd0 bl 801187a <vListInsertEnd>
  47621. 8013cda: e005 b.n 8013ce8 <xTaskRemoveFromEventList+0x88>
  47622. }
  47623. else
  47624. {
  47625. /* The delayed and ready lists cannot be accessed, so hold this task
  47626. pending until the scheduler is resumed. */
  47627. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  47628. 8013cdc: 693b ldr r3, [r7, #16]
  47629. 8013cde: 3318 adds r3, #24
  47630. 8013ce0: 4619 mov r1, r3
  47631. 8013ce2: 480e ldr r0, [pc, #56] @ (8013d1c <xTaskRemoveFromEventList+0xbc>)
  47632. 8013ce4: f7fd fdc9 bl 801187a <vListInsertEnd>
  47633. }
  47634. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  47635. 8013ce8: 693b ldr r3, [r7, #16]
  47636. 8013cea: 6ada ldr r2, [r3, #44] @ 0x2c
  47637. 8013cec: 4b0c ldr r3, [pc, #48] @ (8013d20 <xTaskRemoveFromEventList+0xc0>)
  47638. 8013cee: 681b ldr r3, [r3, #0]
  47639. 8013cf0: 6adb ldr r3, [r3, #44] @ 0x2c
  47640. 8013cf2: 429a cmp r2, r3
  47641. 8013cf4: d905 bls.n 8013d02 <xTaskRemoveFromEventList+0xa2>
  47642. {
  47643. /* Return true if the task removed from the event list has a higher
  47644. priority than the calling task. This allows the calling task to know if
  47645. it should force a context switch now. */
  47646. xReturn = pdTRUE;
  47647. 8013cf6: 2301 movs r3, #1
  47648. 8013cf8: 617b str r3, [r7, #20]
  47649. /* Mark that a yield is pending in case the user is not using the
  47650. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  47651. xYieldPending = pdTRUE;
  47652. 8013cfa: 4b0a ldr r3, [pc, #40] @ (8013d24 <xTaskRemoveFromEventList+0xc4>)
  47653. 8013cfc: 2201 movs r2, #1
  47654. 8013cfe: 601a str r2, [r3, #0]
  47655. 8013d00: e001 b.n 8013d06 <xTaskRemoveFromEventList+0xa6>
  47656. }
  47657. else
  47658. {
  47659. xReturn = pdFALSE;
  47660. 8013d02: 2300 movs r3, #0
  47661. 8013d04: 617b str r3, [r7, #20]
  47662. }
  47663. return xReturn;
  47664. 8013d06: 697b ldr r3, [r7, #20]
  47665. }
  47666. 8013d08: 4618 mov r0, r3
  47667. 8013d0a: 3718 adds r7, #24
  47668. 8013d0c: 46bd mov sp, r7
  47669. 8013d0e: bd80 pop {r7, pc}
  47670. 8013d10: 2400425c .word 0x2400425c
  47671. 8013d14: 2400423c .word 0x2400423c
  47672. 8013d18: 24003d64 .word 0x24003d64
  47673. 8013d1c: 240041f4 .word 0x240041f4
  47674. 8013d20: 24003d60 .word 0x24003d60
  47675. 8013d24: 24004248 .word 0x24004248
  47676. 08013d28 <vTaskSetTimeOutState>:
  47677. }
  47678. }
  47679. /*-----------------------------------------------------------*/
  47680. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  47681. {
  47682. 8013d28: b580 push {r7, lr}
  47683. 8013d2a: b084 sub sp, #16
  47684. 8013d2c: af00 add r7, sp, #0
  47685. 8013d2e: 6078 str r0, [r7, #4]
  47686. configASSERT( pxTimeOut );
  47687. 8013d30: 687b ldr r3, [r7, #4]
  47688. 8013d32: 2b00 cmp r3, #0
  47689. 8013d34: d10b bne.n 8013d4e <vTaskSetTimeOutState+0x26>
  47690. __asm volatile
  47691. 8013d36: f04f 0350 mov.w r3, #80 @ 0x50
  47692. 8013d3a: f383 8811 msr BASEPRI, r3
  47693. 8013d3e: f3bf 8f6f isb sy
  47694. 8013d42: f3bf 8f4f dsb sy
  47695. 8013d46: 60fb str r3, [r7, #12]
  47696. }
  47697. 8013d48: bf00 nop
  47698. 8013d4a: bf00 nop
  47699. 8013d4c: e7fd b.n 8013d4a <vTaskSetTimeOutState+0x22>
  47700. taskENTER_CRITICAL();
  47701. 8013d4e: f001 fae3 bl 8015318 <vPortEnterCritical>
  47702. {
  47703. pxTimeOut->xOverflowCount = xNumOfOverflows;
  47704. 8013d52: 4b07 ldr r3, [pc, #28] @ (8013d70 <vTaskSetTimeOutState+0x48>)
  47705. 8013d54: 681a ldr r2, [r3, #0]
  47706. 8013d56: 687b ldr r3, [r7, #4]
  47707. 8013d58: 601a str r2, [r3, #0]
  47708. pxTimeOut->xTimeOnEntering = xTickCount;
  47709. 8013d5a: 4b06 ldr r3, [pc, #24] @ (8013d74 <vTaskSetTimeOutState+0x4c>)
  47710. 8013d5c: 681a ldr r2, [r3, #0]
  47711. 8013d5e: 687b ldr r3, [r7, #4]
  47712. 8013d60: 605a str r2, [r3, #4]
  47713. }
  47714. taskEXIT_CRITICAL();
  47715. 8013d62: f001 fb0b bl 801537c <vPortExitCritical>
  47716. }
  47717. 8013d66: bf00 nop
  47718. 8013d68: 3710 adds r7, #16
  47719. 8013d6a: 46bd mov sp, r7
  47720. 8013d6c: bd80 pop {r7, pc}
  47721. 8013d6e: bf00 nop
  47722. 8013d70: 2400424c .word 0x2400424c
  47723. 8013d74: 24004238 .word 0x24004238
  47724. 08013d78 <vTaskInternalSetTimeOutState>:
  47725. /*-----------------------------------------------------------*/
  47726. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  47727. {
  47728. 8013d78: b480 push {r7}
  47729. 8013d7a: b083 sub sp, #12
  47730. 8013d7c: af00 add r7, sp, #0
  47731. 8013d7e: 6078 str r0, [r7, #4]
  47732. /* For internal use only as it does not use a critical section. */
  47733. pxTimeOut->xOverflowCount = xNumOfOverflows;
  47734. 8013d80: 4b06 ldr r3, [pc, #24] @ (8013d9c <vTaskInternalSetTimeOutState+0x24>)
  47735. 8013d82: 681a ldr r2, [r3, #0]
  47736. 8013d84: 687b ldr r3, [r7, #4]
  47737. 8013d86: 601a str r2, [r3, #0]
  47738. pxTimeOut->xTimeOnEntering = xTickCount;
  47739. 8013d88: 4b05 ldr r3, [pc, #20] @ (8013da0 <vTaskInternalSetTimeOutState+0x28>)
  47740. 8013d8a: 681a ldr r2, [r3, #0]
  47741. 8013d8c: 687b ldr r3, [r7, #4]
  47742. 8013d8e: 605a str r2, [r3, #4]
  47743. }
  47744. 8013d90: bf00 nop
  47745. 8013d92: 370c adds r7, #12
  47746. 8013d94: 46bd mov sp, r7
  47747. 8013d96: f85d 7b04 ldr.w r7, [sp], #4
  47748. 8013d9a: 4770 bx lr
  47749. 8013d9c: 2400424c .word 0x2400424c
  47750. 8013da0: 24004238 .word 0x24004238
  47751. 08013da4 <xTaskCheckForTimeOut>:
  47752. /*-----------------------------------------------------------*/
  47753. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  47754. {
  47755. 8013da4: b580 push {r7, lr}
  47756. 8013da6: b088 sub sp, #32
  47757. 8013da8: af00 add r7, sp, #0
  47758. 8013daa: 6078 str r0, [r7, #4]
  47759. 8013dac: 6039 str r1, [r7, #0]
  47760. BaseType_t xReturn;
  47761. configASSERT( pxTimeOut );
  47762. 8013dae: 687b ldr r3, [r7, #4]
  47763. 8013db0: 2b00 cmp r3, #0
  47764. 8013db2: d10b bne.n 8013dcc <xTaskCheckForTimeOut+0x28>
  47765. __asm volatile
  47766. 8013db4: f04f 0350 mov.w r3, #80 @ 0x50
  47767. 8013db8: f383 8811 msr BASEPRI, r3
  47768. 8013dbc: f3bf 8f6f isb sy
  47769. 8013dc0: f3bf 8f4f dsb sy
  47770. 8013dc4: 613b str r3, [r7, #16]
  47771. }
  47772. 8013dc6: bf00 nop
  47773. 8013dc8: bf00 nop
  47774. 8013dca: e7fd b.n 8013dc8 <xTaskCheckForTimeOut+0x24>
  47775. configASSERT( pxTicksToWait );
  47776. 8013dcc: 683b ldr r3, [r7, #0]
  47777. 8013dce: 2b00 cmp r3, #0
  47778. 8013dd0: d10b bne.n 8013dea <xTaskCheckForTimeOut+0x46>
  47779. __asm volatile
  47780. 8013dd2: f04f 0350 mov.w r3, #80 @ 0x50
  47781. 8013dd6: f383 8811 msr BASEPRI, r3
  47782. 8013dda: f3bf 8f6f isb sy
  47783. 8013dde: f3bf 8f4f dsb sy
  47784. 8013de2: 60fb str r3, [r7, #12]
  47785. }
  47786. 8013de4: bf00 nop
  47787. 8013de6: bf00 nop
  47788. 8013de8: e7fd b.n 8013de6 <xTaskCheckForTimeOut+0x42>
  47789. taskENTER_CRITICAL();
  47790. 8013dea: f001 fa95 bl 8015318 <vPortEnterCritical>
  47791. {
  47792. /* Minor optimisation. The tick count cannot change in this block. */
  47793. const TickType_t xConstTickCount = xTickCount;
  47794. 8013dee: 4b1d ldr r3, [pc, #116] @ (8013e64 <xTaskCheckForTimeOut+0xc0>)
  47795. 8013df0: 681b ldr r3, [r3, #0]
  47796. 8013df2: 61bb str r3, [r7, #24]
  47797. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  47798. 8013df4: 687b ldr r3, [r7, #4]
  47799. 8013df6: 685b ldr r3, [r3, #4]
  47800. 8013df8: 69ba ldr r2, [r7, #24]
  47801. 8013dfa: 1ad3 subs r3, r2, r3
  47802. 8013dfc: 617b str r3, [r7, #20]
  47803. }
  47804. else
  47805. #endif
  47806. #if ( INCLUDE_vTaskSuspend == 1 )
  47807. if( *pxTicksToWait == portMAX_DELAY )
  47808. 8013dfe: 683b ldr r3, [r7, #0]
  47809. 8013e00: 681b ldr r3, [r3, #0]
  47810. 8013e02: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47811. 8013e06: d102 bne.n 8013e0e <xTaskCheckForTimeOut+0x6a>
  47812. {
  47813. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  47814. specified is the maximum block time then the task should block
  47815. indefinitely, and therefore never time out. */
  47816. xReturn = pdFALSE;
  47817. 8013e08: 2300 movs r3, #0
  47818. 8013e0a: 61fb str r3, [r7, #28]
  47819. 8013e0c: e023 b.n 8013e56 <xTaskCheckForTimeOut+0xb2>
  47820. }
  47821. else
  47822. #endif
  47823. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  47824. 8013e0e: 687b ldr r3, [r7, #4]
  47825. 8013e10: 681a ldr r2, [r3, #0]
  47826. 8013e12: 4b15 ldr r3, [pc, #84] @ (8013e68 <xTaskCheckForTimeOut+0xc4>)
  47827. 8013e14: 681b ldr r3, [r3, #0]
  47828. 8013e16: 429a cmp r2, r3
  47829. 8013e18: d007 beq.n 8013e2a <xTaskCheckForTimeOut+0x86>
  47830. 8013e1a: 687b ldr r3, [r7, #4]
  47831. 8013e1c: 685b ldr r3, [r3, #4]
  47832. 8013e1e: 69ba ldr r2, [r7, #24]
  47833. 8013e20: 429a cmp r2, r3
  47834. 8013e22: d302 bcc.n 8013e2a <xTaskCheckForTimeOut+0x86>
  47835. /* The tick count is greater than the time at which
  47836. vTaskSetTimeout() was called, but has also overflowed since
  47837. vTaskSetTimeOut() was called. It must have wrapped all the way
  47838. around and gone past again. This passed since vTaskSetTimeout()
  47839. was called. */
  47840. xReturn = pdTRUE;
  47841. 8013e24: 2301 movs r3, #1
  47842. 8013e26: 61fb str r3, [r7, #28]
  47843. 8013e28: e015 b.n 8013e56 <xTaskCheckForTimeOut+0xb2>
  47844. }
  47845. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  47846. 8013e2a: 683b ldr r3, [r7, #0]
  47847. 8013e2c: 681b ldr r3, [r3, #0]
  47848. 8013e2e: 697a ldr r2, [r7, #20]
  47849. 8013e30: 429a cmp r2, r3
  47850. 8013e32: d20b bcs.n 8013e4c <xTaskCheckForTimeOut+0xa8>
  47851. {
  47852. /* Not a genuine timeout. Adjust parameters for time remaining. */
  47853. *pxTicksToWait -= xElapsedTime;
  47854. 8013e34: 683b ldr r3, [r7, #0]
  47855. 8013e36: 681a ldr r2, [r3, #0]
  47856. 8013e38: 697b ldr r3, [r7, #20]
  47857. 8013e3a: 1ad2 subs r2, r2, r3
  47858. 8013e3c: 683b ldr r3, [r7, #0]
  47859. 8013e3e: 601a str r2, [r3, #0]
  47860. vTaskInternalSetTimeOutState( pxTimeOut );
  47861. 8013e40: 6878 ldr r0, [r7, #4]
  47862. 8013e42: f7ff ff99 bl 8013d78 <vTaskInternalSetTimeOutState>
  47863. xReturn = pdFALSE;
  47864. 8013e46: 2300 movs r3, #0
  47865. 8013e48: 61fb str r3, [r7, #28]
  47866. 8013e4a: e004 b.n 8013e56 <xTaskCheckForTimeOut+0xb2>
  47867. }
  47868. else
  47869. {
  47870. *pxTicksToWait = 0;
  47871. 8013e4c: 683b ldr r3, [r7, #0]
  47872. 8013e4e: 2200 movs r2, #0
  47873. 8013e50: 601a str r2, [r3, #0]
  47874. xReturn = pdTRUE;
  47875. 8013e52: 2301 movs r3, #1
  47876. 8013e54: 61fb str r3, [r7, #28]
  47877. }
  47878. }
  47879. taskEXIT_CRITICAL();
  47880. 8013e56: f001 fa91 bl 801537c <vPortExitCritical>
  47881. return xReturn;
  47882. 8013e5a: 69fb ldr r3, [r7, #28]
  47883. }
  47884. 8013e5c: 4618 mov r0, r3
  47885. 8013e5e: 3720 adds r7, #32
  47886. 8013e60: 46bd mov sp, r7
  47887. 8013e62: bd80 pop {r7, pc}
  47888. 8013e64: 24004238 .word 0x24004238
  47889. 8013e68: 2400424c .word 0x2400424c
  47890. 08013e6c <vTaskMissedYield>:
  47891. /*-----------------------------------------------------------*/
  47892. void vTaskMissedYield( void )
  47893. {
  47894. 8013e6c: b480 push {r7}
  47895. 8013e6e: af00 add r7, sp, #0
  47896. xYieldPending = pdTRUE;
  47897. 8013e70: 4b03 ldr r3, [pc, #12] @ (8013e80 <vTaskMissedYield+0x14>)
  47898. 8013e72: 2201 movs r2, #1
  47899. 8013e74: 601a str r2, [r3, #0]
  47900. }
  47901. 8013e76: bf00 nop
  47902. 8013e78: 46bd mov sp, r7
  47903. 8013e7a: f85d 7b04 ldr.w r7, [sp], #4
  47904. 8013e7e: 4770 bx lr
  47905. 8013e80: 24004248 .word 0x24004248
  47906. 08013e84 <prvIdleTask>:
  47907. *
  47908. * void prvIdleTask( void *pvParameters );
  47909. *
  47910. */
  47911. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  47912. {
  47913. 8013e84: b580 push {r7, lr}
  47914. 8013e86: b082 sub sp, #8
  47915. 8013e88: af00 add r7, sp, #0
  47916. 8013e8a: 6078 str r0, [r7, #4]
  47917. for( ;; )
  47918. {
  47919. /* See if any tasks have deleted themselves - if so then the idle task
  47920. is responsible for freeing the deleted task's TCB and stack. */
  47921. prvCheckTasksWaitingTermination();
  47922. 8013e8c: f000 f852 bl 8013f34 <prvCheckTasksWaitingTermination>
  47923. A critical region is not required here as we are just reading from
  47924. the list, and an occasional incorrect value will not matter. If
  47925. the ready list at the idle priority contains more than one task
  47926. then a task other than the idle task is ready to execute. */
  47927. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  47928. 8013e90: 4b06 ldr r3, [pc, #24] @ (8013eac <prvIdleTask+0x28>)
  47929. 8013e92: 681b ldr r3, [r3, #0]
  47930. 8013e94: 2b01 cmp r3, #1
  47931. 8013e96: d9f9 bls.n 8013e8c <prvIdleTask+0x8>
  47932. {
  47933. taskYIELD();
  47934. 8013e98: 4b05 ldr r3, [pc, #20] @ (8013eb0 <prvIdleTask+0x2c>)
  47935. 8013e9a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47936. 8013e9e: 601a str r2, [r3, #0]
  47937. 8013ea0: f3bf 8f4f dsb sy
  47938. 8013ea4: f3bf 8f6f isb sy
  47939. prvCheckTasksWaitingTermination();
  47940. 8013ea8: e7f0 b.n 8013e8c <prvIdleTask+0x8>
  47941. 8013eaa: bf00 nop
  47942. 8013eac: 24003d64 .word 0x24003d64
  47943. 8013eb0: e000ed04 .word 0xe000ed04
  47944. 08013eb4 <prvInitialiseTaskLists>:
  47945. #endif /* portUSING_MPU_WRAPPERS */
  47946. /*-----------------------------------------------------------*/
  47947. static void prvInitialiseTaskLists( void )
  47948. {
  47949. 8013eb4: b580 push {r7, lr}
  47950. 8013eb6: b082 sub sp, #8
  47951. 8013eb8: af00 add r7, sp, #0
  47952. UBaseType_t uxPriority;
  47953. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  47954. 8013eba: 2300 movs r3, #0
  47955. 8013ebc: 607b str r3, [r7, #4]
  47956. 8013ebe: e00c b.n 8013eda <prvInitialiseTaskLists+0x26>
  47957. {
  47958. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  47959. 8013ec0: 687a ldr r2, [r7, #4]
  47960. 8013ec2: 4613 mov r3, r2
  47961. 8013ec4: 009b lsls r3, r3, #2
  47962. 8013ec6: 4413 add r3, r2
  47963. 8013ec8: 009b lsls r3, r3, #2
  47964. 8013eca: 4a12 ldr r2, [pc, #72] @ (8013f14 <prvInitialiseTaskLists+0x60>)
  47965. 8013ecc: 4413 add r3, r2
  47966. 8013ece: 4618 mov r0, r3
  47967. 8013ed0: f7fd fca6 bl 8011820 <vListInitialise>
  47968. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  47969. 8013ed4: 687b ldr r3, [r7, #4]
  47970. 8013ed6: 3301 adds r3, #1
  47971. 8013ed8: 607b str r3, [r7, #4]
  47972. 8013eda: 687b ldr r3, [r7, #4]
  47973. 8013edc: 2b37 cmp r3, #55 @ 0x37
  47974. 8013ede: d9ef bls.n 8013ec0 <prvInitialiseTaskLists+0xc>
  47975. }
  47976. vListInitialise( &xDelayedTaskList1 );
  47977. 8013ee0: 480d ldr r0, [pc, #52] @ (8013f18 <prvInitialiseTaskLists+0x64>)
  47978. 8013ee2: f7fd fc9d bl 8011820 <vListInitialise>
  47979. vListInitialise( &xDelayedTaskList2 );
  47980. 8013ee6: 480d ldr r0, [pc, #52] @ (8013f1c <prvInitialiseTaskLists+0x68>)
  47981. 8013ee8: f7fd fc9a bl 8011820 <vListInitialise>
  47982. vListInitialise( &xPendingReadyList );
  47983. 8013eec: 480c ldr r0, [pc, #48] @ (8013f20 <prvInitialiseTaskLists+0x6c>)
  47984. 8013eee: f7fd fc97 bl 8011820 <vListInitialise>
  47985. #if ( INCLUDE_vTaskDelete == 1 )
  47986. {
  47987. vListInitialise( &xTasksWaitingTermination );
  47988. 8013ef2: 480c ldr r0, [pc, #48] @ (8013f24 <prvInitialiseTaskLists+0x70>)
  47989. 8013ef4: f7fd fc94 bl 8011820 <vListInitialise>
  47990. }
  47991. #endif /* INCLUDE_vTaskDelete */
  47992. #if ( INCLUDE_vTaskSuspend == 1 )
  47993. {
  47994. vListInitialise( &xSuspendedTaskList );
  47995. 8013ef8: 480b ldr r0, [pc, #44] @ (8013f28 <prvInitialiseTaskLists+0x74>)
  47996. 8013efa: f7fd fc91 bl 8011820 <vListInitialise>
  47997. }
  47998. #endif /* INCLUDE_vTaskSuspend */
  47999. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  48000. using list2. */
  48001. pxDelayedTaskList = &xDelayedTaskList1;
  48002. 8013efe: 4b0b ldr r3, [pc, #44] @ (8013f2c <prvInitialiseTaskLists+0x78>)
  48003. 8013f00: 4a05 ldr r2, [pc, #20] @ (8013f18 <prvInitialiseTaskLists+0x64>)
  48004. 8013f02: 601a str r2, [r3, #0]
  48005. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  48006. 8013f04: 4b0a ldr r3, [pc, #40] @ (8013f30 <prvInitialiseTaskLists+0x7c>)
  48007. 8013f06: 4a05 ldr r2, [pc, #20] @ (8013f1c <prvInitialiseTaskLists+0x68>)
  48008. 8013f08: 601a str r2, [r3, #0]
  48009. }
  48010. 8013f0a: bf00 nop
  48011. 8013f0c: 3708 adds r7, #8
  48012. 8013f0e: 46bd mov sp, r7
  48013. 8013f10: bd80 pop {r7, pc}
  48014. 8013f12: bf00 nop
  48015. 8013f14: 24003d64 .word 0x24003d64
  48016. 8013f18: 240041c4 .word 0x240041c4
  48017. 8013f1c: 240041d8 .word 0x240041d8
  48018. 8013f20: 240041f4 .word 0x240041f4
  48019. 8013f24: 24004208 .word 0x24004208
  48020. 8013f28: 24004220 .word 0x24004220
  48021. 8013f2c: 240041ec .word 0x240041ec
  48022. 8013f30: 240041f0 .word 0x240041f0
  48023. 08013f34 <prvCheckTasksWaitingTermination>:
  48024. /*-----------------------------------------------------------*/
  48025. static void prvCheckTasksWaitingTermination( void )
  48026. {
  48027. 8013f34: b580 push {r7, lr}
  48028. 8013f36: b082 sub sp, #8
  48029. 8013f38: af00 add r7, sp, #0
  48030. {
  48031. TCB_t *pxTCB;
  48032. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  48033. being called too often in the idle task. */
  48034. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  48035. 8013f3a: e019 b.n 8013f70 <prvCheckTasksWaitingTermination+0x3c>
  48036. {
  48037. taskENTER_CRITICAL();
  48038. 8013f3c: f001 f9ec bl 8015318 <vPortEnterCritical>
  48039. {
  48040. 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. */
  48041. 8013f40: 4b10 ldr r3, [pc, #64] @ (8013f84 <prvCheckTasksWaitingTermination+0x50>)
  48042. 8013f42: 68db ldr r3, [r3, #12]
  48043. 8013f44: 68db ldr r3, [r3, #12]
  48044. 8013f46: 607b str r3, [r7, #4]
  48045. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  48046. 8013f48: 687b ldr r3, [r7, #4]
  48047. 8013f4a: 3304 adds r3, #4
  48048. 8013f4c: 4618 mov r0, r3
  48049. 8013f4e: f7fd fcf1 bl 8011934 <uxListRemove>
  48050. --uxCurrentNumberOfTasks;
  48051. 8013f52: 4b0d ldr r3, [pc, #52] @ (8013f88 <prvCheckTasksWaitingTermination+0x54>)
  48052. 8013f54: 681b ldr r3, [r3, #0]
  48053. 8013f56: 3b01 subs r3, #1
  48054. 8013f58: 4a0b ldr r2, [pc, #44] @ (8013f88 <prvCheckTasksWaitingTermination+0x54>)
  48055. 8013f5a: 6013 str r3, [r2, #0]
  48056. --uxDeletedTasksWaitingCleanUp;
  48057. 8013f5c: 4b0b ldr r3, [pc, #44] @ (8013f8c <prvCheckTasksWaitingTermination+0x58>)
  48058. 8013f5e: 681b ldr r3, [r3, #0]
  48059. 8013f60: 3b01 subs r3, #1
  48060. 8013f62: 4a0a ldr r2, [pc, #40] @ (8013f8c <prvCheckTasksWaitingTermination+0x58>)
  48061. 8013f64: 6013 str r3, [r2, #0]
  48062. }
  48063. taskEXIT_CRITICAL();
  48064. 8013f66: f001 fa09 bl 801537c <vPortExitCritical>
  48065. prvDeleteTCB( pxTCB );
  48066. 8013f6a: 6878 ldr r0, [r7, #4]
  48067. 8013f6c: f000 f810 bl 8013f90 <prvDeleteTCB>
  48068. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  48069. 8013f70: 4b06 ldr r3, [pc, #24] @ (8013f8c <prvCheckTasksWaitingTermination+0x58>)
  48070. 8013f72: 681b ldr r3, [r3, #0]
  48071. 8013f74: 2b00 cmp r3, #0
  48072. 8013f76: d1e1 bne.n 8013f3c <prvCheckTasksWaitingTermination+0x8>
  48073. }
  48074. }
  48075. #endif /* INCLUDE_vTaskDelete */
  48076. }
  48077. 8013f78: bf00 nop
  48078. 8013f7a: bf00 nop
  48079. 8013f7c: 3708 adds r7, #8
  48080. 8013f7e: 46bd mov sp, r7
  48081. 8013f80: bd80 pop {r7, pc}
  48082. 8013f82: bf00 nop
  48083. 8013f84: 24004208 .word 0x24004208
  48084. 8013f88: 24004234 .word 0x24004234
  48085. 8013f8c: 2400421c .word 0x2400421c
  48086. 08013f90 <prvDeleteTCB>:
  48087. /*-----------------------------------------------------------*/
  48088. #if ( INCLUDE_vTaskDelete == 1 )
  48089. static void prvDeleteTCB( TCB_t *pxTCB )
  48090. {
  48091. 8013f90: b580 push {r7, lr}
  48092. 8013f92: b084 sub sp, #16
  48093. 8013f94: af00 add r7, sp, #0
  48094. 8013f96: 6078 str r0, [r7, #4]
  48095. to the task to free any memory allocated at the application level.
  48096. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  48097. for additional information. */
  48098. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  48099. {
  48100. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  48101. 8013f98: 687b ldr r3, [r7, #4]
  48102. 8013f9a: 3354 adds r3, #84 @ 0x54
  48103. 8013f9c: 4618 mov r0, r3
  48104. 8013f9e: f016 facd bl 802a53c <_reclaim_reent>
  48105. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  48106. {
  48107. /* The task could have been allocated statically or dynamically, so
  48108. check what was statically allocated before trying to free the
  48109. memory. */
  48110. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  48111. 8013fa2: 687b ldr r3, [r7, #4]
  48112. 8013fa4: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  48113. 8013fa8: 2b00 cmp r3, #0
  48114. 8013faa: d108 bne.n 8013fbe <prvDeleteTCB+0x2e>
  48115. {
  48116. /* Both the stack and TCB were allocated dynamically, so both
  48117. must be freed. */
  48118. vPortFree( pxTCB->pxStack );
  48119. 8013fac: 687b ldr r3, [r7, #4]
  48120. 8013fae: 6b1b ldr r3, [r3, #48] @ 0x30
  48121. 8013fb0: 4618 mov r0, r3
  48122. 8013fb2: f001 fba1 bl 80156f8 <vPortFree>
  48123. vPortFree( pxTCB );
  48124. 8013fb6: 6878 ldr r0, [r7, #4]
  48125. 8013fb8: f001 fb9e bl 80156f8 <vPortFree>
  48126. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  48127. mtCOVERAGE_TEST_MARKER();
  48128. }
  48129. }
  48130. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  48131. }
  48132. 8013fbc: e019 b.n 8013ff2 <prvDeleteTCB+0x62>
  48133. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  48134. 8013fbe: 687b ldr r3, [r7, #4]
  48135. 8013fc0: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  48136. 8013fc4: 2b01 cmp r3, #1
  48137. 8013fc6: d103 bne.n 8013fd0 <prvDeleteTCB+0x40>
  48138. vPortFree( pxTCB );
  48139. 8013fc8: 6878 ldr r0, [r7, #4]
  48140. 8013fca: f001 fb95 bl 80156f8 <vPortFree>
  48141. }
  48142. 8013fce: e010 b.n 8013ff2 <prvDeleteTCB+0x62>
  48143. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  48144. 8013fd0: 687b ldr r3, [r7, #4]
  48145. 8013fd2: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  48146. 8013fd6: 2b02 cmp r3, #2
  48147. 8013fd8: d00b beq.n 8013ff2 <prvDeleteTCB+0x62>
  48148. __asm volatile
  48149. 8013fda: f04f 0350 mov.w r3, #80 @ 0x50
  48150. 8013fde: f383 8811 msr BASEPRI, r3
  48151. 8013fe2: f3bf 8f6f isb sy
  48152. 8013fe6: f3bf 8f4f dsb sy
  48153. 8013fea: 60fb str r3, [r7, #12]
  48154. }
  48155. 8013fec: bf00 nop
  48156. 8013fee: bf00 nop
  48157. 8013ff0: e7fd b.n 8013fee <prvDeleteTCB+0x5e>
  48158. }
  48159. 8013ff2: bf00 nop
  48160. 8013ff4: 3710 adds r7, #16
  48161. 8013ff6: 46bd mov sp, r7
  48162. 8013ff8: bd80 pop {r7, pc}
  48163. ...
  48164. 08013ffc <prvResetNextTaskUnblockTime>:
  48165. #endif /* INCLUDE_vTaskDelete */
  48166. /*-----------------------------------------------------------*/
  48167. static void prvResetNextTaskUnblockTime( void )
  48168. {
  48169. 8013ffc: b480 push {r7}
  48170. 8013ffe: b083 sub sp, #12
  48171. 8014000: af00 add r7, sp, #0
  48172. TCB_t *pxTCB;
  48173. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  48174. 8014002: 4b0c ldr r3, [pc, #48] @ (8014034 <prvResetNextTaskUnblockTime+0x38>)
  48175. 8014004: 681b ldr r3, [r3, #0]
  48176. 8014006: 681b ldr r3, [r3, #0]
  48177. 8014008: 2b00 cmp r3, #0
  48178. 801400a: d104 bne.n 8014016 <prvResetNextTaskUnblockTime+0x1a>
  48179. {
  48180. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  48181. the maximum possible value so it is extremely unlikely that the
  48182. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  48183. there is an item in the delayed list. */
  48184. xNextTaskUnblockTime = portMAX_DELAY;
  48185. 801400c: 4b0a ldr r3, [pc, #40] @ (8014038 <prvResetNextTaskUnblockTime+0x3c>)
  48186. 801400e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  48187. 8014012: 601a str r2, [r3, #0]
  48188. which the task at the head of the delayed list should be removed
  48189. from the Blocked state. */
  48190. ( 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. */
  48191. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  48192. }
  48193. }
  48194. 8014014: e008 b.n 8014028 <prvResetNextTaskUnblockTime+0x2c>
  48195. ( 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. */
  48196. 8014016: 4b07 ldr r3, [pc, #28] @ (8014034 <prvResetNextTaskUnblockTime+0x38>)
  48197. 8014018: 681b ldr r3, [r3, #0]
  48198. 801401a: 68db ldr r3, [r3, #12]
  48199. 801401c: 68db ldr r3, [r3, #12]
  48200. 801401e: 607b str r3, [r7, #4]
  48201. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  48202. 8014020: 687b ldr r3, [r7, #4]
  48203. 8014022: 685b ldr r3, [r3, #4]
  48204. 8014024: 4a04 ldr r2, [pc, #16] @ (8014038 <prvResetNextTaskUnblockTime+0x3c>)
  48205. 8014026: 6013 str r3, [r2, #0]
  48206. }
  48207. 8014028: bf00 nop
  48208. 801402a: 370c adds r7, #12
  48209. 801402c: 46bd mov sp, r7
  48210. 801402e: f85d 7b04 ldr.w r7, [sp], #4
  48211. 8014032: 4770 bx lr
  48212. 8014034: 240041ec .word 0x240041ec
  48213. 8014038: 24004254 .word 0x24004254
  48214. 0801403c <xTaskGetCurrentTaskHandle>:
  48215. /*-----------------------------------------------------------*/
  48216. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  48217. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  48218. {
  48219. 801403c: b480 push {r7}
  48220. 801403e: b083 sub sp, #12
  48221. 8014040: af00 add r7, sp, #0
  48222. TaskHandle_t xReturn;
  48223. /* A critical section is not required as this is not called from
  48224. an interrupt and the current TCB will always be the same for any
  48225. individual execution thread. */
  48226. xReturn = pxCurrentTCB;
  48227. 8014042: 4b05 ldr r3, [pc, #20] @ (8014058 <xTaskGetCurrentTaskHandle+0x1c>)
  48228. 8014044: 681b ldr r3, [r3, #0]
  48229. 8014046: 607b str r3, [r7, #4]
  48230. return xReturn;
  48231. 8014048: 687b ldr r3, [r7, #4]
  48232. }
  48233. 801404a: 4618 mov r0, r3
  48234. 801404c: 370c adds r7, #12
  48235. 801404e: 46bd mov sp, r7
  48236. 8014050: f85d 7b04 ldr.w r7, [sp], #4
  48237. 8014054: 4770 bx lr
  48238. 8014056: bf00 nop
  48239. 8014058: 24003d60 .word 0x24003d60
  48240. 0801405c <xTaskGetSchedulerState>:
  48241. /*-----------------------------------------------------------*/
  48242. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48243. BaseType_t xTaskGetSchedulerState( void )
  48244. {
  48245. 801405c: b480 push {r7}
  48246. 801405e: b083 sub sp, #12
  48247. 8014060: af00 add r7, sp, #0
  48248. BaseType_t xReturn;
  48249. if( xSchedulerRunning == pdFALSE )
  48250. 8014062: 4b0b ldr r3, [pc, #44] @ (8014090 <xTaskGetSchedulerState+0x34>)
  48251. 8014064: 681b ldr r3, [r3, #0]
  48252. 8014066: 2b00 cmp r3, #0
  48253. 8014068: d102 bne.n 8014070 <xTaskGetSchedulerState+0x14>
  48254. {
  48255. xReturn = taskSCHEDULER_NOT_STARTED;
  48256. 801406a: 2301 movs r3, #1
  48257. 801406c: 607b str r3, [r7, #4]
  48258. 801406e: e008 b.n 8014082 <xTaskGetSchedulerState+0x26>
  48259. }
  48260. else
  48261. {
  48262. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  48263. 8014070: 4b08 ldr r3, [pc, #32] @ (8014094 <xTaskGetSchedulerState+0x38>)
  48264. 8014072: 681b ldr r3, [r3, #0]
  48265. 8014074: 2b00 cmp r3, #0
  48266. 8014076: d102 bne.n 801407e <xTaskGetSchedulerState+0x22>
  48267. {
  48268. xReturn = taskSCHEDULER_RUNNING;
  48269. 8014078: 2302 movs r3, #2
  48270. 801407a: 607b str r3, [r7, #4]
  48271. 801407c: e001 b.n 8014082 <xTaskGetSchedulerState+0x26>
  48272. }
  48273. else
  48274. {
  48275. xReturn = taskSCHEDULER_SUSPENDED;
  48276. 801407e: 2300 movs r3, #0
  48277. 8014080: 607b str r3, [r7, #4]
  48278. }
  48279. }
  48280. return xReturn;
  48281. 8014082: 687b ldr r3, [r7, #4]
  48282. }
  48283. 8014084: 4618 mov r0, r3
  48284. 8014086: 370c adds r7, #12
  48285. 8014088: 46bd mov sp, r7
  48286. 801408a: f85d 7b04 ldr.w r7, [sp], #4
  48287. 801408e: 4770 bx lr
  48288. 8014090: 24004240 .word 0x24004240
  48289. 8014094: 2400425c .word 0x2400425c
  48290. 08014098 <xTaskPriorityInherit>:
  48291. /*-----------------------------------------------------------*/
  48292. #if ( configUSE_MUTEXES == 1 )
  48293. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  48294. {
  48295. 8014098: b580 push {r7, lr}
  48296. 801409a: b084 sub sp, #16
  48297. 801409c: af00 add r7, sp, #0
  48298. 801409e: 6078 str r0, [r7, #4]
  48299. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  48300. 80140a0: 687b ldr r3, [r7, #4]
  48301. 80140a2: 60bb str r3, [r7, #8]
  48302. BaseType_t xReturn = pdFALSE;
  48303. 80140a4: 2300 movs r3, #0
  48304. 80140a6: 60fb str r3, [r7, #12]
  48305. /* If the mutex was given back by an interrupt while the queue was
  48306. locked then the mutex holder might now be NULL. _RB_ Is this still
  48307. needed as interrupts can no longer use mutexes? */
  48308. if( pxMutexHolder != NULL )
  48309. 80140a8: 687b ldr r3, [r7, #4]
  48310. 80140aa: 2b00 cmp r3, #0
  48311. 80140ac: d051 beq.n 8014152 <xTaskPriorityInherit+0xba>
  48312. {
  48313. /* If the holder of the mutex has a priority below the priority of
  48314. the task attempting to obtain the mutex then it will temporarily
  48315. inherit the priority of the task attempting to obtain the mutex. */
  48316. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  48317. 80140ae: 68bb ldr r3, [r7, #8]
  48318. 80140b0: 6ada ldr r2, [r3, #44] @ 0x2c
  48319. 80140b2: 4b2a ldr r3, [pc, #168] @ (801415c <xTaskPriorityInherit+0xc4>)
  48320. 80140b4: 681b ldr r3, [r3, #0]
  48321. 80140b6: 6adb ldr r3, [r3, #44] @ 0x2c
  48322. 80140b8: 429a cmp r2, r3
  48323. 80140ba: d241 bcs.n 8014140 <xTaskPriorityInherit+0xa8>
  48324. {
  48325. /* Adjust the mutex holder state to account for its new
  48326. priority. Only reset the event list item value if the value is
  48327. not being used for anything else. */
  48328. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  48329. 80140bc: 68bb ldr r3, [r7, #8]
  48330. 80140be: 699b ldr r3, [r3, #24]
  48331. 80140c0: 2b00 cmp r3, #0
  48332. 80140c2: db06 blt.n 80140d2 <xTaskPriorityInherit+0x3a>
  48333. {
  48334. 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. */
  48335. 80140c4: 4b25 ldr r3, [pc, #148] @ (801415c <xTaskPriorityInherit+0xc4>)
  48336. 80140c6: 681b ldr r3, [r3, #0]
  48337. 80140c8: 6adb ldr r3, [r3, #44] @ 0x2c
  48338. 80140ca: f1c3 0238 rsb r2, r3, #56 @ 0x38
  48339. 80140ce: 68bb ldr r3, [r7, #8]
  48340. 80140d0: 619a str r2, [r3, #24]
  48341. mtCOVERAGE_TEST_MARKER();
  48342. }
  48343. /* If the task being modified is in the ready state it will need
  48344. to be moved into a new list. */
  48345. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  48346. 80140d2: 68bb ldr r3, [r7, #8]
  48347. 80140d4: 6959 ldr r1, [r3, #20]
  48348. 80140d6: 68bb ldr r3, [r7, #8]
  48349. 80140d8: 6ada ldr r2, [r3, #44] @ 0x2c
  48350. 80140da: 4613 mov r3, r2
  48351. 80140dc: 009b lsls r3, r3, #2
  48352. 80140de: 4413 add r3, r2
  48353. 80140e0: 009b lsls r3, r3, #2
  48354. 80140e2: 4a1f ldr r2, [pc, #124] @ (8014160 <xTaskPriorityInherit+0xc8>)
  48355. 80140e4: 4413 add r3, r2
  48356. 80140e6: 4299 cmp r1, r3
  48357. 80140e8: d122 bne.n 8014130 <xTaskPriorityInherit+0x98>
  48358. {
  48359. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  48360. 80140ea: 68bb ldr r3, [r7, #8]
  48361. 80140ec: 3304 adds r3, #4
  48362. 80140ee: 4618 mov r0, r3
  48363. 80140f0: f7fd fc20 bl 8011934 <uxListRemove>
  48364. {
  48365. mtCOVERAGE_TEST_MARKER();
  48366. }
  48367. /* Inherit the priority before being moved into the new list. */
  48368. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  48369. 80140f4: 4b19 ldr r3, [pc, #100] @ (801415c <xTaskPriorityInherit+0xc4>)
  48370. 80140f6: 681b ldr r3, [r3, #0]
  48371. 80140f8: 6ada ldr r2, [r3, #44] @ 0x2c
  48372. 80140fa: 68bb ldr r3, [r7, #8]
  48373. 80140fc: 62da str r2, [r3, #44] @ 0x2c
  48374. prvAddTaskToReadyList( pxMutexHolderTCB );
  48375. 80140fe: 68bb ldr r3, [r7, #8]
  48376. 8014100: 6ada ldr r2, [r3, #44] @ 0x2c
  48377. 8014102: 4b18 ldr r3, [pc, #96] @ (8014164 <xTaskPriorityInherit+0xcc>)
  48378. 8014104: 681b ldr r3, [r3, #0]
  48379. 8014106: 429a cmp r2, r3
  48380. 8014108: d903 bls.n 8014112 <xTaskPriorityInherit+0x7a>
  48381. 801410a: 68bb ldr r3, [r7, #8]
  48382. 801410c: 6adb ldr r3, [r3, #44] @ 0x2c
  48383. 801410e: 4a15 ldr r2, [pc, #84] @ (8014164 <xTaskPriorityInherit+0xcc>)
  48384. 8014110: 6013 str r3, [r2, #0]
  48385. 8014112: 68bb ldr r3, [r7, #8]
  48386. 8014114: 6ada ldr r2, [r3, #44] @ 0x2c
  48387. 8014116: 4613 mov r3, r2
  48388. 8014118: 009b lsls r3, r3, #2
  48389. 801411a: 4413 add r3, r2
  48390. 801411c: 009b lsls r3, r3, #2
  48391. 801411e: 4a10 ldr r2, [pc, #64] @ (8014160 <xTaskPriorityInherit+0xc8>)
  48392. 8014120: 441a add r2, r3
  48393. 8014122: 68bb ldr r3, [r7, #8]
  48394. 8014124: 3304 adds r3, #4
  48395. 8014126: 4619 mov r1, r3
  48396. 8014128: 4610 mov r0, r2
  48397. 801412a: f7fd fba6 bl 801187a <vListInsertEnd>
  48398. 801412e: e004 b.n 801413a <xTaskPriorityInherit+0xa2>
  48399. }
  48400. else
  48401. {
  48402. /* Just inherit the priority. */
  48403. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  48404. 8014130: 4b0a ldr r3, [pc, #40] @ (801415c <xTaskPriorityInherit+0xc4>)
  48405. 8014132: 681b ldr r3, [r3, #0]
  48406. 8014134: 6ada ldr r2, [r3, #44] @ 0x2c
  48407. 8014136: 68bb ldr r3, [r7, #8]
  48408. 8014138: 62da str r2, [r3, #44] @ 0x2c
  48409. }
  48410. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  48411. /* Inheritance occurred. */
  48412. xReturn = pdTRUE;
  48413. 801413a: 2301 movs r3, #1
  48414. 801413c: 60fb str r3, [r7, #12]
  48415. 801413e: e008 b.n 8014152 <xTaskPriorityInherit+0xba>
  48416. }
  48417. else
  48418. {
  48419. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  48420. 8014140: 68bb ldr r3, [r7, #8]
  48421. 8014142: 6cda ldr r2, [r3, #76] @ 0x4c
  48422. 8014144: 4b05 ldr r3, [pc, #20] @ (801415c <xTaskPriorityInherit+0xc4>)
  48423. 8014146: 681b ldr r3, [r3, #0]
  48424. 8014148: 6adb ldr r3, [r3, #44] @ 0x2c
  48425. 801414a: 429a cmp r2, r3
  48426. 801414c: d201 bcs.n 8014152 <xTaskPriorityInherit+0xba>
  48427. current priority of the mutex holder is not lower than the
  48428. priority of the task attempting to take the mutex.
  48429. Therefore the mutex holder must have already inherited a
  48430. priority, but inheritance would have occurred if that had
  48431. not been the case. */
  48432. xReturn = pdTRUE;
  48433. 801414e: 2301 movs r3, #1
  48434. 8014150: 60fb str r3, [r7, #12]
  48435. else
  48436. {
  48437. mtCOVERAGE_TEST_MARKER();
  48438. }
  48439. return xReturn;
  48440. 8014152: 68fb ldr r3, [r7, #12]
  48441. }
  48442. 8014154: 4618 mov r0, r3
  48443. 8014156: 3710 adds r7, #16
  48444. 8014158: 46bd mov sp, r7
  48445. 801415a: bd80 pop {r7, pc}
  48446. 801415c: 24003d60 .word 0x24003d60
  48447. 8014160: 24003d64 .word 0x24003d64
  48448. 8014164: 2400423c .word 0x2400423c
  48449. 08014168 <xTaskPriorityDisinherit>:
  48450. /*-----------------------------------------------------------*/
  48451. #if ( configUSE_MUTEXES == 1 )
  48452. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  48453. {
  48454. 8014168: b580 push {r7, lr}
  48455. 801416a: b086 sub sp, #24
  48456. 801416c: af00 add r7, sp, #0
  48457. 801416e: 6078 str r0, [r7, #4]
  48458. TCB_t * const pxTCB = pxMutexHolder;
  48459. 8014170: 687b ldr r3, [r7, #4]
  48460. 8014172: 613b str r3, [r7, #16]
  48461. BaseType_t xReturn = pdFALSE;
  48462. 8014174: 2300 movs r3, #0
  48463. 8014176: 617b str r3, [r7, #20]
  48464. if( pxMutexHolder != NULL )
  48465. 8014178: 687b ldr r3, [r7, #4]
  48466. 801417a: 2b00 cmp r3, #0
  48467. 801417c: d058 beq.n 8014230 <xTaskPriorityDisinherit+0xc8>
  48468. {
  48469. /* A task can only have an inherited priority if it holds the mutex.
  48470. If the mutex is held by a task then it cannot be given from an
  48471. interrupt, and if a mutex is given by the holding task then it must
  48472. be the running state task. */
  48473. configASSERT( pxTCB == pxCurrentTCB );
  48474. 801417e: 4b2f ldr r3, [pc, #188] @ (801423c <xTaskPriorityDisinherit+0xd4>)
  48475. 8014180: 681b ldr r3, [r3, #0]
  48476. 8014182: 693a ldr r2, [r7, #16]
  48477. 8014184: 429a cmp r2, r3
  48478. 8014186: d00b beq.n 80141a0 <xTaskPriorityDisinherit+0x38>
  48479. __asm volatile
  48480. 8014188: f04f 0350 mov.w r3, #80 @ 0x50
  48481. 801418c: f383 8811 msr BASEPRI, r3
  48482. 8014190: f3bf 8f6f isb sy
  48483. 8014194: f3bf 8f4f dsb sy
  48484. 8014198: 60fb str r3, [r7, #12]
  48485. }
  48486. 801419a: bf00 nop
  48487. 801419c: bf00 nop
  48488. 801419e: e7fd b.n 801419c <xTaskPriorityDisinherit+0x34>
  48489. configASSERT( pxTCB->uxMutexesHeld );
  48490. 80141a0: 693b ldr r3, [r7, #16]
  48491. 80141a2: 6d1b ldr r3, [r3, #80] @ 0x50
  48492. 80141a4: 2b00 cmp r3, #0
  48493. 80141a6: d10b bne.n 80141c0 <xTaskPriorityDisinherit+0x58>
  48494. __asm volatile
  48495. 80141a8: f04f 0350 mov.w r3, #80 @ 0x50
  48496. 80141ac: f383 8811 msr BASEPRI, r3
  48497. 80141b0: f3bf 8f6f isb sy
  48498. 80141b4: f3bf 8f4f dsb sy
  48499. 80141b8: 60bb str r3, [r7, #8]
  48500. }
  48501. 80141ba: bf00 nop
  48502. 80141bc: bf00 nop
  48503. 80141be: e7fd b.n 80141bc <xTaskPriorityDisinherit+0x54>
  48504. ( pxTCB->uxMutexesHeld )--;
  48505. 80141c0: 693b ldr r3, [r7, #16]
  48506. 80141c2: 6d1b ldr r3, [r3, #80] @ 0x50
  48507. 80141c4: 1e5a subs r2, r3, #1
  48508. 80141c6: 693b ldr r3, [r7, #16]
  48509. 80141c8: 651a str r2, [r3, #80] @ 0x50
  48510. /* Has the holder of the mutex inherited the priority of another
  48511. task? */
  48512. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  48513. 80141ca: 693b ldr r3, [r7, #16]
  48514. 80141cc: 6ada ldr r2, [r3, #44] @ 0x2c
  48515. 80141ce: 693b ldr r3, [r7, #16]
  48516. 80141d0: 6cdb ldr r3, [r3, #76] @ 0x4c
  48517. 80141d2: 429a cmp r2, r3
  48518. 80141d4: d02c beq.n 8014230 <xTaskPriorityDisinherit+0xc8>
  48519. {
  48520. /* Only disinherit if no other mutexes are held. */
  48521. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  48522. 80141d6: 693b ldr r3, [r7, #16]
  48523. 80141d8: 6d1b ldr r3, [r3, #80] @ 0x50
  48524. 80141da: 2b00 cmp r3, #0
  48525. 80141dc: d128 bne.n 8014230 <xTaskPriorityDisinherit+0xc8>
  48526. /* A task can only have an inherited priority if it holds
  48527. the mutex. If the mutex is held by a task then it cannot be
  48528. given from an interrupt, and if a mutex is given by the
  48529. holding task then it must be the running state task. Remove
  48530. the holding task from the ready/delayed list. */
  48531. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  48532. 80141de: 693b ldr r3, [r7, #16]
  48533. 80141e0: 3304 adds r3, #4
  48534. 80141e2: 4618 mov r0, r3
  48535. 80141e4: f7fd fba6 bl 8011934 <uxListRemove>
  48536. }
  48537. /* Disinherit the priority before adding the task into the
  48538. new ready list. */
  48539. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  48540. pxTCB->uxPriority = pxTCB->uxBasePriority;
  48541. 80141e8: 693b ldr r3, [r7, #16]
  48542. 80141ea: 6cda ldr r2, [r3, #76] @ 0x4c
  48543. 80141ec: 693b ldr r3, [r7, #16]
  48544. 80141ee: 62da str r2, [r3, #44] @ 0x2c
  48545. /* Reset the event list item value. It cannot be in use for
  48546. any other purpose if this task is running, and it must be
  48547. running to give back the mutex. */
  48548. 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. */
  48549. 80141f0: 693b ldr r3, [r7, #16]
  48550. 80141f2: 6adb ldr r3, [r3, #44] @ 0x2c
  48551. 80141f4: f1c3 0238 rsb r2, r3, #56 @ 0x38
  48552. 80141f8: 693b ldr r3, [r7, #16]
  48553. 80141fa: 619a str r2, [r3, #24]
  48554. prvAddTaskToReadyList( pxTCB );
  48555. 80141fc: 693b ldr r3, [r7, #16]
  48556. 80141fe: 6ada ldr r2, [r3, #44] @ 0x2c
  48557. 8014200: 4b0f ldr r3, [pc, #60] @ (8014240 <xTaskPriorityDisinherit+0xd8>)
  48558. 8014202: 681b ldr r3, [r3, #0]
  48559. 8014204: 429a cmp r2, r3
  48560. 8014206: d903 bls.n 8014210 <xTaskPriorityDisinherit+0xa8>
  48561. 8014208: 693b ldr r3, [r7, #16]
  48562. 801420a: 6adb ldr r3, [r3, #44] @ 0x2c
  48563. 801420c: 4a0c ldr r2, [pc, #48] @ (8014240 <xTaskPriorityDisinherit+0xd8>)
  48564. 801420e: 6013 str r3, [r2, #0]
  48565. 8014210: 693b ldr r3, [r7, #16]
  48566. 8014212: 6ada ldr r2, [r3, #44] @ 0x2c
  48567. 8014214: 4613 mov r3, r2
  48568. 8014216: 009b lsls r3, r3, #2
  48569. 8014218: 4413 add r3, r2
  48570. 801421a: 009b lsls r3, r3, #2
  48571. 801421c: 4a09 ldr r2, [pc, #36] @ (8014244 <xTaskPriorityDisinherit+0xdc>)
  48572. 801421e: 441a add r2, r3
  48573. 8014220: 693b ldr r3, [r7, #16]
  48574. 8014222: 3304 adds r3, #4
  48575. 8014224: 4619 mov r1, r3
  48576. 8014226: 4610 mov r0, r2
  48577. 8014228: f7fd fb27 bl 801187a <vListInsertEnd>
  48578. in an order different to that in which they were taken.
  48579. If a context switch did not occur when the first mutex was
  48580. returned, even if a task was waiting on it, then a context
  48581. switch should occur when the last mutex is returned whether
  48582. a task is waiting on it or not. */
  48583. xReturn = pdTRUE;
  48584. 801422c: 2301 movs r3, #1
  48585. 801422e: 617b str r3, [r7, #20]
  48586. else
  48587. {
  48588. mtCOVERAGE_TEST_MARKER();
  48589. }
  48590. return xReturn;
  48591. 8014230: 697b ldr r3, [r7, #20]
  48592. }
  48593. 8014232: 4618 mov r0, r3
  48594. 8014234: 3718 adds r7, #24
  48595. 8014236: 46bd mov sp, r7
  48596. 8014238: bd80 pop {r7, pc}
  48597. 801423a: bf00 nop
  48598. 801423c: 24003d60 .word 0x24003d60
  48599. 8014240: 2400423c .word 0x2400423c
  48600. 8014244: 24003d64 .word 0x24003d64
  48601. 08014248 <vTaskPriorityDisinheritAfterTimeout>:
  48602. /*-----------------------------------------------------------*/
  48603. #if ( configUSE_MUTEXES == 1 )
  48604. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  48605. {
  48606. 8014248: b580 push {r7, lr}
  48607. 801424a: b088 sub sp, #32
  48608. 801424c: af00 add r7, sp, #0
  48609. 801424e: 6078 str r0, [r7, #4]
  48610. 8014250: 6039 str r1, [r7, #0]
  48611. TCB_t * const pxTCB = pxMutexHolder;
  48612. 8014252: 687b ldr r3, [r7, #4]
  48613. 8014254: 61bb str r3, [r7, #24]
  48614. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  48615. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  48616. 8014256: 2301 movs r3, #1
  48617. 8014258: 617b str r3, [r7, #20]
  48618. if( pxMutexHolder != NULL )
  48619. 801425a: 687b ldr r3, [r7, #4]
  48620. 801425c: 2b00 cmp r3, #0
  48621. 801425e: d06c beq.n 801433a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  48622. {
  48623. /* If pxMutexHolder is not NULL then the holder must hold at least
  48624. one mutex. */
  48625. configASSERT( pxTCB->uxMutexesHeld );
  48626. 8014260: 69bb ldr r3, [r7, #24]
  48627. 8014262: 6d1b ldr r3, [r3, #80] @ 0x50
  48628. 8014264: 2b00 cmp r3, #0
  48629. 8014266: d10b bne.n 8014280 <vTaskPriorityDisinheritAfterTimeout+0x38>
  48630. __asm volatile
  48631. 8014268: f04f 0350 mov.w r3, #80 @ 0x50
  48632. 801426c: f383 8811 msr BASEPRI, r3
  48633. 8014270: f3bf 8f6f isb sy
  48634. 8014274: f3bf 8f4f dsb sy
  48635. 8014278: 60fb str r3, [r7, #12]
  48636. }
  48637. 801427a: bf00 nop
  48638. 801427c: bf00 nop
  48639. 801427e: e7fd b.n 801427c <vTaskPriorityDisinheritAfterTimeout+0x34>
  48640. /* Determine the priority to which the priority of the task that
  48641. holds the mutex should be set. This will be the greater of the
  48642. holding task's base priority and the priority of the highest
  48643. priority task that is waiting to obtain the mutex. */
  48644. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  48645. 8014280: 69bb ldr r3, [r7, #24]
  48646. 8014282: 6cdb ldr r3, [r3, #76] @ 0x4c
  48647. 8014284: 683a ldr r2, [r7, #0]
  48648. 8014286: 429a cmp r2, r3
  48649. 8014288: d902 bls.n 8014290 <vTaskPriorityDisinheritAfterTimeout+0x48>
  48650. {
  48651. uxPriorityToUse = uxHighestPriorityWaitingTask;
  48652. 801428a: 683b ldr r3, [r7, #0]
  48653. 801428c: 61fb str r3, [r7, #28]
  48654. 801428e: e002 b.n 8014296 <vTaskPriorityDisinheritAfterTimeout+0x4e>
  48655. }
  48656. else
  48657. {
  48658. uxPriorityToUse = pxTCB->uxBasePriority;
  48659. 8014290: 69bb ldr r3, [r7, #24]
  48660. 8014292: 6cdb ldr r3, [r3, #76] @ 0x4c
  48661. 8014294: 61fb str r3, [r7, #28]
  48662. }
  48663. /* Does the priority need to change? */
  48664. if( pxTCB->uxPriority != uxPriorityToUse )
  48665. 8014296: 69bb ldr r3, [r7, #24]
  48666. 8014298: 6adb ldr r3, [r3, #44] @ 0x2c
  48667. 801429a: 69fa ldr r2, [r7, #28]
  48668. 801429c: 429a cmp r2, r3
  48669. 801429e: d04c beq.n 801433a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  48670. {
  48671. /* Only disinherit if no other mutexes are held. This is a
  48672. simplification in the priority inheritance implementation. If
  48673. the task that holds the mutex is also holding other mutexes then
  48674. the other mutexes may have caused the priority inheritance. */
  48675. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  48676. 80142a0: 69bb ldr r3, [r7, #24]
  48677. 80142a2: 6d1b ldr r3, [r3, #80] @ 0x50
  48678. 80142a4: 697a ldr r2, [r7, #20]
  48679. 80142a6: 429a cmp r2, r3
  48680. 80142a8: d147 bne.n 801433a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  48681. {
  48682. /* If a task has timed out because it already holds the
  48683. mutex it was trying to obtain then it cannot of inherited
  48684. its own priority. */
  48685. configASSERT( pxTCB != pxCurrentTCB );
  48686. 80142aa: 4b26 ldr r3, [pc, #152] @ (8014344 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  48687. 80142ac: 681b ldr r3, [r3, #0]
  48688. 80142ae: 69ba ldr r2, [r7, #24]
  48689. 80142b0: 429a cmp r2, r3
  48690. 80142b2: d10b bne.n 80142cc <vTaskPriorityDisinheritAfterTimeout+0x84>
  48691. __asm volatile
  48692. 80142b4: f04f 0350 mov.w r3, #80 @ 0x50
  48693. 80142b8: f383 8811 msr BASEPRI, r3
  48694. 80142bc: f3bf 8f6f isb sy
  48695. 80142c0: f3bf 8f4f dsb sy
  48696. 80142c4: 60bb str r3, [r7, #8]
  48697. }
  48698. 80142c6: bf00 nop
  48699. 80142c8: bf00 nop
  48700. 80142ca: e7fd b.n 80142c8 <vTaskPriorityDisinheritAfterTimeout+0x80>
  48701. /* Disinherit the priority, remembering the previous
  48702. priority to facilitate determining the subject task's
  48703. state. */
  48704. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  48705. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  48706. 80142cc: 69bb ldr r3, [r7, #24]
  48707. 80142ce: 6adb ldr r3, [r3, #44] @ 0x2c
  48708. 80142d0: 613b str r3, [r7, #16]
  48709. pxTCB->uxPriority = uxPriorityToUse;
  48710. 80142d2: 69bb ldr r3, [r7, #24]
  48711. 80142d4: 69fa ldr r2, [r7, #28]
  48712. 80142d6: 62da str r2, [r3, #44] @ 0x2c
  48713. /* Only reset the event list item value if the value is not
  48714. being used for anything else. */
  48715. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  48716. 80142d8: 69bb ldr r3, [r7, #24]
  48717. 80142da: 699b ldr r3, [r3, #24]
  48718. 80142dc: 2b00 cmp r3, #0
  48719. 80142de: db04 blt.n 80142ea <vTaskPriorityDisinheritAfterTimeout+0xa2>
  48720. {
  48721. 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. */
  48722. 80142e0: 69fb ldr r3, [r7, #28]
  48723. 80142e2: f1c3 0238 rsb r2, r3, #56 @ 0x38
  48724. 80142e6: 69bb ldr r3, [r7, #24]
  48725. 80142e8: 619a str r2, [r3, #24]
  48726. then the task that holds the mutex could be in either the
  48727. Ready, Blocked or Suspended states. Only remove the task
  48728. from its current state list if it is in the Ready state as
  48729. the task's priority is going to change and there is one
  48730. Ready list per priority. */
  48731. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  48732. 80142ea: 69bb ldr r3, [r7, #24]
  48733. 80142ec: 6959 ldr r1, [r3, #20]
  48734. 80142ee: 693a ldr r2, [r7, #16]
  48735. 80142f0: 4613 mov r3, r2
  48736. 80142f2: 009b lsls r3, r3, #2
  48737. 80142f4: 4413 add r3, r2
  48738. 80142f6: 009b lsls r3, r3, #2
  48739. 80142f8: 4a13 ldr r2, [pc, #76] @ (8014348 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  48740. 80142fa: 4413 add r3, r2
  48741. 80142fc: 4299 cmp r1, r3
  48742. 80142fe: d11c bne.n 801433a <vTaskPriorityDisinheritAfterTimeout+0xf2>
  48743. {
  48744. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  48745. 8014300: 69bb ldr r3, [r7, #24]
  48746. 8014302: 3304 adds r3, #4
  48747. 8014304: 4618 mov r0, r3
  48748. 8014306: f7fd fb15 bl 8011934 <uxListRemove>
  48749. else
  48750. {
  48751. mtCOVERAGE_TEST_MARKER();
  48752. }
  48753. prvAddTaskToReadyList( pxTCB );
  48754. 801430a: 69bb ldr r3, [r7, #24]
  48755. 801430c: 6ada ldr r2, [r3, #44] @ 0x2c
  48756. 801430e: 4b0f ldr r3, [pc, #60] @ (801434c <vTaskPriorityDisinheritAfterTimeout+0x104>)
  48757. 8014310: 681b ldr r3, [r3, #0]
  48758. 8014312: 429a cmp r2, r3
  48759. 8014314: d903 bls.n 801431e <vTaskPriorityDisinheritAfterTimeout+0xd6>
  48760. 8014316: 69bb ldr r3, [r7, #24]
  48761. 8014318: 6adb ldr r3, [r3, #44] @ 0x2c
  48762. 801431a: 4a0c ldr r2, [pc, #48] @ (801434c <vTaskPriorityDisinheritAfterTimeout+0x104>)
  48763. 801431c: 6013 str r3, [r2, #0]
  48764. 801431e: 69bb ldr r3, [r7, #24]
  48765. 8014320: 6ada ldr r2, [r3, #44] @ 0x2c
  48766. 8014322: 4613 mov r3, r2
  48767. 8014324: 009b lsls r3, r3, #2
  48768. 8014326: 4413 add r3, r2
  48769. 8014328: 009b lsls r3, r3, #2
  48770. 801432a: 4a07 ldr r2, [pc, #28] @ (8014348 <vTaskPriorityDisinheritAfterTimeout+0x100>)
  48771. 801432c: 441a add r2, r3
  48772. 801432e: 69bb ldr r3, [r7, #24]
  48773. 8014330: 3304 adds r3, #4
  48774. 8014332: 4619 mov r1, r3
  48775. 8014334: 4610 mov r0, r2
  48776. 8014336: f7fd faa0 bl 801187a <vListInsertEnd>
  48777. }
  48778. else
  48779. {
  48780. mtCOVERAGE_TEST_MARKER();
  48781. }
  48782. }
  48783. 801433a: bf00 nop
  48784. 801433c: 3720 adds r7, #32
  48785. 801433e: 46bd mov sp, r7
  48786. 8014340: bd80 pop {r7, pc}
  48787. 8014342: bf00 nop
  48788. 8014344: 24003d60 .word 0x24003d60
  48789. 8014348: 24003d64 .word 0x24003d64
  48790. 801434c: 2400423c .word 0x2400423c
  48791. 08014350 <pvTaskIncrementMutexHeldCount>:
  48792. /*-----------------------------------------------------------*/
  48793. #if ( configUSE_MUTEXES == 1 )
  48794. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  48795. {
  48796. 8014350: b480 push {r7}
  48797. 8014352: af00 add r7, sp, #0
  48798. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  48799. then pxCurrentTCB will be NULL. */
  48800. if( pxCurrentTCB != NULL )
  48801. 8014354: 4b07 ldr r3, [pc, #28] @ (8014374 <pvTaskIncrementMutexHeldCount+0x24>)
  48802. 8014356: 681b ldr r3, [r3, #0]
  48803. 8014358: 2b00 cmp r3, #0
  48804. 801435a: d004 beq.n 8014366 <pvTaskIncrementMutexHeldCount+0x16>
  48805. {
  48806. ( pxCurrentTCB->uxMutexesHeld )++;
  48807. 801435c: 4b05 ldr r3, [pc, #20] @ (8014374 <pvTaskIncrementMutexHeldCount+0x24>)
  48808. 801435e: 681b ldr r3, [r3, #0]
  48809. 8014360: 6d1a ldr r2, [r3, #80] @ 0x50
  48810. 8014362: 3201 adds r2, #1
  48811. 8014364: 651a str r2, [r3, #80] @ 0x50
  48812. }
  48813. return pxCurrentTCB;
  48814. 8014366: 4b03 ldr r3, [pc, #12] @ (8014374 <pvTaskIncrementMutexHeldCount+0x24>)
  48815. 8014368: 681b ldr r3, [r3, #0]
  48816. }
  48817. 801436a: 4618 mov r0, r3
  48818. 801436c: 46bd mov sp, r7
  48819. 801436e: f85d 7b04 ldr.w r7, [sp], #4
  48820. 8014372: 4770 bx lr
  48821. 8014374: 24003d60 .word 0x24003d60
  48822. 08014378 <xTaskNotifyWait>:
  48823. /*-----------------------------------------------------------*/
  48824. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  48825. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  48826. {
  48827. 8014378: b580 push {r7, lr}
  48828. 801437a: b086 sub sp, #24
  48829. 801437c: af00 add r7, sp, #0
  48830. 801437e: 60f8 str r0, [r7, #12]
  48831. 8014380: 60b9 str r1, [r7, #8]
  48832. 8014382: 607a str r2, [r7, #4]
  48833. 8014384: 603b str r3, [r7, #0]
  48834. BaseType_t xReturn;
  48835. taskENTER_CRITICAL();
  48836. 8014386: f000 ffc7 bl 8015318 <vPortEnterCritical>
  48837. {
  48838. /* Only block if a notification is not already pending. */
  48839. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  48840. 801438a: 4b29 ldr r3, [pc, #164] @ (8014430 <xTaskNotifyWait+0xb8>)
  48841. 801438c: 681b ldr r3, [r3, #0]
  48842. 801438e: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  48843. 8014392: b2db uxtb r3, r3
  48844. 8014394: 2b02 cmp r3, #2
  48845. 8014396: d01c beq.n 80143d2 <xTaskNotifyWait+0x5a>
  48846. {
  48847. /* Clear bits in the task's notification value as bits may get
  48848. set by the notifying task or interrupt. This can be used to
  48849. clear the value to zero. */
  48850. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  48851. 8014398: 4b25 ldr r3, [pc, #148] @ (8014430 <xTaskNotifyWait+0xb8>)
  48852. 801439a: 681b ldr r3, [r3, #0]
  48853. 801439c: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  48854. 80143a0: 68fa ldr r2, [r7, #12]
  48855. 80143a2: 43d2 mvns r2, r2
  48856. 80143a4: 400a ands r2, r1
  48857. 80143a6: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48858. /* Mark this task as waiting for a notification. */
  48859. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  48860. 80143aa: 4b21 ldr r3, [pc, #132] @ (8014430 <xTaskNotifyWait+0xb8>)
  48861. 80143ac: 681b ldr r3, [r3, #0]
  48862. 80143ae: 2201 movs r2, #1
  48863. 80143b0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  48864. if( xTicksToWait > ( TickType_t ) 0 )
  48865. 80143b4: 683b ldr r3, [r7, #0]
  48866. 80143b6: 2b00 cmp r3, #0
  48867. 80143b8: d00b beq.n 80143d2 <xTaskNotifyWait+0x5a>
  48868. {
  48869. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  48870. 80143ba: 2101 movs r1, #1
  48871. 80143bc: 6838 ldr r0, [r7, #0]
  48872. 80143be: f000 fa09 bl 80147d4 <prvAddCurrentTaskToDelayedList>
  48873. /* All ports are written to allow a yield in a critical
  48874. section (some will yield immediately, others wait until the
  48875. critical section exits) - but it is not something that
  48876. application code should ever do. */
  48877. portYIELD_WITHIN_API();
  48878. 80143c2: 4b1c ldr r3, [pc, #112] @ (8014434 <xTaskNotifyWait+0xbc>)
  48879. 80143c4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48880. 80143c8: 601a str r2, [r3, #0]
  48881. 80143ca: f3bf 8f4f dsb sy
  48882. 80143ce: f3bf 8f6f isb sy
  48883. else
  48884. {
  48885. mtCOVERAGE_TEST_MARKER();
  48886. }
  48887. }
  48888. taskEXIT_CRITICAL();
  48889. 80143d2: f000 ffd3 bl 801537c <vPortExitCritical>
  48890. taskENTER_CRITICAL();
  48891. 80143d6: f000 ff9f bl 8015318 <vPortEnterCritical>
  48892. {
  48893. traceTASK_NOTIFY_WAIT();
  48894. if( pulNotificationValue != NULL )
  48895. 80143da: 687b ldr r3, [r7, #4]
  48896. 80143dc: 2b00 cmp r3, #0
  48897. 80143de: d005 beq.n 80143ec <xTaskNotifyWait+0x74>
  48898. {
  48899. /* Output the current notification value, which may or may not
  48900. have changed. */
  48901. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  48902. 80143e0: 4b13 ldr r3, [pc, #76] @ (8014430 <xTaskNotifyWait+0xb8>)
  48903. 80143e2: 681b ldr r3, [r3, #0]
  48904. 80143e4: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  48905. 80143e8: 687b ldr r3, [r7, #4]
  48906. 80143ea: 601a str r2, [r3, #0]
  48907. /* If ucNotifyValue is set then either the task never entered the
  48908. blocked state (because a notification was already pending) or the
  48909. task unblocked because of a notification. Otherwise the task
  48910. unblocked because of a timeout. */
  48911. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  48912. 80143ec: 4b10 ldr r3, [pc, #64] @ (8014430 <xTaskNotifyWait+0xb8>)
  48913. 80143ee: 681b ldr r3, [r3, #0]
  48914. 80143f0: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  48915. 80143f4: b2db uxtb r3, r3
  48916. 80143f6: 2b02 cmp r3, #2
  48917. 80143f8: d002 beq.n 8014400 <xTaskNotifyWait+0x88>
  48918. {
  48919. /* A notification was not received. */
  48920. xReturn = pdFALSE;
  48921. 80143fa: 2300 movs r3, #0
  48922. 80143fc: 617b str r3, [r7, #20]
  48923. 80143fe: e00a b.n 8014416 <xTaskNotifyWait+0x9e>
  48924. }
  48925. else
  48926. {
  48927. /* A notification was already pending or a notification was
  48928. received while the task was waiting. */
  48929. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  48930. 8014400: 4b0b ldr r3, [pc, #44] @ (8014430 <xTaskNotifyWait+0xb8>)
  48931. 8014402: 681b ldr r3, [r3, #0]
  48932. 8014404: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  48933. 8014408: 68ba ldr r2, [r7, #8]
  48934. 801440a: 43d2 mvns r2, r2
  48935. 801440c: 400a ands r2, r1
  48936. 801440e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  48937. xReturn = pdTRUE;
  48938. 8014412: 2301 movs r3, #1
  48939. 8014414: 617b str r3, [r7, #20]
  48940. }
  48941. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  48942. 8014416: 4b06 ldr r3, [pc, #24] @ (8014430 <xTaskNotifyWait+0xb8>)
  48943. 8014418: 681b ldr r3, [r3, #0]
  48944. 801441a: 2200 movs r2, #0
  48945. 801441c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  48946. }
  48947. taskEXIT_CRITICAL();
  48948. 8014420: f000 ffac bl 801537c <vPortExitCritical>
  48949. return xReturn;
  48950. 8014424: 697b ldr r3, [r7, #20]
  48951. }
  48952. 8014426: 4618 mov r0, r3
  48953. 8014428: 3718 adds r7, #24
  48954. 801442a: 46bd mov sp, r7
  48955. 801442c: bd80 pop {r7, pc}
  48956. 801442e: bf00 nop
  48957. 8014430: 24003d60 .word 0x24003d60
  48958. 8014434: e000ed04 .word 0xe000ed04
  48959. 08014438 <xTaskGenericNotify>:
  48960. /*-----------------------------------------------------------*/
  48961. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  48962. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  48963. {
  48964. 8014438: b580 push {r7, lr}
  48965. 801443a: b08a sub sp, #40 @ 0x28
  48966. 801443c: af00 add r7, sp, #0
  48967. 801443e: 60f8 str r0, [r7, #12]
  48968. 8014440: 60b9 str r1, [r7, #8]
  48969. 8014442: 603b str r3, [r7, #0]
  48970. 8014444: 4613 mov r3, r2
  48971. 8014446: 71fb strb r3, [r7, #7]
  48972. TCB_t * pxTCB;
  48973. BaseType_t xReturn = pdPASS;
  48974. 8014448: 2301 movs r3, #1
  48975. 801444a: 627b str r3, [r7, #36] @ 0x24
  48976. uint8_t ucOriginalNotifyState;
  48977. configASSERT( xTaskToNotify );
  48978. 801444c: 68fb ldr r3, [r7, #12]
  48979. 801444e: 2b00 cmp r3, #0
  48980. 8014450: d10b bne.n 801446a <xTaskGenericNotify+0x32>
  48981. __asm volatile
  48982. 8014452: f04f 0350 mov.w r3, #80 @ 0x50
  48983. 8014456: f383 8811 msr BASEPRI, r3
  48984. 801445a: f3bf 8f6f isb sy
  48985. 801445e: f3bf 8f4f dsb sy
  48986. 8014462: 61bb str r3, [r7, #24]
  48987. }
  48988. 8014464: bf00 nop
  48989. 8014466: bf00 nop
  48990. 8014468: e7fd b.n 8014466 <xTaskGenericNotify+0x2e>
  48991. pxTCB = xTaskToNotify;
  48992. 801446a: 68fb ldr r3, [r7, #12]
  48993. 801446c: 623b str r3, [r7, #32]
  48994. taskENTER_CRITICAL();
  48995. 801446e: f000 ff53 bl 8015318 <vPortEnterCritical>
  48996. {
  48997. if( pulPreviousNotificationValue != NULL )
  48998. 8014472: 683b ldr r3, [r7, #0]
  48999. 8014474: 2b00 cmp r3, #0
  49000. 8014476: d004 beq.n 8014482 <xTaskGenericNotify+0x4a>
  49001. {
  49002. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  49003. 8014478: 6a3b ldr r3, [r7, #32]
  49004. 801447a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49005. 801447e: 683b ldr r3, [r7, #0]
  49006. 8014480: 601a str r2, [r3, #0]
  49007. }
  49008. ucOriginalNotifyState = pxTCB->ucNotifyState;
  49009. 8014482: 6a3b ldr r3, [r7, #32]
  49010. 8014484: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  49011. 8014488: 77fb strb r3, [r7, #31]
  49012. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  49013. 801448a: 6a3b ldr r3, [r7, #32]
  49014. 801448c: 2202 movs r2, #2
  49015. 801448e: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  49016. switch( eAction )
  49017. 8014492: 79fb ldrb r3, [r7, #7]
  49018. 8014494: 2b04 cmp r3, #4
  49019. 8014496: d82e bhi.n 80144f6 <xTaskGenericNotify+0xbe>
  49020. 8014498: a201 add r2, pc, #4 @ (adr r2, 80144a0 <xTaskGenericNotify+0x68>)
  49021. 801449a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  49022. 801449e: bf00 nop
  49023. 80144a0: 0801451b .word 0x0801451b
  49024. 80144a4: 080144b5 .word 0x080144b5
  49025. 80144a8: 080144c7 .word 0x080144c7
  49026. 80144ac: 080144d7 .word 0x080144d7
  49027. 80144b0: 080144e1 .word 0x080144e1
  49028. {
  49029. case eSetBits :
  49030. pxTCB->ulNotifiedValue |= ulValue;
  49031. 80144b4: 6a3b ldr r3, [r7, #32]
  49032. 80144b6: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49033. 80144ba: 68bb ldr r3, [r7, #8]
  49034. 80144bc: 431a orrs r2, r3
  49035. 80144be: 6a3b ldr r3, [r7, #32]
  49036. 80144c0: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49037. break;
  49038. 80144c4: e02c b.n 8014520 <xTaskGenericNotify+0xe8>
  49039. case eIncrement :
  49040. ( pxTCB->ulNotifiedValue )++;
  49041. 80144c6: 6a3b ldr r3, [r7, #32]
  49042. 80144c8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  49043. 80144cc: 1c5a adds r2, r3, #1
  49044. 80144ce: 6a3b ldr r3, [r7, #32]
  49045. 80144d0: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49046. break;
  49047. 80144d4: e024 b.n 8014520 <xTaskGenericNotify+0xe8>
  49048. case eSetValueWithOverwrite :
  49049. pxTCB->ulNotifiedValue = ulValue;
  49050. 80144d6: 6a3b ldr r3, [r7, #32]
  49051. 80144d8: 68ba ldr r2, [r7, #8]
  49052. 80144da: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49053. break;
  49054. 80144de: e01f b.n 8014520 <xTaskGenericNotify+0xe8>
  49055. case eSetValueWithoutOverwrite :
  49056. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  49057. 80144e0: 7ffb ldrb r3, [r7, #31]
  49058. 80144e2: 2b02 cmp r3, #2
  49059. 80144e4: d004 beq.n 80144f0 <xTaskGenericNotify+0xb8>
  49060. {
  49061. pxTCB->ulNotifiedValue = ulValue;
  49062. 80144e6: 6a3b ldr r3, [r7, #32]
  49063. 80144e8: 68ba ldr r2, [r7, #8]
  49064. 80144ea: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49065. else
  49066. {
  49067. /* The value could not be written to the task. */
  49068. xReturn = pdFAIL;
  49069. }
  49070. break;
  49071. 80144ee: e017 b.n 8014520 <xTaskGenericNotify+0xe8>
  49072. xReturn = pdFAIL;
  49073. 80144f0: 2300 movs r3, #0
  49074. 80144f2: 627b str r3, [r7, #36] @ 0x24
  49075. break;
  49076. 80144f4: e014 b.n 8014520 <xTaskGenericNotify+0xe8>
  49077. default:
  49078. /* Should not get here if all enums are handled.
  49079. Artificially force an assert by testing a value the
  49080. compiler can't assume is const. */
  49081. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  49082. 80144f6: 6a3b ldr r3, [r7, #32]
  49083. 80144f8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  49084. 80144fc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49085. 8014500: d00d beq.n 801451e <xTaskGenericNotify+0xe6>
  49086. __asm volatile
  49087. 8014502: f04f 0350 mov.w r3, #80 @ 0x50
  49088. 8014506: f383 8811 msr BASEPRI, r3
  49089. 801450a: f3bf 8f6f isb sy
  49090. 801450e: f3bf 8f4f dsb sy
  49091. 8014512: 617b str r3, [r7, #20]
  49092. }
  49093. 8014514: bf00 nop
  49094. 8014516: bf00 nop
  49095. 8014518: e7fd b.n 8014516 <xTaskGenericNotify+0xde>
  49096. break;
  49097. 801451a: bf00 nop
  49098. 801451c: e000 b.n 8014520 <xTaskGenericNotify+0xe8>
  49099. break;
  49100. 801451e: bf00 nop
  49101. traceTASK_NOTIFY();
  49102. /* If the task is in the blocked state specifically to wait for a
  49103. notification then unblock it now. */
  49104. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  49105. 8014520: 7ffb ldrb r3, [r7, #31]
  49106. 8014522: 2b01 cmp r3, #1
  49107. 8014524: d13b bne.n 801459e <xTaskGenericNotify+0x166>
  49108. {
  49109. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  49110. 8014526: 6a3b ldr r3, [r7, #32]
  49111. 8014528: 3304 adds r3, #4
  49112. 801452a: 4618 mov r0, r3
  49113. 801452c: f7fd fa02 bl 8011934 <uxListRemove>
  49114. prvAddTaskToReadyList( pxTCB );
  49115. 8014530: 6a3b ldr r3, [r7, #32]
  49116. 8014532: 6ada ldr r2, [r3, #44] @ 0x2c
  49117. 8014534: 4b1d ldr r3, [pc, #116] @ (80145ac <xTaskGenericNotify+0x174>)
  49118. 8014536: 681b ldr r3, [r3, #0]
  49119. 8014538: 429a cmp r2, r3
  49120. 801453a: d903 bls.n 8014544 <xTaskGenericNotify+0x10c>
  49121. 801453c: 6a3b ldr r3, [r7, #32]
  49122. 801453e: 6adb ldr r3, [r3, #44] @ 0x2c
  49123. 8014540: 4a1a ldr r2, [pc, #104] @ (80145ac <xTaskGenericNotify+0x174>)
  49124. 8014542: 6013 str r3, [r2, #0]
  49125. 8014544: 6a3b ldr r3, [r7, #32]
  49126. 8014546: 6ada ldr r2, [r3, #44] @ 0x2c
  49127. 8014548: 4613 mov r3, r2
  49128. 801454a: 009b lsls r3, r3, #2
  49129. 801454c: 4413 add r3, r2
  49130. 801454e: 009b lsls r3, r3, #2
  49131. 8014550: 4a17 ldr r2, [pc, #92] @ (80145b0 <xTaskGenericNotify+0x178>)
  49132. 8014552: 441a add r2, r3
  49133. 8014554: 6a3b ldr r3, [r7, #32]
  49134. 8014556: 3304 adds r3, #4
  49135. 8014558: 4619 mov r1, r3
  49136. 801455a: 4610 mov r0, r2
  49137. 801455c: f7fd f98d bl 801187a <vListInsertEnd>
  49138. /* The task should not have been on an event list. */
  49139. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  49140. 8014560: 6a3b ldr r3, [r7, #32]
  49141. 8014562: 6a9b ldr r3, [r3, #40] @ 0x28
  49142. 8014564: 2b00 cmp r3, #0
  49143. 8014566: d00b beq.n 8014580 <xTaskGenericNotify+0x148>
  49144. __asm volatile
  49145. 8014568: f04f 0350 mov.w r3, #80 @ 0x50
  49146. 801456c: f383 8811 msr BASEPRI, r3
  49147. 8014570: f3bf 8f6f isb sy
  49148. 8014574: f3bf 8f4f dsb sy
  49149. 8014578: 613b str r3, [r7, #16]
  49150. }
  49151. 801457a: bf00 nop
  49152. 801457c: bf00 nop
  49153. 801457e: e7fd b.n 801457c <xTaskGenericNotify+0x144>
  49154. earliest possible time. */
  49155. prvResetNextTaskUnblockTime();
  49156. }
  49157. #endif
  49158. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  49159. 8014580: 6a3b ldr r3, [r7, #32]
  49160. 8014582: 6ada ldr r2, [r3, #44] @ 0x2c
  49161. 8014584: 4b0b ldr r3, [pc, #44] @ (80145b4 <xTaskGenericNotify+0x17c>)
  49162. 8014586: 681b ldr r3, [r3, #0]
  49163. 8014588: 6adb ldr r3, [r3, #44] @ 0x2c
  49164. 801458a: 429a cmp r2, r3
  49165. 801458c: d907 bls.n 801459e <xTaskGenericNotify+0x166>
  49166. {
  49167. /* The notified task has a priority above the currently
  49168. executing task so a yield is required. */
  49169. taskYIELD_IF_USING_PREEMPTION();
  49170. 801458e: 4b0a ldr r3, [pc, #40] @ (80145b8 <xTaskGenericNotify+0x180>)
  49171. 8014590: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  49172. 8014594: 601a str r2, [r3, #0]
  49173. 8014596: f3bf 8f4f dsb sy
  49174. 801459a: f3bf 8f6f isb sy
  49175. else
  49176. {
  49177. mtCOVERAGE_TEST_MARKER();
  49178. }
  49179. }
  49180. taskEXIT_CRITICAL();
  49181. 801459e: f000 feed bl 801537c <vPortExitCritical>
  49182. return xReturn;
  49183. 80145a2: 6a7b ldr r3, [r7, #36] @ 0x24
  49184. }
  49185. 80145a4: 4618 mov r0, r3
  49186. 80145a6: 3728 adds r7, #40 @ 0x28
  49187. 80145a8: 46bd mov sp, r7
  49188. 80145aa: bd80 pop {r7, pc}
  49189. 80145ac: 2400423c .word 0x2400423c
  49190. 80145b0: 24003d64 .word 0x24003d64
  49191. 80145b4: 24003d60 .word 0x24003d60
  49192. 80145b8: e000ed04 .word 0xe000ed04
  49193. 080145bc <xTaskGenericNotifyFromISR>:
  49194. /*-----------------------------------------------------------*/
  49195. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  49196. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  49197. {
  49198. 80145bc: b580 push {r7, lr}
  49199. 80145be: b08e sub sp, #56 @ 0x38
  49200. 80145c0: af00 add r7, sp, #0
  49201. 80145c2: 60f8 str r0, [r7, #12]
  49202. 80145c4: 60b9 str r1, [r7, #8]
  49203. 80145c6: 603b str r3, [r7, #0]
  49204. 80145c8: 4613 mov r3, r2
  49205. 80145ca: 71fb strb r3, [r7, #7]
  49206. TCB_t * pxTCB;
  49207. uint8_t ucOriginalNotifyState;
  49208. BaseType_t xReturn = pdPASS;
  49209. 80145cc: 2301 movs r3, #1
  49210. 80145ce: 637b str r3, [r7, #52] @ 0x34
  49211. UBaseType_t uxSavedInterruptStatus;
  49212. configASSERT( xTaskToNotify );
  49213. 80145d0: 68fb ldr r3, [r7, #12]
  49214. 80145d2: 2b00 cmp r3, #0
  49215. 80145d4: d10b bne.n 80145ee <xTaskGenericNotifyFromISR+0x32>
  49216. __asm volatile
  49217. 80145d6: f04f 0350 mov.w r3, #80 @ 0x50
  49218. 80145da: f383 8811 msr BASEPRI, r3
  49219. 80145de: f3bf 8f6f isb sy
  49220. 80145e2: f3bf 8f4f dsb sy
  49221. 80145e6: 627b str r3, [r7, #36] @ 0x24
  49222. }
  49223. 80145e8: bf00 nop
  49224. 80145ea: bf00 nop
  49225. 80145ec: e7fd b.n 80145ea <xTaskGenericNotifyFromISR+0x2e>
  49226. below the maximum system call interrupt priority. FreeRTOS maintains a
  49227. separate interrupt safe API to ensure interrupt entry is as fast and as
  49228. simple as possible. More information (albeit Cortex-M specific) is
  49229. provided on the following link:
  49230. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  49231. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  49232. 80145ee: f000 ff73 bl 80154d8 <vPortValidateInterruptPriority>
  49233. pxTCB = xTaskToNotify;
  49234. 80145f2: 68fb ldr r3, [r7, #12]
  49235. 80145f4: 633b str r3, [r7, #48] @ 0x30
  49236. __asm volatile
  49237. 80145f6: f3ef 8211 mrs r2, BASEPRI
  49238. 80145fa: f04f 0350 mov.w r3, #80 @ 0x50
  49239. 80145fe: f383 8811 msr BASEPRI, r3
  49240. 8014602: f3bf 8f6f isb sy
  49241. 8014606: f3bf 8f4f dsb sy
  49242. 801460a: 623a str r2, [r7, #32]
  49243. 801460c: 61fb str r3, [r7, #28]
  49244. return ulOriginalBASEPRI;
  49245. 801460e: 6a3b ldr r3, [r7, #32]
  49246. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49247. 8014610: 62fb str r3, [r7, #44] @ 0x2c
  49248. {
  49249. if( pulPreviousNotificationValue != NULL )
  49250. 8014612: 683b ldr r3, [r7, #0]
  49251. 8014614: 2b00 cmp r3, #0
  49252. 8014616: d004 beq.n 8014622 <xTaskGenericNotifyFromISR+0x66>
  49253. {
  49254. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  49255. 8014618: 6b3b ldr r3, [r7, #48] @ 0x30
  49256. 801461a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49257. 801461e: 683b ldr r3, [r7, #0]
  49258. 8014620: 601a str r2, [r3, #0]
  49259. }
  49260. ucOriginalNotifyState = pxTCB->ucNotifyState;
  49261. 8014622: 6b3b ldr r3, [r7, #48] @ 0x30
  49262. 8014624: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  49263. 8014628: f887 302b strb.w r3, [r7, #43] @ 0x2b
  49264. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  49265. 801462c: 6b3b ldr r3, [r7, #48] @ 0x30
  49266. 801462e: 2202 movs r2, #2
  49267. 8014630: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  49268. switch( eAction )
  49269. 8014634: 79fb ldrb r3, [r7, #7]
  49270. 8014636: 2b04 cmp r3, #4
  49271. 8014638: d82e bhi.n 8014698 <xTaskGenericNotifyFromISR+0xdc>
  49272. 801463a: a201 add r2, pc, #4 @ (adr r2, 8014640 <xTaskGenericNotifyFromISR+0x84>)
  49273. 801463c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  49274. 8014640: 080146bd .word 0x080146bd
  49275. 8014644: 08014655 .word 0x08014655
  49276. 8014648: 08014667 .word 0x08014667
  49277. 801464c: 08014677 .word 0x08014677
  49278. 8014650: 08014681 .word 0x08014681
  49279. {
  49280. case eSetBits :
  49281. pxTCB->ulNotifiedValue |= ulValue;
  49282. 8014654: 6b3b ldr r3, [r7, #48] @ 0x30
  49283. 8014656: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  49284. 801465a: 68bb ldr r3, [r7, #8]
  49285. 801465c: 431a orrs r2, r3
  49286. 801465e: 6b3b ldr r3, [r7, #48] @ 0x30
  49287. 8014660: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49288. break;
  49289. 8014664: e02d b.n 80146c2 <xTaskGenericNotifyFromISR+0x106>
  49290. case eIncrement :
  49291. ( pxTCB->ulNotifiedValue )++;
  49292. 8014666: 6b3b ldr r3, [r7, #48] @ 0x30
  49293. 8014668: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  49294. 801466c: 1c5a adds r2, r3, #1
  49295. 801466e: 6b3b ldr r3, [r7, #48] @ 0x30
  49296. 8014670: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49297. break;
  49298. 8014674: e025 b.n 80146c2 <xTaskGenericNotifyFromISR+0x106>
  49299. case eSetValueWithOverwrite :
  49300. pxTCB->ulNotifiedValue = ulValue;
  49301. 8014676: 6b3b ldr r3, [r7, #48] @ 0x30
  49302. 8014678: 68ba ldr r2, [r7, #8]
  49303. 801467a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49304. break;
  49305. 801467e: e020 b.n 80146c2 <xTaskGenericNotifyFromISR+0x106>
  49306. case eSetValueWithoutOverwrite :
  49307. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  49308. 8014680: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  49309. 8014684: 2b02 cmp r3, #2
  49310. 8014686: d004 beq.n 8014692 <xTaskGenericNotifyFromISR+0xd6>
  49311. {
  49312. pxTCB->ulNotifiedValue = ulValue;
  49313. 8014688: 6b3b ldr r3, [r7, #48] @ 0x30
  49314. 801468a: 68ba ldr r2, [r7, #8]
  49315. 801468c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  49316. else
  49317. {
  49318. /* The value could not be written to the task. */
  49319. xReturn = pdFAIL;
  49320. }
  49321. break;
  49322. 8014690: e017 b.n 80146c2 <xTaskGenericNotifyFromISR+0x106>
  49323. xReturn = pdFAIL;
  49324. 8014692: 2300 movs r3, #0
  49325. 8014694: 637b str r3, [r7, #52] @ 0x34
  49326. break;
  49327. 8014696: e014 b.n 80146c2 <xTaskGenericNotifyFromISR+0x106>
  49328. default:
  49329. /* Should not get here if all enums are handled.
  49330. Artificially force an assert by testing a value the
  49331. compiler can't assume is const. */
  49332. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  49333. 8014698: 6b3b ldr r3, [r7, #48] @ 0x30
  49334. 801469a: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  49335. 801469e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49336. 80146a2: d00d beq.n 80146c0 <xTaskGenericNotifyFromISR+0x104>
  49337. __asm volatile
  49338. 80146a4: f04f 0350 mov.w r3, #80 @ 0x50
  49339. 80146a8: f383 8811 msr BASEPRI, r3
  49340. 80146ac: f3bf 8f6f isb sy
  49341. 80146b0: f3bf 8f4f dsb sy
  49342. 80146b4: 61bb str r3, [r7, #24]
  49343. }
  49344. 80146b6: bf00 nop
  49345. 80146b8: bf00 nop
  49346. 80146ba: e7fd b.n 80146b8 <xTaskGenericNotifyFromISR+0xfc>
  49347. break;
  49348. 80146bc: bf00 nop
  49349. 80146be: e000 b.n 80146c2 <xTaskGenericNotifyFromISR+0x106>
  49350. break;
  49351. 80146c0: bf00 nop
  49352. traceTASK_NOTIFY_FROM_ISR();
  49353. /* If the task is in the blocked state specifically to wait for a
  49354. notification then unblock it now. */
  49355. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  49356. 80146c2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  49357. 80146c6: 2b01 cmp r3, #1
  49358. 80146c8: d147 bne.n 801475a <xTaskGenericNotifyFromISR+0x19e>
  49359. {
  49360. /* The task should not have been on an event list. */
  49361. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  49362. 80146ca: 6b3b ldr r3, [r7, #48] @ 0x30
  49363. 80146cc: 6a9b ldr r3, [r3, #40] @ 0x28
  49364. 80146ce: 2b00 cmp r3, #0
  49365. 80146d0: d00b beq.n 80146ea <xTaskGenericNotifyFromISR+0x12e>
  49366. __asm volatile
  49367. 80146d2: f04f 0350 mov.w r3, #80 @ 0x50
  49368. 80146d6: f383 8811 msr BASEPRI, r3
  49369. 80146da: f3bf 8f6f isb sy
  49370. 80146de: f3bf 8f4f dsb sy
  49371. 80146e2: 617b str r3, [r7, #20]
  49372. }
  49373. 80146e4: bf00 nop
  49374. 80146e6: bf00 nop
  49375. 80146e8: e7fd b.n 80146e6 <xTaskGenericNotifyFromISR+0x12a>
  49376. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  49377. 80146ea: 4b21 ldr r3, [pc, #132] @ (8014770 <xTaskGenericNotifyFromISR+0x1b4>)
  49378. 80146ec: 681b ldr r3, [r3, #0]
  49379. 80146ee: 2b00 cmp r3, #0
  49380. 80146f0: d11d bne.n 801472e <xTaskGenericNotifyFromISR+0x172>
  49381. {
  49382. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  49383. 80146f2: 6b3b ldr r3, [r7, #48] @ 0x30
  49384. 80146f4: 3304 adds r3, #4
  49385. 80146f6: 4618 mov r0, r3
  49386. 80146f8: f7fd f91c bl 8011934 <uxListRemove>
  49387. prvAddTaskToReadyList( pxTCB );
  49388. 80146fc: 6b3b ldr r3, [r7, #48] @ 0x30
  49389. 80146fe: 6ada ldr r2, [r3, #44] @ 0x2c
  49390. 8014700: 4b1c ldr r3, [pc, #112] @ (8014774 <xTaskGenericNotifyFromISR+0x1b8>)
  49391. 8014702: 681b ldr r3, [r3, #0]
  49392. 8014704: 429a cmp r2, r3
  49393. 8014706: d903 bls.n 8014710 <xTaskGenericNotifyFromISR+0x154>
  49394. 8014708: 6b3b ldr r3, [r7, #48] @ 0x30
  49395. 801470a: 6adb ldr r3, [r3, #44] @ 0x2c
  49396. 801470c: 4a19 ldr r2, [pc, #100] @ (8014774 <xTaskGenericNotifyFromISR+0x1b8>)
  49397. 801470e: 6013 str r3, [r2, #0]
  49398. 8014710: 6b3b ldr r3, [r7, #48] @ 0x30
  49399. 8014712: 6ada ldr r2, [r3, #44] @ 0x2c
  49400. 8014714: 4613 mov r3, r2
  49401. 8014716: 009b lsls r3, r3, #2
  49402. 8014718: 4413 add r3, r2
  49403. 801471a: 009b lsls r3, r3, #2
  49404. 801471c: 4a16 ldr r2, [pc, #88] @ (8014778 <xTaskGenericNotifyFromISR+0x1bc>)
  49405. 801471e: 441a add r2, r3
  49406. 8014720: 6b3b ldr r3, [r7, #48] @ 0x30
  49407. 8014722: 3304 adds r3, #4
  49408. 8014724: 4619 mov r1, r3
  49409. 8014726: 4610 mov r0, r2
  49410. 8014728: f7fd f8a7 bl 801187a <vListInsertEnd>
  49411. 801472c: e005 b.n 801473a <xTaskGenericNotifyFromISR+0x17e>
  49412. }
  49413. else
  49414. {
  49415. /* The delayed and ready lists cannot be accessed, so hold
  49416. this task pending until the scheduler is resumed. */
  49417. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  49418. 801472e: 6b3b ldr r3, [r7, #48] @ 0x30
  49419. 8014730: 3318 adds r3, #24
  49420. 8014732: 4619 mov r1, r3
  49421. 8014734: 4811 ldr r0, [pc, #68] @ (801477c <xTaskGenericNotifyFromISR+0x1c0>)
  49422. 8014736: f7fd f8a0 bl 801187a <vListInsertEnd>
  49423. }
  49424. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  49425. 801473a: 6b3b ldr r3, [r7, #48] @ 0x30
  49426. 801473c: 6ada ldr r2, [r3, #44] @ 0x2c
  49427. 801473e: 4b10 ldr r3, [pc, #64] @ (8014780 <xTaskGenericNotifyFromISR+0x1c4>)
  49428. 8014740: 681b ldr r3, [r3, #0]
  49429. 8014742: 6adb ldr r3, [r3, #44] @ 0x2c
  49430. 8014744: 429a cmp r2, r3
  49431. 8014746: d908 bls.n 801475a <xTaskGenericNotifyFromISR+0x19e>
  49432. {
  49433. /* The notified task has a priority above the currently
  49434. executing task so a yield is required. */
  49435. if( pxHigherPriorityTaskWoken != NULL )
  49436. 8014748: 6c3b ldr r3, [r7, #64] @ 0x40
  49437. 801474a: 2b00 cmp r3, #0
  49438. 801474c: d002 beq.n 8014754 <xTaskGenericNotifyFromISR+0x198>
  49439. {
  49440. *pxHigherPriorityTaskWoken = pdTRUE;
  49441. 801474e: 6c3b ldr r3, [r7, #64] @ 0x40
  49442. 8014750: 2201 movs r2, #1
  49443. 8014752: 601a str r2, [r3, #0]
  49444. }
  49445. /* Mark that a yield is pending in case the user is not
  49446. using the "xHigherPriorityTaskWoken" parameter to an ISR
  49447. safe FreeRTOS function. */
  49448. xYieldPending = pdTRUE;
  49449. 8014754: 4b0b ldr r3, [pc, #44] @ (8014784 <xTaskGenericNotifyFromISR+0x1c8>)
  49450. 8014756: 2201 movs r2, #1
  49451. 8014758: 601a str r2, [r3, #0]
  49452. 801475a: 6afb ldr r3, [r7, #44] @ 0x2c
  49453. 801475c: 613b str r3, [r7, #16]
  49454. __asm volatile
  49455. 801475e: 693b ldr r3, [r7, #16]
  49456. 8014760: f383 8811 msr BASEPRI, r3
  49457. }
  49458. 8014764: bf00 nop
  49459. }
  49460. }
  49461. }
  49462. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49463. return xReturn;
  49464. 8014766: 6b7b ldr r3, [r7, #52] @ 0x34
  49465. }
  49466. 8014768: 4618 mov r0, r3
  49467. 801476a: 3738 adds r7, #56 @ 0x38
  49468. 801476c: 46bd mov sp, r7
  49469. 801476e: bd80 pop {r7, pc}
  49470. 8014770: 2400425c .word 0x2400425c
  49471. 8014774: 2400423c .word 0x2400423c
  49472. 8014778: 24003d64 .word 0x24003d64
  49473. 801477c: 240041f4 .word 0x240041f4
  49474. 8014780: 24003d60 .word 0x24003d60
  49475. 8014784: 24004248 .word 0x24004248
  49476. 08014788 <xTaskNotifyStateClear>:
  49477. /*-----------------------------------------------------------*/
  49478. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  49479. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  49480. {
  49481. 8014788: b580 push {r7, lr}
  49482. 801478a: b084 sub sp, #16
  49483. 801478c: af00 add r7, sp, #0
  49484. 801478e: 6078 str r0, [r7, #4]
  49485. TCB_t *pxTCB;
  49486. BaseType_t xReturn;
  49487. /* If null is passed in here then it is the calling task that is having
  49488. its notification state cleared. */
  49489. pxTCB = prvGetTCBFromHandle( xTask );
  49490. 8014790: 687b ldr r3, [r7, #4]
  49491. 8014792: 2b00 cmp r3, #0
  49492. 8014794: d102 bne.n 801479c <xTaskNotifyStateClear+0x14>
  49493. 8014796: 4b0e ldr r3, [pc, #56] @ (80147d0 <xTaskNotifyStateClear+0x48>)
  49494. 8014798: 681b ldr r3, [r3, #0]
  49495. 801479a: e000 b.n 801479e <xTaskNotifyStateClear+0x16>
  49496. 801479c: 687b ldr r3, [r7, #4]
  49497. 801479e: 60bb str r3, [r7, #8]
  49498. taskENTER_CRITICAL();
  49499. 80147a0: f000 fdba bl 8015318 <vPortEnterCritical>
  49500. {
  49501. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  49502. 80147a4: 68bb ldr r3, [r7, #8]
  49503. 80147a6: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  49504. 80147aa: b2db uxtb r3, r3
  49505. 80147ac: 2b02 cmp r3, #2
  49506. 80147ae: d106 bne.n 80147be <xTaskNotifyStateClear+0x36>
  49507. {
  49508. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  49509. 80147b0: 68bb ldr r3, [r7, #8]
  49510. 80147b2: 2200 movs r2, #0
  49511. 80147b4: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  49512. xReturn = pdPASS;
  49513. 80147b8: 2301 movs r3, #1
  49514. 80147ba: 60fb str r3, [r7, #12]
  49515. 80147bc: e001 b.n 80147c2 <xTaskNotifyStateClear+0x3a>
  49516. }
  49517. else
  49518. {
  49519. xReturn = pdFAIL;
  49520. 80147be: 2300 movs r3, #0
  49521. 80147c0: 60fb str r3, [r7, #12]
  49522. }
  49523. }
  49524. taskEXIT_CRITICAL();
  49525. 80147c2: f000 fddb bl 801537c <vPortExitCritical>
  49526. return xReturn;
  49527. 80147c6: 68fb ldr r3, [r7, #12]
  49528. }
  49529. 80147c8: 4618 mov r0, r3
  49530. 80147ca: 3710 adds r7, #16
  49531. 80147cc: 46bd mov sp, r7
  49532. 80147ce: bd80 pop {r7, pc}
  49533. 80147d0: 24003d60 .word 0x24003d60
  49534. 080147d4 <prvAddCurrentTaskToDelayedList>:
  49535. #endif
  49536. /*-----------------------------------------------------------*/
  49537. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  49538. {
  49539. 80147d4: b580 push {r7, lr}
  49540. 80147d6: b084 sub sp, #16
  49541. 80147d8: af00 add r7, sp, #0
  49542. 80147da: 6078 str r0, [r7, #4]
  49543. 80147dc: 6039 str r1, [r7, #0]
  49544. TickType_t xTimeToWake;
  49545. const TickType_t xConstTickCount = xTickCount;
  49546. 80147de: 4b21 ldr r3, [pc, #132] @ (8014864 <prvAddCurrentTaskToDelayedList+0x90>)
  49547. 80147e0: 681b ldr r3, [r3, #0]
  49548. 80147e2: 60fb str r3, [r7, #12]
  49549. }
  49550. #endif
  49551. /* Remove the task from the ready list before adding it to the blocked list
  49552. as the same list item is used for both lists. */
  49553. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  49554. 80147e4: 4b20 ldr r3, [pc, #128] @ (8014868 <prvAddCurrentTaskToDelayedList+0x94>)
  49555. 80147e6: 681b ldr r3, [r3, #0]
  49556. 80147e8: 3304 adds r3, #4
  49557. 80147ea: 4618 mov r0, r3
  49558. 80147ec: f7fd f8a2 bl 8011934 <uxListRemove>
  49559. mtCOVERAGE_TEST_MARKER();
  49560. }
  49561. #if ( INCLUDE_vTaskSuspend == 1 )
  49562. {
  49563. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  49564. 80147f0: 687b ldr r3, [r7, #4]
  49565. 80147f2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49566. 80147f6: d10a bne.n 801480e <prvAddCurrentTaskToDelayedList+0x3a>
  49567. 80147f8: 683b ldr r3, [r7, #0]
  49568. 80147fa: 2b00 cmp r3, #0
  49569. 80147fc: d007 beq.n 801480e <prvAddCurrentTaskToDelayedList+0x3a>
  49570. {
  49571. /* Add the task to the suspended task list instead of a delayed task
  49572. list to ensure it is not woken by a timing event. It will block
  49573. indefinitely. */
  49574. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  49575. 80147fe: 4b1a ldr r3, [pc, #104] @ (8014868 <prvAddCurrentTaskToDelayedList+0x94>)
  49576. 8014800: 681b ldr r3, [r3, #0]
  49577. 8014802: 3304 adds r3, #4
  49578. 8014804: 4619 mov r1, r3
  49579. 8014806: 4819 ldr r0, [pc, #100] @ (801486c <prvAddCurrentTaskToDelayedList+0x98>)
  49580. 8014808: f7fd f837 bl 801187a <vListInsertEnd>
  49581. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  49582. ( void ) xCanBlockIndefinitely;
  49583. }
  49584. #endif /* INCLUDE_vTaskSuspend */
  49585. }
  49586. 801480c: e026 b.n 801485c <prvAddCurrentTaskToDelayedList+0x88>
  49587. xTimeToWake = xConstTickCount + xTicksToWait;
  49588. 801480e: 68fa ldr r2, [r7, #12]
  49589. 8014810: 687b ldr r3, [r7, #4]
  49590. 8014812: 4413 add r3, r2
  49591. 8014814: 60bb str r3, [r7, #8]
  49592. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  49593. 8014816: 4b14 ldr r3, [pc, #80] @ (8014868 <prvAddCurrentTaskToDelayedList+0x94>)
  49594. 8014818: 681b ldr r3, [r3, #0]
  49595. 801481a: 68ba ldr r2, [r7, #8]
  49596. 801481c: 605a str r2, [r3, #4]
  49597. if( xTimeToWake < xConstTickCount )
  49598. 801481e: 68ba ldr r2, [r7, #8]
  49599. 8014820: 68fb ldr r3, [r7, #12]
  49600. 8014822: 429a cmp r2, r3
  49601. 8014824: d209 bcs.n 801483a <prvAddCurrentTaskToDelayedList+0x66>
  49602. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  49603. 8014826: 4b12 ldr r3, [pc, #72] @ (8014870 <prvAddCurrentTaskToDelayedList+0x9c>)
  49604. 8014828: 681a ldr r2, [r3, #0]
  49605. 801482a: 4b0f ldr r3, [pc, #60] @ (8014868 <prvAddCurrentTaskToDelayedList+0x94>)
  49606. 801482c: 681b ldr r3, [r3, #0]
  49607. 801482e: 3304 adds r3, #4
  49608. 8014830: 4619 mov r1, r3
  49609. 8014832: 4610 mov r0, r2
  49610. 8014834: f7fd f845 bl 80118c2 <vListInsert>
  49611. }
  49612. 8014838: e010 b.n 801485c <prvAddCurrentTaskToDelayedList+0x88>
  49613. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  49614. 801483a: 4b0e ldr r3, [pc, #56] @ (8014874 <prvAddCurrentTaskToDelayedList+0xa0>)
  49615. 801483c: 681a ldr r2, [r3, #0]
  49616. 801483e: 4b0a ldr r3, [pc, #40] @ (8014868 <prvAddCurrentTaskToDelayedList+0x94>)
  49617. 8014840: 681b ldr r3, [r3, #0]
  49618. 8014842: 3304 adds r3, #4
  49619. 8014844: 4619 mov r1, r3
  49620. 8014846: 4610 mov r0, r2
  49621. 8014848: f7fd f83b bl 80118c2 <vListInsert>
  49622. if( xTimeToWake < xNextTaskUnblockTime )
  49623. 801484c: 4b0a ldr r3, [pc, #40] @ (8014878 <prvAddCurrentTaskToDelayedList+0xa4>)
  49624. 801484e: 681b ldr r3, [r3, #0]
  49625. 8014850: 68ba ldr r2, [r7, #8]
  49626. 8014852: 429a cmp r2, r3
  49627. 8014854: d202 bcs.n 801485c <prvAddCurrentTaskToDelayedList+0x88>
  49628. xNextTaskUnblockTime = xTimeToWake;
  49629. 8014856: 4a08 ldr r2, [pc, #32] @ (8014878 <prvAddCurrentTaskToDelayedList+0xa4>)
  49630. 8014858: 68bb ldr r3, [r7, #8]
  49631. 801485a: 6013 str r3, [r2, #0]
  49632. }
  49633. 801485c: bf00 nop
  49634. 801485e: 3710 adds r7, #16
  49635. 8014860: 46bd mov sp, r7
  49636. 8014862: bd80 pop {r7, pc}
  49637. 8014864: 24004238 .word 0x24004238
  49638. 8014868: 24003d60 .word 0x24003d60
  49639. 801486c: 24004220 .word 0x24004220
  49640. 8014870: 240041f0 .word 0x240041f0
  49641. 8014874: 240041ec .word 0x240041ec
  49642. 8014878: 24004254 .word 0x24004254
  49643. 0801487c <xTimerCreateTimerTask>:
  49644. TimerCallbackFunction_t pxCallbackFunction,
  49645. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  49646. /*-----------------------------------------------------------*/
  49647. BaseType_t xTimerCreateTimerTask( void )
  49648. {
  49649. 801487c: b580 push {r7, lr}
  49650. 801487e: b08a sub sp, #40 @ 0x28
  49651. 8014880: af04 add r7, sp, #16
  49652. BaseType_t xReturn = pdFAIL;
  49653. 8014882: 2300 movs r3, #0
  49654. 8014884: 617b str r3, [r7, #20]
  49655. /* This function is called when the scheduler is started if
  49656. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  49657. timer service task has been created/initialised. If timers have already
  49658. been created then the initialisation will already have been performed. */
  49659. prvCheckForValidListAndQueue();
  49660. 8014886: f000 fbb1 bl 8014fec <prvCheckForValidListAndQueue>
  49661. if( xTimerQueue != NULL )
  49662. 801488a: 4b1d ldr r3, [pc, #116] @ (8014900 <xTimerCreateTimerTask+0x84>)
  49663. 801488c: 681b ldr r3, [r3, #0]
  49664. 801488e: 2b00 cmp r3, #0
  49665. 8014890: d021 beq.n 80148d6 <xTimerCreateTimerTask+0x5a>
  49666. {
  49667. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  49668. {
  49669. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  49670. 8014892: 2300 movs r3, #0
  49671. 8014894: 60fb str r3, [r7, #12]
  49672. StackType_t *pxTimerTaskStackBuffer = NULL;
  49673. 8014896: 2300 movs r3, #0
  49674. 8014898: 60bb str r3, [r7, #8]
  49675. uint32_t ulTimerTaskStackSize;
  49676. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  49677. 801489a: 1d3a adds r2, r7, #4
  49678. 801489c: f107 0108 add.w r1, r7, #8
  49679. 80148a0: f107 030c add.w r3, r7, #12
  49680. 80148a4: 4618 mov r0, r3
  49681. 80148a6: f7fc ffa1 bl 80117ec <vApplicationGetTimerTaskMemory>
  49682. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  49683. 80148aa: 6879 ldr r1, [r7, #4]
  49684. 80148ac: 68bb ldr r3, [r7, #8]
  49685. 80148ae: 68fa ldr r2, [r7, #12]
  49686. 80148b0: 9202 str r2, [sp, #8]
  49687. 80148b2: 9301 str r3, [sp, #4]
  49688. 80148b4: 2302 movs r3, #2
  49689. 80148b6: 9300 str r3, [sp, #0]
  49690. 80148b8: 2300 movs r3, #0
  49691. 80148ba: 460a mov r2, r1
  49692. 80148bc: 4911 ldr r1, [pc, #68] @ (8014904 <xTimerCreateTimerTask+0x88>)
  49693. 80148be: 4812 ldr r0, [pc, #72] @ (8014908 <xTimerCreateTimerTask+0x8c>)
  49694. 80148c0: f7fe fd1c bl 80132fc <xTaskCreateStatic>
  49695. 80148c4: 4603 mov r3, r0
  49696. 80148c6: 4a11 ldr r2, [pc, #68] @ (801490c <xTimerCreateTimerTask+0x90>)
  49697. 80148c8: 6013 str r3, [r2, #0]
  49698. NULL,
  49699. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  49700. pxTimerTaskStackBuffer,
  49701. pxTimerTaskTCBBuffer );
  49702. if( xTimerTaskHandle != NULL )
  49703. 80148ca: 4b10 ldr r3, [pc, #64] @ (801490c <xTimerCreateTimerTask+0x90>)
  49704. 80148cc: 681b ldr r3, [r3, #0]
  49705. 80148ce: 2b00 cmp r3, #0
  49706. 80148d0: d001 beq.n 80148d6 <xTimerCreateTimerTask+0x5a>
  49707. {
  49708. xReturn = pdPASS;
  49709. 80148d2: 2301 movs r3, #1
  49710. 80148d4: 617b str r3, [r7, #20]
  49711. else
  49712. {
  49713. mtCOVERAGE_TEST_MARKER();
  49714. }
  49715. configASSERT( xReturn );
  49716. 80148d6: 697b ldr r3, [r7, #20]
  49717. 80148d8: 2b00 cmp r3, #0
  49718. 80148da: d10b bne.n 80148f4 <xTimerCreateTimerTask+0x78>
  49719. __asm volatile
  49720. 80148dc: f04f 0350 mov.w r3, #80 @ 0x50
  49721. 80148e0: f383 8811 msr BASEPRI, r3
  49722. 80148e4: f3bf 8f6f isb sy
  49723. 80148e8: f3bf 8f4f dsb sy
  49724. 80148ec: 613b str r3, [r7, #16]
  49725. }
  49726. 80148ee: bf00 nop
  49727. 80148f0: bf00 nop
  49728. 80148f2: e7fd b.n 80148f0 <xTimerCreateTimerTask+0x74>
  49729. return xReturn;
  49730. 80148f4: 697b ldr r3, [r7, #20]
  49731. }
  49732. 80148f6: 4618 mov r0, r3
  49733. 80148f8: 3718 adds r7, #24
  49734. 80148fa: 46bd mov sp, r7
  49735. 80148fc: bd80 pop {r7, pc}
  49736. 80148fe: bf00 nop
  49737. 8014900: 24004290 .word 0x24004290
  49738. 8014904: 0802d408 .word 0x0802d408
  49739. 8014908: 08014b85 .word 0x08014b85
  49740. 801490c: 24004294 .word 0x24004294
  49741. 08014910 <xTimerCreate>:
  49742. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  49743. const TickType_t xTimerPeriodInTicks,
  49744. const UBaseType_t uxAutoReload,
  49745. void * const pvTimerID,
  49746. TimerCallbackFunction_t pxCallbackFunction )
  49747. {
  49748. 8014910: b580 push {r7, lr}
  49749. 8014912: b088 sub sp, #32
  49750. 8014914: af02 add r7, sp, #8
  49751. 8014916: 60f8 str r0, [r7, #12]
  49752. 8014918: 60b9 str r1, [r7, #8]
  49753. 801491a: 607a str r2, [r7, #4]
  49754. 801491c: 603b str r3, [r7, #0]
  49755. Timer_t *pxNewTimer;
  49756. pxNewTimer = ( Timer_t * ) pvPortMalloc( sizeof( Timer_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 Timer_t is always a pointer to the timer's mame. */
  49757. 801491e: 202c movs r0, #44 @ 0x2c
  49758. 8014920: f000 fe1c bl 801555c <pvPortMalloc>
  49759. 8014924: 6178 str r0, [r7, #20]
  49760. if( pxNewTimer != NULL )
  49761. 8014926: 697b ldr r3, [r7, #20]
  49762. 8014928: 2b00 cmp r3, #0
  49763. 801492a: d00d beq.n 8014948 <xTimerCreate+0x38>
  49764. {
  49765. /* Status is thus far zero as the timer is not created statically
  49766. and has not been started. The auto-reload bit may get set in
  49767. prvInitialiseNewTimer. */
  49768. pxNewTimer->ucStatus = 0x00;
  49769. 801492c: 697b ldr r3, [r7, #20]
  49770. 801492e: 2200 movs r2, #0
  49771. 8014930: f883 2028 strb.w r2, [r3, #40] @ 0x28
  49772. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  49773. 8014934: 697b ldr r3, [r7, #20]
  49774. 8014936: 9301 str r3, [sp, #4]
  49775. 8014938: 6a3b ldr r3, [r7, #32]
  49776. 801493a: 9300 str r3, [sp, #0]
  49777. 801493c: 683b ldr r3, [r7, #0]
  49778. 801493e: 687a ldr r2, [r7, #4]
  49779. 8014940: 68b9 ldr r1, [r7, #8]
  49780. 8014942: 68f8 ldr r0, [r7, #12]
  49781. 8014944: f000 f845 bl 80149d2 <prvInitialiseNewTimer>
  49782. }
  49783. return pxNewTimer;
  49784. 8014948: 697b ldr r3, [r7, #20]
  49785. }
  49786. 801494a: 4618 mov r0, r3
  49787. 801494c: 3718 adds r7, #24
  49788. 801494e: 46bd mov sp, r7
  49789. 8014950: bd80 pop {r7, pc}
  49790. 08014952 <xTimerCreateStatic>:
  49791. const TickType_t xTimerPeriodInTicks,
  49792. const UBaseType_t uxAutoReload,
  49793. void * const pvTimerID,
  49794. TimerCallbackFunction_t pxCallbackFunction,
  49795. StaticTimer_t *pxTimerBuffer )
  49796. {
  49797. 8014952: b580 push {r7, lr}
  49798. 8014954: b08a sub sp, #40 @ 0x28
  49799. 8014956: af02 add r7, sp, #8
  49800. 8014958: 60f8 str r0, [r7, #12]
  49801. 801495a: 60b9 str r1, [r7, #8]
  49802. 801495c: 607a str r2, [r7, #4]
  49803. 801495e: 603b str r3, [r7, #0]
  49804. #if( configASSERT_DEFINED == 1 )
  49805. {
  49806. /* Sanity check that the size of the structure used to declare a
  49807. variable of type StaticTimer_t equals the size of the real timer
  49808. structure. */
  49809. volatile size_t xSize = sizeof( StaticTimer_t );
  49810. 8014960: 232c movs r3, #44 @ 0x2c
  49811. 8014962: 613b str r3, [r7, #16]
  49812. configASSERT( xSize == sizeof( Timer_t ) );
  49813. 8014964: 693b ldr r3, [r7, #16]
  49814. 8014966: 2b2c cmp r3, #44 @ 0x2c
  49815. 8014968: d00b beq.n 8014982 <xTimerCreateStatic+0x30>
  49816. __asm volatile
  49817. 801496a: f04f 0350 mov.w r3, #80 @ 0x50
  49818. 801496e: f383 8811 msr BASEPRI, r3
  49819. 8014972: f3bf 8f6f isb sy
  49820. 8014976: f3bf 8f4f dsb sy
  49821. 801497a: 61bb str r3, [r7, #24]
  49822. }
  49823. 801497c: bf00 nop
  49824. 801497e: bf00 nop
  49825. 8014980: e7fd b.n 801497e <xTimerCreateStatic+0x2c>
  49826. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  49827. 8014982: 693b ldr r3, [r7, #16]
  49828. }
  49829. #endif /* configASSERT_DEFINED */
  49830. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  49831. configASSERT( pxTimerBuffer );
  49832. 8014984: 6afb ldr r3, [r7, #44] @ 0x2c
  49833. 8014986: 2b00 cmp r3, #0
  49834. 8014988: d10b bne.n 80149a2 <xTimerCreateStatic+0x50>
  49835. __asm volatile
  49836. 801498a: f04f 0350 mov.w r3, #80 @ 0x50
  49837. 801498e: f383 8811 msr BASEPRI, r3
  49838. 8014992: f3bf 8f6f isb sy
  49839. 8014996: f3bf 8f4f dsb sy
  49840. 801499a: 617b str r3, [r7, #20]
  49841. }
  49842. 801499c: bf00 nop
  49843. 801499e: bf00 nop
  49844. 80149a0: e7fd b.n 801499e <xTimerCreateStatic+0x4c>
  49845. pxNewTimer = ( Timer_t * ) pxTimerBuffer; /*lint !e740 !e9087 StaticTimer_t is a pointer to a Timer_t, so guaranteed to be aligned and sized correctly (checked by an assert()), so this is safe. */
  49846. 80149a2: 6afb ldr r3, [r7, #44] @ 0x2c
  49847. 80149a4: 61fb str r3, [r7, #28]
  49848. if( pxNewTimer != NULL )
  49849. 80149a6: 69fb ldr r3, [r7, #28]
  49850. 80149a8: 2b00 cmp r3, #0
  49851. 80149aa: d00d beq.n 80149c8 <xTimerCreateStatic+0x76>
  49852. {
  49853. /* Timers can be created statically or dynamically so note this
  49854. timer was created statically in case it is later deleted. The
  49855. auto-reload bit may get set in prvInitialiseNewTimer(). */
  49856. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  49857. 80149ac: 69fb ldr r3, [r7, #28]
  49858. 80149ae: 2202 movs r2, #2
  49859. 80149b0: f883 2028 strb.w r2, [r3, #40] @ 0x28
  49860. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  49861. 80149b4: 69fb ldr r3, [r7, #28]
  49862. 80149b6: 9301 str r3, [sp, #4]
  49863. 80149b8: 6abb ldr r3, [r7, #40] @ 0x28
  49864. 80149ba: 9300 str r3, [sp, #0]
  49865. 80149bc: 683b ldr r3, [r7, #0]
  49866. 80149be: 687a ldr r2, [r7, #4]
  49867. 80149c0: 68b9 ldr r1, [r7, #8]
  49868. 80149c2: 68f8 ldr r0, [r7, #12]
  49869. 80149c4: f000 f805 bl 80149d2 <prvInitialiseNewTimer>
  49870. }
  49871. return pxNewTimer;
  49872. 80149c8: 69fb ldr r3, [r7, #28]
  49873. }
  49874. 80149ca: 4618 mov r0, r3
  49875. 80149cc: 3720 adds r7, #32
  49876. 80149ce: 46bd mov sp, r7
  49877. 80149d0: bd80 pop {r7, pc}
  49878. 080149d2 <prvInitialiseNewTimer>:
  49879. const TickType_t xTimerPeriodInTicks,
  49880. const UBaseType_t uxAutoReload,
  49881. void * const pvTimerID,
  49882. TimerCallbackFunction_t pxCallbackFunction,
  49883. Timer_t *pxNewTimer )
  49884. {
  49885. 80149d2: b580 push {r7, lr}
  49886. 80149d4: b086 sub sp, #24
  49887. 80149d6: af00 add r7, sp, #0
  49888. 80149d8: 60f8 str r0, [r7, #12]
  49889. 80149da: 60b9 str r1, [r7, #8]
  49890. 80149dc: 607a str r2, [r7, #4]
  49891. 80149de: 603b str r3, [r7, #0]
  49892. /* 0 is not a valid value for xTimerPeriodInTicks. */
  49893. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  49894. 80149e0: 68bb ldr r3, [r7, #8]
  49895. 80149e2: 2b00 cmp r3, #0
  49896. 80149e4: d10b bne.n 80149fe <prvInitialiseNewTimer+0x2c>
  49897. __asm volatile
  49898. 80149e6: f04f 0350 mov.w r3, #80 @ 0x50
  49899. 80149ea: f383 8811 msr BASEPRI, r3
  49900. 80149ee: f3bf 8f6f isb sy
  49901. 80149f2: f3bf 8f4f dsb sy
  49902. 80149f6: 617b str r3, [r7, #20]
  49903. }
  49904. 80149f8: bf00 nop
  49905. 80149fa: bf00 nop
  49906. 80149fc: e7fd b.n 80149fa <prvInitialiseNewTimer+0x28>
  49907. if( pxNewTimer != NULL )
  49908. 80149fe: 6a7b ldr r3, [r7, #36] @ 0x24
  49909. 8014a00: 2b00 cmp r3, #0
  49910. 8014a02: d01e beq.n 8014a42 <prvInitialiseNewTimer+0x70>
  49911. {
  49912. /* Ensure the infrastructure used by the timer service task has been
  49913. created/initialised. */
  49914. prvCheckForValidListAndQueue();
  49915. 8014a04: f000 faf2 bl 8014fec <prvCheckForValidListAndQueue>
  49916. /* Initialise the timer structure members using the function
  49917. parameters. */
  49918. pxNewTimer->pcTimerName = pcTimerName;
  49919. 8014a08: 6a7b ldr r3, [r7, #36] @ 0x24
  49920. 8014a0a: 68fa ldr r2, [r7, #12]
  49921. 8014a0c: 601a str r2, [r3, #0]
  49922. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  49923. 8014a0e: 6a7b ldr r3, [r7, #36] @ 0x24
  49924. 8014a10: 68ba ldr r2, [r7, #8]
  49925. 8014a12: 619a str r2, [r3, #24]
  49926. pxNewTimer->pvTimerID = pvTimerID;
  49927. 8014a14: 6a7b ldr r3, [r7, #36] @ 0x24
  49928. 8014a16: 683a ldr r2, [r7, #0]
  49929. 8014a18: 61da str r2, [r3, #28]
  49930. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  49931. 8014a1a: 6a7b ldr r3, [r7, #36] @ 0x24
  49932. 8014a1c: 6a3a ldr r2, [r7, #32]
  49933. 8014a1e: 621a str r2, [r3, #32]
  49934. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  49935. 8014a20: 6a7b ldr r3, [r7, #36] @ 0x24
  49936. 8014a22: 3304 adds r3, #4
  49937. 8014a24: 4618 mov r0, r3
  49938. 8014a26: f7fc ff1b bl 8011860 <vListInitialiseItem>
  49939. if( uxAutoReload != pdFALSE )
  49940. 8014a2a: 687b ldr r3, [r7, #4]
  49941. 8014a2c: 2b00 cmp r3, #0
  49942. 8014a2e: d008 beq.n 8014a42 <prvInitialiseNewTimer+0x70>
  49943. {
  49944. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  49945. 8014a30: 6a7b ldr r3, [r7, #36] @ 0x24
  49946. 8014a32: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  49947. 8014a36: f043 0304 orr.w r3, r3, #4
  49948. 8014a3a: b2da uxtb r2, r3
  49949. 8014a3c: 6a7b ldr r3, [r7, #36] @ 0x24
  49950. 8014a3e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  49951. }
  49952. traceTIMER_CREATE( pxNewTimer );
  49953. }
  49954. }
  49955. 8014a42: bf00 nop
  49956. 8014a44: 3718 adds r7, #24
  49957. 8014a46: 46bd mov sp, r7
  49958. 8014a48: bd80 pop {r7, pc}
  49959. ...
  49960. 08014a4c <xTimerGenericCommand>:
  49961. /*-----------------------------------------------------------*/
  49962. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  49963. {
  49964. 8014a4c: b580 push {r7, lr}
  49965. 8014a4e: b08a sub sp, #40 @ 0x28
  49966. 8014a50: af00 add r7, sp, #0
  49967. 8014a52: 60f8 str r0, [r7, #12]
  49968. 8014a54: 60b9 str r1, [r7, #8]
  49969. 8014a56: 607a str r2, [r7, #4]
  49970. 8014a58: 603b str r3, [r7, #0]
  49971. BaseType_t xReturn = pdFAIL;
  49972. 8014a5a: 2300 movs r3, #0
  49973. 8014a5c: 627b str r3, [r7, #36] @ 0x24
  49974. DaemonTaskMessage_t xMessage;
  49975. configASSERT( xTimer );
  49976. 8014a5e: 68fb ldr r3, [r7, #12]
  49977. 8014a60: 2b00 cmp r3, #0
  49978. 8014a62: d10b bne.n 8014a7c <xTimerGenericCommand+0x30>
  49979. __asm volatile
  49980. 8014a64: f04f 0350 mov.w r3, #80 @ 0x50
  49981. 8014a68: f383 8811 msr BASEPRI, r3
  49982. 8014a6c: f3bf 8f6f isb sy
  49983. 8014a70: f3bf 8f4f dsb sy
  49984. 8014a74: 623b str r3, [r7, #32]
  49985. }
  49986. 8014a76: bf00 nop
  49987. 8014a78: bf00 nop
  49988. 8014a7a: e7fd b.n 8014a78 <xTimerGenericCommand+0x2c>
  49989. /* Send a message to the timer service task to perform a particular action
  49990. on a particular timer definition. */
  49991. if( xTimerQueue != NULL )
  49992. 8014a7c: 4b19 ldr r3, [pc, #100] @ (8014ae4 <xTimerGenericCommand+0x98>)
  49993. 8014a7e: 681b ldr r3, [r3, #0]
  49994. 8014a80: 2b00 cmp r3, #0
  49995. 8014a82: d02a beq.n 8014ada <xTimerGenericCommand+0x8e>
  49996. {
  49997. /* Send a command to the timer service task to start the xTimer timer. */
  49998. xMessage.xMessageID = xCommandID;
  49999. 8014a84: 68bb ldr r3, [r7, #8]
  50000. 8014a86: 613b str r3, [r7, #16]
  50001. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  50002. 8014a88: 687b ldr r3, [r7, #4]
  50003. 8014a8a: 617b str r3, [r7, #20]
  50004. xMessage.u.xTimerParameters.pxTimer = xTimer;
  50005. 8014a8c: 68fb ldr r3, [r7, #12]
  50006. 8014a8e: 61bb str r3, [r7, #24]
  50007. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  50008. 8014a90: 68bb ldr r3, [r7, #8]
  50009. 8014a92: 2b05 cmp r3, #5
  50010. 8014a94: dc18 bgt.n 8014ac8 <xTimerGenericCommand+0x7c>
  50011. {
  50012. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  50013. 8014a96: f7ff fae1 bl 801405c <xTaskGetSchedulerState>
  50014. 8014a9a: 4603 mov r3, r0
  50015. 8014a9c: 2b02 cmp r3, #2
  50016. 8014a9e: d109 bne.n 8014ab4 <xTimerGenericCommand+0x68>
  50017. {
  50018. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  50019. 8014aa0: 4b10 ldr r3, [pc, #64] @ (8014ae4 <xTimerGenericCommand+0x98>)
  50020. 8014aa2: 6818 ldr r0, [r3, #0]
  50021. 8014aa4: f107 0110 add.w r1, r7, #16
  50022. 8014aa8: 2300 movs r3, #0
  50023. 8014aaa: 6b3a ldr r2, [r7, #48] @ 0x30
  50024. 8014aac: f7fd f9d8 bl 8011e60 <xQueueGenericSend>
  50025. 8014ab0: 6278 str r0, [r7, #36] @ 0x24
  50026. 8014ab2: e012 b.n 8014ada <xTimerGenericCommand+0x8e>
  50027. }
  50028. else
  50029. {
  50030. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  50031. 8014ab4: 4b0b ldr r3, [pc, #44] @ (8014ae4 <xTimerGenericCommand+0x98>)
  50032. 8014ab6: 6818 ldr r0, [r3, #0]
  50033. 8014ab8: f107 0110 add.w r1, r7, #16
  50034. 8014abc: 2300 movs r3, #0
  50035. 8014abe: 2200 movs r2, #0
  50036. 8014ac0: f7fd f9ce bl 8011e60 <xQueueGenericSend>
  50037. 8014ac4: 6278 str r0, [r7, #36] @ 0x24
  50038. 8014ac6: e008 b.n 8014ada <xTimerGenericCommand+0x8e>
  50039. }
  50040. }
  50041. else
  50042. {
  50043. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  50044. 8014ac8: 4b06 ldr r3, [pc, #24] @ (8014ae4 <xTimerGenericCommand+0x98>)
  50045. 8014aca: 6818 ldr r0, [r3, #0]
  50046. 8014acc: f107 0110 add.w r1, r7, #16
  50047. 8014ad0: 2300 movs r3, #0
  50048. 8014ad2: 683a ldr r2, [r7, #0]
  50049. 8014ad4: f7fd fac6 bl 8012064 <xQueueGenericSendFromISR>
  50050. 8014ad8: 6278 str r0, [r7, #36] @ 0x24
  50051. else
  50052. {
  50053. mtCOVERAGE_TEST_MARKER();
  50054. }
  50055. return xReturn;
  50056. 8014ada: 6a7b ldr r3, [r7, #36] @ 0x24
  50057. }
  50058. 8014adc: 4618 mov r0, r3
  50059. 8014ade: 3728 adds r7, #40 @ 0x28
  50060. 8014ae0: 46bd mov sp, r7
  50061. 8014ae2: bd80 pop {r7, pc}
  50062. 8014ae4: 24004290 .word 0x24004290
  50063. 08014ae8 <prvProcessExpiredTimer>:
  50064. return pxTimer->pcTimerName;
  50065. }
  50066. /*-----------------------------------------------------------*/
  50067. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  50068. {
  50069. 8014ae8: b580 push {r7, lr}
  50070. 8014aea: b088 sub sp, #32
  50071. 8014aec: af02 add r7, sp, #8
  50072. 8014aee: 6078 str r0, [r7, #4]
  50073. 8014af0: 6039 str r1, [r7, #0]
  50074. BaseType_t xResult;
  50075. 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. */
  50076. 8014af2: 4b23 ldr r3, [pc, #140] @ (8014b80 <prvProcessExpiredTimer+0x98>)
  50077. 8014af4: 681b ldr r3, [r3, #0]
  50078. 8014af6: 68db ldr r3, [r3, #12]
  50079. 8014af8: 68db ldr r3, [r3, #12]
  50080. 8014afa: 617b str r3, [r7, #20]
  50081. /* Remove the timer from the list of active timers. A check has already
  50082. been performed to ensure the list is not empty. */
  50083. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  50084. 8014afc: 697b ldr r3, [r7, #20]
  50085. 8014afe: 3304 adds r3, #4
  50086. 8014b00: 4618 mov r0, r3
  50087. 8014b02: f7fc ff17 bl 8011934 <uxListRemove>
  50088. traceTIMER_EXPIRED( pxTimer );
  50089. /* If the timer is an auto-reload timer then calculate the next
  50090. expiry time and re-insert the timer in the list of active timers. */
  50091. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  50092. 8014b06: 697b ldr r3, [r7, #20]
  50093. 8014b08: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50094. 8014b0c: f003 0304 and.w r3, r3, #4
  50095. 8014b10: 2b00 cmp r3, #0
  50096. 8014b12: d023 beq.n 8014b5c <prvProcessExpiredTimer+0x74>
  50097. {
  50098. /* The timer is inserted into a list using a time relative to anything
  50099. other than the current time. It will therefore be inserted into the
  50100. correct list relative to the time this task thinks it is now. */
  50101. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  50102. 8014b14: 697b ldr r3, [r7, #20]
  50103. 8014b16: 699a ldr r2, [r3, #24]
  50104. 8014b18: 687b ldr r3, [r7, #4]
  50105. 8014b1a: 18d1 adds r1, r2, r3
  50106. 8014b1c: 687b ldr r3, [r7, #4]
  50107. 8014b1e: 683a ldr r2, [r7, #0]
  50108. 8014b20: 6978 ldr r0, [r7, #20]
  50109. 8014b22: f000 f8d5 bl 8014cd0 <prvInsertTimerInActiveList>
  50110. 8014b26: 4603 mov r3, r0
  50111. 8014b28: 2b00 cmp r3, #0
  50112. 8014b2a: d020 beq.n 8014b6e <prvProcessExpiredTimer+0x86>
  50113. {
  50114. /* The timer expired before it was added to the active timer
  50115. list. Reload it now. */
  50116. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  50117. 8014b2c: 2300 movs r3, #0
  50118. 8014b2e: 9300 str r3, [sp, #0]
  50119. 8014b30: 2300 movs r3, #0
  50120. 8014b32: 687a ldr r2, [r7, #4]
  50121. 8014b34: 2100 movs r1, #0
  50122. 8014b36: 6978 ldr r0, [r7, #20]
  50123. 8014b38: f7ff ff88 bl 8014a4c <xTimerGenericCommand>
  50124. 8014b3c: 6138 str r0, [r7, #16]
  50125. configASSERT( xResult );
  50126. 8014b3e: 693b ldr r3, [r7, #16]
  50127. 8014b40: 2b00 cmp r3, #0
  50128. 8014b42: d114 bne.n 8014b6e <prvProcessExpiredTimer+0x86>
  50129. __asm volatile
  50130. 8014b44: f04f 0350 mov.w r3, #80 @ 0x50
  50131. 8014b48: f383 8811 msr BASEPRI, r3
  50132. 8014b4c: f3bf 8f6f isb sy
  50133. 8014b50: f3bf 8f4f dsb sy
  50134. 8014b54: 60fb str r3, [r7, #12]
  50135. }
  50136. 8014b56: bf00 nop
  50137. 8014b58: bf00 nop
  50138. 8014b5a: e7fd b.n 8014b58 <prvProcessExpiredTimer+0x70>
  50139. mtCOVERAGE_TEST_MARKER();
  50140. }
  50141. }
  50142. else
  50143. {
  50144. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  50145. 8014b5c: 697b ldr r3, [r7, #20]
  50146. 8014b5e: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50147. 8014b62: f023 0301 bic.w r3, r3, #1
  50148. 8014b66: b2da uxtb r2, r3
  50149. 8014b68: 697b ldr r3, [r7, #20]
  50150. 8014b6a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50151. mtCOVERAGE_TEST_MARKER();
  50152. }
  50153. /* Call the timer callback. */
  50154. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  50155. 8014b6e: 697b ldr r3, [r7, #20]
  50156. 8014b70: 6a1b ldr r3, [r3, #32]
  50157. 8014b72: 6978 ldr r0, [r7, #20]
  50158. 8014b74: 4798 blx r3
  50159. }
  50160. 8014b76: bf00 nop
  50161. 8014b78: 3718 adds r7, #24
  50162. 8014b7a: 46bd mov sp, r7
  50163. 8014b7c: bd80 pop {r7, pc}
  50164. 8014b7e: bf00 nop
  50165. 8014b80: 24004288 .word 0x24004288
  50166. 08014b84 <prvTimerTask>:
  50167. /*-----------------------------------------------------------*/
  50168. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  50169. {
  50170. 8014b84: b580 push {r7, lr}
  50171. 8014b86: b084 sub sp, #16
  50172. 8014b88: af00 add r7, sp, #0
  50173. 8014b8a: 6078 str r0, [r7, #4]
  50174. for( ;; )
  50175. {
  50176. /* Query the timers list to see if it contains any timers, and if so,
  50177. obtain the time at which the next timer will expire. */
  50178. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  50179. 8014b8c: f107 0308 add.w r3, r7, #8
  50180. 8014b90: 4618 mov r0, r3
  50181. 8014b92: f000 f859 bl 8014c48 <prvGetNextExpireTime>
  50182. 8014b96: 60f8 str r0, [r7, #12]
  50183. /* If a timer has expired, process it. Otherwise, block this task
  50184. until either a timer does expire, or a command is received. */
  50185. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  50186. 8014b98: 68bb ldr r3, [r7, #8]
  50187. 8014b9a: 4619 mov r1, r3
  50188. 8014b9c: 68f8 ldr r0, [r7, #12]
  50189. 8014b9e: f000 f805 bl 8014bac <prvProcessTimerOrBlockTask>
  50190. /* Empty the command queue. */
  50191. prvProcessReceivedCommands();
  50192. 8014ba2: f000 f8d7 bl 8014d54 <prvProcessReceivedCommands>
  50193. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  50194. 8014ba6: bf00 nop
  50195. 8014ba8: e7f0 b.n 8014b8c <prvTimerTask+0x8>
  50196. ...
  50197. 08014bac <prvProcessTimerOrBlockTask>:
  50198. }
  50199. }
  50200. /*-----------------------------------------------------------*/
  50201. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  50202. {
  50203. 8014bac: b580 push {r7, lr}
  50204. 8014bae: b084 sub sp, #16
  50205. 8014bb0: af00 add r7, sp, #0
  50206. 8014bb2: 6078 str r0, [r7, #4]
  50207. 8014bb4: 6039 str r1, [r7, #0]
  50208. TickType_t xTimeNow;
  50209. BaseType_t xTimerListsWereSwitched;
  50210. vTaskSuspendAll();
  50211. 8014bb6: f7fe fe05 bl 80137c4 <vTaskSuspendAll>
  50212. /* Obtain the time now to make an assessment as to whether the timer
  50213. has expired or not. If obtaining the time causes the lists to switch
  50214. then don't process this timer as any timers that remained in the list
  50215. when the lists were switched will have been processed within the
  50216. prvSampleTimeNow() function. */
  50217. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  50218. 8014bba: f107 0308 add.w r3, r7, #8
  50219. 8014bbe: 4618 mov r0, r3
  50220. 8014bc0: f000 f866 bl 8014c90 <prvSampleTimeNow>
  50221. 8014bc4: 60f8 str r0, [r7, #12]
  50222. if( xTimerListsWereSwitched == pdFALSE )
  50223. 8014bc6: 68bb ldr r3, [r7, #8]
  50224. 8014bc8: 2b00 cmp r3, #0
  50225. 8014bca: d130 bne.n 8014c2e <prvProcessTimerOrBlockTask+0x82>
  50226. {
  50227. /* The tick count has not overflowed, has the timer expired? */
  50228. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  50229. 8014bcc: 683b ldr r3, [r7, #0]
  50230. 8014bce: 2b00 cmp r3, #0
  50231. 8014bd0: d10a bne.n 8014be8 <prvProcessTimerOrBlockTask+0x3c>
  50232. 8014bd2: 687a ldr r2, [r7, #4]
  50233. 8014bd4: 68fb ldr r3, [r7, #12]
  50234. 8014bd6: 429a cmp r2, r3
  50235. 8014bd8: d806 bhi.n 8014be8 <prvProcessTimerOrBlockTask+0x3c>
  50236. {
  50237. ( void ) xTaskResumeAll();
  50238. 8014bda: f7fe fe01 bl 80137e0 <xTaskResumeAll>
  50239. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  50240. 8014bde: 68f9 ldr r1, [r7, #12]
  50241. 8014be0: 6878 ldr r0, [r7, #4]
  50242. 8014be2: f7ff ff81 bl 8014ae8 <prvProcessExpiredTimer>
  50243. else
  50244. {
  50245. ( void ) xTaskResumeAll();
  50246. }
  50247. }
  50248. }
  50249. 8014be6: e024 b.n 8014c32 <prvProcessTimerOrBlockTask+0x86>
  50250. if( xListWasEmpty != pdFALSE )
  50251. 8014be8: 683b ldr r3, [r7, #0]
  50252. 8014bea: 2b00 cmp r3, #0
  50253. 8014bec: d008 beq.n 8014c00 <prvProcessTimerOrBlockTask+0x54>
  50254. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  50255. 8014bee: 4b13 ldr r3, [pc, #76] @ (8014c3c <prvProcessTimerOrBlockTask+0x90>)
  50256. 8014bf0: 681b ldr r3, [r3, #0]
  50257. 8014bf2: 681b ldr r3, [r3, #0]
  50258. 8014bf4: 2b00 cmp r3, #0
  50259. 8014bf6: d101 bne.n 8014bfc <prvProcessTimerOrBlockTask+0x50>
  50260. 8014bf8: 2301 movs r3, #1
  50261. 8014bfa: e000 b.n 8014bfe <prvProcessTimerOrBlockTask+0x52>
  50262. 8014bfc: 2300 movs r3, #0
  50263. 8014bfe: 603b str r3, [r7, #0]
  50264. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  50265. 8014c00: 4b0f ldr r3, [pc, #60] @ (8014c40 <prvProcessTimerOrBlockTask+0x94>)
  50266. 8014c02: 6818 ldr r0, [r3, #0]
  50267. 8014c04: 687a ldr r2, [r7, #4]
  50268. 8014c06: 68fb ldr r3, [r7, #12]
  50269. 8014c08: 1ad3 subs r3, r2, r3
  50270. 8014c0a: 683a ldr r2, [r7, #0]
  50271. 8014c0c: 4619 mov r1, r3
  50272. 8014c0e: f7fd ffa9 bl 8012b64 <vQueueWaitForMessageRestricted>
  50273. if( xTaskResumeAll() == pdFALSE )
  50274. 8014c12: f7fe fde5 bl 80137e0 <xTaskResumeAll>
  50275. 8014c16: 4603 mov r3, r0
  50276. 8014c18: 2b00 cmp r3, #0
  50277. 8014c1a: d10a bne.n 8014c32 <prvProcessTimerOrBlockTask+0x86>
  50278. portYIELD_WITHIN_API();
  50279. 8014c1c: 4b09 ldr r3, [pc, #36] @ (8014c44 <prvProcessTimerOrBlockTask+0x98>)
  50280. 8014c1e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50281. 8014c22: 601a str r2, [r3, #0]
  50282. 8014c24: f3bf 8f4f dsb sy
  50283. 8014c28: f3bf 8f6f isb sy
  50284. }
  50285. 8014c2c: e001 b.n 8014c32 <prvProcessTimerOrBlockTask+0x86>
  50286. ( void ) xTaskResumeAll();
  50287. 8014c2e: f7fe fdd7 bl 80137e0 <xTaskResumeAll>
  50288. }
  50289. 8014c32: bf00 nop
  50290. 8014c34: 3710 adds r7, #16
  50291. 8014c36: 46bd mov sp, r7
  50292. 8014c38: bd80 pop {r7, pc}
  50293. 8014c3a: bf00 nop
  50294. 8014c3c: 2400428c .word 0x2400428c
  50295. 8014c40: 24004290 .word 0x24004290
  50296. 8014c44: e000ed04 .word 0xe000ed04
  50297. 08014c48 <prvGetNextExpireTime>:
  50298. /*-----------------------------------------------------------*/
  50299. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  50300. {
  50301. 8014c48: b480 push {r7}
  50302. 8014c4a: b085 sub sp, #20
  50303. 8014c4c: af00 add r7, sp, #0
  50304. 8014c4e: 6078 str r0, [r7, #4]
  50305. the timer with the nearest expiry time will expire. If there are no
  50306. active timers then just set the next expire time to 0. That will cause
  50307. this task to unblock when the tick count overflows, at which point the
  50308. timer lists will be switched and the next expiry time can be
  50309. re-assessed. */
  50310. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  50311. 8014c50: 4b0e ldr r3, [pc, #56] @ (8014c8c <prvGetNextExpireTime+0x44>)
  50312. 8014c52: 681b ldr r3, [r3, #0]
  50313. 8014c54: 681b ldr r3, [r3, #0]
  50314. 8014c56: 2b00 cmp r3, #0
  50315. 8014c58: d101 bne.n 8014c5e <prvGetNextExpireTime+0x16>
  50316. 8014c5a: 2201 movs r2, #1
  50317. 8014c5c: e000 b.n 8014c60 <prvGetNextExpireTime+0x18>
  50318. 8014c5e: 2200 movs r2, #0
  50319. 8014c60: 687b ldr r3, [r7, #4]
  50320. 8014c62: 601a str r2, [r3, #0]
  50321. if( *pxListWasEmpty == pdFALSE )
  50322. 8014c64: 687b ldr r3, [r7, #4]
  50323. 8014c66: 681b ldr r3, [r3, #0]
  50324. 8014c68: 2b00 cmp r3, #0
  50325. 8014c6a: d105 bne.n 8014c78 <prvGetNextExpireTime+0x30>
  50326. {
  50327. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  50328. 8014c6c: 4b07 ldr r3, [pc, #28] @ (8014c8c <prvGetNextExpireTime+0x44>)
  50329. 8014c6e: 681b ldr r3, [r3, #0]
  50330. 8014c70: 68db ldr r3, [r3, #12]
  50331. 8014c72: 681b ldr r3, [r3, #0]
  50332. 8014c74: 60fb str r3, [r7, #12]
  50333. 8014c76: e001 b.n 8014c7c <prvGetNextExpireTime+0x34>
  50334. }
  50335. else
  50336. {
  50337. /* Ensure the task unblocks when the tick count rolls over. */
  50338. xNextExpireTime = ( TickType_t ) 0U;
  50339. 8014c78: 2300 movs r3, #0
  50340. 8014c7a: 60fb str r3, [r7, #12]
  50341. }
  50342. return xNextExpireTime;
  50343. 8014c7c: 68fb ldr r3, [r7, #12]
  50344. }
  50345. 8014c7e: 4618 mov r0, r3
  50346. 8014c80: 3714 adds r7, #20
  50347. 8014c82: 46bd mov sp, r7
  50348. 8014c84: f85d 7b04 ldr.w r7, [sp], #4
  50349. 8014c88: 4770 bx lr
  50350. 8014c8a: bf00 nop
  50351. 8014c8c: 24004288 .word 0x24004288
  50352. 08014c90 <prvSampleTimeNow>:
  50353. /*-----------------------------------------------------------*/
  50354. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  50355. {
  50356. 8014c90: b580 push {r7, lr}
  50357. 8014c92: b084 sub sp, #16
  50358. 8014c94: af00 add r7, sp, #0
  50359. 8014c96: 6078 str r0, [r7, #4]
  50360. TickType_t xTimeNow;
  50361. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  50362. xTimeNow = xTaskGetTickCount();
  50363. 8014c98: f7fe fe40 bl 801391c <xTaskGetTickCount>
  50364. 8014c9c: 60f8 str r0, [r7, #12]
  50365. if( xTimeNow < xLastTime )
  50366. 8014c9e: 4b0b ldr r3, [pc, #44] @ (8014ccc <prvSampleTimeNow+0x3c>)
  50367. 8014ca0: 681b ldr r3, [r3, #0]
  50368. 8014ca2: 68fa ldr r2, [r7, #12]
  50369. 8014ca4: 429a cmp r2, r3
  50370. 8014ca6: d205 bcs.n 8014cb4 <prvSampleTimeNow+0x24>
  50371. {
  50372. prvSwitchTimerLists();
  50373. 8014ca8: f000 f93a bl 8014f20 <prvSwitchTimerLists>
  50374. *pxTimerListsWereSwitched = pdTRUE;
  50375. 8014cac: 687b ldr r3, [r7, #4]
  50376. 8014cae: 2201 movs r2, #1
  50377. 8014cb0: 601a str r2, [r3, #0]
  50378. 8014cb2: e002 b.n 8014cba <prvSampleTimeNow+0x2a>
  50379. }
  50380. else
  50381. {
  50382. *pxTimerListsWereSwitched = pdFALSE;
  50383. 8014cb4: 687b ldr r3, [r7, #4]
  50384. 8014cb6: 2200 movs r2, #0
  50385. 8014cb8: 601a str r2, [r3, #0]
  50386. }
  50387. xLastTime = xTimeNow;
  50388. 8014cba: 4a04 ldr r2, [pc, #16] @ (8014ccc <prvSampleTimeNow+0x3c>)
  50389. 8014cbc: 68fb ldr r3, [r7, #12]
  50390. 8014cbe: 6013 str r3, [r2, #0]
  50391. return xTimeNow;
  50392. 8014cc0: 68fb ldr r3, [r7, #12]
  50393. }
  50394. 8014cc2: 4618 mov r0, r3
  50395. 8014cc4: 3710 adds r7, #16
  50396. 8014cc6: 46bd mov sp, r7
  50397. 8014cc8: bd80 pop {r7, pc}
  50398. 8014cca: bf00 nop
  50399. 8014ccc: 24004298 .word 0x24004298
  50400. 08014cd0 <prvInsertTimerInActiveList>:
  50401. /*-----------------------------------------------------------*/
  50402. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  50403. {
  50404. 8014cd0: b580 push {r7, lr}
  50405. 8014cd2: b086 sub sp, #24
  50406. 8014cd4: af00 add r7, sp, #0
  50407. 8014cd6: 60f8 str r0, [r7, #12]
  50408. 8014cd8: 60b9 str r1, [r7, #8]
  50409. 8014cda: 607a str r2, [r7, #4]
  50410. 8014cdc: 603b str r3, [r7, #0]
  50411. BaseType_t xProcessTimerNow = pdFALSE;
  50412. 8014cde: 2300 movs r3, #0
  50413. 8014ce0: 617b str r3, [r7, #20]
  50414. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  50415. 8014ce2: 68fb ldr r3, [r7, #12]
  50416. 8014ce4: 68ba ldr r2, [r7, #8]
  50417. 8014ce6: 605a str r2, [r3, #4]
  50418. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  50419. 8014ce8: 68fb ldr r3, [r7, #12]
  50420. 8014cea: 68fa ldr r2, [r7, #12]
  50421. 8014cec: 611a str r2, [r3, #16]
  50422. if( xNextExpiryTime <= xTimeNow )
  50423. 8014cee: 68ba ldr r2, [r7, #8]
  50424. 8014cf0: 687b ldr r3, [r7, #4]
  50425. 8014cf2: 429a cmp r2, r3
  50426. 8014cf4: d812 bhi.n 8014d1c <prvInsertTimerInActiveList+0x4c>
  50427. {
  50428. /* Has the expiry time elapsed between the command to start/reset a
  50429. timer was issued, and the time the command was processed? */
  50430. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  50431. 8014cf6: 687a ldr r2, [r7, #4]
  50432. 8014cf8: 683b ldr r3, [r7, #0]
  50433. 8014cfa: 1ad2 subs r2, r2, r3
  50434. 8014cfc: 68fb ldr r3, [r7, #12]
  50435. 8014cfe: 699b ldr r3, [r3, #24]
  50436. 8014d00: 429a cmp r2, r3
  50437. 8014d02: d302 bcc.n 8014d0a <prvInsertTimerInActiveList+0x3a>
  50438. {
  50439. /* The time between a command being issued and the command being
  50440. processed actually exceeds the timers period. */
  50441. xProcessTimerNow = pdTRUE;
  50442. 8014d04: 2301 movs r3, #1
  50443. 8014d06: 617b str r3, [r7, #20]
  50444. 8014d08: e01b b.n 8014d42 <prvInsertTimerInActiveList+0x72>
  50445. }
  50446. else
  50447. {
  50448. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  50449. 8014d0a: 4b10 ldr r3, [pc, #64] @ (8014d4c <prvInsertTimerInActiveList+0x7c>)
  50450. 8014d0c: 681a ldr r2, [r3, #0]
  50451. 8014d0e: 68fb ldr r3, [r7, #12]
  50452. 8014d10: 3304 adds r3, #4
  50453. 8014d12: 4619 mov r1, r3
  50454. 8014d14: 4610 mov r0, r2
  50455. 8014d16: f7fc fdd4 bl 80118c2 <vListInsert>
  50456. 8014d1a: e012 b.n 8014d42 <prvInsertTimerInActiveList+0x72>
  50457. }
  50458. }
  50459. else
  50460. {
  50461. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  50462. 8014d1c: 687a ldr r2, [r7, #4]
  50463. 8014d1e: 683b ldr r3, [r7, #0]
  50464. 8014d20: 429a cmp r2, r3
  50465. 8014d22: d206 bcs.n 8014d32 <prvInsertTimerInActiveList+0x62>
  50466. 8014d24: 68ba ldr r2, [r7, #8]
  50467. 8014d26: 683b ldr r3, [r7, #0]
  50468. 8014d28: 429a cmp r2, r3
  50469. 8014d2a: d302 bcc.n 8014d32 <prvInsertTimerInActiveList+0x62>
  50470. {
  50471. /* If, since the command was issued, the tick count has overflowed
  50472. but the expiry time has not, then the timer must have already passed
  50473. its expiry time and should be processed immediately. */
  50474. xProcessTimerNow = pdTRUE;
  50475. 8014d2c: 2301 movs r3, #1
  50476. 8014d2e: 617b str r3, [r7, #20]
  50477. 8014d30: e007 b.n 8014d42 <prvInsertTimerInActiveList+0x72>
  50478. }
  50479. else
  50480. {
  50481. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  50482. 8014d32: 4b07 ldr r3, [pc, #28] @ (8014d50 <prvInsertTimerInActiveList+0x80>)
  50483. 8014d34: 681a ldr r2, [r3, #0]
  50484. 8014d36: 68fb ldr r3, [r7, #12]
  50485. 8014d38: 3304 adds r3, #4
  50486. 8014d3a: 4619 mov r1, r3
  50487. 8014d3c: 4610 mov r0, r2
  50488. 8014d3e: f7fc fdc0 bl 80118c2 <vListInsert>
  50489. }
  50490. }
  50491. return xProcessTimerNow;
  50492. 8014d42: 697b ldr r3, [r7, #20]
  50493. }
  50494. 8014d44: 4618 mov r0, r3
  50495. 8014d46: 3718 adds r7, #24
  50496. 8014d48: 46bd mov sp, r7
  50497. 8014d4a: bd80 pop {r7, pc}
  50498. 8014d4c: 2400428c .word 0x2400428c
  50499. 8014d50: 24004288 .word 0x24004288
  50500. 08014d54 <prvProcessReceivedCommands>:
  50501. /*-----------------------------------------------------------*/
  50502. static void prvProcessReceivedCommands( void )
  50503. {
  50504. 8014d54: b580 push {r7, lr}
  50505. 8014d56: b08e sub sp, #56 @ 0x38
  50506. 8014d58: af02 add r7, sp, #8
  50507. DaemonTaskMessage_t xMessage;
  50508. Timer_t *pxTimer;
  50509. BaseType_t xTimerListsWereSwitched, xResult;
  50510. TickType_t xTimeNow;
  50511. 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. */
  50512. 8014d5a: e0ce b.n 8014efa <prvProcessReceivedCommands+0x1a6>
  50513. {
  50514. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  50515. {
  50516. /* Negative commands are pended function calls rather than timer
  50517. commands. */
  50518. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  50519. 8014d5c: 687b ldr r3, [r7, #4]
  50520. 8014d5e: 2b00 cmp r3, #0
  50521. 8014d60: da19 bge.n 8014d96 <prvProcessReceivedCommands+0x42>
  50522. {
  50523. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  50524. 8014d62: 1d3b adds r3, r7, #4
  50525. 8014d64: 3304 adds r3, #4
  50526. 8014d66: 62fb str r3, [r7, #44] @ 0x2c
  50527. /* The timer uses the xCallbackParameters member to request a
  50528. callback be executed. Check the callback is not NULL. */
  50529. configASSERT( pxCallback );
  50530. 8014d68: 6afb ldr r3, [r7, #44] @ 0x2c
  50531. 8014d6a: 2b00 cmp r3, #0
  50532. 8014d6c: d10b bne.n 8014d86 <prvProcessReceivedCommands+0x32>
  50533. __asm volatile
  50534. 8014d6e: f04f 0350 mov.w r3, #80 @ 0x50
  50535. 8014d72: f383 8811 msr BASEPRI, r3
  50536. 8014d76: f3bf 8f6f isb sy
  50537. 8014d7a: f3bf 8f4f dsb sy
  50538. 8014d7e: 61fb str r3, [r7, #28]
  50539. }
  50540. 8014d80: bf00 nop
  50541. 8014d82: bf00 nop
  50542. 8014d84: e7fd b.n 8014d82 <prvProcessReceivedCommands+0x2e>
  50543. /* Call the function. */
  50544. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  50545. 8014d86: 6afb ldr r3, [r7, #44] @ 0x2c
  50546. 8014d88: 681b ldr r3, [r3, #0]
  50547. 8014d8a: 6afa ldr r2, [r7, #44] @ 0x2c
  50548. 8014d8c: 6850 ldr r0, [r2, #4]
  50549. 8014d8e: 6afa ldr r2, [r7, #44] @ 0x2c
  50550. 8014d90: 6892 ldr r2, [r2, #8]
  50551. 8014d92: 4611 mov r1, r2
  50552. 8014d94: 4798 blx r3
  50553. }
  50554. #endif /* INCLUDE_xTimerPendFunctionCall */
  50555. /* Commands that are positive are timer commands rather than pended
  50556. function calls. */
  50557. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  50558. 8014d96: 687b ldr r3, [r7, #4]
  50559. 8014d98: 2b00 cmp r3, #0
  50560. 8014d9a: f2c0 80ae blt.w 8014efa <prvProcessReceivedCommands+0x1a6>
  50561. {
  50562. /* The messages uses the xTimerParameters member to work on a
  50563. software timer. */
  50564. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  50565. 8014d9e: 68fb ldr r3, [r7, #12]
  50566. 8014da0: 62bb str r3, [r7, #40] @ 0x28
  50567. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  50568. 8014da2: 6abb ldr r3, [r7, #40] @ 0x28
  50569. 8014da4: 695b ldr r3, [r3, #20]
  50570. 8014da6: 2b00 cmp r3, #0
  50571. 8014da8: d004 beq.n 8014db4 <prvProcessReceivedCommands+0x60>
  50572. {
  50573. /* The timer is in a list, remove it. */
  50574. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  50575. 8014daa: 6abb ldr r3, [r7, #40] @ 0x28
  50576. 8014dac: 3304 adds r3, #4
  50577. 8014dae: 4618 mov r0, r3
  50578. 8014db0: f7fc fdc0 bl 8011934 <uxListRemove>
  50579. it must be present in the function call. prvSampleTimeNow() must be
  50580. called after the message is received from xTimerQueue so there is no
  50581. possibility of a higher priority task adding a message to the message
  50582. queue with a time that is ahead of the timer daemon task (because it
  50583. pre-empted the timer daemon task after the xTimeNow value was set). */
  50584. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  50585. 8014db4: 463b mov r3, r7
  50586. 8014db6: 4618 mov r0, r3
  50587. 8014db8: f7ff ff6a bl 8014c90 <prvSampleTimeNow>
  50588. 8014dbc: 6278 str r0, [r7, #36] @ 0x24
  50589. switch( xMessage.xMessageID )
  50590. 8014dbe: 687b ldr r3, [r7, #4]
  50591. 8014dc0: 2b09 cmp r3, #9
  50592. 8014dc2: f200 8097 bhi.w 8014ef4 <prvProcessReceivedCommands+0x1a0>
  50593. 8014dc6: a201 add r2, pc, #4 @ (adr r2, 8014dcc <prvProcessReceivedCommands+0x78>)
  50594. 8014dc8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  50595. 8014dcc: 08014df5 .word 0x08014df5
  50596. 8014dd0: 08014df5 .word 0x08014df5
  50597. 8014dd4: 08014df5 .word 0x08014df5
  50598. 8014dd8: 08014e6b .word 0x08014e6b
  50599. 8014ddc: 08014e7f .word 0x08014e7f
  50600. 8014de0: 08014ecb .word 0x08014ecb
  50601. 8014de4: 08014df5 .word 0x08014df5
  50602. 8014de8: 08014df5 .word 0x08014df5
  50603. 8014dec: 08014e6b .word 0x08014e6b
  50604. 8014df0: 08014e7f .word 0x08014e7f
  50605. case tmrCOMMAND_START_FROM_ISR :
  50606. case tmrCOMMAND_RESET :
  50607. case tmrCOMMAND_RESET_FROM_ISR :
  50608. case tmrCOMMAND_START_DONT_TRACE :
  50609. /* Start or restart a timer. */
  50610. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  50611. 8014df4: 6abb ldr r3, [r7, #40] @ 0x28
  50612. 8014df6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50613. 8014dfa: f043 0301 orr.w r3, r3, #1
  50614. 8014dfe: b2da uxtb r2, r3
  50615. 8014e00: 6abb ldr r3, [r7, #40] @ 0x28
  50616. 8014e02: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50617. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  50618. 8014e06: 68ba ldr r2, [r7, #8]
  50619. 8014e08: 6abb ldr r3, [r7, #40] @ 0x28
  50620. 8014e0a: 699b ldr r3, [r3, #24]
  50621. 8014e0c: 18d1 adds r1, r2, r3
  50622. 8014e0e: 68bb ldr r3, [r7, #8]
  50623. 8014e10: 6a7a ldr r2, [r7, #36] @ 0x24
  50624. 8014e12: 6ab8 ldr r0, [r7, #40] @ 0x28
  50625. 8014e14: f7ff ff5c bl 8014cd0 <prvInsertTimerInActiveList>
  50626. 8014e18: 4603 mov r3, r0
  50627. 8014e1a: 2b00 cmp r3, #0
  50628. 8014e1c: d06c beq.n 8014ef8 <prvProcessReceivedCommands+0x1a4>
  50629. {
  50630. /* The timer expired before it was added to the active
  50631. timer list. Process it now. */
  50632. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  50633. 8014e1e: 6abb ldr r3, [r7, #40] @ 0x28
  50634. 8014e20: 6a1b ldr r3, [r3, #32]
  50635. 8014e22: 6ab8 ldr r0, [r7, #40] @ 0x28
  50636. 8014e24: 4798 blx r3
  50637. traceTIMER_EXPIRED( pxTimer );
  50638. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  50639. 8014e26: 6abb ldr r3, [r7, #40] @ 0x28
  50640. 8014e28: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50641. 8014e2c: f003 0304 and.w r3, r3, #4
  50642. 8014e30: 2b00 cmp r3, #0
  50643. 8014e32: d061 beq.n 8014ef8 <prvProcessReceivedCommands+0x1a4>
  50644. {
  50645. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  50646. 8014e34: 68ba ldr r2, [r7, #8]
  50647. 8014e36: 6abb ldr r3, [r7, #40] @ 0x28
  50648. 8014e38: 699b ldr r3, [r3, #24]
  50649. 8014e3a: 441a add r2, r3
  50650. 8014e3c: 2300 movs r3, #0
  50651. 8014e3e: 9300 str r3, [sp, #0]
  50652. 8014e40: 2300 movs r3, #0
  50653. 8014e42: 2100 movs r1, #0
  50654. 8014e44: 6ab8 ldr r0, [r7, #40] @ 0x28
  50655. 8014e46: f7ff fe01 bl 8014a4c <xTimerGenericCommand>
  50656. 8014e4a: 6238 str r0, [r7, #32]
  50657. configASSERT( xResult );
  50658. 8014e4c: 6a3b ldr r3, [r7, #32]
  50659. 8014e4e: 2b00 cmp r3, #0
  50660. 8014e50: d152 bne.n 8014ef8 <prvProcessReceivedCommands+0x1a4>
  50661. __asm volatile
  50662. 8014e52: f04f 0350 mov.w r3, #80 @ 0x50
  50663. 8014e56: f383 8811 msr BASEPRI, r3
  50664. 8014e5a: f3bf 8f6f isb sy
  50665. 8014e5e: f3bf 8f4f dsb sy
  50666. 8014e62: 61bb str r3, [r7, #24]
  50667. }
  50668. 8014e64: bf00 nop
  50669. 8014e66: bf00 nop
  50670. 8014e68: e7fd b.n 8014e66 <prvProcessReceivedCommands+0x112>
  50671. break;
  50672. case tmrCOMMAND_STOP :
  50673. case tmrCOMMAND_STOP_FROM_ISR :
  50674. /* The timer has already been removed from the active list. */
  50675. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  50676. 8014e6a: 6abb ldr r3, [r7, #40] @ 0x28
  50677. 8014e6c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50678. 8014e70: f023 0301 bic.w r3, r3, #1
  50679. 8014e74: b2da uxtb r2, r3
  50680. 8014e76: 6abb ldr r3, [r7, #40] @ 0x28
  50681. 8014e78: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50682. break;
  50683. 8014e7c: e03d b.n 8014efa <prvProcessReceivedCommands+0x1a6>
  50684. case tmrCOMMAND_CHANGE_PERIOD :
  50685. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  50686. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  50687. 8014e7e: 6abb ldr r3, [r7, #40] @ 0x28
  50688. 8014e80: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50689. 8014e84: f043 0301 orr.w r3, r3, #1
  50690. 8014e88: b2da uxtb r2, r3
  50691. 8014e8a: 6abb ldr r3, [r7, #40] @ 0x28
  50692. 8014e8c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50693. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  50694. 8014e90: 68ba ldr r2, [r7, #8]
  50695. 8014e92: 6abb ldr r3, [r7, #40] @ 0x28
  50696. 8014e94: 619a str r2, [r3, #24]
  50697. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  50698. 8014e96: 6abb ldr r3, [r7, #40] @ 0x28
  50699. 8014e98: 699b ldr r3, [r3, #24]
  50700. 8014e9a: 2b00 cmp r3, #0
  50701. 8014e9c: d10b bne.n 8014eb6 <prvProcessReceivedCommands+0x162>
  50702. __asm volatile
  50703. 8014e9e: f04f 0350 mov.w r3, #80 @ 0x50
  50704. 8014ea2: f383 8811 msr BASEPRI, r3
  50705. 8014ea6: f3bf 8f6f isb sy
  50706. 8014eaa: f3bf 8f4f dsb sy
  50707. 8014eae: 617b str r3, [r7, #20]
  50708. }
  50709. 8014eb0: bf00 nop
  50710. 8014eb2: bf00 nop
  50711. 8014eb4: e7fd b.n 8014eb2 <prvProcessReceivedCommands+0x15e>
  50712. be longer or shorter than the old one. The command time is
  50713. therefore set to the current time, and as the period cannot
  50714. be zero the next expiry time can only be in the future,
  50715. meaning (unlike for the xTimerStart() case above) there is
  50716. no fail case that needs to be handled here. */
  50717. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  50718. 8014eb6: 6abb ldr r3, [r7, #40] @ 0x28
  50719. 8014eb8: 699a ldr r2, [r3, #24]
  50720. 8014eba: 6a7b ldr r3, [r7, #36] @ 0x24
  50721. 8014ebc: 18d1 adds r1, r2, r3
  50722. 8014ebe: 6a7b ldr r3, [r7, #36] @ 0x24
  50723. 8014ec0: 6a7a ldr r2, [r7, #36] @ 0x24
  50724. 8014ec2: 6ab8 ldr r0, [r7, #40] @ 0x28
  50725. 8014ec4: f7ff ff04 bl 8014cd0 <prvInsertTimerInActiveList>
  50726. break;
  50727. 8014ec8: e017 b.n 8014efa <prvProcessReceivedCommands+0x1a6>
  50728. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  50729. {
  50730. /* The timer has already been removed from the active list,
  50731. just free up the memory if the memory was dynamically
  50732. allocated. */
  50733. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  50734. 8014eca: 6abb ldr r3, [r7, #40] @ 0x28
  50735. 8014ecc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50736. 8014ed0: f003 0302 and.w r3, r3, #2
  50737. 8014ed4: 2b00 cmp r3, #0
  50738. 8014ed6: d103 bne.n 8014ee0 <prvProcessReceivedCommands+0x18c>
  50739. {
  50740. vPortFree( pxTimer );
  50741. 8014ed8: 6ab8 ldr r0, [r7, #40] @ 0x28
  50742. 8014eda: f000 fc0d bl 80156f8 <vPortFree>
  50743. no need to free the memory - just mark the timer as
  50744. "not active". */
  50745. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  50746. }
  50747. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  50748. break;
  50749. 8014ede: e00c b.n 8014efa <prvProcessReceivedCommands+0x1a6>
  50750. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  50751. 8014ee0: 6abb ldr r3, [r7, #40] @ 0x28
  50752. 8014ee2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50753. 8014ee6: f023 0301 bic.w r3, r3, #1
  50754. 8014eea: b2da uxtb r2, r3
  50755. 8014eec: 6abb ldr r3, [r7, #40] @ 0x28
  50756. 8014eee: f883 2028 strb.w r2, [r3, #40] @ 0x28
  50757. break;
  50758. 8014ef2: e002 b.n 8014efa <prvProcessReceivedCommands+0x1a6>
  50759. default :
  50760. /* Don't expect to get here. */
  50761. break;
  50762. 8014ef4: bf00 nop
  50763. 8014ef6: e000 b.n 8014efa <prvProcessReceivedCommands+0x1a6>
  50764. break;
  50765. 8014ef8: bf00 nop
  50766. 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. */
  50767. 8014efa: 4b08 ldr r3, [pc, #32] @ (8014f1c <prvProcessReceivedCommands+0x1c8>)
  50768. 8014efc: 681b ldr r3, [r3, #0]
  50769. 8014efe: 1d39 adds r1, r7, #4
  50770. 8014f00: 2200 movs r2, #0
  50771. 8014f02: 4618 mov r0, r3
  50772. 8014f04: f7fd f9dc bl 80122c0 <xQueueReceive>
  50773. 8014f08: 4603 mov r3, r0
  50774. 8014f0a: 2b00 cmp r3, #0
  50775. 8014f0c: f47f af26 bne.w 8014d5c <prvProcessReceivedCommands+0x8>
  50776. }
  50777. }
  50778. }
  50779. }
  50780. 8014f10: bf00 nop
  50781. 8014f12: bf00 nop
  50782. 8014f14: 3730 adds r7, #48 @ 0x30
  50783. 8014f16: 46bd mov sp, r7
  50784. 8014f18: bd80 pop {r7, pc}
  50785. 8014f1a: bf00 nop
  50786. 8014f1c: 24004290 .word 0x24004290
  50787. 08014f20 <prvSwitchTimerLists>:
  50788. /*-----------------------------------------------------------*/
  50789. static void prvSwitchTimerLists( void )
  50790. {
  50791. 8014f20: b580 push {r7, lr}
  50792. 8014f22: b088 sub sp, #32
  50793. 8014f24: af02 add r7, sp, #8
  50794. /* The tick count has overflowed. The timer lists must be switched.
  50795. If there are any timers still referenced from the current timer list
  50796. then they must have expired and should be processed before the lists
  50797. are switched. */
  50798. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  50799. 8014f26: e049 b.n 8014fbc <prvSwitchTimerLists+0x9c>
  50800. {
  50801. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  50802. 8014f28: 4b2e ldr r3, [pc, #184] @ (8014fe4 <prvSwitchTimerLists+0xc4>)
  50803. 8014f2a: 681b ldr r3, [r3, #0]
  50804. 8014f2c: 68db ldr r3, [r3, #12]
  50805. 8014f2e: 681b ldr r3, [r3, #0]
  50806. 8014f30: 613b str r3, [r7, #16]
  50807. /* Remove the timer from the list. */
  50808. 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. */
  50809. 8014f32: 4b2c ldr r3, [pc, #176] @ (8014fe4 <prvSwitchTimerLists+0xc4>)
  50810. 8014f34: 681b ldr r3, [r3, #0]
  50811. 8014f36: 68db ldr r3, [r3, #12]
  50812. 8014f38: 68db ldr r3, [r3, #12]
  50813. 8014f3a: 60fb str r3, [r7, #12]
  50814. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  50815. 8014f3c: 68fb ldr r3, [r7, #12]
  50816. 8014f3e: 3304 adds r3, #4
  50817. 8014f40: 4618 mov r0, r3
  50818. 8014f42: f7fc fcf7 bl 8011934 <uxListRemove>
  50819. traceTIMER_EXPIRED( pxTimer );
  50820. /* Execute its callback, then send a command to restart the timer if
  50821. it is an auto-reload timer. It cannot be restarted here as the lists
  50822. have not yet been switched. */
  50823. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  50824. 8014f46: 68fb ldr r3, [r7, #12]
  50825. 8014f48: 6a1b ldr r3, [r3, #32]
  50826. 8014f4a: 68f8 ldr r0, [r7, #12]
  50827. 8014f4c: 4798 blx r3
  50828. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  50829. 8014f4e: 68fb ldr r3, [r7, #12]
  50830. 8014f50: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  50831. 8014f54: f003 0304 and.w r3, r3, #4
  50832. 8014f58: 2b00 cmp r3, #0
  50833. 8014f5a: d02f beq.n 8014fbc <prvSwitchTimerLists+0x9c>
  50834. the timer going into the same timer list then it has already expired
  50835. and the timer should be re-inserted into the current list so it is
  50836. processed again within this loop. Otherwise a command should be sent
  50837. to restart the timer to ensure it is only inserted into a list after
  50838. the lists have been swapped. */
  50839. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  50840. 8014f5c: 68fb ldr r3, [r7, #12]
  50841. 8014f5e: 699b ldr r3, [r3, #24]
  50842. 8014f60: 693a ldr r2, [r7, #16]
  50843. 8014f62: 4413 add r3, r2
  50844. 8014f64: 60bb str r3, [r7, #8]
  50845. if( xReloadTime > xNextExpireTime )
  50846. 8014f66: 68ba ldr r2, [r7, #8]
  50847. 8014f68: 693b ldr r3, [r7, #16]
  50848. 8014f6a: 429a cmp r2, r3
  50849. 8014f6c: d90e bls.n 8014f8c <prvSwitchTimerLists+0x6c>
  50850. {
  50851. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  50852. 8014f6e: 68fb ldr r3, [r7, #12]
  50853. 8014f70: 68ba ldr r2, [r7, #8]
  50854. 8014f72: 605a str r2, [r3, #4]
  50855. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  50856. 8014f74: 68fb ldr r3, [r7, #12]
  50857. 8014f76: 68fa ldr r2, [r7, #12]
  50858. 8014f78: 611a str r2, [r3, #16]
  50859. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  50860. 8014f7a: 4b1a ldr r3, [pc, #104] @ (8014fe4 <prvSwitchTimerLists+0xc4>)
  50861. 8014f7c: 681a ldr r2, [r3, #0]
  50862. 8014f7e: 68fb ldr r3, [r7, #12]
  50863. 8014f80: 3304 adds r3, #4
  50864. 8014f82: 4619 mov r1, r3
  50865. 8014f84: 4610 mov r0, r2
  50866. 8014f86: f7fc fc9c bl 80118c2 <vListInsert>
  50867. 8014f8a: e017 b.n 8014fbc <prvSwitchTimerLists+0x9c>
  50868. }
  50869. else
  50870. {
  50871. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  50872. 8014f8c: 2300 movs r3, #0
  50873. 8014f8e: 9300 str r3, [sp, #0]
  50874. 8014f90: 2300 movs r3, #0
  50875. 8014f92: 693a ldr r2, [r7, #16]
  50876. 8014f94: 2100 movs r1, #0
  50877. 8014f96: 68f8 ldr r0, [r7, #12]
  50878. 8014f98: f7ff fd58 bl 8014a4c <xTimerGenericCommand>
  50879. 8014f9c: 6078 str r0, [r7, #4]
  50880. configASSERT( xResult );
  50881. 8014f9e: 687b ldr r3, [r7, #4]
  50882. 8014fa0: 2b00 cmp r3, #0
  50883. 8014fa2: d10b bne.n 8014fbc <prvSwitchTimerLists+0x9c>
  50884. __asm volatile
  50885. 8014fa4: f04f 0350 mov.w r3, #80 @ 0x50
  50886. 8014fa8: f383 8811 msr BASEPRI, r3
  50887. 8014fac: f3bf 8f6f isb sy
  50888. 8014fb0: f3bf 8f4f dsb sy
  50889. 8014fb4: 603b str r3, [r7, #0]
  50890. }
  50891. 8014fb6: bf00 nop
  50892. 8014fb8: bf00 nop
  50893. 8014fba: e7fd b.n 8014fb8 <prvSwitchTimerLists+0x98>
  50894. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  50895. 8014fbc: 4b09 ldr r3, [pc, #36] @ (8014fe4 <prvSwitchTimerLists+0xc4>)
  50896. 8014fbe: 681b ldr r3, [r3, #0]
  50897. 8014fc0: 681b ldr r3, [r3, #0]
  50898. 8014fc2: 2b00 cmp r3, #0
  50899. 8014fc4: d1b0 bne.n 8014f28 <prvSwitchTimerLists+0x8>
  50900. {
  50901. mtCOVERAGE_TEST_MARKER();
  50902. }
  50903. }
  50904. pxTemp = pxCurrentTimerList;
  50905. 8014fc6: 4b07 ldr r3, [pc, #28] @ (8014fe4 <prvSwitchTimerLists+0xc4>)
  50906. 8014fc8: 681b ldr r3, [r3, #0]
  50907. 8014fca: 617b str r3, [r7, #20]
  50908. pxCurrentTimerList = pxOverflowTimerList;
  50909. 8014fcc: 4b06 ldr r3, [pc, #24] @ (8014fe8 <prvSwitchTimerLists+0xc8>)
  50910. 8014fce: 681b ldr r3, [r3, #0]
  50911. 8014fd0: 4a04 ldr r2, [pc, #16] @ (8014fe4 <prvSwitchTimerLists+0xc4>)
  50912. 8014fd2: 6013 str r3, [r2, #0]
  50913. pxOverflowTimerList = pxTemp;
  50914. 8014fd4: 4a04 ldr r2, [pc, #16] @ (8014fe8 <prvSwitchTimerLists+0xc8>)
  50915. 8014fd6: 697b ldr r3, [r7, #20]
  50916. 8014fd8: 6013 str r3, [r2, #0]
  50917. }
  50918. 8014fda: bf00 nop
  50919. 8014fdc: 3718 adds r7, #24
  50920. 8014fde: 46bd mov sp, r7
  50921. 8014fe0: bd80 pop {r7, pc}
  50922. 8014fe2: bf00 nop
  50923. 8014fe4: 24004288 .word 0x24004288
  50924. 8014fe8: 2400428c .word 0x2400428c
  50925. 08014fec <prvCheckForValidListAndQueue>:
  50926. /*-----------------------------------------------------------*/
  50927. static void prvCheckForValidListAndQueue( void )
  50928. {
  50929. 8014fec: b580 push {r7, lr}
  50930. 8014fee: b082 sub sp, #8
  50931. 8014ff0: af02 add r7, sp, #8
  50932. /* Check that the list from which active timers are referenced, and the
  50933. queue used to communicate with the timer service, have been
  50934. initialised. */
  50935. taskENTER_CRITICAL();
  50936. 8014ff2: f000 f991 bl 8015318 <vPortEnterCritical>
  50937. {
  50938. if( xTimerQueue == NULL )
  50939. 8014ff6: 4b15 ldr r3, [pc, #84] @ (801504c <prvCheckForValidListAndQueue+0x60>)
  50940. 8014ff8: 681b ldr r3, [r3, #0]
  50941. 8014ffa: 2b00 cmp r3, #0
  50942. 8014ffc: d120 bne.n 8015040 <prvCheckForValidListAndQueue+0x54>
  50943. {
  50944. vListInitialise( &xActiveTimerList1 );
  50945. 8014ffe: 4814 ldr r0, [pc, #80] @ (8015050 <prvCheckForValidListAndQueue+0x64>)
  50946. 8015000: f7fc fc0e bl 8011820 <vListInitialise>
  50947. vListInitialise( &xActiveTimerList2 );
  50948. 8015004: 4813 ldr r0, [pc, #76] @ (8015054 <prvCheckForValidListAndQueue+0x68>)
  50949. 8015006: f7fc fc0b bl 8011820 <vListInitialise>
  50950. pxCurrentTimerList = &xActiveTimerList1;
  50951. 801500a: 4b13 ldr r3, [pc, #76] @ (8015058 <prvCheckForValidListAndQueue+0x6c>)
  50952. 801500c: 4a10 ldr r2, [pc, #64] @ (8015050 <prvCheckForValidListAndQueue+0x64>)
  50953. 801500e: 601a str r2, [r3, #0]
  50954. pxOverflowTimerList = &xActiveTimerList2;
  50955. 8015010: 4b12 ldr r3, [pc, #72] @ (801505c <prvCheckForValidListAndQueue+0x70>)
  50956. 8015012: 4a10 ldr r2, [pc, #64] @ (8015054 <prvCheckForValidListAndQueue+0x68>)
  50957. 8015014: 601a str r2, [r3, #0]
  50958. /* The timer queue is allocated statically in case
  50959. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  50960. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  50961. 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. */
  50962. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  50963. 8015016: 2300 movs r3, #0
  50964. 8015018: 9300 str r3, [sp, #0]
  50965. 801501a: 4b11 ldr r3, [pc, #68] @ (8015060 <prvCheckForValidListAndQueue+0x74>)
  50966. 801501c: 4a11 ldr r2, [pc, #68] @ (8015064 <prvCheckForValidListAndQueue+0x78>)
  50967. 801501e: 2110 movs r1, #16
  50968. 8015020: 200a movs r0, #10
  50969. 8015022: f7fc fd1b bl 8011a5c <xQueueGenericCreateStatic>
  50970. 8015026: 4603 mov r3, r0
  50971. 8015028: 4a08 ldr r2, [pc, #32] @ (801504c <prvCheckForValidListAndQueue+0x60>)
  50972. 801502a: 6013 str r3, [r2, #0]
  50973. }
  50974. #endif
  50975. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  50976. {
  50977. if( xTimerQueue != NULL )
  50978. 801502c: 4b07 ldr r3, [pc, #28] @ (801504c <prvCheckForValidListAndQueue+0x60>)
  50979. 801502e: 681b ldr r3, [r3, #0]
  50980. 8015030: 2b00 cmp r3, #0
  50981. 8015032: d005 beq.n 8015040 <prvCheckForValidListAndQueue+0x54>
  50982. {
  50983. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  50984. 8015034: 4b05 ldr r3, [pc, #20] @ (801504c <prvCheckForValidListAndQueue+0x60>)
  50985. 8015036: 681b ldr r3, [r3, #0]
  50986. 8015038: 490b ldr r1, [pc, #44] @ (8015068 <prvCheckForValidListAndQueue+0x7c>)
  50987. 801503a: 4618 mov r0, r3
  50988. 801503c: f7fd fd3e bl 8012abc <vQueueAddToRegistry>
  50989. else
  50990. {
  50991. mtCOVERAGE_TEST_MARKER();
  50992. }
  50993. }
  50994. taskEXIT_CRITICAL();
  50995. 8015040: f000 f99c bl 801537c <vPortExitCritical>
  50996. }
  50997. 8015044: bf00 nop
  50998. 8015046: 46bd mov sp, r7
  50999. 8015048: bd80 pop {r7, pc}
  51000. 801504a: bf00 nop
  51001. 801504c: 24004290 .word 0x24004290
  51002. 8015050: 24004260 .word 0x24004260
  51003. 8015054: 24004274 .word 0x24004274
  51004. 8015058: 24004288 .word 0x24004288
  51005. 801505c: 2400428c .word 0x2400428c
  51006. 8015060: 2400433c .word 0x2400433c
  51007. 8015064: 2400429c .word 0x2400429c
  51008. 8015068: 0802d410 .word 0x0802d410
  51009. 0801506c <pvTimerGetTimerID>:
  51010. return xReturn;
  51011. } /*lint !e818 Can't be pointer to const due to the typedef. */
  51012. /*-----------------------------------------------------------*/
  51013. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  51014. {
  51015. 801506c: b580 push {r7, lr}
  51016. 801506e: b086 sub sp, #24
  51017. 8015070: af00 add r7, sp, #0
  51018. 8015072: 6078 str r0, [r7, #4]
  51019. Timer_t * const pxTimer = xTimer;
  51020. 8015074: 687b ldr r3, [r7, #4]
  51021. 8015076: 617b str r3, [r7, #20]
  51022. void *pvReturn;
  51023. configASSERT( xTimer );
  51024. 8015078: 687b ldr r3, [r7, #4]
  51025. 801507a: 2b00 cmp r3, #0
  51026. 801507c: d10b bne.n 8015096 <pvTimerGetTimerID+0x2a>
  51027. __asm volatile
  51028. 801507e: f04f 0350 mov.w r3, #80 @ 0x50
  51029. 8015082: f383 8811 msr BASEPRI, r3
  51030. 8015086: f3bf 8f6f isb sy
  51031. 801508a: f3bf 8f4f dsb sy
  51032. 801508e: 60fb str r3, [r7, #12]
  51033. }
  51034. 8015090: bf00 nop
  51035. 8015092: bf00 nop
  51036. 8015094: e7fd b.n 8015092 <pvTimerGetTimerID+0x26>
  51037. taskENTER_CRITICAL();
  51038. 8015096: f000 f93f bl 8015318 <vPortEnterCritical>
  51039. {
  51040. pvReturn = pxTimer->pvTimerID;
  51041. 801509a: 697b ldr r3, [r7, #20]
  51042. 801509c: 69db ldr r3, [r3, #28]
  51043. 801509e: 613b str r3, [r7, #16]
  51044. }
  51045. taskEXIT_CRITICAL();
  51046. 80150a0: f000 f96c bl 801537c <vPortExitCritical>
  51047. return pvReturn;
  51048. 80150a4: 693b ldr r3, [r7, #16]
  51049. }
  51050. 80150a6: 4618 mov r0, r3
  51051. 80150a8: 3718 adds r7, #24
  51052. 80150aa: 46bd mov sp, r7
  51053. 80150ac: bd80 pop {r7, pc}
  51054. ...
  51055. 080150b0 <pxPortInitialiseStack>:
  51056. /*
  51057. * See header file for description.
  51058. */
  51059. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  51060. {
  51061. 80150b0: b480 push {r7}
  51062. 80150b2: b085 sub sp, #20
  51063. 80150b4: af00 add r7, sp, #0
  51064. 80150b6: 60f8 str r0, [r7, #12]
  51065. 80150b8: 60b9 str r1, [r7, #8]
  51066. 80150ba: 607a str r2, [r7, #4]
  51067. /* Simulate the stack frame as it would be created by a context switch
  51068. interrupt. */
  51069. /* Offset added to account for the way the MCU uses the stack on entry/exit
  51070. of interrupts, and to ensure alignment. */
  51071. pxTopOfStack--;
  51072. 80150bc: 68fb ldr r3, [r7, #12]
  51073. 80150be: 3b04 subs r3, #4
  51074. 80150c0: 60fb str r3, [r7, #12]
  51075. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  51076. 80150c2: 68fb ldr r3, [r7, #12]
  51077. 80150c4: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  51078. 80150c8: 601a str r2, [r3, #0]
  51079. pxTopOfStack--;
  51080. 80150ca: 68fb ldr r3, [r7, #12]
  51081. 80150cc: 3b04 subs r3, #4
  51082. 80150ce: 60fb str r3, [r7, #12]
  51083. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  51084. 80150d0: 68bb ldr r3, [r7, #8]
  51085. 80150d2: f023 0201 bic.w r2, r3, #1
  51086. 80150d6: 68fb ldr r3, [r7, #12]
  51087. 80150d8: 601a str r2, [r3, #0]
  51088. pxTopOfStack--;
  51089. 80150da: 68fb ldr r3, [r7, #12]
  51090. 80150dc: 3b04 subs r3, #4
  51091. 80150de: 60fb str r3, [r7, #12]
  51092. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  51093. 80150e0: 4a0c ldr r2, [pc, #48] @ (8015114 <pxPortInitialiseStack+0x64>)
  51094. 80150e2: 68fb ldr r3, [r7, #12]
  51095. 80150e4: 601a str r2, [r3, #0]
  51096. /* Save code space by skipping register initialisation. */
  51097. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  51098. 80150e6: 68fb ldr r3, [r7, #12]
  51099. 80150e8: 3b14 subs r3, #20
  51100. 80150ea: 60fb str r3, [r7, #12]
  51101. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  51102. 80150ec: 687a ldr r2, [r7, #4]
  51103. 80150ee: 68fb ldr r3, [r7, #12]
  51104. 80150f0: 601a str r2, [r3, #0]
  51105. /* A save method is being used that requires each task to maintain its
  51106. own exec return value. */
  51107. pxTopOfStack--;
  51108. 80150f2: 68fb ldr r3, [r7, #12]
  51109. 80150f4: 3b04 subs r3, #4
  51110. 80150f6: 60fb str r3, [r7, #12]
  51111. *pxTopOfStack = portINITIAL_EXC_RETURN;
  51112. 80150f8: 68fb ldr r3, [r7, #12]
  51113. 80150fa: f06f 0202 mvn.w r2, #2
  51114. 80150fe: 601a str r2, [r3, #0]
  51115. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  51116. 8015100: 68fb ldr r3, [r7, #12]
  51117. 8015102: 3b20 subs r3, #32
  51118. 8015104: 60fb str r3, [r7, #12]
  51119. return pxTopOfStack;
  51120. 8015106: 68fb ldr r3, [r7, #12]
  51121. }
  51122. 8015108: 4618 mov r0, r3
  51123. 801510a: 3714 adds r7, #20
  51124. 801510c: 46bd mov sp, r7
  51125. 801510e: f85d 7b04 ldr.w r7, [sp], #4
  51126. 8015112: 4770 bx lr
  51127. 8015114: 08015119 .word 0x08015119
  51128. 08015118 <prvTaskExitError>:
  51129. /*-----------------------------------------------------------*/
  51130. static void prvTaskExitError( void )
  51131. {
  51132. 8015118: b480 push {r7}
  51133. 801511a: b085 sub sp, #20
  51134. 801511c: af00 add r7, sp, #0
  51135. volatile uint32_t ulDummy = 0;
  51136. 801511e: 2300 movs r3, #0
  51137. 8015120: 607b str r3, [r7, #4]
  51138. its caller as there is nothing to return to. If a task wants to exit it
  51139. should instead call vTaskDelete( NULL ).
  51140. Artificially force an assert() to be triggered if configASSERT() is
  51141. defined, then stop here so application writers can catch the error. */
  51142. configASSERT( uxCriticalNesting == ~0UL );
  51143. 8015122: 4b13 ldr r3, [pc, #76] @ (8015170 <prvTaskExitError+0x58>)
  51144. 8015124: 681b ldr r3, [r3, #0]
  51145. 8015126: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51146. 801512a: d00b beq.n 8015144 <prvTaskExitError+0x2c>
  51147. __asm volatile
  51148. 801512c: f04f 0350 mov.w r3, #80 @ 0x50
  51149. 8015130: f383 8811 msr BASEPRI, r3
  51150. 8015134: f3bf 8f6f isb sy
  51151. 8015138: f3bf 8f4f dsb sy
  51152. 801513c: 60fb str r3, [r7, #12]
  51153. }
  51154. 801513e: bf00 nop
  51155. 8015140: bf00 nop
  51156. 8015142: e7fd b.n 8015140 <prvTaskExitError+0x28>
  51157. __asm volatile
  51158. 8015144: f04f 0350 mov.w r3, #80 @ 0x50
  51159. 8015148: f383 8811 msr BASEPRI, r3
  51160. 801514c: f3bf 8f6f isb sy
  51161. 8015150: f3bf 8f4f dsb sy
  51162. 8015154: 60bb str r3, [r7, #8]
  51163. }
  51164. 8015156: bf00 nop
  51165. portDISABLE_INTERRUPTS();
  51166. while( ulDummy == 0 )
  51167. 8015158: bf00 nop
  51168. 801515a: 687b ldr r3, [r7, #4]
  51169. 801515c: 2b00 cmp r3, #0
  51170. 801515e: d0fc beq.n 801515a <prvTaskExitError+0x42>
  51171. about code appearing after this function is called - making ulDummy
  51172. volatile makes the compiler think the function could return and
  51173. therefore not output an 'unreachable code' warning for code that appears
  51174. after it. */
  51175. }
  51176. }
  51177. 8015160: bf00 nop
  51178. 8015162: bf00 nop
  51179. 8015164: 3714 adds r7, #20
  51180. 8015166: 46bd mov sp, r7
  51181. 8015168: f85d 7b04 ldr.w r7, [sp], #4
  51182. 801516c: 4770 bx lr
  51183. 801516e: bf00 nop
  51184. 8015170: 24000048 .word 0x24000048
  51185. ...
  51186. 08015180 <SVC_Handler>:
  51187. /*-----------------------------------------------------------*/
  51188. void vPortSVCHandler( void )
  51189. {
  51190. __asm volatile (
  51191. 8015180: 4b07 ldr r3, [pc, #28] @ (80151a0 <pxCurrentTCBConst2>)
  51192. 8015182: 6819 ldr r1, [r3, #0]
  51193. 8015184: 6808 ldr r0, [r1, #0]
  51194. 8015186: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  51195. 801518a: f380 8809 msr PSP, r0
  51196. 801518e: f3bf 8f6f isb sy
  51197. 8015192: f04f 0000 mov.w r0, #0
  51198. 8015196: f380 8811 msr BASEPRI, r0
  51199. 801519a: 4770 bx lr
  51200. 801519c: f3af 8000 nop.w
  51201. 080151a0 <pxCurrentTCBConst2>:
  51202. 80151a0: 24003d60 .word 0x24003d60
  51203. " bx r14 \n"
  51204. " \n"
  51205. " .align 4 \n"
  51206. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  51207. );
  51208. }
  51209. 80151a4: bf00 nop
  51210. 80151a6: bf00 nop
  51211. 080151a8 <prvPortStartFirstTask>:
  51212. {
  51213. /* Start the first task. This also clears the bit that indicates the FPU is
  51214. in use in case the FPU was used before the scheduler was started - which
  51215. would otherwise result in the unnecessary leaving of space in the SVC stack
  51216. for lazy saving of FPU registers. */
  51217. __asm volatile(
  51218. 80151a8: 4808 ldr r0, [pc, #32] @ (80151cc <prvPortStartFirstTask+0x24>)
  51219. 80151aa: 6800 ldr r0, [r0, #0]
  51220. 80151ac: 6800 ldr r0, [r0, #0]
  51221. 80151ae: f380 8808 msr MSP, r0
  51222. 80151b2: f04f 0000 mov.w r0, #0
  51223. 80151b6: f380 8814 msr CONTROL, r0
  51224. 80151ba: b662 cpsie i
  51225. 80151bc: b661 cpsie f
  51226. 80151be: f3bf 8f4f dsb sy
  51227. 80151c2: f3bf 8f6f isb sy
  51228. 80151c6: df00 svc 0
  51229. 80151c8: bf00 nop
  51230. " dsb \n"
  51231. " isb \n"
  51232. " svc 0 \n" /* System call to start first task. */
  51233. " nop \n"
  51234. );
  51235. }
  51236. 80151ca: bf00 nop
  51237. 80151cc: e000ed08 .word 0xe000ed08
  51238. 080151d0 <xPortStartScheduler>:
  51239. /*
  51240. * See header file for description.
  51241. */
  51242. BaseType_t xPortStartScheduler( void )
  51243. {
  51244. 80151d0: b580 push {r7, lr}
  51245. 80151d2: b086 sub sp, #24
  51246. 80151d4: af00 add r7, sp, #0
  51247. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  51248. /* This port can be used on all revisions of the Cortex-M7 core other than
  51249. the r0p1 parts. r0p1 parts should use the port from the
  51250. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  51251. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  51252. 80151d6: 4b47 ldr r3, [pc, #284] @ (80152f4 <xPortStartScheduler+0x124>)
  51253. 80151d8: 681b ldr r3, [r3, #0]
  51254. 80151da: 4a47 ldr r2, [pc, #284] @ (80152f8 <xPortStartScheduler+0x128>)
  51255. 80151dc: 4293 cmp r3, r2
  51256. 80151de: d10b bne.n 80151f8 <xPortStartScheduler+0x28>
  51257. __asm volatile
  51258. 80151e0: f04f 0350 mov.w r3, #80 @ 0x50
  51259. 80151e4: f383 8811 msr BASEPRI, r3
  51260. 80151e8: f3bf 8f6f isb sy
  51261. 80151ec: f3bf 8f4f dsb sy
  51262. 80151f0: 613b str r3, [r7, #16]
  51263. }
  51264. 80151f2: bf00 nop
  51265. 80151f4: bf00 nop
  51266. 80151f6: e7fd b.n 80151f4 <xPortStartScheduler+0x24>
  51267. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  51268. 80151f8: 4b3e ldr r3, [pc, #248] @ (80152f4 <xPortStartScheduler+0x124>)
  51269. 80151fa: 681b ldr r3, [r3, #0]
  51270. 80151fc: 4a3f ldr r2, [pc, #252] @ (80152fc <xPortStartScheduler+0x12c>)
  51271. 80151fe: 4293 cmp r3, r2
  51272. 8015200: d10b bne.n 801521a <xPortStartScheduler+0x4a>
  51273. __asm volatile
  51274. 8015202: f04f 0350 mov.w r3, #80 @ 0x50
  51275. 8015206: f383 8811 msr BASEPRI, r3
  51276. 801520a: f3bf 8f6f isb sy
  51277. 801520e: f3bf 8f4f dsb sy
  51278. 8015212: 60fb str r3, [r7, #12]
  51279. }
  51280. 8015214: bf00 nop
  51281. 8015216: bf00 nop
  51282. 8015218: e7fd b.n 8015216 <xPortStartScheduler+0x46>
  51283. #if( configASSERT_DEFINED == 1 )
  51284. {
  51285. volatile uint32_t ulOriginalPriority;
  51286. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  51287. 801521a: 4b39 ldr r3, [pc, #228] @ (8015300 <xPortStartScheduler+0x130>)
  51288. 801521c: 617b str r3, [r7, #20]
  51289. functions can be called. ISR safe functions are those that end in
  51290. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  51291. ensure interrupt entry is as fast and simple as possible.
  51292. Save the interrupt priority value that is about to be clobbered. */
  51293. ulOriginalPriority = *pucFirstUserPriorityRegister;
  51294. 801521e: 697b ldr r3, [r7, #20]
  51295. 8015220: 781b ldrb r3, [r3, #0]
  51296. 8015222: b2db uxtb r3, r3
  51297. 8015224: 607b str r3, [r7, #4]
  51298. /* Determine the number of priority bits available. First write to all
  51299. possible bits. */
  51300. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  51301. 8015226: 697b ldr r3, [r7, #20]
  51302. 8015228: 22ff movs r2, #255 @ 0xff
  51303. 801522a: 701a strb r2, [r3, #0]
  51304. /* Read the value back to see how many bits stuck. */
  51305. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  51306. 801522c: 697b ldr r3, [r7, #20]
  51307. 801522e: 781b ldrb r3, [r3, #0]
  51308. 8015230: b2db uxtb r3, r3
  51309. 8015232: 70fb strb r3, [r7, #3]
  51310. /* Use the same mask on the maximum system call priority. */
  51311. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  51312. 8015234: 78fb ldrb r3, [r7, #3]
  51313. 8015236: b2db uxtb r3, r3
  51314. 8015238: f003 0350 and.w r3, r3, #80 @ 0x50
  51315. 801523c: b2da uxtb r2, r3
  51316. 801523e: 4b31 ldr r3, [pc, #196] @ (8015304 <xPortStartScheduler+0x134>)
  51317. 8015240: 701a strb r2, [r3, #0]
  51318. /* Calculate the maximum acceptable priority group value for the number
  51319. of bits read back. */
  51320. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  51321. 8015242: 4b31 ldr r3, [pc, #196] @ (8015308 <xPortStartScheduler+0x138>)
  51322. 8015244: 2207 movs r2, #7
  51323. 8015246: 601a str r2, [r3, #0]
  51324. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  51325. 8015248: e009 b.n 801525e <xPortStartScheduler+0x8e>
  51326. {
  51327. ulMaxPRIGROUPValue--;
  51328. 801524a: 4b2f ldr r3, [pc, #188] @ (8015308 <xPortStartScheduler+0x138>)
  51329. 801524c: 681b ldr r3, [r3, #0]
  51330. 801524e: 3b01 subs r3, #1
  51331. 8015250: 4a2d ldr r2, [pc, #180] @ (8015308 <xPortStartScheduler+0x138>)
  51332. 8015252: 6013 str r3, [r2, #0]
  51333. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  51334. 8015254: 78fb ldrb r3, [r7, #3]
  51335. 8015256: b2db uxtb r3, r3
  51336. 8015258: 005b lsls r3, r3, #1
  51337. 801525a: b2db uxtb r3, r3
  51338. 801525c: 70fb strb r3, [r7, #3]
  51339. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  51340. 801525e: 78fb ldrb r3, [r7, #3]
  51341. 8015260: b2db uxtb r3, r3
  51342. 8015262: f003 0380 and.w r3, r3, #128 @ 0x80
  51343. 8015266: 2b80 cmp r3, #128 @ 0x80
  51344. 8015268: d0ef beq.n 801524a <xPortStartScheduler+0x7a>
  51345. #ifdef configPRIO_BITS
  51346. {
  51347. /* Check the FreeRTOS configuration that defines the number of
  51348. priority bits matches the number of priority bits actually queried
  51349. from the hardware. */
  51350. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  51351. 801526a: 4b27 ldr r3, [pc, #156] @ (8015308 <xPortStartScheduler+0x138>)
  51352. 801526c: 681b ldr r3, [r3, #0]
  51353. 801526e: f1c3 0307 rsb r3, r3, #7
  51354. 8015272: 2b04 cmp r3, #4
  51355. 8015274: d00b beq.n 801528e <xPortStartScheduler+0xbe>
  51356. __asm volatile
  51357. 8015276: f04f 0350 mov.w r3, #80 @ 0x50
  51358. 801527a: f383 8811 msr BASEPRI, r3
  51359. 801527e: f3bf 8f6f isb sy
  51360. 8015282: f3bf 8f4f dsb sy
  51361. 8015286: 60bb str r3, [r7, #8]
  51362. }
  51363. 8015288: bf00 nop
  51364. 801528a: bf00 nop
  51365. 801528c: e7fd b.n 801528a <xPortStartScheduler+0xba>
  51366. }
  51367. #endif
  51368. /* Shift the priority group value back to its position within the AIRCR
  51369. register. */
  51370. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  51371. 801528e: 4b1e ldr r3, [pc, #120] @ (8015308 <xPortStartScheduler+0x138>)
  51372. 8015290: 681b ldr r3, [r3, #0]
  51373. 8015292: 021b lsls r3, r3, #8
  51374. 8015294: 4a1c ldr r2, [pc, #112] @ (8015308 <xPortStartScheduler+0x138>)
  51375. 8015296: 6013 str r3, [r2, #0]
  51376. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  51377. 8015298: 4b1b ldr r3, [pc, #108] @ (8015308 <xPortStartScheduler+0x138>)
  51378. 801529a: 681b ldr r3, [r3, #0]
  51379. 801529c: f403 63e0 and.w r3, r3, #1792 @ 0x700
  51380. 80152a0: 4a19 ldr r2, [pc, #100] @ (8015308 <xPortStartScheduler+0x138>)
  51381. 80152a2: 6013 str r3, [r2, #0]
  51382. /* Restore the clobbered interrupt priority register to its original
  51383. value. */
  51384. *pucFirstUserPriorityRegister = ulOriginalPriority;
  51385. 80152a4: 687b ldr r3, [r7, #4]
  51386. 80152a6: b2da uxtb r2, r3
  51387. 80152a8: 697b ldr r3, [r7, #20]
  51388. 80152aa: 701a strb r2, [r3, #0]
  51389. }
  51390. #endif /* conifgASSERT_DEFINED */
  51391. /* Make PendSV and SysTick the lowest priority interrupts. */
  51392. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  51393. 80152ac: 4b17 ldr r3, [pc, #92] @ (801530c <xPortStartScheduler+0x13c>)
  51394. 80152ae: 681b ldr r3, [r3, #0]
  51395. 80152b0: 4a16 ldr r2, [pc, #88] @ (801530c <xPortStartScheduler+0x13c>)
  51396. 80152b2: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  51397. 80152b6: 6013 str r3, [r2, #0]
  51398. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  51399. 80152b8: 4b14 ldr r3, [pc, #80] @ (801530c <xPortStartScheduler+0x13c>)
  51400. 80152ba: 681b ldr r3, [r3, #0]
  51401. 80152bc: 4a13 ldr r2, [pc, #76] @ (801530c <xPortStartScheduler+0x13c>)
  51402. 80152be: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  51403. 80152c2: 6013 str r3, [r2, #0]
  51404. /* Start the timer that generates the tick ISR. Interrupts are disabled
  51405. here already. */
  51406. vPortSetupTimerInterrupt();
  51407. 80152c4: f000 f8da bl 801547c <vPortSetupTimerInterrupt>
  51408. /* Initialise the critical nesting count ready for the first task. */
  51409. uxCriticalNesting = 0;
  51410. 80152c8: 4b11 ldr r3, [pc, #68] @ (8015310 <xPortStartScheduler+0x140>)
  51411. 80152ca: 2200 movs r2, #0
  51412. 80152cc: 601a str r2, [r3, #0]
  51413. /* Ensure the VFP is enabled - it should be anyway. */
  51414. vPortEnableVFP();
  51415. 80152ce: f000 f8f9 bl 80154c4 <vPortEnableVFP>
  51416. /* Lazy save always. */
  51417. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  51418. 80152d2: 4b10 ldr r3, [pc, #64] @ (8015314 <xPortStartScheduler+0x144>)
  51419. 80152d4: 681b ldr r3, [r3, #0]
  51420. 80152d6: 4a0f ldr r2, [pc, #60] @ (8015314 <xPortStartScheduler+0x144>)
  51421. 80152d8: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  51422. 80152dc: 6013 str r3, [r2, #0]
  51423. /* Start the first task. */
  51424. prvPortStartFirstTask();
  51425. 80152de: f7ff ff63 bl 80151a8 <prvPortStartFirstTask>
  51426. exit error function to prevent compiler warnings about a static function
  51427. not being called in the case that the application writer overrides this
  51428. functionality by defining configTASK_RETURN_ADDRESS. Call
  51429. vTaskSwitchContext() so link time optimisation does not remove the
  51430. symbol. */
  51431. vTaskSwitchContext();
  51432. 80152e2: f7fe fbf7 bl 8013ad4 <vTaskSwitchContext>
  51433. prvTaskExitError();
  51434. 80152e6: f7ff ff17 bl 8015118 <prvTaskExitError>
  51435. /* Should not get here! */
  51436. return 0;
  51437. 80152ea: 2300 movs r3, #0
  51438. }
  51439. 80152ec: 4618 mov r0, r3
  51440. 80152ee: 3718 adds r7, #24
  51441. 80152f0: 46bd mov sp, r7
  51442. 80152f2: bd80 pop {r7, pc}
  51443. 80152f4: e000ed00 .word 0xe000ed00
  51444. 80152f8: 410fc271 .word 0x410fc271
  51445. 80152fc: 410fc270 .word 0x410fc270
  51446. 8015300: e000e400 .word 0xe000e400
  51447. 8015304: 2400438c .word 0x2400438c
  51448. 8015308: 24004390 .word 0x24004390
  51449. 801530c: e000ed20 .word 0xe000ed20
  51450. 8015310: 24000048 .word 0x24000048
  51451. 8015314: e000ef34 .word 0xe000ef34
  51452. 08015318 <vPortEnterCritical>:
  51453. configASSERT( uxCriticalNesting == 1000UL );
  51454. }
  51455. /*-----------------------------------------------------------*/
  51456. void vPortEnterCritical( void )
  51457. {
  51458. 8015318: b480 push {r7}
  51459. 801531a: b083 sub sp, #12
  51460. 801531c: af00 add r7, sp, #0
  51461. __asm volatile
  51462. 801531e: f04f 0350 mov.w r3, #80 @ 0x50
  51463. 8015322: f383 8811 msr BASEPRI, r3
  51464. 8015326: f3bf 8f6f isb sy
  51465. 801532a: f3bf 8f4f dsb sy
  51466. 801532e: 607b str r3, [r7, #4]
  51467. }
  51468. 8015330: bf00 nop
  51469. portDISABLE_INTERRUPTS();
  51470. uxCriticalNesting++;
  51471. 8015332: 4b10 ldr r3, [pc, #64] @ (8015374 <vPortEnterCritical+0x5c>)
  51472. 8015334: 681b ldr r3, [r3, #0]
  51473. 8015336: 3301 adds r3, #1
  51474. 8015338: 4a0e ldr r2, [pc, #56] @ (8015374 <vPortEnterCritical+0x5c>)
  51475. 801533a: 6013 str r3, [r2, #0]
  51476. /* This is not the interrupt safe version of the enter critical function so
  51477. assert() if it is being called from an interrupt context. Only API
  51478. functions that end in "FromISR" can be used in an interrupt. Only assert if
  51479. the critical nesting count is 1 to protect against recursive calls if the
  51480. assert function also uses a critical section. */
  51481. if( uxCriticalNesting == 1 )
  51482. 801533c: 4b0d ldr r3, [pc, #52] @ (8015374 <vPortEnterCritical+0x5c>)
  51483. 801533e: 681b ldr r3, [r3, #0]
  51484. 8015340: 2b01 cmp r3, #1
  51485. 8015342: d110 bne.n 8015366 <vPortEnterCritical+0x4e>
  51486. {
  51487. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  51488. 8015344: 4b0c ldr r3, [pc, #48] @ (8015378 <vPortEnterCritical+0x60>)
  51489. 8015346: 681b ldr r3, [r3, #0]
  51490. 8015348: b2db uxtb r3, r3
  51491. 801534a: 2b00 cmp r3, #0
  51492. 801534c: d00b beq.n 8015366 <vPortEnterCritical+0x4e>
  51493. __asm volatile
  51494. 801534e: f04f 0350 mov.w r3, #80 @ 0x50
  51495. 8015352: f383 8811 msr BASEPRI, r3
  51496. 8015356: f3bf 8f6f isb sy
  51497. 801535a: f3bf 8f4f dsb sy
  51498. 801535e: 603b str r3, [r7, #0]
  51499. }
  51500. 8015360: bf00 nop
  51501. 8015362: bf00 nop
  51502. 8015364: e7fd b.n 8015362 <vPortEnterCritical+0x4a>
  51503. }
  51504. }
  51505. 8015366: bf00 nop
  51506. 8015368: 370c adds r7, #12
  51507. 801536a: 46bd mov sp, r7
  51508. 801536c: f85d 7b04 ldr.w r7, [sp], #4
  51509. 8015370: 4770 bx lr
  51510. 8015372: bf00 nop
  51511. 8015374: 24000048 .word 0x24000048
  51512. 8015378: e000ed04 .word 0xe000ed04
  51513. 0801537c <vPortExitCritical>:
  51514. /*-----------------------------------------------------------*/
  51515. void vPortExitCritical( void )
  51516. {
  51517. 801537c: b480 push {r7}
  51518. 801537e: b083 sub sp, #12
  51519. 8015380: af00 add r7, sp, #0
  51520. configASSERT( uxCriticalNesting );
  51521. 8015382: 4b12 ldr r3, [pc, #72] @ (80153cc <vPortExitCritical+0x50>)
  51522. 8015384: 681b ldr r3, [r3, #0]
  51523. 8015386: 2b00 cmp r3, #0
  51524. 8015388: d10b bne.n 80153a2 <vPortExitCritical+0x26>
  51525. __asm volatile
  51526. 801538a: f04f 0350 mov.w r3, #80 @ 0x50
  51527. 801538e: f383 8811 msr BASEPRI, r3
  51528. 8015392: f3bf 8f6f isb sy
  51529. 8015396: f3bf 8f4f dsb sy
  51530. 801539a: 607b str r3, [r7, #4]
  51531. }
  51532. 801539c: bf00 nop
  51533. 801539e: bf00 nop
  51534. 80153a0: e7fd b.n 801539e <vPortExitCritical+0x22>
  51535. uxCriticalNesting--;
  51536. 80153a2: 4b0a ldr r3, [pc, #40] @ (80153cc <vPortExitCritical+0x50>)
  51537. 80153a4: 681b ldr r3, [r3, #0]
  51538. 80153a6: 3b01 subs r3, #1
  51539. 80153a8: 4a08 ldr r2, [pc, #32] @ (80153cc <vPortExitCritical+0x50>)
  51540. 80153aa: 6013 str r3, [r2, #0]
  51541. if( uxCriticalNesting == 0 )
  51542. 80153ac: 4b07 ldr r3, [pc, #28] @ (80153cc <vPortExitCritical+0x50>)
  51543. 80153ae: 681b ldr r3, [r3, #0]
  51544. 80153b0: 2b00 cmp r3, #0
  51545. 80153b2: d105 bne.n 80153c0 <vPortExitCritical+0x44>
  51546. 80153b4: 2300 movs r3, #0
  51547. 80153b6: 603b str r3, [r7, #0]
  51548. __asm volatile
  51549. 80153b8: 683b ldr r3, [r7, #0]
  51550. 80153ba: f383 8811 msr BASEPRI, r3
  51551. }
  51552. 80153be: bf00 nop
  51553. {
  51554. portENABLE_INTERRUPTS();
  51555. }
  51556. }
  51557. 80153c0: bf00 nop
  51558. 80153c2: 370c adds r7, #12
  51559. 80153c4: 46bd mov sp, r7
  51560. 80153c6: f85d 7b04 ldr.w r7, [sp], #4
  51561. 80153ca: 4770 bx lr
  51562. 80153cc: 24000048 .word 0x24000048
  51563. 080153d0 <PendSV_Handler>:
  51564. void xPortPendSVHandler( void )
  51565. {
  51566. /* This is a naked function. */
  51567. __asm volatile
  51568. 80153d0: f3ef 8009 mrs r0, PSP
  51569. 80153d4: f3bf 8f6f isb sy
  51570. 80153d8: 4b15 ldr r3, [pc, #84] @ (8015430 <pxCurrentTCBConst>)
  51571. 80153da: 681a ldr r2, [r3, #0]
  51572. 80153dc: f01e 0f10 tst.w lr, #16
  51573. 80153e0: bf08 it eq
  51574. 80153e2: ed20 8a10 vstmdbeq r0!, {s16-s31}
  51575. 80153e6: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  51576. 80153ea: 6010 str r0, [r2, #0]
  51577. 80153ec: e92d 0009 stmdb sp!, {r0, r3}
  51578. 80153f0: f04f 0050 mov.w r0, #80 @ 0x50
  51579. 80153f4: f380 8811 msr BASEPRI, r0
  51580. 80153f8: f3bf 8f4f dsb sy
  51581. 80153fc: f3bf 8f6f isb sy
  51582. 8015400: f7fe fb68 bl 8013ad4 <vTaskSwitchContext>
  51583. 8015404: f04f 0000 mov.w r0, #0
  51584. 8015408: f380 8811 msr BASEPRI, r0
  51585. 801540c: bc09 pop {r0, r3}
  51586. 801540e: 6819 ldr r1, [r3, #0]
  51587. 8015410: 6808 ldr r0, [r1, #0]
  51588. 8015412: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  51589. 8015416: f01e 0f10 tst.w lr, #16
  51590. 801541a: bf08 it eq
  51591. 801541c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  51592. 8015420: f380 8809 msr PSP, r0
  51593. 8015424: f3bf 8f6f isb sy
  51594. 8015428: 4770 bx lr
  51595. 801542a: bf00 nop
  51596. 801542c: f3af 8000 nop.w
  51597. 08015430 <pxCurrentTCBConst>:
  51598. 8015430: 24003d60 .word 0x24003d60
  51599. " \n"
  51600. " .align 4 \n"
  51601. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  51602. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  51603. );
  51604. }
  51605. 8015434: bf00 nop
  51606. 8015436: bf00 nop
  51607. 08015438 <xPortSysTickHandler>:
  51608. /*-----------------------------------------------------------*/
  51609. void xPortSysTickHandler( void )
  51610. {
  51611. 8015438: b580 push {r7, lr}
  51612. 801543a: b082 sub sp, #8
  51613. 801543c: af00 add r7, sp, #0
  51614. __asm volatile
  51615. 801543e: f04f 0350 mov.w r3, #80 @ 0x50
  51616. 8015442: f383 8811 msr BASEPRI, r3
  51617. 8015446: f3bf 8f6f isb sy
  51618. 801544a: f3bf 8f4f dsb sy
  51619. 801544e: 607b str r3, [r7, #4]
  51620. }
  51621. 8015450: bf00 nop
  51622. save and then restore the interrupt mask value as its value is already
  51623. known. */
  51624. portDISABLE_INTERRUPTS();
  51625. {
  51626. /* Increment the RTOS tick. */
  51627. if( xTaskIncrementTick() != pdFALSE )
  51628. 8015452: f7fe fa85 bl 8013960 <xTaskIncrementTick>
  51629. 8015456: 4603 mov r3, r0
  51630. 8015458: 2b00 cmp r3, #0
  51631. 801545a: d003 beq.n 8015464 <xPortSysTickHandler+0x2c>
  51632. {
  51633. /* A context switch is required. Context switching is performed in
  51634. the PendSV interrupt. Pend the PendSV interrupt. */
  51635. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  51636. 801545c: 4b06 ldr r3, [pc, #24] @ (8015478 <xPortSysTickHandler+0x40>)
  51637. 801545e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51638. 8015462: 601a str r2, [r3, #0]
  51639. 8015464: 2300 movs r3, #0
  51640. 8015466: 603b str r3, [r7, #0]
  51641. __asm volatile
  51642. 8015468: 683b ldr r3, [r7, #0]
  51643. 801546a: f383 8811 msr BASEPRI, r3
  51644. }
  51645. 801546e: bf00 nop
  51646. }
  51647. }
  51648. portENABLE_INTERRUPTS();
  51649. }
  51650. 8015470: bf00 nop
  51651. 8015472: 3708 adds r7, #8
  51652. 8015474: 46bd mov sp, r7
  51653. 8015476: bd80 pop {r7, pc}
  51654. 8015478: e000ed04 .word 0xe000ed04
  51655. 0801547c <vPortSetupTimerInterrupt>:
  51656. /*
  51657. * Setup the systick timer to generate the tick interrupts at the required
  51658. * frequency.
  51659. */
  51660. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  51661. {
  51662. 801547c: b480 push {r7}
  51663. 801547e: af00 add r7, sp, #0
  51664. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  51665. }
  51666. #endif /* configUSE_TICKLESS_IDLE */
  51667. /* Stop and clear the SysTick. */
  51668. portNVIC_SYSTICK_CTRL_REG = 0UL;
  51669. 8015480: 4b0b ldr r3, [pc, #44] @ (80154b0 <vPortSetupTimerInterrupt+0x34>)
  51670. 8015482: 2200 movs r2, #0
  51671. 8015484: 601a str r2, [r3, #0]
  51672. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  51673. 8015486: 4b0b ldr r3, [pc, #44] @ (80154b4 <vPortSetupTimerInterrupt+0x38>)
  51674. 8015488: 2200 movs r2, #0
  51675. 801548a: 601a str r2, [r3, #0]
  51676. /* Configure SysTick to interrupt at the requested rate. */
  51677. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  51678. 801548c: 4b0a ldr r3, [pc, #40] @ (80154b8 <vPortSetupTimerInterrupt+0x3c>)
  51679. 801548e: 681b ldr r3, [r3, #0]
  51680. 8015490: 4a0a ldr r2, [pc, #40] @ (80154bc <vPortSetupTimerInterrupt+0x40>)
  51681. 8015492: fba2 2303 umull r2, r3, r2, r3
  51682. 8015496: 099b lsrs r3, r3, #6
  51683. 8015498: 4a09 ldr r2, [pc, #36] @ (80154c0 <vPortSetupTimerInterrupt+0x44>)
  51684. 801549a: 3b01 subs r3, #1
  51685. 801549c: 6013 str r3, [r2, #0]
  51686. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  51687. 801549e: 4b04 ldr r3, [pc, #16] @ (80154b0 <vPortSetupTimerInterrupt+0x34>)
  51688. 80154a0: 2207 movs r2, #7
  51689. 80154a2: 601a str r2, [r3, #0]
  51690. }
  51691. 80154a4: bf00 nop
  51692. 80154a6: 46bd mov sp, r7
  51693. 80154a8: f85d 7b04 ldr.w r7, [sp], #4
  51694. 80154ac: 4770 bx lr
  51695. 80154ae: bf00 nop
  51696. 80154b0: e000e010 .word 0xe000e010
  51697. 80154b4: e000e018 .word 0xe000e018
  51698. 80154b8: 2400000c .word 0x2400000c
  51699. 80154bc: 10624dd3 .word 0x10624dd3
  51700. 80154c0: e000e014 .word 0xe000e014
  51701. 080154c4 <vPortEnableVFP>:
  51702. /*-----------------------------------------------------------*/
  51703. /* This is a naked function. */
  51704. static void vPortEnableVFP( void )
  51705. {
  51706. __asm volatile
  51707. 80154c4: f8df 000c ldr.w r0, [pc, #12] @ 80154d4 <vPortEnableVFP+0x10>
  51708. 80154c8: 6801 ldr r1, [r0, #0]
  51709. 80154ca: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  51710. 80154ce: 6001 str r1, [r0, #0]
  51711. 80154d0: 4770 bx lr
  51712. " \n"
  51713. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  51714. " str r1, [r0] \n"
  51715. " bx r14 "
  51716. );
  51717. }
  51718. 80154d2: bf00 nop
  51719. 80154d4: e000ed88 .word 0xe000ed88
  51720. 080154d8 <vPortValidateInterruptPriority>:
  51721. /*-----------------------------------------------------------*/
  51722. #if( configASSERT_DEFINED == 1 )
  51723. void vPortValidateInterruptPriority( void )
  51724. {
  51725. 80154d8: b480 push {r7}
  51726. 80154da: b085 sub sp, #20
  51727. 80154dc: af00 add r7, sp, #0
  51728. uint32_t ulCurrentInterrupt;
  51729. uint8_t ucCurrentPriority;
  51730. /* Obtain the number of the currently executing interrupt. */
  51731. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  51732. 80154de: f3ef 8305 mrs r3, IPSR
  51733. 80154e2: 60fb str r3, [r7, #12]
  51734. /* Is the interrupt number a user defined interrupt? */
  51735. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  51736. 80154e4: 68fb ldr r3, [r7, #12]
  51737. 80154e6: 2b0f cmp r3, #15
  51738. 80154e8: d915 bls.n 8015516 <vPortValidateInterruptPriority+0x3e>
  51739. {
  51740. /* Look up the interrupt's priority. */
  51741. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  51742. 80154ea: 4a18 ldr r2, [pc, #96] @ (801554c <vPortValidateInterruptPriority+0x74>)
  51743. 80154ec: 68fb ldr r3, [r7, #12]
  51744. 80154ee: 4413 add r3, r2
  51745. 80154f0: 781b ldrb r3, [r3, #0]
  51746. 80154f2: 72fb strb r3, [r7, #11]
  51747. interrupt entry is as fast and simple as possible.
  51748. The following links provide detailed information:
  51749. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  51750. http://www.freertos.org/FAQHelp.html */
  51751. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  51752. 80154f4: 4b16 ldr r3, [pc, #88] @ (8015550 <vPortValidateInterruptPriority+0x78>)
  51753. 80154f6: 781b ldrb r3, [r3, #0]
  51754. 80154f8: 7afa ldrb r2, [r7, #11]
  51755. 80154fa: 429a cmp r2, r3
  51756. 80154fc: d20b bcs.n 8015516 <vPortValidateInterruptPriority+0x3e>
  51757. __asm volatile
  51758. 80154fe: f04f 0350 mov.w r3, #80 @ 0x50
  51759. 8015502: f383 8811 msr BASEPRI, r3
  51760. 8015506: f3bf 8f6f isb sy
  51761. 801550a: f3bf 8f4f dsb sy
  51762. 801550e: 607b str r3, [r7, #4]
  51763. }
  51764. 8015510: bf00 nop
  51765. 8015512: bf00 nop
  51766. 8015514: e7fd b.n 8015512 <vPortValidateInterruptPriority+0x3a>
  51767. configuration then the correct setting can be achieved on all Cortex-M
  51768. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  51769. scheduler. Note however that some vendor specific peripheral libraries
  51770. assume a non-zero priority group setting, in which cases using a value
  51771. of zero will result in unpredictable behaviour. */
  51772. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  51773. 8015516: 4b0f ldr r3, [pc, #60] @ (8015554 <vPortValidateInterruptPriority+0x7c>)
  51774. 8015518: 681b ldr r3, [r3, #0]
  51775. 801551a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  51776. 801551e: 4b0e ldr r3, [pc, #56] @ (8015558 <vPortValidateInterruptPriority+0x80>)
  51777. 8015520: 681b ldr r3, [r3, #0]
  51778. 8015522: 429a cmp r2, r3
  51779. 8015524: d90b bls.n 801553e <vPortValidateInterruptPriority+0x66>
  51780. __asm volatile
  51781. 8015526: f04f 0350 mov.w r3, #80 @ 0x50
  51782. 801552a: f383 8811 msr BASEPRI, r3
  51783. 801552e: f3bf 8f6f isb sy
  51784. 8015532: f3bf 8f4f dsb sy
  51785. 8015536: 603b str r3, [r7, #0]
  51786. }
  51787. 8015538: bf00 nop
  51788. 801553a: bf00 nop
  51789. 801553c: e7fd b.n 801553a <vPortValidateInterruptPriority+0x62>
  51790. }
  51791. 801553e: bf00 nop
  51792. 8015540: 3714 adds r7, #20
  51793. 8015542: 46bd mov sp, r7
  51794. 8015544: f85d 7b04 ldr.w r7, [sp], #4
  51795. 8015548: 4770 bx lr
  51796. 801554a: bf00 nop
  51797. 801554c: e000e3f0 .word 0xe000e3f0
  51798. 8015550: 2400438c .word 0x2400438c
  51799. 8015554: e000ed0c .word 0xe000ed0c
  51800. 8015558: 24004390 .word 0x24004390
  51801. 0801555c <pvPortMalloc>:
  51802. static size_t xBlockAllocatedBit = 0;
  51803. /*-----------------------------------------------------------*/
  51804. void *pvPortMalloc( size_t xWantedSize )
  51805. {
  51806. 801555c: b580 push {r7, lr}
  51807. 801555e: b08a sub sp, #40 @ 0x28
  51808. 8015560: af00 add r7, sp, #0
  51809. 8015562: 6078 str r0, [r7, #4]
  51810. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  51811. void *pvReturn = NULL;
  51812. 8015564: 2300 movs r3, #0
  51813. 8015566: 61fb str r3, [r7, #28]
  51814. vTaskSuspendAll();
  51815. 8015568: f7fe f92c bl 80137c4 <vTaskSuspendAll>
  51816. {
  51817. /* If this is the first call to malloc then the heap will require
  51818. initialisation to setup the list of free blocks. */
  51819. if( pxEnd == NULL )
  51820. 801556c: 4b5c ldr r3, [pc, #368] @ (80156e0 <pvPortMalloc+0x184>)
  51821. 801556e: 681b ldr r3, [r3, #0]
  51822. 8015570: 2b00 cmp r3, #0
  51823. 8015572: d101 bne.n 8015578 <pvPortMalloc+0x1c>
  51824. {
  51825. prvHeapInit();
  51826. 8015574: f000 f924 bl 80157c0 <prvHeapInit>
  51827. /* Check the requested block size is not so large that the top bit is
  51828. set. The top bit of the block size member of the BlockLink_t structure
  51829. is used to determine who owns the block - the application or the
  51830. kernel, so it must be free. */
  51831. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  51832. 8015578: 4b5a ldr r3, [pc, #360] @ (80156e4 <pvPortMalloc+0x188>)
  51833. 801557a: 681a ldr r2, [r3, #0]
  51834. 801557c: 687b ldr r3, [r7, #4]
  51835. 801557e: 4013 ands r3, r2
  51836. 8015580: 2b00 cmp r3, #0
  51837. 8015582: f040 8095 bne.w 80156b0 <pvPortMalloc+0x154>
  51838. {
  51839. /* The wanted size is increased so it can contain a BlockLink_t
  51840. structure in addition to the requested amount of bytes. */
  51841. if( xWantedSize > 0 )
  51842. 8015586: 687b ldr r3, [r7, #4]
  51843. 8015588: 2b00 cmp r3, #0
  51844. 801558a: d01e beq.n 80155ca <pvPortMalloc+0x6e>
  51845. {
  51846. xWantedSize += xHeapStructSize;
  51847. 801558c: 2208 movs r2, #8
  51848. 801558e: 687b ldr r3, [r7, #4]
  51849. 8015590: 4413 add r3, r2
  51850. 8015592: 607b str r3, [r7, #4]
  51851. /* Ensure that blocks are always aligned to the required number
  51852. of bytes. */
  51853. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  51854. 8015594: 687b ldr r3, [r7, #4]
  51855. 8015596: f003 0307 and.w r3, r3, #7
  51856. 801559a: 2b00 cmp r3, #0
  51857. 801559c: d015 beq.n 80155ca <pvPortMalloc+0x6e>
  51858. {
  51859. /* Byte alignment required. */
  51860. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  51861. 801559e: 687b ldr r3, [r7, #4]
  51862. 80155a0: f023 0307 bic.w r3, r3, #7
  51863. 80155a4: 3308 adds r3, #8
  51864. 80155a6: 607b str r3, [r7, #4]
  51865. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  51866. 80155a8: 687b ldr r3, [r7, #4]
  51867. 80155aa: f003 0307 and.w r3, r3, #7
  51868. 80155ae: 2b00 cmp r3, #0
  51869. 80155b0: d00b beq.n 80155ca <pvPortMalloc+0x6e>
  51870. __asm volatile
  51871. 80155b2: f04f 0350 mov.w r3, #80 @ 0x50
  51872. 80155b6: f383 8811 msr BASEPRI, r3
  51873. 80155ba: f3bf 8f6f isb sy
  51874. 80155be: f3bf 8f4f dsb sy
  51875. 80155c2: 617b str r3, [r7, #20]
  51876. }
  51877. 80155c4: bf00 nop
  51878. 80155c6: bf00 nop
  51879. 80155c8: e7fd b.n 80155c6 <pvPortMalloc+0x6a>
  51880. else
  51881. {
  51882. mtCOVERAGE_TEST_MARKER();
  51883. }
  51884. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  51885. 80155ca: 687b ldr r3, [r7, #4]
  51886. 80155cc: 2b00 cmp r3, #0
  51887. 80155ce: d06f beq.n 80156b0 <pvPortMalloc+0x154>
  51888. 80155d0: 4b45 ldr r3, [pc, #276] @ (80156e8 <pvPortMalloc+0x18c>)
  51889. 80155d2: 681b ldr r3, [r3, #0]
  51890. 80155d4: 687a ldr r2, [r7, #4]
  51891. 80155d6: 429a cmp r2, r3
  51892. 80155d8: d86a bhi.n 80156b0 <pvPortMalloc+0x154>
  51893. {
  51894. /* Traverse the list from the start (lowest address) block until
  51895. one of adequate size is found. */
  51896. pxPreviousBlock = &xStart;
  51897. 80155da: 4b44 ldr r3, [pc, #272] @ (80156ec <pvPortMalloc+0x190>)
  51898. 80155dc: 623b str r3, [r7, #32]
  51899. pxBlock = xStart.pxNextFreeBlock;
  51900. 80155de: 4b43 ldr r3, [pc, #268] @ (80156ec <pvPortMalloc+0x190>)
  51901. 80155e0: 681b ldr r3, [r3, #0]
  51902. 80155e2: 627b str r3, [r7, #36] @ 0x24
  51903. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  51904. 80155e4: e004 b.n 80155f0 <pvPortMalloc+0x94>
  51905. {
  51906. pxPreviousBlock = pxBlock;
  51907. 80155e6: 6a7b ldr r3, [r7, #36] @ 0x24
  51908. 80155e8: 623b str r3, [r7, #32]
  51909. pxBlock = pxBlock->pxNextFreeBlock;
  51910. 80155ea: 6a7b ldr r3, [r7, #36] @ 0x24
  51911. 80155ec: 681b ldr r3, [r3, #0]
  51912. 80155ee: 627b str r3, [r7, #36] @ 0x24
  51913. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  51914. 80155f0: 6a7b ldr r3, [r7, #36] @ 0x24
  51915. 80155f2: 685b ldr r3, [r3, #4]
  51916. 80155f4: 687a ldr r2, [r7, #4]
  51917. 80155f6: 429a cmp r2, r3
  51918. 80155f8: d903 bls.n 8015602 <pvPortMalloc+0xa6>
  51919. 80155fa: 6a7b ldr r3, [r7, #36] @ 0x24
  51920. 80155fc: 681b ldr r3, [r3, #0]
  51921. 80155fe: 2b00 cmp r3, #0
  51922. 8015600: d1f1 bne.n 80155e6 <pvPortMalloc+0x8a>
  51923. }
  51924. /* If the end marker was reached then a block of adequate size
  51925. was not found. */
  51926. if( pxBlock != pxEnd )
  51927. 8015602: 4b37 ldr r3, [pc, #220] @ (80156e0 <pvPortMalloc+0x184>)
  51928. 8015604: 681b ldr r3, [r3, #0]
  51929. 8015606: 6a7a ldr r2, [r7, #36] @ 0x24
  51930. 8015608: 429a cmp r2, r3
  51931. 801560a: d051 beq.n 80156b0 <pvPortMalloc+0x154>
  51932. {
  51933. /* Return the memory space pointed to - jumping over the
  51934. BlockLink_t structure at its start. */
  51935. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  51936. 801560c: 6a3b ldr r3, [r7, #32]
  51937. 801560e: 681b ldr r3, [r3, #0]
  51938. 8015610: 2208 movs r2, #8
  51939. 8015612: 4413 add r3, r2
  51940. 8015614: 61fb str r3, [r7, #28]
  51941. /* This block is being returned for use so must be taken out
  51942. of the list of free blocks. */
  51943. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  51944. 8015616: 6a7b ldr r3, [r7, #36] @ 0x24
  51945. 8015618: 681a ldr r2, [r3, #0]
  51946. 801561a: 6a3b ldr r3, [r7, #32]
  51947. 801561c: 601a str r2, [r3, #0]
  51948. /* If the block is larger than required it can be split into
  51949. two. */
  51950. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  51951. 801561e: 6a7b ldr r3, [r7, #36] @ 0x24
  51952. 8015620: 685a ldr r2, [r3, #4]
  51953. 8015622: 687b ldr r3, [r7, #4]
  51954. 8015624: 1ad2 subs r2, r2, r3
  51955. 8015626: 2308 movs r3, #8
  51956. 8015628: 005b lsls r3, r3, #1
  51957. 801562a: 429a cmp r2, r3
  51958. 801562c: d920 bls.n 8015670 <pvPortMalloc+0x114>
  51959. {
  51960. /* This block is to be split into two. Create a new
  51961. block following the number of bytes requested. The void
  51962. cast is used to prevent byte alignment warnings from the
  51963. compiler. */
  51964. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  51965. 801562e: 6a7a ldr r2, [r7, #36] @ 0x24
  51966. 8015630: 687b ldr r3, [r7, #4]
  51967. 8015632: 4413 add r3, r2
  51968. 8015634: 61bb str r3, [r7, #24]
  51969. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  51970. 8015636: 69bb ldr r3, [r7, #24]
  51971. 8015638: f003 0307 and.w r3, r3, #7
  51972. 801563c: 2b00 cmp r3, #0
  51973. 801563e: d00b beq.n 8015658 <pvPortMalloc+0xfc>
  51974. __asm volatile
  51975. 8015640: f04f 0350 mov.w r3, #80 @ 0x50
  51976. 8015644: f383 8811 msr BASEPRI, r3
  51977. 8015648: f3bf 8f6f isb sy
  51978. 801564c: f3bf 8f4f dsb sy
  51979. 8015650: 613b str r3, [r7, #16]
  51980. }
  51981. 8015652: bf00 nop
  51982. 8015654: bf00 nop
  51983. 8015656: e7fd b.n 8015654 <pvPortMalloc+0xf8>
  51984. /* Calculate the sizes of two blocks split from the
  51985. single block. */
  51986. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  51987. 8015658: 6a7b ldr r3, [r7, #36] @ 0x24
  51988. 801565a: 685a ldr r2, [r3, #4]
  51989. 801565c: 687b ldr r3, [r7, #4]
  51990. 801565e: 1ad2 subs r2, r2, r3
  51991. 8015660: 69bb ldr r3, [r7, #24]
  51992. 8015662: 605a str r2, [r3, #4]
  51993. pxBlock->xBlockSize = xWantedSize;
  51994. 8015664: 6a7b ldr r3, [r7, #36] @ 0x24
  51995. 8015666: 687a ldr r2, [r7, #4]
  51996. 8015668: 605a str r2, [r3, #4]
  51997. /* Insert the new block into the list of free blocks. */
  51998. prvInsertBlockIntoFreeList( pxNewBlockLink );
  51999. 801566a: 69b8 ldr r0, [r7, #24]
  52000. 801566c: f000 f90a bl 8015884 <prvInsertBlockIntoFreeList>
  52001. else
  52002. {
  52003. mtCOVERAGE_TEST_MARKER();
  52004. }
  52005. xFreeBytesRemaining -= pxBlock->xBlockSize;
  52006. 8015670: 4b1d ldr r3, [pc, #116] @ (80156e8 <pvPortMalloc+0x18c>)
  52007. 8015672: 681a ldr r2, [r3, #0]
  52008. 8015674: 6a7b ldr r3, [r7, #36] @ 0x24
  52009. 8015676: 685b ldr r3, [r3, #4]
  52010. 8015678: 1ad3 subs r3, r2, r3
  52011. 801567a: 4a1b ldr r2, [pc, #108] @ (80156e8 <pvPortMalloc+0x18c>)
  52012. 801567c: 6013 str r3, [r2, #0]
  52013. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  52014. 801567e: 4b1a ldr r3, [pc, #104] @ (80156e8 <pvPortMalloc+0x18c>)
  52015. 8015680: 681a ldr r2, [r3, #0]
  52016. 8015682: 4b1b ldr r3, [pc, #108] @ (80156f0 <pvPortMalloc+0x194>)
  52017. 8015684: 681b ldr r3, [r3, #0]
  52018. 8015686: 429a cmp r2, r3
  52019. 8015688: d203 bcs.n 8015692 <pvPortMalloc+0x136>
  52020. {
  52021. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  52022. 801568a: 4b17 ldr r3, [pc, #92] @ (80156e8 <pvPortMalloc+0x18c>)
  52023. 801568c: 681b ldr r3, [r3, #0]
  52024. 801568e: 4a18 ldr r2, [pc, #96] @ (80156f0 <pvPortMalloc+0x194>)
  52025. 8015690: 6013 str r3, [r2, #0]
  52026. mtCOVERAGE_TEST_MARKER();
  52027. }
  52028. /* The block is being returned - it is allocated and owned
  52029. by the application and has no "next" block. */
  52030. pxBlock->xBlockSize |= xBlockAllocatedBit;
  52031. 8015692: 6a7b ldr r3, [r7, #36] @ 0x24
  52032. 8015694: 685a ldr r2, [r3, #4]
  52033. 8015696: 4b13 ldr r3, [pc, #76] @ (80156e4 <pvPortMalloc+0x188>)
  52034. 8015698: 681b ldr r3, [r3, #0]
  52035. 801569a: 431a orrs r2, r3
  52036. 801569c: 6a7b ldr r3, [r7, #36] @ 0x24
  52037. 801569e: 605a str r2, [r3, #4]
  52038. pxBlock->pxNextFreeBlock = NULL;
  52039. 80156a0: 6a7b ldr r3, [r7, #36] @ 0x24
  52040. 80156a2: 2200 movs r2, #0
  52041. 80156a4: 601a str r2, [r3, #0]
  52042. xNumberOfSuccessfulAllocations++;
  52043. 80156a6: 4b13 ldr r3, [pc, #76] @ (80156f4 <pvPortMalloc+0x198>)
  52044. 80156a8: 681b ldr r3, [r3, #0]
  52045. 80156aa: 3301 adds r3, #1
  52046. 80156ac: 4a11 ldr r2, [pc, #68] @ (80156f4 <pvPortMalloc+0x198>)
  52047. 80156ae: 6013 str r3, [r2, #0]
  52048. mtCOVERAGE_TEST_MARKER();
  52049. }
  52050. traceMALLOC( pvReturn, xWantedSize );
  52051. }
  52052. ( void ) xTaskResumeAll();
  52053. 80156b0: f7fe f896 bl 80137e0 <xTaskResumeAll>
  52054. mtCOVERAGE_TEST_MARKER();
  52055. }
  52056. }
  52057. #endif
  52058. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  52059. 80156b4: 69fb ldr r3, [r7, #28]
  52060. 80156b6: f003 0307 and.w r3, r3, #7
  52061. 80156ba: 2b00 cmp r3, #0
  52062. 80156bc: d00b beq.n 80156d6 <pvPortMalloc+0x17a>
  52063. __asm volatile
  52064. 80156be: f04f 0350 mov.w r3, #80 @ 0x50
  52065. 80156c2: f383 8811 msr BASEPRI, r3
  52066. 80156c6: f3bf 8f6f isb sy
  52067. 80156ca: f3bf 8f4f dsb sy
  52068. 80156ce: 60fb str r3, [r7, #12]
  52069. }
  52070. 80156d0: bf00 nop
  52071. 80156d2: bf00 nop
  52072. 80156d4: e7fd b.n 80156d2 <pvPortMalloc+0x176>
  52073. return pvReturn;
  52074. 80156d6: 69fb ldr r3, [r7, #28]
  52075. }
  52076. 80156d8: 4618 mov r0, r3
  52077. 80156da: 3728 adds r7, #40 @ 0x28
  52078. 80156dc: 46bd mov sp, r7
  52079. 80156de: bd80 pop {r7, pc}
  52080. 80156e0: 2402439c .word 0x2402439c
  52081. 80156e4: 240243b0 .word 0x240243b0
  52082. 80156e8: 240243a0 .word 0x240243a0
  52083. 80156ec: 24024394 .word 0x24024394
  52084. 80156f0: 240243a4 .word 0x240243a4
  52085. 80156f4: 240243a8 .word 0x240243a8
  52086. 080156f8 <vPortFree>:
  52087. /*-----------------------------------------------------------*/
  52088. void vPortFree( void *pv )
  52089. {
  52090. 80156f8: b580 push {r7, lr}
  52091. 80156fa: b086 sub sp, #24
  52092. 80156fc: af00 add r7, sp, #0
  52093. 80156fe: 6078 str r0, [r7, #4]
  52094. uint8_t *puc = ( uint8_t * ) pv;
  52095. 8015700: 687b ldr r3, [r7, #4]
  52096. 8015702: 617b str r3, [r7, #20]
  52097. BlockLink_t *pxLink;
  52098. if( pv != NULL )
  52099. 8015704: 687b ldr r3, [r7, #4]
  52100. 8015706: 2b00 cmp r3, #0
  52101. 8015708: d04f beq.n 80157aa <vPortFree+0xb2>
  52102. {
  52103. /* The memory being freed will have an BlockLink_t structure immediately
  52104. before it. */
  52105. puc -= xHeapStructSize;
  52106. 801570a: 2308 movs r3, #8
  52107. 801570c: 425b negs r3, r3
  52108. 801570e: 697a ldr r2, [r7, #20]
  52109. 8015710: 4413 add r3, r2
  52110. 8015712: 617b str r3, [r7, #20]
  52111. /* This casting is to keep the compiler from issuing warnings. */
  52112. pxLink = ( void * ) puc;
  52113. 8015714: 697b ldr r3, [r7, #20]
  52114. 8015716: 613b str r3, [r7, #16]
  52115. /* Check the block is actually allocated. */
  52116. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  52117. 8015718: 693b ldr r3, [r7, #16]
  52118. 801571a: 685a ldr r2, [r3, #4]
  52119. 801571c: 4b25 ldr r3, [pc, #148] @ (80157b4 <vPortFree+0xbc>)
  52120. 801571e: 681b ldr r3, [r3, #0]
  52121. 8015720: 4013 ands r3, r2
  52122. 8015722: 2b00 cmp r3, #0
  52123. 8015724: d10b bne.n 801573e <vPortFree+0x46>
  52124. __asm volatile
  52125. 8015726: f04f 0350 mov.w r3, #80 @ 0x50
  52126. 801572a: f383 8811 msr BASEPRI, r3
  52127. 801572e: f3bf 8f6f isb sy
  52128. 8015732: f3bf 8f4f dsb sy
  52129. 8015736: 60fb str r3, [r7, #12]
  52130. }
  52131. 8015738: bf00 nop
  52132. 801573a: bf00 nop
  52133. 801573c: e7fd b.n 801573a <vPortFree+0x42>
  52134. configASSERT( pxLink->pxNextFreeBlock == NULL );
  52135. 801573e: 693b ldr r3, [r7, #16]
  52136. 8015740: 681b ldr r3, [r3, #0]
  52137. 8015742: 2b00 cmp r3, #0
  52138. 8015744: d00b beq.n 801575e <vPortFree+0x66>
  52139. __asm volatile
  52140. 8015746: f04f 0350 mov.w r3, #80 @ 0x50
  52141. 801574a: f383 8811 msr BASEPRI, r3
  52142. 801574e: f3bf 8f6f isb sy
  52143. 8015752: f3bf 8f4f dsb sy
  52144. 8015756: 60bb str r3, [r7, #8]
  52145. }
  52146. 8015758: bf00 nop
  52147. 801575a: bf00 nop
  52148. 801575c: e7fd b.n 801575a <vPortFree+0x62>
  52149. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  52150. 801575e: 693b ldr r3, [r7, #16]
  52151. 8015760: 685a ldr r2, [r3, #4]
  52152. 8015762: 4b14 ldr r3, [pc, #80] @ (80157b4 <vPortFree+0xbc>)
  52153. 8015764: 681b ldr r3, [r3, #0]
  52154. 8015766: 4013 ands r3, r2
  52155. 8015768: 2b00 cmp r3, #0
  52156. 801576a: d01e beq.n 80157aa <vPortFree+0xb2>
  52157. {
  52158. if( pxLink->pxNextFreeBlock == NULL )
  52159. 801576c: 693b ldr r3, [r7, #16]
  52160. 801576e: 681b ldr r3, [r3, #0]
  52161. 8015770: 2b00 cmp r3, #0
  52162. 8015772: d11a bne.n 80157aa <vPortFree+0xb2>
  52163. {
  52164. /* The block is being returned to the heap - it is no longer
  52165. allocated. */
  52166. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  52167. 8015774: 693b ldr r3, [r7, #16]
  52168. 8015776: 685a ldr r2, [r3, #4]
  52169. 8015778: 4b0e ldr r3, [pc, #56] @ (80157b4 <vPortFree+0xbc>)
  52170. 801577a: 681b ldr r3, [r3, #0]
  52171. 801577c: 43db mvns r3, r3
  52172. 801577e: 401a ands r2, r3
  52173. 8015780: 693b ldr r3, [r7, #16]
  52174. 8015782: 605a str r2, [r3, #4]
  52175. vTaskSuspendAll();
  52176. 8015784: f7fe f81e bl 80137c4 <vTaskSuspendAll>
  52177. {
  52178. /* Add this block to the list of free blocks. */
  52179. xFreeBytesRemaining += pxLink->xBlockSize;
  52180. 8015788: 693b ldr r3, [r7, #16]
  52181. 801578a: 685a ldr r2, [r3, #4]
  52182. 801578c: 4b0a ldr r3, [pc, #40] @ (80157b8 <vPortFree+0xc0>)
  52183. 801578e: 681b ldr r3, [r3, #0]
  52184. 8015790: 4413 add r3, r2
  52185. 8015792: 4a09 ldr r2, [pc, #36] @ (80157b8 <vPortFree+0xc0>)
  52186. 8015794: 6013 str r3, [r2, #0]
  52187. traceFREE( pv, pxLink->xBlockSize );
  52188. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  52189. 8015796: 6938 ldr r0, [r7, #16]
  52190. 8015798: f000 f874 bl 8015884 <prvInsertBlockIntoFreeList>
  52191. xNumberOfSuccessfulFrees++;
  52192. 801579c: 4b07 ldr r3, [pc, #28] @ (80157bc <vPortFree+0xc4>)
  52193. 801579e: 681b ldr r3, [r3, #0]
  52194. 80157a0: 3301 adds r3, #1
  52195. 80157a2: 4a06 ldr r2, [pc, #24] @ (80157bc <vPortFree+0xc4>)
  52196. 80157a4: 6013 str r3, [r2, #0]
  52197. }
  52198. ( void ) xTaskResumeAll();
  52199. 80157a6: f7fe f81b bl 80137e0 <xTaskResumeAll>
  52200. else
  52201. {
  52202. mtCOVERAGE_TEST_MARKER();
  52203. }
  52204. }
  52205. }
  52206. 80157aa: bf00 nop
  52207. 80157ac: 3718 adds r7, #24
  52208. 80157ae: 46bd mov sp, r7
  52209. 80157b0: bd80 pop {r7, pc}
  52210. 80157b2: bf00 nop
  52211. 80157b4: 240243b0 .word 0x240243b0
  52212. 80157b8: 240243a0 .word 0x240243a0
  52213. 80157bc: 240243ac .word 0x240243ac
  52214. 080157c0 <prvHeapInit>:
  52215. /* This just exists to keep the linker quiet. */
  52216. }
  52217. /*-----------------------------------------------------------*/
  52218. static void prvHeapInit( void )
  52219. {
  52220. 80157c0: b480 push {r7}
  52221. 80157c2: b085 sub sp, #20
  52222. 80157c4: af00 add r7, sp, #0
  52223. BlockLink_t *pxFirstFreeBlock;
  52224. uint8_t *pucAlignedHeap;
  52225. size_t uxAddress;
  52226. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  52227. 80157c6: f44f 3300 mov.w r3, #131072 @ 0x20000
  52228. 80157ca: 60bb str r3, [r7, #8]
  52229. /* Ensure the heap starts on a correctly aligned boundary. */
  52230. uxAddress = ( size_t ) ucHeap;
  52231. 80157cc: 4b27 ldr r3, [pc, #156] @ (801586c <prvHeapInit+0xac>)
  52232. 80157ce: 60fb str r3, [r7, #12]
  52233. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  52234. 80157d0: 68fb ldr r3, [r7, #12]
  52235. 80157d2: f003 0307 and.w r3, r3, #7
  52236. 80157d6: 2b00 cmp r3, #0
  52237. 80157d8: d00c beq.n 80157f4 <prvHeapInit+0x34>
  52238. {
  52239. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  52240. 80157da: 68fb ldr r3, [r7, #12]
  52241. 80157dc: 3307 adds r3, #7
  52242. 80157de: 60fb str r3, [r7, #12]
  52243. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  52244. 80157e0: 68fb ldr r3, [r7, #12]
  52245. 80157e2: f023 0307 bic.w r3, r3, #7
  52246. 80157e6: 60fb str r3, [r7, #12]
  52247. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  52248. 80157e8: 68ba ldr r2, [r7, #8]
  52249. 80157ea: 68fb ldr r3, [r7, #12]
  52250. 80157ec: 1ad3 subs r3, r2, r3
  52251. 80157ee: 4a1f ldr r2, [pc, #124] @ (801586c <prvHeapInit+0xac>)
  52252. 80157f0: 4413 add r3, r2
  52253. 80157f2: 60bb str r3, [r7, #8]
  52254. }
  52255. pucAlignedHeap = ( uint8_t * ) uxAddress;
  52256. 80157f4: 68fb ldr r3, [r7, #12]
  52257. 80157f6: 607b str r3, [r7, #4]
  52258. /* xStart is used to hold a pointer to the first item in the list of free
  52259. blocks. The void cast is used to prevent compiler warnings. */
  52260. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  52261. 80157f8: 4a1d ldr r2, [pc, #116] @ (8015870 <prvHeapInit+0xb0>)
  52262. 80157fa: 687b ldr r3, [r7, #4]
  52263. 80157fc: 6013 str r3, [r2, #0]
  52264. xStart.xBlockSize = ( size_t ) 0;
  52265. 80157fe: 4b1c ldr r3, [pc, #112] @ (8015870 <prvHeapInit+0xb0>)
  52266. 8015800: 2200 movs r2, #0
  52267. 8015802: 605a str r2, [r3, #4]
  52268. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  52269. at the end of the heap space. */
  52270. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  52271. 8015804: 687b ldr r3, [r7, #4]
  52272. 8015806: 68ba ldr r2, [r7, #8]
  52273. 8015808: 4413 add r3, r2
  52274. 801580a: 60fb str r3, [r7, #12]
  52275. uxAddress -= xHeapStructSize;
  52276. 801580c: 2208 movs r2, #8
  52277. 801580e: 68fb ldr r3, [r7, #12]
  52278. 8015810: 1a9b subs r3, r3, r2
  52279. 8015812: 60fb str r3, [r7, #12]
  52280. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  52281. 8015814: 68fb ldr r3, [r7, #12]
  52282. 8015816: f023 0307 bic.w r3, r3, #7
  52283. 801581a: 60fb str r3, [r7, #12]
  52284. pxEnd = ( void * ) uxAddress;
  52285. 801581c: 68fb ldr r3, [r7, #12]
  52286. 801581e: 4a15 ldr r2, [pc, #84] @ (8015874 <prvHeapInit+0xb4>)
  52287. 8015820: 6013 str r3, [r2, #0]
  52288. pxEnd->xBlockSize = 0;
  52289. 8015822: 4b14 ldr r3, [pc, #80] @ (8015874 <prvHeapInit+0xb4>)
  52290. 8015824: 681b ldr r3, [r3, #0]
  52291. 8015826: 2200 movs r2, #0
  52292. 8015828: 605a str r2, [r3, #4]
  52293. pxEnd->pxNextFreeBlock = NULL;
  52294. 801582a: 4b12 ldr r3, [pc, #72] @ (8015874 <prvHeapInit+0xb4>)
  52295. 801582c: 681b ldr r3, [r3, #0]
  52296. 801582e: 2200 movs r2, #0
  52297. 8015830: 601a str r2, [r3, #0]
  52298. /* To start with there is a single free block that is sized to take up the
  52299. entire heap space, minus the space taken by pxEnd. */
  52300. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  52301. 8015832: 687b ldr r3, [r7, #4]
  52302. 8015834: 603b str r3, [r7, #0]
  52303. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  52304. 8015836: 683b ldr r3, [r7, #0]
  52305. 8015838: 68fa ldr r2, [r7, #12]
  52306. 801583a: 1ad2 subs r2, r2, r3
  52307. 801583c: 683b ldr r3, [r7, #0]
  52308. 801583e: 605a str r2, [r3, #4]
  52309. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  52310. 8015840: 4b0c ldr r3, [pc, #48] @ (8015874 <prvHeapInit+0xb4>)
  52311. 8015842: 681a ldr r2, [r3, #0]
  52312. 8015844: 683b ldr r3, [r7, #0]
  52313. 8015846: 601a str r2, [r3, #0]
  52314. /* Only one block exists - and it covers the entire usable heap space. */
  52315. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  52316. 8015848: 683b ldr r3, [r7, #0]
  52317. 801584a: 685b ldr r3, [r3, #4]
  52318. 801584c: 4a0a ldr r2, [pc, #40] @ (8015878 <prvHeapInit+0xb8>)
  52319. 801584e: 6013 str r3, [r2, #0]
  52320. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  52321. 8015850: 683b ldr r3, [r7, #0]
  52322. 8015852: 685b ldr r3, [r3, #4]
  52323. 8015854: 4a09 ldr r2, [pc, #36] @ (801587c <prvHeapInit+0xbc>)
  52324. 8015856: 6013 str r3, [r2, #0]
  52325. /* Work out the position of the top bit in a size_t variable. */
  52326. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  52327. 8015858: 4b09 ldr r3, [pc, #36] @ (8015880 <prvHeapInit+0xc0>)
  52328. 801585a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  52329. 801585e: 601a str r2, [r3, #0]
  52330. }
  52331. 8015860: bf00 nop
  52332. 8015862: 3714 adds r7, #20
  52333. 8015864: 46bd mov sp, r7
  52334. 8015866: f85d 7b04 ldr.w r7, [sp], #4
  52335. 801586a: 4770 bx lr
  52336. 801586c: 24004394 .word 0x24004394
  52337. 8015870: 24024394 .word 0x24024394
  52338. 8015874: 2402439c .word 0x2402439c
  52339. 8015878: 240243a4 .word 0x240243a4
  52340. 801587c: 240243a0 .word 0x240243a0
  52341. 8015880: 240243b0 .word 0x240243b0
  52342. 08015884 <prvInsertBlockIntoFreeList>:
  52343. /*-----------------------------------------------------------*/
  52344. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  52345. {
  52346. 8015884: b480 push {r7}
  52347. 8015886: b085 sub sp, #20
  52348. 8015888: af00 add r7, sp, #0
  52349. 801588a: 6078 str r0, [r7, #4]
  52350. BlockLink_t *pxIterator;
  52351. uint8_t *puc;
  52352. /* Iterate through the list until a block is found that has a higher address
  52353. than the block being inserted. */
  52354. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  52355. 801588c: 4b28 ldr r3, [pc, #160] @ (8015930 <prvInsertBlockIntoFreeList+0xac>)
  52356. 801588e: 60fb str r3, [r7, #12]
  52357. 8015890: e002 b.n 8015898 <prvInsertBlockIntoFreeList+0x14>
  52358. 8015892: 68fb ldr r3, [r7, #12]
  52359. 8015894: 681b ldr r3, [r3, #0]
  52360. 8015896: 60fb str r3, [r7, #12]
  52361. 8015898: 68fb ldr r3, [r7, #12]
  52362. 801589a: 681b ldr r3, [r3, #0]
  52363. 801589c: 687a ldr r2, [r7, #4]
  52364. 801589e: 429a cmp r2, r3
  52365. 80158a0: d8f7 bhi.n 8015892 <prvInsertBlockIntoFreeList+0xe>
  52366. /* Nothing to do here, just iterate to the right position. */
  52367. }
  52368. /* Do the block being inserted, and the block it is being inserted after
  52369. make a contiguous block of memory? */
  52370. puc = ( uint8_t * ) pxIterator;
  52371. 80158a2: 68fb ldr r3, [r7, #12]
  52372. 80158a4: 60bb str r3, [r7, #8]
  52373. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  52374. 80158a6: 68fb ldr r3, [r7, #12]
  52375. 80158a8: 685b ldr r3, [r3, #4]
  52376. 80158aa: 68ba ldr r2, [r7, #8]
  52377. 80158ac: 4413 add r3, r2
  52378. 80158ae: 687a ldr r2, [r7, #4]
  52379. 80158b0: 429a cmp r2, r3
  52380. 80158b2: d108 bne.n 80158c6 <prvInsertBlockIntoFreeList+0x42>
  52381. {
  52382. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  52383. 80158b4: 68fb ldr r3, [r7, #12]
  52384. 80158b6: 685a ldr r2, [r3, #4]
  52385. 80158b8: 687b ldr r3, [r7, #4]
  52386. 80158ba: 685b ldr r3, [r3, #4]
  52387. 80158bc: 441a add r2, r3
  52388. 80158be: 68fb ldr r3, [r7, #12]
  52389. 80158c0: 605a str r2, [r3, #4]
  52390. pxBlockToInsert = pxIterator;
  52391. 80158c2: 68fb ldr r3, [r7, #12]
  52392. 80158c4: 607b str r3, [r7, #4]
  52393. mtCOVERAGE_TEST_MARKER();
  52394. }
  52395. /* Do the block being inserted, and the block it is being inserted before
  52396. make a contiguous block of memory? */
  52397. puc = ( uint8_t * ) pxBlockToInsert;
  52398. 80158c6: 687b ldr r3, [r7, #4]
  52399. 80158c8: 60bb str r3, [r7, #8]
  52400. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  52401. 80158ca: 687b ldr r3, [r7, #4]
  52402. 80158cc: 685b ldr r3, [r3, #4]
  52403. 80158ce: 68ba ldr r2, [r7, #8]
  52404. 80158d0: 441a add r2, r3
  52405. 80158d2: 68fb ldr r3, [r7, #12]
  52406. 80158d4: 681b ldr r3, [r3, #0]
  52407. 80158d6: 429a cmp r2, r3
  52408. 80158d8: d118 bne.n 801590c <prvInsertBlockIntoFreeList+0x88>
  52409. {
  52410. if( pxIterator->pxNextFreeBlock != pxEnd )
  52411. 80158da: 68fb ldr r3, [r7, #12]
  52412. 80158dc: 681a ldr r2, [r3, #0]
  52413. 80158de: 4b15 ldr r3, [pc, #84] @ (8015934 <prvInsertBlockIntoFreeList+0xb0>)
  52414. 80158e0: 681b ldr r3, [r3, #0]
  52415. 80158e2: 429a cmp r2, r3
  52416. 80158e4: d00d beq.n 8015902 <prvInsertBlockIntoFreeList+0x7e>
  52417. {
  52418. /* Form one big block from the two blocks. */
  52419. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  52420. 80158e6: 687b ldr r3, [r7, #4]
  52421. 80158e8: 685a ldr r2, [r3, #4]
  52422. 80158ea: 68fb ldr r3, [r7, #12]
  52423. 80158ec: 681b ldr r3, [r3, #0]
  52424. 80158ee: 685b ldr r3, [r3, #4]
  52425. 80158f0: 441a add r2, r3
  52426. 80158f2: 687b ldr r3, [r7, #4]
  52427. 80158f4: 605a str r2, [r3, #4]
  52428. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  52429. 80158f6: 68fb ldr r3, [r7, #12]
  52430. 80158f8: 681b ldr r3, [r3, #0]
  52431. 80158fa: 681a ldr r2, [r3, #0]
  52432. 80158fc: 687b ldr r3, [r7, #4]
  52433. 80158fe: 601a str r2, [r3, #0]
  52434. 8015900: e008 b.n 8015914 <prvInsertBlockIntoFreeList+0x90>
  52435. }
  52436. else
  52437. {
  52438. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  52439. 8015902: 4b0c ldr r3, [pc, #48] @ (8015934 <prvInsertBlockIntoFreeList+0xb0>)
  52440. 8015904: 681a ldr r2, [r3, #0]
  52441. 8015906: 687b ldr r3, [r7, #4]
  52442. 8015908: 601a str r2, [r3, #0]
  52443. 801590a: e003 b.n 8015914 <prvInsertBlockIntoFreeList+0x90>
  52444. }
  52445. }
  52446. else
  52447. {
  52448. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  52449. 801590c: 68fb ldr r3, [r7, #12]
  52450. 801590e: 681a ldr r2, [r3, #0]
  52451. 8015910: 687b ldr r3, [r7, #4]
  52452. 8015912: 601a str r2, [r3, #0]
  52453. /* If the block being inserted plugged a gab, so was merged with the block
  52454. before and the block after, then it's pxNextFreeBlock pointer will have
  52455. already been set, and should not be set here as that would make it point
  52456. to itself. */
  52457. if( pxIterator != pxBlockToInsert )
  52458. 8015914: 68fa ldr r2, [r7, #12]
  52459. 8015916: 687b ldr r3, [r7, #4]
  52460. 8015918: 429a cmp r2, r3
  52461. 801591a: d002 beq.n 8015922 <prvInsertBlockIntoFreeList+0x9e>
  52462. {
  52463. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  52464. 801591c: 68fb ldr r3, [r7, #12]
  52465. 801591e: 687a ldr r2, [r7, #4]
  52466. 8015920: 601a str r2, [r3, #0]
  52467. }
  52468. else
  52469. {
  52470. mtCOVERAGE_TEST_MARKER();
  52471. }
  52472. }
  52473. 8015922: bf00 nop
  52474. 8015924: 3714 adds r7, #20
  52475. 8015926: 46bd mov sp, r7
  52476. 8015928: f85d 7b04 ldr.w r7, [sp], #4
  52477. 801592c: 4770 bx lr
  52478. 801592e: bf00 nop
  52479. 8015930: 24024394 .word 0x24024394
  52480. 8015934: 2402439c .word 0x2402439c
  52481. 08015938 <netconn_apimsg>:
  52482. * @param apimsg a struct containing the function to call and its parameters
  52483. * @return ERR_OK if the function was called, another err_t if not
  52484. */
  52485. static err_t
  52486. netconn_apimsg(tcpip_callback_fn fn, struct api_msg *apimsg)
  52487. {
  52488. 8015938: b580 push {r7, lr}
  52489. 801593a: b084 sub sp, #16
  52490. 801593c: af00 add r7, sp, #0
  52491. 801593e: 6078 str r0, [r7, #4]
  52492. 8015940: 6039 str r1, [r7, #0]
  52493. err_t err;
  52494. #ifdef LWIP_DEBUG
  52495. /* catch functions that don't set err */
  52496. apimsg->err = ERR_VAL;
  52497. 8015942: 683b ldr r3, [r7, #0]
  52498. 8015944: 22fa movs r2, #250 @ 0xfa
  52499. 8015946: 711a strb r2, [r3, #4]
  52500. #if LWIP_NETCONN_SEM_PER_THREAD
  52501. apimsg->op_completed_sem = LWIP_NETCONN_THREAD_SEM_GET();
  52502. #endif /* LWIP_NETCONN_SEM_PER_THREAD */
  52503. err = tcpip_send_msg_wait_sem(fn, apimsg, LWIP_API_MSG_SEM(apimsg));
  52504. 8015948: 683b ldr r3, [r7, #0]
  52505. 801594a: 681b ldr r3, [r3, #0]
  52506. 801594c: 330c adds r3, #12
  52507. 801594e: 461a mov r2, r3
  52508. 8015950: 6839 ldr r1, [r7, #0]
  52509. 8015952: 6878 ldr r0, [r7, #4]
  52510. 8015954: f003 fc7c bl 8019250 <tcpip_send_msg_wait_sem>
  52511. 8015958: 4603 mov r3, r0
  52512. 801595a: 73fb strb r3, [r7, #15]
  52513. if (err == ERR_OK) {
  52514. 801595c: f997 300f ldrsb.w r3, [r7, #15]
  52515. 8015960: 2b00 cmp r3, #0
  52516. 8015962: d103 bne.n 801596c <netconn_apimsg+0x34>
  52517. return apimsg->err;
  52518. 8015964: 683b ldr r3, [r7, #0]
  52519. 8015966: f993 3004 ldrsb.w r3, [r3, #4]
  52520. 801596a: e001 b.n 8015970 <netconn_apimsg+0x38>
  52521. }
  52522. return err;
  52523. 801596c: f997 300f ldrsb.w r3, [r7, #15]
  52524. }
  52525. 8015970: 4618 mov r0, r3
  52526. 8015972: 3710 adds r7, #16
  52527. 8015974: 46bd mov sp, r7
  52528. 8015976: bd80 pop {r7, pc}
  52529. 08015978 <netconn_new_with_proto_and_callback>:
  52530. * @return a newly allocated struct netconn or
  52531. * NULL on memory error
  52532. */
  52533. struct netconn *
  52534. netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_callback callback)
  52535. {
  52536. 8015978: b580 push {r7, lr}
  52537. 801597a: b08c sub sp, #48 @ 0x30
  52538. 801597c: af00 add r7, sp, #0
  52539. 801597e: 4603 mov r3, r0
  52540. 8015980: 603a str r2, [r7, #0]
  52541. 8015982: 71fb strb r3, [r7, #7]
  52542. 8015984: 460b mov r3, r1
  52543. 8015986: 71bb strb r3, [r7, #6]
  52544. struct netconn *conn;
  52545. API_MSG_VAR_DECLARE(msg);
  52546. API_MSG_VAR_ALLOC_RETURN_NULL(msg);
  52547. conn = netconn_alloc(t, callback);
  52548. 8015988: 79fb ldrb r3, [r7, #7]
  52549. 801598a: 6839 ldr r1, [r7, #0]
  52550. 801598c: 4618 mov r0, r3
  52551. 801598e: f001 f8ad bl 8016aec <netconn_alloc>
  52552. 8015992: 62f8 str r0, [r7, #44] @ 0x2c
  52553. if (conn != NULL) {
  52554. 8015994: 6afb ldr r3, [r7, #44] @ 0x2c
  52555. 8015996: 2b00 cmp r3, #0
  52556. 8015998: d054 beq.n 8015a44 <netconn_new_with_proto_and_callback+0xcc>
  52557. err_t err;
  52558. API_MSG_VAR_REF(msg).msg.n.proto = proto;
  52559. 801599a: 79bb ldrb r3, [r7, #6]
  52560. 801599c: 743b strb r3, [r7, #16]
  52561. API_MSG_VAR_REF(msg).conn = conn;
  52562. 801599e: 6afb ldr r3, [r7, #44] @ 0x2c
  52563. 80159a0: 60bb str r3, [r7, #8]
  52564. err = netconn_apimsg(lwip_netconn_do_newconn, &API_MSG_VAR_REF(msg));
  52565. 80159a2: f107 0308 add.w r3, r7, #8
  52566. 80159a6: 4619 mov r1, r3
  52567. 80159a8: 4829 ldr r0, [pc, #164] @ (8015a50 <netconn_new_with_proto_and_callback+0xd8>)
  52568. 80159aa: f7ff ffc5 bl 8015938 <netconn_apimsg>
  52569. 80159ae: 4603 mov r3, r0
  52570. 80159b0: f887 302b strb.w r3, [r7, #43] @ 0x2b
  52571. if (err != ERR_OK) {
  52572. 80159b4: f997 302b ldrsb.w r3, [r7, #43] @ 0x2b
  52573. 80159b8: 2b00 cmp r3, #0
  52574. 80159ba: d043 beq.n 8015a44 <netconn_new_with_proto_and_callback+0xcc>
  52575. LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL);
  52576. 80159bc: 6afb ldr r3, [r7, #44] @ 0x2c
  52577. 80159be: 685b ldr r3, [r3, #4]
  52578. 80159c0: 2b00 cmp r3, #0
  52579. 80159c2: d005 beq.n 80159d0 <netconn_new_with_proto_and_callback+0x58>
  52580. 80159c4: 4b23 ldr r3, [pc, #140] @ (8015a54 <netconn_new_with_proto_and_callback+0xdc>)
  52581. 80159c6: 22a3 movs r2, #163 @ 0xa3
  52582. 80159c8: 4923 ldr r1, [pc, #140] @ (8015a58 <netconn_new_with_proto_and_callback+0xe0>)
  52583. 80159ca: 4824 ldr r0, [pc, #144] @ (8015a5c <netconn_new_with_proto_and_callback+0xe4>)
  52584. 80159cc: f014 fbf6 bl 802a1bc <iprintf>
  52585. LWIP_ASSERT("conn has no recvmbox", sys_mbox_valid(&conn->recvmbox));
  52586. 80159d0: 6afb ldr r3, [r7, #44] @ 0x2c
  52587. 80159d2: 3310 adds r3, #16
  52588. 80159d4: 4618 mov r0, r3
  52589. 80159d6: f011 f851 bl 8026a7c <sys_mbox_valid>
  52590. 80159da: 4603 mov r3, r0
  52591. 80159dc: 2b00 cmp r3, #0
  52592. 80159de: d105 bne.n 80159ec <netconn_new_with_proto_and_callback+0x74>
  52593. 80159e0: 4b1c ldr r3, [pc, #112] @ (8015a54 <netconn_new_with_proto_and_callback+0xdc>)
  52594. 80159e2: 22a4 movs r2, #164 @ 0xa4
  52595. 80159e4: 491e ldr r1, [pc, #120] @ (8015a60 <netconn_new_with_proto_and_callback+0xe8>)
  52596. 80159e6: 481d ldr r0, [pc, #116] @ (8015a5c <netconn_new_with_proto_and_callback+0xe4>)
  52597. 80159e8: f014 fbe8 bl 802a1bc <iprintf>
  52598. #if LWIP_TCP
  52599. LWIP_ASSERT("conn->acceptmbox shouldn't exist", !sys_mbox_valid(&conn->acceptmbox));
  52600. 80159ec: 6afb ldr r3, [r7, #44] @ 0x2c
  52601. 80159ee: 3314 adds r3, #20
  52602. 80159f0: 4618 mov r0, r3
  52603. 80159f2: f011 f843 bl 8026a7c <sys_mbox_valid>
  52604. 80159f6: 4603 mov r3, r0
  52605. 80159f8: 2b00 cmp r3, #0
  52606. 80159fa: d005 beq.n 8015a08 <netconn_new_with_proto_and_callback+0x90>
  52607. 80159fc: 4b15 ldr r3, [pc, #84] @ (8015a54 <netconn_new_with_proto_and_callback+0xdc>)
  52608. 80159fe: 22a6 movs r2, #166 @ 0xa6
  52609. 8015a00: 4918 ldr r1, [pc, #96] @ (8015a64 <netconn_new_with_proto_and_callback+0xec>)
  52610. 8015a02: 4816 ldr r0, [pc, #88] @ (8015a5c <netconn_new_with_proto_and_callback+0xe4>)
  52611. 8015a04: f014 fbda bl 802a1bc <iprintf>
  52612. #endif /* LWIP_TCP */
  52613. #if !LWIP_NETCONN_SEM_PER_THREAD
  52614. LWIP_ASSERT("conn has no op_completed", sys_sem_valid(&conn->op_completed));
  52615. 8015a08: 6afb ldr r3, [r7, #44] @ 0x2c
  52616. 8015a0a: 330c adds r3, #12
  52617. 8015a0c: 4618 mov r0, r3
  52618. 8015a0e: f011 f8c3 bl 8026b98 <sys_sem_valid>
  52619. 8015a12: 4603 mov r3, r0
  52620. 8015a14: 2b00 cmp r3, #0
  52621. 8015a16: d105 bne.n 8015a24 <netconn_new_with_proto_and_callback+0xac>
  52622. 8015a18: 4b0e ldr r3, [pc, #56] @ (8015a54 <netconn_new_with_proto_and_callback+0xdc>)
  52623. 8015a1a: 22a9 movs r2, #169 @ 0xa9
  52624. 8015a1c: 4912 ldr r1, [pc, #72] @ (8015a68 <netconn_new_with_proto_and_callback+0xf0>)
  52625. 8015a1e: 480f ldr r0, [pc, #60] @ (8015a5c <netconn_new_with_proto_and_callback+0xe4>)
  52626. 8015a20: f014 fbcc bl 802a1bc <iprintf>
  52627. sys_sem_free(&conn->op_completed);
  52628. 8015a24: 6afb ldr r3, [r7, #44] @ 0x2c
  52629. 8015a26: 330c adds r3, #12
  52630. 8015a28: 4618 mov r0, r3
  52631. 8015a2a: f011 f8a8 bl 8026b7e <sys_sem_free>
  52632. #endif /* !LWIP_NETCONN_SEM_PER_THREAD */
  52633. sys_mbox_free(&conn->recvmbox);
  52634. 8015a2e: 6afb ldr r3, [r7, #44] @ 0x2c
  52635. 8015a30: 3310 adds r3, #16
  52636. 8015a32: 4618 mov r0, r3
  52637. 8015a34: f010 ffae bl 8026994 <sys_mbox_free>
  52638. memp_free(MEMP_NETCONN, conn);
  52639. 8015a38: 6af9 ldr r1, [r7, #44] @ 0x2c
  52640. 8015a3a: 2007 movs r0, #7
  52641. 8015a3c: f004 fa58 bl 8019ef0 <memp_free>
  52642. API_MSG_VAR_FREE(msg);
  52643. return NULL;
  52644. 8015a40: 2300 movs r3, #0
  52645. 8015a42: e000 b.n 8015a46 <netconn_new_with_proto_and_callback+0xce>
  52646. }
  52647. }
  52648. API_MSG_VAR_FREE(msg);
  52649. return conn;
  52650. 8015a44: 6afb ldr r3, [r7, #44] @ 0x2c
  52651. }
  52652. 8015a46: 4618 mov r0, r3
  52653. 8015a48: 3730 adds r7, #48 @ 0x30
  52654. 8015a4a: 46bd mov sp, r7
  52655. 8015a4c: bd80 pop {r7, pc}
  52656. 8015a4e: bf00 nop
  52657. 8015a50: 08016ac1 .word 0x08016ac1
  52658. 8015a54: 0802d418 .word 0x0802d418
  52659. 8015a58: 0802d44c .word 0x0802d44c
  52660. 8015a5c: 0802d470 .word 0x0802d470
  52661. 8015a60: 0802d498 .word 0x0802d498
  52662. 8015a64: 0802d4b0 .word 0x0802d4b0
  52663. 8015a68: 0802d4d4 .word 0x0802d4d4
  52664. 08015a6c <netconn_prepare_delete>:
  52665. * @param conn the netconn to delete
  52666. * @return ERR_OK if the connection was deleted
  52667. */
  52668. err_t
  52669. netconn_prepare_delete(struct netconn *conn)
  52670. {
  52671. 8015a6c: b580 push {r7, lr}
  52672. 8015a6e: b08c sub sp, #48 @ 0x30
  52673. 8015a70: af00 add r7, sp, #0
  52674. 8015a72: 6078 str r0, [r7, #4]
  52675. err_t err;
  52676. API_MSG_VAR_DECLARE(msg);
  52677. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  52678. if (conn == NULL) {
  52679. 8015a74: 687b ldr r3, [r7, #4]
  52680. 8015a76: 2b00 cmp r3, #0
  52681. 8015a78: d101 bne.n 8015a7e <netconn_prepare_delete+0x12>
  52682. return ERR_OK;
  52683. 8015a7a: 2300 movs r3, #0
  52684. 8015a7c: e014 b.n 8015aa8 <netconn_prepare_delete+0x3c>
  52685. }
  52686. API_MSG_VAR_ALLOC(msg);
  52687. API_MSG_VAR_REF(msg).conn = conn;
  52688. 8015a7e: 687b ldr r3, [r7, #4]
  52689. 8015a80: 60fb str r3, [r7, #12]
  52690. /* get the time we started, which is later compared to
  52691. sys_now() + conn->send_timeout */
  52692. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  52693. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  52694. #if LWIP_TCP
  52695. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  52696. 8015a82: 2329 movs r3, #41 @ 0x29
  52697. 8015a84: 757b strb r3, [r7, #21]
  52698. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  52699. #endif /* LWIP_TCP */
  52700. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  52701. err = netconn_apimsg(lwip_netconn_do_delconn, &API_MSG_VAR_REF(msg));
  52702. 8015a86: f107 030c add.w r3, r7, #12
  52703. 8015a8a: 4619 mov r1, r3
  52704. 8015a8c: 4808 ldr r0, [pc, #32] @ (8015ab0 <netconn_prepare_delete+0x44>)
  52705. 8015a8e: f7ff ff53 bl 8015938 <netconn_apimsg>
  52706. 8015a92: 4603 mov r3, r0
  52707. 8015a94: f887 302f strb.w r3, [r7, #47] @ 0x2f
  52708. API_MSG_VAR_FREE(msg);
  52709. if (err != ERR_OK) {
  52710. 8015a98: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  52711. 8015a9c: 2b00 cmp r3, #0
  52712. 8015a9e: d002 beq.n 8015aa6 <netconn_prepare_delete+0x3a>
  52713. return err;
  52714. 8015aa0: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  52715. 8015aa4: e000 b.n 8015aa8 <netconn_prepare_delete+0x3c>
  52716. }
  52717. return ERR_OK;
  52718. 8015aa6: 2300 movs r3, #0
  52719. }
  52720. 8015aa8: 4618 mov r0, r3
  52721. 8015aaa: 3730 adds r7, #48 @ 0x30
  52722. 8015aac: 46bd mov sp, r7
  52723. 8015aae: bd80 pop {r7, pc}
  52724. 8015ab0: 08017045 .word 0x08017045
  52725. 08015ab4 <netconn_delete>:
  52726. * @param conn the netconn to delete
  52727. * @return ERR_OK if the connection was deleted
  52728. */
  52729. err_t
  52730. netconn_delete(struct netconn *conn)
  52731. {
  52732. 8015ab4: b580 push {r7, lr}
  52733. 8015ab6: b084 sub sp, #16
  52734. 8015ab8: af00 add r7, sp, #0
  52735. 8015aba: 6078 str r0, [r7, #4]
  52736. err_t err;
  52737. /* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
  52738. if (conn == NULL) {
  52739. 8015abc: 687b ldr r3, [r7, #4]
  52740. 8015abe: 2b00 cmp r3, #0
  52741. 8015ac0: d101 bne.n 8015ac6 <netconn_delete+0x12>
  52742. return ERR_OK;
  52743. 8015ac2: 2300 movs r3, #0
  52744. 8015ac4: e00d b.n 8015ae2 <netconn_delete+0x2e>
  52745. /* Already called netconn_prepare_delete() before */
  52746. err = ERR_OK;
  52747. } else
  52748. #endif /* LWIP_NETCONN_FULLDUPLEX */
  52749. {
  52750. err = netconn_prepare_delete(conn);
  52751. 8015ac6: 6878 ldr r0, [r7, #4]
  52752. 8015ac8: f7ff ffd0 bl 8015a6c <netconn_prepare_delete>
  52753. 8015acc: 4603 mov r3, r0
  52754. 8015ace: 73fb strb r3, [r7, #15]
  52755. }
  52756. if (err == ERR_OK) {
  52757. 8015ad0: f997 300f ldrsb.w r3, [r7, #15]
  52758. 8015ad4: 2b00 cmp r3, #0
  52759. 8015ad6: d102 bne.n 8015ade <netconn_delete+0x2a>
  52760. netconn_free(conn);
  52761. 8015ad8: 6878 ldr r0, [r7, #4]
  52762. 8015ada: f001 f881 bl 8016be0 <netconn_free>
  52763. }
  52764. return err;
  52765. 8015ade: f997 300f ldrsb.w r3, [r7, #15]
  52766. }
  52767. 8015ae2: 4618 mov r0, r3
  52768. 8015ae4: 3710 adds r7, #16
  52769. 8015ae6: 46bd mov sp, r7
  52770. 8015ae8: bd80 pop {r7, pc}
  52771. ...
  52772. 08015aec <netconn_getaddr>:
  52773. * @return ERR_CONN for invalid connections
  52774. * ERR_OK if the information was retrieved
  52775. */
  52776. err_t
  52777. netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local)
  52778. {
  52779. 8015aec: b580 push {r7, lr}
  52780. 8015aee: b08e sub sp, #56 @ 0x38
  52781. 8015af0: af00 add r7, sp, #0
  52782. 8015af2: 60f8 str r0, [r7, #12]
  52783. 8015af4: 60b9 str r1, [r7, #8]
  52784. 8015af6: 607a str r2, [r7, #4]
  52785. 8015af8: 70fb strb r3, [r7, #3]
  52786. API_MSG_VAR_DECLARE(msg);
  52787. err_t err;
  52788. LWIP_ERROR("netconn_getaddr: invalid conn", (conn != NULL), return ERR_ARG;);
  52789. 8015afa: 68fb ldr r3, [r7, #12]
  52790. 8015afc: 2b00 cmp r3, #0
  52791. 8015afe: d109 bne.n 8015b14 <netconn_getaddr+0x28>
  52792. 8015b00: 4b1d ldr r3, [pc, #116] @ (8015b78 <netconn_getaddr+0x8c>)
  52793. 8015b02: f44f 7289 mov.w r2, #274 @ 0x112
  52794. 8015b06: 491d ldr r1, [pc, #116] @ (8015b7c <netconn_getaddr+0x90>)
  52795. 8015b08: 481d ldr r0, [pc, #116] @ (8015b80 <netconn_getaddr+0x94>)
  52796. 8015b0a: f014 fb57 bl 802a1bc <iprintf>
  52797. 8015b0e: f06f 030f mvn.w r3, #15
  52798. 8015b12: e02d b.n 8015b70 <netconn_getaddr+0x84>
  52799. LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;);
  52800. 8015b14: 68bb ldr r3, [r7, #8]
  52801. 8015b16: 2b00 cmp r3, #0
  52802. 8015b18: d109 bne.n 8015b2e <netconn_getaddr+0x42>
  52803. 8015b1a: 4b17 ldr r3, [pc, #92] @ (8015b78 <netconn_getaddr+0x8c>)
  52804. 8015b1c: f240 1213 movw r2, #275 @ 0x113
  52805. 8015b20: 4918 ldr r1, [pc, #96] @ (8015b84 <netconn_getaddr+0x98>)
  52806. 8015b22: 4817 ldr r0, [pc, #92] @ (8015b80 <netconn_getaddr+0x94>)
  52807. 8015b24: f014 fb4a bl 802a1bc <iprintf>
  52808. 8015b28: f06f 030f mvn.w r3, #15
  52809. 8015b2c: e020 b.n 8015b70 <netconn_getaddr+0x84>
  52810. LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;);
  52811. 8015b2e: 687b ldr r3, [r7, #4]
  52812. 8015b30: 2b00 cmp r3, #0
  52813. 8015b32: d109 bne.n 8015b48 <netconn_getaddr+0x5c>
  52814. 8015b34: 4b10 ldr r3, [pc, #64] @ (8015b78 <netconn_getaddr+0x8c>)
  52815. 8015b36: f44f 728a mov.w r2, #276 @ 0x114
  52816. 8015b3a: 4913 ldr r1, [pc, #76] @ (8015b88 <netconn_getaddr+0x9c>)
  52817. 8015b3c: 4810 ldr r0, [pc, #64] @ (8015b80 <netconn_getaddr+0x94>)
  52818. 8015b3e: f014 fb3d bl 802a1bc <iprintf>
  52819. 8015b42: f06f 030f mvn.w r3, #15
  52820. 8015b46: e013 b.n 8015b70 <netconn_getaddr+0x84>
  52821. API_MSG_VAR_ALLOC(msg);
  52822. API_MSG_VAR_REF(msg).conn = conn;
  52823. 8015b48: 68fb ldr r3, [r7, #12]
  52824. 8015b4a: 617b str r3, [r7, #20]
  52825. API_MSG_VAR_REF(msg).msg.ad.local = local;
  52826. 8015b4c: 78fb ldrb r3, [r7, #3]
  52827. 8015b4e: f887 3024 strb.w r3, [r7, #36] @ 0x24
  52828. #if LWIP_MPU_COMPATIBLE
  52829. err = netconn_apimsg(lwip_netconn_do_getaddr, &API_MSG_VAR_REF(msg));
  52830. *addr = msg->msg.ad.ipaddr;
  52831. *port = msg->msg.ad.port;
  52832. #else /* LWIP_MPU_COMPATIBLE */
  52833. msg.msg.ad.ipaddr = addr;
  52834. 8015b52: 68bb ldr r3, [r7, #8]
  52835. 8015b54: 61fb str r3, [r7, #28]
  52836. msg.msg.ad.port = port;
  52837. 8015b56: 687b ldr r3, [r7, #4]
  52838. 8015b58: 623b str r3, [r7, #32]
  52839. err = netconn_apimsg(lwip_netconn_do_getaddr, &msg);
  52840. 8015b5a: f107 0314 add.w r3, r7, #20
  52841. 8015b5e: 4619 mov r1, r3
  52842. 8015b60: 480a ldr r0, [pc, #40] @ (8015b8c <netconn_getaddr+0xa0>)
  52843. 8015b62: f7ff fee9 bl 8015938 <netconn_apimsg>
  52844. 8015b66: 4603 mov r3, r0
  52845. 8015b68: f887 3037 strb.w r3, [r7, #55] @ 0x37
  52846. #endif /* LWIP_MPU_COMPATIBLE */
  52847. API_MSG_VAR_FREE(msg);
  52848. return err;
  52849. 8015b6c: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  52850. }
  52851. 8015b70: 4618 mov r0, r3
  52852. 8015b72: 3738 adds r7, #56 @ 0x38
  52853. 8015b74: 46bd mov sp, r7
  52854. 8015b76: bd80 pop {r7, pc}
  52855. 8015b78: 0802d418 .word 0x0802d418
  52856. 8015b7c: 0802d4f0 .word 0x0802d4f0
  52857. 8015b80: 0802d470 .word 0x0802d470
  52858. 8015b84: 0802d510 .word 0x0802d510
  52859. 8015b88: 0802d530 .word 0x0802d530
  52860. 8015b8c: 08017aa1 .word 0x08017aa1
  52861. 08015b90 <netconn_connect>:
  52862. * @param port the remote port to connect to (no used for RAW)
  52863. * @return ERR_OK if connected, return value of tcp_/udp_/raw_connect otherwise
  52864. */
  52865. err_t
  52866. netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
  52867. {
  52868. 8015b90: b580 push {r7, lr}
  52869. 8015b92: b08e sub sp, #56 @ 0x38
  52870. 8015b94: af00 add r7, sp, #0
  52871. 8015b96: 60f8 str r0, [r7, #12]
  52872. 8015b98: 60b9 str r1, [r7, #8]
  52873. 8015b9a: 4613 mov r3, r2
  52874. 8015b9c: 80fb strh r3, [r7, #6]
  52875. API_MSG_VAR_DECLARE(msg);
  52876. err_t err;
  52877. LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;);
  52878. 8015b9e: 68fb ldr r3, [r7, #12]
  52879. 8015ba0: 2b00 cmp r3, #0
  52880. 8015ba2: d109 bne.n 8015bb8 <netconn_connect+0x28>
  52881. 8015ba4: 4b11 ldr r3, [pc, #68] @ (8015bec <netconn_connect+0x5c>)
  52882. 8015ba6: f44f 72bf mov.w r2, #382 @ 0x17e
  52883. 8015baa: 4911 ldr r1, [pc, #68] @ (8015bf0 <netconn_connect+0x60>)
  52884. 8015bac: 4811 ldr r0, [pc, #68] @ (8015bf4 <netconn_connect+0x64>)
  52885. 8015bae: f014 fb05 bl 802a1bc <iprintf>
  52886. 8015bb2: f06f 030f mvn.w r3, #15
  52887. 8015bb6: e015 b.n 8015be4 <netconn_connect+0x54>
  52888. #if LWIP_IPV4
  52889. /* Don't propagate NULL pointer (IP_ADDR_ANY alias) to subsequent functions */
  52890. if (addr == NULL) {
  52891. 8015bb8: 68bb ldr r3, [r7, #8]
  52892. 8015bba: 2b00 cmp r3, #0
  52893. 8015bbc: d101 bne.n 8015bc2 <netconn_connect+0x32>
  52894. addr = IP4_ADDR_ANY;
  52895. 8015bbe: 4b0e ldr r3, [pc, #56] @ (8015bf8 <netconn_connect+0x68>)
  52896. 8015bc0: 60bb str r3, [r7, #8]
  52897. }
  52898. #endif /* LWIP_IPV4 */
  52899. API_MSG_VAR_ALLOC(msg);
  52900. API_MSG_VAR_REF(msg).conn = conn;
  52901. 8015bc2: 68fb ldr r3, [r7, #12]
  52902. 8015bc4: 617b str r3, [r7, #20]
  52903. API_MSG_VAR_REF(msg).msg.bc.ipaddr = API_MSG_VAR_REF(addr);
  52904. 8015bc6: 68bb ldr r3, [r7, #8]
  52905. 8015bc8: 61fb str r3, [r7, #28]
  52906. API_MSG_VAR_REF(msg).msg.bc.port = port;
  52907. 8015bca: 88fb ldrh r3, [r7, #6]
  52908. 8015bcc: 843b strh r3, [r7, #32]
  52909. err = netconn_apimsg(lwip_netconn_do_connect, &API_MSG_VAR_REF(msg));
  52910. 8015bce: f107 0314 add.w r3, r7, #20
  52911. 8015bd2: 4619 mov r1, r3
  52912. 8015bd4: 4809 ldr r0, [pc, #36] @ (8015bfc <netconn_connect+0x6c>)
  52913. 8015bd6: f7ff feaf bl 8015938 <netconn_apimsg>
  52914. 8015bda: 4603 mov r3, r0
  52915. 8015bdc: f887 3037 strb.w r3, [r7, #55] @ 0x37
  52916. API_MSG_VAR_FREE(msg);
  52917. return err;
  52918. 8015be0: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  52919. }
  52920. 8015be4: 4618 mov r0, r3
  52921. 8015be6: 3738 adds r7, #56 @ 0x38
  52922. 8015be8: 46bd mov sp, r7
  52923. 8015bea: bd80 pop {r7, pc}
  52924. 8015bec: 0802d418 .word 0x0802d418
  52925. 8015bf0: 0802d58c .word 0x0802d58c
  52926. 8015bf4: 0802d470 .word 0x0802d470
  52927. 8015bf8: 080314f4 .word 0x080314f4
  52928. 8015bfc: 08017331 .word 0x08017331
  52929. 08015c00 <netconn_disconnect>:
  52930. * @param conn the netconn to disconnect
  52931. * @return See @ref err_t
  52932. */
  52933. err_t
  52934. netconn_disconnect(struct netconn *conn)
  52935. {
  52936. 8015c00: b580 push {r7, lr}
  52937. 8015c02: b08c sub sp, #48 @ 0x30
  52938. 8015c04: af00 add r7, sp, #0
  52939. 8015c06: 6078 str r0, [r7, #4]
  52940. API_MSG_VAR_DECLARE(msg);
  52941. err_t err;
  52942. LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;);
  52943. 8015c08: 687b ldr r3, [r7, #4]
  52944. 8015c0a: 2b00 cmp r3, #0
  52945. 8015c0c: d109 bne.n 8015c22 <netconn_disconnect+0x22>
  52946. 8015c0e: 4b0d ldr r3, [pc, #52] @ (8015c44 <netconn_disconnect+0x44>)
  52947. 8015c10: f44f 72cf mov.w r2, #414 @ 0x19e
  52948. 8015c14: 490c ldr r1, [pc, #48] @ (8015c48 <netconn_disconnect+0x48>)
  52949. 8015c16: 480d ldr r0, [pc, #52] @ (8015c4c <netconn_disconnect+0x4c>)
  52950. 8015c18: f014 fad0 bl 802a1bc <iprintf>
  52951. 8015c1c: f06f 030f mvn.w r3, #15
  52952. 8015c20: e00c b.n 8015c3c <netconn_disconnect+0x3c>
  52953. API_MSG_VAR_ALLOC(msg);
  52954. API_MSG_VAR_REF(msg).conn = conn;
  52955. 8015c22: 687b ldr r3, [r7, #4]
  52956. 8015c24: 60fb str r3, [r7, #12]
  52957. err = netconn_apimsg(lwip_netconn_do_disconnect, &API_MSG_VAR_REF(msg));
  52958. 8015c26: f107 030c add.w r3, r7, #12
  52959. 8015c2a: 4619 mov r1, r3
  52960. 8015c2c: 4808 ldr r0, [pc, #32] @ (8015c50 <netconn_disconnect+0x50>)
  52961. 8015c2e: f7ff fe83 bl 8015938 <netconn_apimsg>
  52962. 8015c32: 4603 mov r3, r0
  52963. 8015c34: f887 302f strb.w r3, [r7, #47] @ 0x2f
  52964. API_MSG_VAR_FREE(msg);
  52965. return err;
  52966. 8015c38: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  52967. }
  52968. 8015c3c: 4618 mov r0, r3
  52969. 8015c3e: 3730 adds r7, #48 @ 0x30
  52970. 8015c40: 46bd mov sp, r7
  52971. 8015c42: bd80 pop {r7, pc}
  52972. 8015c44: 0802d418 .word 0x0802d418
  52973. 8015c48: 0802d5ac .word 0x0802d5ac
  52974. 8015c4c: 0802d470 .word 0x0802d470
  52975. 8015c50: 080174b1 .word 0x080174b1
  52976. 08015c54 <netconn_recv_data>:
  52977. * ERR_WOULDBLOCK if the netconn is nonblocking but would block to wait for data
  52978. * ERR_TIMEOUT if the netconn has a receive timeout and no data was received
  52979. */
  52980. static err_t
  52981. netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags)
  52982. {
  52983. 8015c54: b580 push {r7, lr}
  52984. 8015c56: b08a sub sp, #40 @ 0x28
  52985. 8015c58: af00 add r7, sp, #0
  52986. 8015c5a: 60f8 str r0, [r7, #12]
  52987. 8015c5c: 60b9 str r1, [r7, #8]
  52988. 8015c5e: 4613 mov r3, r2
  52989. 8015c60: 71fb strb r3, [r7, #7]
  52990. void *buf = NULL;
  52991. 8015c62: 2300 movs r3, #0
  52992. 8015c64: 61bb str r3, [r7, #24]
  52993. u16_t len;
  52994. LWIP_ERROR("netconn_recv: invalid pointer", (new_buf != NULL), return ERR_ARG;);
  52995. 8015c66: 68bb ldr r3, [r7, #8]
  52996. 8015c68: 2b00 cmp r3, #0
  52997. 8015c6a: d109 bne.n 8015c80 <netconn_recv_data+0x2c>
  52998. 8015c6c: 4b64 ldr r3, [pc, #400] @ (8015e00 <netconn_recv_data+0x1ac>)
  52999. 8015c6e: f44f 7212 mov.w r2, #584 @ 0x248
  53000. 8015c72: 4964 ldr r1, [pc, #400] @ (8015e04 <netconn_recv_data+0x1b0>)
  53001. 8015c74: 4864 ldr r0, [pc, #400] @ (8015e08 <netconn_recv_data+0x1b4>)
  53002. 8015c76: f014 faa1 bl 802a1bc <iprintf>
  53003. 8015c7a: f06f 030f mvn.w r3, #15
  53004. 8015c7e: e0bb b.n 8015df8 <netconn_recv_data+0x1a4>
  53005. *new_buf = NULL;
  53006. 8015c80: 68bb ldr r3, [r7, #8]
  53007. 8015c82: 2200 movs r2, #0
  53008. 8015c84: 601a str r2, [r3, #0]
  53009. LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return ERR_ARG;);
  53010. 8015c86: 68fb ldr r3, [r7, #12]
  53011. 8015c88: 2b00 cmp r3, #0
  53012. 8015c8a: d109 bne.n 8015ca0 <netconn_recv_data+0x4c>
  53013. 8015c8c: 4b5c ldr r3, [pc, #368] @ (8015e00 <netconn_recv_data+0x1ac>)
  53014. 8015c8e: f240 224a movw r2, #586 @ 0x24a
  53015. 8015c92: 495e ldr r1, [pc, #376] @ (8015e0c <netconn_recv_data+0x1b8>)
  53016. 8015c94: 485c ldr r0, [pc, #368] @ (8015e08 <netconn_recv_data+0x1b4>)
  53017. 8015c96: f014 fa91 bl 802a1bc <iprintf>
  53018. 8015c9a: f06f 030f mvn.w r3, #15
  53019. 8015c9e: e0ab b.n 8015df8 <netconn_recv_data+0x1a4>
  53020. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  53021. 8015ca0: 68fb ldr r3, [r7, #12]
  53022. 8015ca2: 3310 adds r3, #16
  53023. 8015ca4: 4618 mov r0, r3
  53024. 8015ca6: f010 fee9 bl 8026a7c <sys_mbox_valid>
  53025. 8015caa: 4603 mov r3, r0
  53026. 8015cac: 2b00 cmp r3, #0
  53027. 8015cae: d10e bne.n 8015cce <netconn_recv_data+0x7a>
  53028. err_t err = netconn_err(conn);
  53029. 8015cb0: 68f8 ldr r0, [r7, #12]
  53030. 8015cb2: f000 fb1f bl 80162f4 <netconn_err>
  53031. 8015cb6: 4603 mov r3, r0
  53032. 8015cb8: 77fb strb r3, [r7, #31]
  53033. if (err != ERR_OK) {
  53034. 8015cba: f997 301f ldrsb.w r3, [r7, #31]
  53035. 8015cbe: 2b00 cmp r3, #0
  53036. 8015cc0: d002 beq.n 8015cc8 <netconn_recv_data+0x74>
  53037. /* return pending error */
  53038. return err;
  53039. 8015cc2: f997 301f ldrsb.w r3, [r7, #31]
  53040. 8015cc6: e097 b.n 8015df8 <netconn_recv_data+0x1a4>
  53041. }
  53042. return ERR_CONN;
  53043. 8015cc8: f06f 030a mvn.w r3, #10
  53044. 8015ccc: e094 b.n 8015df8 <netconn_recv_data+0x1a4>
  53045. }
  53046. NETCONN_MBOX_WAITING_INC(conn);
  53047. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  53048. 8015cce: 68fb ldr r3, [r7, #12]
  53049. 8015cd0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53050. 8015cd4: f003 0302 and.w r3, r3, #2
  53051. 8015cd8: 2b00 cmp r3, #0
  53052. 8015cda: d110 bne.n 8015cfe <netconn_recv_data+0xaa>
  53053. 8015cdc: 79fb ldrb r3, [r7, #7]
  53054. 8015cde: f003 0304 and.w r3, r3, #4
  53055. 8015ce2: 2b00 cmp r3, #0
  53056. 8015ce4: d10b bne.n 8015cfe <netconn_recv_data+0xaa>
  53057. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  53058. 8015ce6: 68fb ldr r3, [r7, #12]
  53059. 8015ce8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53060. 8015cec: f003 0301 and.w r3, r3, #1
  53061. if (netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK) ||
  53062. 8015cf0: 2b00 cmp r3, #0
  53063. 8015cf2: d104 bne.n 8015cfe <netconn_recv_data+0xaa>
  53064. (conn->flags & NETCONN_FLAG_MBOXCLOSED) || (conn->pending_err != ERR_OK)) {
  53065. 8015cf4: 68fb ldr r3, [r7, #12]
  53066. 8015cf6: f993 3008 ldrsb.w r3, [r3, #8]
  53067. 8015cfa: 2b00 cmp r3, #0
  53068. 8015cfc: d025 beq.n 8015d4a <netconn_recv_data+0xf6>
  53069. if (sys_arch_mbox_tryfetch(&conn->recvmbox, &buf) == SYS_ARCH_TIMEOUT) {
  53070. 8015cfe: 68fb ldr r3, [r7, #12]
  53071. 8015d00: 3310 adds r3, #16
  53072. 8015d02: f107 0218 add.w r2, r7, #24
  53073. 8015d06: 4611 mov r1, r2
  53074. 8015d08: 4618 mov r0, r3
  53075. 8015d0a: f010 fea0 bl 8026a4e <sys_arch_mbox_tryfetch>
  53076. 8015d0e: 4603 mov r3, r0
  53077. 8015d10: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53078. 8015d14: d12a bne.n 8015d6c <netconn_recv_data+0x118>
  53079. err_t err;
  53080. NETCONN_MBOX_WAITING_DEC(conn);
  53081. err = netconn_err(conn);
  53082. 8015d16: 68f8 ldr r0, [r7, #12]
  53083. 8015d18: f000 faec bl 80162f4 <netconn_err>
  53084. 8015d1c: 4603 mov r3, r0
  53085. 8015d1e: f887 3025 strb.w r3, [r7, #37] @ 0x25
  53086. if (err != ERR_OK) {
  53087. 8015d22: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  53088. 8015d26: 2b00 cmp r3, #0
  53089. 8015d28: d002 beq.n 8015d30 <netconn_recv_data+0xdc>
  53090. /* return pending error */
  53091. return err;
  53092. 8015d2a: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  53093. 8015d2e: e063 b.n 8015df8 <netconn_recv_data+0x1a4>
  53094. }
  53095. if (conn->flags & NETCONN_FLAG_MBOXCLOSED) {
  53096. 8015d30: 68fb ldr r3, [r7, #12]
  53097. 8015d32: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53098. 8015d36: f003 0301 and.w r3, r3, #1
  53099. 8015d3a: 2b00 cmp r3, #0
  53100. 8015d3c: d002 beq.n 8015d44 <netconn_recv_data+0xf0>
  53101. return ERR_CONN;
  53102. 8015d3e: f06f 030a mvn.w r3, #10
  53103. 8015d42: e059 b.n 8015df8 <netconn_recv_data+0x1a4>
  53104. }
  53105. return ERR_WOULDBLOCK;
  53106. 8015d44: f06f 0306 mvn.w r3, #6
  53107. 8015d48: e056 b.n 8015df8 <netconn_recv_data+0x1a4>
  53108. }
  53109. } else {
  53110. #if LWIP_SO_RCVTIMEO
  53111. if (sys_arch_mbox_fetch(&conn->recvmbox, &buf, conn->recv_timeout) == SYS_ARCH_TIMEOUT) {
  53112. 8015d4a: 68fb ldr r3, [r7, #12]
  53113. 8015d4c: f103 0010 add.w r0, r3, #16
  53114. 8015d50: 68fb ldr r3, [r7, #12]
  53115. 8015d52: 69da ldr r2, [r3, #28]
  53116. 8015d54: f107 0318 add.w r3, r7, #24
  53117. 8015d58: 4619 mov r1, r3
  53118. 8015d5a: f010 fe47 bl 80269ec <sys_arch_mbox_fetch>
  53119. 8015d5e: 4603 mov r3, r0
  53120. 8015d60: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53121. 8015d64: d102 bne.n 8015d6c <netconn_recv_data+0x118>
  53122. NETCONN_MBOX_WAITING_DEC(conn);
  53123. return ERR_TIMEOUT;
  53124. 8015d66: f06f 0302 mvn.w r3, #2
  53125. 8015d6a: e045 b.n 8015df8 <netconn_recv_data+0x1a4>
  53126. }
  53127. #endif
  53128. #if LWIP_TCP
  53129. #if (LWIP_UDP || LWIP_RAW)
  53130. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP)
  53131. 8015d6c: 68fb ldr r3, [r7, #12]
  53132. 8015d6e: 781b ldrb r3, [r3, #0]
  53133. 8015d70: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53134. 8015d74: 2b10 cmp r3, #16
  53135. 8015d76: d117 bne.n 8015da8 <netconn_recv_data+0x154>
  53136. #endif /* (LWIP_UDP || LWIP_RAW) */
  53137. {
  53138. err_t err;
  53139. /* Check if this is an error message or a pbuf */
  53140. if (lwip_netconn_is_err_msg(buf, &err)) {
  53141. 8015d78: 69bb ldr r3, [r7, #24]
  53142. 8015d7a: f107 0217 add.w r2, r7, #23
  53143. 8015d7e: 4611 mov r1, r2
  53144. 8015d80: 4618 mov r0, r3
  53145. 8015d82: f000 fb09 bl 8016398 <lwip_netconn_is_err_msg>
  53146. 8015d86: 4603 mov r3, r0
  53147. 8015d88: 2b00 cmp r3, #0
  53148. 8015d8a: d009 beq.n 8015da0 <netconn_recv_data+0x14c>
  53149. /* new_buf has been zeroed above already */
  53150. if (err == ERR_CLSD) {
  53151. 8015d8c: f997 3017 ldrsb.w r3, [r7, #23]
  53152. 8015d90: f113 0f0f cmn.w r3, #15
  53153. 8015d94: d101 bne.n 8015d9a <netconn_recv_data+0x146>
  53154. /* connection closed translates to ERR_OK with *new_buf == NULL */
  53155. return ERR_OK;
  53156. 8015d96: 2300 movs r3, #0
  53157. 8015d98: e02e b.n 8015df8 <netconn_recv_data+0x1a4>
  53158. }
  53159. return err;
  53160. 8015d9a: f997 3017 ldrsb.w r3, [r7, #23]
  53161. 8015d9e: e02b b.n 8015df8 <netconn_recv_data+0x1a4>
  53162. }
  53163. len = ((struct pbuf *)buf)->tot_len;
  53164. 8015da0: 69bb ldr r3, [r7, #24]
  53165. 8015da2: 891b ldrh r3, [r3, #8]
  53166. 8015da4: 84fb strh r3, [r7, #38] @ 0x26
  53167. 8015da6: e00d b.n 8015dc4 <netconn_recv_data+0x170>
  53168. #if LWIP_TCP && (LWIP_UDP || LWIP_RAW)
  53169. else
  53170. #endif /* LWIP_TCP && (LWIP_UDP || LWIP_RAW) */
  53171. #if (LWIP_UDP || LWIP_RAW)
  53172. {
  53173. LWIP_ASSERT("buf != NULL", buf != NULL);
  53174. 8015da8: 69bb ldr r3, [r7, #24]
  53175. 8015daa: 2b00 cmp r3, #0
  53176. 8015dac: d106 bne.n 8015dbc <netconn_recv_data+0x168>
  53177. 8015dae: 4b14 ldr r3, [pc, #80] @ (8015e00 <netconn_recv_data+0x1ac>)
  53178. 8015db0: f240 2291 movw r2, #657 @ 0x291
  53179. 8015db4: 4916 ldr r1, [pc, #88] @ (8015e10 <netconn_recv_data+0x1bc>)
  53180. 8015db6: 4814 ldr r0, [pc, #80] @ (8015e08 <netconn_recv_data+0x1b4>)
  53181. 8015db8: f014 fa00 bl 802a1bc <iprintf>
  53182. len = netbuf_len((struct netbuf *)buf);
  53183. 8015dbc: 69bb ldr r3, [r7, #24]
  53184. 8015dbe: 681b ldr r3, [r3, #0]
  53185. 8015dc0: 891b ldrh r3, [r3, #8]
  53186. 8015dc2: 84fb strh r3, [r7, #38] @ 0x26
  53187. }
  53188. #endif /* (LWIP_UDP || LWIP_RAW) */
  53189. #if LWIP_SO_RCVBUF
  53190. SYS_ARCH_DEC(conn->recv_avail, len);
  53191. 8015dc4: f010 ff64 bl 8026c90 <sys_arch_protect>
  53192. 8015dc8: 6238 str r0, [r7, #32]
  53193. 8015dca: 68fb ldr r3, [r7, #12]
  53194. 8015dcc: 6a5a ldr r2, [r3, #36] @ 0x24
  53195. 8015dce: 8cfb ldrh r3, [r7, #38] @ 0x26
  53196. 8015dd0: 1ad2 subs r2, r2, r3
  53197. 8015dd2: 68fb ldr r3, [r7, #12]
  53198. 8015dd4: 625a str r2, [r3, #36] @ 0x24
  53199. 8015dd6: 6a38 ldr r0, [r7, #32]
  53200. 8015dd8: f010 ff68 bl 8026cac <sys_arch_unprotect>
  53201. #endif /* LWIP_SO_RCVBUF */
  53202. /* Register event with callback */
  53203. API_EVENT(conn, NETCONN_EVT_RCVMINUS, len);
  53204. 8015ddc: 68fb ldr r3, [r7, #12]
  53205. 8015dde: 6b1b ldr r3, [r3, #48] @ 0x30
  53206. 8015de0: 2b00 cmp r3, #0
  53207. 8015de2: d005 beq.n 8015df0 <netconn_recv_data+0x19c>
  53208. 8015de4: 68fb ldr r3, [r7, #12]
  53209. 8015de6: 6b1b ldr r3, [r3, #48] @ 0x30
  53210. 8015de8: 8cfa ldrh r2, [r7, #38] @ 0x26
  53211. 8015dea: 2101 movs r1, #1
  53212. 8015dec: 68f8 ldr r0, [r7, #12]
  53213. 8015dee: 4798 blx r3
  53214. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv_data: received %p, len=%"U16_F"\n", buf, len));
  53215. *new_buf = buf;
  53216. 8015df0: 69ba ldr r2, [r7, #24]
  53217. 8015df2: 68bb ldr r3, [r7, #8]
  53218. 8015df4: 601a str r2, [r3, #0]
  53219. /* don't set conn->last_err: it's only ERR_OK, anyway */
  53220. return ERR_OK;
  53221. 8015df6: 2300 movs r3, #0
  53222. }
  53223. 8015df8: 4618 mov r0, r3
  53224. 8015dfa: 3728 adds r7, #40 @ 0x28
  53225. 8015dfc: 46bd mov sp, r7
  53226. 8015dfe: bd80 pop {r7, pc}
  53227. 8015e00: 0802d418 .word 0x0802d418
  53228. 8015e04: 0802d630 .word 0x0802d630
  53229. 8015e08: 0802d470 .word 0x0802d470
  53230. 8015e0c: 0802d650 .word 0x0802d650
  53231. 8015e10: 0802d66c .word 0x0802d66c
  53232. 08015e14 <netconn_tcp_recvd_msg>:
  53233. #if LWIP_TCP
  53234. static err_t
  53235. netconn_tcp_recvd_msg(struct netconn *conn, size_t len, struct api_msg *msg)
  53236. {
  53237. 8015e14: b580 push {r7, lr}
  53238. 8015e16: b084 sub sp, #16
  53239. 8015e18: af00 add r7, sp, #0
  53240. 8015e1a: 60f8 str r0, [r7, #12]
  53241. 8015e1c: 60b9 str r1, [r7, #8]
  53242. 8015e1e: 607a str r2, [r7, #4]
  53243. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  53244. 8015e20: 68fb ldr r3, [r7, #12]
  53245. 8015e22: 2b00 cmp r3, #0
  53246. 8015e24: d005 beq.n 8015e32 <netconn_tcp_recvd_msg+0x1e>
  53247. 8015e26: 68fb ldr r3, [r7, #12]
  53248. 8015e28: 781b ldrb r3, [r3, #0]
  53249. 8015e2a: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53250. 8015e2e: 2b10 cmp r3, #16
  53251. 8015e30: d009 beq.n 8015e46 <netconn_tcp_recvd_msg+0x32>
  53252. 8015e32: 4b0c ldr r3, [pc, #48] @ (8015e64 <netconn_tcp_recvd_msg+0x50>)
  53253. 8015e34: f240 22a7 movw r2, #679 @ 0x2a7
  53254. 8015e38: 490b ldr r1, [pc, #44] @ (8015e68 <netconn_tcp_recvd_msg+0x54>)
  53255. 8015e3a: 480c ldr r0, [pc, #48] @ (8015e6c <netconn_tcp_recvd_msg+0x58>)
  53256. 8015e3c: f014 f9be bl 802a1bc <iprintf>
  53257. 8015e40: f06f 030f mvn.w r3, #15
  53258. 8015e44: e00a b.n 8015e5c <netconn_tcp_recvd_msg+0x48>
  53259. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  53260. msg->conn = conn;
  53261. 8015e46: 687b ldr r3, [r7, #4]
  53262. 8015e48: 68fa ldr r2, [r7, #12]
  53263. 8015e4a: 601a str r2, [r3, #0]
  53264. msg->msg.r.len = len;
  53265. 8015e4c: 687b ldr r3, [r7, #4]
  53266. 8015e4e: 68ba ldr r2, [r7, #8]
  53267. 8015e50: 609a str r2, [r3, #8]
  53268. return netconn_apimsg(lwip_netconn_do_recv, msg);
  53269. 8015e52: 6879 ldr r1, [r7, #4]
  53270. 8015e54: 4806 ldr r0, [pc, #24] @ (8015e70 <netconn_tcp_recvd_msg+0x5c>)
  53271. 8015e56: f7ff fd6f bl 8015938 <netconn_apimsg>
  53272. 8015e5a: 4603 mov r3, r0
  53273. }
  53274. 8015e5c: 4618 mov r0, r3
  53275. 8015e5e: 3710 adds r7, #16
  53276. 8015e60: 46bd mov sp, r7
  53277. 8015e62: bd80 pop {r7, pc}
  53278. 8015e64: 0802d418 .word 0x0802d418
  53279. 8015e68: 0802d678 .word 0x0802d678
  53280. 8015e6c: 0802d470 .word 0x0802d470
  53281. 8015e70: 08017587 .word 0x08017587
  53282. 08015e74 <netconn_tcp_recvd>:
  53283. err_t
  53284. netconn_tcp_recvd(struct netconn *conn, size_t len)
  53285. {
  53286. 8015e74: b580 push {r7, lr}
  53287. 8015e76: b08c sub sp, #48 @ 0x30
  53288. 8015e78: af00 add r7, sp, #0
  53289. 8015e7a: 6078 str r0, [r7, #4]
  53290. 8015e7c: 6039 str r1, [r7, #0]
  53291. err_t err;
  53292. API_MSG_VAR_DECLARE(msg);
  53293. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  53294. 8015e7e: 687b ldr r3, [r7, #4]
  53295. 8015e80: 2b00 cmp r3, #0
  53296. 8015e82: d005 beq.n 8015e90 <netconn_tcp_recvd+0x1c>
  53297. 8015e84: 687b ldr r3, [r7, #4]
  53298. 8015e86: 781b ldrb r3, [r3, #0]
  53299. 8015e88: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53300. 8015e8c: 2b10 cmp r3, #16
  53301. 8015e8e: d009 beq.n 8015ea4 <netconn_tcp_recvd+0x30>
  53302. 8015e90: 4b0c ldr r3, [pc, #48] @ (8015ec4 <netconn_tcp_recvd+0x50>)
  53303. 8015e92: f240 22b5 movw r2, #693 @ 0x2b5
  53304. 8015e96: 490c ldr r1, [pc, #48] @ (8015ec8 <netconn_tcp_recvd+0x54>)
  53305. 8015e98: 480c ldr r0, [pc, #48] @ (8015ecc <netconn_tcp_recvd+0x58>)
  53306. 8015e9a: f014 f98f bl 802a1bc <iprintf>
  53307. 8015e9e: f06f 030f mvn.w r3, #15
  53308. 8015ea2: e00b b.n 8015ebc <netconn_tcp_recvd+0x48>
  53309. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  53310. API_MSG_VAR_ALLOC(msg);
  53311. err = netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  53312. 8015ea4: f107 030c add.w r3, r7, #12
  53313. 8015ea8: 461a mov r2, r3
  53314. 8015eaa: 6839 ldr r1, [r7, #0]
  53315. 8015eac: 6878 ldr r0, [r7, #4]
  53316. 8015eae: f7ff ffb1 bl 8015e14 <netconn_tcp_recvd_msg>
  53317. 8015eb2: 4603 mov r3, r0
  53318. 8015eb4: f887 302f strb.w r3, [r7, #47] @ 0x2f
  53319. API_MSG_VAR_FREE(msg);
  53320. return err;
  53321. 8015eb8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  53322. }
  53323. 8015ebc: 4618 mov r0, r3
  53324. 8015ebe: 3730 adds r7, #48 @ 0x30
  53325. 8015ec0: 46bd mov sp, r7
  53326. 8015ec2: bd80 pop {r7, pc}
  53327. 8015ec4: 0802d418 .word 0x0802d418
  53328. 8015ec8: 0802d678 .word 0x0802d678
  53329. 8015ecc: 0802d470 .word 0x0802d470
  53330. 08015ed0 <netconn_recv_data_tcp>:
  53331. static err_t
  53332. netconn_recv_data_tcp(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  53333. {
  53334. 8015ed0: b580 push {r7, lr}
  53335. 8015ed2: b090 sub sp, #64 @ 0x40
  53336. 8015ed4: af00 add r7, sp, #0
  53337. 8015ed6: 60f8 str r0, [r7, #12]
  53338. 8015ed8: 60b9 str r1, [r7, #8]
  53339. 8015eda: 4613 mov r3, r2
  53340. 8015edc: 71fb strb r3, [r7, #7]
  53341. API_MSG_VAR_DECLARE(msg);
  53342. #if LWIP_MPU_COMPATIBLE
  53343. msg = NULL;
  53344. #endif
  53345. if (!NETCONN_RECVMBOX_WAITABLE(conn)) {
  53346. 8015ede: 68fb ldr r3, [r7, #12]
  53347. 8015ee0: 3310 adds r3, #16
  53348. 8015ee2: 4618 mov r0, r3
  53349. 8015ee4: f010 fdca bl 8026a7c <sys_mbox_valid>
  53350. 8015ee8: 4603 mov r3, r0
  53351. 8015eea: 2b00 cmp r3, #0
  53352. 8015eec: d102 bne.n 8015ef4 <netconn_recv_data_tcp+0x24>
  53353. /* This only happens when calling this function more than once *after* receiving FIN */
  53354. return ERR_CONN;
  53355. 8015eee: f06f 030a mvn.w r3, #10
  53356. 8015ef2: e072 b.n 8015fda <netconn_recv_data_tcp+0x10a>
  53357. }
  53358. if (netconn_is_flag_set(conn, NETCONN_FIN_RX_PENDING)) {
  53359. 8015ef4: 68fb ldr r3, [r7, #12]
  53360. 8015ef6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53361. 8015efa: b25b sxtb r3, r3
  53362. 8015efc: 2b00 cmp r3, #0
  53363. 8015efe: da09 bge.n 8015f14 <netconn_recv_data_tcp+0x44>
  53364. netconn_clear_flags(conn, NETCONN_FIN_RX_PENDING);
  53365. 8015f00: 68fb ldr r3, [r7, #12]
  53366. 8015f02: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53367. 8015f06: f003 037f and.w r3, r3, #127 @ 0x7f
  53368. 8015f0a: b2da uxtb r2, r3
  53369. 8015f0c: 68fb ldr r3, [r7, #12]
  53370. 8015f0e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  53371. goto handle_fin;
  53372. 8015f12: e03b b.n 8015f8c <netconn_recv_data_tcp+0xbc>
  53373. /* need to allocate API message here so empty message pool does not result in event loss
  53374. * see bug #47512: MPU_COMPATIBLE may fail on empty pool */
  53375. API_MSG_VAR_ALLOC(msg);
  53376. }
  53377. err = netconn_recv_data(conn, (void **)new_buf, apiflags);
  53378. 8015f14: 79fb ldrb r3, [r7, #7]
  53379. 8015f16: 461a mov r2, r3
  53380. 8015f18: 68b9 ldr r1, [r7, #8]
  53381. 8015f1a: 68f8 ldr r0, [r7, #12]
  53382. 8015f1c: f7ff fe9a bl 8015c54 <netconn_recv_data>
  53383. 8015f20: 4603 mov r3, r0
  53384. 8015f22: f887 303f strb.w r3, [r7, #63] @ 0x3f
  53385. if (err != ERR_OK) {
  53386. 8015f26: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  53387. 8015f2a: 2b00 cmp r3, #0
  53388. 8015f2c: d002 beq.n 8015f34 <netconn_recv_data_tcp+0x64>
  53389. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  53390. API_MSG_VAR_FREE(msg);
  53391. }
  53392. return err;
  53393. 8015f2e: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  53394. 8015f32: e052 b.n 8015fda <netconn_recv_data_tcp+0x10a>
  53395. }
  53396. buf = *new_buf;
  53397. 8015f34: 68bb ldr r3, [r7, #8]
  53398. 8015f36: 681b ldr r3, [r3, #0]
  53399. 8015f38: 63bb str r3, [r7, #56] @ 0x38
  53400. if (!(apiflags & NETCONN_NOAUTORCVD)) {
  53401. 8015f3a: 79fb ldrb r3, [r7, #7]
  53402. 8015f3c: f003 0308 and.w r3, r3, #8
  53403. 8015f40: 2b00 cmp r3, #0
  53404. 8015f42: d10e bne.n 8015f62 <netconn_recv_data_tcp+0x92>
  53405. /* Let the stack know that we have taken the data. */
  53406. u16_t len = buf ? buf->tot_len : 1;
  53407. 8015f44: 6bbb ldr r3, [r7, #56] @ 0x38
  53408. 8015f46: 2b00 cmp r3, #0
  53409. 8015f48: d002 beq.n 8015f50 <netconn_recv_data_tcp+0x80>
  53410. 8015f4a: 6bbb ldr r3, [r7, #56] @ 0x38
  53411. 8015f4c: 891b ldrh r3, [r3, #8]
  53412. 8015f4e: e000 b.n 8015f52 <netconn_recv_data_tcp+0x82>
  53413. 8015f50: 2301 movs r3, #1
  53414. 8015f52: 86fb strh r3, [r7, #54] @ 0x36
  53415. /* don't care for the return value of lwip_netconn_do_recv */
  53416. /* @todo: this should really be fixed, e.g. by retrying in poll on error */
  53417. netconn_tcp_recvd_msg(conn, len, &API_VAR_REF(msg));
  53418. 8015f54: 8efb ldrh r3, [r7, #54] @ 0x36
  53419. 8015f56: f107 0214 add.w r2, r7, #20
  53420. 8015f5a: 4619 mov r1, r3
  53421. 8015f5c: 68f8 ldr r0, [r7, #12]
  53422. 8015f5e: f7ff ff59 bl 8015e14 <netconn_tcp_recvd_msg>
  53423. API_MSG_VAR_FREE(msg);
  53424. }
  53425. /* If we are closed, we indicate that we no longer wish to use the socket */
  53426. if (buf == NULL) {
  53427. 8015f62: 6bbb ldr r3, [r7, #56] @ 0x38
  53428. 8015f64: 2b00 cmp r3, #0
  53429. 8015f66: d136 bne.n 8015fd6 <netconn_recv_data_tcp+0x106>
  53430. if (apiflags & NETCONN_NOFIN) {
  53431. 8015f68: 79fb ldrb r3, [r7, #7]
  53432. 8015f6a: f003 0310 and.w r3, r3, #16
  53433. 8015f6e: 2b00 cmp r3, #0
  53434. 8015f70: d00b beq.n 8015f8a <netconn_recv_data_tcp+0xba>
  53435. /* received a FIN but the caller cannot handle it right now:
  53436. re-enqueue it and return "no data" */
  53437. netconn_set_flags(conn, NETCONN_FIN_RX_PENDING);
  53438. 8015f72: 68fb ldr r3, [r7, #12]
  53439. 8015f74: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53440. 8015f78: f063 037f orn r3, r3, #127 @ 0x7f
  53441. 8015f7c: b2da uxtb r2, r3
  53442. 8015f7e: 68fb ldr r3, [r7, #12]
  53443. 8015f80: f883 2028 strb.w r2, [r3, #40] @ 0x28
  53444. return ERR_WOULDBLOCK;
  53445. 8015f84: f06f 0306 mvn.w r3, #6
  53446. 8015f88: e027 b.n 8015fda <netconn_recv_data_tcp+0x10a>
  53447. } else {
  53448. handle_fin:
  53449. 8015f8a: bf00 nop
  53450. API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0);
  53451. 8015f8c: 68fb ldr r3, [r7, #12]
  53452. 8015f8e: 6b1b ldr r3, [r3, #48] @ 0x30
  53453. 8015f90: 2b00 cmp r3, #0
  53454. 8015f92: d005 beq.n 8015fa0 <netconn_recv_data_tcp+0xd0>
  53455. 8015f94: 68fb ldr r3, [r7, #12]
  53456. 8015f96: 6b1b ldr r3, [r3, #48] @ 0x30
  53457. 8015f98: 2200 movs r2, #0
  53458. 8015f9a: 2101 movs r1, #1
  53459. 8015f9c: 68f8 ldr r0, [r7, #12]
  53460. 8015f9e: 4798 blx r3
  53461. if (conn->pcb.ip == NULL) {
  53462. 8015fa0: 68fb ldr r3, [r7, #12]
  53463. 8015fa2: 685b ldr r3, [r3, #4]
  53464. 8015fa4: 2b00 cmp r3, #0
  53465. 8015fa6: d10f bne.n 8015fc8 <netconn_recv_data_tcp+0xf8>
  53466. /* race condition: RST during recv */
  53467. err = netconn_err(conn);
  53468. 8015fa8: 68f8 ldr r0, [r7, #12]
  53469. 8015faa: f000 f9a3 bl 80162f4 <netconn_err>
  53470. 8015fae: 4603 mov r3, r0
  53471. 8015fb0: f887 303f strb.w r3, [r7, #63] @ 0x3f
  53472. if (err != ERR_OK) {
  53473. 8015fb4: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  53474. 8015fb8: 2b00 cmp r3, #0
  53475. 8015fba: d002 beq.n 8015fc2 <netconn_recv_data_tcp+0xf2>
  53476. return err;
  53477. 8015fbc: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  53478. 8015fc0: e00b b.n 8015fda <netconn_recv_data_tcp+0x10a>
  53479. }
  53480. return ERR_RST;
  53481. 8015fc2: f06f 030d mvn.w r3, #13
  53482. 8015fc6: e008 b.n 8015fda <netconn_recv_data_tcp+0x10a>
  53483. }
  53484. /* RX side is closed, so deallocate the recvmbox */
  53485. netconn_close_shutdown(conn, NETCONN_SHUT_RD);
  53486. 8015fc8: 2101 movs r1, #1
  53487. 8015fca: 68f8 ldr r0, [r7, #12]
  53488. 8015fcc: f000 f962 bl 8016294 <netconn_close_shutdown>
  53489. /* Don' store ERR_CLSD as conn->err since we are only half-closed */
  53490. return ERR_CLSD;
  53491. 8015fd0: f06f 030e mvn.w r3, #14
  53492. 8015fd4: e001 b.n 8015fda <netconn_recv_data_tcp+0x10a>
  53493. }
  53494. }
  53495. return err;
  53496. 8015fd6: f997 303f ldrsb.w r3, [r7, #63] @ 0x3f
  53497. }
  53498. 8015fda: 4618 mov r0, r3
  53499. 8015fdc: 3740 adds r7, #64 @ 0x40
  53500. 8015fde: 46bd mov sp, r7
  53501. 8015fe0: bd80 pop {r7, pc}
  53502. ...
  53503. 08015fe4 <netconn_recv_tcp_pbuf_flags>:
  53504. * memory error or another error, @see netconn_recv_data)
  53505. * ERR_ARG if conn is not a TCP netconn
  53506. */
  53507. err_t
  53508. netconn_recv_tcp_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags)
  53509. {
  53510. 8015fe4: b580 push {r7, lr}
  53511. 8015fe6: b084 sub sp, #16
  53512. 8015fe8: af00 add r7, sp, #0
  53513. 8015fea: 60f8 str r0, [r7, #12]
  53514. 8015fec: 60b9 str r1, [r7, #8]
  53515. 8015fee: 4613 mov r3, r2
  53516. 8015ff0: 71fb strb r3, [r7, #7]
  53517. LWIP_ERROR("netconn_recv_tcp_pbuf: invalid conn", (conn != NULL) &&
  53518. 8015ff2: 68fb ldr r3, [r7, #12]
  53519. 8015ff4: 2b00 cmp r3, #0
  53520. 8015ff6: d005 beq.n 8016004 <netconn_recv_tcp_pbuf_flags+0x20>
  53521. 8015ff8: 68fb ldr r3, [r7, #12]
  53522. 8015ffa: 781b ldrb r3, [r3, #0]
  53523. 8015ffc: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53524. 8016000: 2b10 cmp r3, #16
  53525. 8016002: d009 beq.n 8016018 <netconn_recv_tcp_pbuf_flags+0x34>
  53526. 8016004: 4b0a ldr r3, [pc, #40] @ (8016030 <netconn_recv_tcp_pbuf_flags+0x4c>)
  53527. 8016006: f240 3225 movw r2, #805 @ 0x325
  53528. 801600a: 490a ldr r1, [pc, #40] @ (8016034 <netconn_recv_tcp_pbuf_flags+0x50>)
  53529. 801600c: 480a ldr r0, [pc, #40] @ (8016038 <netconn_recv_tcp_pbuf_flags+0x54>)
  53530. 801600e: f014 f8d5 bl 802a1bc <iprintf>
  53531. 8016012: f06f 030f mvn.w r3, #15
  53532. 8016016: e006 b.n 8016026 <netconn_recv_tcp_pbuf_flags+0x42>
  53533. NETCONNTYPE_GROUP(netconn_type(conn)) == NETCONN_TCP, return ERR_ARG;);
  53534. return netconn_recv_data_tcp(conn, new_buf, apiflags);
  53535. 8016018: 79fb ldrb r3, [r7, #7]
  53536. 801601a: 461a mov r2, r3
  53537. 801601c: 68b9 ldr r1, [r7, #8]
  53538. 801601e: 68f8 ldr r0, [r7, #12]
  53539. 8016020: f7ff ff56 bl 8015ed0 <netconn_recv_data_tcp>
  53540. 8016024: 4603 mov r3, r0
  53541. }
  53542. 8016026: 4618 mov r0, r3
  53543. 8016028: 3710 adds r7, #16
  53544. 801602a: 46bd mov sp, r7
  53545. 801602c: bd80 pop {r7, pc}
  53546. 801602e: bf00 nop
  53547. 8016030: 0802d418 .word 0x0802d418
  53548. 8016034: 0802d678 .word 0x0802d678
  53549. 8016038: 0802d470 .word 0x0802d470
  53550. 0801603c <netconn_recv_udp_raw_netbuf_flags>:
  53551. * memory error or another error)
  53552. * ERR_ARG if conn is not a UDP/RAW netconn
  53553. */
  53554. err_t
  53555. netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apiflags)
  53556. {
  53557. 801603c: b580 push {r7, lr}
  53558. 801603e: b084 sub sp, #16
  53559. 8016040: af00 add r7, sp, #0
  53560. 8016042: 60f8 str r0, [r7, #12]
  53561. 8016044: 60b9 str r1, [r7, #8]
  53562. 8016046: 4613 mov r3, r2
  53563. 8016048: 71fb strb r3, [r7, #7]
  53564. LWIP_ERROR("netconn_recv_udp_raw_netbuf: invalid conn", (conn != NULL) &&
  53565. 801604a: 68fb ldr r3, [r7, #12]
  53566. 801604c: 2b00 cmp r3, #0
  53567. 801604e: d005 beq.n 801605c <netconn_recv_udp_raw_netbuf_flags+0x20>
  53568. 8016050: 68fb ldr r3, [r7, #12]
  53569. 8016052: 781b ldrb r3, [r3, #0]
  53570. 8016054: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53571. 8016058: 2b10 cmp r3, #16
  53572. 801605a: d109 bne.n 8016070 <netconn_recv_udp_raw_netbuf_flags+0x34>
  53573. 801605c: 4b0a ldr r3, [pc, #40] @ (8016088 <netconn_recv_udp_raw_netbuf_flags+0x4c>)
  53574. 801605e: f44f 7253 mov.w r2, #844 @ 0x34c
  53575. 8016062: 490a ldr r1, [pc, #40] @ (801608c <netconn_recv_udp_raw_netbuf_flags+0x50>)
  53576. 8016064: 480a ldr r0, [pc, #40] @ (8016090 <netconn_recv_udp_raw_netbuf_flags+0x54>)
  53577. 8016066: f014 f8a9 bl 802a1bc <iprintf>
  53578. 801606a: f06f 030f mvn.w r3, #15
  53579. 801606e: e006 b.n 801607e <netconn_recv_udp_raw_netbuf_flags+0x42>
  53580. NETCONNTYPE_GROUP(netconn_type(conn)) != NETCONN_TCP, return ERR_ARG;);
  53581. return netconn_recv_data(conn, (void **)new_buf, apiflags);
  53582. 8016070: 79fb ldrb r3, [r7, #7]
  53583. 8016072: 461a mov r2, r3
  53584. 8016074: 68b9 ldr r1, [r7, #8]
  53585. 8016076: 68f8 ldr r0, [r7, #12]
  53586. 8016078: f7ff fdec bl 8015c54 <netconn_recv_data>
  53587. 801607c: 4603 mov r3, r0
  53588. }
  53589. 801607e: 4618 mov r0, r3
  53590. 8016080: 3710 adds r7, #16
  53591. 8016082: 46bd mov sp, r7
  53592. 8016084: bd80 pop {r7, pc}
  53593. 8016086: bf00 nop
  53594. 8016088: 0802d418 .word 0x0802d418
  53595. 801608c: 0802d69c .word 0x0802d69c
  53596. 8016090: 0802d470 .word 0x0802d470
  53597. 08016094 <netconn_send>:
  53598. * @param buf a netbuf containing the data to send
  53599. * @return ERR_OK if data was sent, any other err_t on error
  53600. */
  53601. err_t
  53602. netconn_send(struct netconn *conn, struct netbuf *buf)
  53603. {
  53604. 8016094: b580 push {r7, lr}
  53605. 8016096: b08c sub sp, #48 @ 0x30
  53606. 8016098: af00 add r7, sp, #0
  53607. 801609a: 6078 str r0, [r7, #4]
  53608. 801609c: 6039 str r1, [r7, #0]
  53609. API_MSG_VAR_DECLARE(msg);
  53610. err_t err;
  53611. LWIP_ERROR("netconn_send: invalid conn", (conn != NULL), return ERR_ARG;);
  53612. 801609e: 687b ldr r3, [r7, #4]
  53613. 80160a0: 2b00 cmp r3, #0
  53614. 80160a2: d109 bne.n 80160b8 <netconn_send+0x24>
  53615. 80160a4: 4b0e ldr r3, [pc, #56] @ (80160e0 <netconn_send+0x4c>)
  53616. 80160a6: f240 32b2 movw r2, #946 @ 0x3b2
  53617. 80160aa: 490e ldr r1, [pc, #56] @ (80160e4 <netconn_send+0x50>)
  53618. 80160ac: 480e ldr r0, [pc, #56] @ (80160e8 <netconn_send+0x54>)
  53619. 80160ae: f014 f885 bl 802a1bc <iprintf>
  53620. 80160b2: f06f 030f mvn.w r3, #15
  53621. 80160b6: e00e b.n 80160d6 <netconn_send+0x42>
  53622. LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %"U16_F" bytes\n", buf->p->tot_len));
  53623. API_MSG_VAR_ALLOC(msg);
  53624. API_MSG_VAR_REF(msg).conn = conn;
  53625. 80160b8: 687b ldr r3, [r7, #4]
  53626. 80160ba: 60fb str r3, [r7, #12]
  53627. API_MSG_VAR_REF(msg).msg.b = buf;
  53628. 80160bc: 683b ldr r3, [r7, #0]
  53629. 80160be: 617b str r3, [r7, #20]
  53630. err = netconn_apimsg(lwip_netconn_do_send, &API_MSG_VAR_REF(msg));
  53631. 80160c0: f107 030c add.w r3, r7, #12
  53632. 80160c4: 4619 mov r1, r3
  53633. 80160c6: 4809 ldr r0, [pc, #36] @ (80160ec <netconn_send+0x58>)
  53634. 80160c8: f7ff fc36 bl 8015938 <netconn_apimsg>
  53635. 80160cc: 4603 mov r3, r0
  53636. 80160ce: f887 302f strb.w r3, [r7, #47] @ 0x2f
  53637. API_MSG_VAR_FREE(msg);
  53638. return err;
  53639. 80160d2: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  53640. }
  53641. 80160d6: 4618 mov r0, r3
  53642. 80160d8: 3730 adds r7, #48 @ 0x30
  53643. 80160da: 46bd mov sp, r7
  53644. 80160dc: bd80 pop {r7, pc}
  53645. 80160de: bf00 nop
  53646. 80160e0: 0802d418 .word 0x0802d418
  53647. 80160e4: 0802d6d4 .word 0x0802d6d4
  53648. 80160e8: 0802d470 .word 0x0802d470
  53649. 80160ec: 080174ed .word 0x080174ed
  53650. 080160f0 <netconn_write_partly>:
  53651. * @return ERR_OK if data was sent, any other err_t on error
  53652. */
  53653. err_t
  53654. netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
  53655. u8_t apiflags, size_t *bytes_written)
  53656. {
  53657. 80160f0: b580 push {r7, lr}
  53658. 80160f2: b088 sub sp, #32
  53659. 80160f4: af02 add r7, sp, #8
  53660. 80160f6: 60f8 str r0, [r7, #12]
  53661. 80160f8: 60b9 str r1, [r7, #8]
  53662. 80160fa: 607a str r2, [r7, #4]
  53663. 80160fc: 70fb strb r3, [r7, #3]
  53664. struct netvector vector;
  53665. vector.ptr = dataptr;
  53666. 80160fe: 68bb ldr r3, [r7, #8]
  53667. 8016100: 613b str r3, [r7, #16]
  53668. vector.len = size;
  53669. 8016102: 687b ldr r3, [r7, #4]
  53670. 8016104: 617b str r3, [r7, #20]
  53671. return netconn_write_vectors_partly(conn, &vector, 1, apiflags, bytes_written);
  53672. 8016106: 78fa ldrb r2, [r7, #3]
  53673. 8016108: f107 0110 add.w r1, r7, #16
  53674. 801610c: 6a3b ldr r3, [r7, #32]
  53675. 801610e: 9300 str r3, [sp, #0]
  53676. 8016110: 4613 mov r3, r2
  53677. 8016112: 2201 movs r2, #1
  53678. 8016114: 68f8 ldr r0, [r7, #12]
  53679. 8016116: f000 f805 bl 8016124 <netconn_write_vectors_partly>
  53680. 801611a: 4603 mov r3, r0
  53681. }
  53682. 801611c: 4618 mov r0, r3
  53683. 801611e: 3718 adds r7, #24
  53684. 8016120: 46bd mov sp, r7
  53685. 8016122: bd80 pop {r7, pc}
  53686. 08016124 <netconn_write_vectors_partly>:
  53687. * @return ERR_OK if data was sent, any other err_t on error
  53688. */
  53689. err_t
  53690. netconn_write_vectors_partly(struct netconn *conn, struct netvector *vectors, u16_t vectorcnt,
  53691. u8_t apiflags, size_t *bytes_written)
  53692. {
  53693. 8016124: b580 push {r7, lr}
  53694. 8016126: b092 sub sp, #72 @ 0x48
  53695. 8016128: af00 add r7, sp, #0
  53696. 801612a: 60f8 str r0, [r7, #12]
  53697. 801612c: 60b9 str r1, [r7, #8]
  53698. 801612e: 4611 mov r1, r2
  53699. 8016130: 461a mov r2, r3
  53700. 8016132: 460b mov r3, r1
  53701. 8016134: 80fb strh r3, [r7, #6]
  53702. 8016136: 4613 mov r3, r2
  53703. 8016138: 717b strb r3, [r7, #5]
  53704. err_t err;
  53705. u8_t dontblock;
  53706. size_t size;
  53707. int i;
  53708. LWIP_ERROR("netconn_write: invalid conn", (conn != NULL), return ERR_ARG;);
  53709. 801613a: 68fb ldr r3, [r7, #12]
  53710. 801613c: 2b00 cmp r3, #0
  53711. 801613e: d109 bne.n 8016154 <netconn_write_vectors_partly+0x30>
  53712. 8016140: 4b4e ldr r3, [pc, #312] @ (801627c <netconn_write_vectors_partly+0x158>)
  53713. 8016142: f240 32ee movw r2, #1006 @ 0x3ee
  53714. 8016146: 494e ldr r1, [pc, #312] @ (8016280 <netconn_write_vectors_partly+0x15c>)
  53715. 8016148: 484e ldr r0, [pc, #312] @ (8016284 <netconn_write_vectors_partly+0x160>)
  53716. 801614a: f014 f837 bl 802a1bc <iprintf>
  53717. 801614e: f06f 030f mvn.w r3, #15
  53718. 8016152: e08f b.n 8016274 <netconn_write_vectors_partly+0x150>
  53719. LWIP_ERROR("netconn_write: invalid conn->type", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP), return ERR_VAL;);
  53720. 8016154: 68fb ldr r3, [r7, #12]
  53721. 8016156: 781b ldrb r3, [r3, #0]
  53722. 8016158: f003 03f0 and.w r3, r3, #240 @ 0xf0
  53723. 801615c: 2b10 cmp r3, #16
  53724. 801615e: d009 beq.n 8016174 <netconn_write_vectors_partly+0x50>
  53725. 8016160: 4b46 ldr r3, [pc, #280] @ (801627c <netconn_write_vectors_partly+0x158>)
  53726. 8016162: f240 32ef movw r2, #1007 @ 0x3ef
  53727. 8016166: 4948 ldr r1, [pc, #288] @ (8016288 <netconn_write_vectors_partly+0x164>)
  53728. 8016168: 4846 ldr r0, [pc, #280] @ (8016284 <netconn_write_vectors_partly+0x160>)
  53729. 801616a: f014 f827 bl 802a1bc <iprintf>
  53730. 801616e: f06f 0305 mvn.w r3, #5
  53731. 8016172: e07f b.n 8016274 <netconn_write_vectors_partly+0x150>
  53732. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  53733. 8016174: 68fb ldr r3, [r7, #12]
  53734. 8016176: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  53735. 801617a: f003 0302 and.w r3, r3, #2
  53736. 801617e: 2b00 cmp r3, #0
  53737. 8016180: d104 bne.n 801618c <netconn_write_vectors_partly+0x68>
  53738. 8016182: 797b ldrb r3, [r7, #5]
  53739. 8016184: f003 0304 and.w r3, r3, #4
  53740. 8016188: 2b00 cmp r3, #0
  53741. 801618a: d001 beq.n 8016190 <netconn_write_vectors_partly+0x6c>
  53742. 801618c: 2301 movs r3, #1
  53743. 801618e: e000 b.n 8016192 <netconn_write_vectors_partly+0x6e>
  53744. 8016190: 2300 movs r3, #0
  53745. 8016192: f887 303f strb.w r3, [r7, #63] @ 0x3f
  53746. #if LWIP_SO_SNDTIMEO
  53747. if (conn->send_timeout != 0) {
  53748. dontblock = 1;
  53749. }
  53750. #endif /* LWIP_SO_SNDTIMEO */
  53751. if (dontblock && !bytes_written) {
  53752. 8016196: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  53753. 801619a: 2b00 cmp r3, #0
  53754. 801619c: d005 beq.n 80161aa <netconn_write_vectors_partly+0x86>
  53755. 801619e: 6d3b ldr r3, [r7, #80] @ 0x50
  53756. 80161a0: 2b00 cmp r3, #0
  53757. 80161a2: d102 bne.n 80161aa <netconn_write_vectors_partly+0x86>
  53758. /* This implies netconn_write() cannot be used for non-blocking send, since
  53759. it has no way to return the number of bytes written. */
  53760. return ERR_VAL;
  53761. 80161a4: f06f 0305 mvn.w r3, #5
  53762. 80161a8: e064 b.n 8016274 <netconn_write_vectors_partly+0x150>
  53763. }
  53764. /* sum up the total size */
  53765. size = 0;
  53766. 80161aa: 2300 movs r3, #0
  53767. 80161ac: 647b str r3, [r7, #68] @ 0x44
  53768. for (i = 0; i < vectorcnt; i++) {
  53769. 80161ae: 2300 movs r3, #0
  53770. 80161b0: 643b str r3, [r7, #64] @ 0x40
  53771. 80161b2: e015 b.n 80161e0 <netconn_write_vectors_partly+0xbc>
  53772. size += vectors[i].len;
  53773. 80161b4: 6c3b ldr r3, [r7, #64] @ 0x40
  53774. 80161b6: 00db lsls r3, r3, #3
  53775. 80161b8: 68ba ldr r2, [r7, #8]
  53776. 80161ba: 4413 add r3, r2
  53777. 80161bc: 685b ldr r3, [r3, #4]
  53778. 80161be: 6c7a ldr r2, [r7, #68] @ 0x44
  53779. 80161c0: 4413 add r3, r2
  53780. 80161c2: 647b str r3, [r7, #68] @ 0x44
  53781. if (size < vectors[i].len) {
  53782. 80161c4: 6c3b ldr r3, [r7, #64] @ 0x40
  53783. 80161c6: 00db lsls r3, r3, #3
  53784. 80161c8: 68ba ldr r2, [r7, #8]
  53785. 80161ca: 4413 add r3, r2
  53786. 80161cc: 685b ldr r3, [r3, #4]
  53787. 80161ce: 6c7a ldr r2, [r7, #68] @ 0x44
  53788. 80161d0: 429a cmp r2, r3
  53789. 80161d2: d202 bcs.n 80161da <netconn_write_vectors_partly+0xb6>
  53790. /* overflow */
  53791. return ERR_VAL;
  53792. 80161d4: f06f 0305 mvn.w r3, #5
  53793. 80161d8: e04c b.n 8016274 <netconn_write_vectors_partly+0x150>
  53794. for (i = 0; i < vectorcnt; i++) {
  53795. 80161da: 6c3b ldr r3, [r7, #64] @ 0x40
  53796. 80161dc: 3301 adds r3, #1
  53797. 80161de: 643b str r3, [r7, #64] @ 0x40
  53798. 80161e0: 88fb ldrh r3, [r7, #6]
  53799. 80161e2: 6c3a ldr r2, [r7, #64] @ 0x40
  53800. 80161e4: 429a cmp r2, r3
  53801. 80161e6: dbe5 blt.n 80161b4 <netconn_write_vectors_partly+0x90>
  53802. }
  53803. }
  53804. if (size == 0) {
  53805. 80161e8: 6c7b ldr r3, [r7, #68] @ 0x44
  53806. 80161ea: 2b00 cmp r3, #0
  53807. 80161ec: d101 bne.n 80161f2 <netconn_write_vectors_partly+0xce>
  53808. return ERR_OK;
  53809. 80161ee: 2300 movs r3, #0
  53810. 80161f0: e040 b.n 8016274 <netconn_write_vectors_partly+0x150>
  53811. } else if (size > SSIZE_MAX) {
  53812. 80161f2: 6c7b ldr r3, [r7, #68] @ 0x44
  53813. 80161f4: 2b00 cmp r3, #0
  53814. 80161f6: da0a bge.n 801620e <netconn_write_vectors_partly+0xea>
  53815. ssize_t limited;
  53816. /* this is required by the socket layer (cannot send full size_t range) */
  53817. if (!bytes_written) {
  53818. 80161f8: 6d3b ldr r3, [r7, #80] @ 0x50
  53819. 80161fa: 2b00 cmp r3, #0
  53820. 80161fc: d102 bne.n 8016204 <netconn_write_vectors_partly+0xe0>
  53821. return ERR_VAL;
  53822. 80161fe: f06f 0305 mvn.w r3, #5
  53823. 8016202: e037 b.n 8016274 <netconn_write_vectors_partly+0x150>
  53824. }
  53825. /* limit the amount of data to send */
  53826. limited = SSIZE_MAX;
  53827. 8016204: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  53828. 8016208: 63bb str r3, [r7, #56] @ 0x38
  53829. size = (size_t)limited;
  53830. 801620a: 6bbb ldr r3, [r7, #56] @ 0x38
  53831. 801620c: 647b str r3, [r7, #68] @ 0x44
  53832. }
  53833. API_MSG_VAR_ALLOC(msg);
  53834. /* non-blocking write sends as much */
  53835. API_MSG_VAR_REF(msg).conn = conn;
  53836. 801620e: 68fb ldr r3, [r7, #12]
  53837. 8016210: 617b str r3, [r7, #20]
  53838. API_MSG_VAR_REF(msg).msg.w.vector = vectors;
  53839. 8016212: 68bb ldr r3, [r7, #8]
  53840. 8016214: 61fb str r3, [r7, #28]
  53841. API_MSG_VAR_REF(msg).msg.w.vector_cnt = vectorcnt;
  53842. 8016216: 88fb ldrh r3, [r7, #6]
  53843. 8016218: 843b strh r3, [r7, #32]
  53844. API_MSG_VAR_REF(msg).msg.w.vector_off = 0;
  53845. 801621a: 2300 movs r3, #0
  53846. 801621c: 627b str r3, [r7, #36] @ 0x24
  53847. API_MSG_VAR_REF(msg).msg.w.apiflags = apiflags;
  53848. 801621e: 797b ldrb r3, [r7, #5]
  53849. 8016220: f887 3030 strb.w r3, [r7, #48] @ 0x30
  53850. API_MSG_VAR_REF(msg).msg.w.len = size;
  53851. 8016224: 6c7b ldr r3, [r7, #68] @ 0x44
  53852. 8016226: 62bb str r3, [r7, #40] @ 0x28
  53853. API_MSG_VAR_REF(msg).msg.w.offset = 0;
  53854. 8016228: 2300 movs r3, #0
  53855. 801622a: 62fb str r3, [r7, #44] @ 0x2c
  53856. #endif /* LWIP_SO_SNDTIMEO */
  53857. /* For locking the core: this _can_ be delayed on low memory/low send buffer,
  53858. but if it is, this is done inside api_msg.c:do_write(), so we can use the
  53859. non-blocking version here. */
  53860. err = netconn_apimsg(lwip_netconn_do_write, &API_MSG_VAR_REF(msg));
  53861. 801622c: f107 0314 add.w r3, r7, #20
  53862. 8016230: 4619 mov r1, r3
  53863. 8016232: 4816 ldr r0, [pc, #88] @ (801628c <netconn_write_vectors_partly+0x168>)
  53864. 8016234: f7ff fb80 bl 8015938 <netconn_apimsg>
  53865. 8016238: 4603 mov r3, r0
  53866. 801623a: f887 3037 strb.w r3, [r7, #55] @ 0x37
  53867. if (err == ERR_OK) {
  53868. 801623e: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  53869. 8016242: 2b00 cmp r3, #0
  53870. 8016244: d114 bne.n 8016270 <netconn_write_vectors_partly+0x14c>
  53871. if (bytes_written != NULL) {
  53872. 8016246: 6d3b ldr r3, [r7, #80] @ 0x50
  53873. 8016248: 2b00 cmp r3, #0
  53874. 801624a: d002 beq.n 8016252 <netconn_write_vectors_partly+0x12e>
  53875. *bytes_written = API_MSG_VAR_REF(msg).msg.w.offset;
  53876. 801624c: 6afa ldr r2, [r7, #44] @ 0x2c
  53877. 801624e: 6d3b ldr r3, [r7, #80] @ 0x50
  53878. 8016250: 601a str r2, [r3, #0]
  53879. }
  53880. /* for blocking, check all requested bytes were written, NOTE: send_timeout is
  53881. treated as dontblock (see dontblock assignment above) */
  53882. if (!dontblock) {
  53883. 8016252: f897 303f ldrb.w r3, [r7, #63] @ 0x3f
  53884. 8016256: 2b00 cmp r3, #0
  53885. 8016258: d10a bne.n 8016270 <netconn_write_vectors_partly+0x14c>
  53886. LWIP_ASSERT("do_write failed to write all bytes", API_MSG_VAR_REF(msg).msg.w.offset == size);
  53887. 801625a: 6afb ldr r3, [r7, #44] @ 0x2c
  53888. 801625c: 6c7a ldr r2, [r7, #68] @ 0x44
  53889. 801625e: 429a cmp r2, r3
  53890. 8016260: d006 beq.n 8016270 <netconn_write_vectors_partly+0x14c>
  53891. 8016262: 4b06 ldr r3, [pc, #24] @ (801627c <netconn_write_vectors_partly+0x158>)
  53892. 8016264: f44f 6286 mov.w r2, #1072 @ 0x430
  53893. 8016268: 4909 ldr r1, [pc, #36] @ (8016290 <netconn_write_vectors_partly+0x16c>)
  53894. 801626a: 4806 ldr r0, [pc, #24] @ (8016284 <netconn_write_vectors_partly+0x160>)
  53895. 801626c: f013 ffa6 bl 802a1bc <iprintf>
  53896. }
  53897. }
  53898. API_MSG_VAR_FREE(msg);
  53899. return err;
  53900. 8016270: f997 3037 ldrsb.w r3, [r7, #55] @ 0x37
  53901. }
  53902. 8016274: 4618 mov r0, r3
  53903. 8016276: 3748 adds r7, #72 @ 0x48
  53904. 8016278: 46bd mov sp, r7
  53905. 801627a: bd80 pop {r7, pc}
  53906. 801627c: 0802d418 .word 0x0802d418
  53907. 8016280: 0802d6f0 .word 0x0802d6f0
  53908. 8016284: 0802d470 .word 0x0802d470
  53909. 8016288: 0802d70c .word 0x0802d70c
  53910. 801628c: 08017991 .word 0x08017991
  53911. 8016290: 0802d730 .word 0x0802d730
  53912. 08016294 <netconn_close_shutdown>:
  53913. * @param how fully close or only shutdown one side?
  53914. * @return ERR_OK if the netconn was closed, any other err_t on error
  53915. */
  53916. static err_t
  53917. netconn_close_shutdown(struct netconn *conn, u8_t how)
  53918. {
  53919. 8016294: b580 push {r7, lr}
  53920. 8016296: b08c sub sp, #48 @ 0x30
  53921. 8016298: af00 add r7, sp, #0
  53922. 801629a: 6078 str r0, [r7, #4]
  53923. 801629c: 460b mov r3, r1
  53924. 801629e: 70fb strb r3, [r7, #3]
  53925. API_MSG_VAR_DECLARE(msg);
  53926. err_t err;
  53927. LWIP_UNUSED_ARG(how);
  53928. LWIP_ERROR("netconn_close: invalid conn", (conn != NULL), return ERR_ARG;);
  53929. 80162a0: 687b ldr r3, [r7, #4]
  53930. 80162a2: 2b00 cmp r3, #0
  53931. 80162a4: d109 bne.n 80162ba <netconn_close_shutdown+0x26>
  53932. 80162a6: 4b0f ldr r3, [pc, #60] @ (80162e4 <netconn_close_shutdown+0x50>)
  53933. 80162a8: f240 4247 movw r2, #1095 @ 0x447
  53934. 80162ac: 490e ldr r1, [pc, #56] @ (80162e8 <netconn_close_shutdown+0x54>)
  53935. 80162ae: 480f ldr r0, [pc, #60] @ (80162ec <netconn_close_shutdown+0x58>)
  53936. 80162b0: f013 ff84 bl 802a1bc <iprintf>
  53937. 80162b4: f06f 030f mvn.w r3, #15
  53938. 80162b8: e010 b.n 80162dc <netconn_close_shutdown+0x48>
  53939. API_MSG_VAR_ALLOC(msg);
  53940. API_MSG_VAR_REF(msg).conn = conn;
  53941. 80162ba: 687b ldr r3, [r7, #4]
  53942. 80162bc: 60fb str r3, [r7, #12]
  53943. #if LWIP_TCP
  53944. /* shutting down both ends is the same as closing */
  53945. API_MSG_VAR_REF(msg).msg.sd.shut = how;
  53946. 80162be: 78fb ldrb r3, [r7, #3]
  53947. 80162c0: 753b strb r3, [r7, #20]
  53948. #if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER
  53949. /* get the time we started, which is later compared to
  53950. sys_now() + conn->send_timeout */
  53951. API_MSG_VAR_REF(msg).msg.sd.time_started = sys_now();
  53952. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  53953. API_MSG_VAR_REF(msg).msg.sd.polls_left =
  53954. 80162c2: 2329 movs r3, #41 @ 0x29
  53955. 80162c4: 757b strb r3, [r7, #21]
  53956. ((LWIP_TCP_CLOSE_TIMEOUT_MS_DEFAULT + TCP_SLOW_INTERVAL - 1) / TCP_SLOW_INTERVAL) + 1;
  53957. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  53958. #endif /* LWIP_TCP */
  53959. err = netconn_apimsg(lwip_netconn_do_close, &API_MSG_VAR_REF(msg));
  53960. 80162c6: f107 030c add.w r3, r7, #12
  53961. 80162ca: 4619 mov r1, r3
  53962. 80162cc: 4808 ldr r0, [pc, #32] @ (80162f0 <netconn_close_shutdown+0x5c>)
  53963. 80162ce: f7ff fb33 bl 8015938 <netconn_apimsg>
  53964. 80162d2: 4603 mov r3, r0
  53965. 80162d4: f887 302f strb.w r3, [r7, #47] @ 0x2f
  53966. API_MSG_VAR_FREE(msg);
  53967. return err;
  53968. 80162d8: f997 302f ldrsb.w r3, [r7, #47] @ 0x2f
  53969. }
  53970. 80162dc: 4618 mov r0, r3
  53971. 80162de: 3730 adds r7, #48 @ 0x30
  53972. 80162e0: 46bd mov sp, r7
  53973. 80162e2: bd80 pop {r7, pc}
  53974. 80162e4: 0802d418 .word 0x0802d418
  53975. 80162e8: 0802d754 .word 0x0802d754
  53976. 80162ec: 0802d470 .word 0x0802d470
  53977. 80162f0: 08017bad .word 0x08017bad
  53978. 080162f4 <netconn_err>:
  53979. * @param conn the netconn to get the error from
  53980. * @return and pending error or ERR_OK if no error was pending
  53981. */
  53982. err_t
  53983. netconn_err(struct netconn *conn)
  53984. {
  53985. 80162f4: b580 push {r7, lr}
  53986. 80162f6: b084 sub sp, #16
  53987. 80162f8: af00 add r7, sp, #0
  53988. 80162fa: 6078 str r0, [r7, #4]
  53989. err_t err;
  53990. SYS_ARCH_DECL_PROTECT(lev);
  53991. if (conn == NULL) {
  53992. 80162fc: 687b ldr r3, [r7, #4]
  53993. 80162fe: 2b00 cmp r3, #0
  53994. 8016300: d101 bne.n 8016306 <netconn_err+0x12>
  53995. return ERR_OK;
  53996. 8016302: 2300 movs r3, #0
  53997. 8016304: e00d b.n 8016322 <netconn_err+0x2e>
  53998. }
  53999. SYS_ARCH_PROTECT(lev);
  54000. 8016306: f010 fcc3 bl 8026c90 <sys_arch_protect>
  54001. 801630a: 60f8 str r0, [r7, #12]
  54002. err = conn->pending_err;
  54003. 801630c: 687b ldr r3, [r7, #4]
  54004. 801630e: 7a1b ldrb r3, [r3, #8]
  54005. 8016310: 72fb strb r3, [r7, #11]
  54006. conn->pending_err = ERR_OK;
  54007. 8016312: 687b ldr r3, [r7, #4]
  54008. 8016314: 2200 movs r2, #0
  54009. 8016316: 721a strb r2, [r3, #8]
  54010. SYS_ARCH_UNPROTECT(lev);
  54011. 8016318: 68f8 ldr r0, [r7, #12]
  54012. 801631a: f010 fcc7 bl 8026cac <sys_arch_unprotect>
  54013. return err;
  54014. 801631e: f997 300b ldrsb.w r3, [r7, #11]
  54015. }
  54016. 8016322: 4618 mov r0, r3
  54017. 8016324: 3710 adds r7, #16
  54018. 8016326: 46bd mov sp, r7
  54019. 8016328: bd80 pop {r7, pc}
  54020. ...
  54021. 0801632c <lwip_netconn_err_to_msg>:
  54022. const u8_t netconn_closed = 0;
  54023. /** Translate an error to a unique void* passed via an mbox */
  54024. static void *
  54025. lwip_netconn_err_to_msg(err_t err)
  54026. {
  54027. 801632c: b580 push {r7, lr}
  54028. 801632e: b082 sub sp, #8
  54029. 8016330: af00 add r7, sp, #0
  54030. 8016332: 4603 mov r3, r0
  54031. 8016334: 71fb strb r3, [r7, #7]
  54032. switch (err) {
  54033. 8016336: f997 3007 ldrsb.w r3, [r7, #7]
  54034. 801633a: f113 0f0d cmn.w r3, #13
  54035. 801633e: d009 beq.n 8016354 <lwip_netconn_err_to_msg+0x28>
  54036. 8016340: f113 0f0d cmn.w r3, #13
  54037. 8016344: dc0c bgt.n 8016360 <lwip_netconn_err_to_msg+0x34>
  54038. 8016346: f113 0f0f cmn.w r3, #15
  54039. 801634a: d007 beq.n 801635c <lwip_netconn_err_to_msg+0x30>
  54040. 801634c: f113 0f0e cmn.w r3, #14
  54041. 8016350: d002 beq.n 8016358 <lwip_netconn_err_to_msg+0x2c>
  54042. 8016352: e005 b.n 8016360 <lwip_netconn_err_to_msg+0x34>
  54043. case ERR_ABRT:
  54044. return LWIP_CONST_CAST(void *, &netconn_aborted);
  54045. 8016354: 4b0a ldr r3, [pc, #40] @ (8016380 <lwip_netconn_err_to_msg+0x54>)
  54046. 8016356: e00e b.n 8016376 <lwip_netconn_err_to_msg+0x4a>
  54047. case ERR_RST:
  54048. return LWIP_CONST_CAST(void *, &netconn_reset);
  54049. 8016358: 4b0a ldr r3, [pc, #40] @ (8016384 <lwip_netconn_err_to_msg+0x58>)
  54050. 801635a: e00c b.n 8016376 <lwip_netconn_err_to_msg+0x4a>
  54051. case ERR_CLSD:
  54052. return LWIP_CONST_CAST(void *, &netconn_closed);
  54053. 801635c: 4b0a ldr r3, [pc, #40] @ (8016388 <lwip_netconn_err_to_msg+0x5c>)
  54054. 801635e: e00a b.n 8016376 <lwip_netconn_err_to_msg+0x4a>
  54055. default:
  54056. LWIP_ASSERT("unhandled error", err == ERR_OK);
  54057. 8016360: f997 3007 ldrsb.w r3, [r7, #7]
  54058. 8016364: 2b00 cmp r3, #0
  54059. 8016366: d005 beq.n 8016374 <lwip_netconn_err_to_msg+0x48>
  54060. 8016368: 4b08 ldr r3, [pc, #32] @ (801638c <lwip_netconn_err_to_msg+0x60>)
  54061. 801636a: 227d movs r2, #125 @ 0x7d
  54062. 801636c: 4908 ldr r1, [pc, #32] @ (8016390 <lwip_netconn_err_to_msg+0x64>)
  54063. 801636e: 4809 ldr r0, [pc, #36] @ (8016394 <lwip_netconn_err_to_msg+0x68>)
  54064. 8016370: f013 ff24 bl 802a1bc <iprintf>
  54065. return NULL;
  54066. 8016374: 2300 movs r3, #0
  54067. }
  54068. }
  54069. 8016376: 4618 mov r0, r3
  54070. 8016378: 3708 adds r7, #8
  54071. 801637a: 46bd mov sp, r7
  54072. 801637c: bd80 pop {r7, pc}
  54073. 801637e: bf00 nop
  54074. 8016380: 08031358 .word 0x08031358
  54075. 8016384: 08031359 .word 0x08031359
  54076. 8016388: 0803135a .word 0x0803135a
  54077. 801638c: 0802d770 .word 0x0802d770
  54078. 8016390: 0802d7a4 .word 0x0802d7a4
  54079. 8016394: 0802d7b4 .word 0x0802d7b4
  54080. 08016398 <lwip_netconn_is_err_msg>:
  54081. int
  54082. lwip_netconn_is_err_msg(void *msg, err_t *err)
  54083. {
  54084. 8016398: b580 push {r7, lr}
  54085. 801639a: b082 sub sp, #8
  54086. 801639c: af00 add r7, sp, #0
  54087. 801639e: 6078 str r0, [r7, #4]
  54088. 80163a0: 6039 str r1, [r7, #0]
  54089. LWIP_ASSERT("err != NULL", err != NULL);
  54090. 80163a2: 683b ldr r3, [r7, #0]
  54091. 80163a4: 2b00 cmp r3, #0
  54092. 80163a6: d105 bne.n 80163b4 <lwip_netconn_is_err_msg+0x1c>
  54093. 80163a8: 4b12 ldr r3, [pc, #72] @ (80163f4 <lwip_netconn_is_err_msg+0x5c>)
  54094. 80163aa: 2285 movs r2, #133 @ 0x85
  54095. 80163ac: 4912 ldr r1, [pc, #72] @ (80163f8 <lwip_netconn_is_err_msg+0x60>)
  54096. 80163ae: 4813 ldr r0, [pc, #76] @ (80163fc <lwip_netconn_is_err_msg+0x64>)
  54097. 80163b0: f013 ff04 bl 802a1bc <iprintf>
  54098. if (msg == &netconn_aborted) {
  54099. 80163b4: 687b ldr r3, [r7, #4]
  54100. 80163b6: 4a12 ldr r2, [pc, #72] @ (8016400 <lwip_netconn_is_err_msg+0x68>)
  54101. 80163b8: 4293 cmp r3, r2
  54102. 80163ba: d104 bne.n 80163c6 <lwip_netconn_is_err_msg+0x2e>
  54103. *err = ERR_ABRT;
  54104. 80163bc: 683b ldr r3, [r7, #0]
  54105. 80163be: 22f3 movs r2, #243 @ 0xf3
  54106. 80163c0: 701a strb r2, [r3, #0]
  54107. return 1;
  54108. 80163c2: 2301 movs r3, #1
  54109. 80163c4: e012 b.n 80163ec <lwip_netconn_is_err_msg+0x54>
  54110. } else if (msg == &netconn_reset) {
  54111. 80163c6: 687b ldr r3, [r7, #4]
  54112. 80163c8: 4a0e ldr r2, [pc, #56] @ (8016404 <lwip_netconn_is_err_msg+0x6c>)
  54113. 80163ca: 4293 cmp r3, r2
  54114. 80163cc: d104 bne.n 80163d8 <lwip_netconn_is_err_msg+0x40>
  54115. *err = ERR_RST;
  54116. 80163ce: 683b ldr r3, [r7, #0]
  54117. 80163d0: 22f2 movs r2, #242 @ 0xf2
  54118. 80163d2: 701a strb r2, [r3, #0]
  54119. return 1;
  54120. 80163d4: 2301 movs r3, #1
  54121. 80163d6: e009 b.n 80163ec <lwip_netconn_is_err_msg+0x54>
  54122. } else if (msg == &netconn_closed) {
  54123. 80163d8: 687b ldr r3, [r7, #4]
  54124. 80163da: 4a0b ldr r2, [pc, #44] @ (8016408 <lwip_netconn_is_err_msg+0x70>)
  54125. 80163dc: 4293 cmp r3, r2
  54126. 80163de: d104 bne.n 80163ea <lwip_netconn_is_err_msg+0x52>
  54127. *err = ERR_CLSD;
  54128. 80163e0: 683b ldr r3, [r7, #0]
  54129. 80163e2: 22f1 movs r2, #241 @ 0xf1
  54130. 80163e4: 701a strb r2, [r3, #0]
  54131. return 1;
  54132. 80163e6: 2301 movs r3, #1
  54133. 80163e8: e000 b.n 80163ec <lwip_netconn_is_err_msg+0x54>
  54134. }
  54135. return 0;
  54136. 80163ea: 2300 movs r3, #0
  54137. }
  54138. 80163ec: 4618 mov r0, r3
  54139. 80163ee: 3708 adds r7, #8
  54140. 80163f0: 46bd mov sp, r7
  54141. 80163f2: bd80 pop {r7, pc}
  54142. 80163f4: 0802d770 .word 0x0802d770
  54143. 80163f8: 0802d7dc .word 0x0802d7dc
  54144. 80163fc: 0802d7b4 .word 0x0802d7b4
  54145. 8016400: 08031358 .word 0x08031358
  54146. 8016404: 08031359 .word 0x08031359
  54147. 8016408: 0803135a .word 0x0803135a
  54148. 0801640c <recv_udp>:
  54149. * @see udp.h (struct udp_pcb.recv) for parameters
  54150. */
  54151. static void
  54152. recv_udp(void *arg, struct udp_pcb *pcb, struct pbuf *p,
  54153. const ip_addr_t *addr, u16_t port)
  54154. {
  54155. 801640c: b580 push {r7, lr}
  54156. 801640e: b08a sub sp, #40 @ 0x28
  54157. 8016410: af00 add r7, sp, #0
  54158. 8016412: 60f8 str r0, [r7, #12]
  54159. 8016414: 60b9 str r1, [r7, #8]
  54160. 8016416: 607a str r2, [r7, #4]
  54161. 8016418: 603b str r3, [r7, #0]
  54162. #if LWIP_SO_RCVBUF
  54163. int recv_avail;
  54164. #endif /* LWIP_SO_RCVBUF */
  54165. LWIP_UNUSED_ARG(pcb); /* only used for asserts... */
  54166. LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL);
  54167. 801641a: 68bb ldr r3, [r7, #8]
  54168. 801641c: 2b00 cmp r3, #0
  54169. 801641e: d105 bne.n 801642c <recv_udp+0x20>
  54170. 8016420: 4b43 ldr r3, [pc, #268] @ (8016530 <recv_udp+0x124>)
  54171. 8016422: 22e5 movs r2, #229 @ 0xe5
  54172. 8016424: 4943 ldr r1, [pc, #268] @ (8016534 <recv_udp+0x128>)
  54173. 8016426: 4844 ldr r0, [pc, #272] @ (8016538 <recv_udp+0x12c>)
  54174. 8016428: f013 fec8 bl 802a1bc <iprintf>
  54175. LWIP_ASSERT("recv_udp must have an argument", arg != NULL);
  54176. 801642c: 68fb ldr r3, [r7, #12]
  54177. 801642e: 2b00 cmp r3, #0
  54178. 8016430: d105 bne.n 801643e <recv_udp+0x32>
  54179. 8016432: 4b3f ldr r3, [pc, #252] @ (8016530 <recv_udp+0x124>)
  54180. 8016434: 22e6 movs r2, #230 @ 0xe6
  54181. 8016436: 4941 ldr r1, [pc, #260] @ (801653c <recv_udp+0x130>)
  54182. 8016438: 483f ldr r0, [pc, #252] @ (8016538 <recv_udp+0x12c>)
  54183. 801643a: f013 febf bl 802a1bc <iprintf>
  54184. conn = (struct netconn *)arg;
  54185. 801643e: 68fb ldr r3, [r7, #12]
  54186. 8016440: 627b str r3, [r7, #36] @ 0x24
  54187. if (conn == NULL) {
  54188. 8016442: 6a7b ldr r3, [r7, #36] @ 0x24
  54189. 8016444: 2b00 cmp r3, #0
  54190. 8016446: d103 bne.n 8016450 <recv_udp+0x44>
  54191. pbuf_free(p);
  54192. 8016448: 6878 ldr r0, [r7, #4]
  54193. 801644a: f004 fc3f bl 801accc <pbuf_free>
  54194. return;
  54195. 801644e: e06b b.n 8016528 <recv_udp+0x11c>
  54196. }
  54197. LWIP_ASSERT("recv_udp: recv for wrong pcb!", conn->pcb.udp == pcb);
  54198. 8016450: 6a7b ldr r3, [r7, #36] @ 0x24
  54199. 8016452: 685b ldr r3, [r3, #4]
  54200. 8016454: 68ba ldr r2, [r7, #8]
  54201. 8016456: 429a cmp r2, r3
  54202. 8016458: d005 beq.n 8016466 <recv_udp+0x5a>
  54203. 801645a: 4b35 ldr r3, [pc, #212] @ (8016530 <recv_udp+0x124>)
  54204. 801645c: 22ee movs r2, #238 @ 0xee
  54205. 801645e: 4938 ldr r1, [pc, #224] @ (8016540 <recv_udp+0x134>)
  54206. 8016460: 4835 ldr r0, [pc, #212] @ (8016538 <recv_udp+0x12c>)
  54207. 8016462: f013 feab bl 802a1bc <iprintf>
  54208. #if LWIP_SO_RCVBUF
  54209. SYS_ARCH_GET(conn->recv_avail, recv_avail);
  54210. 8016466: f010 fc13 bl 8026c90 <sys_arch_protect>
  54211. 801646a: 6238 str r0, [r7, #32]
  54212. 801646c: 6a7b ldr r3, [r7, #36] @ 0x24
  54213. 801646e: 6a5b ldr r3, [r3, #36] @ 0x24
  54214. 8016470: 61fb str r3, [r7, #28]
  54215. 8016472: 6a38 ldr r0, [r7, #32]
  54216. 8016474: f010 fc1a bl 8026cac <sys_arch_unprotect>
  54217. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  54218. 8016478: 6a7b ldr r3, [r7, #36] @ 0x24
  54219. 801647a: 3310 adds r3, #16
  54220. 801647c: 4618 mov r0, r3
  54221. 801647e: f010 fafd bl 8026a7c <sys_mbox_valid>
  54222. 8016482: 4603 mov r3, r0
  54223. 8016484: 2b00 cmp r3, #0
  54224. 8016486: d008 beq.n 801649a <recv_udp+0x8e>
  54225. ((recv_avail + (int)(p->tot_len)) > conn->recv_bufsize)) {
  54226. 8016488: 687b ldr r3, [r7, #4]
  54227. 801648a: 891b ldrh r3, [r3, #8]
  54228. 801648c: 461a mov r2, r3
  54229. 801648e: 69fb ldr r3, [r7, #28]
  54230. 8016490: 441a add r2, r3
  54231. 8016492: 6a7b ldr r3, [r7, #36] @ 0x24
  54232. 8016494: 6a1b ldr r3, [r3, #32]
  54233. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox) ||
  54234. 8016496: 429a cmp r2, r3
  54235. 8016498: dd03 ble.n 80164a2 <recv_udp+0x96>
  54236. #else /* LWIP_SO_RCVBUF */
  54237. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  54238. #endif /* LWIP_SO_RCVBUF */
  54239. pbuf_free(p);
  54240. 801649a: 6878 ldr r0, [r7, #4]
  54241. 801649c: f004 fc16 bl 801accc <pbuf_free>
  54242. return;
  54243. 80164a0: e042 b.n 8016528 <recv_udp+0x11c>
  54244. }
  54245. buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
  54246. 80164a2: 2006 movs r0, #6
  54247. 80164a4: f003 fcae bl 8019e04 <memp_malloc>
  54248. 80164a8: 61b8 str r0, [r7, #24]
  54249. if (buf == NULL) {
  54250. 80164aa: 69bb ldr r3, [r7, #24]
  54251. 80164ac: 2b00 cmp r3, #0
  54252. 80164ae: d103 bne.n 80164b8 <recv_udp+0xac>
  54253. pbuf_free(p);
  54254. 80164b0: 6878 ldr r0, [r7, #4]
  54255. 80164b2: f004 fc0b bl 801accc <pbuf_free>
  54256. return;
  54257. 80164b6: e037 b.n 8016528 <recv_udp+0x11c>
  54258. } else {
  54259. buf->p = p;
  54260. 80164b8: 69bb ldr r3, [r7, #24]
  54261. 80164ba: 687a ldr r2, [r7, #4]
  54262. 80164bc: 601a str r2, [r3, #0]
  54263. buf->ptr = p;
  54264. 80164be: 69bb ldr r3, [r7, #24]
  54265. 80164c0: 687a ldr r2, [r7, #4]
  54266. 80164c2: 605a str r2, [r3, #4]
  54267. ip_addr_set(&buf->addr, addr);
  54268. 80164c4: 683b ldr r3, [r7, #0]
  54269. 80164c6: 2b00 cmp r3, #0
  54270. 80164c8: d002 beq.n 80164d0 <recv_udp+0xc4>
  54271. 80164ca: 683b ldr r3, [r7, #0]
  54272. 80164cc: 681b ldr r3, [r3, #0]
  54273. 80164ce: e000 b.n 80164d2 <recv_udp+0xc6>
  54274. 80164d0: 2300 movs r3, #0
  54275. 80164d2: 69ba ldr r2, [r7, #24]
  54276. 80164d4: 6093 str r3, [r2, #8]
  54277. buf->port = port;
  54278. 80164d6: 69bb ldr r3, [r7, #24]
  54279. 80164d8: 8e3a ldrh r2, [r7, #48] @ 0x30
  54280. 80164da: 819a strh r2, [r3, #12]
  54281. buf->toport_chksum = udphdr->dest;
  54282. }
  54283. #endif /* LWIP_NETBUF_RECVINFO */
  54284. }
  54285. len = p->tot_len;
  54286. 80164dc: 687b ldr r3, [r7, #4]
  54287. 80164de: 891b ldrh r3, [r3, #8]
  54288. 80164e0: 82fb strh r3, [r7, #22]
  54289. if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) {
  54290. 80164e2: 6a7b ldr r3, [r7, #36] @ 0x24
  54291. 80164e4: 3310 adds r3, #16
  54292. 80164e6: 69b9 ldr r1, [r7, #24]
  54293. 80164e8: 4618 mov r0, r3
  54294. 80164ea: f010 fa65 bl 80269b8 <sys_mbox_trypost>
  54295. 80164ee: 4603 mov r3, r0
  54296. 80164f0: 2b00 cmp r3, #0
  54297. 80164f2: d003 beq.n 80164fc <recv_udp+0xf0>
  54298. netbuf_delete(buf);
  54299. 80164f4: 69b8 ldr r0, [r7, #24]
  54300. 80164f6: f001 fbff bl 8017cf8 <netbuf_delete>
  54301. return;
  54302. 80164fa: e015 b.n 8016528 <recv_udp+0x11c>
  54303. } else {
  54304. #if LWIP_SO_RCVBUF
  54305. SYS_ARCH_INC(conn->recv_avail, len);
  54306. 80164fc: f010 fbc8 bl 8026c90 <sys_arch_protect>
  54307. 8016500: 6138 str r0, [r7, #16]
  54308. 8016502: 6a7b ldr r3, [r7, #36] @ 0x24
  54309. 8016504: 6a5a ldr r2, [r3, #36] @ 0x24
  54310. 8016506: 8afb ldrh r3, [r7, #22]
  54311. 8016508: 441a add r2, r3
  54312. 801650a: 6a7b ldr r3, [r7, #36] @ 0x24
  54313. 801650c: 625a str r2, [r3, #36] @ 0x24
  54314. 801650e: 6938 ldr r0, [r7, #16]
  54315. 8016510: f010 fbcc bl 8026cac <sys_arch_unprotect>
  54316. #endif /* LWIP_SO_RCVBUF */
  54317. /* Register event with callback */
  54318. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  54319. 8016514: 6a7b ldr r3, [r7, #36] @ 0x24
  54320. 8016516: 6b1b ldr r3, [r3, #48] @ 0x30
  54321. 8016518: 2b00 cmp r3, #0
  54322. 801651a: d005 beq.n 8016528 <recv_udp+0x11c>
  54323. 801651c: 6a7b ldr r3, [r7, #36] @ 0x24
  54324. 801651e: 6b1b ldr r3, [r3, #48] @ 0x30
  54325. 8016520: 8afa ldrh r2, [r7, #22]
  54326. 8016522: 2100 movs r1, #0
  54327. 8016524: 6a78 ldr r0, [r7, #36] @ 0x24
  54328. 8016526: 4798 blx r3
  54329. }
  54330. }
  54331. 8016528: 3728 adds r7, #40 @ 0x28
  54332. 801652a: 46bd mov sp, r7
  54333. 801652c: bd80 pop {r7, pc}
  54334. 801652e: bf00 nop
  54335. 8016530: 0802d770 .word 0x0802d770
  54336. 8016534: 0802d7e8 .word 0x0802d7e8
  54337. 8016538: 0802d7b4 .word 0x0802d7b4
  54338. 801653c: 0802d80c .word 0x0802d80c
  54339. 8016540: 0802d82c .word 0x0802d82c
  54340. 08016544 <recv_tcp>:
  54341. *
  54342. * @see tcp.h (struct tcp_pcb.recv) for parameters and return value
  54343. */
  54344. static err_t
  54345. recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  54346. {
  54347. 8016544: b580 push {r7, lr}
  54348. 8016546: b088 sub sp, #32
  54349. 8016548: af00 add r7, sp, #0
  54350. 801654a: 60f8 str r0, [r7, #12]
  54351. 801654c: 60b9 str r1, [r7, #8]
  54352. 801654e: 607a str r2, [r7, #4]
  54353. 8016550: 70fb strb r3, [r7, #3]
  54354. struct netconn *conn;
  54355. u16_t len;
  54356. void *msg;
  54357. LWIP_UNUSED_ARG(pcb);
  54358. LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL);
  54359. 8016552: 68bb ldr r3, [r7, #8]
  54360. 8016554: 2b00 cmp r3, #0
  54361. 8016556: d106 bne.n 8016566 <recv_tcp+0x22>
  54362. 8016558: 4b3c ldr r3, [pc, #240] @ (801664c <recv_tcp+0x108>)
  54363. 801655a: f44f 7296 mov.w r2, #300 @ 0x12c
  54364. 801655e: 493c ldr r1, [pc, #240] @ (8016650 <recv_tcp+0x10c>)
  54365. 8016560: 483c ldr r0, [pc, #240] @ (8016654 <recv_tcp+0x110>)
  54366. 8016562: f013 fe2b bl 802a1bc <iprintf>
  54367. LWIP_ASSERT("recv_tcp must have an argument", arg != NULL);
  54368. 8016566: 68fb ldr r3, [r7, #12]
  54369. 8016568: 2b00 cmp r3, #0
  54370. 801656a: d106 bne.n 801657a <recv_tcp+0x36>
  54371. 801656c: 4b37 ldr r3, [pc, #220] @ (801664c <recv_tcp+0x108>)
  54372. 801656e: f240 122d movw r2, #301 @ 0x12d
  54373. 8016572: 4939 ldr r1, [pc, #228] @ (8016658 <recv_tcp+0x114>)
  54374. 8016574: 4837 ldr r0, [pc, #220] @ (8016654 <recv_tcp+0x110>)
  54375. 8016576: f013 fe21 bl 802a1bc <iprintf>
  54376. LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK);
  54377. 801657a: f997 3003 ldrsb.w r3, [r7, #3]
  54378. 801657e: 2b00 cmp r3, #0
  54379. 8016580: d006 beq.n 8016590 <recv_tcp+0x4c>
  54380. 8016582: 4b32 ldr r3, [pc, #200] @ (801664c <recv_tcp+0x108>)
  54381. 8016584: f44f 7297 mov.w r2, #302 @ 0x12e
  54382. 8016588: 4934 ldr r1, [pc, #208] @ (801665c <recv_tcp+0x118>)
  54383. 801658a: 4832 ldr r0, [pc, #200] @ (8016654 <recv_tcp+0x110>)
  54384. 801658c: f013 fe16 bl 802a1bc <iprintf>
  54385. LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */
  54386. conn = (struct netconn *)arg;
  54387. 8016590: 68fb ldr r3, [r7, #12]
  54388. 8016592: 617b str r3, [r7, #20]
  54389. if (conn == NULL) {
  54390. 8016594: 697b ldr r3, [r7, #20]
  54391. 8016596: 2b00 cmp r3, #0
  54392. 8016598: d102 bne.n 80165a0 <recv_tcp+0x5c>
  54393. return ERR_VAL;
  54394. 801659a: f06f 0305 mvn.w r3, #5
  54395. 801659e: e051 b.n 8016644 <recv_tcp+0x100>
  54396. }
  54397. LWIP_ASSERT("recv_tcp: recv for wrong pcb!", conn->pcb.tcp == pcb);
  54398. 80165a0: 697b ldr r3, [r7, #20]
  54399. 80165a2: 685b ldr r3, [r3, #4]
  54400. 80165a4: 68ba ldr r2, [r7, #8]
  54401. 80165a6: 429a cmp r2, r3
  54402. 80165a8: d006 beq.n 80165b8 <recv_tcp+0x74>
  54403. 80165aa: 4b28 ldr r3, [pc, #160] @ (801664c <recv_tcp+0x108>)
  54404. 80165ac: f240 1235 movw r2, #309 @ 0x135
  54405. 80165b0: 492b ldr r1, [pc, #172] @ (8016660 <recv_tcp+0x11c>)
  54406. 80165b2: 4828 ldr r0, [pc, #160] @ (8016654 <recv_tcp+0x110>)
  54407. 80165b4: f013 fe02 bl 802a1bc <iprintf>
  54408. if (!NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  54409. 80165b8: 697b ldr r3, [r7, #20]
  54410. 80165ba: 3310 adds r3, #16
  54411. 80165bc: 4618 mov r0, r3
  54412. 80165be: f010 fa5d bl 8026a7c <sys_mbox_valid>
  54413. 80165c2: 4603 mov r3, r0
  54414. 80165c4: 2b00 cmp r3, #0
  54415. 80165c6: d10d bne.n 80165e4 <recv_tcp+0xa0>
  54416. /* recvmbox already deleted */
  54417. if (p != NULL) {
  54418. 80165c8: 687b ldr r3, [r7, #4]
  54419. 80165ca: 2b00 cmp r3, #0
  54420. 80165cc: d008 beq.n 80165e0 <recv_tcp+0x9c>
  54421. tcp_recved(pcb, p->tot_len);
  54422. 80165ce: 687b ldr r3, [r7, #4]
  54423. 80165d0: 891b ldrh r3, [r3, #8]
  54424. 80165d2: 4619 mov r1, r3
  54425. 80165d4: 68b8 ldr r0, [r7, #8]
  54426. 80165d6: f005 f9e5 bl 801b9a4 <tcp_recved>
  54427. pbuf_free(p);
  54428. 80165da: 6878 ldr r0, [r7, #4]
  54429. 80165dc: f004 fb76 bl 801accc <pbuf_free>
  54430. }
  54431. return ERR_OK;
  54432. 80165e0: 2300 movs r3, #0
  54433. 80165e2: e02f b.n 8016644 <recv_tcp+0x100>
  54434. }
  54435. /* Unlike for UDP or RAW pcbs, don't check for available space
  54436. using recv_avail since that could break the connection
  54437. (data is already ACKed) */
  54438. if (p != NULL) {
  54439. 80165e4: 687b ldr r3, [r7, #4]
  54440. 80165e6: 2b00 cmp r3, #0
  54441. 80165e8: d005 beq.n 80165f6 <recv_tcp+0xb2>
  54442. msg = p;
  54443. 80165ea: 687b ldr r3, [r7, #4]
  54444. 80165ec: 61bb str r3, [r7, #24]
  54445. len = p->tot_len;
  54446. 80165ee: 687b ldr r3, [r7, #4]
  54447. 80165f0: 891b ldrh r3, [r3, #8]
  54448. 80165f2: 83fb strh r3, [r7, #30]
  54449. 80165f4: e003 b.n 80165fe <recv_tcp+0xba>
  54450. } else {
  54451. msg = LWIP_CONST_CAST(void *, &netconn_closed);
  54452. 80165f6: 4b1b ldr r3, [pc, #108] @ (8016664 <recv_tcp+0x120>)
  54453. 80165f8: 61bb str r3, [r7, #24]
  54454. len = 0;
  54455. 80165fa: 2300 movs r3, #0
  54456. 80165fc: 83fb strh r3, [r7, #30]
  54457. }
  54458. if (sys_mbox_trypost(&conn->recvmbox, msg) != ERR_OK) {
  54459. 80165fe: 697b ldr r3, [r7, #20]
  54460. 8016600: 3310 adds r3, #16
  54461. 8016602: 69b9 ldr r1, [r7, #24]
  54462. 8016604: 4618 mov r0, r3
  54463. 8016606: f010 f9d7 bl 80269b8 <sys_mbox_trypost>
  54464. 801660a: 4603 mov r3, r0
  54465. 801660c: 2b00 cmp r3, #0
  54466. 801660e: d002 beq.n 8016616 <recv_tcp+0xd2>
  54467. /* don't deallocate p: it is presented to us later again from tcp_fasttmr! */
  54468. return ERR_MEM;
  54469. 8016610: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  54470. 8016614: e016 b.n 8016644 <recv_tcp+0x100>
  54471. } else {
  54472. #if LWIP_SO_RCVBUF
  54473. SYS_ARCH_INC(conn->recv_avail, len);
  54474. 8016616: f010 fb3b bl 8026c90 <sys_arch_protect>
  54475. 801661a: 6138 str r0, [r7, #16]
  54476. 801661c: 697b ldr r3, [r7, #20]
  54477. 801661e: 6a5a ldr r2, [r3, #36] @ 0x24
  54478. 8016620: 8bfb ldrh r3, [r7, #30]
  54479. 8016622: 441a add r2, r3
  54480. 8016624: 697b ldr r3, [r7, #20]
  54481. 8016626: 625a str r2, [r3, #36] @ 0x24
  54482. 8016628: 6938 ldr r0, [r7, #16]
  54483. 801662a: f010 fb3f bl 8026cac <sys_arch_unprotect>
  54484. #endif /* LWIP_SO_RCVBUF */
  54485. /* Register event with callback */
  54486. API_EVENT(conn, NETCONN_EVT_RCVPLUS, len);
  54487. 801662e: 697b ldr r3, [r7, #20]
  54488. 8016630: 6b1b ldr r3, [r3, #48] @ 0x30
  54489. 8016632: 2b00 cmp r3, #0
  54490. 8016634: d005 beq.n 8016642 <recv_tcp+0xfe>
  54491. 8016636: 697b ldr r3, [r7, #20]
  54492. 8016638: 6b1b ldr r3, [r3, #48] @ 0x30
  54493. 801663a: 8bfa ldrh r2, [r7, #30]
  54494. 801663c: 2100 movs r1, #0
  54495. 801663e: 6978 ldr r0, [r7, #20]
  54496. 8016640: 4798 blx r3
  54497. }
  54498. return ERR_OK;
  54499. 8016642: 2300 movs r3, #0
  54500. }
  54501. 8016644: 4618 mov r0, r3
  54502. 8016646: 3720 adds r7, #32
  54503. 8016648: 46bd mov sp, r7
  54504. 801664a: bd80 pop {r7, pc}
  54505. 801664c: 0802d770 .word 0x0802d770
  54506. 8016650: 0802d84c .word 0x0802d84c
  54507. 8016654: 0802d7b4 .word 0x0802d7b4
  54508. 8016658: 0802d870 .word 0x0802d870
  54509. 801665c: 0802d890 .word 0x0802d890
  54510. 8016660: 0802d8a8 .word 0x0802d8a8
  54511. 8016664: 0803135a .word 0x0803135a
  54512. 08016668 <poll_tcp>:
  54513. *
  54514. * @see tcp.h (struct tcp_pcb.poll) for parameters and return value
  54515. */
  54516. static err_t
  54517. poll_tcp(void *arg, struct tcp_pcb *pcb)
  54518. {
  54519. 8016668: b580 push {r7, lr}
  54520. 801666a: b084 sub sp, #16
  54521. 801666c: af00 add r7, sp, #0
  54522. 801666e: 6078 str r0, [r7, #4]
  54523. 8016670: 6039 str r1, [r7, #0]
  54524. struct netconn *conn = (struct netconn *)arg;
  54525. 8016672: 687b ldr r3, [r7, #4]
  54526. 8016674: 60fb str r3, [r7, #12]
  54527. LWIP_UNUSED_ARG(pcb);
  54528. LWIP_ASSERT("conn != NULL", (conn != NULL));
  54529. 8016676: 68fb ldr r3, [r7, #12]
  54530. 8016678: 2b00 cmp r3, #0
  54531. 801667a: d106 bne.n 801668a <poll_tcp+0x22>
  54532. 801667c: 4b2b ldr r3, [pc, #172] @ (801672c <poll_tcp+0xc4>)
  54533. 801667e: f44f 72b5 mov.w r2, #362 @ 0x16a
  54534. 8016682: 492b ldr r1, [pc, #172] @ (8016730 <poll_tcp+0xc8>)
  54535. 8016684: 482b ldr r0, [pc, #172] @ (8016734 <poll_tcp+0xcc>)
  54536. 8016686: f013 fd99 bl 802a1bc <iprintf>
  54537. if (conn->state == NETCONN_WRITE) {
  54538. 801668a: 68fb ldr r3, [r7, #12]
  54539. 801668c: 785b ldrb r3, [r3, #1]
  54540. 801668e: 2b01 cmp r3, #1
  54541. 8016690: d104 bne.n 801669c <poll_tcp+0x34>
  54542. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  54543. 8016692: 2101 movs r1, #1
  54544. 8016694: 68f8 ldr r0, [r7, #12]
  54545. 8016696: f000 ffab bl 80175f0 <lwip_netconn_do_writemore>
  54546. 801669a: e016 b.n 80166ca <poll_tcp+0x62>
  54547. } else if (conn->state == NETCONN_CLOSE) {
  54548. 801669c: 68fb ldr r3, [r7, #12]
  54549. 801669e: 785b ldrb r3, [r3, #1]
  54550. 80166a0: 2b04 cmp r3, #4
  54551. 80166a2: d112 bne.n 80166ca <poll_tcp+0x62>
  54552. #if !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER
  54553. if (conn->current_msg && conn->current_msg->msg.sd.polls_left) {
  54554. 80166a4: 68fb ldr r3, [r7, #12]
  54555. 80166a6: 6adb ldr r3, [r3, #44] @ 0x2c
  54556. 80166a8: 2b00 cmp r3, #0
  54557. 80166aa: d00a beq.n 80166c2 <poll_tcp+0x5a>
  54558. 80166ac: 68fb ldr r3, [r7, #12]
  54559. 80166ae: 6adb ldr r3, [r3, #44] @ 0x2c
  54560. 80166b0: 7a5b ldrb r3, [r3, #9]
  54561. 80166b2: 2b00 cmp r3, #0
  54562. 80166b4: d005 beq.n 80166c2 <poll_tcp+0x5a>
  54563. conn->current_msg->msg.sd.polls_left--;
  54564. 80166b6: 68fb ldr r3, [r7, #12]
  54565. 80166b8: 6adb ldr r3, [r3, #44] @ 0x2c
  54566. 80166ba: 7a5a ldrb r2, [r3, #9]
  54567. 80166bc: 3a01 subs r2, #1
  54568. 80166be: b2d2 uxtb r2, r2
  54569. 80166c0: 725a strb r2, [r3, #9]
  54570. }
  54571. #endif /* !LWIP_SO_SNDTIMEO && !LWIP_SO_LINGER */
  54572. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  54573. 80166c2: 2101 movs r1, #1
  54574. 80166c4: 68f8 ldr r0, [r7, #12]
  54575. 80166c6: f000 fb53 bl 8016d70 <lwip_netconn_do_close_internal>
  54576. }
  54577. /* @todo: implement connect timeout here? */
  54578. /* Did a nonblocking write fail before? Then check available write-space. */
  54579. if (conn->flags & NETCONN_FLAG_CHECK_WRITESPACE) {
  54580. 80166ca: 68fb ldr r3, [r7, #12]
  54581. 80166cc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54582. 80166d0: f003 0310 and.w r3, r3, #16
  54583. 80166d4: 2b00 cmp r3, #0
  54584. 80166d6: d024 beq.n 8016722 <poll_tcp+0xba>
  54585. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  54586. let select mark this pcb as writable again. */
  54587. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  54588. 80166d8: 68fb ldr r3, [r7, #12]
  54589. 80166da: 685b ldr r3, [r3, #4]
  54590. 80166dc: 2b00 cmp r3, #0
  54591. 80166de: d020 beq.n 8016722 <poll_tcp+0xba>
  54592. 80166e0: 68fb ldr r3, [r7, #12]
  54593. 80166e2: 685b ldr r3, [r3, #4]
  54594. 80166e4: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  54595. 80166e8: f640 3269 movw r2, #2921 @ 0xb69
  54596. 80166ec: 4293 cmp r3, r2
  54597. 80166ee: d918 bls.n 8016722 <poll_tcp+0xba>
  54598. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  54599. 80166f0: 68fb ldr r3, [r7, #12]
  54600. 80166f2: 685b ldr r3, [r3, #4]
  54601. 80166f4: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  54602. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  54603. 80166f8: 2b07 cmp r3, #7
  54604. 80166fa: d812 bhi.n 8016722 <poll_tcp+0xba>
  54605. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  54606. 80166fc: 68fb ldr r3, [r7, #12]
  54607. 80166fe: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54608. 8016702: f023 0310 bic.w r3, r3, #16
  54609. 8016706: b2da uxtb r2, r3
  54610. 8016708: 68fb ldr r3, [r7, #12]
  54611. 801670a: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54612. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  54613. 801670e: 68fb ldr r3, [r7, #12]
  54614. 8016710: 6b1b ldr r3, [r3, #48] @ 0x30
  54615. 8016712: 2b00 cmp r3, #0
  54616. 8016714: d005 beq.n 8016722 <poll_tcp+0xba>
  54617. 8016716: 68fb ldr r3, [r7, #12]
  54618. 8016718: 6b1b ldr r3, [r3, #48] @ 0x30
  54619. 801671a: 2200 movs r2, #0
  54620. 801671c: 2102 movs r1, #2
  54621. 801671e: 68f8 ldr r0, [r7, #12]
  54622. 8016720: 4798 blx r3
  54623. }
  54624. }
  54625. return ERR_OK;
  54626. 8016722: 2300 movs r3, #0
  54627. }
  54628. 8016724: 4618 mov r0, r3
  54629. 8016726: 3710 adds r7, #16
  54630. 8016728: 46bd mov sp, r7
  54631. 801672a: bd80 pop {r7, pc}
  54632. 801672c: 0802d770 .word 0x0802d770
  54633. 8016730: 0802d8c8 .word 0x0802d8c8
  54634. 8016734: 0802d7b4 .word 0x0802d7b4
  54635. 08016738 <sent_tcp>:
  54636. *
  54637. * @see tcp.h (struct tcp_pcb.sent) for parameters and return value
  54638. */
  54639. static err_t
  54640. sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len)
  54641. {
  54642. 8016738: b580 push {r7, lr}
  54643. 801673a: b086 sub sp, #24
  54644. 801673c: af00 add r7, sp, #0
  54645. 801673e: 60f8 str r0, [r7, #12]
  54646. 8016740: 60b9 str r1, [r7, #8]
  54647. 8016742: 4613 mov r3, r2
  54648. 8016744: 80fb strh r3, [r7, #6]
  54649. struct netconn *conn = (struct netconn *)arg;
  54650. 8016746: 68fb ldr r3, [r7, #12]
  54651. 8016748: 617b str r3, [r7, #20]
  54652. LWIP_UNUSED_ARG(pcb);
  54653. LWIP_ASSERT("conn != NULL", (conn != NULL));
  54654. 801674a: 697b ldr r3, [r7, #20]
  54655. 801674c: 2b00 cmp r3, #0
  54656. 801674e: d106 bne.n 801675e <sent_tcp+0x26>
  54657. 8016750: 4b22 ldr r3, [pc, #136] @ (80167dc <sent_tcp+0xa4>)
  54658. 8016752: f240 1293 movw r2, #403 @ 0x193
  54659. 8016756: 4922 ldr r1, [pc, #136] @ (80167e0 <sent_tcp+0xa8>)
  54660. 8016758: 4822 ldr r0, [pc, #136] @ (80167e4 <sent_tcp+0xac>)
  54661. 801675a: f013 fd2f bl 802a1bc <iprintf>
  54662. if (conn) {
  54663. 801675e: 697b ldr r3, [r7, #20]
  54664. 8016760: 2b00 cmp r3, #0
  54665. 8016762: d035 beq.n 80167d0 <sent_tcp+0x98>
  54666. if (conn->state == NETCONN_WRITE) {
  54667. 8016764: 697b ldr r3, [r7, #20]
  54668. 8016766: 785b ldrb r3, [r3, #1]
  54669. 8016768: 2b01 cmp r3, #1
  54670. 801676a: d104 bne.n 8016776 <sent_tcp+0x3e>
  54671. lwip_netconn_do_writemore(conn WRITE_DELAYED);
  54672. 801676c: 2101 movs r1, #1
  54673. 801676e: 6978 ldr r0, [r7, #20]
  54674. 8016770: f000 ff3e bl 80175f0 <lwip_netconn_do_writemore>
  54675. 8016774: e007 b.n 8016786 <sent_tcp+0x4e>
  54676. } else if (conn->state == NETCONN_CLOSE) {
  54677. 8016776: 697b ldr r3, [r7, #20]
  54678. 8016778: 785b ldrb r3, [r3, #1]
  54679. 801677a: 2b04 cmp r3, #4
  54680. 801677c: d103 bne.n 8016786 <sent_tcp+0x4e>
  54681. lwip_netconn_do_close_internal(conn WRITE_DELAYED);
  54682. 801677e: 2101 movs r1, #1
  54683. 8016780: 6978 ldr r0, [r7, #20]
  54684. 8016782: f000 faf5 bl 8016d70 <lwip_netconn_do_close_internal>
  54685. }
  54686. /* If the queued byte- or pbuf-count drops below the configured low-water limit,
  54687. let select mark this pcb as writable again. */
  54688. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  54689. 8016786: 697b ldr r3, [r7, #20]
  54690. 8016788: 685b ldr r3, [r3, #4]
  54691. 801678a: 2b00 cmp r3, #0
  54692. 801678c: d020 beq.n 80167d0 <sent_tcp+0x98>
  54693. 801678e: 697b ldr r3, [r7, #20]
  54694. 8016790: 685b ldr r3, [r3, #4]
  54695. 8016792: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  54696. 8016796: f640 3269 movw r2, #2921 @ 0xb69
  54697. 801679a: 4293 cmp r3, r2
  54698. 801679c: d918 bls.n 80167d0 <sent_tcp+0x98>
  54699. (tcp_sndqueuelen(conn->pcb.tcp) < TCP_SNDQUEUELOWAT)) {
  54700. 801679e: 697b ldr r3, [r7, #20]
  54701. 80167a0: 685b ldr r3, [r3, #4]
  54702. 80167a2: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  54703. if ((conn->pcb.tcp != NULL) && (tcp_sndbuf(conn->pcb.tcp) > TCP_SNDLOWAT) &&
  54704. 80167a6: 2b07 cmp r3, #7
  54705. 80167a8: d812 bhi.n 80167d0 <sent_tcp+0x98>
  54706. netconn_clear_flags(conn, NETCONN_FLAG_CHECK_WRITESPACE);
  54707. 80167aa: 697b ldr r3, [r7, #20]
  54708. 80167ac: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54709. 80167b0: f023 0310 bic.w r3, r3, #16
  54710. 80167b4: b2da uxtb r2, r3
  54711. 80167b6: 697b ldr r3, [r7, #20]
  54712. 80167b8: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54713. API_EVENT(conn, NETCONN_EVT_SENDPLUS, len);
  54714. 80167bc: 697b ldr r3, [r7, #20]
  54715. 80167be: 6b1b ldr r3, [r3, #48] @ 0x30
  54716. 80167c0: 2b00 cmp r3, #0
  54717. 80167c2: d005 beq.n 80167d0 <sent_tcp+0x98>
  54718. 80167c4: 697b ldr r3, [r7, #20]
  54719. 80167c6: 6b1b ldr r3, [r3, #48] @ 0x30
  54720. 80167c8: 88fa ldrh r2, [r7, #6]
  54721. 80167ca: 2102 movs r1, #2
  54722. 80167cc: 6978 ldr r0, [r7, #20]
  54723. 80167ce: 4798 blx r3
  54724. }
  54725. }
  54726. return ERR_OK;
  54727. 80167d0: 2300 movs r3, #0
  54728. }
  54729. 80167d2: 4618 mov r0, r3
  54730. 80167d4: 3718 adds r7, #24
  54731. 80167d6: 46bd mov sp, r7
  54732. 80167d8: bd80 pop {r7, pc}
  54733. 80167da: bf00 nop
  54734. 80167dc: 0802d770 .word 0x0802d770
  54735. 80167e0: 0802d8c8 .word 0x0802d8c8
  54736. 80167e4: 0802d7b4 .word 0x0802d7b4
  54737. 080167e8 <err_tcp>:
  54738. *
  54739. * @see tcp.h (struct tcp_pcb.err) for parameters
  54740. */
  54741. static void
  54742. err_tcp(void *arg, err_t err)
  54743. {
  54744. 80167e8: b580 push {r7, lr}
  54745. 80167ea: b088 sub sp, #32
  54746. 80167ec: af00 add r7, sp, #0
  54747. 80167ee: 6078 str r0, [r7, #4]
  54748. 80167f0: 460b mov r3, r1
  54749. 80167f2: 70fb strb r3, [r7, #3]
  54750. struct netconn *conn;
  54751. enum netconn_state old_state;
  54752. void *mbox_msg;
  54753. SYS_ARCH_DECL_PROTECT(lev);
  54754. conn = (struct netconn *)arg;
  54755. 80167f4: 687b ldr r3, [r7, #4]
  54756. 80167f6: 61fb str r3, [r7, #28]
  54757. LWIP_ASSERT("conn != NULL", (conn != NULL));
  54758. 80167f8: 69fb ldr r3, [r7, #28]
  54759. 80167fa: 2b00 cmp r3, #0
  54760. 80167fc: d106 bne.n 801680c <err_tcp+0x24>
  54761. 80167fe: 4b61 ldr r3, [pc, #388] @ (8016984 <err_tcp+0x19c>)
  54762. 8016800: f44f 72dc mov.w r2, #440 @ 0x1b8
  54763. 8016804: 4960 ldr r1, [pc, #384] @ (8016988 <err_tcp+0x1a0>)
  54764. 8016806: 4861 ldr r0, [pc, #388] @ (801698c <err_tcp+0x1a4>)
  54765. 8016808: f013 fcd8 bl 802a1bc <iprintf>
  54766. SYS_ARCH_PROTECT(lev);
  54767. 801680c: f010 fa40 bl 8026c90 <sys_arch_protect>
  54768. 8016810: 61b8 str r0, [r7, #24]
  54769. /* when err is called, the pcb is deallocated, so delete the reference */
  54770. conn->pcb.tcp = NULL;
  54771. 8016812: 69fb ldr r3, [r7, #28]
  54772. 8016814: 2200 movs r2, #0
  54773. 8016816: 605a str r2, [r3, #4]
  54774. /* store pending error */
  54775. conn->pending_err = err;
  54776. 8016818: 69fb ldr r3, [r7, #28]
  54777. 801681a: 78fa ldrb r2, [r7, #3]
  54778. 801681c: 721a strb r2, [r3, #8]
  54779. /* prevent application threads from blocking on 'recvmbox'/'acceptmbox' */
  54780. conn->flags |= NETCONN_FLAG_MBOXCLOSED;
  54781. 801681e: 69fb ldr r3, [r7, #28]
  54782. 8016820: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54783. 8016824: f043 0301 orr.w r3, r3, #1
  54784. 8016828: b2da uxtb r2, r3
  54785. 801682a: 69fb ldr r3, [r7, #28]
  54786. 801682c: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54787. /* reset conn->state now before waking up other threads */
  54788. old_state = conn->state;
  54789. 8016830: 69fb ldr r3, [r7, #28]
  54790. 8016832: 785b ldrb r3, [r3, #1]
  54791. 8016834: 75fb strb r3, [r7, #23]
  54792. conn->state = NETCONN_NONE;
  54793. 8016836: 69fb ldr r3, [r7, #28]
  54794. 8016838: 2200 movs r2, #0
  54795. 801683a: 705a strb r2, [r3, #1]
  54796. SYS_ARCH_UNPROTECT(lev);
  54797. 801683c: 69b8 ldr r0, [r7, #24]
  54798. 801683e: f010 fa35 bl 8026cac <sys_arch_unprotect>
  54799. /* Notify the user layer about a connection error. Used to signal select. */
  54800. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  54801. 8016842: 69fb ldr r3, [r7, #28]
  54802. 8016844: 6b1b ldr r3, [r3, #48] @ 0x30
  54803. 8016846: 2b00 cmp r3, #0
  54804. 8016848: d005 beq.n 8016856 <err_tcp+0x6e>
  54805. 801684a: 69fb ldr r3, [r7, #28]
  54806. 801684c: 6b1b ldr r3, [r3, #48] @ 0x30
  54807. 801684e: 2200 movs r2, #0
  54808. 8016850: 2104 movs r1, #4
  54809. 8016852: 69f8 ldr r0, [r7, #28]
  54810. 8016854: 4798 blx r3
  54811. /* Try to release selects pending on 'read' or 'write', too.
  54812. They will get an error if they actually try to read or write. */
  54813. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  54814. 8016856: 69fb ldr r3, [r7, #28]
  54815. 8016858: 6b1b ldr r3, [r3, #48] @ 0x30
  54816. 801685a: 2b00 cmp r3, #0
  54817. 801685c: d005 beq.n 801686a <err_tcp+0x82>
  54818. 801685e: 69fb ldr r3, [r7, #28]
  54819. 8016860: 6b1b ldr r3, [r3, #48] @ 0x30
  54820. 8016862: 2200 movs r2, #0
  54821. 8016864: 2100 movs r1, #0
  54822. 8016866: 69f8 ldr r0, [r7, #28]
  54823. 8016868: 4798 blx r3
  54824. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  54825. 801686a: 69fb ldr r3, [r7, #28]
  54826. 801686c: 6b1b ldr r3, [r3, #48] @ 0x30
  54827. 801686e: 2b00 cmp r3, #0
  54828. 8016870: d005 beq.n 801687e <err_tcp+0x96>
  54829. 8016872: 69fb ldr r3, [r7, #28]
  54830. 8016874: 6b1b ldr r3, [r3, #48] @ 0x30
  54831. 8016876: 2200 movs r2, #0
  54832. 8016878: 2102 movs r1, #2
  54833. 801687a: 69f8 ldr r0, [r7, #28]
  54834. 801687c: 4798 blx r3
  54835. mbox_msg = lwip_netconn_err_to_msg(err);
  54836. 801687e: f997 3003 ldrsb.w r3, [r7, #3]
  54837. 8016882: 4618 mov r0, r3
  54838. 8016884: f7ff fd52 bl 801632c <lwip_netconn_err_to_msg>
  54839. 8016888: 6138 str r0, [r7, #16]
  54840. /* pass error message to recvmbox to wake up pending recv */
  54841. if (NETCONN_MBOX_VALID(conn, &conn->recvmbox)) {
  54842. 801688a: 69fb ldr r3, [r7, #28]
  54843. 801688c: 3310 adds r3, #16
  54844. 801688e: 4618 mov r0, r3
  54845. 8016890: f010 f8f4 bl 8026a7c <sys_mbox_valid>
  54846. 8016894: 4603 mov r3, r0
  54847. 8016896: 2b00 cmp r3, #0
  54848. 8016898: d005 beq.n 80168a6 <err_tcp+0xbe>
  54849. /* use trypost to prevent deadlock */
  54850. sys_mbox_trypost(&conn->recvmbox, mbox_msg);
  54851. 801689a: 69fb ldr r3, [r7, #28]
  54852. 801689c: 3310 adds r3, #16
  54853. 801689e: 6939 ldr r1, [r7, #16]
  54854. 80168a0: 4618 mov r0, r3
  54855. 80168a2: f010 f889 bl 80269b8 <sys_mbox_trypost>
  54856. }
  54857. /* pass error message to acceptmbox to wake up pending accept */
  54858. if (NETCONN_MBOX_VALID(conn, &conn->acceptmbox)) {
  54859. 80168a6: 69fb ldr r3, [r7, #28]
  54860. 80168a8: 3314 adds r3, #20
  54861. 80168aa: 4618 mov r0, r3
  54862. 80168ac: f010 f8e6 bl 8026a7c <sys_mbox_valid>
  54863. 80168b0: 4603 mov r3, r0
  54864. 80168b2: 2b00 cmp r3, #0
  54865. 80168b4: d005 beq.n 80168c2 <err_tcp+0xda>
  54866. /* use trypost to preven deadlock */
  54867. sys_mbox_trypost(&conn->acceptmbox, mbox_msg);
  54868. 80168b6: 69fb ldr r3, [r7, #28]
  54869. 80168b8: 3314 adds r3, #20
  54870. 80168ba: 6939 ldr r1, [r7, #16]
  54871. 80168bc: 4618 mov r0, r3
  54872. 80168be: f010 f87b bl 80269b8 <sys_mbox_trypost>
  54873. }
  54874. if ((old_state == NETCONN_WRITE) || (old_state == NETCONN_CLOSE) ||
  54875. 80168c2: 7dfb ldrb r3, [r7, #23]
  54876. 80168c4: 2b01 cmp r3, #1
  54877. 80168c6: d005 beq.n 80168d4 <err_tcp+0xec>
  54878. 80168c8: 7dfb ldrb r3, [r7, #23]
  54879. 80168ca: 2b04 cmp r3, #4
  54880. 80168cc: d002 beq.n 80168d4 <err_tcp+0xec>
  54881. 80168ce: 7dfb ldrb r3, [r7, #23]
  54882. 80168d0: 2b03 cmp r3, #3
  54883. 80168d2: d146 bne.n 8016962 <err_tcp+0x17a>
  54884. (old_state == NETCONN_CONNECT)) {
  54885. /* calling lwip_netconn_do_writemore/lwip_netconn_do_close_internal is not necessary
  54886. since the pcb has already been deleted! */
  54887. int was_nonblocking_connect = IN_NONBLOCKING_CONNECT(conn);
  54888. 80168d4: 69fb ldr r3, [r7, #28]
  54889. 80168d6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54890. 80168da: f003 0304 and.w r3, r3, #4
  54891. 80168de: 2b00 cmp r3, #0
  54892. 80168e0: bf14 ite ne
  54893. 80168e2: 2301 movne r3, #1
  54894. 80168e4: 2300 moveq r3, #0
  54895. 80168e6: b2db uxtb r3, r3
  54896. 80168e8: 60fb str r3, [r7, #12]
  54897. SET_NONBLOCKING_CONNECT(conn, 0);
  54898. 80168ea: 69fb ldr r3, [r7, #28]
  54899. 80168ec: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54900. 80168f0: f023 0304 bic.w r3, r3, #4
  54901. 80168f4: b2da uxtb r2, r3
  54902. 80168f6: 69fb ldr r3, [r7, #28]
  54903. 80168f8: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54904. if (!was_nonblocking_connect) {
  54905. 80168fc: 68fb ldr r3, [r7, #12]
  54906. 80168fe: 2b00 cmp r3, #0
  54907. 8016900: d13b bne.n 801697a <err_tcp+0x192>
  54908. sys_sem_t *op_completed_sem;
  54909. /* set error return code */
  54910. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  54911. 8016902: 69fb ldr r3, [r7, #28]
  54912. 8016904: 6adb ldr r3, [r3, #44] @ 0x2c
  54913. 8016906: 2b00 cmp r3, #0
  54914. 8016908: d106 bne.n 8016918 <err_tcp+0x130>
  54915. 801690a: 4b1e ldr r3, [pc, #120] @ (8016984 <err_tcp+0x19c>)
  54916. 801690c: f44f 72f3 mov.w r2, #486 @ 0x1e6
  54917. 8016910: 491f ldr r1, [pc, #124] @ (8016990 <err_tcp+0x1a8>)
  54918. 8016912: 481e ldr r0, [pc, #120] @ (801698c <err_tcp+0x1a4>)
  54919. 8016914: f013 fc52 bl 802a1bc <iprintf>
  54920. if (old_state == NETCONN_CLOSE) {
  54921. 8016918: 7dfb ldrb r3, [r7, #23]
  54922. 801691a: 2b04 cmp r3, #4
  54923. 801691c: d104 bne.n 8016928 <err_tcp+0x140>
  54924. /* let close succeed: the connection is closed after all... */
  54925. conn->current_msg->err = ERR_OK;
  54926. 801691e: 69fb ldr r3, [r7, #28]
  54927. 8016920: 6adb ldr r3, [r3, #44] @ 0x2c
  54928. 8016922: 2200 movs r2, #0
  54929. 8016924: 711a strb r2, [r3, #4]
  54930. 8016926: e003 b.n 8016930 <err_tcp+0x148>
  54931. } else {
  54932. /* Write and connect fail */
  54933. conn->current_msg->err = err;
  54934. 8016928: 69fb ldr r3, [r7, #28]
  54935. 801692a: 6adb ldr r3, [r3, #44] @ 0x2c
  54936. 801692c: 78fa ldrb r2, [r7, #3]
  54937. 801692e: 711a strb r2, [r3, #4]
  54938. }
  54939. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  54940. 8016930: 69fb ldr r3, [r7, #28]
  54941. 8016932: 6adb ldr r3, [r3, #44] @ 0x2c
  54942. 8016934: 681b ldr r3, [r3, #0]
  54943. 8016936: 330c adds r3, #12
  54944. 8016938: 60bb str r3, [r7, #8]
  54945. LWIP_ASSERT("inavlid op_completed_sem", sys_sem_valid(op_completed_sem));
  54946. 801693a: 68b8 ldr r0, [r7, #8]
  54947. 801693c: f010 f92c bl 8026b98 <sys_sem_valid>
  54948. 8016940: 4603 mov r3, r0
  54949. 8016942: 2b00 cmp r3, #0
  54950. 8016944: d106 bne.n 8016954 <err_tcp+0x16c>
  54951. 8016946: 4b0f ldr r3, [pc, #60] @ (8016984 <err_tcp+0x19c>)
  54952. 8016948: f240 12ef movw r2, #495 @ 0x1ef
  54953. 801694c: 4911 ldr r1, [pc, #68] @ (8016994 <err_tcp+0x1ac>)
  54954. 801694e: 480f ldr r0, [pc, #60] @ (801698c <err_tcp+0x1a4>)
  54955. 8016950: f013 fc34 bl 802a1bc <iprintf>
  54956. conn->current_msg = NULL;
  54957. 8016954: 69fb ldr r3, [r7, #28]
  54958. 8016956: 2200 movs r2, #0
  54959. 8016958: 62da str r2, [r3, #44] @ 0x2c
  54960. /* wake up the waiting task */
  54961. sys_sem_signal(op_completed_sem);
  54962. 801695a: 68b8 ldr r0, [r7, #8]
  54963. 801695c: f010 f902 bl 8026b64 <sys_sem_signal>
  54964. (old_state == NETCONN_CONNECT)) {
  54965. 8016960: e00b b.n 801697a <err_tcp+0x192>
  54966. } else {
  54967. /* @todo: test what happens for error on nonblocking connect */
  54968. }
  54969. } else {
  54970. LWIP_ASSERT("conn->current_msg == NULL", conn->current_msg == NULL);
  54971. 8016962: 69fb ldr r3, [r7, #28]
  54972. 8016964: 6adb ldr r3, [r3, #44] @ 0x2c
  54973. 8016966: 2b00 cmp r3, #0
  54974. 8016968: d008 beq.n 801697c <err_tcp+0x194>
  54975. 801696a: 4b06 ldr r3, [pc, #24] @ (8016984 <err_tcp+0x19c>)
  54976. 801696c: f240 12f7 movw r2, #503 @ 0x1f7
  54977. 8016970: 4909 ldr r1, [pc, #36] @ (8016998 <err_tcp+0x1b0>)
  54978. 8016972: 4806 ldr r0, [pc, #24] @ (801698c <err_tcp+0x1a4>)
  54979. 8016974: f013 fc22 bl 802a1bc <iprintf>
  54980. }
  54981. }
  54982. 8016978: e000 b.n 801697c <err_tcp+0x194>
  54983. (old_state == NETCONN_CONNECT)) {
  54984. 801697a: bf00 nop
  54985. }
  54986. 801697c: bf00 nop
  54987. 801697e: 3720 adds r7, #32
  54988. 8016980: 46bd mov sp, r7
  54989. 8016982: bd80 pop {r7, pc}
  54990. 8016984: 0802d770 .word 0x0802d770
  54991. 8016988: 0802d8c8 .word 0x0802d8c8
  54992. 801698c: 0802d7b4 .word 0x0802d7b4
  54993. 8016990: 0802d8d8 .word 0x0802d8d8
  54994. 8016994: 0802d8f4 .word 0x0802d8f4
  54995. 8016998: 0802d910 .word 0x0802d910
  54996. 0801699c <setup_tcp>:
  54997. *
  54998. * @param conn the TCP netconn to setup
  54999. */
  55000. static void
  55001. setup_tcp(struct netconn *conn)
  55002. {
  55003. 801699c: b580 push {r7, lr}
  55004. 801699e: b084 sub sp, #16
  55005. 80169a0: af00 add r7, sp, #0
  55006. 80169a2: 6078 str r0, [r7, #4]
  55007. struct tcp_pcb *pcb;
  55008. pcb = conn->pcb.tcp;
  55009. 80169a4: 687b ldr r3, [r7, #4]
  55010. 80169a6: 685b ldr r3, [r3, #4]
  55011. 80169a8: 60fb str r3, [r7, #12]
  55012. tcp_arg(pcb, conn);
  55013. 80169aa: 6879 ldr r1, [r7, #4]
  55014. 80169ac: 68f8 ldr r0, [r7, #12]
  55015. 80169ae: f005 ffe3 bl 801c978 <tcp_arg>
  55016. tcp_recv(pcb, recv_tcp);
  55017. 80169b2: 490a ldr r1, [pc, #40] @ (80169dc <setup_tcp+0x40>)
  55018. 80169b4: 68f8 ldr r0, [r7, #12]
  55019. 80169b6: f005 fff1 bl 801c99c <tcp_recv>
  55020. tcp_sent(pcb, sent_tcp);
  55021. 80169ba: 4909 ldr r1, [pc, #36] @ (80169e0 <setup_tcp+0x44>)
  55022. 80169bc: 68f8 ldr r0, [r7, #12]
  55023. 80169be: f006 f811 bl 801c9e4 <tcp_sent>
  55024. tcp_poll(pcb, poll_tcp, NETCONN_TCP_POLL_INTERVAL);
  55025. 80169c2: 2202 movs r2, #2
  55026. 80169c4: 4907 ldr r1, [pc, #28] @ (80169e4 <setup_tcp+0x48>)
  55027. 80169c6: 68f8 ldr r0, [r7, #12]
  55028. 80169c8: f006 f86c bl 801caa4 <tcp_poll>
  55029. tcp_err(pcb, err_tcp);
  55030. 80169cc: 4906 ldr r1, [pc, #24] @ (80169e8 <setup_tcp+0x4c>)
  55031. 80169ce: 68f8 ldr r0, [r7, #12]
  55032. 80169d0: f006 f82c bl 801ca2c <tcp_err>
  55033. }
  55034. 80169d4: bf00 nop
  55035. 80169d6: 3710 adds r7, #16
  55036. 80169d8: 46bd mov sp, r7
  55037. 80169da: bd80 pop {r7, pc}
  55038. 80169dc: 08016545 .word 0x08016545
  55039. 80169e0: 08016739 .word 0x08016739
  55040. 80169e4: 08016669 .word 0x08016669
  55041. 80169e8: 080167e9 .word 0x080167e9
  55042. 080169ec <pcb_new>:
  55043. *
  55044. * @param msg the api_msg describing the connection type
  55045. */
  55046. static void
  55047. pcb_new(struct api_msg *msg)
  55048. {
  55049. 80169ec: b590 push {r4, r7, lr}
  55050. 80169ee: b085 sub sp, #20
  55051. 80169f0: af00 add r7, sp, #0
  55052. 80169f2: 6078 str r0, [r7, #4]
  55053. enum lwip_ip_addr_type iptype = IPADDR_TYPE_V4;
  55054. 80169f4: 2300 movs r3, #0
  55055. 80169f6: 73fb strb r3, [r7, #15]
  55056. LWIP_ASSERT("pcb_new: pcb already allocated", msg->conn->pcb.tcp == NULL);
  55057. 80169f8: 687b ldr r3, [r7, #4]
  55058. 80169fa: 681b ldr r3, [r3, #0]
  55059. 80169fc: 685b ldr r3, [r3, #4]
  55060. 80169fe: 2b00 cmp r3, #0
  55061. 8016a00: d006 beq.n 8016a10 <pcb_new+0x24>
  55062. 8016a02: 4b2b ldr r3, [pc, #172] @ (8016ab0 <pcb_new+0xc4>)
  55063. 8016a04: f240 2265 movw r2, #613 @ 0x265
  55064. 8016a08: 492a ldr r1, [pc, #168] @ (8016ab4 <pcb_new+0xc8>)
  55065. 8016a0a: 482b ldr r0, [pc, #172] @ (8016ab8 <pcb_new+0xcc>)
  55066. 8016a0c: f013 fbd6 bl 802a1bc <iprintf>
  55067. iptype = IPADDR_TYPE_ANY;
  55068. }
  55069. #endif
  55070. /* Allocate a PCB for this connection */
  55071. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  55072. 8016a10: 687b ldr r3, [r7, #4]
  55073. 8016a12: 681b ldr r3, [r3, #0]
  55074. 8016a14: 781b ldrb r3, [r3, #0]
  55075. 8016a16: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55076. 8016a1a: 2b10 cmp r3, #16
  55077. 8016a1c: d022 beq.n 8016a64 <pcb_new+0x78>
  55078. 8016a1e: 2b20 cmp r3, #32
  55079. 8016a20: d133 bne.n 8016a8a <pcb_new+0x9e>
  55080. }
  55081. break;
  55082. #endif /* LWIP_RAW */
  55083. #if LWIP_UDP
  55084. case NETCONN_UDP:
  55085. msg->conn->pcb.udp = udp_new_ip_type(iptype);
  55086. 8016a22: 687b ldr r3, [r7, #4]
  55087. 8016a24: 681c ldr r4, [r3, #0]
  55088. 8016a26: 7bfb ldrb r3, [r7, #15]
  55089. 8016a28: 4618 mov r0, r3
  55090. 8016a2a: f00b fb94 bl 8022156 <udp_new_ip_type>
  55091. 8016a2e: 4603 mov r3, r0
  55092. 8016a30: 6063 str r3, [r4, #4]
  55093. if (msg->conn->pcb.udp != NULL) {
  55094. 8016a32: 687b ldr r3, [r7, #4]
  55095. 8016a34: 681b ldr r3, [r3, #0]
  55096. 8016a36: 685b ldr r3, [r3, #4]
  55097. 8016a38: 2b00 cmp r3, #0
  55098. 8016a3a: d02a beq.n 8016a92 <pcb_new+0xa6>
  55099. #if LWIP_UDPLITE
  55100. if (NETCONNTYPE_ISUDPLITE(msg->conn->type)) {
  55101. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_UDPLITE);
  55102. }
  55103. #endif /* LWIP_UDPLITE */
  55104. if (NETCONNTYPE_ISUDPNOCHKSUM(msg->conn->type)) {
  55105. 8016a3c: 687b ldr r3, [r7, #4]
  55106. 8016a3e: 681b ldr r3, [r3, #0]
  55107. 8016a40: 781b ldrb r3, [r3, #0]
  55108. 8016a42: 2b22 cmp r3, #34 @ 0x22
  55109. 8016a44: d104 bne.n 8016a50 <pcb_new+0x64>
  55110. udp_setflags(msg->conn->pcb.udp, UDP_FLAGS_NOCHKSUM);
  55111. 8016a46: 687b ldr r3, [r7, #4]
  55112. 8016a48: 681b ldr r3, [r3, #0]
  55113. 8016a4a: 685b ldr r3, [r3, #4]
  55114. 8016a4c: 2201 movs r2, #1
  55115. 8016a4e: 741a strb r2, [r3, #16]
  55116. }
  55117. udp_recv(msg->conn->pcb.udp, recv_udp, msg->conn);
  55118. 8016a50: 687b ldr r3, [r7, #4]
  55119. 8016a52: 681b ldr r3, [r3, #0]
  55120. 8016a54: 6858 ldr r0, [r3, #4]
  55121. 8016a56: 687b ldr r3, [r7, #4]
  55122. 8016a58: 681b ldr r3, [r3, #0]
  55123. 8016a5a: 461a mov r2, r3
  55124. 8016a5c: 4917 ldr r1, [pc, #92] @ (8016abc <pcb_new+0xd0>)
  55125. 8016a5e: f00b fafb bl 8022058 <udp_recv>
  55126. }
  55127. break;
  55128. 8016a62: e016 b.n 8016a92 <pcb_new+0xa6>
  55129. #endif /* LWIP_UDP */
  55130. #if LWIP_TCP
  55131. case NETCONN_TCP:
  55132. msg->conn->pcb.tcp = tcp_new_ip_type(iptype);
  55133. 8016a64: 687b ldr r3, [r7, #4]
  55134. 8016a66: 681c ldr r4, [r3, #0]
  55135. 8016a68: 7bfb ldrb r3, [r7, #15]
  55136. 8016a6a: 4618 mov r0, r3
  55137. 8016a6c: f005 ff76 bl 801c95c <tcp_new_ip_type>
  55138. 8016a70: 4603 mov r3, r0
  55139. 8016a72: 6063 str r3, [r4, #4]
  55140. if (msg->conn->pcb.tcp != NULL) {
  55141. 8016a74: 687b ldr r3, [r7, #4]
  55142. 8016a76: 681b ldr r3, [r3, #0]
  55143. 8016a78: 685b ldr r3, [r3, #4]
  55144. 8016a7a: 2b00 cmp r3, #0
  55145. 8016a7c: d00b beq.n 8016a96 <pcb_new+0xaa>
  55146. setup_tcp(msg->conn);
  55147. 8016a7e: 687b ldr r3, [r7, #4]
  55148. 8016a80: 681b ldr r3, [r3, #0]
  55149. 8016a82: 4618 mov r0, r3
  55150. 8016a84: f7ff ff8a bl 801699c <setup_tcp>
  55151. }
  55152. break;
  55153. 8016a88: e005 b.n 8016a96 <pcb_new+0xaa>
  55154. #endif /* LWIP_TCP */
  55155. default:
  55156. /* Unsupported netconn type, e.g. protocol disabled */
  55157. msg->err = ERR_VAL;
  55158. 8016a8a: 687b ldr r3, [r7, #4]
  55159. 8016a8c: 22fa movs r2, #250 @ 0xfa
  55160. 8016a8e: 711a strb r2, [r3, #4]
  55161. return;
  55162. 8016a90: e00a b.n 8016aa8 <pcb_new+0xbc>
  55163. break;
  55164. 8016a92: bf00 nop
  55165. 8016a94: e000 b.n 8016a98 <pcb_new+0xac>
  55166. break;
  55167. 8016a96: bf00 nop
  55168. }
  55169. if (msg->conn->pcb.ip == NULL) {
  55170. 8016a98: 687b ldr r3, [r7, #4]
  55171. 8016a9a: 681b ldr r3, [r3, #0]
  55172. 8016a9c: 685b ldr r3, [r3, #4]
  55173. 8016a9e: 2b00 cmp r3, #0
  55174. 8016aa0: d102 bne.n 8016aa8 <pcb_new+0xbc>
  55175. msg->err = ERR_MEM;
  55176. 8016aa2: 687b ldr r3, [r7, #4]
  55177. 8016aa4: 22ff movs r2, #255 @ 0xff
  55178. 8016aa6: 711a strb r2, [r3, #4]
  55179. }
  55180. }
  55181. 8016aa8: 3714 adds r7, #20
  55182. 8016aaa: 46bd mov sp, r7
  55183. 8016aac: bd90 pop {r4, r7, pc}
  55184. 8016aae: bf00 nop
  55185. 8016ab0: 0802d770 .word 0x0802d770
  55186. 8016ab4: 0802d954 .word 0x0802d954
  55187. 8016ab8: 0802d7b4 .word 0x0802d7b4
  55188. 8016abc: 0801640d .word 0x0801640d
  55189. 08016ac0 <lwip_netconn_do_newconn>:
  55190. *
  55191. * @param m the api_msg describing the connection type
  55192. */
  55193. void
  55194. lwip_netconn_do_newconn(void *m)
  55195. {
  55196. 8016ac0: b580 push {r7, lr}
  55197. 8016ac2: b084 sub sp, #16
  55198. 8016ac4: af00 add r7, sp, #0
  55199. 8016ac6: 6078 str r0, [r7, #4]
  55200. struct api_msg *msg = (struct api_msg *)m;
  55201. 8016ac8: 687b ldr r3, [r7, #4]
  55202. 8016aca: 60fb str r3, [r7, #12]
  55203. msg->err = ERR_OK;
  55204. 8016acc: 68fb ldr r3, [r7, #12]
  55205. 8016ace: 2200 movs r2, #0
  55206. 8016ad0: 711a strb r2, [r3, #4]
  55207. if (msg->conn->pcb.tcp == NULL) {
  55208. 8016ad2: 68fb ldr r3, [r7, #12]
  55209. 8016ad4: 681b ldr r3, [r3, #0]
  55210. 8016ad6: 685b ldr r3, [r3, #4]
  55211. 8016ad8: 2b00 cmp r3, #0
  55212. 8016ada: d102 bne.n 8016ae2 <lwip_netconn_do_newconn+0x22>
  55213. pcb_new(msg);
  55214. 8016adc: 68f8 ldr r0, [r7, #12]
  55215. 8016ade: f7ff ff85 bl 80169ec <pcb_new>
  55216. /* Else? This "new" connection already has a PCB allocated. */
  55217. /* Is this an error condition? Should it be deleted? */
  55218. /* We currently just are happy and return. */
  55219. TCPIP_APIMSG_ACK(msg);
  55220. }
  55221. 8016ae2: bf00 nop
  55222. 8016ae4: 3710 adds r7, #16
  55223. 8016ae6: 46bd mov sp, r7
  55224. 8016ae8: bd80 pop {r7, pc}
  55225. ...
  55226. 08016aec <netconn_alloc>:
  55227. * @return a newly allocated struct netconn or
  55228. * NULL on memory error
  55229. */
  55230. struct netconn *
  55231. netconn_alloc(enum netconn_type t, netconn_callback callback)
  55232. {
  55233. 8016aec: b580 push {r7, lr}
  55234. 8016aee: b086 sub sp, #24
  55235. 8016af0: af00 add r7, sp, #0
  55236. 8016af2: 4603 mov r3, r0
  55237. 8016af4: 6039 str r1, [r7, #0]
  55238. 8016af6: 71fb strb r3, [r7, #7]
  55239. struct netconn *conn;
  55240. int size;
  55241. u8_t init_flags = 0;
  55242. 8016af8: 2300 movs r3, #0
  55243. 8016afa: 74fb strb r3, [r7, #19]
  55244. conn = (struct netconn *)memp_malloc(MEMP_NETCONN);
  55245. 8016afc: 2007 movs r0, #7
  55246. 8016afe: f003 f981 bl 8019e04 <memp_malloc>
  55247. 8016b02: 60f8 str r0, [r7, #12]
  55248. if (conn == NULL) {
  55249. 8016b04: 68fb ldr r3, [r7, #12]
  55250. 8016b06: 2b00 cmp r3, #0
  55251. 8016b08: d101 bne.n 8016b0e <netconn_alloc+0x22>
  55252. return NULL;
  55253. 8016b0a: 2300 movs r3, #0
  55254. 8016b0c: e05c b.n 8016bc8 <netconn_alloc+0xdc>
  55255. }
  55256. conn->pending_err = ERR_OK;
  55257. 8016b0e: 68fb ldr r3, [r7, #12]
  55258. 8016b10: 2200 movs r2, #0
  55259. 8016b12: 721a strb r2, [r3, #8]
  55260. conn->type = t;
  55261. 8016b14: 68fb ldr r3, [r7, #12]
  55262. 8016b16: 79fa ldrb r2, [r7, #7]
  55263. 8016b18: 701a strb r2, [r3, #0]
  55264. conn->pcb.tcp = NULL;
  55265. 8016b1a: 68fb ldr r3, [r7, #12]
  55266. 8016b1c: 2200 movs r2, #0
  55267. 8016b1e: 605a str r2, [r3, #4]
  55268. /* If all sizes are the same, every compiler should optimize this switch to nothing */
  55269. switch (NETCONNTYPE_GROUP(t)) {
  55270. 8016b20: 79fb ldrb r3, [r7, #7]
  55271. 8016b22: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55272. 8016b26: 2b10 cmp r3, #16
  55273. 8016b28: d004 beq.n 8016b34 <netconn_alloc+0x48>
  55274. 8016b2a: 2b20 cmp r3, #32
  55275. 8016b2c: d105 bne.n 8016b3a <netconn_alloc+0x4e>
  55276. size = DEFAULT_RAW_RECVMBOX_SIZE;
  55277. break;
  55278. #endif /* LWIP_RAW */
  55279. #if LWIP_UDP
  55280. case NETCONN_UDP:
  55281. size = DEFAULT_UDP_RECVMBOX_SIZE;
  55282. 8016b2e: 2306 movs r3, #6
  55283. 8016b30: 617b str r3, [r7, #20]
  55284. #if LWIP_NETBUF_RECVINFO
  55285. init_flags |= NETCONN_FLAG_PKTINFO;
  55286. #endif /* LWIP_NETBUF_RECVINFO */
  55287. break;
  55288. 8016b32: e00a b.n 8016b4a <netconn_alloc+0x5e>
  55289. #endif /* LWIP_UDP */
  55290. #if LWIP_TCP
  55291. case NETCONN_TCP:
  55292. size = DEFAULT_TCP_RECVMBOX_SIZE;
  55293. 8016b34: 2306 movs r3, #6
  55294. 8016b36: 617b str r3, [r7, #20]
  55295. break;
  55296. 8016b38: e007 b.n 8016b4a <netconn_alloc+0x5e>
  55297. #endif /* LWIP_TCP */
  55298. default:
  55299. LWIP_ASSERT("netconn_alloc: undefined netconn_type", 0);
  55300. 8016b3a: 4b25 ldr r3, [pc, #148] @ (8016bd0 <netconn_alloc+0xe4>)
  55301. 8016b3c: f240 22e5 movw r2, #741 @ 0x2e5
  55302. 8016b40: 4924 ldr r1, [pc, #144] @ (8016bd4 <netconn_alloc+0xe8>)
  55303. 8016b42: 4825 ldr r0, [pc, #148] @ (8016bd8 <netconn_alloc+0xec>)
  55304. 8016b44: f013 fb3a bl 802a1bc <iprintf>
  55305. goto free_and_return;
  55306. 8016b48: e039 b.n 8016bbe <netconn_alloc+0xd2>
  55307. }
  55308. if (sys_mbox_new(&conn->recvmbox, size) != ERR_OK) {
  55309. 8016b4a: 68fb ldr r3, [r7, #12]
  55310. 8016b4c: 3310 adds r3, #16
  55311. 8016b4e: 6979 ldr r1, [r7, #20]
  55312. 8016b50: 4618 mov r0, r3
  55313. 8016b52: f00f ff05 bl 8026960 <sys_mbox_new>
  55314. 8016b56: 4603 mov r3, r0
  55315. 8016b58: 2b00 cmp r3, #0
  55316. 8016b5a: d12f bne.n 8016bbc <netconn_alloc+0xd0>
  55317. goto free_and_return;
  55318. }
  55319. #if !LWIP_NETCONN_SEM_PER_THREAD
  55320. if (sys_sem_new(&conn->op_completed, 0) != ERR_OK) {
  55321. 8016b5c: 68fb ldr r3, [r7, #12]
  55322. 8016b5e: 330c adds r3, #12
  55323. 8016b60: 2100 movs r1, #0
  55324. 8016b62: 4618 mov r0, r3
  55325. 8016b64: f00f ffa8 bl 8026ab8 <sys_sem_new>
  55326. 8016b68: 4603 mov r3, r0
  55327. 8016b6a: 2b00 cmp r3, #0
  55328. 8016b6c: d005 beq.n 8016b7a <netconn_alloc+0x8e>
  55329. sys_mbox_free(&conn->recvmbox);
  55330. 8016b6e: 68fb ldr r3, [r7, #12]
  55331. 8016b70: 3310 adds r3, #16
  55332. 8016b72: 4618 mov r0, r3
  55333. 8016b74: f00f ff0e bl 8026994 <sys_mbox_free>
  55334. goto free_and_return;
  55335. 8016b78: e021 b.n 8016bbe <netconn_alloc+0xd2>
  55336. }
  55337. #endif
  55338. #if LWIP_TCP
  55339. sys_mbox_set_invalid(&conn->acceptmbox);
  55340. 8016b7a: 68fb ldr r3, [r7, #12]
  55341. 8016b7c: 3314 adds r3, #20
  55342. 8016b7e: 4618 mov r0, r3
  55343. 8016b80: f00f ff8d bl 8026a9e <sys_mbox_set_invalid>
  55344. #endif
  55345. conn->state = NETCONN_NONE;
  55346. 8016b84: 68fb ldr r3, [r7, #12]
  55347. 8016b86: 2200 movs r2, #0
  55348. 8016b88: 705a strb r2, [r3, #1]
  55349. #if LWIP_SOCKET
  55350. /* initialize socket to -1 since 0 is a valid socket */
  55351. conn->socket = -1;
  55352. 8016b8a: 68fb ldr r3, [r7, #12]
  55353. 8016b8c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  55354. 8016b90: 619a str r2, [r3, #24]
  55355. #endif /* LWIP_SOCKET */
  55356. conn->callback = callback;
  55357. 8016b92: 68fb ldr r3, [r7, #12]
  55358. 8016b94: 683a ldr r2, [r7, #0]
  55359. 8016b96: 631a str r2, [r3, #48] @ 0x30
  55360. #if LWIP_TCP
  55361. conn->current_msg = NULL;
  55362. 8016b98: 68fb ldr r3, [r7, #12]
  55363. 8016b9a: 2200 movs r2, #0
  55364. 8016b9c: 62da str r2, [r3, #44] @ 0x2c
  55365. #endif /* LWIP_TCP */
  55366. #if LWIP_SO_SNDTIMEO
  55367. conn->send_timeout = 0;
  55368. #endif /* LWIP_SO_SNDTIMEO */
  55369. #if LWIP_SO_RCVTIMEO
  55370. conn->recv_timeout = 0;
  55371. 8016b9e: 68fb ldr r3, [r7, #12]
  55372. 8016ba0: 2200 movs r2, #0
  55373. 8016ba2: 61da str r2, [r3, #28]
  55374. #endif /* LWIP_SO_RCVTIMEO */
  55375. #if LWIP_SO_RCVBUF
  55376. conn->recv_bufsize = RECV_BUFSIZE_DEFAULT;
  55377. 8016ba4: 68fb ldr r3, [r7, #12]
  55378. 8016ba6: 4a0d ldr r2, [pc, #52] @ (8016bdc <netconn_alloc+0xf0>)
  55379. 8016ba8: 621a str r2, [r3, #32]
  55380. conn->recv_avail = 0;
  55381. 8016baa: 68fb ldr r3, [r7, #12]
  55382. 8016bac: 2200 movs r2, #0
  55383. 8016bae: 625a str r2, [r3, #36] @ 0x24
  55384. #endif /* LWIP_SO_RCVBUF */
  55385. #if LWIP_SO_LINGER
  55386. conn->linger = -1;
  55387. #endif /* LWIP_SO_LINGER */
  55388. conn->flags = init_flags;
  55389. 8016bb0: 68fb ldr r3, [r7, #12]
  55390. 8016bb2: 7cfa ldrb r2, [r7, #19]
  55391. 8016bb4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55392. return conn;
  55393. 8016bb8: 68fb ldr r3, [r7, #12]
  55394. 8016bba: e005 b.n 8016bc8 <netconn_alloc+0xdc>
  55395. goto free_and_return;
  55396. 8016bbc: bf00 nop
  55397. free_and_return:
  55398. memp_free(MEMP_NETCONN, conn);
  55399. 8016bbe: 68f9 ldr r1, [r7, #12]
  55400. 8016bc0: 2007 movs r0, #7
  55401. 8016bc2: f003 f995 bl 8019ef0 <memp_free>
  55402. return NULL;
  55403. 8016bc6: 2300 movs r3, #0
  55404. }
  55405. 8016bc8: 4618 mov r0, r3
  55406. 8016bca: 3718 adds r7, #24
  55407. 8016bcc: 46bd mov sp, r7
  55408. 8016bce: bd80 pop {r7, pc}
  55409. 8016bd0: 0802d770 .word 0x0802d770
  55410. 8016bd4: 0802d974 .word 0x0802d974
  55411. 8016bd8: 0802d7b4 .word 0x0802d7b4
  55412. 8016bdc: 77359400 .word 0x77359400
  55413. 08016be0 <netconn_free>:
  55414. *
  55415. * @param conn the netconn to free
  55416. */
  55417. void
  55418. netconn_free(struct netconn *conn)
  55419. {
  55420. 8016be0: b580 push {r7, lr}
  55421. 8016be2: b082 sub sp, #8
  55422. 8016be4: af00 add r7, sp, #0
  55423. 8016be6: 6078 str r0, [r7, #4]
  55424. LWIP_ASSERT("PCB must be deallocated outside this function", conn->pcb.tcp == NULL);
  55425. 8016be8: 687b ldr r3, [r7, #4]
  55426. 8016bea: 685b ldr r3, [r3, #4]
  55427. 8016bec: 2b00 cmp r3, #0
  55428. 8016bee: d006 beq.n 8016bfe <netconn_free+0x1e>
  55429. 8016bf0: 4b1b ldr r3, [pc, #108] @ (8016c60 <netconn_free+0x80>)
  55430. 8016bf2: f44f 7247 mov.w r2, #796 @ 0x31c
  55431. 8016bf6: 491b ldr r1, [pc, #108] @ (8016c64 <netconn_free+0x84>)
  55432. 8016bf8: 481b ldr r0, [pc, #108] @ (8016c68 <netconn_free+0x88>)
  55433. 8016bfa: f013 fadf bl 802a1bc <iprintf>
  55434. #if LWIP_NETCONN_FULLDUPLEX
  55435. /* in fullduplex, netconn is drained here */
  55436. netconn_drain(conn);
  55437. #endif /* LWIP_NETCONN_FULLDUPLEX */
  55438. LWIP_ASSERT("recvmbox must be deallocated before calling this function",
  55439. 8016bfe: 687b ldr r3, [r7, #4]
  55440. 8016c00: 3310 adds r3, #16
  55441. 8016c02: 4618 mov r0, r3
  55442. 8016c04: f00f ff3a bl 8026a7c <sys_mbox_valid>
  55443. 8016c08: 4603 mov r3, r0
  55444. 8016c0a: 2b00 cmp r3, #0
  55445. 8016c0c: d006 beq.n 8016c1c <netconn_free+0x3c>
  55446. 8016c0e: 4b14 ldr r3, [pc, #80] @ (8016c60 <netconn_free+0x80>)
  55447. 8016c10: f240 3223 movw r2, #803 @ 0x323
  55448. 8016c14: 4915 ldr r1, [pc, #84] @ (8016c6c <netconn_free+0x8c>)
  55449. 8016c16: 4814 ldr r0, [pc, #80] @ (8016c68 <netconn_free+0x88>)
  55450. 8016c18: f013 fad0 bl 802a1bc <iprintf>
  55451. !sys_mbox_valid(&conn->recvmbox));
  55452. #if LWIP_TCP
  55453. LWIP_ASSERT("acceptmbox must be deallocated before calling this function",
  55454. 8016c1c: 687b ldr r3, [r7, #4]
  55455. 8016c1e: 3314 adds r3, #20
  55456. 8016c20: 4618 mov r0, r3
  55457. 8016c22: f00f ff2b bl 8026a7c <sys_mbox_valid>
  55458. 8016c26: 4603 mov r3, r0
  55459. 8016c28: 2b00 cmp r3, #0
  55460. 8016c2a: d006 beq.n 8016c3a <netconn_free+0x5a>
  55461. 8016c2c: 4b0c ldr r3, [pc, #48] @ (8016c60 <netconn_free+0x80>)
  55462. 8016c2e: f240 3226 movw r2, #806 @ 0x326
  55463. 8016c32: 490f ldr r1, [pc, #60] @ (8016c70 <netconn_free+0x90>)
  55464. 8016c34: 480c ldr r0, [pc, #48] @ (8016c68 <netconn_free+0x88>)
  55465. 8016c36: f013 fac1 bl 802a1bc <iprintf>
  55466. !sys_mbox_valid(&conn->acceptmbox));
  55467. #endif /* LWIP_TCP */
  55468. #if !LWIP_NETCONN_SEM_PER_THREAD
  55469. sys_sem_free(&conn->op_completed);
  55470. 8016c3a: 687b ldr r3, [r7, #4]
  55471. 8016c3c: 330c adds r3, #12
  55472. 8016c3e: 4618 mov r0, r3
  55473. 8016c40: f00f ff9d bl 8026b7e <sys_sem_free>
  55474. sys_sem_set_invalid(&conn->op_completed);
  55475. 8016c44: 687b ldr r3, [r7, #4]
  55476. 8016c46: 330c adds r3, #12
  55477. 8016c48: 4618 mov r0, r3
  55478. 8016c4a: f00f ffb6 bl 8026bba <sys_sem_set_invalid>
  55479. #endif
  55480. memp_free(MEMP_NETCONN, conn);
  55481. 8016c4e: 6879 ldr r1, [r7, #4]
  55482. 8016c50: 2007 movs r0, #7
  55483. 8016c52: f003 f94d bl 8019ef0 <memp_free>
  55484. }
  55485. 8016c56: bf00 nop
  55486. 8016c58: 3708 adds r7, #8
  55487. 8016c5a: 46bd mov sp, r7
  55488. 8016c5c: bd80 pop {r7, pc}
  55489. 8016c5e: bf00 nop
  55490. 8016c60: 0802d770 .word 0x0802d770
  55491. 8016c64: 0802d99c .word 0x0802d99c
  55492. 8016c68: 0802d7b4 .word 0x0802d7b4
  55493. 8016c6c: 0802d9cc .word 0x0802d9cc
  55494. 8016c70: 0802da08 .word 0x0802da08
  55495. 08016c74 <netconn_drain>:
  55496. * @bytes_drained bytes drained from recvmbox
  55497. * @accepts_drained pending connections drained from acceptmbox
  55498. */
  55499. static void
  55500. netconn_drain(struct netconn *conn)
  55501. {
  55502. 8016c74: b580 push {r7, lr}
  55503. 8016c76: b086 sub sp, #24
  55504. 8016c78: af00 add r7, sp, #0
  55505. 8016c7a: 6078 str r0, [r7, #4]
  55506. #if LWIP_NETCONN_FULLDUPLEX
  55507. LWIP_ASSERT("netconn marked closed", conn->flags & NETCONN_FLAG_MBOXINVALID);
  55508. #endif /* LWIP_NETCONN_FULLDUPLEX */
  55509. /* Delete and drain the recvmbox. */
  55510. if (sys_mbox_valid(&conn->recvmbox)) {
  55511. 8016c7c: 687b ldr r3, [r7, #4]
  55512. 8016c7e: 3310 adds r3, #16
  55513. 8016c80: 4618 mov r0, r3
  55514. 8016c82: f00f fefb bl 8026a7c <sys_mbox_valid>
  55515. 8016c86: 4603 mov r3, r0
  55516. 8016c88: 2b00 cmp r3, #0
  55517. 8016c8a: d02f beq.n 8016cec <netconn_drain+0x78>
  55518. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  55519. 8016c8c: e018 b.n 8016cc0 <netconn_drain+0x4c>
  55520. #if LWIP_NETCONN_FULLDUPLEX
  55521. if (!lwip_netconn_is_deallocated_msg(mem))
  55522. #endif /* LWIP_NETCONN_FULLDUPLEX */
  55523. {
  55524. #if LWIP_TCP
  55525. if (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) {
  55526. 8016c8e: 687b ldr r3, [r7, #4]
  55527. 8016c90: 781b ldrb r3, [r3, #0]
  55528. 8016c92: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55529. 8016c96: 2b10 cmp r3, #16
  55530. 8016c98: d10e bne.n 8016cb8 <netconn_drain+0x44>
  55531. err_t err;
  55532. if (!lwip_netconn_is_err_msg(mem, &err)) {
  55533. 8016c9a: 693b ldr r3, [r7, #16]
  55534. 8016c9c: f107 020f add.w r2, r7, #15
  55535. 8016ca0: 4611 mov r1, r2
  55536. 8016ca2: 4618 mov r0, r3
  55537. 8016ca4: f7ff fb78 bl 8016398 <lwip_netconn_is_err_msg>
  55538. 8016ca8: 4603 mov r3, r0
  55539. 8016caa: 2b00 cmp r3, #0
  55540. 8016cac: d108 bne.n 8016cc0 <netconn_drain+0x4c>
  55541. pbuf_free((struct pbuf *)mem);
  55542. 8016cae: 693b ldr r3, [r7, #16]
  55543. 8016cb0: 4618 mov r0, r3
  55544. 8016cb2: f004 f80b bl 801accc <pbuf_free>
  55545. 8016cb6: e003 b.n 8016cc0 <netconn_drain+0x4c>
  55546. }
  55547. } else
  55548. #endif /* LWIP_TCP */
  55549. {
  55550. netbuf_delete((struct netbuf *)mem);
  55551. 8016cb8: 693b ldr r3, [r7, #16]
  55552. 8016cba: 4618 mov r0, r3
  55553. 8016cbc: f001 f81c bl 8017cf8 <netbuf_delete>
  55554. while (sys_mbox_tryfetch(&conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
  55555. 8016cc0: 687b ldr r3, [r7, #4]
  55556. 8016cc2: 3310 adds r3, #16
  55557. 8016cc4: f107 0210 add.w r2, r7, #16
  55558. 8016cc8: 4611 mov r1, r2
  55559. 8016cca: 4618 mov r0, r3
  55560. 8016ccc: f00f febf bl 8026a4e <sys_arch_mbox_tryfetch>
  55561. 8016cd0: 4603 mov r3, r0
  55562. 8016cd2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55563. 8016cd6: d1da bne.n 8016c8e <netconn_drain+0x1a>
  55564. }
  55565. }
  55566. }
  55567. sys_mbox_free(&conn->recvmbox);
  55568. 8016cd8: 687b ldr r3, [r7, #4]
  55569. 8016cda: 3310 adds r3, #16
  55570. 8016cdc: 4618 mov r0, r3
  55571. 8016cde: f00f fe59 bl 8026994 <sys_mbox_free>
  55572. sys_mbox_set_invalid(&conn->recvmbox);
  55573. 8016ce2: 687b ldr r3, [r7, #4]
  55574. 8016ce4: 3310 adds r3, #16
  55575. 8016ce6: 4618 mov r0, r3
  55576. 8016ce8: f00f fed9 bl 8026a9e <sys_mbox_set_invalid>
  55577. }
  55578. /* Delete and drain the acceptmbox. */
  55579. #if LWIP_TCP
  55580. if (sys_mbox_valid(&conn->acceptmbox)) {
  55581. 8016cec: 687b ldr r3, [r7, #4]
  55582. 8016cee: 3314 adds r3, #20
  55583. 8016cf0: 4618 mov r0, r3
  55584. 8016cf2: f00f fec3 bl 8026a7c <sys_mbox_valid>
  55585. 8016cf6: 4603 mov r3, r0
  55586. 8016cf8: 2b00 cmp r3, #0
  55587. 8016cfa: d034 beq.n 8016d66 <netconn_drain+0xf2>
  55588. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  55589. 8016cfc: e01d b.n 8016d3a <netconn_drain+0xc6>
  55590. #if LWIP_NETCONN_FULLDUPLEX
  55591. if (!lwip_netconn_is_deallocated_msg(mem))
  55592. #endif /* LWIP_NETCONN_FULLDUPLEX */
  55593. {
  55594. err_t err;
  55595. if (!lwip_netconn_is_err_msg(mem, &err)) {
  55596. 8016cfe: 693b ldr r3, [r7, #16]
  55597. 8016d00: f107 020e add.w r2, r7, #14
  55598. 8016d04: 4611 mov r1, r2
  55599. 8016d06: 4618 mov r0, r3
  55600. 8016d08: f7ff fb46 bl 8016398 <lwip_netconn_is_err_msg>
  55601. 8016d0c: 4603 mov r3, r0
  55602. 8016d0e: 2b00 cmp r3, #0
  55603. 8016d10: d113 bne.n 8016d3a <netconn_drain+0xc6>
  55604. struct netconn *newconn = (struct netconn *)mem;
  55605. 8016d12: 693b ldr r3, [r7, #16]
  55606. 8016d14: 617b str r3, [r7, #20]
  55607. /* Only tcp pcbs have an acceptmbox, so no need to check conn->type */
  55608. /* pcb might be set to NULL already by err_tcp() */
  55609. /* drain recvmbox */
  55610. netconn_drain(newconn);
  55611. 8016d16: 6978 ldr r0, [r7, #20]
  55612. 8016d18: f7ff ffac bl 8016c74 <netconn_drain>
  55613. if (newconn->pcb.tcp != NULL) {
  55614. 8016d1c: 697b ldr r3, [r7, #20]
  55615. 8016d1e: 685b ldr r3, [r3, #4]
  55616. 8016d20: 2b00 cmp r3, #0
  55617. 8016d22: d007 beq.n 8016d34 <netconn_drain+0xc0>
  55618. tcp_abort(newconn->pcb.tcp);
  55619. 8016d24: 697b ldr r3, [r7, #20]
  55620. 8016d26: 685b ldr r3, [r3, #4]
  55621. 8016d28: 4618 mov r0, r3
  55622. 8016d2a: f004 fdd5 bl 801b8d8 <tcp_abort>
  55623. newconn->pcb.tcp = NULL;
  55624. 8016d2e: 697b ldr r3, [r7, #20]
  55625. 8016d30: 2200 movs r2, #0
  55626. 8016d32: 605a str r2, [r3, #4]
  55627. }
  55628. netconn_free(newconn);
  55629. 8016d34: 6978 ldr r0, [r7, #20]
  55630. 8016d36: f7ff ff53 bl 8016be0 <netconn_free>
  55631. while (sys_mbox_tryfetch(&conn->acceptmbox, &mem) != SYS_MBOX_EMPTY) {
  55632. 8016d3a: 687b ldr r3, [r7, #4]
  55633. 8016d3c: 3314 adds r3, #20
  55634. 8016d3e: f107 0210 add.w r2, r7, #16
  55635. 8016d42: 4611 mov r1, r2
  55636. 8016d44: 4618 mov r0, r3
  55637. 8016d46: f00f fe82 bl 8026a4e <sys_arch_mbox_tryfetch>
  55638. 8016d4a: 4603 mov r3, r0
  55639. 8016d4c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55640. 8016d50: d1d5 bne.n 8016cfe <netconn_drain+0x8a>
  55641. }
  55642. }
  55643. }
  55644. sys_mbox_free(&conn->acceptmbox);
  55645. 8016d52: 687b ldr r3, [r7, #4]
  55646. 8016d54: 3314 adds r3, #20
  55647. 8016d56: 4618 mov r0, r3
  55648. 8016d58: f00f fe1c bl 8026994 <sys_mbox_free>
  55649. sys_mbox_set_invalid(&conn->acceptmbox);
  55650. 8016d5c: 687b ldr r3, [r7, #4]
  55651. 8016d5e: 3314 adds r3, #20
  55652. 8016d60: 4618 mov r0, r3
  55653. 8016d62: f00f fe9c bl 8026a9e <sys_mbox_set_invalid>
  55654. }
  55655. #endif /* LWIP_TCP */
  55656. }
  55657. 8016d66: bf00 nop
  55658. 8016d68: 3718 adds r7, #24
  55659. 8016d6a: 46bd mov sp, r7
  55660. 8016d6c: bd80 pop {r7, pc}
  55661. ...
  55662. 08016d70 <lwip_netconn_do_close_internal>:
  55663. *
  55664. * @param conn the TCP netconn to close
  55665. */
  55666. static err_t
  55667. lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM)
  55668. {
  55669. 8016d70: b580 push {r7, lr}
  55670. 8016d72: b086 sub sp, #24
  55671. 8016d74: af00 add r7, sp, #0
  55672. 8016d76: 6078 str r0, [r7, #4]
  55673. 8016d78: 460b mov r3, r1
  55674. 8016d7a: 70fb strb r3, [r7, #3]
  55675. err_t err;
  55676. u8_t shut, shut_rx, shut_tx, shut_close;
  55677. u8_t close_finished = 0;
  55678. 8016d7c: 2300 movs r3, #0
  55679. 8016d7e: 757b strb r3, [r7, #21]
  55680. struct tcp_pcb *tpcb;
  55681. #if LWIP_SO_LINGER
  55682. u8_t linger_wait_required = 0;
  55683. #endif /* LWIP_SO_LINGER */
  55684. LWIP_ASSERT("invalid conn", (conn != NULL));
  55685. 8016d80: 687b ldr r3, [r7, #4]
  55686. 8016d82: 2b00 cmp r3, #0
  55687. 8016d84: d106 bne.n 8016d94 <lwip_netconn_do_close_internal+0x24>
  55688. 8016d86: 4b87 ldr r3, [pc, #540] @ (8016fa4 <lwip_netconn_do_close_internal+0x234>)
  55689. 8016d88: f240 32a2 movw r2, #930 @ 0x3a2
  55690. 8016d8c: 4986 ldr r1, [pc, #536] @ (8016fa8 <lwip_netconn_do_close_internal+0x238>)
  55691. 8016d8e: 4887 ldr r0, [pc, #540] @ (8016fac <lwip_netconn_do_close_internal+0x23c>)
  55692. 8016d90: f013 fa14 bl 802a1bc <iprintf>
  55693. LWIP_ASSERT("this is for tcp netconns only", (NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP));
  55694. 8016d94: 687b ldr r3, [r7, #4]
  55695. 8016d96: 781b ldrb r3, [r3, #0]
  55696. 8016d98: f003 03f0 and.w r3, r3, #240 @ 0xf0
  55697. 8016d9c: 2b10 cmp r3, #16
  55698. 8016d9e: d006 beq.n 8016dae <lwip_netconn_do_close_internal+0x3e>
  55699. 8016da0: 4b80 ldr r3, [pc, #512] @ (8016fa4 <lwip_netconn_do_close_internal+0x234>)
  55700. 8016da2: f240 32a3 movw r2, #931 @ 0x3a3
  55701. 8016da6: 4982 ldr r1, [pc, #520] @ (8016fb0 <lwip_netconn_do_close_internal+0x240>)
  55702. 8016da8: 4880 ldr r0, [pc, #512] @ (8016fac <lwip_netconn_do_close_internal+0x23c>)
  55703. 8016daa: f013 fa07 bl 802a1bc <iprintf>
  55704. LWIP_ASSERT("conn must be in state NETCONN_CLOSE", (conn->state == NETCONN_CLOSE));
  55705. 8016dae: 687b ldr r3, [r7, #4]
  55706. 8016db0: 785b ldrb r3, [r3, #1]
  55707. 8016db2: 2b04 cmp r3, #4
  55708. 8016db4: d006 beq.n 8016dc4 <lwip_netconn_do_close_internal+0x54>
  55709. 8016db6: 4b7b ldr r3, [pc, #492] @ (8016fa4 <lwip_netconn_do_close_internal+0x234>)
  55710. 8016db8: f44f 7269 mov.w r2, #932 @ 0x3a4
  55711. 8016dbc: 497d ldr r1, [pc, #500] @ (8016fb4 <lwip_netconn_do_close_internal+0x244>)
  55712. 8016dbe: 487b ldr r0, [pc, #492] @ (8016fac <lwip_netconn_do_close_internal+0x23c>)
  55713. 8016dc0: f013 f9fc bl 802a1bc <iprintf>
  55714. LWIP_ASSERT("pcb already closed", (conn->pcb.tcp != NULL));
  55715. 8016dc4: 687b ldr r3, [r7, #4]
  55716. 8016dc6: 685b ldr r3, [r3, #4]
  55717. 8016dc8: 2b00 cmp r3, #0
  55718. 8016dca: d106 bne.n 8016dda <lwip_netconn_do_close_internal+0x6a>
  55719. 8016dcc: 4b75 ldr r3, [pc, #468] @ (8016fa4 <lwip_netconn_do_close_internal+0x234>)
  55720. 8016dce: f240 32a5 movw r2, #933 @ 0x3a5
  55721. 8016dd2: 4979 ldr r1, [pc, #484] @ (8016fb8 <lwip_netconn_do_close_internal+0x248>)
  55722. 8016dd4: 4875 ldr r0, [pc, #468] @ (8016fac <lwip_netconn_do_close_internal+0x23c>)
  55723. 8016dd6: f013 f9f1 bl 802a1bc <iprintf>
  55724. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  55725. 8016dda: 687b ldr r3, [r7, #4]
  55726. 8016ddc: 6adb ldr r3, [r3, #44] @ 0x2c
  55727. 8016dde: 2b00 cmp r3, #0
  55728. 8016de0: d106 bne.n 8016df0 <lwip_netconn_do_close_internal+0x80>
  55729. 8016de2: 4b70 ldr r3, [pc, #448] @ (8016fa4 <lwip_netconn_do_close_internal+0x234>)
  55730. 8016de4: f240 32a6 movw r2, #934 @ 0x3a6
  55731. 8016de8: 4974 ldr r1, [pc, #464] @ (8016fbc <lwip_netconn_do_close_internal+0x24c>)
  55732. 8016dea: 4870 ldr r0, [pc, #448] @ (8016fac <lwip_netconn_do_close_internal+0x23c>)
  55733. 8016dec: f013 f9e6 bl 802a1bc <iprintf>
  55734. tpcb = conn->pcb.tcp;
  55735. 8016df0: 687b ldr r3, [r7, #4]
  55736. 8016df2: 685b ldr r3, [r3, #4]
  55737. 8016df4: 613b str r3, [r7, #16]
  55738. shut = conn->current_msg->msg.sd.shut;
  55739. 8016df6: 687b ldr r3, [r7, #4]
  55740. 8016df8: 6adb ldr r3, [r3, #44] @ 0x2c
  55741. 8016dfa: 7a1b ldrb r3, [r3, #8]
  55742. 8016dfc: 73fb strb r3, [r7, #15]
  55743. shut_rx = shut & NETCONN_SHUT_RD;
  55744. 8016dfe: 7bfb ldrb r3, [r7, #15]
  55745. 8016e00: f003 0301 and.w r3, r3, #1
  55746. 8016e04: 73bb strb r3, [r7, #14]
  55747. shut_tx = shut & NETCONN_SHUT_WR;
  55748. 8016e06: 7bfb ldrb r3, [r7, #15]
  55749. 8016e08: f003 0302 and.w r3, r3, #2
  55750. 8016e0c: 737b strb r3, [r7, #13]
  55751. /* shutting down both ends is the same as closing
  55752. (also if RD or WR side was shut down before already) */
  55753. if (shut == NETCONN_SHUT_RDWR) {
  55754. 8016e0e: 7bfb ldrb r3, [r7, #15]
  55755. 8016e10: 2b03 cmp r3, #3
  55756. 8016e12: d102 bne.n 8016e1a <lwip_netconn_do_close_internal+0xaa>
  55757. shut_close = 1;
  55758. 8016e14: 2301 movs r3, #1
  55759. 8016e16: 75bb strb r3, [r7, #22]
  55760. 8016e18: e01f b.n 8016e5a <lwip_netconn_do_close_internal+0xea>
  55761. } else if (shut_rx &&
  55762. 8016e1a: 7bbb ldrb r3, [r7, #14]
  55763. 8016e1c: 2b00 cmp r3, #0
  55764. 8016e1e: d00e beq.n 8016e3e <lwip_netconn_do_close_internal+0xce>
  55765. ((tpcb->state == FIN_WAIT_1) ||
  55766. 8016e20: 693b ldr r3, [r7, #16]
  55767. 8016e22: 7d1b ldrb r3, [r3, #20]
  55768. } else if (shut_rx &&
  55769. 8016e24: 2b05 cmp r3, #5
  55770. 8016e26: d007 beq.n 8016e38 <lwip_netconn_do_close_internal+0xc8>
  55771. (tpcb->state == FIN_WAIT_2) ||
  55772. 8016e28: 693b ldr r3, [r7, #16]
  55773. 8016e2a: 7d1b ldrb r3, [r3, #20]
  55774. ((tpcb->state == FIN_WAIT_1) ||
  55775. 8016e2c: 2b06 cmp r3, #6
  55776. 8016e2e: d003 beq.n 8016e38 <lwip_netconn_do_close_internal+0xc8>
  55777. (tpcb->state == CLOSING))) {
  55778. 8016e30: 693b ldr r3, [r7, #16]
  55779. 8016e32: 7d1b ldrb r3, [r3, #20]
  55780. (tpcb->state == FIN_WAIT_2) ||
  55781. 8016e34: 2b08 cmp r3, #8
  55782. 8016e36: d102 bne.n 8016e3e <lwip_netconn_do_close_internal+0xce>
  55783. shut_close = 1;
  55784. 8016e38: 2301 movs r3, #1
  55785. 8016e3a: 75bb strb r3, [r7, #22]
  55786. 8016e3c: e00d b.n 8016e5a <lwip_netconn_do_close_internal+0xea>
  55787. } else if (shut_tx && ((tpcb->flags & TF_RXCLOSED) != 0)) {
  55788. 8016e3e: 7b7b ldrb r3, [r7, #13]
  55789. 8016e40: 2b00 cmp r3, #0
  55790. 8016e42: d008 beq.n 8016e56 <lwip_netconn_do_close_internal+0xe6>
  55791. 8016e44: 693b ldr r3, [r7, #16]
  55792. 8016e46: 8b5b ldrh r3, [r3, #26]
  55793. 8016e48: f003 0310 and.w r3, r3, #16
  55794. 8016e4c: 2b00 cmp r3, #0
  55795. 8016e4e: d002 beq.n 8016e56 <lwip_netconn_do_close_internal+0xe6>
  55796. shut_close = 1;
  55797. 8016e50: 2301 movs r3, #1
  55798. 8016e52: 75bb strb r3, [r7, #22]
  55799. 8016e54: e001 b.n 8016e5a <lwip_netconn_do_close_internal+0xea>
  55800. } else {
  55801. shut_close = 0;
  55802. 8016e56: 2300 movs r3, #0
  55803. 8016e58: 75bb strb r3, [r7, #22]
  55804. }
  55805. /* Set back some callback pointers */
  55806. if (shut_close) {
  55807. 8016e5a: 7dbb ldrb r3, [r7, #22]
  55808. 8016e5c: 2b00 cmp r3, #0
  55809. 8016e5e: d003 beq.n 8016e68 <lwip_netconn_do_close_internal+0xf8>
  55810. tcp_arg(tpcb, NULL);
  55811. 8016e60: 2100 movs r1, #0
  55812. 8016e62: 6938 ldr r0, [r7, #16]
  55813. 8016e64: f005 fd88 bl 801c978 <tcp_arg>
  55814. }
  55815. if (tpcb->state == LISTEN) {
  55816. 8016e68: 693b ldr r3, [r7, #16]
  55817. 8016e6a: 7d1b ldrb r3, [r3, #20]
  55818. 8016e6c: 2b01 cmp r3, #1
  55819. 8016e6e: d104 bne.n 8016e7a <lwip_netconn_do_close_internal+0x10a>
  55820. tcp_accept(tpcb, NULL);
  55821. 8016e70: 2100 movs r1, #0
  55822. 8016e72: 6938 ldr r0, [r7, #16]
  55823. 8016e74: f005 fdfe bl 801ca74 <tcp_accept>
  55824. 8016e78: e01d b.n 8016eb6 <lwip_netconn_do_close_internal+0x146>
  55825. } else {
  55826. /* some callbacks have to be reset if tcp_close is not successful */
  55827. if (shut_rx) {
  55828. 8016e7a: 7bbb ldrb r3, [r7, #14]
  55829. 8016e7c: 2b00 cmp r3, #0
  55830. 8016e7e: d007 beq.n 8016e90 <lwip_netconn_do_close_internal+0x120>
  55831. tcp_recv(tpcb, NULL);
  55832. 8016e80: 2100 movs r1, #0
  55833. 8016e82: 6938 ldr r0, [r7, #16]
  55834. 8016e84: f005 fd8a bl 801c99c <tcp_recv>
  55835. tcp_accept(tpcb, NULL);
  55836. 8016e88: 2100 movs r1, #0
  55837. 8016e8a: 6938 ldr r0, [r7, #16]
  55838. 8016e8c: f005 fdf2 bl 801ca74 <tcp_accept>
  55839. }
  55840. if (shut_tx) {
  55841. 8016e90: 7b7b ldrb r3, [r7, #13]
  55842. 8016e92: 2b00 cmp r3, #0
  55843. 8016e94: d003 beq.n 8016e9e <lwip_netconn_do_close_internal+0x12e>
  55844. tcp_sent(tpcb, NULL);
  55845. 8016e96: 2100 movs r1, #0
  55846. 8016e98: 6938 ldr r0, [r7, #16]
  55847. 8016e9a: f005 fda3 bl 801c9e4 <tcp_sent>
  55848. }
  55849. if (shut_close) {
  55850. 8016e9e: 7dbb ldrb r3, [r7, #22]
  55851. 8016ea0: 2b00 cmp r3, #0
  55852. 8016ea2: d008 beq.n 8016eb6 <lwip_netconn_do_close_internal+0x146>
  55853. tcp_poll(tpcb, NULL, 0);
  55854. 8016ea4: 2200 movs r2, #0
  55855. 8016ea6: 2100 movs r1, #0
  55856. 8016ea8: 6938 ldr r0, [r7, #16]
  55857. 8016eaa: f005 fdfb bl 801caa4 <tcp_poll>
  55858. tcp_err(tpcb, NULL);
  55859. 8016eae: 2100 movs r1, #0
  55860. 8016eb0: 6938 ldr r0, [r7, #16]
  55861. 8016eb2: f005 fdbb bl 801ca2c <tcp_err>
  55862. }
  55863. }
  55864. /* Try to close the connection */
  55865. if (shut_close) {
  55866. 8016eb6: 7dbb ldrb r3, [r7, #22]
  55867. 8016eb8: 2b00 cmp r3, #0
  55868. 8016eba: d005 beq.n 8016ec8 <lwip_netconn_do_close_internal+0x158>
  55869. }
  55870. }
  55871. if ((err == ERR_OK) && (tpcb != NULL))
  55872. #endif /* LWIP_SO_LINGER */
  55873. {
  55874. err = tcp_close(tpcb);
  55875. 8016ebc: 6938 ldr r0, [r7, #16]
  55876. 8016ebe: f004 fbbf bl 801b640 <tcp_close>
  55877. 8016ec2: 4603 mov r3, r0
  55878. 8016ec4: 75fb strb r3, [r7, #23]
  55879. 8016ec6: e007 b.n 8016ed8 <lwip_netconn_do_close_internal+0x168>
  55880. }
  55881. } else {
  55882. err = tcp_shutdown(tpcb, shut_rx, shut_tx);
  55883. 8016ec8: 7bbb ldrb r3, [r7, #14]
  55884. 8016eca: 7b7a ldrb r2, [r7, #13]
  55885. 8016ecc: 4619 mov r1, r3
  55886. 8016ece: 6938 ldr r0, [r7, #16]
  55887. 8016ed0: f004 fbe4 bl 801b69c <tcp_shutdown>
  55888. 8016ed4: 4603 mov r3, r0
  55889. 8016ed6: 75fb strb r3, [r7, #23]
  55890. }
  55891. if (err == ERR_OK) {
  55892. 8016ed8: f997 3017 ldrsb.w r3, [r7, #23]
  55893. 8016edc: 2b00 cmp r3, #0
  55894. 8016ede: d102 bne.n 8016ee6 <lwip_netconn_do_close_internal+0x176>
  55895. close_finished = 1;
  55896. 8016ee0: 2301 movs r3, #1
  55897. 8016ee2: 757b strb r3, [r7, #21]
  55898. 8016ee4: e016 b.n 8016f14 <lwip_netconn_do_close_internal+0x1a4>
  55899. close_finished = 0;
  55900. err = ERR_INPROGRESS;
  55901. }
  55902. #endif /* LWIP_SO_LINGER */
  55903. } else {
  55904. if (err == ERR_MEM) {
  55905. 8016ee6: f997 3017 ldrsb.w r3, [r7, #23]
  55906. 8016eea: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55907. 8016eee: d10f bne.n 8016f10 <lwip_netconn_do_close_internal+0x1a0>
  55908. close_timeout = conn->linger * 1000U;
  55909. }
  55910. #endif
  55911. if ((s32_t)(sys_now() - conn->current_msg->msg.sd.time_started) >= close_timeout) {
  55912. #else /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  55913. if (conn->current_msg->msg.sd.polls_left == 0) {
  55914. 8016ef0: 687b ldr r3, [r7, #4]
  55915. 8016ef2: 6adb ldr r3, [r3, #44] @ 0x2c
  55916. 8016ef4: 7a5b ldrb r3, [r3, #9]
  55917. 8016ef6: 2b00 cmp r3, #0
  55918. 8016ef8: d10c bne.n 8016f14 <lwip_netconn_do_close_internal+0x1a4>
  55919. #endif /* LWIP_SO_SNDTIMEO || LWIP_SO_LINGER */
  55920. close_finished = 1;
  55921. 8016efa: 2301 movs r3, #1
  55922. 8016efc: 757b strb r3, [r7, #21]
  55923. if (shut_close) {
  55924. 8016efe: 7dbb ldrb r3, [r7, #22]
  55925. 8016f00: 2b00 cmp r3, #0
  55926. 8016f02: d007 beq.n 8016f14 <lwip_netconn_do_close_internal+0x1a4>
  55927. /* in this case, we want to RST the connection */
  55928. tcp_abort(tpcb);
  55929. 8016f04: 6938 ldr r0, [r7, #16]
  55930. 8016f06: f004 fce7 bl 801b8d8 <tcp_abort>
  55931. err = ERR_OK;
  55932. 8016f0a: 2300 movs r3, #0
  55933. 8016f0c: 75fb strb r3, [r7, #23]
  55934. 8016f0e: e001 b.n 8016f14 <lwip_netconn_do_close_internal+0x1a4>
  55935. }
  55936. }
  55937. } else {
  55938. /* Closing failed for a non-memory error: give up */
  55939. close_finished = 1;
  55940. 8016f10: 2301 movs r3, #1
  55941. 8016f12: 757b strb r3, [r7, #21]
  55942. }
  55943. }
  55944. if (close_finished) {
  55945. 8016f14: 7d7b ldrb r3, [r7, #21]
  55946. 8016f16: 2b00 cmp r3, #0
  55947. 8016f18: d052 beq.n 8016fc0 <lwip_netconn_do_close_internal+0x250>
  55948. /* Closing done (succeeded, non-memory error, nonblocking error or timeout) */
  55949. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  55950. 8016f1a: 687b ldr r3, [r7, #4]
  55951. 8016f1c: 6adb ldr r3, [r3, #44] @ 0x2c
  55952. 8016f1e: 681b ldr r3, [r3, #0]
  55953. 8016f20: 330c adds r3, #12
  55954. 8016f22: 60bb str r3, [r7, #8]
  55955. conn->current_msg->err = err;
  55956. 8016f24: 687b ldr r3, [r7, #4]
  55957. 8016f26: 6adb ldr r3, [r3, #44] @ 0x2c
  55958. 8016f28: 7dfa ldrb r2, [r7, #23]
  55959. 8016f2a: 711a strb r2, [r3, #4]
  55960. conn->current_msg = NULL;
  55961. 8016f2c: 687b ldr r3, [r7, #4]
  55962. 8016f2e: 2200 movs r2, #0
  55963. 8016f30: 62da str r2, [r3, #44] @ 0x2c
  55964. conn->state = NETCONN_NONE;
  55965. 8016f32: 687b ldr r3, [r7, #4]
  55966. 8016f34: 2200 movs r2, #0
  55967. 8016f36: 705a strb r2, [r3, #1]
  55968. if (err == ERR_OK) {
  55969. 8016f38: f997 3017 ldrsb.w r3, [r7, #23]
  55970. 8016f3c: 2b00 cmp r3, #0
  55971. 8016f3e: d129 bne.n 8016f94 <lwip_netconn_do_close_internal+0x224>
  55972. if (shut_close) {
  55973. 8016f40: 7dbb ldrb r3, [r7, #22]
  55974. 8016f42: 2b00 cmp r3, #0
  55975. 8016f44: d00c beq.n 8016f60 <lwip_netconn_do_close_internal+0x1f0>
  55976. /* Set back some callback pointers as conn is going away */
  55977. conn->pcb.tcp = NULL;
  55978. 8016f46: 687b ldr r3, [r7, #4]
  55979. 8016f48: 2200 movs r2, #0
  55980. 8016f4a: 605a str r2, [r3, #4]
  55981. /* Trigger select() in socket layer. Make sure everybody notices activity
  55982. on the connection, error first! */
  55983. API_EVENT(conn, NETCONN_EVT_ERROR, 0);
  55984. 8016f4c: 687b ldr r3, [r7, #4]
  55985. 8016f4e: 6b1b ldr r3, [r3, #48] @ 0x30
  55986. 8016f50: 2b00 cmp r3, #0
  55987. 8016f52: d005 beq.n 8016f60 <lwip_netconn_do_close_internal+0x1f0>
  55988. 8016f54: 687b ldr r3, [r7, #4]
  55989. 8016f56: 6b1b ldr r3, [r3, #48] @ 0x30
  55990. 8016f58: 2200 movs r2, #0
  55991. 8016f5a: 2104 movs r1, #4
  55992. 8016f5c: 6878 ldr r0, [r7, #4]
  55993. 8016f5e: 4798 blx r3
  55994. }
  55995. if (shut_rx) {
  55996. 8016f60: 7bbb ldrb r3, [r7, #14]
  55997. 8016f62: 2b00 cmp r3, #0
  55998. 8016f64: d009 beq.n 8016f7a <lwip_netconn_do_close_internal+0x20a>
  55999. API_EVENT(conn, NETCONN_EVT_RCVPLUS, 0);
  56000. 8016f66: 687b ldr r3, [r7, #4]
  56001. 8016f68: 6b1b ldr r3, [r3, #48] @ 0x30
  56002. 8016f6a: 2b00 cmp r3, #0
  56003. 8016f6c: d005 beq.n 8016f7a <lwip_netconn_do_close_internal+0x20a>
  56004. 8016f6e: 687b ldr r3, [r7, #4]
  56005. 8016f70: 6b1b ldr r3, [r3, #48] @ 0x30
  56006. 8016f72: 2200 movs r2, #0
  56007. 8016f74: 2100 movs r1, #0
  56008. 8016f76: 6878 ldr r0, [r7, #4]
  56009. 8016f78: 4798 blx r3
  56010. }
  56011. if (shut_tx) {
  56012. 8016f7a: 7b7b ldrb r3, [r7, #13]
  56013. 8016f7c: 2b00 cmp r3, #0
  56014. 8016f7e: d009 beq.n 8016f94 <lwip_netconn_do_close_internal+0x224>
  56015. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  56016. 8016f80: 687b ldr r3, [r7, #4]
  56017. 8016f82: 6b1b ldr r3, [r3, #48] @ 0x30
  56018. 8016f84: 2b00 cmp r3, #0
  56019. 8016f86: d005 beq.n 8016f94 <lwip_netconn_do_close_internal+0x224>
  56020. 8016f88: 687b ldr r3, [r7, #4]
  56021. 8016f8a: 6b1b ldr r3, [r3, #48] @ 0x30
  56022. 8016f8c: 2200 movs r2, #0
  56023. 8016f8e: 2102 movs r1, #2
  56024. 8016f90: 6878 ldr r0, [r7, #4]
  56025. 8016f92: 4798 blx r3
  56026. }
  56027. }
  56028. #if LWIP_TCPIP_CORE_LOCKING
  56029. if (delayed)
  56030. 8016f94: 78fb ldrb r3, [r7, #3]
  56031. 8016f96: 2b00 cmp r3, #0
  56032. 8016f98: d002 beq.n 8016fa0 <lwip_netconn_do_close_internal+0x230>
  56033. #endif
  56034. {
  56035. /* wake up the application task */
  56036. sys_sem_signal(op_completed_sem);
  56037. 8016f9a: 68b8 ldr r0, [r7, #8]
  56038. 8016f9c: f00f fde2 bl 8026b64 <sys_sem_signal>
  56039. }
  56040. return ERR_OK;
  56041. 8016fa0: 2300 movs r3, #0
  56042. 8016fa2: e03c b.n 801701e <lwip_netconn_do_close_internal+0x2ae>
  56043. 8016fa4: 0802d770 .word 0x0802d770
  56044. 8016fa8: 0802da44 .word 0x0802da44
  56045. 8016fac: 0802d7b4 .word 0x0802d7b4
  56046. 8016fb0: 0802da54 .word 0x0802da54
  56047. 8016fb4: 0802da74 .word 0x0802da74
  56048. 8016fb8: 0802da98 .word 0x0802da98
  56049. 8016fbc: 0802d8d8 .word 0x0802d8d8
  56050. }
  56051. if (!close_finished) {
  56052. 8016fc0: 7d7b ldrb r3, [r7, #21]
  56053. 8016fc2: 2b00 cmp r3, #0
  56054. 8016fc4: d11e bne.n 8017004 <lwip_netconn_do_close_internal+0x294>
  56055. /* Closing failed and we want to wait: restore some of the callbacks */
  56056. /* Closing of listen pcb will never fail! */
  56057. LWIP_ASSERT("Closing a listen pcb may not fail!", (tpcb->state != LISTEN));
  56058. 8016fc6: 693b ldr r3, [r7, #16]
  56059. 8016fc8: 7d1b ldrb r3, [r3, #20]
  56060. 8016fca: 2b01 cmp r3, #1
  56061. 8016fcc: d106 bne.n 8016fdc <lwip_netconn_do_close_internal+0x26c>
  56062. 8016fce: 4b16 ldr r3, [pc, #88] @ (8017028 <lwip_netconn_do_close_internal+0x2b8>)
  56063. 8016fd0: f240 4241 movw r2, #1089 @ 0x441
  56064. 8016fd4: 4915 ldr r1, [pc, #84] @ (801702c <lwip_netconn_do_close_internal+0x2bc>)
  56065. 8016fd6: 4816 ldr r0, [pc, #88] @ (8017030 <lwip_netconn_do_close_internal+0x2c0>)
  56066. 8016fd8: f013 f8f0 bl 802a1bc <iprintf>
  56067. if (shut_tx) {
  56068. 8016fdc: 7b7b ldrb r3, [r7, #13]
  56069. 8016fde: 2b00 cmp r3, #0
  56070. 8016fe0: d003 beq.n 8016fea <lwip_netconn_do_close_internal+0x27a>
  56071. tcp_sent(tpcb, sent_tcp);
  56072. 8016fe2: 4914 ldr r1, [pc, #80] @ (8017034 <lwip_netconn_do_close_internal+0x2c4>)
  56073. 8016fe4: 6938 ldr r0, [r7, #16]
  56074. 8016fe6: f005 fcfd bl 801c9e4 <tcp_sent>
  56075. }
  56076. /* when waiting for close, set up poll interval to 500ms */
  56077. tcp_poll(tpcb, poll_tcp, 1);
  56078. 8016fea: 2201 movs r2, #1
  56079. 8016fec: 4912 ldr r1, [pc, #72] @ (8017038 <lwip_netconn_do_close_internal+0x2c8>)
  56080. 8016fee: 6938 ldr r0, [r7, #16]
  56081. 8016ff0: f005 fd58 bl 801caa4 <tcp_poll>
  56082. tcp_err(tpcb, err_tcp);
  56083. 8016ff4: 4911 ldr r1, [pc, #68] @ (801703c <lwip_netconn_do_close_internal+0x2cc>)
  56084. 8016ff6: 6938 ldr r0, [r7, #16]
  56085. 8016ff8: f005 fd18 bl 801ca2c <tcp_err>
  56086. tcp_arg(tpcb, conn);
  56087. 8016ffc: 6879 ldr r1, [r7, #4]
  56088. 8016ffe: 6938 ldr r0, [r7, #16]
  56089. 8017000: f005 fcba bl 801c978 <tcp_arg>
  56090. /* don't restore recv callback: we don't want to receive any more data */
  56091. }
  56092. /* If closing didn't succeed, we get called again either
  56093. from poll_tcp or from sent_tcp */
  56094. LWIP_ASSERT("err != ERR_OK", err != ERR_OK);
  56095. 8017004: f997 3017 ldrsb.w r3, [r7, #23]
  56096. 8017008: 2b00 cmp r3, #0
  56097. 801700a: d106 bne.n 801701a <lwip_netconn_do_close_internal+0x2aa>
  56098. 801700c: 4b06 ldr r3, [pc, #24] @ (8017028 <lwip_netconn_do_close_internal+0x2b8>)
  56099. 801700e: f240 424d movw r2, #1101 @ 0x44d
  56100. 8017012: 490b ldr r1, [pc, #44] @ (8017040 <lwip_netconn_do_close_internal+0x2d0>)
  56101. 8017014: 4806 ldr r0, [pc, #24] @ (8017030 <lwip_netconn_do_close_internal+0x2c0>)
  56102. 8017016: f013 f8d1 bl 802a1bc <iprintf>
  56103. return err;
  56104. 801701a: f997 3017 ldrsb.w r3, [r7, #23]
  56105. }
  56106. 801701e: 4618 mov r0, r3
  56107. 8017020: 3718 adds r7, #24
  56108. 8017022: 46bd mov sp, r7
  56109. 8017024: bd80 pop {r7, pc}
  56110. 8017026: bf00 nop
  56111. 8017028: 0802d770 .word 0x0802d770
  56112. 801702c: 0802daac .word 0x0802daac
  56113. 8017030: 0802d7b4 .word 0x0802d7b4
  56114. 8017034: 08016739 .word 0x08016739
  56115. 8017038: 08016669 .word 0x08016669
  56116. 801703c: 080167e9 .word 0x080167e9
  56117. 8017040: 0802dad0 .word 0x0802dad0
  56118. 08017044 <lwip_netconn_do_delconn>:
  56119. *
  56120. * @param m the api_msg pointing to the connection
  56121. */
  56122. void
  56123. lwip_netconn_do_delconn(void *m)
  56124. {
  56125. 8017044: b580 push {r7, lr}
  56126. 8017046: b084 sub sp, #16
  56127. 8017048: af00 add r7, sp, #0
  56128. 801704a: 6078 str r0, [r7, #4]
  56129. struct api_msg *msg = (struct api_msg *)m;
  56130. 801704c: 687b ldr r3, [r7, #4]
  56131. 801704e: 60fb str r3, [r7, #12]
  56132. enum netconn_state state = msg->conn->state;
  56133. 8017050: 68fb ldr r3, [r7, #12]
  56134. 8017052: 681b ldr r3, [r3, #0]
  56135. 8017054: 785b ldrb r3, [r3, #1]
  56136. 8017056: 72fb strb r3, [r7, #11]
  56137. LWIP_ASSERT("netconn state error", /* this only happens for TCP netconns */
  56138. 8017058: 7afb ldrb r3, [r7, #11]
  56139. 801705a: 2b00 cmp r3, #0
  56140. 801705c: d00d beq.n 801707a <lwip_netconn_do_delconn+0x36>
  56141. 801705e: 68fb ldr r3, [r7, #12]
  56142. 8017060: 681b ldr r3, [r3, #0]
  56143. 8017062: 781b ldrb r3, [r3, #0]
  56144. 8017064: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56145. 8017068: 2b10 cmp r3, #16
  56146. 801706a: d006 beq.n 801707a <lwip_netconn_do_delconn+0x36>
  56147. 801706c: 4b60 ldr r3, [pc, #384] @ (80171f0 <lwip_netconn_do_delconn+0x1ac>)
  56148. 801706e: f240 425e movw r2, #1118 @ 0x45e
  56149. 8017072: 4960 ldr r1, [pc, #384] @ (80171f4 <lwip_netconn_do_delconn+0x1b0>)
  56150. 8017074: 4860 ldr r0, [pc, #384] @ (80171f8 <lwip_netconn_do_delconn+0x1b4>)
  56151. 8017076: f013 f8a1 bl 802a1bc <iprintf>
  56152. msg->conn->state = NETCONN_NONE;
  56153. sys_sem_signal(op_completed_sem);
  56154. }
  56155. }
  56156. #else /* LWIP_NETCONN_FULLDUPLEX */
  56157. if (((state != NETCONN_NONE) &&
  56158. 801707a: 7afb ldrb r3, [r7, #11]
  56159. 801707c: 2b00 cmp r3, #0
  56160. 801707e: d005 beq.n 801708c <lwip_netconn_do_delconn+0x48>
  56161. 8017080: 7afb ldrb r3, [r7, #11]
  56162. 8017082: 2b02 cmp r3, #2
  56163. 8017084: d002 beq.n 801708c <lwip_netconn_do_delconn+0x48>
  56164. (state != NETCONN_LISTEN) &&
  56165. 8017086: 7afb ldrb r3, [r7, #11]
  56166. 8017088: 2b03 cmp r3, #3
  56167. 801708a: d10a bne.n 80170a2 <lwip_netconn_do_delconn+0x5e>
  56168. (state != NETCONN_CONNECT)) ||
  56169. 801708c: 7afb ldrb r3, [r7, #11]
  56170. 801708e: 2b03 cmp r3, #3
  56171. 8017090: d10b bne.n 80170aa <lwip_netconn_do_delconn+0x66>
  56172. ((state == NETCONN_CONNECT) && !IN_NONBLOCKING_CONNECT(msg->conn))) {
  56173. 8017092: 68fb ldr r3, [r7, #12]
  56174. 8017094: 681b ldr r3, [r3, #0]
  56175. 8017096: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56176. 801709a: f003 0304 and.w r3, r3, #4
  56177. 801709e: 2b00 cmp r3, #0
  56178. 80170a0: d103 bne.n 80170aa <lwip_netconn_do_delconn+0x66>
  56179. /* This means either a blocking write or blocking connect is running
  56180. (nonblocking write returns and sets state to NONE) */
  56181. msg->err = ERR_INPROGRESS;
  56182. 80170a2: 68fb ldr r3, [r7, #12]
  56183. 80170a4: 22fb movs r2, #251 @ 0xfb
  56184. 80170a6: 711a strb r2, [r3, #4]
  56185. 80170a8: e096 b.n 80171d8 <lwip_netconn_do_delconn+0x194>
  56186. } else
  56187. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56188. {
  56189. LWIP_ASSERT("blocking connect in progress",
  56190. 80170aa: 7afb ldrb r3, [r7, #11]
  56191. 80170ac: 2b03 cmp r3, #3
  56192. 80170ae: d10e bne.n 80170ce <lwip_netconn_do_delconn+0x8a>
  56193. 80170b0: 68fb ldr r3, [r7, #12]
  56194. 80170b2: 681b ldr r3, [r3, #0]
  56195. 80170b4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56196. 80170b8: f003 0304 and.w r3, r3, #4
  56197. 80170bc: 2b00 cmp r3, #0
  56198. 80170be: d106 bne.n 80170ce <lwip_netconn_do_delconn+0x8a>
  56199. 80170c0: 4b4b ldr r3, [pc, #300] @ (80171f0 <lwip_netconn_do_delconn+0x1ac>)
  56200. 80170c2: f240 427a movw r2, #1146 @ 0x47a
  56201. 80170c6: 494d ldr r1, [pc, #308] @ (80171fc <lwip_netconn_do_delconn+0x1b8>)
  56202. 80170c8: 484b ldr r0, [pc, #300] @ (80171f8 <lwip_netconn_do_delconn+0x1b4>)
  56203. 80170ca: f013 f877 bl 802a1bc <iprintf>
  56204. (state != NETCONN_CONNECT) || IN_NONBLOCKING_CONNECT(msg->conn));
  56205. msg->err = ERR_OK;
  56206. 80170ce: 68fb ldr r3, [r7, #12]
  56207. 80170d0: 2200 movs r2, #0
  56208. 80170d2: 711a strb r2, [r3, #4]
  56209. #if LWIP_NETCONN_FULLDUPLEX
  56210. /* Mark mboxes invalid */
  56211. netconn_mark_mbox_invalid(msg->conn);
  56212. #else /* LWIP_NETCONN_FULLDUPLEX */
  56213. netconn_drain(msg->conn);
  56214. 80170d4: 68fb ldr r3, [r7, #12]
  56215. 80170d6: 681b ldr r3, [r3, #0]
  56216. 80170d8: 4618 mov r0, r3
  56217. 80170da: f7ff fdcb bl 8016c74 <netconn_drain>
  56218. #endif /* LWIP_NETCONN_FULLDUPLEX */
  56219. if (msg->conn->pcb.tcp != NULL) {
  56220. 80170de: 68fb ldr r3, [r7, #12]
  56221. 80170e0: 681b ldr r3, [r3, #0]
  56222. 80170e2: 685b ldr r3, [r3, #4]
  56223. 80170e4: 2b00 cmp r3, #0
  56224. 80170e6: d05d beq.n 80171a4 <lwip_netconn_do_delconn+0x160>
  56225. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  56226. 80170e8: 68fb ldr r3, [r7, #12]
  56227. 80170ea: 681b ldr r3, [r3, #0]
  56228. 80170ec: 781b ldrb r3, [r3, #0]
  56229. 80170ee: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56230. 80170f2: 2b10 cmp r3, #16
  56231. 80170f4: d00d beq.n 8017112 <lwip_netconn_do_delconn+0xce>
  56232. 80170f6: 2b20 cmp r3, #32
  56233. 80170f8: d14f bne.n 801719a <lwip_netconn_do_delconn+0x156>
  56234. raw_remove(msg->conn->pcb.raw);
  56235. break;
  56236. #endif /* LWIP_RAW */
  56237. #if LWIP_UDP
  56238. case NETCONN_UDP:
  56239. msg->conn->pcb.udp->recv_arg = NULL;
  56240. 80170fa: 68fb ldr r3, [r7, #12]
  56241. 80170fc: 681b ldr r3, [r3, #0]
  56242. 80170fe: 685b ldr r3, [r3, #4]
  56243. 8017100: 2200 movs r2, #0
  56244. 8017102: 61da str r2, [r3, #28]
  56245. udp_remove(msg->conn->pcb.udp);
  56246. 8017104: 68fb ldr r3, [r7, #12]
  56247. 8017106: 681b ldr r3, [r3, #0]
  56248. 8017108: 685b ldr r3, [r3, #4]
  56249. 801710a: 4618 mov r0, r3
  56250. 801710c: f00a ffc6 bl 802209c <udp_remove>
  56251. break;
  56252. 8017110: e044 b.n 801719c <lwip_netconn_do_delconn+0x158>
  56253. #endif /* LWIP_UDP */
  56254. #if LWIP_TCP
  56255. case NETCONN_TCP:
  56256. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  56257. 8017112: 68fb ldr r3, [r7, #12]
  56258. 8017114: 681b ldr r3, [r3, #0]
  56259. 8017116: 6adb ldr r3, [r3, #44] @ 0x2c
  56260. 8017118: 2b00 cmp r3, #0
  56261. 801711a: d006 beq.n 801712a <lwip_netconn_do_delconn+0xe6>
  56262. 801711c: 4b34 ldr r3, [pc, #208] @ (80171f0 <lwip_netconn_do_delconn+0x1ac>)
  56263. 801711e: f240 4294 movw r2, #1172 @ 0x494
  56264. 8017122: 4937 ldr r1, [pc, #220] @ (8017200 <lwip_netconn_do_delconn+0x1bc>)
  56265. 8017124: 4834 ldr r0, [pc, #208] @ (80171f8 <lwip_netconn_do_delconn+0x1b4>)
  56266. 8017126: f013 f849 bl 802a1bc <iprintf>
  56267. msg->conn->state = NETCONN_CLOSE;
  56268. 801712a: 68fb ldr r3, [r7, #12]
  56269. 801712c: 681b ldr r3, [r3, #0]
  56270. 801712e: 2204 movs r2, #4
  56271. 8017130: 705a strb r2, [r3, #1]
  56272. msg->msg.sd.shut = NETCONN_SHUT_RDWR;
  56273. 8017132: 68fb ldr r3, [r7, #12]
  56274. 8017134: 2203 movs r2, #3
  56275. 8017136: 721a strb r2, [r3, #8]
  56276. msg->conn->current_msg = msg;
  56277. 8017138: 68fb ldr r3, [r7, #12]
  56278. 801713a: 681b ldr r3, [r3, #0]
  56279. 801713c: 68fa ldr r2, [r7, #12]
  56280. 801713e: 62da str r2, [r3, #44] @ 0x2c
  56281. #if LWIP_TCPIP_CORE_LOCKING
  56282. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  56283. 8017140: 68fb ldr r3, [r7, #12]
  56284. 8017142: 681b ldr r3, [r3, #0]
  56285. 8017144: 2100 movs r1, #0
  56286. 8017146: 4618 mov r0, r3
  56287. 8017148: f7ff fe12 bl 8016d70 <lwip_netconn_do_close_internal>
  56288. 801714c: 4603 mov r3, r0
  56289. 801714e: 2b00 cmp r3, #0
  56290. 8017150: d049 beq.n 80171e6 <lwip_netconn_do_delconn+0x1a2>
  56291. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  56292. 8017152: 68fb ldr r3, [r7, #12]
  56293. 8017154: 681b ldr r3, [r3, #0]
  56294. 8017156: 785b ldrb r3, [r3, #1]
  56295. 8017158: 2b04 cmp r3, #4
  56296. 801715a: d006 beq.n 801716a <lwip_netconn_do_delconn+0x126>
  56297. 801715c: 4b24 ldr r3, [pc, #144] @ (80171f0 <lwip_netconn_do_delconn+0x1ac>)
  56298. 801715e: f240 429a movw r2, #1178 @ 0x49a
  56299. 8017162: 4928 ldr r1, [pc, #160] @ (8017204 <lwip_netconn_do_delconn+0x1c0>)
  56300. 8017164: 4824 ldr r0, [pc, #144] @ (80171f8 <lwip_netconn_do_delconn+0x1b4>)
  56301. 8017166: f013 f829 bl 802a1bc <iprintf>
  56302. UNLOCK_TCPIP_CORE();
  56303. 801716a: f7f9 fc79 bl 8010a60 <sys_unlock_tcpip_core>
  56304. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  56305. 801716e: 68fb ldr r3, [r7, #12]
  56306. 8017170: 681b ldr r3, [r3, #0]
  56307. 8017172: 330c adds r3, #12
  56308. 8017174: 2100 movs r1, #0
  56309. 8017176: 4618 mov r0, r3
  56310. 8017178: f00f fcc3 bl 8026b02 <sys_arch_sem_wait>
  56311. LOCK_TCPIP_CORE();
  56312. 801717c: f7f9 fc60 bl 8010a40 <sys_lock_tcpip_core>
  56313. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  56314. 8017180: 68fb ldr r3, [r7, #12]
  56315. 8017182: 681b ldr r3, [r3, #0]
  56316. 8017184: 785b ldrb r3, [r3, #1]
  56317. 8017186: 2b00 cmp r3, #0
  56318. 8017188: d02d beq.n 80171e6 <lwip_netconn_do_delconn+0x1a2>
  56319. 801718a: 4b19 ldr r3, [pc, #100] @ (80171f0 <lwip_netconn_do_delconn+0x1ac>)
  56320. 801718c: f240 429e movw r2, #1182 @ 0x49e
  56321. 8017190: 491c ldr r1, [pc, #112] @ (8017204 <lwip_netconn_do_delconn+0x1c0>)
  56322. 8017192: 4819 ldr r0, [pc, #100] @ (80171f8 <lwip_netconn_do_delconn+0x1b4>)
  56323. 8017194: f013 f812 bl 802a1bc <iprintf>
  56324. #else /* LWIP_TCPIP_CORE_LOCKING */
  56325. lwip_netconn_do_close_internal(msg->conn);
  56326. #endif /* LWIP_TCPIP_CORE_LOCKING */
  56327. /* API_EVENT is called inside lwip_netconn_do_close_internal, before releasing
  56328. the application thread, so we can return at this point! */
  56329. return;
  56330. 8017198: e025 b.n 80171e6 <lwip_netconn_do_delconn+0x1a2>
  56331. #endif /* LWIP_TCP */
  56332. default:
  56333. break;
  56334. 801719a: bf00 nop
  56335. }
  56336. msg->conn->pcb.tcp = NULL;
  56337. 801719c: 68fb ldr r3, [r7, #12]
  56338. 801719e: 681b ldr r3, [r3, #0]
  56339. 80171a0: 2200 movs r2, #0
  56340. 80171a2: 605a str r2, [r3, #4]
  56341. }
  56342. /* tcp netconns don't come here! */
  56343. /* @todo: this lets select make the socket readable and writable,
  56344. which is wrong! errfd instead? */
  56345. API_EVENT(msg->conn, NETCONN_EVT_RCVPLUS, 0);
  56346. 80171a4: 68fb ldr r3, [r7, #12]
  56347. 80171a6: 681b ldr r3, [r3, #0]
  56348. 80171a8: 6b1b ldr r3, [r3, #48] @ 0x30
  56349. 80171aa: 2b00 cmp r3, #0
  56350. 80171ac: d007 beq.n 80171be <lwip_netconn_do_delconn+0x17a>
  56351. 80171ae: 68fb ldr r3, [r7, #12]
  56352. 80171b0: 681b ldr r3, [r3, #0]
  56353. 80171b2: 6b1b ldr r3, [r3, #48] @ 0x30
  56354. 80171b4: 68fa ldr r2, [r7, #12]
  56355. 80171b6: 6810 ldr r0, [r2, #0]
  56356. 80171b8: 2200 movs r2, #0
  56357. 80171ba: 2100 movs r1, #0
  56358. 80171bc: 4798 blx r3
  56359. API_EVENT(msg->conn, NETCONN_EVT_SENDPLUS, 0);
  56360. 80171be: 68fb ldr r3, [r7, #12]
  56361. 80171c0: 681b ldr r3, [r3, #0]
  56362. 80171c2: 6b1b ldr r3, [r3, #48] @ 0x30
  56363. 80171c4: 2b00 cmp r3, #0
  56364. 80171c6: d007 beq.n 80171d8 <lwip_netconn_do_delconn+0x194>
  56365. 80171c8: 68fb ldr r3, [r7, #12]
  56366. 80171ca: 681b ldr r3, [r3, #0]
  56367. 80171cc: 6b1b ldr r3, [r3, #48] @ 0x30
  56368. 80171ce: 68fa ldr r2, [r7, #12]
  56369. 80171d0: 6810 ldr r0, [r2, #0]
  56370. 80171d2: 2200 movs r2, #0
  56371. 80171d4: 2102 movs r1, #2
  56372. 80171d6: 4798 blx r3
  56373. }
  56374. if (sys_sem_valid(LWIP_API_MSG_SEM(msg))) {
  56375. 80171d8: 68fb ldr r3, [r7, #12]
  56376. 80171da: 681b ldr r3, [r3, #0]
  56377. 80171dc: 330c adds r3, #12
  56378. 80171de: 4618 mov r0, r3
  56379. 80171e0: f00f fcda bl 8026b98 <sys_sem_valid>
  56380. 80171e4: e000 b.n 80171e8 <lwip_netconn_do_delconn+0x1a4>
  56381. return;
  56382. 80171e6: bf00 nop
  56383. TCPIP_APIMSG_ACK(msg);
  56384. }
  56385. }
  56386. 80171e8: 3710 adds r7, #16
  56387. 80171ea: 46bd mov sp, r7
  56388. 80171ec: bd80 pop {r7, pc}
  56389. 80171ee: bf00 nop
  56390. 80171f0: 0802d770 .word 0x0802d770
  56391. 80171f4: 0802dae0 .word 0x0802dae0
  56392. 80171f8: 0802d7b4 .word 0x0802d7b4
  56393. 80171fc: 0802daf4 .word 0x0802daf4
  56394. 8017200: 0802db14 .word 0x0802db14
  56395. 8017204: 0802db30 .word 0x0802db30
  56396. 08017208 <lwip_netconn_do_connected>:
  56397. *
  56398. * @see tcp.h (struct tcp_pcb.connected) for parameters and return values
  56399. */
  56400. static err_t
  56401. lwip_netconn_do_connected(void *arg, struct tcp_pcb *pcb, err_t err)
  56402. {
  56403. 8017208: b580 push {r7, lr}
  56404. 801720a: b088 sub sp, #32
  56405. 801720c: af00 add r7, sp, #0
  56406. 801720e: 60f8 str r0, [r7, #12]
  56407. 8017210: 60b9 str r1, [r7, #8]
  56408. 8017212: 4613 mov r3, r2
  56409. 8017214: 71fb strb r3, [r7, #7]
  56410. struct netconn *conn;
  56411. int was_blocking;
  56412. sys_sem_t *op_completed_sem = NULL;
  56413. 8017216: 2300 movs r3, #0
  56414. 8017218: 61fb str r3, [r7, #28]
  56415. LWIP_UNUSED_ARG(pcb);
  56416. conn = (struct netconn *)arg;
  56417. 801721a: 68fb ldr r3, [r7, #12]
  56418. 801721c: 61bb str r3, [r7, #24]
  56419. if (conn == NULL) {
  56420. 801721e: 69bb ldr r3, [r7, #24]
  56421. 8017220: 2b00 cmp r3, #0
  56422. 8017222: d102 bne.n 801722a <lwip_netconn_do_connected+0x22>
  56423. return ERR_VAL;
  56424. 8017224: f06f 0305 mvn.w r3, #5
  56425. 8017228: e074 b.n 8017314 <lwip_netconn_do_connected+0x10c>
  56426. }
  56427. LWIP_ASSERT("conn->state == NETCONN_CONNECT", conn->state == NETCONN_CONNECT);
  56428. 801722a: 69bb ldr r3, [r7, #24]
  56429. 801722c: 785b ldrb r3, [r3, #1]
  56430. 801722e: 2b03 cmp r3, #3
  56431. 8017230: d006 beq.n 8017240 <lwip_netconn_do_connected+0x38>
  56432. 8017232: 4b3a ldr r3, [pc, #232] @ (801731c <lwip_netconn_do_connected+0x114>)
  56433. 8017234: f240 5223 movw r2, #1315 @ 0x523
  56434. 8017238: 4939 ldr r1, [pc, #228] @ (8017320 <lwip_netconn_do_connected+0x118>)
  56435. 801723a: 483a ldr r0, [pc, #232] @ (8017324 <lwip_netconn_do_connected+0x11c>)
  56436. 801723c: f012 ffbe bl 802a1bc <iprintf>
  56437. LWIP_ASSERT("(conn->current_msg != NULL) || conn->in_non_blocking_connect",
  56438. 8017240: 69bb ldr r3, [r7, #24]
  56439. 8017242: 6adb ldr r3, [r3, #44] @ 0x2c
  56440. 8017244: 2b00 cmp r3, #0
  56441. 8017246: d10d bne.n 8017264 <lwip_netconn_do_connected+0x5c>
  56442. 8017248: 69bb ldr r3, [r7, #24]
  56443. 801724a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56444. 801724e: f003 0304 and.w r3, r3, #4
  56445. 8017252: 2b00 cmp r3, #0
  56446. 8017254: d106 bne.n 8017264 <lwip_netconn_do_connected+0x5c>
  56447. 8017256: 4b31 ldr r3, [pc, #196] @ (801731c <lwip_netconn_do_connected+0x114>)
  56448. 8017258: f240 5224 movw r2, #1316 @ 0x524
  56449. 801725c: 4932 ldr r1, [pc, #200] @ (8017328 <lwip_netconn_do_connected+0x120>)
  56450. 801725e: 4831 ldr r0, [pc, #196] @ (8017324 <lwip_netconn_do_connected+0x11c>)
  56451. 8017260: f012 ffac bl 802a1bc <iprintf>
  56452. (conn->current_msg != NULL) || IN_NONBLOCKING_CONNECT(conn));
  56453. if (conn->current_msg != NULL) {
  56454. 8017264: 69bb ldr r3, [r7, #24]
  56455. 8017266: 6adb ldr r3, [r3, #44] @ 0x2c
  56456. 8017268: 2b00 cmp r3, #0
  56457. 801726a: d008 beq.n 801727e <lwip_netconn_do_connected+0x76>
  56458. conn->current_msg->err = err;
  56459. 801726c: 69bb ldr r3, [r7, #24]
  56460. 801726e: 6adb ldr r3, [r3, #44] @ 0x2c
  56461. 8017270: 79fa ldrb r2, [r7, #7]
  56462. 8017272: 711a strb r2, [r3, #4]
  56463. op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  56464. 8017274: 69bb ldr r3, [r7, #24]
  56465. 8017276: 6adb ldr r3, [r3, #44] @ 0x2c
  56466. 8017278: 681b ldr r3, [r3, #0]
  56467. 801727a: 330c adds r3, #12
  56468. 801727c: 61fb str r3, [r7, #28]
  56469. }
  56470. if ((NETCONNTYPE_GROUP(conn->type) == NETCONN_TCP) && (err == ERR_OK)) {
  56471. 801727e: 69bb ldr r3, [r7, #24]
  56472. 8017280: 781b ldrb r3, [r3, #0]
  56473. 8017282: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56474. 8017286: 2b10 cmp r3, #16
  56475. 8017288: d106 bne.n 8017298 <lwip_netconn_do_connected+0x90>
  56476. 801728a: f997 3007 ldrsb.w r3, [r7, #7]
  56477. 801728e: 2b00 cmp r3, #0
  56478. 8017290: d102 bne.n 8017298 <lwip_netconn_do_connected+0x90>
  56479. setup_tcp(conn);
  56480. 8017292: 69b8 ldr r0, [r7, #24]
  56481. 8017294: f7ff fb82 bl 801699c <setup_tcp>
  56482. }
  56483. was_blocking = !IN_NONBLOCKING_CONNECT(conn);
  56484. 8017298: 69bb ldr r3, [r7, #24]
  56485. 801729a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56486. 801729e: f003 0304 and.w r3, r3, #4
  56487. 80172a2: 2b00 cmp r3, #0
  56488. 80172a4: bf0c ite eq
  56489. 80172a6: 2301 moveq r3, #1
  56490. 80172a8: 2300 movne r3, #0
  56491. 80172aa: b2db uxtb r3, r3
  56492. 80172ac: 617b str r3, [r7, #20]
  56493. SET_NONBLOCKING_CONNECT(conn, 0);
  56494. 80172ae: 69bb ldr r3, [r7, #24]
  56495. 80172b0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56496. 80172b4: f023 0304 bic.w r3, r3, #4
  56497. 80172b8: b2da uxtb r2, r3
  56498. 80172ba: 69bb ldr r3, [r7, #24]
  56499. 80172bc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56500. LWIP_ASSERT("blocking connect state error",
  56501. 80172c0: 697b ldr r3, [r7, #20]
  56502. 80172c2: 2b00 cmp r3, #0
  56503. 80172c4: d002 beq.n 80172cc <lwip_netconn_do_connected+0xc4>
  56504. 80172c6: 69fb ldr r3, [r7, #28]
  56505. 80172c8: 2b00 cmp r3, #0
  56506. 80172ca: d10c bne.n 80172e6 <lwip_netconn_do_connected+0xde>
  56507. 80172cc: 697b ldr r3, [r7, #20]
  56508. 80172ce: 2b00 cmp r3, #0
  56509. 80172d0: d102 bne.n 80172d8 <lwip_netconn_do_connected+0xd0>
  56510. 80172d2: 69fb ldr r3, [r7, #28]
  56511. 80172d4: 2b00 cmp r3, #0
  56512. 80172d6: d006 beq.n 80172e6 <lwip_netconn_do_connected+0xde>
  56513. 80172d8: 4b10 ldr r3, [pc, #64] @ (801731c <lwip_netconn_do_connected+0x114>)
  56514. 80172da: f44f 62a6 mov.w r2, #1328 @ 0x530
  56515. 80172de: 4913 ldr r1, [pc, #76] @ (801732c <lwip_netconn_do_connected+0x124>)
  56516. 80172e0: 4810 ldr r0, [pc, #64] @ (8017324 <lwip_netconn_do_connected+0x11c>)
  56517. 80172e2: f012 ff6b bl 802a1bc <iprintf>
  56518. (was_blocking && op_completed_sem != NULL) ||
  56519. (!was_blocking && op_completed_sem == NULL));
  56520. conn->current_msg = NULL;
  56521. 80172e6: 69bb ldr r3, [r7, #24]
  56522. 80172e8: 2200 movs r2, #0
  56523. 80172ea: 62da str r2, [r3, #44] @ 0x2c
  56524. conn->state = NETCONN_NONE;
  56525. 80172ec: 69bb ldr r3, [r7, #24]
  56526. 80172ee: 2200 movs r2, #0
  56527. 80172f0: 705a strb r2, [r3, #1]
  56528. API_EVENT(conn, NETCONN_EVT_SENDPLUS, 0);
  56529. 80172f2: 69bb ldr r3, [r7, #24]
  56530. 80172f4: 6b1b ldr r3, [r3, #48] @ 0x30
  56531. 80172f6: 2b00 cmp r3, #0
  56532. 80172f8: d005 beq.n 8017306 <lwip_netconn_do_connected+0xfe>
  56533. 80172fa: 69bb ldr r3, [r7, #24]
  56534. 80172fc: 6b1b ldr r3, [r3, #48] @ 0x30
  56535. 80172fe: 2200 movs r2, #0
  56536. 8017300: 2102 movs r1, #2
  56537. 8017302: 69b8 ldr r0, [r7, #24]
  56538. 8017304: 4798 blx r3
  56539. if (was_blocking) {
  56540. 8017306: 697b ldr r3, [r7, #20]
  56541. 8017308: 2b00 cmp r3, #0
  56542. 801730a: d002 beq.n 8017312 <lwip_netconn_do_connected+0x10a>
  56543. sys_sem_signal(op_completed_sem);
  56544. 801730c: 69f8 ldr r0, [r7, #28]
  56545. 801730e: f00f fc29 bl 8026b64 <sys_sem_signal>
  56546. }
  56547. return ERR_OK;
  56548. 8017312: 2300 movs r3, #0
  56549. }
  56550. 8017314: 4618 mov r0, r3
  56551. 8017316: 3720 adds r7, #32
  56552. 8017318: 46bd mov sp, r7
  56553. 801731a: bd80 pop {r7, pc}
  56554. 801731c: 0802d770 .word 0x0802d770
  56555. 8017320: 0802db38 .word 0x0802db38
  56556. 8017324: 0802d7b4 .word 0x0802d7b4
  56557. 8017328: 0802db58 .word 0x0802db58
  56558. 801732c: 0802db98 .word 0x0802db98
  56559. 08017330 <lwip_netconn_do_connect>:
  56560. * @param m the api_msg pointing to the connection and containing
  56561. * the IP address and port to connect to
  56562. */
  56563. void
  56564. lwip_netconn_do_connect(void *m)
  56565. {
  56566. 8017330: b580 push {r7, lr}
  56567. 8017332: b086 sub sp, #24
  56568. 8017334: af00 add r7, sp, #0
  56569. 8017336: 6078 str r0, [r7, #4]
  56570. struct api_msg *msg = (struct api_msg *)m;
  56571. 8017338: 687b ldr r3, [r7, #4]
  56572. 801733a: 613b str r3, [r7, #16]
  56573. err_t err;
  56574. if (msg->conn->pcb.tcp == NULL) {
  56575. 801733c: 693b ldr r3, [r7, #16]
  56576. 801733e: 681b ldr r3, [r3, #0]
  56577. 8017340: 685b ldr r3, [r3, #4]
  56578. 8017342: 2b00 cmp r3, #0
  56579. 8017344: d102 bne.n 801734c <lwip_netconn_do_connect+0x1c>
  56580. /* This may happen when calling netconn_connect() a second time */
  56581. err = ERR_CLSD;
  56582. 8017346: 23f1 movs r3, #241 @ 0xf1
  56583. 8017348: 75fb strb r3, [r7, #23]
  56584. 801734a: e09e b.n 801748a <lwip_netconn_do_connect+0x15a>
  56585. } else {
  56586. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  56587. 801734c: 693b ldr r3, [r7, #16]
  56588. 801734e: 681b ldr r3, [r3, #0]
  56589. 8017350: 781b ldrb r3, [r3, #0]
  56590. 8017352: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56591. 8017356: 2b10 cmp r3, #16
  56592. 8017358: d00f beq.n 801737a <lwip_netconn_do_connect+0x4a>
  56593. 801735a: 2b20 cmp r3, #32
  56594. 801735c: f040 808a bne.w 8017474 <lwip_netconn_do_connect+0x144>
  56595. err = raw_connect(msg->conn->pcb.raw, API_EXPR_REF(msg->msg.bc.ipaddr));
  56596. break;
  56597. #endif /* LWIP_RAW */
  56598. #if LWIP_UDP
  56599. case NETCONN_UDP:
  56600. err = udp_connect(msg->conn->pcb.udp, API_EXPR_REF(msg->msg.bc.ipaddr), msg->msg.bc.port);
  56601. 8017360: 693b ldr r3, [r7, #16]
  56602. 8017362: 681b ldr r3, [r3, #0]
  56603. 8017364: 6858 ldr r0, [r3, #4]
  56604. 8017366: 693b ldr r3, [r7, #16]
  56605. 8017368: 6899 ldr r1, [r3, #8]
  56606. 801736a: 693b ldr r3, [r7, #16]
  56607. 801736c: 899b ldrh r3, [r3, #12]
  56608. 801736e: 461a mov r2, r3
  56609. 8017370: f00a fdd8 bl 8021f24 <udp_connect>
  56610. 8017374: 4603 mov r3, r0
  56611. 8017376: 75fb strb r3, [r7, #23]
  56612. break;
  56613. 8017378: e087 b.n 801748a <lwip_netconn_do_connect+0x15a>
  56614. #endif /* LWIP_UDP */
  56615. #if LWIP_TCP
  56616. case NETCONN_TCP:
  56617. /* Prevent connect while doing any other action. */
  56618. if (msg->conn->state == NETCONN_CONNECT) {
  56619. 801737a: 693b ldr r3, [r7, #16]
  56620. 801737c: 681b ldr r3, [r3, #0]
  56621. 801737e: 785b ldrb r3, [r3, #1]
  56622. 8017380: 2b03 cmp r3, #3
  56623. 8017382: d102 bne.n 801738a <lwip_netconn_do_connect+0x5a>
  56624. err = ERR_ALREADY;
  56625. 8017384: 23f7 movs r3, #247 @ 0xf7
  56626. 8017386: 75fb strb r3, [r7, #23]
  56627. #endif /* LWIP_TCPIP_CORE_LOCKING */
  56628. return;
  56629. }
  56630. }
  56631. }
  56632. break;
  56633. 8017388: e07e b.n 8017488 <lwip_netconn_do_connect+0x158>
  56634. } else if (msg->conn->state != NETCONN_NONE) {
  56635. 801738a: 693b ldr r3, [r7, #16]
  56636. 801738c: 681b ldr r3, [r3, #0]
  56637. 801738e: 785b ldrb r3, [r3, #1]
  56638. 8017390: 2b00 cmp r3, #0
  56639. 8017392: d002 beq.n 801739a <lwip_netconn_do_connect+0x6a>
  56640. err = ERR_ISCONN;
  56641. 8017394: 23f6 movs r3, #246 @ 0xf6
  56642. 8017396: 75fb strb r3, [r7, #23]
  56643. break;
  56644. 8017398: e076 b.n 8017488 <lwip_netconn_do_connect+0x158>
  56645. setup_tcp(msg->conn);
  56646. 801739a: 693b ldr r3, [r7, #16]
  56647. 801739c: 681b ldr r3, [r3, #0]
  56648. 801739e: 4618 mov r0, r3
  56649. 80173a0: f7ff fafc bl 801699c <setup_tcp>
  56650. err = tcp_connect(msg->conn->pcb.tcp, API_EXPR_REF(msg->msg.bc.ipaddr),
  56651. 80173a4: 693b ldr r3, [r7, #16]
  56652. 80173a6: 681b ldr r3, [r3, #0]
  56653. 80173a8: 6858 ldr r0, [r3, #4]
  56654. 80173aa: 693b ldr r3, [r7, #16]
  56655. 80173ac: 6899 ldr r1, [r3, #8]
  56656. 80173ae: 693b ldr r3, [r7, #16]
  56657. 80173b0: 899a ldrh r2, [r3, #12]
  56658. 80173b2: 4b3a ldr r3, [pc, #232] @ (801749c <lwip_netconn_do_connect+0x16c>)
  56659. 80173b4: f004 fb90 bl 801bad8 <tcp_connect>
  56660. 80173b8: 4603 mov r3, r0
  56661. 80173ba: 75fb strb r3, [r7, #23]
  56662. if (err == ERR_OK) {
  56663. 80173bc: f997 3017 ldrsb.w r3, [r7, #23]
  56664. 80173c0: 2b00 cmp r3, #0
  56665. 80173c2: d161 bne.n 8017488 <lwip_netconn_do_connect+0x158>
  56666. u8_t non_blocking = netconn_is_nonblocking(msg->conn);
  56667. 80173c4: 693b ldr r3, [r7, #16]
  56668. 80173c6: 681b ldr r3, [r3, #0]
  56669. 80173c8: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  56670. 80173cc: f003 0302 and.w r3, r3, #2
  56671. 80173d0: 2b00 cmp r3, #0
  56672. 80173d2: bf14 ite ne
  56673. 80173d4: 2301 movne r3, #1
  56674. 80173d6: 2300 moveq r3, #0
  56675. 80173d8: b2db uxtb r3, r3
  56676. 80173da: 73fb strb r3, [r7, #15]
  56677. msg->conn->state = NETCONN_CONNECT;
  56678. 80173dc: 693b ldr r3, [r7, #16]
  56679. 80173de: 681b ldr r3, [r3, #0]
  56680. 80173e0: 2203 movs r2, #3
  56681. 80173e2: 705a strb r2, [r3, #1]
  56682. SET_NONBLOCKING_CONNECT(msg->conn, non_blocking);
  56683. 80173e4: 7bfb ldrb r3, [r7, #15]
  56684. 80173e6: 2b00 cmp r3, #0
  56685. 80173e8: d00b beq.n 8017402 <lwip_netconn_do_connect+0xd2>
  56686. 80173ea: 693b ldr r3, [r7, #16]
  56687. 80173ec: 681b ldr r3, [r3, #0]
  56688. 80173ee: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  56689. 80173f2: 693b ldr r3, [r7, #16]
  56690. 80173f4: 681b ldr r3, [r3, #0]
  56691. 80173f6: f042 0204 orr.w r2, r2, #4
  56692. 80173fa: b2d2 uxtb r2, r2
  56693. 80173fc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56694. 8017400: e00a b.n 8017418 <lwip_netconn_do_connect+0xe8>
  56695. 8017402: 693b ldr r3, [r7, #16]
  56696. 8017404: 681b ldr r3, [r3, #0]
  56697. 8017406: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  56698. 801740a: 693b ldr r3, [r7, #16]
  56699. 801740c: 681b ldr r3, [r3, #0]
  56700. 801740e: f022 0204 bic.w r2, r2, #4
  56701. 8017412: b2d2 uxtb r2, r2
  56702. 8017414: f883 2028 strb.w r2, [r3, #40] @ 0x28
  56703. if (non_blocking) {
  56704. 8017418: 7bfb ldrb r3, [r7, #15]
  56705. 801741a: 2b00 cmp r3, #0
  56706. 801741c: d002 beq.n 8017424 <lwip_netconn_do_connect+0xf4>
  56707. err = ERR_INPROGRESS;
  56708. 801741e: 23fb movs r3, #251 @ 0xfb
  56709. 8017420: 75fb strb r3, [r7, #23]
  56710. break;
  56711. 8017422: e031 b.n 8017488 <lwip_netconn_do_connect+0x158>
  56712. msg->conn->current_msg = msg;
  56713. 8017424: 693b ldr r3, [r7, #16]
  56714. 8017426: 681b ldr r3, [r3, #0]
  56715. 8017428: 693a ldr r2, [r7, #16]
  56716. 801742a: 62da str r2, [r3, #44] @ 0x2c
  56717. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CONNECT);
  56718. 801742c: 693b ldr r3, [r7, #16]
  56719. 801742e: 681b ldr r3, [r3, #0]
  56720. 8017430: 785b ldrb r3, [r3, #1]
  56721. 8017432: 2b03 cmp r3, #3
  56722. 8017434: d006 beq.n 8017444 <lwip_netconn_do_connect+0x114>
  56723. 8017436: 4b1a ldr r3, [pc, #104] @ (80174a0 <lwip_netconn_do_connect+0x170>)
  56724. 8017438: f44f 62ae mov.w r2, #1392 @ 0x570
  56725. 801743c: 4919 ldr r1, [pc, #100] @ (80174a4 <lwip_netconn_do_connect+0x174>)
  56726. 801743e: 481a ldr r0, [pc, #104] @ (80174a8 <lwip_netconn_do_connect+0x178>)
  56727. 8017440: f012 febc bl 802a1bc <iprintf>
  56728. UNLOCK_TCPIP_CORE();
  56729. 8017444: f7f9 fb0c bl 8010a60 <sys_unlock_tcpip_core>
  56730. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  56731. 8017448: 693b ldr r3, [r7, #16]
  56732. 801744a: 681b ldr r3, [r3, #0]
  56733. 801744c: 330c adds r3, #12
  56734. 801744e: 2100 movs r1, #0
  56735. 8017450: 4618 mov r0, r3
  56736. 8017452: f00f fb56 bl 8026b02 <sys_arch_sem_wait>
  56737. LOCK_TCPIP_CORE();
  56738. 8017456: f7f9 faf3 bl 8010a40 <sys_lock_tcpip_core>
  56739. LWIP_ASSERT("state!", msg->conn->state != NETCONN_CONNECT);
  56740. 801745a: 693b ldr r3, [r7, #16]
  56741. 801745c: 681b ldr r3, [r3, #0]
  56742. 801745e: 785b ldrb r3, [r3, #1]
  56743. 8017460: 2b03 cmp r3, #3
  56744. 8017462: d116 bne.n 8017492 <lwip_netconn_do_connect+0x162>
  56745. 8017464: 4b0e ldr r3, [pc, #56] @ (80174a0 <lwip_netconn_do_connect+0x170>)
  56746. 8017466: f240 5274 movw r2, #1396 @ 0x574
  56747. 801746a: 490e ldr r1, [pc, #56] @ (80174a4 <lwip_netconn_do_connect+0x174>)
  56748. 801746c: 480e ldr r0, [pc, #56] @ (80174a8 <lwip_netconn_do_connect+0x178>)
  56749. 801746e: f012 fea5 bl 802a1bc <iprintf>
  56750. return;
  56751. 8017472: e00e b.n 8017492 <lwip_netconn_do_connect+0x162>
  56752. #endif /* LWIP_TCP */
  56753. default:
  56754. LWIP_ERROR("Invalid netconn type", 0, do {
  56755. 8017474: 4b0a ldr r3, [pc, #40] @ (80174a0 <lwip_netconn_do_connect+0x170>)
  56756. 8017476: f240 527d movw r2, #1405 @ 0x57d
  56757. 801747a: 490c ldr r1, [pc, #48] @ (80174ac <lwip_netconn_do_connect+0x17c>)
  56758. 801747c: 480a ldr r0, [pc, #40] @ (80174a8 <lwip_netconn_do_connect+0x178>)
  56759. 801747e: f012 fe9d bl 802a1bc <iprintf>
  56760. 8017482: 23fa movs r3, #250 @ 0xfa
  56761. 8017484: 75fb strb r3, [r7, #23]
  56762. err = ERR_VAL;
  56763. } while (0));
  56764. break;
  56765. 8017486: e000 b.n 801748a <lwip_netconn_do_connect+0x15a>
  56766. break;
  56767. 8017488: bf00 nop
  56768. }
  56769. }
  56770. msg->err = err;
  56771. 801748a: 693b ldr r3, [r7, #16]
  56772. 801748c: 7dfa ldrb r2, [r7, #23]
  56773. 801748e: 711a strb r2, [r3, #4]
  56774. 8017490: e000 b.n 8017494 <lwip_netconn_do_connect+0x164>
  56775. return;
  56776. 8017492: bf00 nop
  56777. /* For all other protocols, netconn_connect() calls netconn_apimsg(),
  56778. so use TCPIP_APIMSG_ACK() here. */
  56779. TCPIP_APIMSG_ACK(msg);
  56780. }
  56781. 8017494: 3718 adds r7, #24
  56782. 8017496: 46bd mov sp, r7
  56783. 8017498: bd80 pop {r7, pc}
  56784. 801749a: bf00 nop
  56785. 801749c: 08017209 .word 0x08017209
  56786. 80174a0: 0802d770 .word 0x0802d770
  56787. 80174a4: 0802db30 .word 0x0802db30
  56788. 80174a8: 0802d7b4 .word 0x0802d7b4
  56789. 80174ac: 0802dbb8 .word 0x0802dbb8
  56790. 080174b0 <lwip_netconn_do_disconnect>:
  56791. *
  56792. * @param m the api_msg pointing to the connection to disconnect
  56793. */
  56794. void
  56795. lwip_netconn_do_disconnect(void *m)
  56796. {
  56797. 80174b0: b580 push {r7, lr}
  56798. 80174b2: b084 sub sp, #16
  56799. 80174b4: af00 add r7, sp, #0
  56800. 80174b6: 6078 str r0, [r7, #4]
  56801. struct api_msg *msg = (struct api_msg *)m;
  56802. 80174b8: 687b ldr r3, [r7, #4]
  56803. 80174ba: 60fb str r3, [r7, #12]
  56804. #if LWIP_UDP
  56805. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_UDP) {
  56806. 80174bc: 68fb ldr r3, [r7, #12]
  56807. 80174be: 681b ldr r3, [r3, #0]
  56808. 80174c0: 781b ldrb r3, [r3, #0]
  56809. 80174c2: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56810. 80174c6: 2b20 cmp r3, #32
  56811. 80174c8: d109 bne.n 80174de <lwip_netconn_do_disconnect+0x2e>
  56812. udp_disconnect(msg->conn->pcb.udp);
  56813. 80174ca: 68fb ldr r3, [r7, #12]
  56814. 80174cc: 681b ldr r3, [r3, #0]
  56815. 80174ce: 685b ldr r3, [r3, #4]
  56816. 80174d0: 4618 mov r0, r3
  56817. 80174d2: f00a fd97 bl 8022004 <udp_disconnect>
  56818. msg->err = ERR_OK;
  56819. 80174d6: 68fb ldr r3, [r7, #12]
  56820. 80174d8: 2200 movs r2, #0
  56821. 80174da: 711a strb r2, [r3, #4]
  56822. #endif /* LWIP_UDP */
  56823. {
  56824. msg->err = ERR_VAL;
  56825. }
  56826. TCPIP_APIMSG_ACK(msg);
  56827. }
  56828. 80174dc: e002 b.n 80174e4 <lwip_netconn_do_disconnect+0x34>
  56829. msg->err = ERR_VAL;
  56830. 80174de: 68fb ldr r3, [r7, #12]
  56831. 80174e0: 22fa movs r2, #250 @ 0xfa
  56832. 80174e2: 711a strb r2, [r3, #4]
  56833. }
  56834. 80174e4: bf00 nop
  56835. 80174e6: 3710 adds r7, #16
  56836. 80174e8: 46bd mov sp, r7
  56837. 80174ea: bd80 pop {r7, pc}
  56838. 080174ec <lwip_netconn_do_send>:
  56839. *
  56840. * @param m the api_msg pointing to the connection
  56841. */
  56842. void
  56843. lwip_netconn_do_send(void *m)
  56844. {
  56845. 80174ec: b580 push {r7, lr}
  56846. 80174ee: b084 sub sp, #16
  56847. 80174f0: af00 add r7, sp, #0
  56848. 80174f2: 6078 str r0, [r7, #4]
  56849. struct api_msg *msg = (struct api_msg *)m;
  56850. 80174f4: 687b ldr r3, [r7, #4]
  56851. 80174f6: 60bb str r3, [r7, #8]
  56852. err_t err = netconn_err(msg->conn);
  56853. 80174f8: 68bb ldr r3, [r7, #8]
  56854. 80174fa: 681b ldr r3, [r3, #0]
  56855. 80174fc: 4618 mov r0, r3
  56856. 80174fe: f7fe fef9 bl 80162f4 <netconn_err>
  56857. 8017502: 4603 mov r3, r0
  56858. 8017504: 73fb strb r3, [r7, #15]
  56859. if (err == ERR_OK) {
  56860. 8017506: f997 300f ldrsb.w r3, [r7, #15]
  56861. 801750a: 2b00 cmp r3, #0
  56862. 801750c: d134 bne.n 8017578 <lwip_netconn_do_send+0x8c>
  56863. if (msg->conn->pcb.tcp != NULL) {
  56864. 801750e: 68bb ldr r3, [r7, #8]
  56865. 8017510: 681b ldr r3, [r3, #0]
  56866. 8017512: 685b ldr r3, [r3, #4]
  56867. 8017514: 2b00 cmp r3, #0
  56868. 8017516: d02d beq.n 8017574 <lwip_netconn_do_send+0x88>
  56869. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  56870. 8017518: 68bb ldr r3, [r7, #8]
  56871. 801751a: 681b ldr r3, [r3, #0]
  56872. 801751c: 781b ldrb r3, [r3, #0]
  56873. 801751e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56874. 8017522: 2b20 cmp r3, #32
  56875. 8017524: d123 bne.n 801756e <lwip_netconn_do_send+0x82>
  56876. err = udp_sendto_chksum(msg->conn->pcb.udp, msg->msg.b->p,
  56877. &msg->msg.b->addr, msg->msg.b->port,
  56878. msg->msg.b->flags & NETBUF_FLAG_CHKSUM, msg->msg.b->toport_chksum);
  56879. }
  56880. #else /* LWIP_CHECKSUM_ON_COPY */
  56881. if (ip_addr_isany_val(msg->msg.b->addr) || IP_IS_ANY_TYPE_VAL(msg->msg.b->addr)) {
  56882. 8017526: 68bb ldr r3, [r7, #8]
  56883. 8017528: 689b ldr r3, [r3, #8]
  56884. 801752a: 689b ldr r3, [r3, #8]
  56885. 801752c: 2b00 cmp r3, #0
  56886. 801752e: d10c bne.n 801754a <lwip_netconn_do_send+0x5e>
  56887. err = udp_send(msg->conn->pcb.udp, msg->msg.b->p);
  56888. 8017530: 68bb ldr r3, [r7, #8]
  56889. 8017532: 681b ldr r3, [r3, #0]
  56890. 8017534: 685a ldr r2, [r3, #4]
  56891. 8017536: 68bb ldr r3, [r7, #8]
  56892. 8017538: 689b ldr r3, [r3, #8]
  56893. 801753a: 681b ldr r3, [r3, #0]
  56894. 801753c: 4619 mov r1, r3
  56895. 801753e: 4610 mov r0, r2
  56896. 8017540: f00a fa7a bl 8021a38 <udp_send>
  56897. 8017544: 4603 mov r3, r0
  56898. 8017546: 73fb strb r3, [r7, #15]
  56899. } else {
  56900. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  56901. }
  56902. #endif /* LWIP_CHECKSUM_ON_COPY */
  56903. break;
  56904. 8017548: e016 b.n 8017578 <lwip_netconn_do_send+0x8c>
  56905. err = udp_sendto(msg->conn->pcb.udp, msg->msg.b->p, &msg->msg.b->addr, msg->msg.b->port);
  56906. 801754a: 68bb ldr r3, [r7, #8]
  56907. 801754c: 681b ldr r3, [r3, #0]
  56908. 801754e: 6858 ldr r0, [r3, #4]
  56909. 8017550: 68bb ldr r3, [r7, #8]
  56910. 8017552: 689b ldr r3, [r3, #8]
  56911. 8017554: 6819 ldr r1, [r3, #0]
  56912. 8017556: 68bb ldr r3, [r7, #8]
  56913. 8017558: 689b ldr r3, [r3, #8]
  56914. 801755a: f103 0208 add.w r2, r3, #8
  56915. 801755e: 68bb ldr r3, [r7, #8]
  56916. 8017560: 689b ldr r3, [r3, #8]
  56917. 8017562: 899b ldrh r3, [r3, #12]
  56918. 8017564: f00a fa9c bl 8021aa0 <udp_sendto>
  56919. 8017568: 4603 mov r3, r0
  56920. 801756a: 73fb strb r3, [r7, #15]
  56921. break;
  56922. 801756c: e004 b.n 8017578 <lwip_netconn_do_send+0x8c>
  56923. #endif /* LWIP_UDP */
  56924. default:
  56925. err = ERR_CONN;
  56926. 801756e: 23f5 movs r3, #245 @ 0xf5
  56927. 8017570: 73fb strb r3, [r7, #15]
  56928. break;
  56929. 8017572: e001 b.n 8017578 <lwip_netconn_do_send+0x8c>
  56930. }
  56931. } else {
  56932. err = ERR_CONN;
  56933. 8017574: 23f5 movs r3, #245 @ 0xf5
  56934. 8017576: 73fb strb r3, [r7, #15]
  56935. }
  56936. }
  56937. msg->err = err;
  56938. 8017578: 68bb ldr r3, [r7, #8]
  56939. 801757a: 7bfa ldrb r2, [r7, #15]
  56940. 801757c: 711a strb r2, [r3, #4]
  56941. TCPIP_APIMSG_ACK(msg);
  56942. }
  56943. 801757e: bf00 nop
  56944. 8017580: 3710 adds r7, #16
  56945. 8017582: 46bd mov sp, r7
  56946. 8017584: bd80 pop {r7, pc}
  56947. 08017586 <lwip_netconn_do_recv>:
  56948. *
  56949. * @param m the api_msg pointing to the connection
  56950. */
  56951. void
  56952. lwip_netconn_do_recv(void *m)
  56953. {
  56954. 8017586: b580 push {r7, lr}
  56955. 8017588: b086 sub sp, #24
  56956. 801758a: af00 add r7, sp, #0
  56957. 801758c: 6078 str r0, [r7, #4]
  56958. struct api_msg *msg = (struct api_msg *)m;
  56959. 801758e: 687b ldr r3, [r7, #4]
  56960. 8017590: 613b str r3, [r7, #16]
  56961. msg->err = ERR_OK;
  56962. 8017592: 693b ldr r3, [r7, #16]
  56963. 8017594: 2200 movs r2, #0
  56964. 8017596: 711a strb r2, [r3, #4]
  56965. if (msg->conn->pcb.tcp != NULL) {
  56966. 8017598: 693b ldr r3, [r7, #16]
  56967. 801759a: 681b ldr r3, [r3, #0]
  56968. 801759c: 685b ldr r3, [r3, #4]
  56969. 801759e: 2b00 cmp r3, #0
  56970. 80175a0: d022 beq.n 80175e8 <lwip_netconn_do_recv+0x62>
  56971. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  56972. 80175a2: 693b ldr r3, [r7, #16]
  56973. 80175a4: 681b ldr r3, [r3, #0]
  56974. 80175a6: 781b ldrb r3, [r3, #0]
  56975. 80175a8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  56976. 80175ac: 2b10 cmp r3, #16
  56977. 80175ae: d11b bne.n 80175e8 <lwip_netconn_do_recv+0x62>
  56978. size_t remaining = msg->msg.r.len;
  56979. 80175b0: 693b ldr r3, [r7, #16]
  56980. 80175b2: 689b ldr r3, [r3, #8]
  56981. 80175b4: 617b str r3, [r7, #20]
  56982. do {
  56983. u16_t recved = (u16_t)((remaining > 0xffff) ? 0xffff : remaining);
  56984. 80175b6: 697b ldr r3, [r7, #20]
  56985. 80175b8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  56986. 80175bc: d202 bcs.n 80175c4 <lwip_netconn_do_recv+0x3e>
  56987. 80175be: 697b ldr r3, [r7, #20]
  56988. 80175c0: b29b uxth r3, r3
  56989. 80175c2: e001 b.n 80175c8 <lwip_netconn_do_recv+0x42>
  56990. 80175c4: f64f 73ff movw r3, #65535 @ 0xffff
  56991. 80175c8: 81fb strh r3, [r7, #14]
  56992. tcp_recved(msg->conn->pcb.tcp, recved);
  56993. 80175ca: 693b ldr r3, [r7, #16]
  56994. 80175cc: 681b ldr r3, [r3, #0]
  56995. 80175ce: 685b ldr r3, [r3, #4]
  56996. 80175d0: 89fa ldrh r2, [r7, #14]
  56997. 80175d2: 4611 mov r1, r2
  56998. 80175d4: 4618 mov r0, r3
  56999. 80175d6: f004 f9e5 bl 801b9a4 <tcp_recved>
  57000. remaining -= recved;
  57001. 80175da: 89fb ldrh r3, [r7, #14]
  57002. 80175dc: 697a ldr r2, [r7, #20]
  57003. 80175de: 1ad3 subs r3, r2, r3
  57004. 80175e0: 617b str r3, [r7, #20]
  57005. } while (remaining != 0);
  57006. 80175e2: 697b ldr r3, [r7, #20]
  57007. 80175e4: 2b00 cmp r3, #0
  57008. 80175e6: d1e6 bne.n 80175b6 <lwip_netconn_do_recv+0x30>
  57009. }
  57010. }
  57011. TCPIP_APIMSG_ACK(msg);
  57012. }
  57013. 80175e8: bf00 nop
  57014. 80175ea: 3718 adds r7, #24
  57015. 80175ec: 46bd mov sp, r7
  57016. 80175ee: bd80 pop {r7, pc}
  57017. 080175f0 <lwip_netconn_do_writemore>:
  57018. * @return ERR_OK
  57019. * ERR_MEM if LWIP_TCPIP_CORE_LOCKING=1 and sending hasn't yet finished
  57020. */
  57021. static err_t
  57022. lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM)
  57023. {
  57024. 80175f0: b580 push {r7, lr}
  57025. 80175f2: b088 sub sp, #32
  57026. 80175f4: af00 add r7, sp, #0
  57027. 80175f6: 6078 str r0, [r7, #4]
  57028. 80175f8: 460b mov r3, r1
  57029. 80175fa: 70fb strb r3, [r7, #3]
  57030. err_t err;
  57031. const void *dataptr;
  57032. u16_t len, available;
  57033. u8_t write_finished = 0;
  57034. 80175fc: 2300 movs r3, #0
  57035. 80175fe: 76fb strb r3, [r7, #27]
  57036. size_t diff;
  57037. u8_t dontblock;
  57038. u8_t apiflags;
  57039. u8_t write_more;
  57040. LWIP_ASSERT("conn != NULL", conn != NULL);
  57041. 8017600: 687b ldr r3, [r7, #4]
  57042. 8017602: 2b00 cmp r3, #0
  57043. 8017604: d106 bne.n 8017614 <lwip_netconn_do_writemore+0x24>
  57044. 8017606: 4b61 ldr r3, [pc, #388] @ (801778c <lwip_netconn_do_writemore+0x19c>)
  57045. 8017608: f240 6273 movw r2, #1651 @ 0x673
  57046. 801760c: 4960 ldr r1, [pc, #384] @ (8017790 <lwip_netconn_do_writemore+0x1a0>)
  57047. 801760e: 4861 ldr r0, [pc, #388] @ (8017794 <lwip_netconn_do_writemore+0x1a4>)
  57048. 8017610: f012 fdd4 bl 802a1bc <iprintf>
  57049. LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE));
  57050. 8017614: 687b ldr r3, [r7, #4]
  57051. 8017616: 785b ldrb r3, [r3, #1]
  57052. 8017618: 2b01 cmp r3, #1
  57053. 801761a: d006 beq.n 801762a <lwip_netconn_do_writemore+0x3a>
  57054. 801761c: 4b5b ldr r3, [pc, #364] @ (801778c <lwip_netconn_do_writemore+0x19c>)
  57055. 801761e: f240 6274 movw r2, #1652 @ 0x674
  57056. 8017622: 495d ldr r1, [pc, #372] @ (8017798 <lwip_netconn_do_writemore+0x1a8>)
  57057. 8017624: 485b ldr r0, [pc, #364] @ (8017794 <lwip_netconn_do_writemore+0x1a4>)
  57058. 8017626: f012 fdc9 bl 802a1bc <iprintf>
  57059. LWIP_ASSERT("conn->current_msg != NULL", conn->current_msg != NULL);
  57060. 801762a: 687b ldr r3, [r7, #4]
  57061. 801762c: 6adb ldr r3, [r3, #44] @ 0x2c
  57062. 801762e: 2b00 cmp r3, #0
  57063. 8017630: d106 bne.n 8017640 <lwip_netconn_do_writemore+0x50>
  57064. 8017632: 4b56 ldr r3, [pc, #344] @ (801778c <lwip_netconn_do_writemore+0x19c>)
  57065. 8017634: f240 6275 movw r2, #1653 @ 0x675
  57066. 8017638: 4958 ldr r1, [pc, #352] @ (801779c <lwip_netconn_do_writemore+0x1ac>)
  57067. 801763a: 4856 ldr r0, [pc, #344] @ (8017794 <lwip_netconn_do_writemore+0x1a4>)
  57068. 801763c: f012 fdbe bl 802a1bc <iprintf>
  57069. LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL);
  57070. 8017640: 687b ldr r3, [r7, #4]
  57071. 8017642: 685b ldr r3, [r3, #4]
  57072. 8017644: 2b00 cmp r3, #0
  57073. 8017646: d106 bne.n 8017656 <lwip_netconn_do_writemore+0x66>
  57074. 8017648: 4b50 ldr r3, [pc, #320] @ (801778c <lwip_netconn_do_writemore+0x19c>)
  57075. 801764a: f240 6276 movw r2, #1654 @ 0x676
  57076. 801764e: 4954 ldr r1, [pc, #336] @ (80177a0 <lwip_netconn_do_writemore+0x1b0>)
  57077. 8017650: 4850 ldr r0, [pc, #320] @ (8017794 <lwip_netconn_do_writemore+0x1a4>)
  57078. 8017652: f012 fdb3 bl 802a1bc <iprintf>
  57079. LWIP_ASSERT("conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len",
  57080. 8017656: 687b ldr r3, [r7, #4]
  57081. 8017658: 6adb ldr r3, [r3, #44] @ 0x2c
  57082. 801765a: 699a ldr r2, [r3, #24]
  57083. 801765c: 687b ldr r3, [r7, #4]
  57084. 801765e: 6adb ldr r3, [r3, #44] @ 0x2c
  57085. 8017660: 695b ldr r3, [r3, #20]
  57086. 8017662: 429a cmp r2, r3
  57087. 8017664: d306 bcc.n 8017674 <lwip_netconn_do_writemore+0x84>
  57088. 8017666: 4b49 ldr r3, [pc, #292] @ (801778c <lwip_netconn_do_writemore+0x19c>)
  57089. 8017668: f240 6277 movw r2, #1655 @ 0x677
  57090. 801766c: 494d ldr r1, [pc, #308] @ (80177a4 <lwip_netconn_do_writemore+0x1b4>)
  57091. 801766e: 4849 ldr r0, [pc, #292] @ (8017794 <lwip_netconn_do_writemore+0x1a4>)
  57092. 8017670: f012 fda4 bl 802a1bc <iprintf>
  57093. conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len);
  57094. LWIP_ASSERT("conn->current_msg->msg.w.vector_cnt > 0", conn->current_msg->msg.w.vector_cnt > 0);
  57095. 8017674: 687b ldr r3, [r7, #4]
  57096. 8017676: 6adb ldr r3, [r3, #44] @ 0x2c
  57097. 8017678: 899b ldrh r3, [r3, #12]
  57098. 801767a: 2b00 cmp r3, #0
  57099. 801767c: d106 bne.n 801768c <lwip_netconn_do_writemore+0x9c>
  57100. 801767e: 4b43 ldr r3, [pc, #268] @ (801778c <lwip_netconn_do_writemore+0x19c>)
  57101. 8017680: f240 6279 movw r2, #1657 @ 0x679
  57102. 8017684: 4948 ldr r1, [pc, #288] @ (80177a8 <lwip_netconn_do_writemore+0x1b8>)
  57103. 8017686: 4843 ldr r0, [pc, #268] @ (8017794 <lwip_netconn_do_writemore+0x1a4>)
  57104. 8017688: f012 fd98 bl 802a1bc <iprintf>
  57105. apiflags = conn->current_msg->msg.w.apiflags;
  57106. 801768c: 687b ldr r3, [r7, #4]
  57107. 801768e: 6adb ldr r3, [r3, #44] @ 0x2c
  57108. 8017690: 7f1b ldrb r3, [r3, #28]
  57109. 8017692: 76bb strb r3, [r7, #26]
  57110. dontblock = netconn_is_nonblocking(conn) || (apiflags & NETCONN_DONTBLOCK);
  57111. 8017694: 687b ldr r3, [r7, #4]
  57112. 8017696: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57113. 801769a: f003 0302 and.w r3, r3, #2
  57114. 801769e: 2b00 cmp r3, #0
  57115. 80176a0: d104 bne.n 80176ac <lwip_netconn_do_writemore+0xbc>
  57116. 80176a2: 7ebb ldrb r3, [r7, #26]
  57117. 80176a4: f003 0304 and.w r3, r3, #4
  57118. 80176a8: 2b00 cmp r3, #0
  57119. 80176aa: d001 beq.n 80176b0 <lwip_netconn_do_writemore+0xc0>
  57120. 80176ac: 2301 movs r3, #1
  57121. 80176ae: e000 b.n 80176b2 <lwip_netconn_do_writemore+0xc2>
  57122. 80176b0: 2300 movs r3, #0
  57123. 80176b2: 763b strb r3, [r7, #24]
  57124. }
  57125. } else
  57126. #endif /* LWIP_SO_SNDTIMEO */
  57127. {
  57128. do {
  57129. dataptr = (const u8_t *)conn->current_msg->msg.w.vector->ptr + conn->current_msg->msg.w.vector_off;
  57130. 80176b4: 687b ldr r3, [r7, #4]
  57131. 80176b6: 6adb ldr r3, [r3, #44] @ 0x2c
  57132. 80176b8: 689b ldr r3, [r3, #8]
  57133. 80176ba: 681a ldr r2, [r3, #0]
  57134. 80176bc: 687b ldr r3, [r7, #4]
  57135. 80176be: 6adb ldr r3, [r3, #44] @ 0x2c
  57136. 80176c0: 691b ldr r3, [r3, #16]
  57137. 80176c2: 4413 add r3, r2
  57138. 80176c4: 617b str r3, [r7, #20]
  57139. diff = conn->current_msg->msg.w.vector->len - conn->current_msg->msg.w.vector_off;
  57140. 80176c6: 687b ldr r3, [r7, #4]
  57141. 80176c8: 6adb ldr r3, [r3, #44] @ 0x2c
  57142. 80176ca: 689b ldr r3, [r3, #8]
  57143. 80176cc: 685a ldr r2, [r3, #4]
  57144. 80176ce: 687b ldr r3, [r7, #4]
  57145. 80176d0: 6adb ldr r3, [r3, #44] @ 0x2c
  57146. 80176d2: 691b ldr r3, [r3, #16]
  57147. 80176d4: 1ad3 subs r3, r2, r3
  57148. 80176d6: 613b str r3, [r7, #16]
  57149. if (diff > 0xffffUL) { /* max_u16_t */
  57150. 80176d8: 693b ldr r3, [r7, #16]
  57151. 80176da: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  57152. 80176de: d307 bcc.n 80176f0 <lwip_netconn_do_writemore+0x100>
  57153. len = 0xffff;
  57154. 80176e0: f64f 73ff movw r3, #65535 @ 0xffff
  57155. 80176e4: 83bb strh r3, [r7, #28]
  57156. apiflags |= TCP_WRITE_FLAG_MORE;
  57157. 80176e6: 7ebb ldrb r3, [r7, #26]
  57158. 80176e8: f043 0302 orr.w r3, r3, #2
  57159. 80176ec: 76bb strb r3, [r7, #26]
  57160. 80176ee: e001 b.n 80176f4 <lwip_netconn_do_writemore+0x104>
  57161. } else {
  57162. len = (u16_t)diff;
  57163. 80176f0: 693b ldr r3, [r7, #16]
  57164. 80176f2: 83bb strh r3, [r7, #28]
  57165. }
  57166. available = tcp_sndbuf(conn->pcb.tcp);
  57167. 80176f4: 687b ldr r3, [r7, #4]
  57168. 80176f6: 685b ldr r3, [r3, #4]
  57169. 80176f8: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  57170. 80176fc: 81fb strh r3, [r7, #14]
  57171. if (available < len) {
  57172. 80176fe: 89fa ldrh r2, [r7, #14]
  57173. 8017700: 8bbb ldrh r3, [r7, #28]
  57174. 8017702: 429a cmp r2, r3
  57175. 8017704: d216 bcs.n 8017734 <lwip_netconn_do_writemore+0x144>
  57176. /* don't try to write more than sendbuf */
  57177. len = available;
  57178. 8017706: 89fb ldrh r3, [r7, #14]
  57179. 8017708: 83bb strh r3, [r7, #28]
  57180. if (dontblock) {
  57181. 801770a: 7e3b ldrb r3, [r7, #24]
  57182. 801770c: 2b00 cmp r3, #0
  57183. 801770e: d00d beq.n 801772c <lwip_netconn_do_writemore+0x13c>
  57184. if (!len) {
  57185. 8017710: 8bbb ldrh r3, [r7, #28]
  57186. 8017712: 2b00 cmp r3, #0
  57187. 8017714: d10e bne.n 8017734 <lwip_netconn_do_writemore+0x144>
  57188. /* set error according to partial write or not */
  57189. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  57190. 8017716: 687b ldr r3, [r7, #4]
  57191. 8017718: 6adb ldr r3, [r3, #44] @ 0x2c
  57192. 801771a: 699b ldr r3, [r3, #24]
  57193. 801771c: 2b00 cmp r3, #0
  57194. 801771e: d102 bne.n 8017726 <lwip_netconn_do_writemore+0x136>
  57195. 8017720: f06f 0306 mvn.w r3, #6
  57196. 8017724: e000 b.n 8017728 <lwip_netconn_do_writemore+0x138>
  57197. 8017726: 2300 movs r3, #0
  57198. 8017728: 77fb strb r3, [r7, #31]
  57199. goto err_mem;
  57200. 801772a: e08f b.n 801784c <lwip_netconn_do_writemore+0x25c>
  57201. }
  57202. } else {
  57203. apiflags |= TCP_WRITE_FLAG_MORE;
  57204. 801772c: 7ebb ldrb r3, [r7, #26]
  57205. 801772e: f043 0302 orr.w r3, r3, #2
  57206. 8017732: 76bb strb r3, [r7, #26]
  57207. }
  57208. }
  57209. LWIP_ASSERT("lwip_netconn_do_writemore: invalid length!",
  57210. 8017734: 687b ldr r3, [r7, #4]
  57211. 8017736: 6adb ldr r3, [r3, #44] @ 0x2c
  57212. 8017738: 691a ldr r2, [r3, #16]
  57213. 801773a: 8bbb ldrh r3, [r7, #28]
  57214. 801773c: 441a add r2, r3
  57215. 801773e: 687b ldr r3, [r7, #4]
  57216. 8017740: 6adb ldr r3, [r3, #44] @ 0x2c
  57217. 8017742: 689b ldr r3, [r3, #8]
  57218. 8017744: 685b ldr r3, [r3, #4]
  57219. 8017746: 429a cmp r2, r3
  57220. 8017748: d906 bls.n 8017758 <lwip_netconn_do_writemore+0x168>
  57221. 801774a: 4b10 ldr r3, [pc, #64] @ (801778c <lwip_netconn_do_writemore+0x19c>)
  57222. 801774c: f240 62a3 movw r2, #1699 @ 0x6a3
  57223. 8017750: 4916 ldr r1, [pc, #88] @ (80177ac <lwip_netconn_do_writemore+0x1bc>)
  57224. 8017752: 4810 ldr r0, [pc, #64] @ (8017794 <lwip_netconn_do_writemore+0x1a4>)
  57225. 8017754: f012 fd32 bl 802a1bc <iprintf>
  57226. ((conn->current_msg->msg.w.vector_off + len) <= conn->current_msg->msg.w.vector->len));
  57227. /* we should loop around for more sending in the following cases:
  57228. 1) We couldn't finish the current vector because of 16-bit size limitations.
  57229. tcp_write() and tcp_sndbuf() both are limited to 16-bit sizes
  57230. 2) We are sending the remainder of the current vector and have more */
  57231. if ((len == 0xffff && diff > 0xffffUL) ||
  57232. 8017758: 8bbb ldrh r3, [r7, #28]
  57233. 801775a: f64f 72ff movw r2, #65535 @ 0xffff
  57234. 801775e: 4293 cmp r3, r2
  57235. 8017760: d103 bne.n 801776a <lwip_netconn_do_writemore+0x17a>
  57236. 8017762: 693b ldr r3, [r7, #16]
  57237. 8017764: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  57238. 8017768: d209 bcs.n 801777e <lwip_netconn_do_writemore+0x18e>
  57239. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  57240. 801776a: 693b ldr r3, [r7, #16]
  57241. 801776c: b29b uxth r3, r3
  57242. if ((len == 0xffff && diff > 0xffffUL) ||
  57243. 801776e: 8bba ldrh r2, [r7, #28]
  57244. 8017770: 429a cmp r2, r3
  57245. 8017772: d11d bne.n 80177b0 <lwip_netconn_do_writemore+0x1c0>
  57246. (len == (u16_t)diff && conn->current_msg->msg.w.vector_cnt > 1)) {
  57247. 8017774: 687b ldr r3, [r7, #4]
  57248. 8017776: 6adb ldr r3, [r3, #44] @ 0x2c
  57249. 8017778: 899b ldrh r3, [r3, #12]
  57250. 801777a: 2b01 cmp r3, #1
  57251. 801777c: d918 bls.n 80177b0 <lwip_netconn_do_writemore+0x1c0>
  57252. write_more = 1;
  57253. 801777e: 2301 movs r3, #1
  57254. 8017780: 767b strb r3, [r7, #25]
  57255. apiflags |= TCP_WRITE_FLAG_MORE;
  57256. 8017782: 7ebb ldrb r3, [r7, #26]
  57257. 8017784: f043 0302 orr.w r3, r3, #2
  57258. 8017788: 76bb strb r3, [r7, #26]
  57259. 801778a: e013 b.n 80177b4 <lwip_netconn_do_writemore+0x1c4>
  57260. 801778c: 0802d770 .word 0x0802d770
  57261. 8017790: 0802d8c8 .word 0x0802d8c8
  57262. 8017794: 0802d7b4 .word 0x0802d7b4
  57263. 8017798: 0802dbd0 .word 0x0802dbd0
  57264. 801779c: 0802d8d8 .word 0x0802d8d8
  57265. 80177a0: 0802dbf0 .word 0x0802dbf0
  57266. 80177a4: 0802dc08 .word 0x0802dc08
  57267. 80177a8: 0802dc48 .word 0x0802dc48
  57268. 80177ac: 0802dc70 .word 0x0802dc70
  57269. } else {
  57270. write_more = 0;
  57271. 80177b0: 2300 movs r3, #0
  57272. 80177b2: 767b strb r3, [r7, #25]
  57273. }
  57274. err = tcp_write(conn->pcb.tcp, dataptr, len, apiflags);
  57275. 80177b4: 687b ldr r3, [r7, #4]
  57276. 80177b6: 6858 ldr r0, [r3, #4]
  57277. 80177b8: 7ebb ldrb r3, [r7, #26]
  57278. 80177ba: 8bba ldrh r2, [r7, #28]
  57279. 80177bc: 6979 ldr r1, [r7, #20]
  57280. 80177be: f008 f827 bl 801f810 <tcp_write>
  57281. 80177c2: 4603 mov r3, r0
  57282. 80177c4: 77fb strb r3, [r7, #31]
  57283. if (err == ERR_OK) {
  57284. 80177c6: f997 301f ldrsb.w r3, [r7, #31]
  57285. 80177ca: 2b00 cmp r3, #0
  57286. 80177cc: d12c bne.n 8017828 <lwip_netconn_do_writemore+0x238>
  57287. conn->current_msg->msg.w.offset += len;
  57288. 80177ce: 687b ldr r3, [r7, #4]
  57289. 80177d0: 6adb ldr r3, [r3, #44] @ 0x2c
  57290. 80177d2: 6999 ldr r1, [r3, #24]
  57291. 80177d4: 8bba ldrh r2, [r7, #28]
  57292. 80177d6: 687b ldr r3, [r7, #4]
  57293. 80177d8: 6adb ldr r3, [r3, #44] @ 0x2c
  57294. 80177da: 440a add r2, r1
  57295. 80177dc: 619a str r2, [r3, #24]
  57296. conn->current_msg->msg.w.vector_off += len;
  57297. 80177de: 687b ldr r3, [r7, #4]
  57298. 80177e0: 6adb ldr r3, [r3, #44] @ 0x2c
  57299. 80177e2: 6919 ldr r1, [r3, #16]
  57300. 80177e4: 8bba ldrh r2, [r7, #28]
  57301. 80177e6: 687b ldr r3, [r7, #4]
  57302. 80177e8: 6adb ldr r3, [r3, #44] @ 0x2c
  57303. 80177ea: 440a add r2, r1
  57304. 80177ec: 611a str r2, [r3, #16]
  57305. /* check if current vector is finished */
  57306. if (conn->current_msg->msg.w.vector_off == conn->current_msg->msg.w.vector->len) {
  57307. 80177ee: 687b ldr r3, [r7, #4]
  57308. 80177f0: 6adb ldr r3, [r3, #44] @ 0x2c
  57309. 80177f2: 691a ldr r2, [r3, #16]
  57310. 80177f4: 687b ldr r3, [r7, #4]
  57311. 80177f6: 6adb ldr r3, [r3, #44] @ 0x2c
  57312. 80177f8: 689b ldr r3, [r3, #8]
  57313. 80177fa: 685b ldr r3, [r3, #4]
  57314. 80177fc: 429a cmp r2, r3
  57315. 80177fe: d113 bne.n 8017828 <lwip_netconn_do_writemore+0x238>
  57316. conn->current_msg->msg.w.vector_cnt--;
  57317. 8017800: 687b ldr r3, [r7, #4]
  57318. 8017802: 6adb ldr r3, [r3, #44] @ 0x2c
  57319. 8017804: 899a ldrh r2, [r3, #12]
  57320. 8017806: 3a01 subs r2, #1
  57321. 8017808: b292 uxth r2, r2
  57322. 801780a: 819a strh r2, [r3, #12]
  57323. /* if we have additional vectors, move on to them */
  57324. if (conn->current_msg->msg.w.vector_cnt > 0) {
  57325. 801780c: 687b ldr r3, [r7, #4]
  57326. 801780e: 6adb ldr r3, [r3, #44] @ 0x2c
  57327. 8017810: 899b ldrh r3, [r3, #12]
  57328. 8017812: 2b00 cmp r3, #0
  57329. 8017814: d008 beq.n 8017828 <lwip_netconn_do_writemore+0x238>
  57330. conn->current_msg->msg.w.vector++;
  57331. 8017816: 687b ldr r3, [r7, #4]
  57332. 8017818: 6adb ldr r3, [r3, #44] @ 0x2c
  57333. 801781a: 689a ldr r2, [r3, #8]
  57334. 801781c: 3208 adds r2, #8
  57335. 801781e: 609a str r2, [r3, #8]
  57336. conn->current_msg->msg.w.vector_off = 0;
  57337. 8017820: 687b ldr r3, [r7, #4]
  57338. 8017822: 6adb ldr r3, [r3, #44] @ 0x2c
  57339. 8017824: 2200 movs r2, #0
  57340. 8017826: 611a str r2, [r3, #16]
  57341. }
  57342. }
  57343. }
  57344. } while (write_more && err == ERR_OK);
  57345. 8017828: 7e7b ldrb r3, [r7, #25]
  57346. 801782a: 2b00 cmp r3, #0
  57347. 801782c: d004 beq.n 8017838 <lwip_netconn_do_writemore+0x248>
  57348. 801782e: f997 301f ldrsb.w r3, [r7, #31]
  57349. 8017832: 2b00 cmp r3, #0
  57350. 8017834: f43f af3e beq.w 80176b4 <lwip_netconn_do_writemore+0xc4>
  57351. /* if OK or memory error, check available space */
  57352. if ((err == ERR_OK) || (err == ERR_MEM)) {
  57353. 8017838: f997 301f ldrsb.w r3, [r7, #31]
  57354. 801783c: 2b00 cmp r3, #0
  57355. 801783e: d004 beq.n 801784a <lwip_netconn_do_writemore+0x25a>
  57356. 8017840: f997 301f ldrsb.w r3, [r7, #31]
  57357. 8017844: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  57358. 8017848: d137 bne.n 80178ba <lwip_netconn_do_writemore+0x2ca>
  57359. err_mem:
  57360. 801784a: bf00 nop
  57361. if (dontblock && (conn->current_msg->msg.w.offset < conn->current_msg->msg.w.len)) {
  57362. 801784c: 7e3b ldrb r3, [r7, #24]
  57363. 801784e: 2b00 cmp r3, #0
  57364. 8017850: d01b beq.n 801788a <lwip_netconn_do_writemore+0x29a>
  57365. 8017852: 687b ldr r3, [r7, #4]
  57366. 8017854: 6adb ldr r3, [r3, #44] @ 0x2c
  57367. 8017856: 699a ldr r2, [r3, #24]
  57368. 8017858: 687b ldr r3, [r7, #4]
  57369. 801785a: 6adb ldr r3, [r3, #44] @ 0x2c
  57370. 801785c: 695b ldr r3, [r3, #20]
  57371. 801785e: 429a cmp r2, r3
  57372. 8017860: d213 bcs.n 801788a <lwip_netconn_do_writemore+0x29a>
  57373. /* non-blocking write did not write everything: mark the pcb non-writable
  57374. and let poll_tcp check writable space to mark the pcb writable again */
  57375. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  57376. 8017862: 687b ldr r3, [r7, #4]
  57377. 8017864: 6b1b ldr r3, [r3, #48] @ 0x30
  57378. 8017866: 2b00 cmp r3, #0
  57379. 8017868: d005 beq.n 8017876 <lwip_netconn_do_writemore+0x286>
  57380. 801786a: 687b ldr r3, [r7, #4]
  57381. 801786c: 6b1b ldr r3, [r3, #48] @ 0x30
  57382. 801786e: 2200 movs r2, #0
  57383. 8017870: 2103 movs r1, #3
  57384. 8017872: 6878 ldr r0, [r7, #4]
  57385. 8017874: 4798 blx r3
  57386. conn->flags |= NETCONN_FLAG_CHECK_WRITESPACE;
  57387. 8017876: 687b ldr r3, [r7, #4]
  57388. 8017878: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  57389. 801787c: f043 0310 orr.w r3, r3, #16
  57390. 8017880: b2da uxtb r2, r3
  57391. 8017882: 687b ldr r3, [r7, #4]
  57392. 8017884: f883 2028 strb.w r2, [r3, #40] @ 0x28
  57393. 8017888: e017 b.n 80178ba <lwip_netconn_do_writemore+0x2ca>
  57394. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  57395. 801788a: 687b ldr r3, [r7, #4]
  57396. 801788c: 685b ldr r3, [r3, #4]
  57397. 801788e: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  57398. 8017892: f640 3269 movw r2, #2921 @ 0xb69
  57399. 8017896: 4293 cmp r3, r2
  57400. 8017898: d905 bls.n 80178a6 <lwip_netconn_do_writemore+0x2b6>
  57401. (tcp_sndqueuelen(conn->pcb.tcp) >= TCP_SNDQUEUELOWAT)) {
  57402. 801789a: 687b ldr r3, [r7, #4]
  57403. 801789c: 685b ldr r3, [r3, #4]
  57404. 801789e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  57405. } else if ((tcp_sndbuf(conn->pcb.tcp) <= TCP_SNDLOWAT) ||
  57406. 80178a2: 2b07 cmp r3, #7
  57407. 80178a4: d909 bls.n 80178ba <lwip_netconn_do_writemore+0x2ca>
  57408. /* The queued byte- or pbuf-count exceeds the configured low-water limit,
  57409. let select mark this pcb as non-writable. */
  57410. API_EVENT(conn, NETCONN_EVT_SENDMINUS, 0);
  57411. 80178a6: 687b ldr r3, [r7, #4]
  57412. 80178a8: 6b1b ldr r3, [r3, #48] @ 0x30
  57413. 80178aa: 2b00 cmp r3, #0
  57414. 80178ac: d005 beq.n 80178ba <lwip_netconn_do_writemore+0x2ca>
  57415. 80178ae: 687b ldr r3, [r7, #4]
  57416. 80178b0: 6b1b ldr r3, [r3, #48] @ 0x30
  57417. 80178b2: 2200 movs r2, #0
  57418. 80178b4: 2103 movs r1, #3
  57419. 80178b6: 6878 ldr r0, [r7, #4]
  57420. 80178b8: 4798 blx r3
  57421. }
  57422. }
  57423. if (err == ERR_OK) {
  57424. 80178ba: f997 301f ldrsb.w r3, [r7, #31]
  57425. 80178be: 2b00 cmp r3, #0
  57426. 80178c0: d11d bne.n 80178fe <lwip_netconn_do_writemore+0x30e>
  57427. err_t out_err;
  57428. if ((conn->current_msg->msg.w.offset == conn->current_msg->msg.w.len) || dontblock) {
  57429. 80178c2: 687b ldr r3, [r7, #4]
  57430. 80178c4: 6adb ldr r3, [r3, #44] @ 0x2c
  57431. 80178c6: 699a ldr r2, [r3, #24]
  57432. 80178c8: 687b ldr r3, [r7, #4]
  57433. 80178ca: 6adb ldr r3, [r3, #44] @ 0x2c
  57434. 80178cc: 695b ldr r3, [r3, #20]
  57435. 80178ce: 429a cmp r2, r3
  57436. 80178d0: d002 beq.n 80178d8 <lwip_netconn_do_writemore+0x2e8>
  57437. 80178d2: 7e3b ldrb r3, [r7, #24]
  57438. 80178d4: 2b00 cmp r3, #0
  57439. 80178d6: d001 beq.n 80178dc <lwip_netconn_do_writemore+0x2ec>
  57440. /* return sent length (caller reads length from msg.w.offset) */
  57441. write_finished = 1;
  57442. 80178d8: 2301 movs r3, #1
  57443. 80178da: 76fb strb r3, [r7, #27]
  57444. }
  57445. out_err = tcp_output(conn->pcb.tcp);
  57446. 80178dc: 687b ldr r3, [r7, #4]
  57447. 80178de: 685b ldr r3, [r3, #4]
  57448. 80178e0: 4618 mov r0, r3
  57449. 80178e2: f008 fddf bl 80204a4 <tcp_output>
  57450. 80178e6: 4603 mov r3, r0
  57451. 80178e8: 733b strb r3, [r7, #12]
  57452. if (out_err == ERR_RTE) {
  57453. 80178ea: f997 300c ldrsb.w r3, [r7, #12]
  57454. 80178ee: f113 0f04 cmn.w r3, #4
  57455. 80178f2: d12c bne.n 801794e <lwip_netconn_do_writemore+0x35e>
  57456. /* If tcp_output fails because no route is found,
  57457. don't try writing any more but return the error
  57458. to the application thread. */
  57459. err = out_err;
  57460. 80178f4: 7b3b ldrb r3, [r7, #12]
  57461. 80178f6: 77fb strb r3, [r7, #31]
  57462. write_finished = 1;
  57463. 80178f8: 2301 movs r3, #1
  57464. 80178fa: 76fb strb r3, [r7, #27]
  57465. 80178fc: e027 b.n 801794e <lwip_netconn_do_writemore+0x35e>
  57466. }
  57467. } else if (err == ERR_MEM) {
  57468. 80178fe: f997 301f ldrsb.w r3, [r7, #31]
  57469. 8017902: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  57470. 8017906: d120 bne.n 801794a <lwip_netconn_do_writemore+0x35a>
  57471. For blocking sockets, we do NOT return to the application
  57472. thread, since ERR_MEM is only a temporary error! Non-blocking
  57473. will remain non-writable until sent_tcp/poll_tcp is called */
  57474. /* tcp_write returned ERR_MEM, try tcp_output anyway */
  57475. err_t out_err = tcp_output(conn->pcb.tcp);
  57476. 8017908: 687b ldr r3, [r7, #4]
  57477. 801790a: 685b ldr r3, [r3, #4]
  57478. 801790c: 4618 mov r0, r3
  57479. 801790e: f008 fdc9 bl 80204a4 <tcp_output>
  57480. 8017912: 4603 mov r3, r0
  57481. 8017914: 737b strb r3, [r7, #13]
  57482. if (out_err == ERR_RTE) {
  57483. 8017916: f997 300d ldrsb.w r3, [r7, #13]
  57484. 801791a: f113 0f04 cmn.w r3, #4
  57485. 801791e: d104 bne.n 801792a <lwip_netconn_do_writemore+0x33a>
  57486. /* If tcp_output fails because no route is found,
  57487. don't try writing any more but return the error
  57488. to the application thread. */
  57489. err = out_err;
  57490. 8017920: 7b7b ldrb r3, [r7, #13]
  57491. 8017922: 77fb strb r3, [r7, #31]
  57492. write_finished = 1;
  57493. 8017924: 2301 movs r3, #1
  57494. 8017926: 76fb strb r3, [r7, #27]
  57495. 8017928: e011 b.n 801794e <lwip_netconn_do_writemore+0x35e>
  57496. } else if (dontblock) {
  57497. 801792a: 7e3b ldrb r3, [r7, #24]
  57498. 801792c: 2b00 cmp r3, #0
  57499. 801792e: d00e beq.n 801794e <lwip_netconn_do_writemore+0x35e>
  57500. /* non-blocking write is done on ERR_MEM, set error according
  57501. to partial write or not */
  57502. err = (conn->current_msg->msg.w.offset == 0) ? ERR_WOULDBLOCK : ERR_OK;
  57503. 8017930: 687b ldr r3, [r7, #4]
  57504. 8017932: 6adb ldr r3, [r3, #44] @ 0x2c
  57505. 8017934: 699b ldr r3, [r3, #24]
  57506. 8017936: 2b00 cmp r3, #0
  57507. 8017938: d102 bne.n 8017940 <lwip_netconn_do_writemore+0x350>
  57508. 801793a: f06f 0306 mvn.w r3, #6
  57509. 801793e: e000 b.n 8017942 <lwip_netconn_do_writemore+0x352>
  57510. 8017940: 2300 movs r3, #0
  57511. 8017942: 77fb strb r3, [r7, #31]
  57512. write_finished = 1;
  57513. 8017944: 2301 movs r3, #1
  57514. 8017946: 76fb strb r3, [r7, #27]
  57515. 8017948: e001 b.n 801794e <lwip_netconn_do_writemore+0x35e>
  57516. }
  57517. } else {
  57518. /* On errors != ERR_MEM, we don't try writing any more but return
  57519. the error to the application thread. */
  57520. write_finished = 1;
  57521. 801794a: 2301 movs r3, #1
  57522. 801794c: 76fb strb r3, [r7, #27]
  57523. }
  57524. }
  57525. if (write_finished) {
  57526. 801794e: 7efb ldrb r3, [r7, #27]
  57527. 8017950: 2b00 cmp r3, #0
  57528. 8017952: d015 beq.n 8017980 <lwip_netconn_do_writemore+0x390>
  57529. /* everything was written: set back connection state
  57530. and back to application task */
  57531. sys_sem_t *op_completed_sem = LWIP_API_MSG_SEM(conn->current_msg);
  57532. 8017954: 687b ldr r3, [r7, #4]
  57533. 8017956: 6adb ldr r3, [r3, #44] @ 0x2c
  57534. 8017958: 681b ldr r3, [r3, #0]
  57535. 801795a: 330c adds r3, #12
  57536. 801795c: 60bb str r3, [r7, #8]
  57537. conn->current_msg->err = err;
  57538. 801795e: 687b ldr r3, [r7, #4]
  57539. 8017960: 6adb ldr r3, [r3, #44] @ 0x2c
  57540. 8017962: 7ffa ldrb r2, [r7, #31]
  57541. 8017964: 711a strb r2, [r3, #4]
  57542. conn->current_msg = NULL;
  57543. 8017966: 687b ldr r3, [r7, #4]
  57544. 8017968: 2200 movs r2, #0
  57545. 801796a: 62da str r2, [r3, #44] @ 0x2c
  57546. conn->state = NETCONN_NONE;
  57547. 801796c: 687b ldr r3, [r7, #4]
  57548. 801796e: 2200 movs r2, #0
  57549. 8017970: 705a strb r2, [r3, #1]
  57550. #if LWIP_TCPIP_CORE_LOCKING
  57551. if (delayed)
  57552. 8017972: 78fb ldrb r3, [r7, #3]
  57553. 8017974: 2b00 cmp r3, #0
  57554. 8017976: d006 beq.n 8017986 <lwip_netconn_do_writemore+0x396>
  57555. #endif
  57556. {
  57557. sys_sem_signal(op_completed_sem);
  57558. 8017978: 68b8 ldr r0, [r7, #8]
  57559. 801797a: f00f f8f3 bl 8026b64 <sys_sem_signal>
  57560. 801797e: e002 b.n 8017986 <lwip_netconn_do_writemore+0x396>
  57561. }
  57562. }
  57563. #if LWIP_TCPIP_CORE_LOCKING
  57564. else {
  57565. return ERR_MEM;
  57566. 8017980: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  57567. 8017984: e000 b.n 8017988 <lwip_netconn_do_writemore+0x398>
  57568. }
  57569. #endif
  57570. return ERR_OK;
  57571. 8017986: 2300 movs r3, #0
  57572. }
  57573. 8017988: 4618 mov r0, r3
  57574. 801798a: 3720 adds r7, #32
  57575. 801798c: 46bd mov sp, r7
  57576. 801798e: bd80 pop {r7, pc}
  57577. 08017990 <lwip_netconn_do_write>:
  57578. *
  57579. * @param m the api_msg pointing to the connection
  57580. */
  57581. void
  57582. lwip_netconn_do_write(void *m)
  57583. {
  57584. 8017990: b580 push {r7, lr}
  57585. 8017992: b084 sub sp, #16
  57586. 8017994: af00 add r7, sp, #0
  57587. 8017996: 6078 str r0, [r7, #4]
  57588. struct api_msg *msg = (struct api_msg *)m;
  57589. 8017998: 687b ldr r3, [r7, #4]
  57590. 801799a: 60bb str r3, [r7, #8]
  57591. err_t err = netconn_err(msg->conn);
  57592. 801799c: 68bb ldr r3, [r7, #8]
  57593. 801799e: 681b ldr r3, [r3, #0]
  57594. 80179a0: 4618 mov r0, r3
  57595. 80179a2: f7fe fca7 bl 80162f4 <netconn_err>
  57596. 80179a6: 4603 mov r3, r0
  57597. 80179a8: 73fb strb r3, [r7, #15]
  57598. if (err == ERR_OK) {
  57599. 80179aa: f997 300f ldrsb.w r3, [r7, #15]
  57600. 80179ae: 2b00 cmp r3, #0
  57601. 80179b0: d164 bne.n 8017a7c <lwip_netconn_do_write+0xec>
  57602. if (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) {
  57603. 80179b2: 68bb ldr r3, [r7, #8]
  57604. 80179b4: 681b ldr r3, [r3, #0]
  57605. 80179b6: 781b ldrb r3, [r3, #0]
  57606. 80179b8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57607. 80179bc: 2b10 cmp r3, #16
  57608. 80179be: d15b bne.n 8017a78 <lwip_netconn_do_write+0xe8>
  57609. #if LWIP_TCP
  57610. if (msg->conn->state != NETCONN_NONE) {
  57611. 80179c0: 68bb ldr r3, [r7, #8]
  57612. 80179c2: 681b ldr r3, [r3, #0]
  57613. 80179c4: 785b ldrb r3, [r3, #1]
  57614. 80179c6: 2b00 cmp r3, #0
  57615. 80179c8: d002 beq.n 80179d0 <lwip_netconn_do_write+0x40>
  57616. /* netconn is connecting, closing or in blocking write */
  57617. err = ERR_INPROGRESS;
  57618. 80179ca: 23fb movs r3, #251 @ 0xfb
  57619. 80179cc: 73fb strb r3, [r7, #15]
  57620. 80179ce: e055 b.n 8017a7c <lwip_netconn_do_write+0xec>
  57621. } else if (msg->conn->pcb.tcp != NULL) {
  57622. 80179d0: 68bb ldr r3, [r7, #8]
  57623. 80179d2: 681b ldr r3, [r3, #0]
  57624. 80179d4: 685b ldr r3, [r3, #4]
  57625. 80179d6: 2b00 cmp r3, #0
  57626. 80179d8: d04b beq.n 8017a72 <lwip_netconn_do_write+0xe2>
  57627. msg->conn->state = NETCONN_WRITE;
  57628. 80179da: 68bb ldr r3, [r7, #8]
  57629. 80179dc: 681b ldr r3, [r3, #0]
  57630. 80179de: 2201 movs r2, #1
  57631. 80179e0: 705a strb r2, [r3, #1]
  57632. /* set all the variables used by lwip_netconn_do_writemore */
  57633. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  57634. 80179e2: 68bb ldr r3, [r7, #8]
  57635. 80179e4: 681b ldr r3, [r3, #0]
  57636. 80179e6: 6adb ldr r3, [r3, #44] @ 0x2c
  57637. 80179e8: 2b00 cmp r3, #0
  57638. 80179ea: d006 beq.n 80179fa <lwip_netconn_do_write+0x6a>
  57639. 80179ec: 4b27 ldr r3, [pc, #156] @ (8017a8c <lwip_netconn_do_write+0xfc>)
  57640. 80179ee: f240 7223 movw r2, #1827 @ 0x723
  57641. 80179f2: 4927 ldr r1, [pc, #156] @ (8017a90 <lwip_netconn_do_write+0x100>)
  57642. 80179f4: 4827 ldr r0, [pc, #156] @ (8017a94 <lwip_netconn_do_write+0x104>)
  57643. 80179f6: f012 fbe1 bl 802a1bc <iprintf>
  57644. LWIP_ASSERT("msg->msg.w.len != 0", msg->msg.w.len != 0);
  57645. 80179fa: 68bb ldr r3, [r7, #8]
  57646. 80179fc: 695b ldr r3, [r3, #20]
  57647. 80179fe: 2b00 cmp r3, #0
  57648. 8017a00: d106 bne.n 8017a10 <lwip_netconn_do_write+0x80>
  57649. 8017a02: 4b22 ldr r3, [pc, #136] @ (8017a8c <lwip_netconn_do_write+0xfc>)
  57650. 8017a04: f240 7224 movw r2, #1828 @ 0x724
  57651. 8017a08: 4923 ldr r1, [pc, #140] @ (8017a98 <lwip_netconn_do_write+0x108>)
  57652. 8017a0a: 4822 ldr r0, [pc, #136] @ (8017a94 <lwip_netconn_do_write+0x104>)
  57653. 8017a0c: f012 fbd6 bl 802a1bc <iprintf>
  57654. msg->conn->current_msg = msg;
  57655. 8017a10: 68bb ldr r3, [r7, #8]
  57656. 8017a12: 681b ldr r3, [r3, #0]
  57657. 8017a14: 68ba ldr r2, [r7, #8]
  57658. 8017a16: 62da str r2, [r3, #44] @ 0x2c
  57659. #if LWIP_TCPIP_CORE_LOCKING
  57660. if (lwip_netconn_do_writemore(msg->conn, 0) != ERR_OK) {
  57661. 8017a18: 68bb ldr r3, [r7, #8]
  57662. 8017a1a: 681b ldr r3, [r3, #0]
  57663. 8017a1c: 2100 movs r1, #0
  57664. 8017a1e: 4618 mov r0, r3
  57665. 8017a20: f7ff fde6 bl 80175f0 <lwip_netconn_do_writemore>
  57666. 8017a24: 4603 mov r3, r0
  57667. 8017a26: 2b00 cmp r3, #0
  57668. 8017a28: d02c beq.n 8017a84 <lwip_netconn_do_write+0xf4>
  57669. LWIP_ASSERT("state!", msg->conn->state == NETCONN_WRITE);
  57670. 8017a2a: 68bb ldr r3, [r7, #8]
  57671. 8017a2c: 681b ldr r3, [r3, #0]
  57672. 8017a2e: 785b ldrb r3, [r3, #1]
  57673. 8017a30: 2b01 cmp r3, #1
  57674. 8017a32: d006 beq.n 8017a42 <lwip_netconn_do_write+0xb2>
  57675. 8017a34: 4b15 ldr r3, [pc, #84] @ (8017a8c <lwip_netconn_do_write+0xfc>)
  57676. 8017a36: f44f 62e5 mov.w r2, #1832 @ 0x728
  57677. 8017a3a: 4918 ldr r1, [pc, #96] @ (8017a9c <lwip_netconn_do_write+0x10c>)
  57678. 8017a3c: 4815 ldr r0, [pc, #84] @ (8017a94 <lwip_netconn_do_write+0x104>)
  57679. 8017a3e: f012 fbbd bl 802a1bc <iprintf>
  57680. UNLOCK_TCPIP_CORE();
  57681. 8017a42: f7f9 f80d bl 8010a60 <sys_unlock_tcpip_core>
  57682. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  57683. 8017a46: 68bb ldr r3, [r7, #8]
  57684. 8017a48: 681b ldr r3, [r3, #0]
  57685. 8017a4a: 330c adds r3, #12
  57686. 8017a4c: 2100 movs r1, #0
  57687. 8017a4e: 4618 mov r0, r3
  57688. 8017a50: f00f f857 bl 8026b02 <sys_arch_sem_wait>
  57689. LOCK_TCPIP_CORE();
  57690. 8017a54: f7f8 fff4 bl 8010a40 <sys_lock_tcpip_core>
  57691. LWIP_ASSERT("state!", msg->conn->state != NETCONN_WRITE);
  57692. 8017a58: 68bb ldr r3, [r7, #8]
  57693. 8017a5a: 681b ldr r3, [r3, #0]
  57694. 8017a5c: 785b ldrb r3, [r3, #1]
  57695. 8017a5e: 2b01 cmp r3, #1
  57696. 8017a60: d110 bne.n 8017a84 <lwip_netconn_do_write+0xf4>
  57697. 8017a62: 4b0a ldr r3, [pc, #40] @ (8017a8c <lwip_netconn_do_write+0xfc>)
  57698. 8017a64: f240 722c movw r2, #1836 @ 0x72c
  57699. 8017a68: 490c ldr r1, [pc, #48] @ (8017a9c <lwip_netconn_do_write+0x10c>)
  57700. 8017a6a: 480a ldr r0, [pc, #40] @ (8017a94 <lwip_netconn_do_write+0x104>)
  57701. 8017a6c: f012 fba6 bl 802a1bc <iprintf>
  57702. #else /* LWIP_TCPIP_CORE_LOCKING */
  57703. lwip_netconn_do_writemore(msg->conn);
  57704. #endif /* LWIP_TCPIP_CORE_LOCKING */
  57705. /* for both cases: if lwip_netconn_do_writemore was called, don't ACK the APIMSG
  57706. since lwip_netconn_do_writemore ACKs it! */
  57707. return;
  57708. 8017a70: e008 b.n 8017a84 <lwip_netconn_do_write+0xf4>
  57709. } else {
  57710. err = ERR_CONN;
  57711. 8017a72: 23f5 movs r3, #245 @ 0xf5
  57712. 8017a74: 73fb strb r3, [r7, #15]
  57713. 8017a76: e001 b.n 8017a7c <lwip_netconn_do_write+0xec>
  57714. #else /* LWIP_TCP */
  57715. err = ERR_VAL;
  57716. #endif /* LWIP_TCP */
  57717. #if (LWIP_UDP || LWIP_RAW)
  57718. } else {
  57719. err = ERR_VAL;
  57720. 8017a78: 23fa movs r3, #250 @ 0xfa
  57721. 8017a7a: 73fb strb r3, [r7, #15]
  57722. #endif /* (LWIP_UDP || LWIP_RAW) */
  57723. }
  57724. }
  57725. msg->err = err;
  57726. 8017a7c: 68bb ldr r3, [r7, #8]
  57727. 8017a7e: 7bfa ldrb r2, [r7, #15]
  57728. 8017a80: 711a strb r2, [r3, #4]
  57729. 8017a82: e000 b.n 8017a86 <lwip_netconn_do_write+0xf6>
  57730. return;
  57731. 8017a84: bf00 nop
  57732. TCPIP_APIMSG_ACK(msg);
  57733. }
  57734. 8017a86: 3710 adds r7, #16
  57735. 8017a88: 46bd mov sp, r7
  57736. 8017a8a: bd80 pop {r7, pc}
  57737. 8017a8c: 0802d770 .word 0x0802d770
  57738. 8017a90: 0802db14 .word 0x0802db14
  57739. 8017a94: 0802d7b4 .word 0x0802d7b4
  57740. 8017a98: 0802dc9c .word 0x0802dc9c
  57741. 8017a9c: 0802db30 .word 0x0802db30
  57742. 08017aa0 <lwip_netconn_do_getaddr>:
  57743. *
  57744. * @param m the api_msg pointing to the connection
  57745. */
  57746. void
  57747. lwip_netconn_do_getaddr(void *m)
  57748. {
  57749. 8017aa0: b580 push {r7, lr}
  57750. 8017aa2: b084 sub sp, #16
  57751. 8017aa4: af00 add r7, sp, #0
  57752. 8017aa6: 6078 str r0, [r7, #4]
  57753. struct api_msg *msg = (struct api_msg *)m;
  57754. 8017aa8: 687b ldr r3, [r7, #4]
  57755. 8017aaa: 60fb str r3, [r7, #12]
  57756. if (msg->conn->pcb.ip != NULL) {
  57757. 8017aac: 68fb ldr r3, [r7, #12]
  57758. 8017aae: 681b ldr r3, [r3, #0]
  57759. 8017ab0: 685b ldr r3, [r3, #4]
  57760. 8017ab2: 2b00 cmp r3, #0
  57761. 8017ab4: d06b beq.n 8017b8e <lwip_netconn_do_getaddr+0xee>
  57762. if (msg->msg.ad.local) {
  57763. 8017ab6: 68fb ldr r3, [r7, #12]
  57764. 8017ab8: 7c1b ldrb r3, [r3, #16]
  57765. 8017aba: 2b00 cmp r3, #0
  57766. 8017abc: d007 beq.n 8017ace <lwip_netconn_do_getaddr+0x2e>
  57767. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  57768. 8017abe: 68fb ldr r3, [r7, #12]
  57769. 8017ac0: 681b ldr r3, [r3, #0]
  57770. 8017ac2: 685a ldr r2, [r3, #4]
  57771. 8017ac4: 68fb ldr r3, [r7, #12]
  57772. 8017ac6: 689b ldr r3, [r3, #8]
  57773. 8017ac8: 6812 ldr r2, [r2, #0]
  57774. 8017aca: 601a str r2, [r3, #0]
  57775. 8017acc: e006 b.n 8017adc <lwip_netconn_do_getaddr+0x3c>
  57776. msg->conn->pcb.ip->local_ip);
  57777. } else {
  57778. ip_addr_copy(API_EXPR_DEREF(msg->msg.ad.ipaddr),
  57779. 8017ace: 68fb ldr r3, [r7, #12]
  57780. 8017ad0: 681b ldr r3, [r3, #0]
  57781. 8017ad2: 685a ldr r2, [r3, #4]
  57782. 8017ad4: 68fb ldr r3, [r7, #12]
  57783. 8017ad6: 689b ldr r3, [r3, #8]
  57784. 8017ad8: 6852 ldr r2, [r2, #4]
  57785. 8017ada: 601a str r2, [r3, #0]
  57786. msg->conn->pcb.ip->remote_ip);
  57787. }
  57788. msg->err = ERR_OK;
  57789. 8017adc: 68fb ldr r3, [r7, #12]
  57790. 8017ade: 2200 movs r2, #0
  57791. 8017ae0: 711a strb r2, [r3, #4]
  57792. switch (NETCONNTYPE_GROUP(msg->conn->type)) {
  57793. 8017ae2: 68fb ldr r3, [r7, #12]
  57794. 8017ae4: 681b ldr r3, [r3, #0]
  57795. 8017ae6: 781b ldrb r3, [r3, #0]
  57796. 8017ae8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57797. 8017aec: 2b10 cmp r3, #16
  57798. 8017aee: d021 beq.n 8017b34 <lwip_netconn_do_getaddr+0x94>
  57799. 8017af0: 2b20 cmp r3, #32
  57800. 8017af2: d144 bne.n 8017b7e <lwip_netconn_do_getaddr+0xde>
  57801. }
  57802. break;
  57803. #endif /* LWIP_RAW */
  57804. #if LWIP_UDP
  57805. case NETCONN_UDP:
  57806. if (msg->msg.ad.local) {
  57807. 8017af4: 68fb ldr r3, [r7, #12]
  57808. 8017af6: 7c1b ldrb r3, [r3, #16]
  57809. 8017af8: 2b00 cmp r3, #0
  57810. 8017afa: d007 beq.n 8017b0c <lwip_netconn_do_getaddr+0x6c>
  57811. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->local_port;
  57812. 8017afc: 68fb ldr r3, [r7, #12]
  57813. 8017afe: 681b ldr r3, [r3, #0]
  57814. 8017b00: 685a ldr r2, [r3, #4]
  57815. 8017b02: 68fb ldr r3, [r7, #12]
  57816. 8017b04: 68db ldr r3, [r3, #12]
  57817. 8017b06: 8a52 ldrh r2, [r2, #18]
  57818. 8017b08: 801a strh r2, [r3, #0]
  57819. msg->err = ERR_CONN;
  57820. } else {
  57821. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  57822. }
  57823. }
  57824. break;
  57825. 8017b0a: e044 b.n 8017b96 <lwip_netconn_do_getaddr+0xf6>
  57826. if ((msg->conn->pcb.udp->flags & UDP_FLAGS_CONNECTED) == 0) {
  57827. 8017b0c: 68fb ldr r3, [r7, #12]
  57828. 8017b0e: 681b ldr r3, [r3, #0]
  57829. 8017b10: 685b ldr r3, [r3, #4]
  57830. 8017b12: 7c1b ldrb r3, [r3, #16]
  57831. 8017b14: f003 0304 and.w r3, r3, #4
  57832. 8017b18: 2b00 cmp r3, #0
  57833. 8017b1a: d103 bne.n 8017b24 <lwip_netconn_do_getaddr+0x84>
  57834. msg->err = ERR_CONN;
  57835. 8017b1c: 68fb ldr r3, [r7, #12]
  57836. 8017b1e: 22f5 movs r2, #245 @ 0xf5
  57837. 8017b20: 711a strb r2, [r3, #4]
  57838. break;
  57839. 8017b22: e038 b.n 8017b96 <lwip_netconn_do_getaddr+0xf6>
  57840. API_EXPR_DEREF(msg->msg.ad.port) = msg->conn->pcb.udp->remote_port;
  57841. 8017b24: 68fb ldr r3, [r7, #12]
  57842. 8017b26: 681b ldr r3, [r3, #0]
  57843. 8017b28: 685a ldr r2, [r3, #4]
  57844. 8017b2a: 68fb ldr r3, [r7, #12]
  57845. 8017b2c: 68db ldr r3, [r3, #12]
  57846. 8017b2e: 8a92 ldrh r2, [r2, #20]
  57847. 8017b30: 801a strh r2, [r3, #0]
  57848. break;
  57849. 8017b32: e030 b.n 8017b96 <lwip_netconn_do_getaddr+0xf6>
  57850. #endif /* LWIP_UDP */
  57851. #if LWIP_TCP
  57852. case NETCONN_TCP:
  57853. if ((msg->msg.ad.local == 0) &&
  57854. 8017b34: 68fb ldr r3, [r7, #12]
  57855. 8017b36: 7c1b ldrb r3, [r3, #16]
  57856. 8017b38: 2b00 cmp r3, #0
  57857. 8017b3a: d10f bne.n 8017b5c <lwip_netconn_do_getaddr+0xbc>
  57858. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  57859. 8017b3c: 68fb ldr r3, [r7, #12]
  57860. 8017b3e: 681b ldr r3, [r3, #0]
  57861. 8017b40: 685b ldr r3, [r3, #4]
  57862. 8017b42: 7d1b ldrb r3, [r3, #20]
  57863. if ((msg->msg.ad.local == 0) &&
  57864. 8017b44: 2b00 cmp r3, #0
  57865. 8017b46: d005 beq.n 8017b54 <lwip_netconn_do_getaddr+0xb4>
  57866. ((msg->conn->pcb.tcp->state == CLOSED) || (msg->conn->pcb.tcp->state == LISTEN))) {
  57867. 8017b48: 68fb ldr r3, [r7, #12]
  57868. 8017b4a: 681b ldr r3, [r3, #0]
  57869. 8017b4c: 685b ldr r3, [r3, #4]
  57870. 8017b4e: 7d1b ldrb r3, [r3, #20]
  57871. 8017b50: 2b01 cmp r3, #1
  57872. 8017b52: d103 bne.n 8017b5c <lwip_netconn_do_getaddr+0xbc>
  57873. /* pcb is not connected and remote name is requested */
  57874. msg->err = ERR_CONN;
  57875. 8017b54: 68fb ldr r3, [r7, #12]
  57876. 8017b56: 22f5 movs r2, #245 @ 0xf5
  57877. 8017b58: 711a strb r2, [r3, #4]
  57878. } else {
  57879. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  57880. }
  57881. break;
  57882. 8017b5a: e01c b.n 8017b96 <lwip_netconn_do_getaddr+0xf6>
  57883. API_EXPR_DEREF(msg->msg.ad.port) = (msg->msg.ad.local ? msg->conn->pcb.tcp->local_port : msg->conn->pcb.tcp->remote_port);
  57884. 8017b5c: 68fb ldr r3, [r7, #12]
  57885. 8017b5e: 7c1b ldrb r3, [r3, #16]
  57886. 8017b60: 2b00 cmp r3, #0
  57887. 8017b62: d004 beq.n 8017b6e <lwip_netconn_do_getaddr+0xce>
  57888. 8017b64: 68fb ldr r3, [r7, #12]
  57889. 8017b66: 681b ldr r3, [r3, #0]
  57890. 8017b68: 685b ldr r3, [r3, #4]
  57891. 8017b6a: 8adb ldrh r3, [r3, #22]
  57892. 8017b6c: e003 b.n 8017b76 <lwip_netconn_do_getaddr+0xd6>
  57893. 8017b6e: 68fb ldr r3, [r7, #12]
  57894. 8017b70: 681b ldr r3, [r3, #0]
  57895. 8017b72: 685b ldr r3, [r3, #4]
  57896. 8017b74: 8b1b ldrh r3, [r3, #24]
  57897. 8017b76: 68fa ldr r2, [r7, #12]
  57898. 8017b78: 68d2 ldr r2, [r2, #12]
  57899. 8017b7a: 8013 strh r3, [r2, #0]
  57900. break;
  57901. 8017b7c: e00b b.n 8017b96 <lwip_netconn_do_getaddr+0xf6>
  57902. #endif /* LWIP_TCP */
  57903. default:
  57904. LWIP_ASSERT("invalid netconn_type", 0);
  57905. 8017b7e: 4b08 ldr r3, [pc, #32] @ (8017ba0 <lwip_netconn_do_getaddr+0x100>)
  57906. 8017b80: f240 727d movw r2, #1917 @ 0x77d
  57907. 8017b84: 4907 ldr r1, [pc, #28] @ (8017ba4 <lwip_netconn_do_getaddr+0x104>)
  57908. 8017b86: 4808 ldr r0, [pc, #32] @ (8017ba8 <lwip_netconn_do_getaddr+0x108>)
  57909. 8017b88: f012 fb18 bl 802a1bc <iprintf>
  57910. break;
  57911. 8017b8c: e003 b.n 8017b96 <lwip_netconn_do_getaddr+0xf6>
  57912. }
  57913. } else {
  57914. msg->err = ERR_CONN;
  57915. 8017b8e: 68fb ldr r3, [r7, #12]
  57916. 8017b90: 22f5 movs r2, #245 @ 0xf5
  57917. 8017b92: 711a strb r2, [r3, #4]
  57918. }
  57919. TCPIP_APIMSG_ACK(msg);
  57920. }
  57921. 8017b94: bf00 nop
  57922. 8017b96: bf00 nop
  57923. 8017b98: 3710 adds r7, #16
  57924. 8017b9a: 46bd mov sp, r7
  57925. 8017b9c: bd80 pop {r7, pc}
  57926. 8017b9e: bf00 nop
  57927. 8017ba0: 0802d770 .word 0x0802d770
  57928. 8017ba4: 0802dcb0 .word 0x0802dcb0
  57929. 8017ba8: 0802d7b4 .word 0x0802d7b4
  57930. 08017bac <lwip_netconn_do_close>:
  57931. *
  57932. * @param m the api_msg pointing to the connection
  57933. */
  57934. void
  57935. lwip_netconn_do_close(void *m)
  57936. {
  57937. 8017bac: b580 push {r7, lr}
  57938. 8017bae: b084 sub sp, #16
  57939. 8017bb0: af00 add r7, sp, #0
  57940. 8017bb2: 6078 str r0, [r7, #4]
  57941. struct api_msg *msg = (struct api_msg *)m;
  57942. 8017bb4: 687b ldr r3, [r7, #4]
  57943. 8017bb6: 60fb str r3, [r7, #12]
  57944. #if LWIP_TCP
  57945. enum netconn_state state = msg->conn->state;
  57946. 8017bb8: 68fb ldr r3, [r7, #12]
  57947. 8017bba: 681b ldr r3, [r3, #0]
  57948. 8017bbc: 785b ldrb r3, [r3, #1]
  57949. 8017bbe: 72fb strb r3, [r7, #11]
  57950. /* First check if this is a TCP netconn and if it is in a correct state
  57951. (LISTEN doesn't support half shutdown) */
  57952. if ((msg->conn->pcb.tcp != NULL) &&
  57953. 8017bc0: 68fb ldr r3, [r7, #12]
  57954. 8017bc2: 681b ldr r3, [r3, #0]
  57955. 8017bc4: 685b ldr r3, [r3, #4]
  57956. 8017bc6: 2b00 cmp r3, #0
  57957. 8017bc8: d067 beq.n 8017c9a <lwip_netconn_do_close+0xee>
  57958. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  57959. 8017bca: 68fb ldr r3, [r7, #12]
  57960. 8017bcc: 681b ldr r3, [r3, #0]
  57961. 8017bce: 781b ldrb r3, [r3, #0]
  57962. 8017bd0: f003 03f0 and.w r3, r3, #240 @ 0xf0
  57963. if ((msg->conn->pcb.tcp != NULL) &&
  57964. 8017bd4: 2b10 cmp r3, #16
  57965. 8017bd6: d160 bne.n 8017c9a <lwip_netconn_do_close+0xee>
  57966. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  57967. 8017bd8: 68fb ldr r3, [r7, #12]
  57968. 8017bda: 7a1b ldrb r3, [r3, #8]
  57969. (NETCONNTYPE_GROUP(msg->conn->type) == NETCONN_TCP) &&
  57970. 8017bdc: 2b03 cmp r3, #3
  57971. 8017bde: d002 beq.n 8017be6 <lwip_netconn_do_close+0x3a>
  57972. ((msg->msg.sd.shut == NETCONN_SHUT_RDWR) || (state != NETCONN_LISTEN))) {
  57973. 8017be0: 7afb ldrb r3, [r7, #11]
  57974. 8017be2: 2b02 cmp r3, #2
  57975. 8017be4: d059 beq.n 8017c9a <lwip_netconn_do_close+0xee>
  57976. /* Check if we are in a connected state */
  57977. if (state == NETCONN_CONNECT) {
  57978. 8017be6: 7afb ldrb r3, [r7, #11]
  57979. 8017be8: 2b03 cmp r3, #3
  57980. 8017bea: d103 bne.n 8017bf4 <lwip_netconn_do_close+0x48>
  57981. /* TCP connect in progress: cannot shutdown */
  57982. msg->err = ERR_CONN;
  57983. 8017bec: 68fb ldr r3, [r7, #12]
  57984. 8017bee: 22f5 movs r2, #245 @ 0xf5
  57985. 8017bf0: 711a strb r2, [r3, #4]
  57986. if (state == NETCONN_CONNECT) {
  57987. 8017bf2: e057 b.n 8017ca4 <lwip_netconn_do_close+0xf8>
  57988. } else if (state == NETCONN_WRITE) {
  57989. 8017bf4: 7afb ldrb r3, [r7, #11]
  57990. 8017bf6: 2b01 cmp r3, #1
  57991. 8017bf8: d103 bne.n 8017c02 <lwip_netconn_do_close+0x56>
  57992. msg->err = tcp_shutdown(msg->conn->pcb.tcp, 1, 0);
  57993. }
  57994. }
  57995. if (state == NETCONN_NONE) {
  57996. #else /* LWIP_NETCONN_FULLDUPLEX */
  57997. msg->err = ERR_INPROGRESS;
  57998. 8017bfa: 68fb ldr r3, [r7, #12]
  57999. 8017bfc: 22fb movs r2, #251 @ 0xfb
  58000. 8017bfe: 711a strb r2, [r3, #4]
  58001. if (state == NETCONN_CONNECT) {
  58002. 8017c00: e050 b.n 8017ca4 <lwip_netconn_do_close+0xf8>
  58003. } else {
  58004. #endif /* LWIP_NETCONN_FULLDUPLEX */
  58005. if (msg->msg.sd.shut & NETCONN_SHUT_RD) {
  58006. 8017c02: 68fb ldr r3, [r7, #12]
  58007. 8017c04: 7a1b ldrb r3, [r3, #8]
  58008. 8017c06: f003 0301 and.w r3, r3, #1
  58009. 8017c0a: 2b00 cmp r3, #0
  58010. 8017c0c: d004 beq.n 8017c18 <lwip_netconn_do_close+0x6c>
  58011. #if LWIP_NETCONN_FULLDUPLEX
  58012. /* Mark mboxes invalid */
  58013. netconn_mark_mbox_invalid(msg->conn);
  58014. #else /* LWIP_NETCONN_FULLDUPLEX */
  58015. netconn_drain(msg->conn);
  58016. 8017c0e: 68fb ldr r3, [r7, #12]
  58017. 8017c10: 681b ldr r3, [r3, #0]
  58018. 8017c12: 4618 mov r0, r3
  58019. 8017c14: f7ff f82e bl 8016c74 <netconn_drain>
  58020. #endif /* LWIP_NETCONN_FULLDUPLEX */
  58021. }
  58022. LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL);
  58023. 8017c18: 68fb ldr r3, [r7, #12]
  58024. 8017c1a: 681b ldr r3, [r3, #0]
  58025. 8017c1c: 6adb ldr r3, [r3, #44] @ 0x2c
  58026. 8017c1e: 2b00 cmp r3, #0
  58027. 8017c20: d006 beq.n 8017c30 <lwip_netconn_do_close+0x84>
  58028. 8017c22: 4b22 ldr r3, [pc, #136] @ (8017cac <lwip_netconn_do_close+0x100>)
  58029. 8017c24: f240 72bd movw r2, #1981 @ 0x7bd
  58030. 8017c28: 4921 ldr r1, [pc, #132] @ (8017cb0 <lwip_netconn_do_close+0x104>)
  58031. 8017c2a: 4822 ldr r0, [pc, #136] @ (8017cb4 <lwip_netconn_do_close+0x108>)
  58032. 8017c2c: f012 fac6 bl 802a1bc <iprintf>
  58033. msg->conn->state = NETCONN_CLOSE;
  58034. 8017c30: 68fb ldr r3, [r7, #12]
  58035. 8017c32: 681b ldr r3, [r3, #0]
  58036. 8017c34: 2204 movs r2, #4
  58037. 8017c36: 705a strb r2, [r3, #1]
  58038. msg->conn->current_msg = msg;
  58039. 8017c38: 68fb ldr r3, [r7, #12]
  58040. 8017c3a: 681b ldr r3, [r3, #0]
  58041. 8017c3c: 68fa ldr r2, [r7, #12]
  58042. 8017c3e: 62da str r2, [r3, #44] @ 0x2c
  58043. #if LWIP_TCPIP_CORE_LOCKING
  58044. if (lwip_netconn_do_close_internal(msg->conn, 0) != ERR_OK) {
  58045. 8017c40: 68fb ldr r3, [r7, #12]
  58046. 8017c42: 681b ldr r3, [r3, #0]
  58047. 8017c44: 2100 movs r1, #0
  58048. 8017c46: 4618 mov r0, r3
  58049. 8017c48: f7ff f892 bl 8016d70 <lwip_netconn_do_close_internal>
  58050. 8017c4c: 4603 mov r3, r0
  58051. 8017c4e: 2b00 cmp r3, #0
  58052. 8017c50: d027 beq.n 8017ca2 <lwip_netconn_do_close+0xf6>
  58053. LWIP_ASSERT("state!", msg->conn->state == NETCONN_CLOSE);
  58054. 8017c52: 68fb ldr r3, [r7, #12]
  58055. 8017c54: 681b ldr r3, [r3, #0]
  58056. 8017c56: 785b ldrb r3, [r3, #1]
  58057. 8017c58: 2b04 cmp r3, #4
  58058. 8017c5a: d006 beq.n 8017c6a <lwip_netconn_do_close+0xbe>
  58059. 8017c5c: 4b13 ldr r3, [pc, #76] @ (8017cac <lwip_netconn_do_close+0x100>)
  58060. 8017c5e: f240 72c2 movw r2, #1986 @ 0x7c2
  58061. 8017c62: 4915 ldr r1, [pc, #84] @ (8017cb8 <lwip_netconn_do_close+0x10c>)
  58062. 8017c64: 4813 ldr r0, [pc, #76] @ (8017cb4 <lwip_netconn_do_close+0x108>)
  58063. 8017c66: f012 faa9 bl 802a1bc <iprintf>
  58064. UNLOCK_TCPIP_CORE();
  58065. 8017c6a: f7f8 fef9 bl 8010a60 <sys_unlock_tcpip_core>
  58066. sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0);
  58067. 8017c6e: 68fb ldr r3, [r7, #12]
  58068. 8017c70: 681b ldr r3, [r3, #0]
  58069. 8017c72: 330c adds r3, #12
  58070. 8017c74: 2100 movs r1, #0
  58071. 8017c76: 4618 mov r0, r3
  58072. 8017c78: f00e ff43 bl 8026b02 <sys_arch_sem_wait>
  58073. LOCK_TCPIP_CORE();
  58074. 8017c7c: f7f8 fee0 bl 8010a40 <sys_lock_tcpip_core>
  58075. LWIP_ASSERT("state!", msg->conn->state == NETCONN_NONE);
  58076. 8017c80: 68fb ldr r3, [r7, #12]
  58077. 8017c82: 681b ldr r3, [r3, #0]
  58078. 8017c84: 785b ldrb r3, [r3, #1]
  58079. 8017c86: 2b00 cmp r3, #0
  58080. 8017c88: d00b beq.n 8017ca2 <lwip_netconn_do_close+0xf6>
  58081. 8017c8a: 4b08 ldr r3, [pc, #32] @ (8017cac <lwip_netconn_do_close+0x100>)
  58082. 8017c8c: f240 72c6 movw r2, #1990 @ 0x7c6
  58083. 8017c90: 4909 ldr r1, [pc, #36] @ (8017cb8 <lwip_netconn_do_close+0x10c>)
  58084. 8017c92: 4808 ldr r0, [pc, #32] @ (8017cb4 <lwip_netconn_do_close+0x108>)
  58085. 8017c94: f012 fa92 bl 802a1bc <iprintf>
  58086. }
  58087. #else /* LWIP_TCPIP_CORE_LOCKING */
  58088. lwip_netconn_do_close_internal(msg->conn);
  58089. #endif /* LWIP_TCPIP_CORE_LOCKING */
  58090. /* for tcp netconns, lwip_netconn_do_close_internal ACKs the message */
  58091. return;
  58092. 8017c98: e003 b.n 8017ca2 <lwip_netconn_do_close+0xf6>
  58093. }
  58094. } else
  58095. #endif /* LWIP_TCP */
  58096. {
  58097. msg->err = ERR_CONN;
  58098. 8017c9a: 68fb ldr r3, [r7, #12]
  58099. 8017c9c: 22f5 movs r2, #245 @ 0xf5
  58100. 8017c9e: 711a strb r2, [r3, #4]
  58101. 8017ca0: e000 b.n 8017ca4 <lwip_netconn_do_close+0xf8>
  58102. return;
  58103. 8017ca2: bf00 nop
  58104. }
  58105. TCPIP_APIMSG_ACK(msg);
  58106. }
  58107. 8017ca4: 3710 adds r7, #16
  58108. 8017ca6: 46bd mov sp, r7
  58109. 8017ca8: bd80 pop {r7, pc}
  58110. 8017caa: bf00 nop
  58111. 8017cac: 0802d770 .word 0x0802d770
  58112. 8017cb0: 0802db14 .word 0x0802db14
  58113. 8017cb4: 0802d7b4 .word 0x0802d7b4
  58114. 8017cb8: 0802db30 .word 0x0802db30
  58115. 08017cbc <err_to_errno>:
  58116. EIO /* ERR_ARG -16 Illegal argument. */
  58117. };
  58118. int
  58119. err_to_errno(err_t err)
  58120. {
  58121. 8017cbc: b480 push {r7}
  58122. 8017cbe: b083 sub sp, #12
  58123. 8017cc0: af00 add r7, sp, #0
  58124. 8017cc2: 4603 mov r3, r0
  58125. 8017cc4: 71fb strb r3, [r7, #7]
  58126. if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
  58127. 8017cc6: f997 3007 ldrsb.w r3, [r7, #7]
  58128. 8017cca: 2b00 cmp r3, #0
  58129. 8017ccc: dc04 bgt.n 8017cd8 <err_to_errno+0x1c>
  58130. 8017cce: f997 3007 ldrsb.w r3, [r7, #7]
  58131. 8017cd2: f113 0f10 cmn.w r3, #16
  58132. 8017cd6: da01 bge.n 8017cdc <err_to_errno+0x20>
  58133. return EIO;
  58134. 8017cd8: 2305 movs r3, #5
  58135. 8017cda: e005 b.n 8017ce8 <err_to_errno+0x2c>
  58136. }
  58137. return err_to_errno_table[-err];
  58138. 8017cdc: f997 3007 ldrsb.w r3, [r7, #7]
  58139. 8017ce0: 425b negs r3, r3
  58140. 8017ce2: 4a04 ldr r2, [pc, #16] @ (8017cf4 <err_to_errno+0x38>)
  58141. 8017ce4: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  58142. }
  58143. 8017ce8: 4618 mov r0, r3
  58144. 8017cea: 370c adds r7, #12
  58145. 8017cec: 46bd mov sp, r7
  58146. 8017cee: f85d 7b04 ldr.w r7, [sp], #4
  58147. 8017cf2: 4770 bx lr
  58148. 8017cf4: 0803135c .word 0x0803135c
  58149. 08017cf8 <netbuf_delete>:
  58150. *
  58151. * @param buf pointer to a netbuf allocated by netbuf_new()
  58152. */
  58153. void
  58154. netbuf_delete(struct netbuf *buf)
  58155. {
  58156. 8017cf8: b580 push {r7, lr}
  58157. 8017cfa: b082 sub sp, #8
  58158. 8017cfc: af00 add r7, sp, #0
  58159. 8017cfe: 6078 str r0, [r7, #4]
  58160. if (buf != NULL) {
  58161. 8017d00: 687b ldr r3, [r7, #4]
  58162. 8017d02: 2b00 cmp r3, #0
  58163. 8017d04: d013 beq.n 8017d2e <netbuf_delete+0x36>
  58164. if (buf->p != NULL) {
  58165. 8017d06: 687b ldr r3, [r7, #4]
  58166. 8017d08: 681b ldr r3, [r3, #0]
  58167. 8017d0a: 2b00 cmp r3, #0
  58168. 8017d0c: d00b beq.n 8017d26 <netbuf_delete+0x2e>
  58169. pbuf_free(buf->p);
  58170. 8017d0e: 687b ldr r3, [r7, #4]
  58171. 8017d10: 681b ldr r3, [r3, #0]
  58172. 8017d12: 4618 mov r0, r3
  58173. 8017d14: f002 ffda bl 801accc <pbuf_free>
  58174. buf->p = buf->ptr = NULL;
  58175. 8017d18: 687b ldr r3, [r7, #4]
  58176. 8017d1a: 2200 movs r2, #0
  58177. 8017d1c: 605a str r2, [r3, #4]
  58178. 8017d1e: 687b ldr r3, [r7, #4]
  58179. 8017d20: 685a ldr r2, [r3, #4]
  58180. 8017d22: 687b ldr r3, [r7, #4]
  58181. 8017d24: 601a str r2, [r3, #0]
  58182. }
  58183. memp_free(MEMP_NETBUF, buf);
  58184. 8017d26: 6879 ldr r1, [r7, #4]
  58185. 8017d28: 2006 movs r0, #6
  58186. 8017d2a: f002 f8e1 bl 8019ef0 <memp_free>
  58187. }
  58188. }
  58189. 8017d2e: bf00 nop
  58190. 8017d30: 3708 adds r7, #8
  58191. 8017d32: 46bd mov sp, r7
  58192. 8017d34: bd80 pop {r7, pc}
  58193. ...
  58194. 08017d38 <netbuf_free>:
  58195. *
  58196. * @param buf pointer to the netbuf which contains the packet buffer to free
  58197. */
  58198. void
  58199. netbuf_free(struct netbuf *buf)
  58200. {
  58201. 8017d38: b580 push {r7, lr}
  58202. 8017d3a: b082 sub sp, #8
  58203. 8017d3c: af00 add r7, sp, #0
  58204. 8017d3e: 6078 str r0, [r7, #4]
  58205. LWIP_ERROR("netbuf_free: invalid buf", (buf != NULL), return;);
  58206. 8017d40: 687b ldr r3, [r7, #4]
  58207. 8017d42: 2b00 cmp r3, #0
  58208. 8017d44: d106 bne.n 8017d54 <netbuf_free+0x1c>
  58209. 8017d46: 4b0d ldr r3, [pc, #52] @ (8017d7c <netbuf_free+0x44>)
  58210. 8017d48: 2281 movs r2, #129 @ 0x81
  58211. 8017d4a: 490d ldr r1, [pc, #52] @ (8017d80 <netbuf_free+0x48>)
  58212. 8017d4c: 480d ldr r0, [pc, #52] @ (8017d84 <netbuf_free+0x4c>)
  58213. 8017d4e: f012 fa35 bl 802a1bc <iprintf>
  58214. 8017d52: e00f b.n 8017d74 <netbuf_free+0x3c>
  58215. if (buf->p != NULL) {
  58216. 8017d54: 687b ldr r3, [r7, #4]
  58217. 8017d56: 681b ldr r3, [r3, #0]
  58218. 8017d58: 2b00 cmp r3, #0
  58219. 8017d5a: d004 beq.n 8017d66 <netbuf_free+0x2e>
  58220. pbuf_free(buf->p);
  58221. 8017d5c: 687b ldr r3, [r7, #4]
  58222. 8017d5e: 681b ldr r3, [r3, #0]
  58223. 8017d60: 4618 mov r0, r3
  58224. 8017d62: f002 ffb3 bl 801accc <pbuf_free>
  58225. }
  58226. buf->p = buf->ptr = NULL;
  58227. 8017d66: 687b ldr r3, [r7, #4]
  58228. 8017d68: 2200 movs r2, #0
  58229. 8017d6a: 605a str r2, [r3, #4]
  58230. 8017d6c: 687b ldr r3, [r7, #4]
  58231. 8017d6e: 685a ldr r2, [r3, #4]
  58232. 8017d70: 687b ldr r3, [r7, #4]
  58233. 8017d72: 601a str r2, [r3, #0]
  58234. #if LWIP_CHECKSUM_ON_COPY
  58235. buf->flags = 0;
  58236. buf->toport_chksum = 0;
  58237. #endif /* LWIP_CHECKSUM_ON_COPY */
  58238. }
  58239. 8017d74: 3708 adds r7, #8
  58240. 8017d76: 46bd mov sp, r7
  58241. 8017d78: bd80 pop {r7, pc}
  58242. 8017d7a: bf00 nop
  58243. 8017d7c: 0802dcc8 .word 0x0802dcc8
  58244. 8017d80: 0802dd64 .word 0x0802dd64
  58245. 8017d84: 0802dd18 .word 0x0802dd18
  58246. 08017d88 <netbuf_ref>:
  58247. * @return ERR_OK if data is referenced
  58248. * ERR_MEM if data couldn't be referenced due to lack of memory
  58249. */
  58250. err_t
  58251. netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size)
  58252. {
  58253. 8017d88: b580 push {r7, lr}
  58254. 8017d8a: b084 sub sp, #16
  58255. 8017d8c: af00 add r7, sp, #0
  58256. 8017d8e: 60f8 str r0, [r7, #12]
  58257. 8017d90: 60b9 str r1, [r7, #8]
  58258. 8017d92: 4613 mov r3, r2
  58259. 8017d94: 80fb strh r3, [r7, #6]
  58260. LWIP_ERROR("netbuf_ref: invalid buf", (buf != NULL), return ERR_ARG;);
  58261. 8017d96: 68fb ldr r3, [r7, #12]
  58262. 8017d98: 2b00 cmp r3, #0
  58263. 8017d9a: d108 bne.n 8017dae <netbuf_ref+0x26>
  58264. 8017d9c: 4b1c ldr r3, [pc, #112] @ (8017e10 <netbuf_ref+0x88>)
  58265. 8017d9e: 2299 movs r2, #153 @ 0x99
  58266. 8017da0: 491c ldr r1, [pc, #112] @ (8017e14 <netbuf_ref+0x8c>)
  58267. 8017da2: 481d ldr r0, [pc, #116] @ (8017e18 <netbuf_ref+0x90>)
  58268. 8017da4: f012 fa0a bl 802a1bc <iprintf>
  58269. 8017da8: f06f 030f mvn.w r3, #15
  58270. 8017dac: e02b b.n 8017e06 <netbuf_ref+0x7e>
  58271. if (buf->p != NULL) {
  58272. 8017dae: 68fb ldr r3, [r7, #12]
  58273. 8017db0: 681b ldr r3, [r3, #0]
  58274. 8017db2: 2b00 cmp r3, #0
  58275. 8017db4: d004 beq.n 8017dc0 <netbuf_ref+0x38>
  58276. pbuf_free(buf->p);
  58277. 8017db6: 68fb ldr r3, [r7, #12]
  58278. 8017db8: 681b ldr r3, [r3, #0]
  58279. 8017dba: 4618 mov r0, r3
  58280. 8017dbc: f002 ff86 bl 801accc <pbuf_free>
  58281. }
  58282. buf->p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF);
  58283. 8017dc0: 2241 movs r2, #65 @ 0x41
  58284. 8017dc2: 2100 movs r1, #0
  58285. 8017dc4: 2036 movs r0, #54 @ 0x36
  58286. 8017dc6: f002 fc6b bl 801a6a0 <pbuf_alloc>
  58287. 8017dca: 4602 mov r2, r0
  58288. 8017dcc: 68fb ldr r3, [r7, #12]
  58289. 8017dce: 601a str r2, [r3, #0]
  58290. if (buf->p == NULL) {
  58291. 8017dd0: 68fb ldr r3, [r7, #12]
  58292. 8017dd2: 681b ldr r3, [r3, #0]
  58293. 8017dd4: 2b00 cmp r3, #0
  58294. 8017dd6: d105 bne.n 8017de4 <netbuf_ref+0x5c>
  58295. buf->ptr = NULL;
  58296. 8017dd8: 68fb ldr r3, [r7, #12]
  58297. 8017dda: 2200 movs r2, #0
  58298. 8017ddc: 605a str r2, [r3, #4]
  58299. return ERR_MEM;
  58300. 8017dde: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58301. 8017de2: e010 b.n 8017e06 <netbuf_ref+0x7e>
  58302. }
  58303. ((struct pbuf_rom *)buf->p)->payload = dataptr;
  58304. 8017de4: 68fb ldr r3, [r7, #12]
  58305. 8017de6: 681b ldr r3, [r3, #0]
  58306. 8017de8: 68ba ldr r2, [r7, #8]
  58307. 8017dea: 605a str r2, [r3, #4]
  58308. buf->p->len = buf->p->tot_len = size;
  58309. 8017dec: 68fb ldr r3, [r7, #12]
  58310. 8017dee: 681b ldr r3, [r3, #0]
  58311. 8017df0: 88fa ldrh r2, [r7, #6]
  58312. 8017df2: 811a strh r2, [r3, #8]
  58313. 8017df4: 68fa ldr r2, [r7, #12]
  58314. 8017df6: 6812 ldr r2, [r2, #0]
  58315. 8017df8: 891b ldrh r3, [r3, #8]
  58316. 8017dfa: 8153 strh r3, [r2, #10]
  58317. buf->ptr = buf->p;
  58318. 8017dfc: 68fb ldr r3, [r7, #12]
  58319. 8017dfe: 681a ldr r2, [r3, #0]
  58320. 8017e00: 68fb ldr r3, [r7, #12]
  58321. 8017e02: 605a str r2, [r3, #4]
  58322. return ERR_OK;
  58323. 8017e04: 2300 movs r3, #0
  58324. }
  58325. 8017e06: 4618 mov r0, r3
  58326. 8017e08: 3710 adds r7, #16
  58327. 8017e0a: 46bd mov sp, r7
  58328. 8017e0c: bd80 pop {r7, pc}
  58329. 8017e0e: bf00 nop
  58330. 8017e10: 0802dcc8 .word 0x0802dcc8
  58331. 8017e14: 0802dd80 .word 0x0802dd80
  58332. 8017e18: 0802dd18 .word 0x0802dd18
  58333. 08017e1c <tryget_socket_unconn_nouse>:
  58334. #endif /* LWIP_NETCONN_FULLDUPLEX */
  58335. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  58336. static struct lwip_sock *
  58337. tryget_socket_unconn_nouse(int fd)
  58338. {
  58339. 8017e1c: b480 push {r7}
  58340. 8017e1e: b085 sub sp, #20
  58341. 8017e20: af00 add r7, sp, #0
  58342. 8017e22: 6078 str r0, [r7, #4]
  58343. int s = fd - LWIP_SOCKET_OFFSET;
  58344. 8017e24: 687b ldr r3, [r7, #4]
  58345. 8017e26: 60fb str r3, [r7, #12]
  58346. if ((s < 0) || (s >= NUM_SOCKETS)) {
  58347. 8017e28: 68fb ldr r3, [r7, #12]
  58348. 8017e2a: 2b00 cmp r3, #0
  58349. 8017e2c: db02 blt.n 8017e34 <tryget_socket_unconn_nouse+0x18>
  58350. 8017e2e: 68fb ldr r3, [r7, #12]
  58351. 8017e30: 2b03 cmp r3, #3
  58352. 8017e32: dd01 ble.n 8017e38 <tryget_socket_unconn_nouse+0x1c>
  58353. LWIP_DEBUGF(SOCKETS_DEBUG, ("tryget_socket_unconn(%d): invalid\n", fd));
  58354. return NULL;
  58355. 8017e34: 2300 movs r3, #0
  58356. 8017e36: e003 b.n 8017e40 <tryget_socket_unconn_nouse+0x24>
  58357. }
  58358. return &sockets[s];
  58359. 8017e38: 68fb ldr r3, [r7, #12]
  58360. 8017e3a: 011b lsls r3, r3, #4
  58361. 8017e3c: 4a03 ldr r2, [pc, #12] @ (8017e4c <tryget_socket_unconn_nouse+0x30>)
  58362. 8017e3e: 4413 add r3, r2
  58363. }
  58364. 8017e40: 4618 mov r0, r3
  58365. 8017e42: 3714 adds r7, #20
  58366. 8017e44: 46bd mov sp, r7
  58367. 8017e46: f85d 7b04 ldr.w r7, [sp], #4
  58368. 8017e4a: 4770 bx lr
  58369. 8017e4c: 240243b4 .word 0x240243b4
  58370. 08017e50 <tryget_socket_unconn>:
  58371. }
  58372. /* Translate a socket 'int' into a pointer (only fails if the index is invalid) */
  58373. static struct lwip_sock *
  58374. tryget_socket_unconn(int fd)
  58375. {
  58376. 8017e50: b580 push {r7, lr}
  58377. 8017e52: b084 sub sp, #16
  58378. 8017e54: af00 add r7, sp, #0
  58379. 8017e56: 6078 str r0, [r7, #4]
  58380. struct lwip_sock *ret = tryget_socket_unconn_nouse(fd);
  58381. 8017e58: 6878 ldr r0, [r7, #4]
  58382. 8017e5a: f7ff ffdf bl 8017e1c <tryget_socket_unconn_nouse>
  58383. 8017e5e: 60f8 str r0, [r7, #12]
  58384. if (ret != NULL) {
  58385. if (!sock_inc_used(ret)) {
  58386. return NULL;
  58387. }
  58388. }
  58389. return ret;
  58390. 8017e60: 68fb ldr r3, [r7, #12]
  58391. }
  58392. 8017e62: 4618 mov r0, r3
  58393. 8017e64: 3710 adds r7, #16
  58394. 8017e66: 46bd mov sp, r7
  58395. 8017e68: bd80 pop {r7, pc}
  58396. 08017e6a <tryget_socket>:
  58397. * @param fd externally used socket index
  58398. * @return struct lwip_sock for the socket or NULL if not found
  58399. */
  58400. static struct lwip_sock *
  58401. tryget_socket(int fd)
  58402. {
  58403. 8017e6a: b580 push {r7, lr}
  58404. 8017e6c: b084 sub sp, #16
  58405. 8017e6e: af00 add r7, sp, #0
  58406. 8017e70: 6078 str r0, [r7, #4]
  58407. struct lwip_sock *sock = tryget_socket_unconn(fd);
  58408. 8017e72: 6878 ldr r0, [r7, #4]
  58409. 8017e74: f7ff ffec bl 8017e50 <tryget_socket_unconn>
  58410. 8017e78: 60f8 str r0, [r7, #12]
  58411. if (sock != NULL) {
  58412. 8017e7a: 68fb ldr r3, [r7, #12]
  58413. 8017e7c: 2b00 cmp r3, #0
  58414. 8017e7e: d005 beq.n 8017e8c <tryget_socket+0x22>
  58415. if (sock->conn) {
  58416. 8017e80: 68fb ldr r3, [r7, #12]
  58417. 8017e82: 681b ldr r3, [r3, #0]
  58418. 8017e84: 2b00 cmp r3, #0
  58419. 8017e86: d001 beq.n 8017e8c <tryget_socket+0x22>
  58420. return sock;
  58421. 8017e88: 68fb ldr r3, [r7, #12]
  58422. 8017e8a: e000 b.n 8017e8e <tryget_socket+0x24>
  58423. }
  58424. done_socket(sock);
  58425. }
  58426. return NULL;
  58427. 8017e8c: 2300 movs r3, #0
  58428. }
  58429. 8017e8e: 4618 mov r0, r3
  58430. 8017e90: 3710 adds r7, #16
  58431. 8017e92: 46bd mov sp, r7
  58432. 8017e94: bd80 pop {r7, pc}
  58433. ...
  58434. 08017e98 <get_socket>:
  58435. * @param fd externally used socket index
  58436. * @return struct lwip_sock for the socket or NULL if not found
  58437. */
  58438. static struct lwip_sock *
  58439. get_socket(int fd)
  58440. {
  58441. 8017e98: b580 push {r7, lr}
  58442. 8017e9a: b084 sub sp, #16
  58443. 8017e9c: af00 add r7, sp, #0
  58444. 8017e9e: 6078 str r0, [r7, #4]
  58445. struct lwip_sock *sock = tryget_socket(fd);
  58446. 8017ea0: 6878 ldr r0, [r7, #4]
  58447. 8017ea2: f7ff ffe2 bl 8017e6a <tryget_socket>
  58448. 8017ea6: 60f8 str r0, [r7, #12]
  58449. if (!sock) {
  58450. 8017ea8: 68fb ldr r3, [r7, #12]
  58451. 8017eaa: 2b00 cmp r3, #0
  58452. 8017eac: d104 bne.n 8017eb8 <get_socket+0x20>
  58453. if ((fd < LWIP_SOCKET_OFFSET) || (fd >= (LWIP_SOCKET_OFFSET + NUM_SOCKETS))) {
  58454. LWIP_DEBUGF(SOCKETS_DEBUG, ("get_socket(%d): invalid\n", fd));
  58455. }
  58456. set_errno(EBADF);
  58457. 8017eae: 4b05 ldr r3, [pc, #20] @ (8017ec4 <get_socket+0x2c>)
  58458. 8017eb0: 2209 movs r2, #9
  58459. 8017eb2: 601a str r2, [r3, #0]
  58460. return NULL;
  58461. 8017eb4: 2300 movs r3, #0
  58462. 8017eb6: e000 b.n 8017eba <get_socket+0x22>
  58463. }
  58464. return sock;
  58465. 8017eb8: 68fb ldr r3, [r7, #12]
  58466. }
  58467. 8017eba: 4618 mov r0, r3
  58468. 8017ebc: 3710 adds r7, #16
  58469. 8017ebe: 46bd mov sp, r7
  58470. 8017ec0: bd80 pop {r7, pc}
  58471. 8017ec2: bf00 nop
  58472. 8017ec4: 2402b250 .word 0x2402b250
  58473. 08017ec8 <alloc_socket>:
  58474. * 0 if socket has been created by socket()
  58475. * @return the index of the new socket; -1 on error
  58476. */
  58477. static int
  58478. alloc_socket(struct netconn *newconn, int accepted)
  58479. {
  58480. 8017ec8: b580 push {r7, lr}
  58481. 8017eca: b084 sub sp, #16
  58482. 8017ecc: af00 add r7, sp, #0
  58483. 8017ece: 6078 str r0, [r7, #4]
  58484. 8017ed0: 6039 str r1, [r7, #0]
  58485. int i;
  58486. SYS_ARCH_DECL_PROTECT(lev);
  58487. LWIP_UNUSED_ARG(accepted);
  58488. /* allocate a new socket identifier */
  58489. for (i = 0; i < NUM_SOCKETS; ++i) {
  58490. 8017ed2: 2300 movs r3, #0
  58491. 8017ed4: 60fb str r3, [r7, #12]
  58492. 8017ed6: e052 b.n 8017f7e <alloc_socket+0xb6>
  58493. /* Protect socket array */
  58494. SYS_ARCH_PROTECT(lev);
  58495. 8017ed8: f00e feda bl 8026c90 <sys_arch_protect>
  58496. 8017edc: 60b8 str r0, [r7, #8]
  58497. if (!sockets[i].conn) {
  58498. 8017ede: 4a2c ldr r2, [pc, #176] @ (8017f90 <alloc_socket+0xc8>)
  58499. 8017ee0: 68fb ldr r3, [r7, #12]
  58500. 8017ee2: 011b lsls r3, r3, #4
  58501. 8017ee4: 4413 add r3, r2
  58502. 8017ee6: 681b ldr r3, [r3, #0]
  58503. 8017ee8: 2b00 cmp r3, #0
  58504. 8017eea: d142 bne.n 8017f72 <alloc_socket+0xaa>
  58505. continue;
  58506. }
  58507. sockets[i].fd_used = 1;
  58508. sockets[i].fd_free_pending = 0;
  58509. #endif
  58510. sockets[i].conn = newconn;
  58511. 8017eec: 4a28 ldr r2, [pc, #160] @ (8017f90 <alloc_socket+0xc8>)
  58512. 8017eee: 68fb ldr r3, [r7, #12]
  58513. 8017ef0: 011b lsls r3, r3, #4
  58514. 8017ef2: 4413 add r3, r2
  58515. 8017ef4: 687a ldr r2, [r7, #4]
  58516. 8017ef6: 601a str r2, [r3, #0]
  58517. /* The socket is not yet known to anyone, so no need to protect
  58518. after having marked it as used. */
  58519. SYS_ARCH_UNPROTECT(lev);
  58520. 8017ef8: 68b8 ldr r0, [r7, #8]
  58521. 8017efa: f00e fed7 bl 8026cac <sys_arch_unprotect>
  58522. sockets[i].lastdata.pbuf = NULL;
  58523. 8017efe: 4a24 ldr r2, [pc, #144] @ (8017f90 <alloc_socket+0xc8>)
  58524. 8017f00: 68fb ldr r3, [r7, #12]
  58525. 8017f02: 011b lsls r3, r3, #4
  58526. 8017f04: 4413 add r3, r2
  58527. 8017f06: 3304 adds r3, #4
  58528. 8017f08: 2200 movs r2, #0
  58529. 8017f0a: 601a str r2, [r3, #0]
  58530. #if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL
  58531. LWIP_ASSERT("sockets[i].select_waiting == 0", sockets[i].select_waiting == 0);
  58532. 8017f0c: 4a20 ldr r2, [pc, #128] @ (8017f90 <alloc_socket+0xc8>)
  58533. 8017f0e: 68fb ldr r3, [r7, #12]
  58534. 8017f10: 011b lsls r3, r3, #4
  58535. 8017f12: 4413 add r3, r2
  58536. 8017f14: 330e adds r3, #14
  58537. 8017f16: 781b ldrb r3, [r3, #0]
  58538. 8017f18: 2b00 cmp r3, #0
  58539. 8017f1a: d006 beq.n 8017f2a <alloc_socket+0x62>
  58540. 8017f1c: 4b1d ldr r3, [pc, #116] @ (8017f94 <alloc_socket+0xcc>)
  58541. 8017f1e: f240 220e movw r2, #526 @ 0x20e
  58542. 8017f22: 491d ldr r1, [pc, #116] @ (8017f98 <alloc_socket+0xd0>)
  58543. 8017f24: 481d ldr r0, [pc, #116] @ (8017f9c <alloc_socket+0xd4>)
  58544. 8017f26: f012 f949 bl 802a1bc <iprintf>
  58545. sockets[i].rcvevent = 0;
  58546. 8017f2a: 4a19 ldr r2, [pc, #100] @ (8017f90 <alloc_socket+0xc8>)
  58547. 8017f2c: 68fb ldr r3, [r7, #12]
  58548. 8017f2e: 011b lsls r3, r3, #4
  58549. 8017f30: 4413 add r3, r2
  58550. 8017f32: 3308 adds r3, #8
  58551. 8017f34: 2200 movs r2, #0
  58552. 8017f36: 801a strh r2, [r3, #0]
  58553. /* TCP sendbuf is empty, but the socket is not yet writable until connected
  58554. * (unless it has been created by accept()). */
  58555. sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1);
  58556. 8017f38: 687b ldr r3, [r7, #4]
  58557. 8017f3a: 781b ldrb r3, [r3, #0]
  58558. 8017f3c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58559. 8017f40: 2b10 cmp r3, #16
  58560. 8017f42: d102 bne.n 8017f4a <alloc_socket+0x82>
  58561. 8017f44: 683b ldr r3, [r7, #0]
  58562. 8017f46: 2b00 cmp r3, #0
  58563. 8017f48: d001 beq.n 8017f4e <alloc_socket+0x86>
  58564. 8017f4a: 2301 movs r3, #1
  58565. 8017f4c: e000 b.n 8017f50 <alloc_socket+0x88>
  58566. 8017f4e: 2300 movs r3, #0
  58567. 8017f50: b299 uxth r1, r3
  58568. 8017f52: 4a0f ldr r2, [pc, #60] @ (8017f90 <alloc_socket+0xc8>)
  58569. 8017f54: 68fb ldr r3, [r7, #12]
  58570. 8017f56: 011b lsls r3, r3, #4
  58571. 8017f58: 4413 add r3, r2
  58572. 8017f5a: 330a adds r3, #10
  58573. 8017f5c: 460a mov r2, r1
  58574. 8017f5e: 801a strh r2, [r3, #0]
  58575. sockets[i].errevent = 0;
  58576. 8017f60: 4a0b ldr r2, [pc, #44] @ (8017f90 <alloc_socket+0xc8>)
  58577. 8017f62: 68fb ldr r3, [r7, #12]
  58578. 8017f64: 011b lsls r3, r3, #4
  58579. 8017f66: 4413 add r3, r2
  58580. 8017f68: 330c adds r3, #12
  58581. 8017f6a: 2200 movs r2, #0
  58582. 8017f6c: 801a strh r2, [r3, #0]
  58583. #endif /* LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL */
  58584. return i + LWIP_SOCKET_OFFSET;
  58585. 8017f6e: 68fb ldr r3, [r7, #12]
  58586. 8017f70: e00a b.n 8017f88 <alloc_socket+0xc0>
  58587. }
  58588. SYS_ARCH_UNPROTECT(lev);
  58589. 8017f72: 68b8 ldr r0, [r7, #8]
  58590. 8017f74: f00e fe9a bl 8026cac <sys_arch_unprotect>
  58591. for (i = 0; i < NUM_SOCKETS; ++i) {
  58592. 8017f78: 68fb ldr r3, [r7, #12]
  58593. 8017f7a: 3301 adds r3, #1
  58594. 8017f7c: 60fb str r3, [r7, #12]
  58595. 8017f7e: 68fb ldr r3, [r7, #12]
  58596. 8017f80: 2b03 cmp r3, #3
  58597. 8017f82: dda9 ble.n 8017ed8 <alloc_socket+0x10>
  58598. }
  58599. return -1;
  58600. 8017f84: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58601. }
  58602. 8017f88: 4618 mov r0, r3
  58603. 8017f8a: 3710 adds r7, #16
  58604. 8017f8c: 46bd mov sp, r7
  58605. 8017f8e: bd80 pop {r7, pc}
  58606. 8017f90: 240243b4 .word 0x240243b4
  58607. 8017f94: 0802de60 .word 0x0802de60
  58608. 8017f98: 0802de94 .word 0x0802de94
  58609. 8017f9c: 0802deb4 .word 0x0802deb4
  58610. 08017fa0 <free_socket_locked>:
  58611. * @param lastdata lastdata is stored here, must be freed externally
  58612. */
  58613. static int
  58614. free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn,
  58615. union lwip_sock_lastdata *lastdata)
  58616. {
  58617. 8017fa0: b480 push {r7}
  58618. 8017fa2: b085 sub sp, #20
  58619. 8017fa4: af00 add r7, sp, #0
  58620. 8017fa6: 60f8 str r0, [r7, #12]
  58621. 8017fa8: 60b9 str r1, [r7, #8]
  58622. 8017faa: 607a str r2, [r7, #4]
  58623. 8017fac: 603b str r3, [r7, #0]
  58624. }
  58625. #else /* LWIP_NETCONN_FULLDUPLEX */
  58626. LWIP_UNUSED_ARG(is_tcp);
  58627. #endif /* LWIP_NETCONN_FULLDUPLEX */
  58628. *lastdata = sock->lastdata;
  58629. 8017fae: 683b ldr r3, [r7, #0]
  58630. 8017fb0: 68fa ldr r2, [r7, #12]
  58631. 8017fb2: 6852 ldr r2, [r2, #4]
  58632. 8017fb4: 601a str r2, [r3, #0]
  58633. sock->lastdata.pbuf = NULL;
  58634. 8017fb6: 68fb ldr r3, [r7, #12]
  58635. 8017fb8: 2200 movs r2, #0
  58636. 8017fba: 605a str r2, [r3, #4]
  58637. *conn = sock->conn;
  58638. 8017fbc: 68fb ldr r3, [r7, #12]
  58639. 8017fbe: 681a ldr r2, [r3, #0]
  58640. 8017fc0: 687b ldr r3, [r7, #4]
  58641. 8017fc2: 601a str r2, [r3, #0]
  58642. sock->conn = NULL;
  58643. 8017fc4: 68fb ldr r3, [r7, #12]
  58644. 8017fc6: 2200 movs r2, #0
  58645. 8017fc8: 601a str r2, [r3, #0]
  58646. return 1;
  58647. 8017fca: 2301 movs r3, #1
  58648. }
  58649. 8017fcc: 4618 mov r0, r3
  58650. 8017fce: 3714 adds r7, #20
  58651. 8017fd0: 46bd mov sp, r7
  58652. 8017fd2: f85d 7b04 ldr.w r7, [sp], #4
  58653. 8017fd6: 4770 bx lr
  58654. 08017fd8 <free_socket_free_elements>:
  58655. /** Free a socket's leftover members.
  58656. */
  58657. static void
  58658. free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata)
  58659. {
  58660. 8017fd8: b580 push {r7, lr}
  58661. 8017fda: b084 sub sp, #16
  58662. 8017fdc: af00 add r7, sp, #0
  58663. 8017fde: 60f8 str r0, [r7, #12]
  58664. 8017fe0: 60b9 str r1, [r7, #8]
  58665. 8017fe2: 607a str r2, [r7, #4]
  58666. if (lastdata->pbuf != NULL) {
  58667. 8017fe4: 687b ldr r3, [r7, #4]
  58668. 8017fe6: 681b ldr r3, [r3, #0]
  58669. 8017fe8: 2b00 cmp r3, #0
  58670. 8017fea: d00d beq.n 8018008 <free_socket_free_elements+0x30>
  58671. if (is_tcp) {
  58672. 8017fec: 68fb ldr r3, [r7, #12]
  58673. 8017fee: 2b00 cmp r3, #0
  58674. 8017ff0: d005 beq.n 8017ffe <free_socket_free_elements+0x26>
  58675. pbuf_free(lastdata->pbuf);
  58676. 8017ff2: 687b ldr r3, [r7, #4]
  58677. 8017ff4: 681b ldr r3, [r3, #0]
  58678. 8017ff6: 4618 mov r0, r3
  58679. 8017ff8: f002 fe68 bl 801accc <pbuf_free>
  58680. 8017ffc: e004 b.n 8018008 <free_socket_free_elements+0x30>
  58681. } else {
  58682. netbuf_delete(lastdata->netbuf);
  58683. 8017ffe: 687b ldr r3, [r7, #4]
  58684. 8018000: 681b ldr r3, [r3, #0]
  58685. 8018002: 4618 mov r0, r3
  58686. 8018004: f7ff fe78 bl 8017cf8 <netbuf_delete>
  58687. }
  58688. }
  58689. if (conn != NULL) {
  58690. 8018008: 68bb ldr r3, [r7, #8]
  58691. 801800a: 2b00 cmp r3, #0
  58692. 801800c: d002 beq.n 8018014 <free_socket_free_elements+0x3c>
  58693. /* netconn_prepare_delete() has already been called, here we only free the conn */
  58694. netconn_delete(conn);
  58695. 801800e: 68b8 ldr r0, [r7, #8]
  58696. 8018010: f7fd fd50 bl 8015ab4 <netconn_delete>
  58697. }
  58698. }
  58699. 8018014: bf00 nop
  58700. 8018016: 3710 adds r7, #16
  58701. 8018018: 46bd mov sp, r7
  58702. 801801a: bd80 pop {r7, pc}
  58703. 0801801c <free_socket>:
  58704. * @param sock the socket to free
  58705. * @param is_tcp != 0 for TCP sockets, used to free lastdata
  58706. */
  58707. static void
  58708. free_socket(struct lwip_sock *sock, int is_tcp)
  58709. {
  58710. 801801c: b580 push {r7, lr}
  58711. 801801e: b086 sub sp, #24
  58712. 8018020: af00 add r7, sp, #0
  58713. 8018022: 6078 str r0, [r7, #4]
  58714. 8018024: 6039 str r1, [r7, #0]
  58715. struct netconn *conn;
  58716. union lwip_sock_lastdata lastdata;
  58717. SYS_ARCH_DECL_PROTECT(lev);
  58718. /* Protect socket array */
  58719. SYS_ARCH_PROTECT(lev);
  58720. 8018026: f00e fe33 bl 8026c90 <sys_arch_protect>
  58721. 801802a: 6178 str r0, [r7, #20]
  58722. freed = free_socket_locked(sock, is_tcp, &conn, &lastdata);
  58723. 801802c: f107 0308 add.w r3, r7, #8
  58724. 8018030: f107 020c add.w r2, r7, #12
  58725. 8018034: 6839 ldr r1, [r7, #0]
  58726. 8018036: 6878 ldr r0, [r7, #4]
  58727. 8018038: f7ff ffb2 bl 8017fa0 <free_socket_locked>
  58728. 801803c: 6138 str r0, [r7, #16]
  58729. SYS_ARCH_UNPROTECT(lev);
  58730. 801803e: 6978 ldr r0, [r7, #20]
  58731. 8018040: f00e fe34 bl 8026cac <sys_arch_unprotect>
  58732. /* don't use 'sock' after this line, as another task might have allocated it */
  58733. if (freed) {
  58734. 8018044: 693b ldr r3, [r7, #16]
  58735. 8018046: 2b00 cmp r3, #0
  58736. 8018048: d006 beq.n 8018058 <free_socket+0x3c>
  58737. free_socket_free_elements(is_tcp, conn, &lastdata);
  58738. 801804a: 68fb ldr r3, [r7, #12]
  58739. 801804c: f107 0208 add.w r2, r7, #8
  58740. 8018050: 4619 mov r1, r3
  58741. 8018052: 6838 ldr r0, [r7, #0]
  58742. 8018054: f7ff ffc0 bl 8017fd8 <free_socket_free_elements>
  58743. }
  58744. }
  58745. 8018058: bf00 nop
  58746. 801805a: 3718 adds r7, #24
  58747. 801805c: 46bd mov sp, r7
  58748. 801805e: bd80 pop {r7, pc}
  58749. 08018060 <lwip_close>:
  58750. return 0;
  58751. }
  58752. int
  58753. lwip_close(int s)
  58754. {
  58755. 8018060: b580 push {r7, lr}
  58756. 8018062: b086 sub sp, #24
  58757. 8018064: af00 add r7, sp, #0
  58758. 8018066: 6078 str r0, [r7, #4]
  58759. struct lwip_sock *sock;
  58760. int is_tcp = 0;
  58761. 8018068: 2300 movs r3, #0
  58762. 801806a: 617b str r3, [r7, #20]
  58763. err_t err;
  58764. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_close(%d)\n", s));
  58765. sock = get_socket(s);
  58766. 801806c: 6878 ldr r0, [r7, #4]
  58767. 801806e: f7ff ff13 bl 8017e98 <get_socket>
  58768. 8018072: 6138 str r0, [r7, #16]
  58769. if (!sock) {
  58770. 8018074: 693b ldr r3, [r7, #16]
  58771. 8018076: 2b00 cmp r3, #0
  58772. 8018078: d102 bne.n 8018080 <lwip_close+0x20>
  58773. return -1;
  58774. 801807a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58775. 801807e: e039 b.n 80180f4 <lwip_close+0x94>
  58776. }
  58777. if (sock->conn != NULL) {
  58778. 8018080: 693b ldr r3, [r7, #16]
  58779. 8018082: 681b ldr r3, [r3, #0]
  58780. 8018084: 2b00 cmp r3, #0
  58781. 8018086: d00b beq.n 80180a0 <lwip_close+0x40>
  58782. is_tcp = NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP;
  58783. 8018088: 693b ldr r3, [r7, #16]
  58784. 801808a: 681b ldr r3, [r3, #0]
  58785. 801808c: 781b ldrb r3, [r3, #0]
  58786. 801808e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  58787. 8018092: 2b10 cmp r3, #16
  58788. 8018094: bf0c ite eq
  58789. 8018096: 2301 moveq r3, #1
  58790. 8018098: 2300 movne r3, #0
  58791. 801809a: b2db uxtb r3, r3
  58792. 801809c: 617b str r3, [r7, #20]
  58793. 801809e: e00a b.n 80180b6 <lwip_close+0x56>
  58794. } else {
  58795. LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata.pbuf == NULL);
  58796. 80180a0: 693b ldr r3, [r7, #16]
  58797. 80180a2: 685b ldr r3, [r3, #4]
  58798. 80180a4: 2b00 cmp r3, #0
  58799. 80180a6: d006 beq.n 80180b6 <lwip_close+0x56>
  58800. 80180a8: 4b14 ldr r3, [pc, #80] @ (80180fc <lwip_close+0x9c>)
  58801. 80180aa: f44f 7245 mov.w r2, #788 @ 0x314
  58802. 80180ae: 4914 ldr r1, [pc, #80] @ (8018100 <lwip_close+0xa0>)
  58803. 80180b0: 4814 ldr r0, [pc, #80] @ (8018104 <lwip_close+0xa4>)
  58804. 80180b2: f012 f883 bl 802a1bc <iprintf>
  58805. #if LWIP_IPV6_MLD
  58806. /* drop all possibly joined MLD6 memberships */
  58807. lwip_socket_drop_registered_mld6_memberships(s);
  58808. #endif /* LWIP_IPV6_MLD */
  58809. err = netconn_prepare_delete(sock->conn);
  58810. 80180b6: 693b ldr r3, [r7, #16]
  58811. 80180b8: 681b ldr r3, [r3, #0]
  58812. 80180ba: 4618 mov r0, r3
  58813. 80180bc: f7fd fcd6 bl 8015a6c <netconn_prepare_delete>
  58814. 80180c0: 4603 mov r3, r0
  58815. 80180c2: 73fb strb r3, [r7, #15]
  58816. if (err != ERR_OK) {
  58817. 80180c4: f997 300f ldrsb.w r3, [r7, #15]
  58818. 80180c8: 2b00 cmp r3, #0
  58819. 80180ca: d00e beq.n 80180ea <lwip_close+0x8a>
  58820. sock_set_errno(sock, err_to_errno(err));
  58821. 80180cc: f997 300f ldrsb.w r3, [r7, #15]
  58822. 80180d0: 4618 mov r0, r3
  58823. 80180d2: f7ff fdf3 bl 8017cbc <err_to_errno>
  58824. 80180d6: 60b8 str r0, [r7, #8]
  58825. 80180d8: 68bb ldr r3, [r7, #8]
  58826. 80180da: 2b00 cmp r3, #0
  58827. 80180dc: d002 beq.n 80180e4 <lwip_close+0x84>
  58828. 80180de: 4a0a ldr r2, [pc, #40] @ (8018108 <lwip_close+0xa8>)
  58829. 80180e0: 68bb ldr r3, [r7, #8]
  58830. 80180e2: 6013 str r3, [r2, #0]
  58831. done_socket(sock);
  58832. return -1;
  58833. 80180e4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58834. 80180e8: e004 b.n 80180f4 <lwip_close+0x94>
  58835. }
  58836. free_socket(sock, is_tcp);
  58837. 80180ea: 6979 ldr r1, [r7, #20]
  58838. 80180ec: 6938 ldr r0, [r7, #16]
  58839. 80180ee: f7ff ff95 bl 801801c <free_socket>
  58840. set_errno(0);
  58841. return 0;
  58842. 80180f2: 2300 movs r3, #0
  58843. }
  58844. 80180f4: 4618 mov r0, r3
  58845. 80180f6: 3718 adds r7, #24
  58846. 80180f8: 46bd mov sp, r7
  58847. 80180fa: bd80 pop {r7, pc}
  58848. 80180fc: 0802de60 .word 0x0802de60
  58849. 8018100: 0802df20 .word 0x0802df20
  58850. 8018104: 0802deb4 .word 0x0802deb4
  58851. 8018108: 2402b250 .word 0x2402b250
  58852. 0801810c <lwip_connect>:
  58853. int
  58854. lwip_connect(int s, const struct sockaddr *name, socklen_t namelen)
  58855. {
  58856. 801810c: b580 push {r7, lr}
  58857. 801810e: b08a sub sp, #40 @ 0x28
  58858. 8018110: af00 add r7, sp, #0
  58859. 8018112: 60f8 str r0, [r7, #12]
  58860. 8018114: 60b9 str r1, [r7, #8]
  58861. 8018116: 607a str r2, [r7, #4]
  58862. struct lwip_sock *sock;
  58863. err_t err;
  58864. sock = get_socket(s);
  58865. 8018118: 68f8 ldr r0, [r7, #12]
  58866. 801811a: f7ff febd bl 8017e98 <get_socket>
  58867. 801811e: 6278 str r0, [r7, #36] @ 0x24
  58868. if (!sock) {
  58869. 8018120: 6a7b ldr r3, [r7, #36] @ 0x24
  58870. 8018122: 2b00 cmp r3, #0
  58871. 8018124: d102 bne.n 801812c <lwip_connect+0x20>
  58872. return -1;
  58873. 8018126: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58874. 801812a: e062 b.n 80181f2 <lwip_connect+0xe6>
  58875. done_socket(sock);
  58876. return -1;
  58877. }
  58878. LWIP_UNUSED_ARG(namelen);
  58879. if (name->sa_family == AF_UNSPEC) {
  58880. 801812c: 68bb ldr r3, [r7, #8]
  58881. 801812e: 785b ldrb r3, [r3, #1]
  58882. 8018130: 2b00 cmp r3, #0
  58883. 8018132: d108 bne.n 8018146 <lwip_connect+0x3a>
  58884. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d, AF_UNSPEC)\n", s));
  58885. err = netconn_disconnect(sock->conn);
  58886. 8018134: 6a7b ldr r3, [r7, #36] @ 0x24
  58887. 8018136: 681b ldr r3, [r3, #0]
  58888. 8018138: 4618 mov r0, r3
  58889. 801813a: f7fd fd61 bl 8015c00 <netconn_disconnect>
  58890. 801813e: 4603 mov r3, r0
  58891. 8018140: f887 3021 strb.w r3, [r7, #33] @ 0x21
  58892. 8018144: e039 b.n 80181ba <lwip_connect+0xae>
  58893. } else {
  58894. ip_addr_t remote_addr;
  58895. u16_t remote_port;
  58896. /* check size, family and alignment of 'name' */
  58897. LWIP_ERROR("lwip_connect: invalid address", IS_SOCK_ADDR_LEN_VALID(namelen) &&
  58898. 8018146: 687b ldr r3, [r7, #4]
  58899. 8018148: 2b10 cmp r3, #16
  58900. 801814a: d10c bne.n 8018166 <lwip_connect+0x5a>
  58901. 801814c: 68bb ldr r3, [r7, #8]
  58902. 801814e: 785b ldrb r3, [r3, #1]
  58903. 8018150: 2b00 cmp r3, #0
  58904. 8018152: d003 beq.n 801815c <lwip_connect+0x50>
  58905. 8018154: 68bb ldr r3, [r7, #8]
  58906. 8018156: 785b ldrb r3, [r3, #1]
  58907. 8018158: 2b02 cmp r3, #2
  58908. 801815a: d104 bne.n 8018166 <lwip_connect+0x5a>
  58909. 801815c: 68bb ldr r3, [r7, #8]
  58910. 801815e: f003 0303 and.w r3, r3, #3
  58911. 8018162: 2b00 cmp r3, #0
  58912. 8018164: d014 beq.n 8018190 <lwip_connect+0x84>
  58913. 8018166: 4b25 ldr r3, [pc, #148] @ (80181fc <lwip_connect+0xf0>)
  58914. 8018168: f240 3247 movw r2, #839 @ 0x347
  58915. 801816c: 4924 ldr r1, [pc, #144] @ (8018200 <lwip_connect+0xf4>)
  58916. 801816e: 4825 ldr r0, [pc, #148] @ (8018204 <lwip_connect+0xf8>)
  58917. 8018170: f012 f824 bl 802a1bc <iprintf>
  58918. 8018174: f06f 000f mvn.w r0, #15
  58919. 8018178: f7ff fda0 bl 8017cbc <err_to_errno>
  58920. 801817c: 61f8 str r0, [r7, #28]
  58921. 801817e: 69fb ldr r3, [r7, #28]
  58922. 8018180: 2b00 cmp r3, #0
  58923. 8018182: d002 beq.n 801818a <lwip_connect+0x7e>
  58924. 8018184: 4a20 ldr r2, [pc, #128] @ (8018208 <lwip_connect+0xfc>)
  58925. 8018186: 69fb ldr r3, [r7, #28]
  58926. 8018188: 6013 str r3, [r2, #0]
  58927. 801818a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58928. 801818e: e030 b.n 80181f2 <lwip_connect+0xe6>
  58929. IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) && IS_SOCK_ADDR_ALIGNED(name),
  58930. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  58931. SOCKADDR_TO_IPADDR_PORT(name, &remote_addr, remote_port);
  58932. 8018190: 68bb ldr r3, [r7, #8]
  58933. 8018192: 685b ldr r3, [r3, #4]
  58934. 8018194: 613b str r3, [r7, #16]
  58935. 8018196: 68bb ldr r3, [r7, #8]
  58936. 8018198: 885b ldrh r3, [r3, #2]
  58937. 801819a: 4618 mov r0, r3
  58938. 801819c: f001 f8b4 bl 8019308 <lwip_htons>
  58939. 80181a0: 4603 mov r3, r0
  58940. 80181a2: 847b strh r3, [r7, #34] @ 0x22
  58941. unmap_ipv4_mapped_ipv6(ip_2_ip4(&remote_addr), ip_2_ip6(&remote_addr));
  58942. IP_SET_TYPE_VAL(remote_addr, IPADDR_TYPE_V4);
  58943. }
  58944. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  58945. err = netconn_connect(sock->conn, &remote_addr, remote_port);
  58946. 80181a4: 6a7b ldr r3, [r7, #36] @ 0x24
  58947. 80181a6: 681b ldr r3, [r3, #0]
  58948. 80181a8: 8c7a ldrh r2, [r7, #34] @ 0x22
  58949. 80181aa: f107 0110 add.w r1, r7, #16
  58950. 80181ae: 4618 mov r0, r3
  58951. 80181b0: f7fd fcee bl 8015b90 <netconn_connect>
  58952. 80181b4: 4603 mov r3, r0
  58953. 80181b6: f887 3021 strb.w r3, [r7, #33] @ 0x21
  58954. }
  58955. if (err != ERR_OK) {
  58956. 80181ba: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  58957. 80181be: 2b00 cmp r3, #0
  58958. 80181c0: d00e beq.n 80181e0 <lwip_connect+0xd4>
  58959. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) failed, err=%d\n", s, err));
  58960. sock_set_errno(sock, err_to_errno(err));
  58961. 80181c2: f997 3021 ldrsb.w r3, [r7, #33] @ 0x21
  58962. 80181c6: 4618 mov r0, r3
  58963. 80181c8: f7ff fd78 bl 8017cbc <err_to_errno>
  58964. 80181cc: 6178 str r0, [r7, #20]
  58965. 80181ce: 697b ldr r3, [r7, #20]
  58966. 80181d0: 2b00 cmp r3, #0
  58967. 80181d2: d002 beq.n 80181da <lwip_connect+0xce>
  58968. 80181d4: 4a0c ldr r2, [pc, #48] @ (8018208 <lwip_connect+0xfc>)
  58969. 80181d6: 697b ldr r3, [r7, #20]
  58970. 80181d8: 6013 str r3, [r2, #0]
  58971. done_socket(sock);
  58972. return -1;
  58973. 80181da: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  58974. 80181de: e008 b.n 80181f2 <lwip_connect+0xe6>
  58975. }
  58976. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_connect(%d) succeeded\n", s));
  58977. sock_set_errno(sock, 0);
  58978. 80181e0: 2300 movs r3, #0
  58979. 80181e2: 61bb str r3, [r7, #24]
  58980. 80181e4: 69bb ldr r3, [r7, #24]
  58981. 80181e6: 2b00 cmp r3, #0
  58982. 80181e8: d002 beq.n 80181f0 <lwip_connect+0xe4>
  58983. 80181ea: 4a07 ldr r2, [pc, #28] @ (8018208 <lwip_connect+0xfc>)
  58984. 80181ec: 69bb ldr r3, [r7, #24]
  58985. 80181ee: 6013 str r3, [r2, #0]
  58986. done_socket(sock);
  58987. return 0;
  58988. 80181f0: 2300 movs r3, #0
  58989. }
  58990. 80181f2: 4618 mov r0, r3
  58991. 80181f4: 3728 adds r7, #40 @ 0x28
  58992. 80181f6: 46bd mov sp, r7
  58993. 80181f8: bd80 pop {r7, pc}
  58994. 80181fa: bf00 nop
  58995. 80181fc: 0802de60 .word 0x0802de60
  58996. 8018200: 0802df38 .word 0x0802df38
  58997. 8018204: 0802deb4 .word 0x0802deb4
  58998. 8018208: 2402b250 .word 0x2402b250
  58999. 0801820c <lwip_recv_tcp>:
  59000. * until "len" bytes are received or we're otherwise done.
  59001. * Keeps sock->lastdata for peeking or partly copying.
  59002. */
  59003. static ssize_t
  59004. lwip_recv_tcp(struct lwip_sock *sock, void *mem, size_t len, int flags)
  59005. {
  59006. 801820c: b580 push {r7, lr}
  59007. 801820e: b08c sub sp, #48 @ 0x30
  59008. 8018210: af00 add r7, sp, #0
  59009. 8018212: 60f8 str r0, [r7, #12]
  59010. 8018214: 60b9 str r1, [r7, #8]
  59011. 8018216: 607a str r2, [r7, #4]
  59012. 8018218: 603b str r3, [r7, #0]
  59013. u8_t apiflags = NETCONN_NOAUTORCVD;
  59014. 801821a: 2308 movs r3, #8
  59015. 801821c: f887 3023 strb.w r3, [r7, #35] @ 0x23
  59016. ssize_t recvd = 0;
  59017. 8018220: 2300 movs r3, #0
  59018. 8018222: 62bb str r3, [r7, #40] @ 0x28
  59019. ssize_t recv_left = (len <= SSIZE_MAX) ? (ssize_t)len : SSIZE_MAX;
  59020. 8018224: 687b ldr r3, [r7, #4]
  59021. 8018226: 2b00 cmp r3, #0
  59022. 8018228: db01 blt.n 801822e <lwip_recv_tcp+0x22>
  59023. 801822a: 687b ldr r3, [r7, #4]
  59024. 801822c: e001 b.n 8018232 <lwip_recv_tcp+0x26>
  59025. 801822e: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  59026. 8018232: 627b str r3, [r7, #36] @ 0x24
  59027. LWIP_ASSERT("no socket given", sock != NULL);
  59028. 8018234: 68fb ldr r3, [r7, #12]
  59029. 8018236: 2b00 cmp r3, #0
  59030. 8018238: d106 bne.n 8018248 <lwip_recv_tcp+0x3c>
  59031. 801823a: 4b74 ldr r3, [pc, #464] @ (801840c <lwip_recv_tcp+0x200>)
  59032. 801823c: f240 329e movw r2, #926 @ 0x39e
  59033. 8018240: 4973 ldr r1, [pc, #460] @ (8018410 <lwip_recv_tcp+0x204>)
  59034. 8018242: 4874 ldr r0, [pc, #464] @ (8018414 <lwip_recv_tcp+0x208>)
  59035. 8018244: f011 ffba bl 802a1bc <iprintf>
  59036. LWIP_ASSERT("this should be checked internally", NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP);
  59037. 8018248: 68fb ldr r3, [r7, #12]
  59038. 801824a: 681b ldr r3, [r3, #0]
  59039. 801824c: 781b ldrb r3, [r3, #0]
  59040. 801824e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  59041. 8018252: 2b10 cmp r3, #16
  59042. 8018254: d006 beq.n 8018264 <lwip_recv_tcp+0x58>
  59043. 8018256: 4b6d ldr r3, [pc, #436] @ (801840c <lwip_recv_tcp+0x200>)
  59044. 8018258: f240 329f movw r2, #927 @ 0x39f
  59045. 801825c: 496e ldr r1, [pc, #440] @ (8018418 <lwip_recv_tcp+0x20c>)
  59046. 801825e: 486d ldr r0, [pc, #436] @ (8018414 <lwip_recv_tcp+0x208>)
  59047. 8018260: f011 ffac bl 802a1bc <iprintf>
  59048. if (flags & MSG_DONTWAIT) {
  59049. 8018264: 683b ldr r3, [r7, #0]
  59050. 8018266: f003 0308 and.w r3, r3, #8
  59051. 801826a: 2b00 cmp r3, #0
  59052. 801826c: d005 beq.n 801827a <lwip_recv_tcp+0x6e>
  59053. apiflags |= NETCONN_DONTBLOCK;
  59054. 801826e: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  59055. 8018272: f043 0304 orr.w r3, r3, #4
  59056. 8018276: f887 3023 strb.w r3, [r7, #35] @ 0x23
  59057. err_t err;
  59058. u16_t copylen;
  59059. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: top while sock->lastdata=%p\n", (void *)sock->lastdata.pbuf));
  59060. /* Check if there is data left from the last recv operation. */
  59061. if (sock->lastdata.pbuf) {
  59062. 801827a: 68fb ldr r3, [r7, #12]
  59063. 801827c: 685b ldr r3, [r3, #4]
  59064. 801827e: 2b00 cmp r3, #0
  59065. 8018280: d003 beq.n 801828a <lwip_recv_tcp+0x7e>
  59066. p = sock->lastdata.pbuf;
  59067. 8018282: 68fb ldr r3, [r7, #12]
  59068. 8018284: 685b ldr r3, [r3, #4]
  59069. 8018286: 617b str r3, [r7, #20]
  59070. 8018288: e036 b.n 80182f8 <lwip_recv_tcp+0xec>
  59071. } else {
  59072. /* No data was left from the previous operation, so we try to get
  59073. some from the network. */
  59074. err = netconn_recv_tcp_pbuf_flags(sock->conn, &p, apiflags);
  59075. 801828a: 68fb ldr r3, [r7, #12]
  59076. 801828c: 681b ldr r3, [r3, #0]
  59077. 801828e: f897 2023 ldrb.w r2, [r7, #35] @ 0x23
  59078. 8018292: f107 0114 add.w r1, r7, #20
  59079. 8018296: 4618 mov r0, r3
  59080. 8018298: f7fd fea4 bl 8015fe4 <netconn_recv_tcp_pbuf_flags>
  59081. 801829c: 4603 mov r3, r0
  59082. 801829e: f887 3022 strb.w r3, [r7, #34] @ 0x22
  59083. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: netconn_recv err=%d, pbuf=%p\n",
  59084. err, (void *)p));
  59085. if (err != ERR_OK) {
  59086. 80182a2: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  59087. 80182a6: 2b00 cmp r3, #0
  59088. 80182a8: d019 beq.n 80182de <lwip_recv_tcp+0xd2>
  59089. if (recvd > 0) {
  59090. 80182aa: 6abb ldr r3, [r7, #40] @ 0x28
  59091. 80182ac: 2b00 cmp r3, #0
  59092. 80182ae: f300 808d bgt.w 80183cc <lwip_recv_tcp+0x1c0>
  59093. goto lwip_recv_tcp_done;
  59094. }
  59095. /* We should really do some error checking here. */
  59096. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: p == NULL, error is \"%s\"!\n",
  59097. lwip_strerr(err)));
  59098. sock_set_errno(sock, err_to_errno(err));
  59099. 80182b2: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  59100. 80182b6: 4618 mov r0, r3
  59101. 80182b8: f7ff fd00 bl 8017cbc <err_to_errno>
  59102. 80182bc: 61f8 str r0, [r7, #28]
  59103. 80182be: 69fb ldr r3, [r7, #28]
  59104. 80182c0: 2b00 cmp r3, #0
  59105. 80182c2: d002 beq.n 80182ca <lwip_recv_tcp+0xbe>
  59106. 80182c4: 4a55 ldr r2, [pc, #340] @ (801841c <lwip_recv_tcp+0x210>)
  59107. 80182c6: 69fb ldr r3, [r7, #28]
  59108. 80182c8: 6013 str r3, [r2, #0]
  59109. if (err == ERR_CLSD) {
  59110. 80182ca: f997 3022 ldrsb.w r3, [r7, #34] @ 0x22
  59111. 80182ce: f113 0f0f cmn.w r3, #15
  59112. 80182d2: d101 bne.n 80182d8 <lwip_recv_tcp+0xcc>
  59113. return 0;
  59114. 80182d4: 2300 movs r3, #0
  59115. 80182d6: e094 b.n 8018402 <lwip_recv_tcp+0x1f6>
  59116. } else {
  59117. return -1;
  59118. 80182d8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59119. 80182dc: e091 b.n 8018402 <lwip_recv_tcp+0x1f6>
  59120. }
  59121. }
  59122. LWIP_ASSERT("p != NULL", p != NULL);
  59123. 80182de: 697b ldr r3, [r7, #20]
  59124. 80182e0: 2b00 cmp r3, #0
  59125. 80182e2: d106 bne.n 80182f2 <lwip_recv_tcp+0xe6>
  59126. 80182e4: 4b49 ldr r3, [pc, #292] @ (801840c <lwip_recv_tcp+0x200>)
  59127. 80182e6: f240 32c5 movw r2, #965 @ 0x3c5
  59128. 80182ea: 494d ldr r1, [pc, #308] @ (8018420 <lwip_recv_tcp+0x214>)
  59129. 80182ec: 4849 ldr r0, [pc, #292] @ (8018414 <lwip_recv_tcp+0x208>)
  59130. 80182ee: f011 ff65 bl 802a1bc <iprintf>
  59131. sock->lastdata.pbuf = p;
  59132. 80182f2: 697a ldr r2, [r7, #20]
  59133. 80182f4: 68fb ldr r3, [r7, #12]
  59134. 80182f6: 605a str r2, [r3, #4]
  59135. }
  59136. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: buflen=%"U16_F" recv_left=%d off=%d\n",
  59137. p->tot_len, (int)recv_left, (int)recvd));
  59138. if (recv_left > p->tot_len) {
  59139. 80182f8: 697b ldr r3, [r7, #20]
  59140. 80182fa: 891b ldrh r3, [r3, #8]
  59141. 80182fc: 461a mov r2, r3
  59142. 80182fe: 6a7b ldr r3, [r7, #36] @ 0x24
  59143. 8018300: 4293 cmp r3, r2
  59144. 8018302: dd03 ble.n 801830c <lwip_recv_tcp+0x100>
  59145. copylen = p->tot_len;
  59146. 8018304: 697b ldr r3, [r7, #20]
  59147. 8018306: 891b ldrh r3, [r3, #8]
  59148. 8018308: 85fb strh r3, [r7, #46] @ 0x2e
  59149. 801830a: e001 b.n 8018310 <lwip_recv_tcp+0x104>
  59150. } else {
  59151. copylen = (u16_t)recv_left;
  59152. 801830c: 6a7b ldr r3, [r7, #36] @ 0x24
  59153. 801830e: 85fb strh r3, [r7, #46] @ 0x2e
  59154. }
  59155. if (recvd + copylen < recvd) {
  59156. 8018310: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59157. 8018312: 6abb ldr r3, [r7, #40] @ 0x28
  59158. 8018314: 4413 add r3, r2
  59159. 8018316: 6aba ldr r2, [r7, #40] @ 0x28
  59160. 8018318: 429a cmp r2, r3
  59161. 801831a: dd03 ble.n 8018324 <lwip_recv_tcp+0x118>
  59162. /* overflow */
  59163. copylen = (u16_t)(SSIZE_MAX - recvd);
  59164. 801831c: 6abb ldr r3, [r7, #40] @ 0x28
  59165. 801831e: b29b uxth r3, r3
  59166. 8018320: 43db mvns r3, r3
  59167. 8018322: 85fb strh r3, [r7, #46] @ 0x2e
  59168. }
  59169. /* copy the contents of the received buffer into
  59170. the supplied memory pointer mem */
  59171. pbuf_copy_partial(p, (u8_t *)mem + recvd, copylen, 0);
  59172. 8018324: 6978 ldr r0, [r7, #20]
  59173. 8018326: 6abb ldr r3, [r7, #40] @ 0x28
  59174. 8018328: 68ba ldr r2, [r7, #8]
  59175. 801832a: 18d1 adds r1, r2, r3
  59176. 801832c: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59177. 801832e: 2300 movs r3, #0
  59178. 8018330: f002 fed2 bl 801b0d8 <pbuf_copy_partial>
  59179. recvd += copylen;
  59180. 8018334: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59181. 8018336: 6aba ldr r2, [r7, #40] @ 0x28
  59182. 8018338: 4413 add r3, r2
  59183. 801833a: 62bb str r3, [r7, #40] @ 0x28
  59184. /* TCP combines multiple pbufs for one recv */
  59185. LWIP_ASSERT("invalid copylen, len would underflow", recv_left >= copylen);
  59186. 801833c: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59187. 801833e: 6a7a ldr r2, [r7, #36] @ 0x24
  59188. 8018340: 429a cmp r2, r3
  59189. 8018342: da06 bge.n 8018352 <lwip_recv_tcp+0x146>
  59190. 8018344: 4b31 ldr r3, [pc, #196] @ (801840c <lwip_recv_tcp+0x200>)
  59191. 8018346: f240 32dd movw r2, #989 @ 0x3dd
  59192. 801834a: 4936 ldr r1, [pc, #216] @ (8018424 <lwip_recv_tcp+0x218>)
  59193. 801834c: 4831 ldr r0, [pc, #196] @ (8018414 <lwip_recv_tcp+0x208>)
  59194. 801834e: f011 ff35 bl 802a1bc <iprintf>
  59195. recv_left -= copylen;
  59196. 8018352: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59197. 8018354: 6a7a ldr r2, [r7, #36] @ 0x24
  59198. 8018356: 1ad3 subs r3, r2, r3
  59199. 8018358: 627b str r3, [r7, #36] @ 0x24
  59200. /* Unless we peek the incoming message... */
  59201. if ((flags & MSG_PEEK) == 0) {
  59202. 801835a: 683b ldr r3, [r7, #0]
  59203. 801835c: f003 0301 and.w r3, r3, #1
  59204. 8018360: 2b00 cmp r3, #0
  59205. 8018362: d123 bne.n 80183ac <lwip_recv_tcp+0x1a0>
  59206. /* ... check if there is data left in the pbuf */
  59207. LWIP_ASSERT("invalid copylen", p->tot_len >= copylen);
  59208. 8018364: 697b ldr r3, [r7, #20]
  59209. 8018366: 891b ldrh r3, [r3, #8]
  59210. 8018368: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59211. 801836a: 429a cmp r2, r3
  59212. 801836c: d906 bls.n 801837c <lwip_recv_tcp+0x170>
  59213. 801836e: 4b27 ldr r3, [pc, #156] @ (801840c <lwip_recv_tcp+0x200>)
  59214. 8018370: f240 32e3 movw r2, #995 @ 0x3e3
  59215. 8018374: 492c ldr r1, [pc, #176] @ (8018428 <lwip_recv_tcp+0x21c>)
  59216. 8018376: 4827 ldr r0, [pc, #156] @ (8018414 <lwip_recv_tcp+0x208>)
  59217. 8018378: f011 ff20 bl 802a1bc <iprintf>
  59218. if (p->tot_len - copylen > 0) {
  59219. 801837c: 697b ldr r3, [r7, #20]
  59220. 801837e: 891b ldrh r3, [r3, #8]
  59221. 8018380: 461a mov r2, r3
  59222. 8018382: 8dfb ldrh r3, [r7, #46] @ 0x2e
  59223. 8018384: 1ad3 subs r3, r2, r3
  59224. 8018386: 2b00 cmp r3, #0
  59225. 8018388: dd09 ble.n 801839e <lwip_recv_tcp+0x192>
  59226. /* If so, it should be saved in the sock structure for the next recv call.
  59227. We store the pbuf but hide/free the consumed data: */
  59228. sock->lastdata.pbuf = pbuf_free_header(p, copylen);
  59229. 801838a: 697b ldr r3, [r7, #20]
  59230. 801838c: 8dfa ldrh r2, [r7, #46] @ 0x2e
  59231. 801838e: 4611 mov r1, r2
  59232. 8018390: 4618 mov r0, r3
  59233. 8018392: f002 fc68 bl 801ac66 <pbuf_free_header>
  59234. 8018396: 4602 mov r2, r0
  59235. 8018398: 68fb ldr r3, [r7, #12]
  59236. 801839a: 605a str r2, [r3, #4]
  59237. 801839c: e006 b.n 80183ac <lwip_recv_tcp+0x1a0>
  59238. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: lastdata now pbuf=%p\n", (void *)sock->lastdata.pbuf));
  59239. } else {
  59240. sock->lastdata.pbuf = NULL;
  59241. 801839e: 68fb ldr r3, [r7, #12]
  59242. 80183a0: 2200 movs r2, #0
  59243. 80183a2: 605a str r2, [r3, #4]
  59244. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: deleting pbuf=%p\n", (void *)p));
  59245. pbuf_free(p);
  59246. 80183a4: 697b ldr r3, [r7, #20]
  59247. 80183a6: 4618 mov r0, r3
  59248. 80183a8: f002 fc90 bl 801accc <pbuf_free>
  59249. }
  59250. }
  59251. /* once we have some data to return, only add more if we don't need to wait */
  59252. apiflags |= NETCONN_DONTBLOCK | NETCONN_NOFIN;
  59253. 80183ac: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  59254. 80183b0: f043 0314 orr.w r3, r3, #20
  59255. 80183b4: f887 3023 strb.w r3, [r7, #35] @ 0x23
  59256. /* @todo: do we need to support peeking more than one pbuf? */
  59257. } while ((recv_left > 0) && !(flags & MSG_PEEK));
  59258. 80183b8: 6a7b ldr r3, [r7, #36] @ 0x24
  59259. 80183ba: 2b00 cmp r3, #0
  59260. 80183bc: dd08 ble.n 80183d0 <lwip_recv_tcp+0x1c4>
  59261. 80183be: 683b ldr r3, [r7, #0]
  59262. 80183c0: f003 0301 and.w r3, r3, #1
  59263. 80183c4: 2b00 cmp r3, #0
  59264. 80183c6: f43f af58 beq.w 801827a <lwip_recv_tcp+0x6e>
  59265. lwip_recv_tcp_done:
  59266. 80183ca: e001 b.n 80183d0 <lwip_recv_tcp+0x1c4>
  59267. goto lwip_recv_tcp_done;
  59268. 80183cc: bf00 nop
  59269. 80183ce: e000 b.n 80183d2 <lwip_recv_tcp+0x1c6>
  59270. lwip_recv_tcp_done:
  59271. 80183d0: bf00 nop
  59272. if ((recvd > 0) && !(flags & MSG_PEEK)) {
  59273. 80183d2: 6abb ldr r3, [r7, #40] @ 0x28
  59274. 80183d4: 2b00 cmp r3, #0
  59275. 80183d6: dd0b ble.n 80183f0 <lwip_recv_tcp+0x1e4>
  59276. 80183d8: 683b ldr r3, [r7, #0]
  59277. 80183da: f003 0301 and.w r3, r3, #1
  59278. 80183de: 2b00 cmp r3, #0
  59279. 80183e0: d106 bne.n 80183f0 <lwip_recv_tcp+0x1e4>
  59280. /* ensure window update after copying all data */
  59281. netconn_tcp_recvd(sock->conn, (size_t)recvd);
  59282. 80183e2: 68fb ldr r3, [r7, #12]
  59283. 80183e4: 681b ldr r3, [r3, #0]
  59284. 80183e6: 6aba ldr r2, [r7, #40] @ 0x28
  59285. 80183e8: 4611 mov r1, r2
  59286. 80183ea: 4618 mov r0, r3
  59287. 80183ec: f7fd fd42 bl 8015e74 <netconn_tcp_recvd>
  59288. }
  59289. sock_set_errno(sock, 0);
  59290. 80183f0: 2300 movs r3, #0
  59291. 80183f2: 61bb str r3, [r7, #24]
  59292. 80183f4: 69bb ldr r3, [r7, #24]
  59293. 80183f6: 2b00 cmp r3, #0
  59294. 80183f8: d002 beq.n 8018400 <lwip_recv_tcp+0x1f4>
  59295. 80183fa: 4a08 ldr r2, [pc, #32] @ (801841c <lwip_recv_tcp+0x210>)
  59296. 80183fc: 69bb ldr r3, [r7, #24]
  59297. 80183fe: 6013 str r3, [r2, #0]
  59298. return recvd;
  59299. 8018400: 6abb ldr r3, [r7, #40] @ 0x28
  59300. }
  59301. 8018402: 4618 mov r0, r3
  59302. 8018404: 3730 adds r7, #48 @ 0x30
  59303. 8018406: 46bd mov sp, r7
  59304. 8018408: bd80 pop {r7, pc}
  59305. 801840a: bf00 nop
  59306. 801840c: 0802de60 .word 0x0802de60
  59307. 8018410: 0802df58 .word 0x0802df58
  59308. 8018414: 0802deb4 .word 0x0802deb4
  59309. 8018418: 0802df68 .word 0x0802df68
  59310. 801841c: 2402b250 .word 0x2402b250
  59311. 8018420: 0802df8c .word 0x0802df8c
  59312. 8018424: 0802df98 .word 0x0802df98
  59313. 8018428: 0802dfc0 .word 0x0802dfc0
  59314. 0801842c <lwip_sock_make_addr>:
  59315. /* Convert a netbuf's address data to struct sockaddr */
  59316. static int
  59317. lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port,
  59318. struct sockaddr *from, socklen_t *fromlen)
  59319. {
  59320. 801842c: b590 push {r4, r7, lr}
  59321. 801842e: b08b sub sp, #44 @ 0x2c
  59322. 8018430: af00 add r7, sp, #0
  59323. 8018432: 60f8 str r0, [r7, #12]
  59324. 8018434: 60b9 str r1, [r7, #8]
  59325. 8018436: 603b str r3, [r7, #0]
  59326. 8018438: 4613 mov r3, r2
  59327. 801843a: 80fb strh r3, [r7, #6]
  59328. int truncated = 0;
  59329. 801843c: 2300 movs r3, #0
  59330. 801843e: 627b str r3, [r7, #36] @ 0x24
  59331. union sockaddr_aligned saddr;
  59332. LWIP_UNUSED_ARG(conn);
  59333. LWIP_ASSERT("fromaddr != NULL", fromaddr != NULL);
  59334. 8018440: 68bb ldr r3, [r7, #8]
  59335. 8018442: 2b00 cmp r3, #0
  59336. 8018444: d106 bne.n 8018454 <lwip_sock_make_addr+0x28>
  59337. 8018446: 4b2b ldr r3, [pc, #172] @ (80184f4 <lwip_sock_make_addr+0xc8>)
  59338. 8018448: f240 4207 movw r2, #1031 @ 0x407
  59339. 801844c: 492a ldr r1, [pc, #168] @ (80184f8 <lwip_sock_make_addr+0xcc>)
  59340. 801844e: 482b ldr r0, [pc, #172] @ (80184fc <lwip_sock_make_addr+0xd0>)
  59341. 8018450: f011 feb4 bl 802a1bc <iprintf>
  59342. LWIP_ASSERT("from != NULL", from != NULL);
  59343. 8018454: 683b ldr r3, [r7, #0]
  59344. 8018456: 2b00 cmp r3, #0
  59345. 8018458: d106 bne.n 8018468 <lwip_sock_make_addr+0x3c>
  59346. 801845a: 4b26 ldr r3, [pc, #152] @ (80184f4 <lwip_sock_make_addr+0xc8>)
  59347. 801845c: f44f 6281 mov.w r2, #1032 @ 0x408
  59348. 8018460: 4927 ldr r1, [pc, #156] @ (8018500 <lwip_sock_make_addr+0xd4>)
  59349. 8018462: 4826 ldr r0, [pc, #152] @ (80184fc <lwip_sock_make_addr+0xd0>)
  59350. 8018464: f011 feaa bl 802a1bc <iprintf>
  59351. LWIP_ASSERT("fromlen != NULL", fromlen != NULL);
  59352. 8018468: 6bbb ldr r3, [r7, #56] @ 0x38
  59353. 801846a: 2b00 cmp r3, #0
  59354. 801846c: d106 bne.n 801847c <lwip_sock_make_addr+0x50>
  59355. 801846e: 4b21 ldr r3, [pc, #132] @ (80184f4 <lwip_sock_make_addr+0xc8>)
  59356. 8018470: f240 4209 movw r2, #1033 @ 0x409
  59357. 8018474: 4923 ldr r1, [pc, #140] @ (8018504 <lwip_sock_make_addr+0xd8>)
  59358. 8018476: 4821 ldr r0, [pc, #132] @ (80184fc <lwip_sock_make_addr+0xd0>)
  59359. 8018478: f011 fea0 bl 802a1bc <iprintf>
  59360. ip4_2_ipv4_mapped_ipv6(ip_2_ip6(fromaddr), ip_2_ip4(fromaddr));
  59361. IP_SET_TYPE(fromaddr, IPADDR_TYPE_V6);
  59362. }
  59363. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  59364. IPADDR_PORT_TO_SOCKADDR(&saddr, fromaddr, port);
  59365. 801847c: f107 0314 add.w r3, r7, #20
  59366. 8018480: 2210 movs r2, #16
  59367. 8018482: 701a strb r2, [r3, #0]
  59368. 8018484: f107 0314 add.w r3, r7, #20
  59369. 8018488: 2202 movs r2, #2
  59370. 801848a: 705a strb r2, [r3, #1]
  59371. 801848c: f107 0414 add.w r4, r7, #20
  59372. 8018490: 88fb ldrh r3, [r7, #6]
  59373. 8018492: 4618 mov r0, r3
  59374. 8018494: f000 ff38 bl 8019308 <lwip_htons>
  59375. 8018498: 4603 mov r3, r0
  59376. 801849a: 8063 strh r3, [r4, #2]
  59377. 801849c: f107 0314 add.w r3, r7, #20
  59378. 80184a0: 68ba ldr r2, [r7, #8]
  59379. 80184a2: 6812 ldr r2, [r2, #0]
  59380. 80184a4: 605a str r2, [r3, #4]
  59381. 80184a6: f107 0314 add.w r3, r7, #20
  59382. 80184aa: 3308 adds r3, #8
  59383. 80184ac: 2208 movs r2, #8
  59384. 80184ae: 2100 movs r1, #0
  59385. 80184b0: 4618 mov r0, r3
  59386. 80184b2: f012 f815 bl 802a4e0 <memset>
  59387. if (*fromlen < saddr.sa.sa_len) {
  59388. 80184b6: 6bbb ldr r3, [r7, #56] @ 0x38
  59389. 80184b8: 681b ldr r3, [r3, #0]
  59390. 80184ba: 7d3a ldrb r2, [r7, #20]
  59391. 80184bc: 4293 cmp r3, r2
  59392. 80184be: d202 bcs.n 80184c6 <lwip_sock_make_addr+0x9a>
  59393. truncated = 1;
  59394. 80184c0: 2301 movs r3, #1
  59395. 80184c2: 627b str r3, [r7, #36] @ 0x24
  59396. 80184c4: e008 b.n 80184d8 <lwip_sock_make_addr+0xac>
  59397. } else if (*fromlen > saddr.sa.sa_len) {
  59398. 80184c6: 6bbb ldr r3, [r7, #56] @ 0x38
  59399. 80184c8: 681b ldr r3, [r3, #0]
  59400. 80184ca: 7d3a ldrb r2, [r7, #20]
  59401. 80184cc: 4293 cmp r3, r2
  59402. 80184ce: d903 bls.n 80184d8 <lwip_sock_make_addr+0xac>
  59403. *fromlen = saddr.sa.sa_len;
  59404. 80184d0: 7d3b ldrb r3, [r7, #20]
  59405. 80184d2: 461a mov r2, r3
  59406. 80184d4: 6bbb ldr r3, [r7, #56] @ 0x38
  59407. 80184d6: 601a str r2, [r3, #0]
  59408. }
  59409. MEMCPY(from, &saddr, *fromlen);
  59410. 80184d8: 6bbb ldr r3, [r7, #56] @ 0x38
  59411. 80184da: 681a ldr r2, [r3, #0]
  59412. 80184dc: f107 0314 add.w r3, r7, #20
  59413. 80184e0: 4619 mov r1, r3
  59414. 80184e2: 6838 ldr r0, [r7, #0]
  59415. 80184e4: f012 f8f3 bl 802a6ce <memcpy>
  59416. return truncated;
  59417. 80184e8: 6a7b ldr r3, [r7, #36] @ 0x24
  59418. }
  59419. 80184ea: 4618 mov r0, r3
  59420. 80184ec: 372c adds r7, #44 @ 0x2c
  59421. 80184ee: 46bd mov sp, r7
  59422. 80184f0: bd90 pop {r4, r7, pc}
  59423. 80184f2: bf00 nop
  59424. 80184f4: 0802de60 .word 0x0802de60
  59425. 80184f8: 0802dfd0 .word 0x0802dfd0
  59426. 80184fc: 0802deb4 .word 0x0802deb4
  59427. 8018500: 0802dfe4 .word 0x0802dfe4
  59428. 8018504: 0802dff4 .word 0x0802dff4
  59429. 08018508 <lwip_recv_tcp_from>:
  59430. #if LWIP_TCP
  59431. /* Helper function to get a tcp socket's remote address info */
  59432. static int
  59433. 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)
  59434. {
  59435. 8018508: b580 push {r7, lr}
  59436. 801850a: b088 sub sp, #32
  59437. 801850c: af02 add r7, sp, #8
  59438. 801850e: 60f8 str r0, [r7, #12]
  59439. 8018510: 60b9 str r1, [r7, #8]
  59440. 8018512: 607a str r2, [r7, #4]
  59441. 8018514: 603b str r3, [r7, #0]
  59442. if (sock == NULL) {
  59443. 8018516: 68fb ldr r3, [r7, #12]
  59444. 8018518: 2b00 cmp r3, #0
  59445. 801851a: d101 bne.n 8018520 <lwip_recv_tcp_from+0x18>
  59446. return 0;
  59447. 801851c: 2300 movs r3, #0
  59448. 801851e: e021 b.n 8018564 <lwip_recv_tcp_from+0x5c>
  59449. LWIP_UNUSED_ARG(dbg_fn);
  59450. LWIP_UNUSED_ARG(dbg_s);
  59451. LWIP_UNUSED_ARG(dbg_ret);
  59452. #if !SOCKETS_DEBUG
  59453. if (from && fromlen)
  59454. 8018520: 68bb ldr r3, [r7, #8]
  59455. 8018522: 2b00 cmp r3, #0
  59456. 8018524: d01d beq.n 8018562 <lwip_recv_tcp_from+0x5a>
  59457. 8018526: 687b ldr r3, [r7, #4]
  59458. 8018528: 2b00 cmp r3, #0
  59459. 801852a: d01a beq.n 8018562 <lwip_recv_tcp_from+0x5a>
  59460. #endif /* !SOCKETS_DEBUG */
  59461. {
  59462. /* get remote addr/port from tcp_pcb */
  59463. u16_t port;
  59464. ip_addr_t tmpaddr;
  59465. netconn_getaddr(sock->conn, &tmpaddr, &port, 0);
  59466. 801852c: 68fb ldr r3, [r7, #12]
  59467. 801852e: 6818 ldr r0, [r3, #0]
  59468. 8018530: f107 0216 add.w r2, r7, #22
  59469. 8018534: f107 0110 add.w r1, r7, #16
  59470. 8018538: 2300 movs r3, #0
  59471. 801853a: f7fd fad7 bl 8015aec <netconn_getaddr>
  59472. LWIP_DEBUGF(SOCKETS_DEBUG, ("%s(%d): addr=", dbg_fn, dbg_s));
  59473. ip_addr_debug_print_val(SOCKETS_DEBUG, tmpaddr);
  59474. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", port, (int)dbg_ret));
  59475. if (from && fromlen) {
  59476. 801853e: 68bb ldr r3, [r7, #8]
  59477. 8018540: 2b00 cmp r3, #0
  59478. 8018542: d00e beq.n 8018562 <lwip_recv_tcp_from+0x5a>
  59479. 8018544: 687b ldr r3, [r7, #4]
  59480. 8018546: 2b00 cmp r3, #0
  59481. 8018548: d00b beq.n 8018562 <lwip_recv_tcp_from+0x5a>
  59482. return lwip_sock_make_addr(sock->conn, &tmpaddr, port, from, fromlen);
  59483. 801854a: 68fb ldr r3, [r7, #12]
  59484. 801854c: 6818 ldr r0, [r3, #0]
  59485. 801854e: 8afa ldrh r2, [r7, #22]
  59486. 8018550: f107 0110 add.w r1, r7, #16
  59487. 8018554: 687b ldr r3, [r7, #4]
  59488. 8018556: 9300 str r3, [sp, #0]
  59489. 8018558: 68bb ldr r3, [r7, #8]
  59490. 801855a: f7ff ff67 bl 801842c <lwip_sock_make_addr>
  59491. 801855e: 4603 mov r3, r0
  59492. 8018560: e000 b.n 8018564 <lwip_recv_tcp_from+0x5c>
  59493. }
  59494. }
  59495. return 0;
  59496. 8018562: 2300 movs r3, #0
  59497. }
  59498. 8018564: 4618 mov r0, r3
  59499. 8018566: 3718 adds r7, #24
  59500. 8018568: 46bd mov sp, r7
  59501. 801856a: bd80 pop {r7, pc}
  59502. 0801856c <lwip_recvfrom_udp_raw>:
  59503. /* Helper function to receive a netbuf from a udp or raw netconn.
  59504. * Keeps sock->lastdata for peeking.
  59505. */
  59506. static err_t
  59507. lwip_recvfrom_udp_raw(struct lwip_sock *sock, int flags, struct msghdr *msg, u16_t *datagram_len, int dbg_s)
  59508. {
  59509. 801856c: b590 push {r4, r7, lr}
  59510. 801856e: b08d sub sp, #52 @ 0x34
  59511. 8018570: af02 add r7, sp, #8
  59512. 8018572: 60f8 str r0, [r7, #12]
  59513. 8018574: 60b9 str r1, [r7, #8]
  59514. 8018576: 607a str r2, [r7, #4]
  59515. 8018578: 603b str r3, [r7, #0]
  59516. err_t err;
  59517. u16_t buflen, copylen, copied;
  59518. int i;
  59519. LWIP_UNUSED_ARG(dbg_s);
  59520. LWIP_ERROR("lwip_recvfrom_udp_raw: invalid arguments", (msg->msg_iov != NULL) || (msg->msg_iovlen <= 0), return ERR_ARG;);
  59521. 801857a: 687b ldr r3, [r7, #4]
  59522. 801857c: 689b ldr r3, [r3, #8]
  59523. 801857e: 2b00 cmp r3, #0
  59524. 8018580: d10d bne.n 801859e <lwip_recvfrom_udp_raw+0x32>
  59525. 8018582: 687b ldr r3, [r7, #4]
  59526. 8018584: 68db ldr r3, [r3, #12]
  59527. 8018586: 2b00 cmp r3, #0
  59528. 8018588: dd09 ble.n 801859e <lwip_recvfrom_udp_raw+0x32>
  59529. 801858a: 4b5e ldr r3, [pc, #376] @ (8018704 <lwip_recvfrom_udp_raw+0x198>)
  59530. 801858c: f240 4249 movw r2, #1097 @ 0x449
  59531. 8018590: 495d ldr r1, [pc, #372] @ (8018708 <lwip_recvfrom_udp_raw+0x19c>)
  59532. 8018592: 485e ldr r0, [pc, #376] @ (801870c <lwip_recvfrom_udp_raw+0x1a0>)
  59533. 8018594: f011 fe12 bl 802a1bc <iprintf>
  59534. 8018598: f06f 030f mvn.w r3, #15
  59535. 801859c: e0ae b.n 80186fc <lwip_recvfrom_udp_raw+0x190>
  59536. if (flags & MSG_DONTWAIT) {
  59537. 801859e: 68bb ldr r3, [r7, #8]
  59538. 80185a0: f003 0308 and.w r3, r3, #8
  59539. 80185a4: 2b00 cmp r3, #0
  59540. 80185a6: d003 beq.n 80185b0 <lwip_recvfrom_udp_raw+0x44>
  59541. apiflags = NETCONN_DONTBLOCK;
  59542. 80185a8: 2304 movs r3, #4
  59543. 80185aa: f887 3026 strb.w r3, [r7, #38] @ 0x26
  59544. 80185ae: e002 b.n 80185b6 <lwip_recvfrom_udp_raw+0x4a>
  59545. } else {
  59546. apiflags = 0;
  59547. 80185b0: 2300 movs r3, #0
  59548. 80185b2: f887 3026 strb.w r3, [r7, #38] @ 0x26
  59549. }
  59550. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: top sock->lastdata=%p\n", (void *)sock->lastdata.netbuf));
  59551. /* Check if there is data left from the last recv operation. */
  59552. buf = sock->lastdata.netbuf;
  59553. 80185b6: 68fb ldr r3, [r7, #12]
  59554. 80185b8: 685b ldr r3, [r3, #4]
  59555. 80185ba: 613b str r3, [r7, #16]
  59556. if (buf == NULL) {
  59557. 80185bc: 693b ldr r3, [r7, #16]
  59558. 80185be: 2b00 cmp r3, #0
  59559. 80185c0: d11f bne.n 8018602 <lwip_recvfrom_udp_raw+0x96>
  59560. /* No data was left from the previous operation, so we try to get
  59561. some from the network. */
  59562. err = netconn_recv_udp_raw_netbuf_flags(sock->conn, &buf, apiflags);
  59563. 80185c2: 68fb ldr r3, [r7, #12]
  59564. 80185c4: 681b ldr r3, [r3, #0]
  59565. 80185c6: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  59566. 80185ca: f107 0110 add.w r1, r7, #16
  59567. 80185ce: 4618 mov r0, r3
  59568. 80185d0: f7fd fd34 bl 801603c <netconn_recv_udp_raw_netbuf_flags>
  59569. 80185d4: 4603 mov r3, r0
  59570. 80185d6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  59571. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: netconn_recv err=%d, netbuf=%p\n",
  59572. err, (void *)buf));
  59573. if (err != ERR_OK) {
  59574. 80185da: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  59575. 80185de: 2b00 cmp r3, #0
  59576. 80185e0: d002 beq.n 80185e8 <lwip_recvfrom_udp_raw+0x7c>
  59577. return err;
  59578. 80185e2: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  59579. 80185e6: e089 b.n 80186fc <lwip_recvfrom_udp_raw+0x190>
  59580. }
  59581. LWIP_ASSERT("buf != NULL", buf != NULL);
  59582. 80185e8: 693b ldr r3, [r7, #16]
  59583. 80185ea: 2b00 cmp r3, #0
  59584. 80185ec: d106 bne.n 80185fc <lwip_recvfrom_udp_raw+0x90>
  59585. 80185ee: 4b45 ldr r3, [pc, #276] @ (8018704 <lwip_recvfrom_udp_raw+0x198>)
  59586. 80185f0: f240 425e movw r2, #1118 @ 0x45e
  59587. 80185f4: 4946 ldr r1, [pc, #280] @ (8018710 <lwip_recvfrom_udp_raw+0x1a4>)
  59588. 80185f6: 4845 ldr r0, [pc, #276] @ (801870c <lwip_recvfrom_udp_raw+0x1a0>)
  59589. 80185f8: f011 fde0 bl 802a1bc <iprintf>
  59590. sock->lastdata.netbuf = buf;
  59591. 80185fc: 693a ldr r2, [r7, #16]
  59592. 80185fe: 68fb ldr r3, [r7, #12]
  59593. 8018600: 605a str r2, [r3, #4]
  59594. }
  59595. buflen = buf->p->tot_len;
  59596. 8018602: 693b ldr r3, [r7, #16]
  59597. 8018604: 681b ldr r3, [r3, #0]
  59598. 8018606: 891b ldrh r3, [r3, #8]
  59599. 8018608: 837b strh r3, [r7, #26]
  59600. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw: buflen=%"U16_F"\n", buflen));
  59601. copied = 0;
  59602. 801860a: 2300 movs r3, #0
  59603. 801860c: 847b strh r3, [r7, #34] @ 0x22
  59604. /* copy the pbuf payload into the iovs */
  59605. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  59606. 801860e: 2300 movs r3, #0
  59607. 8018610: 61fb str r3, [r7, #28]
  59608. 8018612: e029 b.n 8018668 <lwip_recvfrom_udp_raw+0xfc>
  59609. u16_t len_left = (u16_t)(buflen - copied);
  59610. 8018614: 8b7a ldrh r2, [r7, #26]
  59611. 8018616: 8c7b ldrh r3, [r7, #34] @ 0x22
  59612. 8018618: 1ad3 subs r3, r2, r3
  59613. 801861a: 833b strh r3, [r7, #24]
  59614. if (msg->msg_iov[i].iov_len > len_left) {
  59615. 801861c: 687b ldr r3, [r7, #4]
  59616. 801861e: 689a ldr r2, [r3, #8]
  59617. 8018620: 69fb ldr r3, [r7, #28]
  59618. 8018622: 00db lsls r3, r3, #3
  59619. 8018624: 4413 add r3, r2
  59620. 8018626: 685a ldr r2, [r3, #4]
  59621. 8018628: 8b3b ldrh r3, [r7, #24]
  59622. 801862a: 429a cmp r2, r3
  59623. 801862c: d902 bls.n 8018634 <lwip_recvfrom_udp_raw+0xc8>
  59624. copylen = len_left;
  59625. 801862e: 8b3b ldrh r3, [r7, #24]
  59626. 8018630: 84bb strh r3, [r7, #36] @ 0x24
  59627. 8018632: e006 b.n 8018642 <lwip_recvfrom_udp_raw+0xd6>
  59628. } else {
  59629. copylen = (u16_t)msg->msg_iov[i].iov_len;
  59630. 8018634: 687b ldr r3, [r7, #4]
  59631. 8018636: 689a ldr r2, [r3, #8]
  59632. 8018638: 69fb ldr r3, [r7, #28]
  59633. 801863a: 00db lsls r3, r3, #3
  59634. 801863c: 4413 add r3, r2
  59635. 801863e: 685b ldr r3, [r3, #4]
  59636. 8018640: 84bb strh r3, [r7, #36] @ 0x24
  59637. }
  59638. /* copy the contents of the received buffer into
  59639. the supplied memory buffer */
  59640. pbuf_copy_partial(buf->p, (u8_t *)msg->msg_iov[i].iov_base, copylen, copied);
  59641. 8018642: 693b ldr r3, [r7, #16]
  59642. 8018644: 6818 ldr r0, [r3, #0]
  59643. 8018646: 687b ldr r3, [r7, #4]
  59644. 8018648: 689a ldr r2, [r3, #8]
  59645. 801864a: 69fb ldr r3, [r7, #28]
  59646. 801864c: 00db lsls r3, r3, #3
  59647. 801864e: 4413 add r3, r2
  59648. 8018650: 6819 ldr r1, [r3, #0]
  59649. 8018652: 8c7b ldrh r3, [r7, #34] @ 0x22
  59650. 8018654: 8cba ldrh r2, [r7, #36] @ 0x24
  59651. 8018656: f002 fd3f bl 801b0d8 <pbuf_copy_partial>
  59652. copied = (u16_t)(copied + copylen);
  59653. 801865a: 8c7a ldrh r2, [r7, #34] @ 0x22
  59654. 801865c: 8cbb ldrh r3, [r7, #36] @ 0x24
  59655. 801865e: 4413 add r3, r2
  59656. 8018660: 847b strh r3, [r7, #34] @ 0x22
  59657. for (i = 0; (i < msg->msg_iovlen) && (copied < buflen); i++) {
  59658. 8018662: 69fb ldr r3, [r7, #28]
  59659. 8018664: 3301 adds r3, #1
  59660. 8018666: 61fb str r3, [r7, #28]
  59661. 8018668: 687b ldr r3, [r7, #4]
  59662. 801866a: 68db ldr r3, [r3, #12]
  59663. 801866c: 69fa ldr r2, [r7, #28]
  59664. 801866e: 429a cmp r2, r3
  59665. 8018670: da03 bge.n 801867a <lwip_recvfrom_udp_raw+0x10e>
  59666. 8018672: 8c7a ldrh r2, [r7, #34] @ 0x22
  59667. 8018674: 8b7b ldrh r3, [r7, #26]
  59668. 8018676: 429a cmp r2, r3
  59669. 8018678: d3cc bcc.n 8018614 <lwip_recvfrom_udp_raw+0xa8>
  59670. }
  59671. /* Check to see from where the data was.*/
  59672. #if !SOCKETS_DEBUG
  59673. if (msg->msg_name && msg->msg_namelen)
  59674. 801867a: 687b ldr r3, [r7, #4]
  59675. 801867c: 681b ldr r3, [r3, #0]
  59676. 801867e: 2b00 cmp r3, #0
  59677. 8018680: d01a beq.n 80186b8 <lwip_recvfrom_udp_raw+0x14c>
  59678. 8018682: 687b ldr r3, [r7, #4]
  59679. 8018684: 685b ldr r3, [r3, #4]
  59680. 8018686: 2b00 cmp r3, #0
  59681. 8018688: d016 beq.n 80186b8 <lwip_recvfrom_udp_raw+0x14c>
  59682. #endif /* !SOCKETS_DEBUG */
  59683. {
  59684. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom_udp_raw(%d): addr=", dbg_s));
  59685. ip_addr_debug_print_val(SOCKETS_DEBUG, *netbuf_fromaddr(buf));
  59686. LWIP_DEBUGF(SOCKETS_DEBUG, (" port=%"U16_F" len=%d\n", netbuf_fromport(buf), copied));
  59687. if (msg->msg_name && msg->msg_namelen) {
  59688. 801868a: 687b ldr r3, [r7, #4]
  59689. 801868c: 681b ldr r3, [r3, #0]
  59690. 801868e: 2b00 cmp r3, #0
  59691. 8018690: d012 beq.n 80186b8 <lwip_recvfrom_udp_raw+0x14c>
  59692. 8018692: 687b ldr r3, [r7, #4]
  59693. 8018694: 685b ldr r3, [r3, #4]
  59694. 8018696: 2b00 cmp r3, #0
  59695. 8018698: d00e beq.n 80186b8 <lwip_recvfrom_udp_raw+0x14c>
  59696. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  59697. 801869a: 68fb ldr r3, [r7, #12]
  59698. 801869c: 6818 ldr r0, [r3, #0]
  59699. 801869e: 693b ldr r3, [r7, #16]
  59700. 80186a0: f103 0108 add.w r1, r3, #8
  59701. 80186a4: 693b ldr r3, [r7, #16]
  59702. 80186a6: 899a ldrh r2, [r3, #12]
  59703. (struct sockaddr *)msg->msg_name, &msg->msg_namelen);
  59704. 80186a8: 687b ldr r3, [r7, #4]
  59705. 80186aa: 681c ldr r4, [r3, #0]
  59706. lwip_sock_make_addr(sock->conn, netbuf_fromaddr(buf), netbuf_fromport(buf),
  59707. 80186ac: 687b ldr r3, [r7, #4]
  59708. 80186ae: 3304 adds r3, #4
  59709. 80186b0: 9300 str r3, [sp, #0]
  59710. 80186b2: 4623 mov r3, r4
  59711. 80186b4: f7ff feba bl 801842c <lwip_sock_make_addr>
  59712. }
  59713. }
  59714. /* Initialize flag output */
  59715. msg->msg_flags = 0;
  59716. 80186b8: 687b ldr r3, [r7, #4]
  59717. 80186ba: 2200 movs r2, #0
  59718. 80186bc: 619a str r2, [r3, #24]
  59719. if (msg->msg_control) {
  59720. 80186be: 687b ldr r3, [r7, #4]
  59721. 80186c0: 691b ldr r3, [r3, #16]
  59722. 80186c2: 2b00 cmp r3, #0
  59723. 80186c4: d007 beq.n 80186d6 <lwip_recvfrom_udp_raw+0x16a>
  59724. u8_t wrote_msg = 0;
  59725. 80186c6: 2300 movs r3, #0
  59726. 80186c8: 75fb strb r3, [r7, #23]
  59727. #endif /* LWIP_IPV4 */
  59728. }
  59729. }
  59730. #endif /* LWIP_NETBUF_RECVINFO */
  59731. if (!wrote_msg) {
  59732. 80186ca: 7dfb ldrb r3, [r7, #23]
  59733. 80186cc: 2b00 cmp r3, #0
  59734. 80186ce: d102 bne.n 80186d6 <lwip_recvfrom_udp_raw+0x16a>
  59735. msg->msg_controllen = 0;
  59736. 80186d0: 687b ldr r3, [r7, #4]
  59737. 80186d2: 2200 movs r2, #0
  59738. 80186d4: 615a str r2, [r3, #20]
  59739. }
  59740. }
  59741. /* If we don't peek the incoming message: zero lastdata pointer and free the netbuf */
  59742. if ((flags & MSG_PEEK) == 0) {
  59743. 80186d6: 68bb ldr r3, [r7, #8]
  59744. 80186d8: f003 0301 and.w r3, r3, #1
  59745. 80186dc: 2b00 cmp r3, #0
  59746. 80186de: d106 bne.n 80186ee <lwip_recvfrom_udp_raw+0x182>
  59747. sock->lastdata.netbuf = NULL;
  59748. 80186e0: 68fb ldr r3, [r7, #12]
  59749. 80186e2: 2200 movs r2, #0
  59750. 80186e4: 605a str r2, [r3, #4]
  59751. netbuf_delete(buf);
  59752. 80186e6: 693b ldr r3, [r7, #16]
  59753. 80186e8: 4618 mov r0, r3
  59754. 80186ea: f7ff fb05 bl 8017cf8 <netbuf_delete>
  59755. }
  59756. if (datagram_len) {
  59757. 80186ee: 683b ldr r3, [r7, #0]
  59758. 80186f0: 2b00 cmp r3, #0
  59759. 80186f2: d002 beq.n 80186fa <lwip_recvfrom_udp_raw+0x18e>
  59760. *datagram_len = buflen;
  59761. 80186f4: 683b ldr r3, [r7, #0]
  59762. 80186f6: 8b7a ldrh r2, [r7, #26]
  59763. 80186f8: 801a strh r2, [r3, #0]
  59764. }
  59765. return ERR_OK;
  59766. 80186fa: 2300 movs r3, #0
  59767. }
  59768. 80186fc: 4618 mov r0, r3
  59769. 80186fe: 372c adds r7, #44 @ 0x2c
  59770. 8018700: 46bd mov sp, r7
  59771. 8018702: bd90 pop {r4, r7, pc}
  59772. 8018704: 0802de60 .word 0x0802de60
  59773. 8018708: 0802e004 .word 0x0802e004
  59774. 801870c: 0802deb4 .word 0x0802deb4
  59775. 8018710: 0802e030 .word 0x0802e030
  59776. 08018714 <lwip_recvfrom>:
  59777. ssize_t
  59778. lwip_recvfrom(int s, void *mem, size_t len, int flags,
  59779. struct sockaddr *from, socklen_t *fromlen)
  59780. {
  59781. 8018714: b580 push {r7, lr}
  59782. 8018716: b096 sub sp, #88 @ 0x58
  59783. 8018718: af02 add r7, sp, #8
  59784. 801871a: 60f8 str r0, [r7, #12]
  59785. 801871c: 60b9 str r1, [r7, #8]
  59786. 801871e: 607a str r2, [r7, #4]
  59787. 8018720: 603b str r3, [r7, #0]
  59788. struct lwip_sock *sock;
  59789. ssize_t ret;
  59790. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d, %p, %"SZT_F", 0x%x, ..)\n", s, mem, len, flags));
  59791. sock = get_socket(s);
  59792. 8018722: 68f8 ldr r0, [r7, #12]
  59793. 8018724: f7ff fbb8 bl 8017e98 <get_socket>
  59794. 8018728: 64f8 str r0, [r7, #76] @ 0x4c
  59795. if (!sock) {
  59796. 801872a: 6cfb ldr r3, [r7, #76] @ 0x4c
  59797. 801872c: 2b00 cmp r3, #0
  59798. 801872e: d102 bne.n 8018736 <lwip_recvfrom+0x22>
  59799. return -1;
  59800. 8018730: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59801. 8018734: e078 b.n 8018828 <lwip_recvfrom+0x114>
  59802. }
  59803. #if LWIP_TCP
  59804. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  59805. 8018736: 6cfb ldr r3, [r7, #76] @ 0x4c
  59806. 8018738: 681b ldr r3, [r3, #0]
  59807. 801873a: 781b ldrb r3, [r3, #0]
  59808. 801873c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  59809. 8018740: 2b10 cmp r3, #16
  59810. 8018742: d112 bne.n 801876a <lwip_recvfrom+0x56>
  59811. ret = lwip_recv_tcp(sock, mem, len, flags);
  59812. 8018744: 683b ldr r3, [r7, #0]
  59813. 8018746: 687a ldr r2, [r7, #4]
  59814. 8018748: 68b9 ldr r1, [r7, #8]
  59815. 801874a: 6cf8 ldr r0, [r7, #76] @ 0x4c
  59816. 801874c: f7ff fd5e bl 801820c <lwip_recv_tcp>
  59817. 8018750: 6478 str r0, [r7, #68] @ 0x44
  59818. lwip_recv_tcp_from(sock, from, fromlen, "lwip_recvfrom", s, ret);
  59819. 8018752: 6c7b ldr r3, [r7, #68] @ 0x44
  59820. 8018754: 9301 str r3, [sp, #4]
  59821. 8018756: 68fb ldr r3, [r7, #12]
  59822. 8018758: 9300 str r3, [sp, #0]
  59823. 801875a: 4b35 ldr r3, [pc, #212] @ (8018830 <lwip_recvfrom+0x11c>)
  59824. 801875c: 6dfa ldr r2, [r7, #92] @ 0x5c
  59825. 801875e: 6db9 ldr r1, [r7, #88] @ 0x58
  59826. 8018760: 6cf8 ldr r0, [r7, #76] @ 0x4c
  59827. 8018762: f7ff fed1 bl 8018508 <lwip_recv_tcp_from>
  59828. done_socket(sock);
  59829. return ret;
  59830. 8018766: 6c7b ldr r3, [r7, #68] @ 0x44
  59831. 8018768: e05e b.n 8018828 <lwip_recvfrom+0x114>
  59832. } else
  59833. #endif
  59834. {
  59835. u16_t datagram_len = 0;
  59836. 801876a: 2300 movs r3, #0
  59837. 801876c: 877b strh r3, [r7, #58] @ 0x3a
  59838. struct iovec vec;
  59839. struct msghdr msg;
  59840. err_t err;
  59841. vec.iov_base = mem;
  59842. 801876e: 68bb ldr r3, [r7, #8]
  59843. 8018770: 633b str r3, [r7, #48] @ 0x30
  59844. vec.iov_len = len;
  59845. 8018772: 687b ldr r3, [r7, #4]
  59846. 8018774: 637b str r3, [r7, #52] @ 0x34
  59847. msg.msg_control = NULL;
  59848. 8018776: 2300 movs r3, #0
  59849. 8018778: 627b str r3, [r7, #36] @ 0x24
  59850. msg.msg_controllen = 0;
  59851. 801877a: 2300 movs r3, #0
  59852. 801877c: 62bb str r3, [r7, #40] @ 0x28
  59853. msg.msg_flags = 0;
  59854. 801877e: 2300 movs r3, #0
  59855. 8018780: 62fb str r3, [r7, #44] @ 0x2c
  59856. msg.msg_iov = &vec;
  59857. 8018782: f107 0330 add.w r3, r7, #48 @ 0x30
  59858. 8018786: 61fb str r3, [r7, #28]
  59859. msg.msg_iovlen = 1;
  59860. 8018788: 2301 movs r3, #1
  59861. 801878a: 623b str r3, [r7, #32]
  59862. msg.msg_name = from;
  59863. 801878c: 6dbb ldr r3, [r7, #88] @ 0x58
  59864. 801878e: 617b str r3, [r7, #20]
  59865. msg.msg_namelen = (fromlen ? *fromlen : 0);
  59866. 8018790: 6dfb ldr r3, [r7, #92] @ 0x5c
  59867. 8018792: 2b00 cmp r3, #0
  59868. 8018794: d002 beq.n 801879c <lwip_recvfrom+0x88>
  59869. 8018796: 6dfb ldr r3, [r7, #92] @ 0x5c
  59870. 8018798: 681b ldr r3, [r3, #0]
  59871. 801879a: e000 b.n 801879e <lwip_recvfrom+0x8a>
  59872. 801879c: 2300 movs r3, #0
  59873. 801879e: 61bb str r3, [r7, #24]
  59874. err = lwip_recvfrom_udp_raw(sock, flags, &msg, &datagram_len, s);
  59875. 80187a0: f107 013a add.w r1, r7, #58 @ 0x3a
  59876. 80187a4: f107 0214 add.w r2, r7, #20
  59877. 80187a8: 68fb ldr r3, [r7, #12]
  59878. 80187aa: 9300 str r3, [sp, #0]
  59879. 80187ac: 460b mov r3, r1
  59880. 80187ae: 6839 ldr r1, [r7, #0]
  59881. 80187b0: 6cf8 ldr r0, [r7, #76] @ 0x4c
  59882. 80187b2: f7ff fedb bl 801856c <lwip_recvfrom_udp_raw>
  59883. 80187b6: 4603 mov r3, r0
  59884. 80187b8: f887 304b strb.w r3, [r7, #75] @ 0x4b
  59885. if (err != ERR_OK) {
  59886. 80187bc: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  59887. 80187c0: 2b00 cmp r3, #0
  59888. 80187c2: d00e beq.n 80187e2 <lwip_recvfrom+0xce>
  59889. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom[UDP/RAW](%d): buf == NULL, error is \"%s\"!\n",
  59890. s, lwip_strerr(err)));
  59891. sock_set_errno(sock, err_to_errno(err));
  59892. 80187c4: f997 304b ldrsb.w r3, [r7, #75] @ 0x4b
  59893. 80187c8: 4618 mov r0, r3
  59894. 80187ca: f7ff fa77 bl 8017cbc <err_to_errno>
  59895. 80187ce: 63f8 str r0, [r7, #60] @ 0x3c
  59896. 80187d0: 6bfb ldr r3, [r7, #60] @ 0x3c
  59897. 80187d2: 2b00 cmp r3, #0
  59898. 80187d4: d002 beq.n 80187dc <lwip_recvfrom+0xc8>
  59899. 80187d6: 4a17 ldr r2, [pc, #92] @ (8018834 <lwip_recvfrom+0x120>)
  59900. 80187d8: 6bfb ldr r3, [r7, #60] @ 0x3c
  59901. 80187da: 6013 str r3, [r2, #0]
  59902. done_socket(sock);
  59903. return -1;
  59904. 80187dc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  59905. 80187e0: e022 b.n 8018828 <lwip_recvfrom+0x114>
  59906. }
  59907. ret = (ssize_t)LWIP_MIN(LWIP_MIN(len, datagram_len), SSIZE_MAX);
  59908. 80187e2: 8f7b ldrh r3, [r7, #58] @ 0x3a
  59909. 80187e4: 461a mov r2, r3
  59910. 80187e6: 687b ldr r3, [r7, #4]
  59911. 80187e8: 4293 cmp r3, r2
  59912. 80187ea: bf28 it cs
  59913. 80187ec: 4613 movcs r3, r2
  59914. 80187ee: f06f 4200 mvn.w r2, #2147483648 @ 0x80000000
  59915. 80187f2: 4293 cmp r3, r2
  59916. 80187f4: d206 bcs.n 8018804 <lwip_recvfrom+0xf0>
  59917. 80187f6: 8f7b ldrh r3, [r7, #58] @ 0x3a
  59918. 80187f8: 461a mov r2, r3
  59919. 80187fa: 687b ldr r3, [r7, #4]
  59920. 80187fc: 4293 cmp r3, r2
  59921. 80187fe: bf28 it cs
  59922. 8018800: 4613 movcs r3, r2
  59923. 8018802: e001 b.n 8018808 <lwip_recvfrom+0xf4>
  59924. 8018804: f06f 4300 mvn.w r3, #2147483648 @ 0x80000000
  59925. 8018808: 647b str r3, [r7, #68] @ 0x44
  59926. if (fromlen) {
  59927. 801880a: 6dfb ldr r3, [r7, #92] @ 0x5c
  59928. 801880c: 2b00 cmp r3, #0
  59929. 801880e: d002 beq.n 8018816 <lwip_recvfrom+0x102>
  59930. *fromlen = msg.msg_namelen;
  59931. 8018810: 69ba ldr r2, [r7, #24]
  59932. 8018812: 6dfb ldr r3, [r7, #92] @ 0x5c
  59933. 8018814: 601a str r2, [r3, #0]
  59934. }
  59935. }
  59936. sock_set_errno(sock, 0);
  59937. 8018816: 2300 movs r3, #0
  59938. 8018818: 643b str r3, [r7, #64] @ 0x40
  59939. 801881a: 6c3b ldr r3, [r7, #64] @ 0x40
  59940. 801881c: 2b00 cmp r3, #0
  59941. 801881e: d002 beq.n 8018826 <lwip_recvfrom+0x112>
  59942. 8018820: 4a04 ldr r2, [pc, #16] @ (8018834 <lwip_recvfrom+0x120>)
  59943. 8018822: 6c3b ldr r3, [r7, #64] @ 0x40
  59944. 8018824: 6013 str r3, [r2, #0]
  59945. done_socket(sock);
  59946. return ret;
  59947. 8018826: 6c7b ldr r3, [r7, #68] @ 0x44
  59948. }
  59949. 8018828: 4618 mov r0, r3
  59950. 801882a: 3750 adds r7, #80 @ 0x50
  59951. 801882c: 46bd mov sp, r7
  59952. 801882e: bd80 pop {r7, pc}
  59953. 8018830: 0802e03c .word 0x0802e03c
  59954. 8018834: 2402b250 .word 0x2402b250
  59955. 08018838 <lwip_recv>:
  59956. return lwip_recvmsg(s, &msg, 0);
  59957. }
  59958. ssize_t
  59959. lwip_recv(int s, void *mem, size_t len, int flags)
  59960. {
  59961. 8018838: b580 push {r7, lr}
  59962. 801883a: b086 sub sp, #24
  59963. 801883c: af02 add r7, sp, #8
  59964. 801883e: 60f8 str r0, [r7, #12]
  59965. 8018840: 60b9 str r1, [r7, #8]
  59966. 8018842: 607a str r2, [r7, #4]
  59967. 8018844: 603b str r3, [r7, #0]
  59968. return lwip_recvfrom(s, mem, len, flags, NULL, NULL);
  59969. 8018846: 2300 movs r3, #0
  59970. 8018848: 9301 str r3, [sp, #4]
  59971. 801884a: 2300 movs r3, #0
  59972. 801884c: 9300 str r3, [sp, #0]
  59973. 801884e: 683b ldr r3, [r7, #0]
  59974. 8018850: 687a ldr r2, [r7, #4]
  59975. 8018852: 68b9 ldr r1, [r7, #8]
  59976. 8018854: 68f8 ldr r0, [r7, #12]
  59977. 8018856: f7ff ff5d bl 8018714 <lwip_recvfrom>
  59978. 801885a: 4603 mov r3, r0
  59979. }
  59980. 801885c: 4618 mov r0, r3
  59981. 801885e: 3710 adds r7, #16
  59982. 8018860: 46bd mov sp, r7
  59983. 8018862: bd80 pop {r7, pc}
  59984. 08018864 <lwip_send>:
  59985. #endif /* LWIP_UDP || LWIP_RAW */
  59986. }
  59987. ssize_t
  59988. lwip_send(int s, const void *data, size_t size, int flags)
  59989. {
  59990. 8018864: b580 push {r7, lr}
  59991. 8018866: b08a sub sp, #40 @ 0x28
  59992. 8018868: af02 add r7, sp, #8
  59993. 801886a: 60f8 str r0, [r7, #12]
  59994. 801886c: 60b9 str r1, [r7, #8]
  59995. 801886e: 607a str r2, [r7, #4]
  59996. 8018870: 603b str r3, [r7, #0]
  59997. size_t written;
  59998. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d, data=%p, size=%"SZT_F", flags=0x%x)\n",
  59999. s, data, size, flags));
  60000. sock = get_socket(s);
  60001. 8018872: 68f8 ldr r0, [r7, #12]
  60002. 8018874: f7ff fb10 bl 8017e98 <get_socket>
  60003. 8018878: 61f8 str r0, [r7, #28]
  60004. if (!sock) {
  60005. 801887a: 69fb ldr r3, [r7, #28]
  60006. 801887c: 2b00 cmp r3, #0
  60007. 801887e: d102 bne.n 8018886 <lwip_send+0x22>
  60008. return -1;
  60009. 8018880: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60010. 8018884: e046 b.n 8018914 <lwip_send+0xb0>
  60011. }
  60012. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) != NETCONN_TCP) {
  60013. 8018886: 69fb ldr r3, [r7, #28]
  60014. 8018888: 681b ldr r3, [r3, #0]
  60015. 801888a: 781b ldrb r3, [r3, #0]
  60016. 801888c: f003 03f0 and.w r3, r3, #240 @ 0xf0
  60017. 8018890: 2b10 cmp r3, #16
  60018. 8018892: d00b beq.n 80188ac <lwip_send+0x48>
  60019. #if (LWIP_UDP || LWIP_RAW)
  60020. done_socket(sock);
  60021. return lwip_sendto(s, data, size, flags, NULL, 0);
  60022. 8018894: 2300 movs r3, #0
  60023. 8018896: 9301 str r3, [sp, #4]
  60024. 8018898: 2300 movs r3, #0
  60025. 801889a: 9300 str r3, [sp, #0]
  60026. 801889c: 683b ldr r3, [r7, #0]
  60027. 801889e: 687a ldr r2, [r7, #4]
  60028. 80188a0: 68b9 ldr r1, [r7, #8]
  60029. 80188a2: 68f8 ldr r0, [r7, #12]
  60030. 80188a4: f000 f83c bl 8018920 <lwip_sendto>
  60031. 80188a8: 4603 mov r3, r0
  60032. 80188aa: e033 b.n 8018914 <lwip_send+0xb0>
  60033. return -1;
  60034. #endif /* (LWIP_UDP || LWIP_RAW) */
  60035. }
  60036. write_flags = (u8_t)(NETCONN_COPY |
  60037. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  60038. 80188ac: 683b ldr r3, [r7, #0]
  60039. 80188ae: f003 0310 and.w r3, r3, #16
  60040. write_flags = (u8_t)(NETCONN_COPY |
  60041. 80188b2: 2b00 cmp r3, #0
  60042. 80188b4: d001 beq.n 80188ba <lwip_send+0x56>
  60043. 80188b6: 2203 movs r2, #3
  60044. 80188b8: e000 b.n 80188bc <lwip_send+0x58>
  60045. 80188ba: 2201 movs r2, #1
  60046. ((flags & MSG_MORE) ? NETCONN_MORE : 0) |
  60047. 80188bc: 683b ldr r3, [r7, #0]
  60048. 80188be: 105b asrs r3, r3, #1
  60049. 80188c0: b25b sxtb r3, r3
  60050. 80188c2: f003 0304 and.w r3, r3, #4
  60051. 80188c6: b25b sxtb r3, r3
  60052. 80188c8: 4313 orrs r3, r2
  60053. 80188ca: b25b sxtb r3, r3
  60054. write_flags = (u8_t)(NETCONN_COPY |
  60055. 80188cc: 76fb strb r3, [r7, #27]
  60056. ((flags & MSG_DONTWAIT) ? NETCONN_DONTBLOCK : 0));
  60057. written = 0;
  60058. 80188ce: 2300 movs r3, #0
  60059. 80188d0: 613b str r3, [r7, #16]
  60060. err = netconn_write_partly(sock->conn, data, size, write_flags, &written);
  60061. 80188d2: 69fb ldr r3, [r7, #28]
  60062. 80188d4: 6818 ldr r0, [r3, #0]
  60063. 80188d6: 7efa ldrb r2, [r7, #27]
  60064. 80188d8: f107 0310 add.w r3, r7, #16
  60065. 80188dc: 9300 str r3, [sp, #0]
  60066. 80188de: 4613 mov r3, r2
  60067. 80188e0: 687a ldr r2, [r7, #4]
  60068. 80188e2: 68b9 ldr r1, [r7, #8]
  60069. 80188e4: f7fd fc04 bl 80160f0 <netconn_write_partly>
  60070. 80188e8: 4603 mov r3, r0
  60071. 80188ea: 76bb strb r3, [r7, #26]
  60072. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_send(%d) err=%d written=%"SZT_F"\n", s, err, written));
  60073. sock_set_errno(sock, err_to_errno(err));
  60074. 80188ec: f997 301a ldrsb.w r3, [r7, #26]
  60075. 80188f0: 4618 mov r0, r3
  60076. 80188f2: f7ff f9e3 bl 8017cbc <err_to_errno>
  60077. 80188f6: 6178 str r0, [r7, #20]
  60078. 80188f8: 697b ldr r3, [r7, #20]
  60079. 80188fa: 2b00 cmp r3, #0
  60080. 80188fc: d002 beq.n 8018904 <lwip_send+0xa0>
  60081. 80188fe: 4a07 ldr r2, [pc, #28] @ (801891c <lwip_send+0xb8>)
  60082. 8018900: 697b ldr r3, [r7, #20]
  60083. 8018902: 6013 str r3, [r2, #0]
  60084. done_socket(sock);
  60085. /* casting 'written' to ssize_t is OK here since the netconn API limits it to SSIZE_MAX */
  60086. return (err == ERR_OK ? (ssize_t)written : -1);
  60087. 8018904: f997 301a ldrsb.w r3, [r7, #26]
  60088. 8018908: 2b00 cmp r3, #0
  60089. 801890a: d101 bne.n 8018910 <lwip_send+0xac>
  60090. 801890c: 693b ldr r3, [r7, #16]
  60091. 801890e: e001 b.n 8018914 <lwip_send+0xb0>
  60092. 8018910: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60093. }
  60094. 8018914: 4618 mov r0, r3
  60095. 8018916: 3720 adds r7, #32
  60096. 8018918: 46bd mov sp, r7
  60097. 801891a: bd80 pop {r7, pc}
  60098. 801891c: 2402b250 .word 0x2402b250
  60099. 08018920 <lwip_sendto>:
  60100. }
  60101. ssize_t
  60102. lwip_sendto(int s, const void *data, size_t size, int flags,
  60103. const struct sockaddr *to, socklen_t tolen)
  60104. {
  60105. 8018920: b580 push {r7, lr}
  60106. 8018922: b08e sub sp, #56 @ 0x38
  60107. 8018924: af00 add r7, sp, #0
  60108. 8018926: 60f8 str r0, [r7, #12]
  60109. 8018928: 60b9 str r1, [r7, #8]
  60110. 801892a: 607a str r2, [r7, #4]
  60111. 801892c: 603b str r3, [r7, #0]
  60112. err_t err;
  60113. u16_t short_size;
  60114. u16_t remote_port;
  60115. struct netbuf buf;
  60116. sock = get_socket(s);
  60117. 801892e: 68f8 ldr r0, [r7, #12]
  60118. 8018930: f7ff fab2 bl 8017e98 <get_socket>
  60119. 8018934: 6338 str r0, [r7, #48] @ 0x30
  60120. if (!sock) {
  60121. 8018936: 6b3b ldr r3, [r7, #48] @ 0x30
  60122. 8018938: 2b00 cmp r3, #0
  60123. 801893a: d102 bne.n 8018942 <lwip_sendto+0x22>
  60124. return -1;
  60125. 801893c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60126. 8018940: e093 b.n 8018a6a <lwip_sendto+0x14a>
  60127. }
  60128. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  60129. 8018942: 6b3b ldr r3, [r7, #48] @ 0x30
  60130. 8018944: 681b ldr r3, [r3, #0]
  60131. 8018946: 781b ldrb r3, [r3, #0]
  60132. 8018948: f003 03f0 and.w r3, r3, #240 @ 0xf0
  60133. 801894c: 2b10 cmp r3, #16
  60134. 801894e: d107 bne.n 8018960 <lwip_sendto+0x40>
  60135. #if LWIP_TCP
  60136. done_socket(sock);
  60137. return lwip_send(s, data, size, flags);
  60138. 8018950: 683b ldr r3, [r7, #0]
  60139. 8018952: 687a ldr r2, [r7, #4]
  60140. 8018954: 68b9 ldr r1, [r7, #8]
  60141. 8018956: 68f8 ldr r0, [r7, #12]
  60142. 8018958: f7ff ff84 bl 8018864 <lwip_send>
  60143. 801895c: 4603 mov r3, r0
  60144. 801895e: e084 b.n 8018a6a <lwip_sendto+0x14a>
  60145. done_socket(sock);
  60146. return -1;
  60147. #endif /* LWIP_TCP */
  60148. }
  60149. if (size > LWIP_MIN(0xFFFF, SSIZE_MAX)) {
  60150. 8018960: 687b ldr r3, [r7, #4]
  60151. 8018962: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  60152. 8018966: d30a bcc.n 801897e <lwip_sendto+0x5e>
  60153. /* cannot fit into one datagram (at least for us) */
  60154. sock_set_errno(sock, EMSGSIZE);
  60155. 8018968: 235a movs r3, #90 @ 0x5a
  60156. 801896a: 623b str r3, [r7, #32]
  60157. 801896c: 6a3b ldr r3, [r7, #32]
  60158. 801896e: 2b00 cmp r3, #0
  60159. 8018970: d002 beq.n 8018978 <lwip_sendto+0x58>
  60160. 8018972: 4a40 ldr r2, [pc, #256] @ (8018a74 <lwip_sendto+0x154>)
  60161. 8018974: 6a3b ldr r3, [r7, #32]
  60162. 8018976: 6013 str r3, [r2, #0]
  60163. done_socket(sock);
  60164. return -1;
  60165. 8018978: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60166. 801897c: e075 b.n 8018a6a <lwip_sendto+0x14a>
  60167. }
  60168. short_size = (u16_t)size;
  60169. 801897e: 687b ldr r3, [r7, #4]
  60170. 8018980: 85fb strh r3, [r7, #46] @ 0x2e
  60171. LWIP_ERROR("lwip_sendto: invalid address", (((to == NULL) && (tolen == 0)) ||
  60172. 8018982: 6c3b ldr r3, [r7, #64] @ 0x40
  60173. 8018984: 2b00 cmp r3, #0
  60174. 8018986: d102 bne.n 801898e <lwip_sendto+0x6e>
  60175. 8018988: 6c7b ldr r3, [r7, #68] @ 0x44
  60176. 801898a: 2b00 cmp r3, #0
  60177. 801898c: d023 beq.n 80189d6 <lwip_sendto+0xb6>
  60178. 801898e: 6c7b ldr r3, [r7, #68] @ 0x44
  60179. 8018990: 2b10 cmp r3, #16
  60180. 8018992: d10b bne.n 80189ac <lwip_sendto+0x8c>
  60181. 8018994: 6c3b ldr r3, [r7, #64] @ 0x40
  60182. 8018996: 2b00 cmp r3, #0
  60183. 8018998: d008 beq.n 80189ac <lwip_sendto+0x8c>
  60184. 801899a: 6c3b ldr r3, [r7, #64] @ 0x40
  60185. 801899c: 785b ldrb r3, [r3, #1]
  60186. 801899e: 2b02 cmp r3, #2
  60187. 80189a0: d104 bne.n 80189ac <lwip_sendto+0x8c>
  60188. 80189a2: 6c3b ldr r3, [r7, #64] @ 0x40
  60189. 80189a4: f003 0303 and.w r3, r3, #3
  60190. 80189a8: 2b00 cmp r3, #0
  60191. 80189aa: d014 beq.n 80189d6 <lwip_sendto+0xb6>
  60192. 80189ac: 4b32 ldr r3, [pc, #200] @ (8018a78 <lwip_sendto+0x158>)
  60193. 80189ae: f240 6252 movw r2, #1618 @ 0x652
  60194. 80189b2: 4932 ldr r1, [pc, #200] @ (8018a7c <lwip_sendto+0x15c>)
  60195. 80189b4: 4832 ldr r0, [pc, #200] @ (8018a80 <lwip_sendto+0x160>)
  60196. 80189b6: f011 fc01 bl 802a1bc <iprintf>
  60197. 80189ba: f06f 000f mvn.w r0, #15
  60198. 80189be: f7ff f97d bl 8017cbc <err_to_errno>
  60199. 80189c2: 62b8 str r0, [r7, #40] @ 0x28
  60200. 80189c4: 6abb ldr r3, [r7, #40] @ 0x28
  60201. 80189c6: 2b00 cmp r3, #0
  60202. 80189c8: d002 beq.n 80189d0 <lwip_sendto+0xb0>
  60203. 80189ca: 4a2a ldr r2, [pc, #168] @ (8018a74 <lwip_sendto+0x154>)
  60204. 80189cc: 6abb ldr r3, [r7, #40] @ 0x28
  60205. 80189ce: 6013 str r3, [r2, #0]
  60206. 80189d0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60207. 80189d4: e049 b.n 8018a6a <lwip_sendto+0x14a>
  60208. ((to != NULL) && (IS_SOCK_ADDR_TYPE_VALID(to) && IS_SOCK_ADDR_ALIGNED(to))))),
  60209. sock_set_errno(sock, err_to_errno(ERR_ARG)); done_socket(sock); return -1;);
  60210. LWIP_UNUSED_ARG(tolen);
  60211. /* initialize a buffer */
  60212. buf.p = buf.ptr = NULL;
  60213. 80189d6: 2300 movs r3, #0
  60214. 80189d8: 617b str r3, [r7, #20]
  60215. 80189da: 697b ldr r3, [r7, #20]
  60216. 80189dc: 613b str r3, [r7, #16]
  60217. #if LWIP_CHECKSUM_ON_COPY
  60218. buf.flags = 0;
  60219. #endif /* LWIP_CHECKSUM_ON_COPY */
  60220. if (to) {
  60221. 80189de: 6c3b ldr r3, [r7, #64] @ 0x40
  60222. 80189e0: 2b00 cmp r3, #0
  60223. 80189e2: d00a beq.n 80189fa <lwip_sendto+0xda>
  60224. SOCKADDR_TO_IPADDR_PORT(to, &buf.addr, remote_port);
  60225. 80189e4: 6c3b ldr r3, [r7, #64] @ 0x40
  60226. 80189e6: 685b ldr r3, [r3, #4]
  60227. 80189e8: 61bb str r3, [r7, #24]
  60228. 80189ea: 6c3b ldr r3, [r7, #64] @ 0x40
  60229. 80189ec: 885b ldrh r3, [r3, #2]
  60230. 80189ee: 4618 mov r0, r3
  60231. 80189f0: f000 fc8a bl 8019308 <lwip_htons>
  60232. 80189f4: 4603 mov r3, r0
  60233. 80189f6: 86fb strh r3, [r7, #54] @ 0x36
  60234. 80189f8: e003 b.n 8018a02 <lwip_sendto+0xe2>
  60235. } else {
  60236. remote_port = 0;
  60237. 80189fa: 2300 movs r3, #0
  60238. 80189fc: 86fb strh r3, [r7, #54] @ 0x36
  60239. ip_addr_set_any(NETCONNTYPE_ISIPV6(netconn_type(sock->conn)), &buf.addr);
  60240. 80189fe: 2300 movs r3, #0
  60241. 8018a00: 61bb str r3, [r7, #24]
  60242. }
  60243. netbuf_fromport(&buf) = remote_port;
  60244. 8018a02: 8efb ldrh r3, [r7, #54] @ 0x36
  60245. 8018a04: 83bb strh r3, [r7, #28]
  60246. MEMCPY(buf.p->payload, data, short_size);
  60247. }
  60248. err = ERR_OK;
  60249. }
  60250. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  60251. err = netbuf_ref(&buf, data, short_size);
  60252. 8018a06: 8dfa ldrh r2, [r7, #46] @ 0x2e
  60253. 8018a08: f107 0310 add.w r3, r7, #16
  60254. 8018a0c: 68b9 ldr r1, [r7, #8]
  60255. 8018a0e: 4618 mov r0, r3
  60256. 8018a10: f7ff f9ba bl 8017d88 <netbuf_ref>
  60257. 8018a14: 4603 mov r3, r0
  60258. 8018a16: f887 302d strb.w r3, [r7, #45] @ 0x2d
  60259. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  60260. if (err == ERR_OK) {
  60261. 8018a1a: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  60262. 8018a1e: 2b00 cmp r3, #0
  60263. 8018a20: d10a bne.n 8018a38 <lwip_sendto+0x118>
  60264. IP_SET_TYPE_VAL(buf.addr, IPADDR_TYPE_V4);
  60265. }
  60266. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  60267. /* send the data */
  60268. err = netconn_send(sock->conn, &buf);
  60269. 8018a22: 6b3b ldr r3, [r7, #48] @ 0x30
  60270. 8018a24: 681b ldr r3, [r3, #0]
  60271. 8018a26: f107 0210 add.w r2, r7, #16
  60272. 8018a2a: 4611 mov r1, r2
  60273. 8018a2c: 4618 mov r0, r3
  60274. 8018a2e: f7fd fb31 bl 8016094 <netconn_send>
  60275. 8018a32: 4603 mov r3, r0
  60276. 8018a34: f887 302d strb.w r3, [r7, #45] @ 0x2d
  60277. }
  60278. /* deallocated the buffer */
  60279. netbuf_free(&buf);
  60280. 8018a38: f107 0310 add.w r3, r7, #16
  60281. 8018a3c: 4618 mov r0, r3
  60282. 8018a3e: f7ff f97b bl 8017d38 <netbuf_free>
  60283. sock_set_errno(sock, err_to_errno(err));
  60284. 8018a42: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  60285. 8018a46: 4618 mov r0, r3
  60286. 8018a48: f7ff f938 bl 8017cbc <err_to_errno>
  60287. 8018a4c: 6278 str r0, [r7, #36] @ 0x24
  60288. 8018a4e: 6a7b ldr r3, [r7, #36] @ 0x24
  60289. 8018a50: 2b00 cmp r3, #0
  60290. 8018a52: d002 beq.n 8018a5a <lwip_sendto+0x13a>
  60291. 8018a54: 4a07 ldr r2, [pc, #28] @ (8018a74 <lwip_sendto+0x154>)
  60292. 8018a56: 6a7b ldr r3, [r7, #36] @ 0x24
  60293. 8018a58: 6013 str r3, [r2, #0]
  60294. done_socket(sock);
  60295. return (err == ERR_OK ? short_size : -1);
  60296. 8018a5a: f997 302d ldrsb.w r3, [r7, #45] @ 0x2d
  60297. 8018a5e: 2b00 cmp r3, #0
  60298. 8018a60: d101 bne.n 8018a66 <lwip_sendto+0x146>
  60299. 8018a62: 8dfb ldrh r3, [r7, #46] @ 0x2e
  60300. 8018a64: e001 b.n 8018a6a <lwip_sendto+0x14a>
  60301. 8018a66: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60302. }
  60303. 8018a6a: 4618 mov r0, r3
  60304. 8018a6c: 3738 adds r7, #56 @ 0x38
  60305. 8018a6e: 46bd mov sp, r7
  60306. 8018a70: bd80 pop {r7, pc}
  60307. 8018a72: bf00 nop
  60308. 8018a74: 2402b250 .word 0x2402b250
  60309. 8018a78: 0802de60 .word 0x0802de60
  60310. 8018a7c: 0802e140 .word 0x0802e140
  60311. 8018a80: 0802deb4 .word 0x0802deb4
  60312. 08018a84 <lwip_socket>:
  60313. int
  60314. lwip_socket(int domain, int type, int protocol)
  60315. {
  60316. 8018a84: b580 push {r7, lr}
  60317. 8018a86: b086 sub sp, #24
  60318. 8018a88: af00 add r7, sp, #0
  60319. 8018a8a: 60f8 str r0, [r7, #12]
  60320. 8018a8c: 60b9 str r1, [r7, #8]
  60321. 8018a8e: 607a str r2, [r7, #4]
  60322. int i;
  60323. LWIP_UNUSED_ARG(domain); /* @todo: check this */
  60324. /* create a netconn */
  60325. switch (type) {
  60326. 8018a90: 68bb ldr r3, [r7, #8]
  60327. 8018a92: 2b03 cmp r3, #3
  60328. 8018a94: d009 beq.n 8018aaa <lwip_socket+0x26>
  60329. 8018a96: 68bb ldr r3, [r7, #8]
  60330. 8018a98: 2b03 cmp r3, #3
  60331. 8018a9a: dc23 bgt.n 8018ae4 <lwip_socket+0x60>
  60332. 8018a9c: 68bb ldr r3, [r7, #8]
  60333. 8018a9e: 2b01 cmp r3, #1
  60334. 8018aa0: d019 beq.n 8018ad6 <lwip_socket+0x52>
  60335. 8018aa2: 68bb ldr r3, [r7, #8]
  60336. 8018aa4: 2b02 cmp r3, #2
  60337. 8018aa6: d009 beq.n 8018abc <lwip_socket+0x38>
  60338. 8018aa8: e01c b.n 8018ae4 <lwip_socket+0x60>
  60339. case SOCK_RAW:
  60340. conn = netconn_new_with_proto_and_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_RAW),
  60341. 8018aaa: 687b ldr r3, [r7, #4]
  60342. 8018aac: b2db uxtb r3, r3
  60343. 8018aae: 4a22 ldr r2, [pc, #136] @ (8018b38 <lwip_socket+0xb4>)
  60344. 8018ab0: 4619 mov r1, r3
  60345. 8018ab2: 2040 movs r0, #64 @ 0x40
  60346. 8018ab4: f7fc ff60 bl 8015978 <netconn_new_with_proto_and_callback>
  60347. 8018ab8: 6178 str r0, [r7, #20]
  60348. (u8_t)protocol, DEFAULT_SOCKET_EVENTCB);
  60349. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_RAW, %d) = ",
  60350. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  60351. break;
  60352. 8018aba: e019 b.n 8018af0 <lwip_socket+0x6c>
  60353. case SOCK_DGRAM:
  60354. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain,
  60355. 8018abc: 687b ldr r3, [r7, #4]
  60356. 8018abe: 2b88 cmp r3, #136 @ 0x88
  60357. 8018ac0: d101 bne.n 8018ac6 <lwip_socket+0x42>
  60358. 8018ac2: 2321 movs r3, #33 @ 0x21
  60359. 8018ac4: e000 b.n 8018ac8 <lwip_socket+0x44>
  60360. 8018ac6: 2320 movs r3, #32
  60361. 8018ac8: 4a1b ldr r2, [pc, #108] @ (8018b38 <lwip_socket+0xb4>)
  60362. 8018aca: 2100 movs r1, #0
  60363. 8018acc: 4618 mov r0, r3
  60364. 8018ace: f7fc ff53 bl 8015978 <netconn_new_with_proto_and_callback>
  60365. 8018ad2: 6178 str r0, [r7, #20]
  60366. if (conn) {
  60367. /* netconn layer enables pktinfo by default, sockets default to off */
  60368. conn->flags &= ~NETCONN_FLAG_PKTINFO;
  60369. }
  60370. #endif /* LWIP_NETBUF_RECVINFO */
  60371. break;
  60372. 8018ad4: e00c b.n 8018af0 <lwip_socket+0x6c>
  60373. case SOCK_STREAM:
  60374. conn = netconn_new_with_callback(DOMAIN_TO_NETCONN_TYPE(domain, NETCONN_TCP), DEFAULT_SOCKET_EVENTCB);
  60375. 8018ad6: 4a18 ldr r2, [pc, #96] @ (8018b38 <lwip_socket+0xb4>)
  60376. 8018ad8: 2100 movs r1, #0
  60377. 8018ada: 2010 movs r0, #16
  60378. 8018adc: f7fc ff4c bl 8015978 <netconn_new_with_proto_and_callback>
  60379. 8018ae0: 6178 str r0, [r7, #20]
  60380. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%s, SOCK_STREAM, %d) = ",
  60381. domain == PF_INET ? "PF_INET" : "UNKNOWN", protocol));
  60382. break;
  60383. 8018ae2: e005 b.n 8018af0 <lwip_socket+0x6c>
  60384. default:
  60385. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_socket(%d, %d/UNKNOWN, %d) = -1\n",
  60386. domain, type, protocol));
  60387. set_errno(EINVAL);
  60388. 8018ae4: 4b15 ldr r3, [pc, #84] @ (8018b3c <lwip_socket+0xb8>)
  60389. 8018ae6: 2216 movs r2, #22
  60390. 8018ae8: 601a str r2, [r3, #0]
  60391. return -1;
  60392. 8018aea: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60393. 8018aee: e01e b.n 8018b2e <lwip_socket+0xaa>
  60394. }
  60395. if (!conn) {
  60396. 8018af0: 697b ldr r3, [r7, #20]
  60397. 8018af2: 2b00 cmp r3, #0
  60398. 8018af4: d105 bne.n 8018b02 <lwip_socket+0x7e>
  60399. LWIP_DEBUGF(SOCKETS_DEBUG, ("-1 / ENOBUFS (could not create netconn)\n"));
  60400. set_errno(ENOBUFS);
  60401. 8018af6: 4b11 ldr r3, [pc, #68] @ (8018b3c <lwip_socket+0xb8>)
  60402. 8018af8: 2269 movs r2, #105 @ 0x69
  60403. 8018afa: 601a str r2, [r3, #0]
  60404. return -1;
  60405. 8018afc: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60406. 8018b00: e015 b.n 8018b2e <lwip_socket+0xaa>
  60407. }
  60408. i = alloc_socket(conn, 0);
  60409. 8018b02: 2100 movs r1, #0
  60410. 8018b04: 6978 ldr r0, [r7, #20]
  60411. 8018b06: f7ff f9df bl 8017ec8 <alloc_socket>
  60412. 8018b0a: 6138 str r0, [r7, #16]
  60413. if (i == -1) {
  60414. 8018b0c: 693b ldr r3, [r7, #16]
  60415. 8018b0e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  60416. 8018b12: d108 bne.n 8018b26 <lwip_socket+0xa2>
  60417. netconn_delete(conn);
  60418. 8018b14: 6978 ldr r0, [r7, #20]
  60419. 8018b16: f7fc ffcd bl 8015ab4 <netconn_delete>
  60420. set_errno(ENFILE);
  60421. 8018b1a: 4b08 ldr r3, [pc, #32] @ (8018b3c <lwip_socket+0xb8>)
  60422. 8018b1c: 2217 movs r2, #23
  60423. 8018b1e: 601a str r2, [r3, #0]
  60424. return -1;
  60425. 8018b20: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  60426. 8018b24: e003 b.n 8018b2e <lwip_socket+0xaa>
  60427. }
  60428. conn->socket = i;
  60429. 8018b26: 697b ldr r3, [r7, #20]
  60430. 8018b28: 693a ldr r2, [r7, #16]
  60431. 8018b2a: 619a str r2, [r3, #24]
  60432. done_socket(&sockets[i - LWIP_SOCKET_OFFSET]);
  60433. LWIP_DEBUGF(SOCKETS_DEBUG, ("%d\n", i));
  60434. set_errno(0);
  60435. return i;
  60436. 8018b2c: 693b ldr r3, [r7, #16]
  60437. }
  60438. 8018b2e: 4618 mov r0, r3
  60439. 8018b30: 3718 adds r7, #24
  60440. 8018b32: 46bd mov sp, r7
  60441. 8018b34: bd80 pop {r7, pc}
  60442. 8018b36: bf00 nop
  60443. 8018b38: 08018bc9 .word 0x08018bc9
  60444. 8018b3c: 2402b250 .word 0x2402b250
  60445. 08018b40 <lwip_poll_should_wake>:
  60446. * Check whether event_callback should wake up a thread waiting in
  60447. * lwip_poll.
  60448. */
  60449. static int
  60450. lwip_poll_should_wake(const struct lwip_select_cb *scb, int fd, int has_recvevent, int has_sendevent, int has_errevent)
  60451. {
  60452. 8018b40: b480 push {r7}
  60453. 8018b42: b087 sub sp, #28
  60454. 8018b44: af00 add r7, sp, #0
  60455. 8018b46: 60f8 str r0, [r7, #12]
  60456. 8018b48: 60b9 str r1, [r7, #8]
  60457. 8018b4a: 607a str r2, [r7, #4]
  60458. 8018b4c: 603b str r3, [r7, #0]
  60459. nfds_t fdi;
  60460. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  60461. 8018b4e: 2300 movs r3, #0
  60462. 8018b50: 617b str r3, [r7, #20]
  60463. 8018b52: e02c b.n 8018bae <lwip_poll_should_wake+0x6e>
  60464. const struct pollfd *pollfd = &scb->poll_fds[fdi];
  60465. 8018b54: 68fb ldr r3, [r7, #12]
  60466. 8018b56: 695a ldr r2, [r3, #20]
  60467. 8018b58: 697b ldr r3, [r7, #20]
  60468. 8018b5a: 00db lsls r3, r3, #3
  60469. 8018b5c: 4413 add r3, r2
  60470. 8018b5e: 613b str r3, [r7, #16]
  60471. if (pollfd->fd == fd) {
  60472. 8018b60: 693b ldr r3, [r7, #16]
  60473. 8018b62: 681b ldr r3, [r3, #0]
  60474. 8018b64: 68ba ldr r2, [r7, #8]
  60475. 8018b66: 429a cmp r2, r3
  60476. 8018b68: d11e bne.n 8018ba8 <lwip_poll_should_wake+0x68>
  60477. /* Do not update pollfd->revents right here;
  60478. that would be a data race because lwip_pollscan
  60479. accesses revents without protecting. */
  60480. if (has_recvevent && (pollfd->events & POLLIN) != 0) {
  60481. 8018b6a: 687b ldr r3, [r7, #4]
  60482. 8018b6c: 2b00 cmp r3, #0
  60483. 8018b6e: d009 beq.n 8018b84 <lwip_poll_should_wake+0x44>
  60484. 8018b70: 693b ldr r3, [r7, #16]
  60485. 8018b72: f9b3 3004 ldrsh.w r3, [r3, #4]
  60486. 8018b76: b29b uxth r3, r3
  60487. 8018b78: f003 0301 and.w r3, r3, #1
  60488. 8018b7c: 2b00 cmp r3, #0
  60489. 8018b7e: d001 beq.n 8018b84 <lwip_poll_should_wake+0x44>
  60490. return 1;
  60491. 8018b80: 2301 movs r3, #1
  60492. 8018b82: e01a b.n 8018bba <lwip_poll_should_wake+0x7a>
  60493. }
  60494. if (has_sendevent && (pollfd->events & POLLOUT) != 0) {
  60495. 8018b84: 683b ldr r3, [r7, #0]
  60496. 8018b86: 2b00 cmp r3, #0
  60497. 8018b88: d009 beq.n 8018b9e <lwip_poll_should_wake+0x5e>
  60498. 8018b8a: 693b ldr r3, [r7, #16]
  60499. 8018b8c: f9b3 3004 ldrsh.w r3, [r3, #4]
  60500. 8018b90: b29b uxth r3, r3
  60501. 8018b92: f003 0302 and.w r3, r3, #2
  60502. 8018b96: 2b00 cmp r3, #0
  60503. 8018b98: d001 beq.n 8018b9e <lwip_poll_should_wake+0x5e>
  60504. return 1;
  60505. 8018b9a: 2301 movs r3, #1
  60506. 8018b9c: e00d b.n 8018bba <lwip_poll_should_wake+0x7a>
  60507. }
  60508. if (has_errevent) {
  60509. 8018b9e: 6a3b ldr r3, [r7, #32]
  60510. 8018ba0: 2b00 cmp r3, #0
  60511. 8018ba2: d001 beq.n 8018ba8 <lwip_poll_should_wake+0x68>
  60512. /* POLLERR is output only. */
  60513. return 1;
  60514. 8018ba4: 2301 movs r3, #1
  60515. 8018ba6: e008 b.n 8018bba <lwip_poll_should_wake+0x7a>
  60516. for (fdi = 0; fdi < scb->poll_nfds; fdi++) {
  60517. 8018ba8: 697b ldr r3, [r7, #20]
  60518. 8018baa: 3301 adds r3, #1
  60519. 8018bac: 617b str r3, [r7, #20]
  60520. 8018bae: 68fb ldr r3, [r7, #12]
  60521. 8018bb0: 699b ldr r3, [r3, #24]
  60522. 8018bb2: 697a ldr r2, [r7, #20]
  60523. 8018bb4: 429a cmp r2, r3
  60524. 8018bb6: d3cd bcc.n 8018b54 <lwip_poll_should_wake+0x14>
  60525. }
  60526. }
  60527. }
  60528. return 0;
  60529. 8018bb8: 2300 movs r3, #0
  60530. }
  60531. 8018bba: 4618 mov r0, r3
  60532. 8018bbc: 371c adds r7, #28
  60533. 8018bbe: 46bd mov sp, r7
  60534. 8018bc0: f85d 7b04 ldr.w r7, [sp], #4
  60535. 8018bc4: 4770 bx lr
  60536. ...
  60537. 08018bc8 <event_callback>:
  60538. * NETCONN_EVT_ERROR
  60539. * This requirement will be asserted in select_check_waiters()
  60540. */
  60541. static void
  60542. event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
  60543. {
  60544. 8018bc8: b580 push {r7, lr}
  60545. 8018bca: b08a sub sp, #40 @ 0x28
  60546. 8018bcc: af00 add r7, sp, #0
  60547. 8018bce: 6078 str r0, [r7, #4]
  60548. 8018bd0: 460b mov r3, r1
  60549. 8018bd2: 70fb strb r3, [r7, #3]
  60550. 8018bd4: 4613 mov r3, r2
  60551. 8018bd6: 803b strh r3, [r7, #0]
  60552. SYS_ARCH_DECL_PROTECT(lev);
  60553. LWIP_UNUSED_ARG(len);
  60554. /* Get socket */
  60555. if (conn) {
  60556. 8018bd8: 687b ldr r3, [r7, #4]
  60557. 8018bda: 2b00 cmp r3, #0
  60558. 8018bdc: f000 80a4 beq.w 8018d28 <event_callback+0x160>
  60559. s = conn->socket;
  60560. 8018be0: 687b ldr r3, [r7, #4]
  60561. 8018be2: 699b ldr r3, [r3, #24]
  60562. 8018be4: 627b str r3, [r7, #36] @ 0x24
  60563. if (s < 0) {
  60564. 8018be6: 6a7b ldr r3, [r7, #36] @ 0x24
  60565. 8018be8: 2b00 cmp r3, #0
  60566. 8018bea: da18 bge.n 8018c1e <event_callback+0x56>
  60567. /* Data comes in right away after an accept, even though
  60568. * the server task might not have created a new socket yet.
  60569. * Just count down (or up) if that's the case and we
  60570. * will use the data later. Note that only receive events
  60571. * can happen before the new socket is set up. */
  60572. SYS_ARCH_PROTECT(lev);
  60573. 8018bec: f00e f850 bl 8026c90 <sys_arch_protect>
  60574. 8018bf0: 61f8 str r0, [r7, #28]
  60575. if (conn->socket < 0) {
  60576. 8018bf2: 687b ldr r3, [r7, #4]
  60577. 8018bf4: 699b ldr r3, [r3, #24]
  60578. 8018bf6: 2b00 cmp r3, #0
  60579. 8018bf8: da0b bge.n 8018c12 <event_callback+0x4a>
  60580. if (evt == NETCONN_EVT_RCVPLUS) {
  60581. 8018bfa: 78fb ldrb r3, [r7, #3]
  60582. 8018bfc: 2b00 cmp r3, #0
  60583. 8018bfe: d104 bne.n 8018c0a <event_callback+0x42>
  60584. /* conn->socket is -1 on initialization
  60585. lwip_accept adjusts sock->recvevent if conn->socket < -1 */
  60586. conn->socket--;
  60587. 8018c00: 687b ldr r3, [r7, #4]
  60588. 8018c02: 699b ldr r3, [r3, #24]
  60589. 8018c04: 1e5a subs r2, r3, #1
  60590. 8018c06: 687b ldr r3, [r7, #4]
  60591. 8018c08: 619a str r2, [r3, #24]
  60592. }
  60593. SYS_ARCH_UNPROTECT(lev);
  60594. 8018c0a: 69f8 ldr r0, [r7, #28]
  60595. 8018c0c: f00e f84e bl 8026cac <sys_arch_unprotect>
  60596. return;
  60597. 8018c10: e08d b.n 8018d2e <event_callback+0x166>
  60598. }
  60599. s = conn->socket;
  60600. 8018c12: 687b ldr r3, [r7, #4]
  60601. 8018c14: 699b ldr r3, [r3, #24]
  60602. 8018c16: 627b str r3, [r7, #36] @ 0x24
  60603. SYS_ARCH_UNPROTECT(lev);
  60604. 8018c18: 69f8 ldr r0, [r7, #28]
  60605. 8018c1a: f00e f847 bl 8026cac <sys_arch_unprotect>
  60606. }
  60607. sock = get_socket(s);
  60608. 8018c1e: 6a78 ldr r0, [r7, #36] @ 0x24
  60609. 8018c20: f7ff f93a bl 8017e98 <get_socket>
  60610. 8018c24: 61b8 str r0, [r7, #24]
  60611. if (!sock) {
  60612. 8018c26: 69bb ldr r3, [r7, #24]
  60613. 8018c28: 2b00 cmp r3, #0
  60614. 8018c2a: d07f beq.n 8018d2c <event_callback+0x164>
  60615. }
  60616. } else {
  60617. return;
  60618. }
  60619. check_waiters = 1;
  60620. 8018c2c: 2301 movs r3, #1
  60621. 8018c2e: 623b str r3, [r7, #32]
  60622. SYS_ARCH_PROTECT(lev);
  60623. 8018c30: f00e f82e bl 8026c90 <sys_arch_protect>
  60624. 8018c34: 61f8 str r0, [r7, #28]
  60625. /* Set event as required */
  60626. switch (evt) {
  60627. 8018c36: 78fb ldrb r3, [r7, #3]
  60628. 8018c38: 2b04 cmp r3, #4
  60629. 8018c3a: d83e bhi.n 8018cba <event_callback+0xf2>
  60630. 8018c3c: a201 add r2, pc, #4 @ (adr r2, 8018c44 <event_callback+0x7c>)
  60631. 8018c3e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  60632. 8018c42: bf00 nop
  60633. 8018c44: 08018c59 .word 0x08018c59
  60634. 8018c48: 08018c7b .word 0x08018c7b
  60635. 8018c4c: 08018c93 .word 0x08018c93
  60636. 8018c50: 08018ca7 .word 0x08018ca7
  60637. 8018c54: 08018cb3 .word 0x08018cb3
  60638. case NETCONN_EVT_RCVPLUS:
  60639. sock->rcvevent++;
  60640. 8018c58: 69bb ldr r3, [r7, #24]
  60641. 8018c5a: f9b3 3008 ldrsh.w r3, [r3, #8]
  60642. 8018c5e: b29b uxth r3, r3
  60643. 8018c60: 3301 adds r3, #1
  60644. 8018c62: b29b uxth r3, r3
  60645. 8018c64: b21a sxth r2, r3
  60646. 8018c66: 69bb ldr r3, [r7, #24]
  60647. 8018c68: 811a strh r2, [r3, #8]
  60648. if (sock->rcvevent > 1) {
  60649. 8018c6a: 69bb ldr r3, [r7, #24]
  60650. 8018c6c: f9b3 3008 ldrsh.w r3, [r3, #8]
  60651. 8018c70: 2b01 cmp r3, #1
  60652. 8018c72: dd2a ble.n 8018cca <event_callback+0x102>
  60653. check_waiters = 0;
  60654. 8018c74: 2300 movs r3, #0
  60655. 8018c76: 623b str r3, [r7, #32]
  60656. }
  60657. break;
  60658. 8018c78: e027 b.n 8018cca <event_callback+0x102>
  60659. case NETCONN_EVT_RCVMINUS:
  60660. sock->rcvevent--;
  60661. 8018c7a: 69bb ldr r3, [r7, #24]
  60662. 8018c7c: f9b3 3008 ldrsh.w r3, [r3, #8]
  60663. 8018c80: b29b uxth r3, r3
  60664. 8018c82: 3b01 subs r3, #1
  60665. 8018c84: b29b uxth r3, r3
  60666. 8018c86: b21a sxth r2, r3
  60667. 8018c88: 69bb ldr r3, [r7, #24]
  60668. 8018c8a: 811a strh r2, [r3, #8]
  60669. check_waiters = 0;
  60670. 8018c8c: 2300 movs r3, #0
  60671. 8018c8e: 623b str r3, [r7, #32]
  60672. break;
  60673. 8018c90: e01c b.n 8018ccc <event_callback+0x104>
  60674. case NETCONN_EVT_SENDPLUS:
  60675. if (sock->sendevent) {
  60676. 8018c92: 69bb ldr r3, [r7, #24]
  60677. 8018c94: 895b ldrh r3, [r3, #10]
  60678. 8018c96: 2b00 cmp r3, #0
  60679. 8018c98: d001 beq.n 8018c9e <event_callback+0xd6>
  60680. check_waiters = 0;
  60681. 8018c9a: 2300 movs r3, #0
  60682. 8018c9c: 623b str r3, [r7, #32]
  60683. }
  60684. sock->sendevent = 1;
  60685. 8018c9e: 69bb ldr r3, [r7, #24]
  60686. 8018ca0: 2201 movs r2, #1
  60687. 8018ca2: 815a strh r2, [r3, #10]
  60688. break;
  60689. 8018ca4: e012 b.n 8018ccc <event_callback+0x104>
  60690. case NETCONN_EVT_SENDMINUS:
  60691. sock->sendevent = 0;
  60692. 8018ca6: 69bb ldr r3, [r7, #24]
  60693. 8018ca8: 2200 movs r2, #0
  60694. 8018caa: 815a strh r2, [r3, #10]
  60695. check_waiters = 0;
  60696. 8018cac: 2300 movs r3, #0
  60697. 8018cae: 623b str r3, [r7, #32]
  60698. break;
  60699. 8018cb0: e00c b.n 8018ccc <event_callback+0x104>
  60700. case NETCONN_EVT_ERROR:
  60701. sock->errevent = 1;
  60702. 8018cb2: 69bb ldr r3, [r7, #24]
  60703. 8018cb4: 2201 movs r2, #1
  60704. 8018cb6: 819a strh r2, [r3, #12]
  60705. break;
  60706. 8018cb8: e008 b.n 8018ccc <event_callback+0x104>
  60707. default:
  60708. LWIP_ASSERT("unknown event", 0);
  60709. 8018cba: 4b1e ldr r3, [pc, #120] @ (8018d34 <event_callback+0x16c>)
  60710. 8018cbc: f44f 621f mov.w r2, #2544 @ 0x9f0
  60711. 8018cc0: 491d ldr r1, [pc, #116] @ (8018d38 <event_callback+0x170>)
  60712. 8018cc2: 481e ldr r0, [pc, #120] @ (8018d3c <event_callback+0x174>)
  60713. 8018cc4: f011 fa7a bl 802a1bc <iprintf>
  60714. break;
  60715. 8018cc8: e000 b.n 8018ccc <event_callback+0x104>
  60716. break;
  60717. 8018cca: bf00 nop
  60718. }
  60719. if (sock->select_waiting && check_waiters) {
  60720. 8018ccc: 69bb ldr r3, [r7, #24]
  60721. 8018cce: 7b9b ldrb r3, [r3, #14]
  60722. 8018cd0: 2b00 cmp r3, #0
  60723. 8018cd2: d025 beq.n 8018d20 <event_callback+0x158>
  60724. 8018cd4: 6a3b ldr r3, [r7, #32]
  60725. 8018cd6: 2b00 cmp r3, #0
  60726. 8018cd8: d022 beq.n 8018d20 <event_callback+0x158>
  60727. /* Save which events are active */
  60728. int has_recvevent, has_sendevent, has_errevent;
  60729. has_recvevent = sock->rcvevent > 0;
  60730. 8018cda: 69bb ldr r3, [r7, #24]
  60731. 8018cdc: f9b3 3008 ldrsh.w r3, [r3, #8]
  60732. 8018ce0: 2b00 cmp r3, #0
  60733. 8018ce2: bfcc ite gt
  60734. 8018ce4: 2301 movgt r3, #1
  60735. 8018ce6: 2300 movle r3, #0
  60736. 8018ce8: b2db uxtb r3, r3
  60737. 8018cea: 617b str r3, [r7, #20]
  60738. has_sendevent = sock->sendevent != 0;
  60739. 8018cec: 69bb ldr r3, [r7, #24]
  60740. 8018cee: 895b ldrh r3, [r3, #10]
  60741. 8018cf0: 2b00 cmp r3, #0
  60742. 8018cf2: bf14 ite ne
  60743. 8018cf4: 2301 movne r3, #1
  60744. 8018cf6: 2300 moveq r3, #0
  60745. 8018cf8: b2db uxtb r3, r3
  60746. 8018cfa: 613b str r3, [r7, #16]
  60747. has_errevent = sock->errevent != 0;
  60748. 8018cfc: 69bb ldr r3, [r7, #24]
  60749. 8018cfe: 899b ldrh r3, [r3, #12]
  60750. 8018d00: 2b00 cmp r3, #0
  60751. 8018d02: bf14 ite ne
  60752. 8018d04: 2301 movne r3, #1
  60753. 8018d06: 2300 moveq r3, #0
  60754. 8018d08: b2db uxtb r3, r3
  60755. 8018d0a: 60fb str r3, [r7, #12]
  60756. SYS_ARCH_UNPROTECT(lev);
  60757. 8018d0c: 69f8 ldr r0, [r7, #28]
  60758. 8018d0e: f00d ffcd bl 8026cac <sys_arch_unprotect>
  60759. /* Check any select calls waiting on this socket */
  60760. select_check_waiters(s, has_recvevent, has_sendevent, has_errevent);
  60761. 8018d12: 68fb ldr r3, [r7, #12]
  60762. 8018d14: 693a ldr r2, [r7, #16]
  60763. 8018d16: 6979 ldr r1, [r7, #20]
  60764. 8018d18: 6a78 ldr r0, [r7, #36] @ 0x24
  60765. 8018d1a: f000 f811 bl 8018d40 <select_check_waiters>
  60766. if (sock->select_waiting && check_waiters) {
  60767. 8018d1e: e006 b.n 8018d2e <event_callback+0x166>
  60768. } else {
  60769. SYS_ARCH_UNPROTECT(lev);
  60770. 8018d20: 69f8 ldr r0, [r7, #28]
  60771. 8018d22: f00d ffc3 bl 8026cac <sys_arch_unprotect>
  60772. 8018d26: e002 b.n 8018d2e <event_callback+0x166>
  60773. return;
  60774. 8018d28: bf00 nop
  60775. 8018d2a: e000 b.n 8018d2e <event_callback+0x166>
  60776. return;
  60777. 8018d2c: bf00 nop
  60778. }
  60779. done_socket(sock);
  60780. }
  60781. 8018d2e: 3728 adds r7, #40 @ 0x28
  60782. 8018d30: 46bd mov sp, r7
  60783. 8018d32: bd80 pop {r7, pc}
  60784. 8018d34: 0802de60 .word 0x0802de60
  60785. 8018d38: 0802e1dc .word 0x0802e1dc
  60786. 8018d3c: 0802deb4 .word 0x0802deb4
  60787. 08018d40 <select_check_waiters>:
  60788. * of the loop, thus creating a possibility where a thread could modify the
  60789. * select_cb_list during our UNPROTECT/PROTECT. We use a generational counter to
  60790. * detect this change and restart the list walk. The list is expected to be small
  60791. */
  60792. static void select_check_waiters(int s, int has_recvevent, int has_sendevent, int has_errevent)
  60793. {
  60794. 8018d40: b580 push {r7, lr}
  60795. 8018d42: b088 sub sp, #32
  60796. 8018d44: af02 add r7, sp, #8
  60797. 8018d46: 60f8 str r0, [r7, #12]
  60798. 8018d48: 60b9 str r1, [r7, #8]
  60799. 8018d4a: 607a str r2, [r7, #4]
  60800. 8018d4c: 603b str r3, [r7, #0]
  60801. #if !LWIP_TCPIP_CORE_LOCKING
  60802. int last_select_cb_ctr;
  60803. SYS_ARCH_DECL_PROTECT(lev);
  60804. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  60805. LWIP_ASSERT_CORE_LOCKED();
  60806. 8018d4e: f7f7 fe95 bl 8010a7c <sys_check_core_locking>
  60807. SYS_ARCH_PROTECT(lev);
  60808. again:
  60809. /* remember the state of select_cb_list to detect changes */
  60810. last_select_cb_ctr = select_cb_ctr;
  60811. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  60812. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  60813. 8018d52: 4b42 ldr r3, [pc, #264] @ (8018e5c <select_check_waiters+0x11c>)
  60814. 8018d54: 681b ldr r3, [r3, #0]
  60815. 8018d56: 617b str r3, [r7, #20]
  60816. 8018d58: e078 b.n 8018e4c <select_check_waiters+0x10c>
  60817. if (scb->sem_signalled == 0) {
  60818. 8018d5a: 697b ldr r3, [r7, #20]
  60819. 8018d5c: 69db ldr r3, [r3, #28]
  60820. 8018d5e: 2b00 cmp r3, #0
  60821. 8018d60: d171 bne.n 8018e46 <select_check_waiters+0x106>
  60822. /* semaphore not signalled yet */
  60823. int do_signal = 0;
  60824. 8018d62: 2300 movs r3, #0
  60825. 8018d64: 613b str r3, [r7, #16]
  60826. #if LWIP_SOCKET_POLL
  60827. if (scb->poll_fds != NULL) {
  60828. 8018d66: 697b ldr r3, [r7, #20]
  60829. 8018d68: 695b ldr r3, [r3, #20]
  60830. 8018d6a: 2b00 cmp r3, #0
  60831. 8018d6c: d009 beq.n 8018d82 <select_check_waiters+0x42>
  60832. do_signal = lwip_poll_should_wake(scb, s, has_recvevent, has_sendevent, has_errevent);
  60833. 8018d6e: 683b ldr r3, [r7, #0]
  60834. 8018d70: 9300 str r3, [sp, #0]
  60835. 8018d72: 687b ldr r3, [r7, #4]
  60836. 8018d74: 68ba ldr r2, [r7, #8]
  60837. 8018d76: 68f9 ldr r1, [r7, #12]
  60838. 8018d78: 6978 ldr r0, [r7, #20]
  60839. 8018d7a: f7ff fee1 bl 8018b40 <lwip_poll_should_wake>
  60840. 8018d7e: 6138 str r0, [r7, #16]
  60841. 8018d80: e056 b.n 8018e30 <select_check_waiters+0xf0>
  60842. else
  60843. #endif /* LWIP_SOCKET_SELECT && LWIP_SOCKET_POLL */
  60844. #if LWIP_SOCKET_SELECT
  60845. {
  60846. /* Test this select call for our socket */
  60847. if (has_recvevent) {
  60848. 8018d82: 68bb ldr r3, [r7, #8]
  60849. 8018d84: 2b00 cmp r3, #0
  60850. 8018d86: d017 beq.n 8018db8 <select_check_waiters+0x78>
  60851. if (scb->readset && FD_ISSET(s, scb->readset)) {
  60852. 8018d88: 697b ldr r3, [r7, #20]
  60853. 8018d8a: 689b ldr r3, [r3, #8]
  60854. 8018d8c: 2b00 cmp r3, #0
  60855. 8018d8e: d013 beq.n 8018db8 <select_check_waiters+0x78>
  60856. 8018d90: 697b ldr r3, [r7, #20]
  60857. 8018d92: 689a ldr r2, [r3, #8]
  60858. 8018d94: 68fb ldr r3, [r7, #12]
  60859. 8018d96: 2b00 cmp r3, #0
  60860. 8018d98: da00 bge.n 8018d9c <select_check_waiters+0x5c>
  60861. 8018d9a: 331f adds r3, #31
  60862. 8018d9c: 115b asrs r3, r3, #5
  60863. 8018d9e: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  60864. 8018da2: 68fb ldr r3, [r7, #12]
  60865. 8018da4: f003 031f and.w r3, r3, #31
  60866. 8018da8: fa22 f303 lsr.w r3, r2, r3
  60867. 8018dac: f003 0301 and.w r3, r3, #1
  60868. 8018db0: 2b00 cmp r3, #0
  60869. 8018db2: d001 beq.n 8018db8 <select_check_waiters+0x78>
  60870. do_signal = 1;
  60871. 8018db4: 2301 movs r3, #1
  60872. 8018db6: 613b str r3, [r7, #16]
  60873. }
  60874. }
  60875. if (has_sendevent) {
  60876. 8018db8: 687b ldr r3, [r7, #4]
  60877. 8018dba: 2b00 cmp r3, #0
  60878. 8018dbc: d01a beq.n 8018df4 <select_check_waiters+0xb4>
  60879. if (!do_signal && scb->writeset && FD_ISSET(s, scb->writeset)) {
  60880. 8018dbe: 693b ldr r3, [r7, #16]
  60881. 8018dc0: 2b00 cmp r3, #0
  60882. 8018dc2: d117 bne.n 8018df4 <select_check_waiters+0xb4>
  60883. 8018dc4: 697b ldr r3, [r7, #20]
  60884. 8018dc6: 68db ldr r3, [r3, #12]
  60885. 8018dc8: 2b00 cmp r3, #0
  60886. 8018dca: d013 beq.n 8018df4 <select_check_waiters+0xb4>
  60887. 8018dcc: 697b ldr r3, [r7, #20]
  60888. 8018dce: 68da ldr r2, [r3, #12]
  60889. 8018dd0: 68fb ldr r3, [r7, #12]
  60890. 8018dd2: 2b00 cmp r3, #0
  60891. 8018dd4: da00 bge.n 8018dd8 <select_check_waiters+0x98>
  60892. 8018dd6: 331f adds r3, #31
  60893. 8018dd8: 115b asrs r3, r3, #5
  60894. 8018dda: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  60895. 8018dde: 68fb ldr r3, [r7, #12]
  60896. 8018de0: f003 031f and.w r3, r3, #31
  60897. 8018de4: fa22 f303 lsr.w r3, r2, r3
  60898. 8018de8: f003 0301 and.w r3, r3, #1
  60899. 8018dec: 2b00 cmp r3, #0
  60900. 8018dee: d001 beq.n 8018df4 <select_check_waiters+0xb4>
  60901. do_signal = 1;
  60902. 8018df0: 2301 movs r3, #1
  60903. 8018df2: 613b str r3, [r7, #16]
  60904. }
  60905. }
  60906. if (has_errevent) {
  60907. 8018df4: 683b ldr r3, [r7, #0]
  60908. 8018df6: 2b00 cmp r3, #0
  60909. 8018df8: d01a beq.n 8018e30 <select_check_waiters+0xf0>
  60910. if (!do_signal && scb->exceptset && FD_ISSET(s, scb->exceptset)) {
  60911. 8018dfa: 693b ldr r3, [r7, #16]
  60912. 8018dfc: 2b00 cmp r3, #0
  60913. 8018dfe: d117 bne.n 8018e30 <select_check_waiters+0xf0>
  60914. 8018e00: 697b ldr r3, [r7, #20]
  60915. 8018e02: 691b ldr r3, [r3, #16]
  60916. 8018e04: 2b00 cmp r3, #0
  60917. 8018e06: d013 beq.n 8018e30 <select_check_waiters+0xf0>
  60918. 8018e08: 697b ldr r3, [r7, #20]
  60919. 8018e0a: 691a ldr r2, [r3, #16]
  60920. 8018e0c: 68fb ldr r3, [r7, #12]
  60921. 8018e0e: 2b00 cmp r3, #0
  60922. 8018e10: da00 bge.n 8018e14 <select_check_waiters+0xd4>
  60923. 8018e12: 331f adds r3, #31
  60924. 8018e14: 115b asrs r3, r3, #5
  60925. 8018e16: f852 2023 ldr.w r2, [r2, r3, lsl #2]
  60926. 8018e1a: 68fb ldr r3, [r7, #12]
  60927. 8018e1c: f003 031f and.w r3, r3, #31
  60928. 8018e20: fa22 f303 lsr.w r3, r2, r3
  60929. 8018e24: f003 0301 and.w r3, r3, #1
  60930. 8018e28: 2b00 cmp r3, #0
  60931. 8018e2a: d001 beq.n 8018e30 <select_check_waiters+0xf0>
  60932. do_signal = 1;
  60933. 8018e2c: 2301 movs r3, #1
  60934. 8018e2e: 613b str r3, [r7, #16]
  60935. }
  60936. }
  60937. }
  60938. #endif /* LWIP_SOCKET_SELECT */
  60939. if (do_signal) {
  60940. 8018e30: 693b ldr r3, [r7, #16]
  60941. 8018e32: 2b00 cmp r3, #0
  60942. 8018e34: d007 beq.n 8018e46 <select_check_waiters+0x106>
  60943. scb->sem_signalled = 1;
  60944. 8018e36: 697b ldr r3, [r7, #20]
  60945. 8018e38: 2201 movs r2, #1
  60946. 8018e3a: 61da str r2, [r3, #28]
  60947. /* For !LWIP_TCPIP_CORE_LOCKING, we don't call SYS_ARCH_UNPROTECT() before signaling
  60948. the semaphore, as this might lead to the select thread taking itself off the list,
  60949. invalidating the semaphore. */
  60950. sys_sem_signal(SELECT_SEM_PTR(scb->sem));
  60951. 8018e3c: 697b ldr r3, [r7, #20]
  60952. 8018e3e: 3320 adds r3, #32
  60953. 8018e40: 4618 mov r0, r3
  60954. 8018e42: f00d fe8f bl 8026b64 <sys_sem_signal>
  60955. for (scb = select_cb_list; scb != NULL; scb = scb->next) {
  60956. 8018e46: 697b ldr r3, [r7, #20]
  60957. 8018e48: 681b ldr r3, [r3, #0]
  60958. 8018e4a: 617b str r3, [r7, #20]
  60959. 8018e4c: 697b ldr r3, [r7, #20]
  60960. 8018e4e: 2b00 cmp r3, #0
  60961. 8018e50: d183 bne.n 8018d5a <select_check_waiters+0x1a>
  60962. /* remember the state of select_cb_list to detect changes */
  60963. last_select_cb_ctr = select_cb_ctr;
  60964. }
  60965. SYS_ARCH_UNPROTECT(lev);
  60966. #endif
  60967. }
  60968. 8018e52: bf00 nop
  60969. 8018e54: bf00 nop
  60970. 8018e56: 3718 adds r7, #24
  60971. 8018e58: 46bd mov sp, r7
  60972. 8018e5a: bd80 pop {r7, pc}
  60973. 8018e5c: 240243f4 .word 0x240243f4
  60974. 08018e60 <lwip_ioctl>:
  60975. return err;
  60976. }
  60977. int
  60978. lwip_ioctl(int s, long cmd, void *argp)
  60979. {
  60980. 8018e60: b580 push {r7, lr}
  60981. 8018e62: b08c sub sp, #48 @ 0x30
  60982. 8018e64: af00 add r7, sp, #0
  60983. 8018e66: 60f8 str r0, [r7, #12]
  60984. 8018e68: 60b9 str r1, [r7, #8]
  60985. 8018e6a: 607a str r2, [r7, #4]
  60986. struct lwip_sock *sock = get_socket(s);
  60987. 8018e6c: 68f8 ldr r0, [r7, #12]
  60988. 8018e6e: f7ff f813 bl 8017e98 <get_socket>
  60989. 8018e72: 6278 str r0, [r7, #36] @ 0x24
  60990. u8_t val;
  60991. #if LWIP_SO_RCVBUF
  60992. int recv_avail;
  60993. #endif /* LWIP_SO_RCVBUF */
  60994. if (!sock) {
  60995. 8018e74: 6a7b ldr r3, [r7, #36] @ 0x24
  60996. 8018e76: 2b00 cmp r3, #0
  60997. 8018e78: d102 bne.n 8018e80 <lwip_ioctl+0x20>
  60998. return -1;
  60999. 8018e7a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61000. 8018e7e: e089 b.n 8018f94 <lwip_ioctl+0x134>
  61001. }
  61002. switch (cmd) {
  61003. 8018e80: 68bb ldr r3, [r7, #8]
  61004. 8018e82: 4a46 ldr r2, [pc, #280] @ (8018f9c <lwip_ioctl+0x13c>)
  61005. 8018e84: 4293 cmp r3, r2
  61006. 8018e86: d048 beq.n 8018f1a <lwip_ioctl+0xba>
  61007. 8018e88: 68bb ldr r3, [r7, #8]
  61008. 8018e8a: 4a45 ldr r2, [pc, #276] @ (8018fa0 <lwip_ioctl+0x140>)
  61009. 8018e8c: 4293 cmp r3, r2
  61010. 8018e8e: d176 bne.n 8018f7e <lwip_ioctl+0x11e>
  61011. #if LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE
  61012. case FIONREAD:
  61013. if (!argp) {
  61014. 8018e90: 687b ldr r3, [r7, #4]
  61015. 8018e92: 2b00 cmp r3, #0
  61016. 8018e94: d10a bne.n 8018eac <lwip_ioctl+0x4c>
  61017. sock_set_errno(sock, EINVAL);
  61018. 8018e96: 2316 movs r3, #22
  61019. 8018e98: 61bb str r3, [r7, #24]
  61020. 8018e9a: 69bb ldr r3, [r7, #24]
  61021. 8018e9c: 2b00 cmp r3, #0
  61022. 8018e9e: d002 beq.n 8018ea6 <lwip_ioctl+0x46>
  61023. 8018ea0: 4a40 ldr r2, [pc, #256] @ (8018fa4 <lwip_ioctl+0x144>)
  61024. 8018ea2: 69bb ldr r3, [r7, #24]
  61025. 8018ea4: 6013 str r3, [r2, #0]
  61026. done_socket(sock);
  61027. return -1;
  61028. 8018ea6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61029. 8018eaa: e073 b.n 8018f94 <lwip_ioctl+0x134>
  61030. }
  61031. #endif /* LWIP_FIONREAD_LINUXMODE */
  61032. #if LWIP_SO_RCVBUF
  61033. /* we come here if either LWIP_FIONREAD_LINUXMODE==0 or this is a TCP socket */
  61034. SYS_ARCH_GET(sock->conn->recv_avail, recv_avail);
  61035. 8018eac: f00d fef0 bl 8026c90 <sys_arch_protect>
  61036. 8018eb0: 6238 str r0, [r7, #32]
  61037. 8018eb2: 6a7b ldr r3, [r7, #36] @ 0x24
  61038. 8018eb4: 681b ldr r3, [r3, #0]
  61039. 8018eb6: 6a5b ldr r3, [r3, #36] @ 0x24
  61040. 8018eb8: 62fb str r3, [r7, #44] @ 0x2c
  61041. 8018eba: 6a38 ldr r0, [r7, #32]
  61042. 8018ebc: f00d fef6 bl 8026cac <sys_arch_unprotect>
  61043. if (recv_avail < 0) {
  61044. 8018ec0: 6afb ldr r3, [r7, #44] @ 0x2c
  61045. 8018ec2: 2b00 cmp r3, #0
  61046. 8018ec4: da01 bge.n 8018eca <lwip_ioctl+0x6a>
  61047. recv_avail = 0;
  61048. 8018ec6: 2300 movs r3, #0
  61049. 8018ec8: 62fb str r3, [r7, #44] @ 0x2c
  61050. }
  61051. /* Check if there is data left from the last recv operation. /maq 041215 */
  61052. if (sock->lastdata.netbuf) {
  61053. 8018eca: 6a7b ldr r3, [r7, #36] @ 0x24
  61054. 8018ecc: 685b ldr r3, [r3, #4]
  61055. 8018ece: 2b00 cmp r3, #0
  61056. 8018ed0: d016 beq.n 8018f00 <lwip_ioctl+0xa0>
  61057. if (NETCONNTYPE_GROUP(netconn_type(sock->conn)) == NETCONN_TCP) {
  61058. 8018ed2: 6a7b ldr r3, [r7, #36] @ 0x24
  61059. 8018ed4: 681b ldr r3, [r3, #0]
  61060. 8018ed6: 781b ldrb r3, [r3, #0]
  61061. 8018ed8: f003 03f0 and.w r3, r3, #240 @ 0xf0
  61062. 8018edc: 2b10 cmp r3, #16
  61063. 8018ede: d107 bne.n 8018ef0 <lwip_ioctl+0x90>
  61064. recv_avail += sock->lastdata.pbuf->tot_len;
  61065. 8018ee0: 6a7b ldr r3, [r7, #36] @ 0x24
  61066. 8018ee2: 685b ldr r3, [r3, #4]
  61067. 8018ee4: 891b ldrh r3, [r3, #8]
  61068. 8018ee6: 461a mov r2, r3
  61069. 8018ee8: 6afb ldr r3, [r7, #44] @ 0x2c
  61070. 8018eea: 4413 add r3, r2
  61071. 8018eec: 62fb str r3, [r7, #44] @ 0x2c
  61072. 8018eee: e007 b.n 8018f00 <lwip_ioctl+0xa0>
  61073. } else {
  61074. recv_avail += sock->lastdata.netbuf->p->tot_len;
  61075. 8018ef0: 6a7b ldr r3, [r7, #36] @ 0x24
  61076. 8018ef2: 685b ldr r3, [r3, #4]
  61077. 8018ef4: 681b ldr r3, [r3, #0]
  61078. 8018ef6: 891b ldrh r3, [r3, #8]
  61079. 8018ef8: 461a mov r2, r3
  61080. 8018efa: 6afb ldr r3, [r7, #44] @ 0x2c
  61081. 8018efc: 4413 add r3, r2
  61082. 8018efe: 62fb str r3, [r7, #44] @ 0x2c
  61083. }
  61084. }
  61085. *((int *)argp) = recv_avail;
  61086. 8018f00: 687b ldr r3, [r7, #4]
  61087. 8018f02: 6afa ldr r2, [r7, #44] @ 0x2c
  61088. 8018f04: 601a str r2, [r3, #0]
  61089. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONREAD, %p) = %"U16_F"\n", s, argp, *((u16_t *)argp)));
  61090. sock_set_errno(sock, 0);
  61091. 8018f06: 2300 movs r3, #0
  61092. 8018f08: 61fb str r3, [r7, #28]
  61093. 8018f0a: 69fb ldr r3, [r7, #28]
  61094. 8018f0c: 2b00 cmp r3, #0
  61095. 8018f0e: d002 beq.n 8018f16 <lwip_ioctl+0xb6>
  61096. 8018f10: 4a24 ldr r2, [pc, #144] @ (8018fa4 <lwip_ioctl+0x144>)
  61097. 8018f12: 69fb ldr r3, [r7, #28]
  61098. 8018f14: 6013 str r3, [r2, #0]
  61099. done_socket(sock);
  61100. return 0;
  61101. 8018f16: 2300 movs r3, #0
  61102. 8018f18: e03c b.n 8018f94 <lwip_ioctl+0x134>
  61103. break;
  61104. #endif /* LWIP_SO_RCVBUF */
  61105. #endif /* LWIP_SO_RCVBUF || LWIP_FIONREAD_LINUXMODE */
  61106. case (long)FIONBIO:
  61107. val = 0;
  61108. 8018f1a: 2300 movs r3, #0
  61109. 8018f1c: f887 302b strb.w r3, [r7, #43] @ 0x2b
  61110. if (argp && *(int *)argp) {
  61111. 8018f20: 687b ldr r3, [r7, #4]
  61112. 8018f22: 2b00 cmp r3, #0
  61113. 8018f24: d006 beq.n 8018f34 <lwip_ioctl+0xd4>
  61114. 8018f26: 687b ldr r3, [r7, #4]
  61115. 8018f28: 681b ldr r3, [r3, #0]
  61116. 8018f2a: 2b00 cmp r3, #0
  61117. 8018f2c: d002 beq.n 8018f34 <lwip_ioctl+0xd4>
  61118. val = 1;
  61119. 8018f2e: 2301 movs r3, #1
  61120. 8018f30: f887 302b strb.w r3, [r7, #43] @ 0x2b
  61121. }
  61122. netconn_set_nonblocking(sock->conn, val);
  61123. 8018f34: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  61124. 8018f38: 2b00 cmp r3, #0
  61125. 8018f3a: d00b beq.n 8018f54 <lwip_ioctl+0xf4>
  61126. 8018f3c: 6a7b ldr r3, [r7, #36] @ 0x24
  61127. 8018f3e: 681b ldr r3, [r3, #0]
  61128. 8018f40: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  61129. 8018f44: 6a7b ldr r3, [r7, #36] @ 0x24
  61130. 8018f46: 681b ldr r3, [r3, #0]
  61131. 8018f48: f042 0202 orr.w r2, r2, #2
  61132. 8018f4c: b2d2 uxtb r2, r2
  61133. 8018f4e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  61134. 8018f52: e00a b.n 8018f6a <lwip_ioctl+0x10a>
  61135. 8018f54: 6a7b ldr r3, [r7, #36] @ 0x24
  61136. 8018f56: 681b ldr r3, [r3, #0]
  61137. 8018f58: f893 2028 ldrb.w r2, [r3, #40] @ 0x28
  61138. 8018f5c: 6a7b ldr r3, [r7, #36] @ 0x24
  61139. 8018f5e: 681b ldr r3, [r3, #0]
  61140. 8018f60: f022 0202 bic.w r2, r2, #2
  61141. 8018f64: b2d2 uxtb r2, r2
  61142. 8018f66: f883 2028 strb.w r2, [r3, #40] @ 0x28
  61143. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, FIONBIO, %d)\n", s, val));
  61144. sock_set_errno(sock, 0);
  61145. 8018f6a: 2300 movs r3, #0
  61146. 8018f6c: 617b str r3, [r7, #20]
  61147. 8018f6e: 697b ldr r3, [r7, #20]
  61148. 8018f70: 2b00 cmp r3, #0
  61149. 8018f72: d002 beq.n 8018f7a <lwip_ioctl+0x11a>
  61150. 8018f74: 4a0b ldr r2, [pc, #44] @ (8018fa4 <lwip_ioctl+0x144>)
  61151. 8018f76: 697b ldr r3, [r7, #20]
  61152. 8018f78: 6013 str r3, [r2, #0]
  61153. done_socket(sock);
  61154. return 0;
  61155. 8018f7a: 2300 movs r3, #0
  61156. 8018f7c: e00a b.n 8018f94 <lwip_ioctl+0x134>
  61157. default:
  61158. break;
  61159. 8018f7e: bf00 nop
  61160. } /* switch (cmd) */
  61161. LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_ioctl(%d, UNIMPL: 0x%lx, %p)\n", s, cmd, argp));
  61162. sock_set_errno(sock, ENOSYS); /* not yet implemented */
  61163. 8018f80: 2326 movs r3, #38 @ 0x26
  61164. 8018f82: 613b str r3, [r7, #16]
  61165. 8018f84: 693b ldr r3, [r7, #16]
  61166. 8018f86: 2b00 cmp r3, #0
  61167. 8018f88: d002 beq.n 8018f90 <lwip_ioctl+0x130>
  61168. 8018f8a: 4a06 ldr r2, [pc, #24] @ (8018fa4 <lwip_ioctl+0x144>)
  61169. 8018f8c: 693b ldr r3, [r7, #16]
  61170. 8018f8e: 6013 str r3, [r2, #0]
  61171. done_socket(sock);
  61172. return -1;
  61173. 8018f90: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61174. }
  61175. 8018f94: 4618 mov r0, r3
  61176. 8018f96: 3730 adds r7, #48 @ 0x30
  61177. 8018f98: 46bd mov sp, r7
  61178. 8018f9a: bd80 pop {r7, pc}
  61179. 8018f9c: 8004667e .word 0x8004667e
  61180. 8018fa0: 4004667f .word 0x4004667f
  61181. 8018fa4: 2402b250 .word 0x2402b250
  61182. 08018fa8 <tcpip_timeouts_mbox_fetch>:
  61183. * @param mbox the mbox to fetch the message from
  61184. * @param msg the place to store the message
  61185. */
  61186. static void
  61187. tcpip_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg)
  61188. {
  61189. 8018fa8: b580 push {r7, lr}
  61190. 8018faa: b084 sub sp, #16
  61191. 8018fac: af00 add r7, sp, #0
  61192. 8018fae: 6078 str r0, [r7, #4]
  61193. 8018fb0: 6039 str r1, [r7, #0]
  61194. u32_t sleeptime, res;
  61195. again:
  61196. LWIP_ASSERT_CORE_LOCKED();
  61197. 8018fb2: f7f7 fd63 bl 8010a7c <sys_check_core_locking>
  61198. sleeptime = sys_timeouts_sleeptime();
  61199. 8018fb6: f008 fb41 bl 802163c <sys_timeouts_sleeptime>
  61200. 8018fba: 60f8 str r0, [r7, #12]
  61201. if (sleeptime == SYS_TIMEOUTS_SLEEPTIME_INFINITE) {
  61202. 8018fbc: 68fb ldr r3, [r7, #12]
  61203. 8018fbe: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  61204. 8018fc2: d109 bne.n 8018fd8 <tcpip_timeouts_mbox_fetch+0x30>
  61205. UNLOCK_TCPIP_CORE();
  61206. 8018fc4: f7f7 fd4c bl 8010a60 <sys_unlock_tcpip_core>
  61207. sys_arch_mbox_fetch(mbox, msg, 0);
  61208. 8018fc8: 2200 movs r2, #0
  61209. 8018fca: 6839 ldr r1, [r7, #0]
  61210. 8018fcc: 6878 ldr r0, [r7, #4]
  61211. 8018fce: f00d fd0d bl 80269ec <sys_arch_mbox_fetch>
  61212. LOCK_TCPIP_CORE();
  61213. 8018fd2: f7f7 fd35 bl 8010a40 <sys_lock_tcpip_core>
  61214. return;
  61215. 8018fd6: e016 b.n 8019006 <tcpip_timeouts_mbox_fetch+0x5e>
  61216. } else if (sleeptime == 0) {
  61217. 8018fd8: 68fb ldr r3, [r7, #12]
  61218. 8018fda: 2b00 cmp r3, #0
  61219. 8018fdc: d102 bne.n 8018fe4 <tcpip_timeouts_mbox_fetch+0x3c>
  61220. sys_check_timeouts();
  61221. 8018fde: f008 faf1 bl 80215c4 <sys_check_timeouts>
  61222. /* We try again to fetch a message from the mbox. */
  61223. goto again;
  61224. 8018fe2: e7e6 b.n 8018fb2 <tcpip_timeouts_mbox_fetch+0xa>
  61225. }
  61226. UNLOCK_TCPIP_CORE();
  61227. 8018fe4: f7f7 fd3c bl 8010a60 <sys_unlock_tcpip_core>
  61228. res = sys_arch_mbox_fetch(mbox, msg, sleeptime);
  61229. 8018fe8: 68fa ldr r2, [r7, #12]
  61230. 8018fea: 6839 ldr r1, [r7, #0]
  61231. 8018fec: 6878 ldr r0, [r7, #4]
  61232. 8018fee: f00d fcfd bl 80269ec <sys_arch_mbox_fetch>
  61233. 8018ff2: 60b8 str r0, [r7, #8]
  61234. LOCK_TCPIP_CORE();
  61235. 8018ff4: f7f7 fd24 bl 8010a40 <sys_lock_tcpip_core>
  61236. if (res == SYS_ARCH_TIMEOUT) {
  61237. 8018ff8: 68bb ldr r3, [r7, #8]
  61238. 8018ffa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  61239. 8018ffe: d102 bne.n 8019006 <tcpip_timeouts_mbox_fetch+0x5e>
  61240. /* If a SYS_ARCH_TIMEOUT value is returned, a timeout occurred
  61241. before a message could be fetched. */
  61242. sys_check_timeouts();
  61243. 8019000: f008 fae0 bl 80215c4 <sys_check_timeouts>
  61244. /* We try again to fetch a message from the mbox. */
  61245. goto again;
  61246. 8019004: e7d5 b.n 8018fb2 <tcpip_timeouts_mbox_fetch+0xa>
  61247. }
  61248. }
  61249. 8019006: 3710 adds r7, #16
  61250. 8019008: 46bd mov sp, r7
  61251. 801900a: bd80 pop {r7, pc}
  61252. 0801900c <tcpip_thread>:
  61253. *
  61254. * @param arg unused argument
  61255. */
  61256. static void
  61257. tcpip_thread(void *arg)
  61258. {
  61259. 801900c: b580 push {r7, lr}
  61260. 801900e: b084 sub sp, #16
  61261. 8019010: af00 add r7, sp, #0
  61262. 8019012: 6078 str r0, [r7, #4]
  61263. struct tcpip_msg *msg;
  61264. LWIP_UNUSED_ARG(arg);
  61265. LWIP_MARK_TCPIP_THREAD();
  61266. 8019014: f7f7 fd6e bl 8010af4 <sys_mark_tcpip_thread>
  61267. LOCK_TCPIP_CORE();
  61268. 8019018: f7f7 fd12 bl 8010a40 <sys_lock_tcpip_core>
  61269. if (tcpip_init_done != NULL) {
  61270. 801901c: 4b0f ldr r3, [pc, #60] @ (801905c <tcpip_thread+0x50>)
  61271. 801901e: 681b ldr r3, [r3, #0]
  61272. 8019020: 2b00 cmp r3, #0
  61273. 8019022: d005 beq.n 8019030 <tcpip_thread+0x24>
  61274. tcpip_init_done(tcpip_init_done_arg);
  61275. 8019024: 4b0d ldr r3, [pc, #52] @ (801905c <tcpip_thread+0x50>)
  61276. 8019026: 681b ldr r3, [r3, #0]
  61277. 8019028: 4a0d ldr r2, [pc, #52] @ (8019060 <tcpip_thread+0x54>)
  61278. 801902a: 6812 ldr r2, [r2, #0]
  61279. 801902c: 4610 mov r0, r2
  61280. 801902e: 4798 blx r3
  61281. }
  61282. while (1) { /* MAIN Loop */
  61283. LWIP_TCPIP_THREAD_ALIVE();
  61284. /* wait for a message, timeouts are processed while waiting */
  61285. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  61286. 8019030: f107 030c add.w r3, r7, #12
  61287. 8019034: 4619 mov r1, r3
  61288. 8019036: 480b ldr r0, [pc, #44] @ (8019064 <tcpip_thread+0x58>)
  61289. 8019038: f7ff ffb6 bl 8018fa8 <tcpip_timeouts_mbox_fetch>
  61290. if (msg == NULL) {
  61291. 801903c: 68fb ldr r3, [r7, #12]
  61292. 801903e: 2b00 cmp r3, #0
  61293. 8019040: d106 bne.n 8019050 <tcpip_thread+0x44>
  61294. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n"));
  61295. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  61296. 8019042: 4b09 ldr r3, [pc, #36] @ (8019068 <tcpip_thread+0x5c>)
  61297. 8019044: 2291 movs r2, #145 @ 0x91
  61298. 8019046: 4909 ldr r1, [pc, #36] @ (801906c <tcpip_thread+0x60>)
  61299. 8019048: 4809 ldr r0, [pc, #36] @ (8019070 <tcpip_thread+0x64>)
  61300. 801904a: f011 f8b7 bl 802a1bc <iprintf>
  61301. continue;
  61302. 801904e: e003 b.n 8019058 <tcpip_thread+0x4c>
  61303. }
  61304. tcpip_thread_handle_msg(msg);
  61305. 8019050: 68fb ldr r3, [r7, #12]
  61306. 8019052: 4618 mov r0, r3
  61307. 8019054: f000 f80e bl 8019074 <tcpip_thread_handle_msg>
  61308. TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg);
  61309. 8019058: e7ea b.n 8019030 <tcpip_thread+0x24>
  61310. 801905a: bf00 nop
  61311. 801905c: 240243f8 .word 0x240243f8
  61312. 8019060: 240243fc .word 0x240243fc
  61313. 8019064: 24024400 .word 0x24024400
  61314. 8019068: 0802e230 .word 0x0802e230
  61315. 801906c: 0802e260 .word 0x0802e260
  61316. 8019070: 0802e280 .word 0x0802e280
  61317. 08019074 <tcpip_thread_handle_msg>:
  61318. /* Handle a single tcpip_msg
  61319. * This is in its own function for access by tests only.
  61320. */
  61321. static void
  61322. tcpip_thread_handle_msg(struct tcpip_msg *msg)
  61323. {
  61324. 8019074: b580 push {r7, lr}
  61325. 8019076: b082 sub sp, #8
  61326. 8019078: af00 add r7, sp, #0
  61327. 801907a: 6078 str r0, [r7, #4]
  61328. switch (msg->type) {
  61329. 801907c: 687b ldr r3, [r7, #4]
  61330. 801907e: 781b ldrb r3, [r3, #0]
  61331. 8019080: 2b02 cmp r3, #2
  61332. 8019082: d026 beq.n 80190d2 <tcpip_thread_handle_msg+0x5e>
  61333. 8019084: 2b02 cmp r3, #2
  61334. 8019086: dc2b bgt.n 80190e0 <tcpip_thread_handle_msg+0x6c>
  61335. 8019088: 2b00 cmp r3, #0
  61336. 801908a: d002 beq.n 8019092 <tcpip_thread_handle_msg+0x1e>
  61337. 801908c: 2b01 cmp r3, #1
  61338. 801908e: d015 beq.n 80190bc <tcpip_thread_handle_msg+0x48>
  61339. 8019090: e026 b.n 80190e0 <tcpip_thread_handle_msg+0x6c>
  61340. #endif /* !LWIP_TCPIP_CORE_LOCKING */
  61341. #if !LWIP_TCPIP_CORE_LOCKING_INPUT
  61342. case TCPIP_MSG_INPKT:
  61343. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg));
  61344. if (msg->msg.inp.input_fn(msg->msg.inp.p, msg->msg.inp.netif) != ERR_OK) {
  61345. 8019092: 687b ldr r3, [r7, #4]
  61346. 8019094: 68db ldr r3, [r3, #12]
  61347. 8019096: 687a ldr r2, [r7, #4]
  61348. 8019098: 6850 ldr r0, [r2, #4]
  61349. 801909a: 687a ldr r2, [r7, #4]
  61350. 801909c: 6892 ldr r2, [r2, #8]
  61351. 801909e: 4611 mov r1, r2
  61352. 80190a0: 4798 blx r3
  61353. 80190a2: 4603 mov r3, r0
  61354. 80190a4: 2b00 cmp r3, #0
  61355. 80190a6: d004 beq.n 80190b2 <tcpip_thread_handle_msg+0x3e>
  61356. pbuf_free(msg->msg.inp.p);
  61357. 80190a8: 687b ldr r3, [r7, #4]
  61358. 80190aa: 685b ldr r3, [r3, #4]
  61359. 80190ac: 4618 mov r0, r3
  61360. 80190ae: f001 fe0d bl 801accc <pbuf_free>
  61361. }
  61362. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  61363. 80190b2: 6879 ldr r1, [r7, #4]
  61364. 80190b4: 2009 movs r0, #9
  61365. 80190b6: f000 ff1b bl 8019ef0 <memp_free>
  61366. break;
  61367. 80190ba: e018 b.n 80190ee <tcpip_thread_handle_msg+0x7a>
  61368. break;
  61369. #endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */
  61370. case TCPIP_MSG_CALLBACK:
  61371. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK %p\n", (void *)msg));
  61372. msg->msg.cb.function(msg->msg.cb.ctx);
  61373. 80190bc: 687b ldr r3, [r7, #4]
  61374. 80190be: 685b ldr r3, [r3, #4]
  61375. 80190c0: 687a ldr r2, [r7, #4]
  61376. 80190c2: 6892 ldr r2, [r2, #8]
  61377. 80190c4: 4610 mov r0, r2
  61378. 80190c6: 4798 blx r3
  61379. memp_free(MEMP_TCPIP_MSG_API, msg);
  61380. 80190c8: 6879 ldr r1, [r7, #4]
  61381. 80190ca: 2008 movs r0, #8
  61382. 80190cc: f000 ff10 bl 8019ef0 <memp_free>
  61383. break;
  61384. 80190d0: e00d b.n 80190ee <tcpip_thread_handle_msg+0x7a>
  61385. case TCPIP_MSG_CALLBACK_STATIC:
  61386. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK_STATIC %p\n", (void *)msg));
  61387. msg->msg.cb.function(msg->msg.cb.ctx);
  61388. 80190d2: 687b ldr r3, [r7, #4]
  61389. 80190d4: 685b ldr r3, [r3, #4]
  61390. 80190d6: 687a ldr r2, [r7, #4]
  61391. 80190d8: 6892 ldr r2, [r2, #8]
  61392. 80190da: 4610 mov r0, r2
  61393. 80190dc: 4798 blx r3
  61394. break;
  61395. 80190de: e006 b.n 80190ee <tcpip_thread_handle_msg+0x7a>
  61396. default:
  61397. LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type));
  61398. LWIP_ASSERT("tcpip_thread: invalid message", 0);
  61399. 80190e0: 4b05 ldr r3, [pc, #20] @ (80190f8 <tcpip_thread_handle_msg+0x84>)
  61400. 80190e2: 22cf movs r2, #207 @ 0xcf
  61401. 80190e4: 4905 ldr r1, [pc, #20] @ (80190fc <tcpip_thread_handle_msg+0x88>)
  61402. 80190e6: 4806 ldr r0, [pc, #24] @ (8019100 <tcpip_thread_handle_msg+0x8c>)
  61403. 80190e8: f011 f868 bl 802a1bc <iprintf>
  61404. break;
  61405. 80190ec: bf00 nop
  61406. }
  61407. }
  61408. 80190ee: bf00 nop
  61409. 80190f0: 3708 adds r7, #8
  61410. 80190f2: 46bd mov sp, r7
  61411. 80190f4: bd80 pop {r7, pc}
  61412. 80190f6: bf00 nop
  61413. 80190f8: 0802e230 .word 0x0802e230
  61414. 80190fc: 0802e260 .word 0x0802e260
  61415. 8019100: 0802e280 .word 0x0802e280
  61416. 08019104 <tcpip_inpkt>:
  61417. * @param inp the network interface on which the packet was received
  61418. * @param input_fn input function to call
  61419. */
  61420. err_t
  61421. tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn)
  61422. {
  61423. 8019104: b580 push {r7, lr}
  61424. 8019106: b086 sub sp, #24
  61425. 8019108: af00 add r7, sp, #0
  61426. 801910a: 60f8 str r0, [r7, #12]
  61427. 801910c: 60b9 str r1, [r7, #8]
  61428. 801910e: 607a str r2, [r7, #4]
  61429. UNLOCK_TCPIP_CORE();
  61430. return ret;
  61431. #else /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  61432. struct tcpip_msg *msg;
  61433. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  61434. 8019110: 481a ldr r0, [pc, #104] @ (801917c <tcpip_inpkt+0x78>)
  61435. 8019112: f00d fcb3 bl 8026a7c <sys_mbox_valid>
  61436. 8019116: 4603 mov r3, r0
  61437. 8019118: 2b00 cmp r3, #0
  61438. 801911a: d105 bne.n 8019128 <tcpip_inpkt+0x24>
  61439. 801911c: 4b18 ldr r3, [pc, #96] @ (8019180 <tcpip_inpkt+0x7c>)
  61440. 801911e: 22fc movs r2, #252 @ 0xfc
  61441. 8019120: 4918 ldr r1, [pc, #96] @ (8019184 <tcpip_inpkt+0x80>)
  61442. 8019122: 4819 ldr r0, [pc, #100] @ (8019188 <tcpip_inpkt+0x84>)
  61443. 8019124: f011 f84a bl 802a1bc <iprintf>
  61444. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT);
  61445. 8019128: 2009 movs r0, #9
  61446. 801912a: f000 fe6b bl 8019e04 <memp_malloc>
  61447. 801912e: 6178 str r0, [r7, #20]
  61448. if (msg == NULL) {
  61449. 8019130: 697b ldr r3, [r7, #20]
  61450. 8019132: 2b00 cmp r3, #0
  61451. 8019134: d102 bne.n 801913c <tcpip_inpkt+0x38>
  61452. return ERR_MEM;
  61453. 8019136: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61454. 801913a: e01a b.n 8019172 <tcpip_inpkt+0x6e>
  61455. }
  61456. msg->type = TCPIP_MSG_INPKT;
  61457. 801913c: 697b ldr r3, [r7, #20]
  61458. 801913e: 2200 movs r2, #0
  61459. 8019140: 701a strb r2, [r3, #0]
  61460. msg->msg.inp.p = p;
  61461. 8019142: 697b ldr r3, [r7, #20]
  61462. 8019144: 68fa ldr r2, [r7, #12]
  61463. 8019146: 605a str r2, [r3, #4]
  61464. msg->msg.inp.netif = inp;
  61465. 8019148: 697b ldr r3, [r7, #20]
  61466. 801914a: 68ba ldr r2, [r7, #8]
  61467. 801914c: 609a str r2, [r3, #8]
  61468. msg->msg.inp.input_fn = input_fn;
  61469. 801914e: 697b ldr r3, [r7, #20]
  61470. 8019150: 687a ldr r2, [r7, #4]
  61471. 8019152: 60da str r2, [r3, #12]
  61472. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  61473. 8019154: 6979 ldr r1, [r7, #20]
  61474. 8019156: 4809 ldr r0, [pc, #36] @ (801917c <tcpip_inpkt+0x78>)
  61475. 8019158: f00d fc2e bl 80269b8 <sys_mbox_trypost>
  61476. 801915c: 4603 mov r3, r0
  61477. 801915e: 2b00 cmp r3, #0
  61478. 8019160: d006 beq.n 8019170 <tcpip_inpkt+0x6c>
  61479. memp_free(MEMP_TCPIP_MSG_INPKT, msg);
  61480. 8019162: 6979 ldr r1, [r7, #20]
  61481. 8019164: 2009 movs r0, #9
  61482. 8019166: f000 fec3 bl 8019ef0 <memp_free>
  61483. return ERR_MEM;
  61484. 801916a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61485. 801916e: e000 b.n 8019172 <tcpip_inpkt+0x6e>
  61486. }
  61487. return ERR_OK;
  61488. 8019170: 2300 movs r3, #0
  61489. #endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */
  61490. }
  61491. 8019172: 4618 mov r0, r3
  61492. 8019174: 3718 adds r7, #24
  61493. 8019176: 46bd mov sp, r7
  61494. 8019178: bd80 pop {r7, pc}
  61495. 801917a: bf00 nop
  61496. 801917c: 24024400 .word 0x24024400
  61497. 8019180: 0802e230 .word 0x0802e230
  61498. 8019184: 0802e2a8 .word 0x0802e2a8
  61499. 8019188: 0802e280 .word 0x0802e280
  61500. 0801918c <tcpip_input>:
  61501. * NETIF_FLAG_ETHERNET flags)
  61502. * @param inp the network interface on which the packet was received
  61503. */
  61504. err_t
  61505. tcpip_input(struct pbuf *p, struct netif *inp)
  61506. {
  61507. 801918c: b580 push {r7, lr}
  61508. 801918e: b082 sub sp, #8
  61509. 8019190: af00 add r7, sp, #0
  61510. 8019192: 6078 str r0, [r7, #4]
  61511. 8019194: 6039 str r1, [r7, #0]
  61512. #if LWIP_ETHERNET
  61513. if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) {
  61514. 8019196: 683b ldr r3, [r7, #0]
  61515. 8019198: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  61516. 801919c: f003 0318 and.w r3, r3, #24
  61517. 80191a0: 2b00 cmp r3, #0
  61518. 80191a2: d006 beq.n 80191b2 <tcpip_input+0x26>
  61519. return tcpip_inpkt(p, inp, ethernet_input);
  61520. 80191a4: 4a08 ldr r2, [pc, #32] @ (80191c8 <tcpip_input+0x3c>)
  61521. 80191a6: 6839 ldr r1, [r7, #0]
  61522. 80191a8: 6878 ldr r0, [r7, #4]
  61523. 80191aa: f7ff ffab bl 8019104 <tcpip_inpkt>
  61524. 80191ae: 4603 mov r3, r0
  61525. 80191b0: e005 b.n 80191be <tcpip_input+0x32>
  61526. } else
  61527. #endif /* LWIP_ETHERNET */
  61528. return tcpip_inpkt(p, inp, ip_input);
  61529. 80191b2: 4a06 ldr r2, [pc, #24] @ (80191cc <tcpip_input+0x40>)
  61530. 80191b4: 6839 ldr r1, [r7, #0]
  61531. 80191b6: 6878 ldr r0, [r7, #4]
  61532. 80191b8: f7ff ffa4 bl 8019104 <tcpip_inpkt>
  61533. 80191bc: 4603 mov r3, r0
  61534. }
  61535. 80191be: 4618 mov r0, r3
  61536. 80191c0: 3708 adds r7, #8
  61537. 80191c2: 46bd mov sp, r7
  61538. 80191c4: bd80 pop {r7, pc}
  61539. 80191c6: bf00 nop
  61540. 80191c8: 080267ad .word 0x080267ad
  61541. 80191cc: 080252d5 .word 0x080252d5
  61542. 080191d0 <tcpip_try_callback>:
  61543. *
  61544. * @see tcpip_callback
  61545. */
  61546. err_t
  61547. tcpip_try_callback(tcpip_callback_fn function, void *ctx)
  61548. {
  61549. 80191d0: b580 push {r7, lr}
  61550. 80191d2: b084 sub sp, #16
  61551. 80191d4: af00 add r7, sp, #0
  61552. 80191d6: 6078 str r0, [r7, #4]
  61553. 80191d8: 6039 str r1, [r7, #0]
  61554. struct tcpip_msg *msg;
  61555. LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox));
  61556. 80191da: 4819 ldr r0, [pc, #100] @ (8019240 <tcpip_try_callback+0x70>)
  61557. 80191dc: f00d fc4e bl 8026a7c <sys_mbox_valid>
  61558. 80191e0: 4603 mov r3, r0
  61559. 80191e2: 2b00 cmp r3, #0
  61560. 80191e4: d106 bne.n 80191f4 <tcpip_try_callback+0x24>
  61561. 80191e6: 4b17 ldr r3, [pc, #92] @ (8019244 <tcpip_try_callback+0x74>)
  61562. 80191e8: f240 125d movw r2, #349 @ 0x15d
  61563. 80191ec: 4916 ldr r1, [pc, #88] @ (8019248 <tcpip_try_callback+0x78>)
  61564. 80191ee: 4817 ldr r0, [pc, #92] @ (801924c <tcpip_try_callback+0x7c>)
  61565. 80191f0: f010 ffe4 bl 802a1bc <iprintf>
  61566. msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API);
  61567. 80191f4: 2008 movs r0, #8
  61568. 80191f6: f000 fe05 bl 8019e04 <memp_malloc>
  61569. 80191fa: 60f8 str r0, [r7, #12]
  61570. if (msg == NULL) {
  61571. 80191fc: 68fb ldr r3, [r7, #12]
  61572. 80191fe: 2b00 cmp r3, #0
  61573. 8019200: d102 bne.n 8019208 <tcpip_try_callback+0x38>
  61574. return ERR_MEM;
  61575. 8019202: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61576. 8019206: e017 b.n 8019238 <tcpip_try_callback+0x68>
  61577. }
  61578. msg->type = TCPIP_MSG_CALLBACK;
  61579. 8019208: 68fb ldr r3, [r7, #12]
  61580. 801920a: 2201 movs r2, #1
  61581. 801920c: 701a strb r2, [r3, #0]
  61582. msg->msg.cb.function = function;
  61583. 801920e: 68fb ldr r3, [r7, #12]
  61584. 8019210: 687a ldr r2, [r7, #4]
  61585. 8019212: 605a str r2, [r3, #4]
  61586. msg->msg.cb.ctx = ctx;
  61587. 8019214: 68fb ldr r3, [r7, #12]
  61588. 8019216: 683a ldr r2, [r7, #0]
  61589. 8019218: 609a str r2, [r3, #8]
  61590. if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) {
  61591. 801921a: 68f9 ldr r1, [r7, #12]
  61592. 801921c: 4808 ldr r0, [pc, #32] @ (8019240 <tcpip_try_callback+0x70>)
  61593. 801921e: f00d fbcb bl 80269b8 <sys_mbox_trypost>
  61594. 8019222: 4603 mov r3, r0
  61595. 8019224: 2b00 cmp r3, #0
  61596. 8019226: d006 beq.n 8019236 <tcpip_try_callback+0x66>
  61597. memp_free(MEMP_TCPIP_MSG_API, msg);
  61598. 8019228: 68f9 ldr r1, [r7, #12]
  61599. 801922a: 2008 movs r0, #8
  61600. 801922c: f000 fe60 bl 8019ef0 <memp_free>
  61601. return ERR_MEM;
  61602. 8019230: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  61603. 8019234: e000 b.n 8019238 <tcpip_try_callback+0x68>
  61604. }
  61605. return ERR_OK;
  61606. 8019236: 2300 movs r3, #0
  61607. }
  61608. 8019238: 4618 mov r0, r3
  61609. 801923a: 3710 adds r7, #16
  61610. 801923c: 46bd mov sp, r7
  61611. 801923e: bd80 pop {r7, pc}
  61612. 8019240: 24024400 .word 0x24024400
  61613. 8019244: 0802e230 .word 0x0802e230
  61614. 8019248: 0802e2a8 .word 0x0802e2a8
  61615. 801924c: 0802e280 .word 0x0802e280
  61616. 08019250 <tcpip_send_msg_wait_sem>:
  61617. * @param sem semaphore to wait on
  61618. * @return ERR_OK if the function was called, another err_t if not
  61619. */
  61620. err_t
  61621. tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)
  61622. {
  61623. 8019250: b580 push {r7, lr}
  61624. 8019252: b084 sub sp, #16
  61625. 8019254: af00 add r7, sp, #0
  61626. 8019256: 60f8 str r0, [r7, #12]
  61627. 8019258: 60b9 str r1, [r7, #8]
  61628. 801925a: 607a str r2, [r7, #4]
  61629. #if LWIP_TCPIP_CORE_LOCKING
  61630. LWIP_UNUSED_ARG(sem);
  61631. LOCK_TCPIP_CORE();
  61632. 801925c: f7f7 fbf0 bl 8010a40 <sys_lock_tcpip_core>
  61633. fn(apimsg);
  61634. 8019260: 68fb ldr r3, [r7, #12]
  61635. 8019262: 68b8 ldr r0, [r7, #8]
  61636. 8019264: 4798 blx r3
  61637. UNLOCK_TCPIP_CORE();
  61638. 8019266: f7f7 fbfb bl 8010a60 <sys_unlock_tcpip_core>
  61639. return ERR_OK;
  61640. 801926a: 2300 movs r3, #0
  61641. sys_mbox_post(&tcpip_mbox, &TCPIP_MSG_VAR_REF(msg));
  61642. sys_arch_sem_wait(sem, 0);
  61643. TCPIP_MSG_VAR_FREE(msg);
  61644. return ERR_OK;
  61645. #endif /* LWIP_TCPIP_CORE_LOCKING */
  61646. }
  61647. 801926c: 4618 mov r0, r3
  61648. 801926e: 3710 adds r7, #16
  61649. 8019270: 46bd mov sp, r7
  61650. 8019272: bd80 pop {r7, pc}
  61651. 08019274 <tcpip_init>:
  61652. * @param initfunc a function to call when tcpip_thread is running and finished initializing
  61653. * @param arg argument to pass to initfunc
  61654. */
  61655. void
  61656. tcpip_init(tcpip_init_done_fn initfunc, void *arg)
  61657. {
  61658. 8019274: b580 push {r7, lr}
  61659. 8019276: b084 sub sp, #16
  61660. 8019278: af02 add r7, sp, #8
  61661. 801927a: 6078 str r0, [r7, #4]
  61662. 801927c: 6039 str r1, [r7, #0]
  61663. lwip_init();
  61664. 801927e: f000 f92d bl 80194dc <lwip_init>
  61665. tcpip_init_done = initfunc;
  61666. 8019282: 4a17 ldr r2, [pc, #92] @ (80192e0 <tcpip_init+0x6c>)
  61667. 8019284: 687b ldr r3, [r7, #4]
  61668. 8019286: 6013 str r3, [r2, #0]
  61669. tcpip_init_done_arg = arg;
  61670. 8019288: 4a16 ldr r2, [pc, #88] @ (80192e4 <tcpip_init+0x70>)
  61671. 801928a: 683b ldr r3, [r7, #0]
  61672. 801928c: 6013 str r3, [r2, #0]
  61673. if (sys_mbox_new(&tcpip_mbox, TCPIP_MBOX_SIZE) != ERR_OK) {
  61674. 801928e: 2106 movs r1, #6
  61675. 8019290: 4815 ldr r0, [pc, #84] @ (80192e8 <tcpip_init+0x74>)
  61676. 8019292: f00d fb65 bl 8026960 <sys_mbox_new>
  61677. 8019296: 4603 mov r3, r0
  61678. 8019298: 2b00 cmp r3, #0
  61679. 801929a: d006 beq.n 80192aa <tcpip_init+0x36>
  61680. LWIP_ASSERT("failed to create tcpip_thread mbox", 0);
  61681. 801929c: 4b13 ldr r3, [pc, #76] @ (80192ec <tcpip_init+0x78>)
  61682. 801929e: f240 2261 movw r2, #609 @ 0x261
  61683. 80192a2: 4913 ldr r1, [pc, #76] @ (80192f0 <tcpip_init+0x7c>)
  61684. 80192a4: 4813 ldr r0, [pc, #76] @ (80192f4 <tcpip_init+0x80>)
  61685. 80192a6: f010 ff89 bl 802a1bc <iprintf>
  61686. }
  61687. #if LWIP_TCPIP_CORE_LOCKING
  61688. if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) {
  61689. 80192aa: 4813 ldr r0, [pc, #76] @ (80192f8 <tcpip_init+0x84>)
  61690. 80192ac: f00d fc9e bl 8026bec <sys_mutex_new>
  61691. 80192b0: 4603 mov r3, r0
  61692. 80192b2: 2b00 cmp r3, #0
  61693. 80192b4: d006 beq.n 80192c4 <tcpip_init+0x50>
  61694. LWIP_ASSERT("failed to create lock_tcpip_core", 0);
  61695. 80192b6: 4b0d ldr r3, [pc, #52] @ (80192ec <tcpip_init+0x78>)
  61696. 80192b8: f240 2265 movw r2, #613 @ 0x265
  61697. 80192bc: 490f ldr r1, [pc, #60] @ (80192fc <tcpip_init+0x88>)
  61698. 80192be: 480d ldr r0, [pc, #52] @ (80192f4 <tcpip_init+0x80>)
  61699. 80192c0: f010 ff7c bl 802a1bc <iprintf>
  61700. }
  61701. #endif /* LWIP_TCPIP_CORE_LOCKING */
  61702. sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
  61703. 80192c4: 2330 movs r3, #48 @ 0x30
  61704. 80192c6: 9300 str r3, [sp, #0]
  61705. 80192c8: f44f 5380 mov.w r3, #4096 @ 0x1000
  61706. 80192cc: 2200 movs r2, #0
  61707. 80192ce: 490c ldr r1, [pc, #48] @ (8019300 <tcpip_init+0x8c>)
  61708. 80192d0: 480c ldr r0, [pc, #48] @ (8019304 <tcpip_init+0x90>)
  61709. 80192d2: f00d fcbd bl 8026c50 <sys_thread_new>
  61710. }
  61711. 80192d6: bf00 nop
  61712. 80192d8: 3708 adds r7, #8
  61713. 80192da: 46bd mov sp, r7
  61714. 80192dc: bd80 pop {r7, pc}
  61715. 80192de: bf00 nop
  61716. 80192e0: 240243f8 .word 0x240243f8
  61717. 80192e4: 240243fc .word 0x240243fc
  61718. 80192e8: 24024400 .word 0x24024400
  61719. 80192ec: 0802e230 .word 0x0802e230
  61720. 80192f0: 0802e2b8 .word 0x0802e2b8
  61721. 80192f4: 0802e280 .word 0x0802e280
  61722. 80192f8: 24024404 .word 0x24024404
  61723. 80192fc: 0802e2dc .word 0x0802e2dc
  61724. 8019300: 0801900d .word 0x0801900d
  61725. 8019304: 0802e300 .word 0x0802e300
  61726. 08019308 <lwip_htons>:
  61727. * @param n u16_t in host byte order
  61728. * @return n in network byte order
  61729. */
  61730. u16_t
  61731. lwip_htons(u16_t n)
  61732. {
  61733. 8019308: b480 push {r7}
  61734. 801930a: b083 sub sp, #12
  61735. 801930c: af00 add r7, sp, #0
  61736. 801930e: 4603 mov r3, r0
  61737. 8019310: 80fb strh r3, [r7, #6]
  61738. return PP_HTONS(n);
  61739. 8019312: 88fb ldrh r3, [r7, #6]
  61740. 8019314: 021b lsls r3, r3, #8
  61741. 8019316: b21a sxth r2, r3
  61742. 8019318: 88fb ldrh r3, [r7, #6]
  61743. 801931a: 0a1b lsrs r3, r3, #8
  61744. 801931c: b29b uxth r3, r3
  61745. 801931e: b21b sxth r3, r3
  61746. 8019320: 4313 orrs r3, r2
  61747. 8019322: b21b sxth r3, r3
  61748. 8019324: b29b uxth r3, r3
  61749. }
  61750. 8019326: 4618 mov r0, r3
  61751. 8019328: 370c adds r7, #12
  61752. 801932a: 46bd mov sp, r7
  61753. 801932c: f85d 7b04 ldr.w r7, [sp], #4
  61754. 8019330: 4770 bx lr
  61755. 08019332 <lwip_htonl>:
  61756. * @param n u32_t in host byte order
  61757. * @return n in network byte order
  61758. */
  61759. u32_t
  61760. lwip_htonl(u32_t n)
  61761. {
  61762. 8019332: b480 push {r7}
  61763. 8019334: b083 sub sp, #12
  61764. 8019336: af00 add r7, sp, #0
  61765. 8019338: 6078 str r0, [r7, #4]
  61766. return PP_HTONL(n);
  61767. 801933a: 687b ldr r3, [r7, #4]
  61768. 801933c: 061a lsls r2, r3, #24
  61769. 801933e: 687b ldr r3, [r7, #4]
  61770. 8019340: 021b lsls r3, r3, #8
  61771. 8019342: f403 037f and.w r3, r3, #16711680 @ 0xff0000
  61772. 8019346: 431a orrs r2, r3
  61773. 8019348: 687b ldr r3, [r7, #4]
  61774. 801934a: 0a1b lsrs r3, r3, #8
  61775. 801934c: f403 437f and.w r3, r3, #65280 @ 0xff00
  61776. 8019350: 431a orrs r2, r3
  61777. 8019352: 687b ldr r3, [r7, #4]
  61778. 8019354: 0e1b lsrs r3, r3, #24
  61779. 8019356: 4313 orrs r3, r2
  61780. }
  61781. 8019358: 4618 mov r0, r3
  61782. 801935a: 370c adds r7, #12
  61783. 801935c: 46bd mov sp, r7
  61784. 801935e: f85d 7b04 ldr.w r7, [sp], #4
  61785. 8019362: 4770 bx lr
  61786. 08019364 <lwip_standard_chksum>:
  61787. * @param len length of data to be summed
  61788. * @return host order (!) lwip checksum (non-inverted Internet sum)
  61789. */
  61790. u16_t
  61791. lwip_standard_chksum(const void *dataptr, int len)
  61792. {
  61793. 8019364: b480 push {r7}
  61794. 8019366: b089 sub sp, #36 @ 0x24
  61795. 8019368: af00 add r7, sp, #0
  61796. 801936a: 6078 str r0, [r7, #4]
  61797. 801936c: 6039 str r1, [r7, #0]
  61798. const u8_t *pb = (const u8_t *)dataptr;
  61799. 801936e: 687b ldr r3, [r7, #4]
  61800. 8019370: 61fb str r3, [r7, #28]
  61801. const u16_t *ps;
  61802. u16_t t = 0;
  61803. 8019372: 2300 movs r3, #0
  61804. 8019374: 81fb strh r3, [r7, #14]
  61805. u32_t sum = 0;
  61806. 8019376: 2300 movs r3, #0
  61807. 8019378: 617b str r3, [r7, #20]
  61808. int odd = ((mem_ptr_t)pb & 1);
  61809. 801937a: 69fb ldr r3, [r7, #28]
  61810. 801937c: f003 0301 and.w r3, r3, #1
  61811. 8019380: 613b str r3, [r7, #16]
  61812. /* Get aligned to u16_t */
  61813. if (odd && len > 0) {
  61814. 8019382: 693b ldr r3, [r7, #16]
  61815. 8019384: 2b00 cmp r3, #0
  61816. 8019386: d00d beq.n 80193a4 <lwip_standard_chksum+0x40>
  61817. 8019388: 683b ldr r3, [r7, #0]
  61818. 801938a: 2b00 cmp r3, #0
  61819. 801938c: dd0a ble.n 80193a4 <lwip_standard_chksum+0x40>
  61820. ((u8_t *)&t)[1] = *pb++;
  61821. 801938e: 69fa ldr r2, [r7, #28]
  61822. 8019390: 1c53 adds r3, r2, #1
  61823. 8019392: 61fb str r3, [r7, #28]
  61824. 8019394: f107 030e add.w r3, r7, #14
  61825. 8019398: 3301 adds r3, #1
  61826. 801939a: 7812 ldrb r2, [r2, #0]
  61827. 801939c: 701a strb r2, [r3, #0]
  61828. len--;
  61829. 801939e: 683b ldr r3, [r7, #0]
  61830. 80193a0: 3b01 subs r3, #1
  61831. 80193a2: 603b str r3, [r7, #0]
  61832. }
  61833. /* Add the bulk of the data */
  61834. ps = (const u16_t *)(const void *)pb;
  61835. 80193a4: 69fb ldr r3, [r7, #28]
  61836. 80193a6: 61bb str r3, [r7, #24]
  61837. while (len > 1) {
  61838. 80193a8: e00a b.n 80193c0 <lwip_standard_chksum+0x5c>
  61839. sum += *ps++;
  61840. 80193aa: 69bb ldr r3, [r7, #24]
  61841. 80193ac: 1c9a adds r2, r3, #2
  61842. 80193ae: 61ba str r2, [r7, #24]
  61843. 80193b0: 881b ldrh r3, [r3, #0]
  61844. 80193b2: 461a mov r2, r3
  61845. 80193b4: 697b ldr r3, [r7, #20]
  61846. 80193b6: 4413 add r3, r2
  61847. 80193b8: 617b str r3, [r7, #20]
  61848. len -= 2;
  61849. 80193ba: 683b ldr r3, [r7, #0]
  61850. 80193bc: 3b02 subs r3, #2
  61851. 80193be: 603b str r3, [r7, #0]
  61852. while (len > 1) {
  61853. 80193c0: 683b ldr r3, [r7, #0]
  61854. 80193c2: 2b01 cmp r3, #1
  61855. 80193c4: dcf1 bgt.n 80193aa <lwip_standard_chksum+0x46>
  61856. }
  61857. /* Consume left-over byte, if any */
  61858. if (len > 0) {
  61859. 80193c6: 683b ldr r3, [r7, #0]
  61860. 80193c8: 2b00 cmp r3, #0
  61861. 80193ca: dd04 ble.n 80193d6 <lwip_standard_chksum+0x72>
  61862. ((u8_t *)&t)[0] = *(const u8_t *)ps;
  61863. 80193cc: f107 030e add.w r3, r7, #14
  61864. 80193d0: 69ba ldr r2, [r7, #24]
  61865. 80193d2: 7812 ldrb r2, [r2, #0]
  61866. 80193d4: 701a strb r2, [r3, #0]
  61867. }
  61868. /* Add end bytes */
  61869. sum += t;
  61870. 80193d6: 89fb ldrh r3, [r7, #14]
  61871. 80193d8: 461a mov r2, r3
  61872. 80193da: 697b ldr r3, [r7, #20]
  61873. 80193dc: 4413 add r3, r2
  61874. 80193de: 617b str r3, [r7, #20]
  61875. /* Fold 32-bit sum to 16 bits
  61876. calling this twice is probably faster than if statements... */
  61877. sum = FOLD_U32T(sum);
  61878. 80193e0: 697b ldr r3, [r7, #20]
  61879. 80193e2: 0c1a lsrs r2, r3, #16
  61880. 80193e4: 697b ldr r3, [r7, #20]
  61881. 80193e6: b29b uxth r3, r3
  61882. 80193e8: 4413 add r3, r2
  61883. 80193ea: 617b str r3, [r7, #20]
  61884. sum = FOLD_U32T(sum);
  61885. 80193ec: 697b ldr r3, [r7, #20]
  61886. 80193ee: 0c1a lsrs r2, r3, #16
  61887. 80193f0: 697b ldr r3, [r7, #20]
  61888. 80193f2: b29b uxth r3, r3
  61889. 80193f4: 4413 add r3, r2
  61890. 80193f6: 617b str r3, [r7, #20]
  61891. /* Swap if alignment was odd */
  61892. if (odd) {
  61893. 80193f8: 693b ldr r3, [r7, #16]
  61894. 80193fa: 2b00 cmp r3, #0
  61895. 80193fc: d007 beq.n 801940e <lwip_standard_chksum+0xaa>
  61896. sum = SWAP_BYTES_IN_WORD(sum);
  61897. 80193fe: 697b ldr r3, [r7, #20]
  61898. 8019400: 021b lsls r3, r3, #8
  61899. 8019402: b29a uxth r2, r3
  61900. 8019404: 697b ldr r3, [r7, #20]
  61901. 8019406: 0a1b lsrs r3, r3, #8
  61902. 8019408: b2db uxtb r3, r3
  61903. 801940a: 4313 orrs r3, r2
  61904. 801940c: 617b str r3, [r7, #20]
  61905. }
  61906. return (u16_t)sum;
  61907. 801940e: 697b ldr r3, [r7, #20]
  61908. 8019410: b29b uxth r3, r3
  61909. }
  61910. 8019412: 4618 mov r0, r3
  61911. 8019414: 3724 adds r7, #36 @ 0x24
  61912. 8019416: 46bd mov sp, r7
  61913. 8019418: f85d 7b04 ldr.w r7, [sp], #4
  61914. 801941c: 4770 bx lr
  61915. 0801941e <inet_chksum>:
  61916. * @return checksum (as u16_t) to be saved directly in the protocol header
  61917. */
  61918. u16_t
  61919. inet_chksum(const void *dataptr, u16_t len)
  61920. {
  61921. 801941e: b580 push {r7, lr}
  61922. 8019420: b082 sub sp, #8
  61923. 8019422: af00 add r7, sp, #0
  61924. 8019424: 6078 str r0, [r7, #4]
  61925. 8019426: 460b mov r3, r1
  61926. 8019428: 807b strh r3, [r7, #2]
  61927. return (u16_t)~(unsigned int)LWIP_CHKSUM(dataptr, len);
  61928. 801942a: 887b ldrh r3, [r7, #2]
  61929. 801942c: 4619 mov r1, r3
  61930. 801942e: 6878 ldr r0, [r7, #4]
  61931. 8019430: f7ff ff98 bl 8019364 <lwip_standard_chksum>
  61932. 8019434: 4603 mov r3, r0
  61933. 8019436: 43db mvns r3, r3
  61934. 8019438: b29b uxth r3, r3
  61935. }
  61936. 801943a: 4618 mov r0, r3
  61937. 801943c: 3708 adds r7, #8
  61938. 801943e: 46bd mov sp, r7
  61939. 8019440: bd80 pop {r7, pc}
  61940. 08019442 <inet_chksum_pbuf>:
  61941. * @param p pbuf chain over that the checksum should be calculated
  61942. * @return checksum (as u16_t) to be saved directly in the protocol header
  61943. */
  61944. u16_t
  61945. inet_chksum_pbuf(struct pbuf *p)
  61946. {
  61947. 8019442: b580 push {r7, lr}
  61948. 8019444: b086 sub sp, #24
  61949. 8019446: af00 add r7, sp, #0
  61950. 8019448: 6078 str r0, [r7, #4]
  61951. u32_t acc;
  61952. struct pbuf *q;
  61953. int swapped = 0;
  61954. 801944a: 2300 movs r3, #0
  61955. 801944c: 60fb str r3, [r7, #12]
  61956. acc = 0;
  61957. 801944e: 2300 movs r3, #0
  61958. 8019450: 617b str r3, [r7, #20]
  61959. for (q = p; q != NULL; q = q->next) {
  61960. 8019452: 687b ldr r3, [r7, #4]
  61961. 8019454: 613b str r3, [r7, #16]
  61962. 8019456: e02b b.n 80194b0 <inet_chksum_pbuf+0x6e>
  61963. acc += LWIP_CHKSUM(q->payload, q->len);
  61964. 8019458: 693b ldr r3, [r7, #16]
  61965. 801945a: 685a ldr r2, [r3, #4]
  61966. 801945c: 693b ldr r3, [r7, #16]
  61967. 801945e: 895b ldrh r3, [r3, #10]
  61968. 8019460: 4619 mov r1, r3
  61969. 8019462: 4610 mov r0, r2
  61970. 8019464: f7ff ff7e bl 8019364 <lwip_standard_chksum>
  61971. 8019468: 4603 mov r3, r0
  61972. 801946a: 461a mov r2, r3
  61973. 801946c: 697b ldr r3, [r7, #20]
  61974. 801946e: 4413 add r3, r2
  61975. 8019470: 617b str r3, [r7, #20]
  61976. acc = FOLD_U32T(acc);
  61977. 8019472: 697b ldr r3, [r7, #20]
  61978. 8019474: 0c1a lsrs r2, r3, #16
  61979. 8019476: 697b ldr r3, [r7, #20]
  61980. 8019478: b29b uxth r3, r3
  61981. 801947a: 4413 add r3, r2
  61982. 801947c: 617b str r3, [r7, #20]
  61983. if (q->len % 2 != 0) {
  61984. 801947e: 693b ldr r3, [r7, #16]
  61985. 8019480: 895b ldrh r3, [r3, #10]
  61986. 8019482: f003 0301 and.w r3, r3, #1
  61987. 8019486: b29b uxth r3, r3
  61988. 8019488: 2b00 cmp r3, #0
  61989. 801948a: d00e beq.n 80194aa <inet_chksum_pbuf+0x68>
  61990. swapped = !swapped;
  61991. 801948c: 68fb ldr r3, [r7, #12]
  61992. 801948e: 2b00 cmp r3, #0
  61993. 8019490: bf0c ite eq
  61994. 8019492: 2301 moveq r3, #1
  61995. 8019494: 2300 movne r3, #0
  61996. 8019496: b2db uxtb r3, r3
  61997. 8019498: 60fb str r3, [r7, #12]
  61998. acc = SWAP_BYTES_IN_WORD(acc);
  61999. 801949a: 697b ldr r3, [r7, #20]
  62000. 801949c: 021b lsls r3, r3, #8
  62001. 801949e: b29a uxth r2, r3
  62002. 80194a0: 697b ldr r3, [r7, #20]
  62003. 80194a2: 0a1b lsrs r3, r3, #8
  62004. 80194a4: b2db uxtb r3, r3
  62005. 80194a6: 4313 orrs r3, r2
  62006. 80194a8: 617b str r3, [r7, #20]
  62007. for (q = p; q != NULL; q = q->next) {
  62008. 80194aa: 693b ldr r3, [r7, #16]
  62009. 80194ac: 681b ldr r3, [r3, #0]
  62010. 80194ae: 613b str r3, [r7, #16]
  62011. 80194b0: 693b ldr r3, [r7, #16]
  62012. 80194b2: 2b00 cmp r3, #0
  62013. 80194b4: d1d0 bne.n 8019458 <inet_chksum_pbuf+0x16>
  62014. }
  62015. }
  62016. if (swapped) {
  62017. 80194b6: 68fb ldr r3, [r7, #12]
  62018. 80194b8: 2b00 cmp r3, #0
  62019. 80194ba: d007 beq.n 80194cc <inet_chksum_pbuf+0x8a>
  62020. acc = SWAP_BYTES_IN_WORD(acc);
  62021. 80194bc: 697b ldr r3, [r7, #20]
  62022. 80194be: 021b lsls r3, r3, #8
  62023. 80194c0: b29a uxth r2, r3
  62024. 80194c2: 697b ldr r3, [r7, #20]
  62025. 80194c4: 0a1b lsrs r3, r3, #8
  62026. 80194c6: b2db uxtb r3, r3
  62027. 80194c8: 4313 orrs r3, r2
  62028. 80194ca: 617b str r3, [r7, #20]
  62029. }
  62030. return (u16_t)~(acc & 0xffffUL);
  62031. 80194cc: 697b ldr r3, [r7, #20]
  62032. 80194ce: b29b uxth r3, r3
  62033. 80194d0: 43db mvns r3, r3
  62034. 80194d2: b29b uxth r3, r3
  62035. }
  62036. 80194d4: 4618 mov r0, r3
  62037. 80194d6: 3718 adds r7, #24
  62038. 80194d8: 46bd mov sp, r7
  62039. 80194da: bd80 pop {r7, pc}
  62040. 080194dc <lwip_init>:
  62041. * Initialize all modules.
  62042. * Use this in NO_SYS mode. Use tcpip_init() otherwise.
  62043. */
  62044. void
  62045. lwip_init(void)
  62046. {
  62047. 80194dc: b580 push {r7, lr}
  62048. 80194de: b082 sub sp, #8
  62049. 80194e0: af00 add r7, sp, #0
  62050. #ifndef LWIP_SKIP_CONST_CHECK
  62051. int a = 0;
  62052. 80194e2: 2300 movs r3, #0
  62053. 80194e4: 607b str r3, [r7, #4]
  62054. #endif
  62055. /* Modules initialization */
  62056. stats_init();
  62057. #if !NO_SYS
  62058. sys_init();
  62059. 80194e6: f00d fb75 bl 8026bd4 <sys_init>
  62060. #endif /* !NO_SYS */
  62061. mem_init();
  62062. 80194ea: f000 f8d3 bl 8019694 <mem_init>
  62063. memp_init();
  62064. 80194ee: f000 fc1b bl 8019d28 <memp_init>
  62065. pbuf_init();
  62066. netif_init();
  62067. 80194f2: f000 fd27 bl 8019f44 <netif_init>
  62068. #endif /* LWIP_IPV4 */
  62069. #if LWIP_RAW
  62070. raw_init();
  62071. #endif /* LWIP_RAW */
  62072. #if LWIP_UDP
  62073. udp_init();
  62074. 80194f6: f008 f8db bl 80216b0 <udp_init>
  62075. #endif /* LWIP_UDP */
  62076. #if LWIP_TCP
  62077. tcp_init();
  62078. 80194fa: f001 fe91 bl 801b220 <tcp_init>
  62079. #if PPP_SUPPORT
  62080. ppp_init();
  62081. #endif
  62082. #if LWIP_TIMERS
  62083. sys_timeouts_init();
  62084. 80194fe: f008 f817 bl 8021530 <sys_timeouts_init>
  62085. #endif /* LWIP_TIMERS */
  62086. }
  62087. 8019502: bf00 nop
  62088. 8019504: 3708 adds r7, #8
  62089. 8019506: 46bd mov sp, r7
  62090. 8019508: bd80 pop {r7, pc}
  62091. ...
  62092. 0801950c <ptr_to_mem>:
  62093. #define mem_overflow_check_element(mem)
  62094. #endif /* MEM_OVERFLOW_CHECK */
  62095. static struct mem *
  62096. ptr_to_mem(mem_size_t ptr)
  62097. {
  62098. 801950c: b480 push {r7}
  62099. 801950e: b083 sub sp, #12
  62100. 8019510: af00 add r7, sp, #0
  62101. 8019512: 6078 str r0, [r7, #4]
  62102. return (struct mem *)(void *)&ram[ptr];
  62103. 8019514: 4b04 ldr r3, [pc, #16] @ (8019528 <ptr_to_mem+0x1c>)
  62104. 8019516: 681a ldr r2, [r3, #0]
  62105. 8019518: 687b ldr r3, [r7, #4]
  62106. 801951a: 4413 add r3, r2
  62107. }
  62108. 801951c: 4618 mov r0, r3
  62109. 801951e: 370c adds r7, #12
  62110. 8019520: 46bd mov sp, r7
  62111. 8019522: f85d 7b04 ldr.w r7, [sp], #4
  62112. 8019526: 4770 bx lr
  62113. 8019528: 24024420 .word 0x24024420
  62114. 0801952c <mem_to_ptr>:
  62115. static mem_size_t
  62116. mem_to_ptr(void *mem)
  62117. {
  62118. 801952c: b480 push {r7}
  62119. 801952e: b083 sub sp, #12
  62120. 8019530: af00 add r7, sp, #0
  62121. 8019532: 6078 str r0, [r7, #4]
  62122. return (mem_size_t)((u8_t *)mem - ram);
  62123. 8019534: 4b04 ldr r3, [pc, #16] @ (8019548 <mem_to_ptr+0x1c>)
  62124. 8019536: 681b ldr r3, [r3, #0]
  62125. 8019538: 687a ldr r2, [r7, #4]
  62126. 801953a: 1ad3 subs r3, r2, r3
  62127. }
  62128. 801953c: 4618 mov r0, r3
  62129. 801953e: 370c adds r7, #12
  62130. 8019540: 46bd mov sp, r7
  62131. 8019542: f85d 7b04 ldr.w r7, [sp], #4
  62132. 8019546: 4770 bx lr
  62133. 8019548: 24024420 .word 0x24024420
  62134. 0801954c <plug_holes>:
  62135. * This assumes access to the heap is protected by the calling function
  62136. * already.
  62137. */
  62138. static void
  62139. plug_holes(struct mem *mem)
  62140. {
  62141. 801954c: b590 push {r4, r7, lr}
  62142. 801954e: b085 sub sp, #20
  62143. 8019550: af00 add r7, sp, #0
  62144. 8019552: 6078 str r0, [r7, #4]
  62145. struct mem *nmem;
  62146. struct mem *pmem;
  62147. LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram);
  62148. 8019554: 4b45 ldr r3, [pc, #276] @ (801966c <plug_holes+0x120>)
  62149. 8019556: 681b ldr r3, [r3, #0]
  62150. 8019558: 687a ldr r2, [r7, #4]
  62151. 801955a: 429a cmp r2, r3
  62152. 801955c: d206 bcs.n 801956c <plug_holes+0x20>
  62153. 801955e: 4b44 ldr r3, [pc, #272] @ (8019670 <plug_holes+0x124>)
  62154. 8019560: f240 12df movw r2, #479 @ 0x1df
  62155. 8019564: 4943 ldr r1, [pc, #268] @ (8019674 <plug_holes+0x128>)
  62156. 8019566: 4844 ldr r0, [pc, #272] @ (8019678 <plug_holes+0x12c>)
  62157. 8019568: f010 fe28 bl 802a1bc <iprintf>
  62158. LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end);
  62159. 801956c: 4b43 ldr r3, [pc, #268] @ (801967c <plug_holes+0x130>)
  62160. 801956e: 681b ldr r3, [r3, #0]
  62161. 8019570: 687a ldr r2, [r7, #4]
  62162. 8019572: 429a cmp r2, r3
  62163. 8019574: d306 bcc.n 8019584 <plug_holes+0x38>
  62164. 8019576: 4b3e ldr r3, [pc, #248] @ (8019670 <plug_holes+0x124>)
  62165. 8019578: f44f 72f0 mov.w r2, #480 @ 0x1e0
  62166. 801957c: 4940 ldr r1, [pc, #256] @ (8019680 <plug_holes+0x134>)
  62167. 801957e: 483e ldr r0, [pc, #248] @ (8019678 <plug_holes+0x12c>)
  62168. 8019580: f010 fe1c bl 802a1bc <iprintf>
  62169. LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0);
  62170. 8019584: 687b ldr r3, [r7, #4]
  62171. 8019586: 7a1b ldrb r3, [r3, #8]
  62172. 8019588: 2b00 cmp r3, #0
  62173. 801958a: d006 beq.n 801959a <plug_holes+0x4e>
  62174. 801958c: 4b38 ldr r3, [pc, #224] @ (8019670 <plug_holes+0x124>)
  62175. 801958e: f240 12e1 movw r2, #481 @ 0x1e1
  62176. 8019592: 493c ldr r1, [pc, #240] @ (8019684 <plug_holes+0x138>)
  62177. 8019594: 4838 ldr r0, [pc, #224] @ (8019678 <plug_holes+0x12c>)
  62178. 8019596: f010 fe11 bl 802a1bc <iprintf>
  62179. /* plug hole forward */
  62180. LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED);
  62181. 801959a: 687b ldr r3, [r7, #4]
  62182. 801959c: 681b ldr r3, [r3, #0]
  62183. 801959e: 4a3a ldr r2, [pc, #232] @ (8019688 <plug_holes+0x13c>)
  62184. 80195a0: 4293 cmp r3, r2
  62185. 80195a2: d906 bls.n 80195b2 <plug_holes+0x66>
  62186. 80195a4: 4b32 ldr r3, [pc, #200] @ (8019670 <plug_holes+0x124>)
  62187. 80195a6: f44f 72f2 mov.w r2, #484 @ 0x1e4
  62188. 80195aa: 4938 ldr r1, [pc, #224] @ (801968c <plug_holes+0x140>)
  62189. 80195ac: 4832 ldr r0, [pc, #200] @ (8019678 <plug_holes+0x12c>)
  62190. 80195ae: f010 fe05 bl 802a1bc <iprintf>
  62191. nmem = ptr_to_mem(mem->next);
  62192. 80195b2: 687b ldr r3, [r7, #4]
  62193. 80195b4: 681b ldr r3, [r3, #0]
  62194. 80195b6: 4618 mov r0, r3
  62195. 80195b8: f7ff ffa8 bl 801950c <ptr_to_mem>
  62196. 80195bc: 60f8 str r0, [r7, #12]
  62197. if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) {
  62198. 80195be: 687a ldr r2, [r7, #4]
  62199. 80195c0: 68fb ldr r3, [r7, #12]
  62200. 80195c2: 429a cmp r2, r3
  62201. 80195c4: d024 beq.n 8019610 <plug_holes+0xc4>
  62202. 80195c6: 68fb ldr r3, [r7, #12]
  62203. 80195c8: 7a1b ldrb r3, [r3, #8]
  62204. 80195ca: 2b00 cmp r3, #0
  62205. 80195cc: d120 bne.n 8019610 <plug_holes+0xc4>
  62206. 80195ce: 4b2b ldr r3, [pc, #172] @ (801967c <plug_holes+0x130>)
  62207. 80195d0: 681b ldr r3, [r3, #0]
  62208. 80195d2: 68fa ldr r2, [r7, #12]
  62209. 80195d4: 429a cmp r2, r3
  62210. 80195d6: d01b beq.n 8019610 <plug_holes+0xc4>
  62211. /* if mem->next is unused and not end of ram, combine mem and mem->next */
  62212. if (lfree == nmem) {
  62213. 80195d8: 4b2d ldr r3, [pc, #180] @ (8019690 <plug_holes+0x144>)
  62214. 80195da: 681b ldr r3, [r3, #0]
  62215. 80195dc: 68fa ldr r2, [r7, #12]
  62216. 80195de: 429a cmp r2, r3
  62217. 80195e0: d102 bne.n 80195e8 <plug_holes+0x9c>
  62218. lfree = mem;
  62219. 80195e2: 4a2b ldr r2, [pc, #172] @ (8019690 <plug_holes+0x144>)
  62220. 80195e4: 687b ldr r3, [r7, #4]
  62221. 80195e6: 6013 str r3, [r2, #0]
  62222. }
  62223. mem->next = nmem->next;
  62224. 80195e8: 68fb ldr r3, [r7, #12]
  62225. 80195ea: 681a ldr r2, [r3, #0]
  62226. 80195ec: 687b ldr r3, [r7, #4]
  62227. 80195ee: 601a str r2, [r3, #0]
  62228. if (nmem->next != MEM_SIZE_ALIGNED) {
  62229. 80195f0: 68fb ldr r3, [r7, #12]
  62230. 80195f2: 681b ldr r3, [r3, #0]
  62231. 80195f4: 4a24 ldr r2, [pc, #144] @ (8019688 <plug_holes+0x13c>)
  62232. 80195f6: 4293 cmp r3, r2
  62233. 80195f8: d00a beq.n 8019610 <plug_holes+0xc4>
  62234. ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem);
  62235. 80195fa: 68fb ldr r3, [r7, #12]
  62236. 80195fc: 681b ldr r3, [r3, #0]
  62237. 80195fe: 4618 mov r0, r3
  62238. 8019600: f7ff ff84 bl 801950c <ptr_to_mem>
  62239. 8019604: 4604 mov r4, r0
  62240. 8019606: 6878 ldr r0, [r7, #4]
  62241. 8019608: f7ff ff90 bl 801952c <mem_to_ptr>
  62242. 801960c: 4603 mov r3, r0
  62243. 801960e: 6063 str r3, [r4, #4]
  62244. }
  62245. }
  62246. /* plug hole backward */
  62247. pmem = ptr_to_mem(mem->prev);
  62248. 8019610: 687b ldr r3, [r7, #4]
  62249. 8019612: 685b ldr r3, [r3, #4]
  62250. 8019614: 4618 mov r0, r3
  62251. 8019616: f7ff ff79 bl 801950c <ptr_to_mem>
  62252. 801961a: 60b8 str r0, [r7, #8]
  62253. if (pmem != mem && pmem->used == 0) {
  62254. 801961c: 68ba ldr r2, [r7, #8]
  62255. 801961e: 687b ldr r3, [r7, #4]
  62256. 8019620: 429a cmp r2, r3
  62257. 8019622: d01f beq.n 8019664 <plug_holes+0x118>
  62258. 8019624: 68bb ldr r3, [r7, #8]
  62259. 8019626: 7a1b ldrb r3, [r3, #8]
  62260. 8019628: 2b00 cmp r3, #0
  62261. 801962a: d11b bne.n 8019664 <plug_holes+0x118>
  62262. /* if mem->prev is unused, combine mem and mem->prev */
  62263. if (lfree == mem) {
  62264. 801962c: 4b18 ldr r3, [pc, #96] @ (8019690 <plug_holes+0x144>)
  62265. 801962e: 681b ldr r3, [r3, #0]
  62266. 8019630: 687a ldr r2, [r7, #4]
  62267. 8019632: 429a cmp r2, r3
  62268. 8019634: d102 bne.n 801963c <plug_holes+0xf0>
  62269. lfree = pmem;
  62270. 8019636: 4a16 ldr r2, [pc, #88] @ (8019690 <plug_holes+0x144>)
  62271. 8019638: 68bb ldr r3, [r7, #8]
  62272. 801963a: 6013 str r3, [r2, #0]
  62273. }
  62274. pmem->next = mem->next;
  62275. 801963c: 687b ldr r3, [r7, #4]
  62276. 801963e: 681a ldr r2, [r3, #0]
  62277. 8019640: 68bb ldr r3, [r7, #8]
  62278. 8019642: 601a str r2, [r3, #0]
  62279. if (mem->next != MEM_SIZE_ALIGNED) {
  62280. 8019644: 687b ldr r3, [r7, #4]
  62281. 8019646: 681b ldr r3, [r3, #0]
  62282. 8019648: 4a0f ldr r2, [pc, #60] @ (8019688 <plug_holes+0x13c>)
  62283. 801964a: 4293 cmp r3, r2
  62284. 801964c: d00a beq.n 8019664 <plug_holes+0x118>
  62285. ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem);
  62286. 801964e: 687b ldr r3, [r7, #4]
  62287. 8019650: 681b ldr r3, [r3, #0]
  62288. 8019652: 4618 mov r0, r3
  62289. 8019654: f7ff ff5a bl 801950c <ptr_to_mem>
  62290. 8019658: 4604 mov r4, r0
  62291. 801965a: 68b8 ldr r0, [r7, #8]
  62292. 801965c: f7ff ff66 bl 801952c <mem_to_ptr>
  62293. 8019660: 4603 mov r3, r0
  62294. 8019662: 6063 str r3, [r4, #4]
  62295. }
  62296. }
  62297. }
  62298. 8019664: bf00 nop
  62299. 8019666: 3714 adds r7, #20
  62300. 8019668: 46bd mov sp, r7
  62301. 801966a: bd90 pop {r4, r7, pc}
  62302. 801966c: 24024420 .word 0x24024420
  62303. 8019670: 0802e310 .word 0x0802e310
  62304. 8019674: 0802e340 .word 0x0802e340
  62305. 8019678: 0802e358 .word 0x0802e358
  62306. 801967c: 24024424 .word 0x24024424
  62307. 8019680: 0802e380 .word 0x0802e380
  62308. 8019684: 0802e39c .word 0x0802e39c
  62309. 8019688: 0001ffe8 .word 0x0001ffe8
  62310. 801968c: 0802e3b8 .word 0x0802e3b8
  62311. 8019690: 2402442c .word 0x2402442c
  62312. 08019694 <mem_init>:
  62313. /**
  62314. * Zero the heap and initialize start, end and lowest-free
  62315. */
  62316. void
  62317. mem_init(void)
  62318. {
  62319. 8019694: b580 push {r7, lr}
  62320. 8019696: b082 sub sp, #8
  62321. 8019698: af00 add r7, sp, #0
  62322. LWIP_ASSERT("Sanity check alignment",
  62323. (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT - 1)) == 0);
  62324. /* align the heap */
  62325. ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER);
  62326. 801969a: 4b1b ldr r3, [pc, #108] @ (8019708 <mem_init+0x74>)
  62327. 801969c: 4a1b ldr r2, [pc, #108] @ (801970c <mem_init+0x78>)
  62328. 801969e: 601a str r2, [r3, #0]
  62329. /* initialize the start of the heap */
  62330. mem = (struct mem *)(void *)ram;
  62331. 80196a0: 4b19 ldr r3, [pc, #100] @ (8019708 <mem_init+0x74>)
  62332. 80196a2: 681b ldr r3, [r3, #0]
  62333. 80196a4: 607b str r3, [r7, #4]
  62334. mem->next = MEM_SIZE_ALIGNED;
  62335. 80196a6: 687b ldr r3, [r7, #4]
  62336. 80196a8: 4a19 ldr r2, [pc, #100] @ (8019710 <mem_init+0x7c>)
  62337. 80196aa: 601a str r2, [r3, #0]
  62338. mem->prev = 0;
  62339. 80196ac: 687b ldr r3, [r7, #4]
  62340. 80196ae: 2200 movs r2, #0
  62341. 80196b0: 605a str r2, [r3, #4]
  62342. mem->used = 0;
  62343. 80196b2: 687b ldr r3, [r7, #4]
  62344. 80196b4: 2200 movs r2, #0
  62345. 80196b6: 721a strb r2, [r3, #8]
  62346. /* initialize the end of the heap */
  62347. ram_end = ptr_to_mem(MEM_SIZE_ALIGNED);
  62348. 80196b8: 4815 ldr r0, [pc, #84] @ (8019710 <mem_init+0x7c>)
  62349. 80196ba: f7ff ff27 bl 801950c <ptr_to_mem>
  62350. 80196be: 4603 mov r3, r0
  62351. 80196c0: 4a14 ldr r2, [pc, #80] @ (8019714 <mem_init+0x80>)
  62352. 80196c2: 6013 str r3, [r2, #0]
  62353. ram_end->used = 1;
  62354. 80196c4: 4b13 ldr r3, [pc, #76] @ (8019714 <mem_init+0x80>)
  62355. 80196c6: 681b ldr r3, [r3, #0]
  62356. 80196c8: 2201 movs r2, #1
  62357. 80196ca: 721a strb r2, [r3, #8]
  62358. ram_end->next = MEM_SIZE_ALIGNED;
  62359. 80196cc: 4b11 ldr r3, [pc, #68] @ (8019714 <mem_init+0x80>)
  62360. 80196ce: 681b ldr r3, [r3, #0]
  62361. 80196d0: 4a0f ldr r2, [pc, #60] @ (8019710 <mem_init+0x7c>)
  62362. 80196d2: 601a str r2, [r3, #0]
  62363. ram_end->prev = MEM_SIZE_ALIGNED;
  62364. 80196d4: 4b0f ldr r3, [pc, #60] @ (8019714 <mem_init+0x80>)
  62365. 80196d6: 681b ldr r3, [r3, #0]
  62366. 80196d8: 4a0d ldr r2, [pc, #52] @ (8019710 <mem_init+0x7c>)
  62367. 80196da: 605a str r2, [r3, #4]
  62368. MEM_SANITY();
  62369. /* initialize the lowest-free pointer to the start of the heap */
  62370. lfree = (struct mem *)(void *)ram;
  62371. 80196dc: 4b0a ldr r3, [pc, #40] @ (8019708 <mem_init+0x74>)
  62372. 80196de: 681b ldr r3, [r3, #0]
  62373. 80196e0: 4a0d ldr r2, [pc, #52] @ (8019718 <mem_init+0x84>)
  62374. 80196e2: 6013 str r3, [r2, #0]
  62375. MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED);
  62376. if (sys_mutex_new(&mem_mutex) != ERR_OK) {
  62377. 80196e4: 480d ldr r0, [pc, #52] @ (801971c <mem_init+0x88>)
  62378. 80196e6: f00d fa81 bl 8026bec <sys_mutex_new>
  62379. 80196ea: 4603 mov r3, r0
  62380. 80196ec: 2b00 cmp r3, #0
  62381. 80196ee: d006 beq.n 80196fe <mem_init+0x6a>
  62382. LWIP_ASSERT("failed to create mem_mutex", 0);
  62383. 80196f0: 4b0b ldr r3, [pc, #44] @ (8019720 <mem_init+0x8c>)
  62384. 80196f2: f240 221f movw r2, #543 @ 0x21f
  62385. 80196f6: 490b ldr r1, [pc, #44] @ (8019724 <mem_init+0x90>)
  62386. 80196f8: 480b ldr r0, [pc, #44] @ (8019728 <mem_init+0x94>)
  62387. 80196fa: f010 fd5f bl 802a1bc <iprintf>
  62388. }
  62389. }
  62390. 80196fe: bf00 nop
  62391. 8019700: 3708 adds r7, #8
  62392. 8019702: 46bd mov sp, r7
  62393. 8019704: bd80 pop {r7, pc}
  62394. 8019706: bf00 nop
  62395. 8019708: 24024420 .word 0x24024420
  62396. 801970c: 24020000 .word 0x24020000
  62397. 8019710: 0001ffe8 .word 0x0001ffe8
  62398. 8019714: 24024424 .word 0x24024424
  62399. 8019718: 2402442c .word 0x2402442c
  62400. 801971c: 24024428 .word 0x24024428
  62401. 8019720: 0802e310 .word 0x0802e310
  62402. 8019724: 0802e3e4 .word 0x0802e3e4
  62403. 8019728: 0802e358 .word 0x0802e358
  62404. 0801972c <mem_link_valid>:
  62405. /* Check if a struct mem is correctly linked.
  62406. * If not, double-free is a possible reason.
  62407. */
  62408. static int
  62409. mem_link_valid(struct mem *mem)
  62410. {
  62411. 801972c: b580 push {r7, lr}
  62412. 801972e: b086 sub sp, #24
  62413. 8019730: af00 add r7, sp, #0
  62414. 8019732: 6078 str r0, [r7, #4]
  62415. struct mem *nmem, *pmem;
  62416. mem_size_t rmem_idx;
  62417. rmem_idx = mem_to_ptr(mem);
  62418. 8019734: 6878 ldr r0, [r7, #4]
  62419. 8019736: f7ff fef9 bl 801952c <mem_to_ptr>
  62420. 801973a: 6178 str r0, [r7, #20]
  62421. nmem = ptr_to_mem(mem->next);
  62422. 801973c: 687b ldr r3, [r7, #4]
  62423. 801973e: 681b ldr r3, [r3, #0]
  62424. 8019740: 4618 mov r0, r3
  62425. 8019742: f7ff fee3 bl 801950c <ptr_to_mem>
  62426. 8019746: 6138 str r0, [r7, #16]
  62427. pmem = ptr_to_mem(mem->prev);
  62428. 8019748: 687b ldr r3, [r7, #4]
  62429. 801974a: 685b ldr r3, [r3, #4]
  62430. 801974c: 4618 mov r0, r3
  62431. 801974e: f7ff fedd bl 801950c <ptr_to_mem>
  62432. 8019752: 60f8 str r0, [r7, #12]
  62433. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  62434. 8019754: 687b ldr r3, [r7, #4]
  62435. 8019756: 681b ldr r3, [r3, #0]
  62436. 8019758: 4a11 ldr r2, [pc, #68] @ (80197a0 <mem_link_valid+0x74>)
  62437. 801975a: 4293 cmp r3, r2
  62438. 801975c: d818 bhi.n 8019790 <mem_link_valid+0x64>
  62439. 801975e: 687b ldr r3, [r7, #4]
  62440. 8019760: 685b ldr r3, [r3, #4]
  62441. 8019762: 4a0f ldr r2, [pc, #60] @ (80197a0 <mem_link_valid+0x74>)
  62442. 8019764: 4293 cmp r3, r2
  62443. 8019766: d813 bhi.n 8019790 <mem_link_valid+0x64>
  62444. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  62445. 8019768: 687b ldr r3, [r7, #4]
  62446. 801976a: 685b ldr r3, [r3, #4]
  62447. if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) ||
  62448. 801976c: 697a ldr r2, [r7, #20]
  62449. 801976e: 429a cmp r2, r3
  62450. 8019770: d004 beq.n 801977c <mem_link_valid+0x50>
  62451. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  62452. 8019772: 68fb ldr r3, [r7, #12]
  62453. 8019774: 681b ldr r3, [r3, #0]
  62454. 8019776: 697a ldr r2, [r7, #20]
  62455. 8019778: 429a cmp r2, r3
  62456. 801977a: d109 bne.n 8019790 <mem_link_valid+0x64>
  62457. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  62458. 801977c: 4b09 ldr r3, [pc, #36] @ (80197a4 <mem_link_valid+0x78>)
  62459. 801977e: 681b ldr r3, [r3, #0]
  62460. ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) ||
  62461. 8019780: 693a ldr r2, [r7, #16]
  62462. 8019782: 429a cmp r2, r3
  62463. 8019784: d006 beq.n 8019794 <mem_link_valid+0x68>
  62464. ((nmem != ram_end) && (nmem->prev != rmem_idx))) {
  62465. 8019786: 693b ldr r3, [r7, #16]
  62466. 8019788: 685b ldr r3, [r3, #4]
  62467. 801978a: 697a ldr r2, [r7, #20]
  62468. 801978c: 429a cmp r2, r3
  62469. 801978e: d001 beq.n 8019794 <mem_link_valid+0x68>
  62470. return 0;
  62471. 8019790: 2300 movs r3, #0
  62472. 8019792: e000 b.n 8019796 <mem_link_valid+0x6a>
  62473. }
  62474. return 1;
  62475. 8019794: 2301 movs r3, #1
  62476. }
  62477. 8019796: 4618 mov r0, r3
  62478. 8019798: 3718 adds r7, #24
  62479. 801979a: 46bd mov sp, r7
  62480. 801979c: bd80 pop {r7, pc}
  62481. 801979e: bf00 nop
  62482. 80197a0: 0001ffe8 .word 0x0001ffe8
  62483. 80197a4: 24024424 .word 0x24024424
  62484. 080197a8 <mem_free>:
  62485. * @param rmem is the data portion of a struct mem as returned by a previous
  62486. * call to mem_malloc()
  62487. */
  62488. void
  62489. mem_free(void *rmem)
  62490. {
  62491. 80197a8: b580 push {r7, lr}
  62492. 80197aa: b088 sub sp, #32
  62493. 80197ac: af00 add r7, sp, #0
  62494. 80197ae: 6078 str r0, [r7, #4]
  62495. struct mem *mem;
  62496. LWIP_MEM_FREE_DECL_PROTECT();
  62497. if (rmem == NULL) {
  62498. 80197b0: 687b ldr r3, [r7, #4]
  62499. 80197b2: 2b00 cmp r3, #0
  62500. 80197b4: d070 beq.n 8019898 <mem_free+0xf0>
  62501. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("mem_free(p == NULL) was called.\n"));
  62502. return;
  62503. }
  62504. if ((((mem_ptr_t)rmem) & (MEM_ALIGNMENT - 1)) != 0) {
  62505. 80197b6: 687b ldr r3, [r7, #4]
  62506. 80197b8: f003 0303 and.w r3, r3, #3
  62507. 80197bc: 2b00 cmp r3, #0
  62508. 80197be: d00d beq.n 80197dc <mem_free+0x34>
  62509. LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment");
  62510. 80197c0: 4b37 ldr r3, [pc, #220] @ (80198a0 <mem_free+0xf8>)
  62511. 80197c2: f240 2273 movw r2, #627 @ 0x273
  62512. 80197c6: 4937 ldr r1, [pc, #220] @ (80198a4 <mem_free+0xfc>)
  62513. 80197c8: 4837 ldr r0, [pc, #220] @ (80198a8 <mem_free+0x100>)
  62514. 80197ca: f010 fcf7 bl 802a1bc <iprintf>
  62515. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: sanity check alignment\n"));
  62516. /* protect mem stats from concurrent access */
  62517. MEM_STATS_INC_LOCKED(illegal);
  62518. 80197ce: f00d fa5f bl 8026c90 <sys_arch_protect>
  62519. 80197d2: 60f8 str r0, [r7, #12]
  62520. 80197d4: 68f8 ldr r0, [r7, #12]
  62521. 80197d6: f00d fa69 bl 8026cac <sys_arch_unprotect>
  62522. return;
  62523. 80197da: e05e b.n 801989a <mem_free+0xf2>
  62524. }
  62525. /* Get the corresponding struct mem: */
  62526. /* cast through void* to get rid of alignment warnings */
  62527. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  62528. 80197dc: 687b ldr r3, [r7, #4]
  62529. 80197de: 3b0c subs r3, #12
  62530. 80197e0: 61fb str r3, [r7, #28]
  62531. if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) {
  62532. 80197e2: 4b32 ldr r3, [pc, #200] @ (80198ac <mem_free+0x104>)
  62533. 80197e4: 681b ldr r3, [r3, #0]
  62534. 80197e6: 69fa ldr r2, [r7, #28]
  62535. 80197e8: 429a cmp r2, r3
  62536. 80197ea: d306 bcc.n 80197fa <mem_free+0x52>
  62537. 80197ec: 687b ldr r3, [r7, #4]
  62538. 80197ee: f103 020c add.w r2, r3, #12
  62539. 80197f2: 4b2f ldr r3, [pc, #188] @ (80198b0 <mem_free+0x108>)
  62540. 80197f4: 681b ldr r3, [r3, #0]
  62541. 80197f6: 429a cmp r2, r3
  62542. 80197f8: d90d bls.n 8019816 <mem_free+0x6e>
  62543. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory");
  62544. 80197fa: 4b29 ldr r3, [pc, #164] @ (80198a0 <mem_free+0xf8>)
  62545. 80197fc: f240 227f movw r2, #639 @ 0x27f
  62546. 8019800: 492c ldr r1, [pc, #176] @ (80198b4 <mem_free+0x10c>)
  62547. 8019802: 4829 ldr r0, [pc, #164] @ (80198a8 <mem_free+0x100>)
  62548. 8019804: f010 fcda bl 802a1bc <iprintf>
  62549. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n"));
  62550. /* protect mem stats from concurrent access */
  62551. MEM_STATS_INC_LOCKED(illegal);
  62552. 8019808: f00d fa42 bl 8026c90 <sys_arch_protect>
  62553. 801980c: 6138 str r0, [r7, #16]
  62554. 801980e: 6938 ldr r0, [r7, #16]
  62555. 8019810: f00d fa4c bl 8026cac <sys_arch_unprotect>
  62556. return;
  62557. 8019814: e041 b.n 801989a <mem_free+0xf2>
  62558. }
  62559. #if MEM_OVERFLOW_CHECK
  62560. mem_overflow_check_element(mem);
  62561. #endif
  62562. /* protect the heap from concurrent access */
  62563. LWIP_MEM_FREE_PROTECT();
  62564. 8019816: 4828 ldr r0, [pc, #160] @ (80198b8 <mem_free+0x110>)
  62565. 8019818: f00d f9fe bl 8026c18 <sys_mutex_lock>
  62566. /* mem has to be in a used state */
  62567. if (!mem->used) {
  62568. 801981c: 69fb ldr r3, [r7, #28]
  62569. 801981e: 7a1b ldrb r3, [r3, #8]
  62570. 8019820: 2b00 cmp r3, #0
  62571. 8019822: d110 bne.n 8019846 <mem_free+0x9e>
  62572. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free");
  62573. 8019824: 4b1e ldr r3, [pc, #120] @ (80198a0 <mem_free+0xf8>)
  62574. 8019826: f44f 7223 mov.w r2, #652 @ 0x28c
  62575. 801982a: 4924 ldr r1, [pc, #144] @ (80198bc <mem_free+0x114>)
  62576. 801982c: 481e ldr r0, [pc, #120] @ (80198a8 <mem_free+0x100>)
  62577. 801982e: f010 fcc5 bl 802a1bc <iprintf>
  62578. LWIP_MEM_FREE_UNPROTECT();
  62579. 8019832: 4821 ldr r0, [pc, #132] @ (80198b8 <mem_free+0x110>)
  62580. 8019834: f00d f9ff bl 8026c36 <sys_mutex_unlock>
  62581. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: double free?\n"));
  62582. /* protect mem stats from concurrent access */
  62583. MEM_STATS_INC_LOCKED(illegal);
  62584. 8019838: f00d fa2a bl 8026c90 <sys_arch_protect>
  62585. 801983c: 6178 str r0, [r7, #20]
  62586. 801983e: 6978 ldr r0, [r7, #20]
  62587. 8019840: f00d fa34 bl 8026cac <sys_arch_unprotect>
  62588. return;
  62589. 8019844: e029 b.n 801989a <mem_free+0xf2>
  62590. }
  62591. if (!mem_link_valid(mem)) {
  62592. 8019846: 69f8 ldr r0, [r7, #28]
  62593. 8019848: f7ff ff70 bl 801972c <mem_link_valid>
  62594. 801984c: 4603 mov r3, r0
  62595. 801984e: 2b00 cmp r3, #0
  62596. 8019850: d110 bne.n 8019874 <mem_free+0xcc>
  62597. LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free");
  62598. 8019852: 4b13 ldr r3, [pc, #76] @ (80198a0 <mem_free+0xf8>)
  62599. 8019854: f240 2295 movw r2, #661 @ 0x295
  62600. 8019858: 4919 ldr r1, [pc, #100] @ (80198c0 <mem_free+0x118>)
  62601. 801985a: 4813 ldr r0, [pc, #76] @ (80198a8 <mem_free+0x100>)
  62602. 801985c: f010 fcae bl 802a1bc <iprintf>
  62603. LWIP_MEM_FREE_UNPROTECT();
  62604. 8019860: 4815 ldr r0, [pc, #84] @ (80198b8 <mem_free+0x110>)
  62605. 8019862: f00d f9e8 bl 8026c36 <sys_mutex_unlock>
  62606. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: non-linked: double free?\n"));
  62607. /* protect mem stats from concurrent access */
  62608. MEM_STATS_INC_LOCKED(illegal);
  62609. 8019866: f00d fa13 bl 8026c90 <sys_arch_protect>
  62610. 801986a: 61b8 str r0, [r7, #24]
  62611. 801986c: 69b8 ldr r0, [r7, #24]
  62612. 801986e: f00d fa1d bl 8026cac <sys_arch_unprotect>
  62613. return;
  62614. 8019872: e012 b.n 801989a <mem_free+0xf2>
  62615. }
  62616. /* mem is now unused. */
  62617. mem->used = 0;
  62618. 8019874: 69fb ldr r3, [r7, #28]
  62619. 8019876: 2200 movs r2, #0
  62620. 8019878: 721a strb r2, [r3, #8]
  62621. if (mem < lfree) {
  62622. 801987a: 4b12 ldr r3, [pc, #72] @ (80198c4 <mem_free+0x11c>)
  62623. 801987c: 681b ldr r3, [r3, #0]
  62624. 801987e: 69fa ldr r2, [r7, #28]
  62625. 8019880: 429a cmp r2, r3
  62626. 8019882: d202 bcs.n 801988a <mem_free+0xe2>
  62627. /* the newly freed struct is now the lowest */
  62628. lfree = mem;
  62629. 8019884: 4a0f ldr r2, [pc, #60] @ (80198c4 <mem_free+0x11c>)
  62630. 8019886: 69fb ldr r3, [r7, #28]
  62631. 8019888: 6013 str r3, [r2, #0]
  62632. }
  62633. MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram)));
  62634. /* finally, see if prev or next are free also */
  62635. plug_holes(mem);
  62636. 801988a: 69f8 ldr r0, [r7, #28]
  62637. 801988c: f7ff fe5e bl 801954c <plug_holes>
  62638. MEM_SANITY();
  62639. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  62640. mem_free_count = 1;
  62641. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  62642. LWIP_MEM_FREE_UNPROTECT();
  62643. 8019890: 4809 ldr r0, [pc, #36] @ (80198b8 <mem_free+0x110>)
  62644. 8019892: f00d f9d0 bl 8026c36 <sys_mutex_unlock>
  62645. 8019896: e000 b.n 801989a <mem_free+0xf2>
  62646. return;
  62647. 8019898: bf00 nop
  62648. }
  62649. 801989a: 3720 adds r7, #32
  62650. 801989c: 46bd mov sp, r7
  62651. 801989e: bd80 pop {r7, pc}
  62652. 80198a0: 0802e310 .word 0x0802e310
  62653. 80198a4: 0802e400 .word 0x0802e400
  62654. 80198a8: 0802e358 .word 0x0802e358
  62655. 80198ac: 24024420 .word 0x24024420
  62656. 80198b0: 24024424 .word 0x24024424
  62657. 80198b4: 0802e424 .word 0x0802e424
  62658. 80198b8: 24024428 .word 0x24024428
  62659. 80198bc: 0802e440 .word 0x0802e440
  62660. 80198c0: 0802e468 .word 0x0802e468
  62661. 80198c4: 2402442c .word 0x2402442c
  62662. 080198c8 <mem_trim>:
  62663. * or NULL if newsize is > old size, in which case rmem is NOT touched
  62664. * or freed!
  62665. */
  62666. void *
  62667. mem_trim(void *rmem, mem_size_t new_size)
  62668. {
  62669. 80198c8: b580 push {r7, lr}
  62670. 80198ca: b08a sub sp, #40 @ 0x28
  62671. 80198cc: af00 add r7, sp, #0
  62672. 80198ce: 6078 str r0, [r7, #4]
  62673. 80198d0: 6039 str r1, [r7, #0]
  62674. /* use the FREE_PROTECT here: it protects with sem OR SYS_ARCH_PROTECT */
  62675. LWIP_MEM_FREE_DECL_PROTECT();
  62676. /* Expand the size of the allocated memory region so that we can
  62677. adjust for alignment. */
  62678. newsize = (mem_size_t)LWIP_MEM_ALIGN_SIZE(new_size);
  62679. 80198d2: 683b ldr r3, [r7, #0]
  62680. 80198d4: 3303 adds r3, #3
  62681. 80198d6: f023 0303 bic.w r3, r3, #3
  62682. 80198da: 627b str r3, [r7, #36] @ 0x24
  62683. if (newsize < MIN_SIZE_ALIGNED) {
  62684. 80198dc: 6a7b ldr r3, [r7, #36] @ 0x24
  62685. 80198de: 2b0b cmp r3, #11
  62686. 80198e0: d801 bhi.n 80198e6 <mem_trim+0x1e>
  62687. /* every data block must be at least MIN_SIZE_ALIGNED long */
  62688. newsize = MIN_SIZE_ALIGNED;
  62689. 80198e2: 230c movs r3, #12
  62690. 80198e4: 627b str r3, [r7, #36] @ 0x24
  62691. }
  62692. #if MEM_OVERFLOW_CHECK
  62693. newsize += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  62694. #endif
  62695. if ((newsize > MEM_SIZE_ALIGNED) || (newsize < new_size)) {
  62696. 80198e6: 6a7b ldr r3, [r7, #36] @ 0x24
  62697. 80198e8: 4a6e ldr r2, [pc, #440] @ (8019aa4 <mem_trim+0x1dc>)
  62698. 80198ea: 4293 cmp r3, r2
  62699. 80198ec: d803 bhi.n 80198f6 <mem_trim+0x2e>
  62700. 80198ee: 6a7a ldr r2, [r7, #36] @ 0x24
  62701. 80198f0: 683b ldr r3, [r7, #0]
  62702. 80198f2: 429a cmp r2, r3
  62703. 80198f4: d201 bcs.n 80198fa <mem_trim+0x32>
  62704. return NULL;
  62705. 80198f6: 2300 movs r3, #0
  62706. 80198f8: e0d0 b.n 8019a9c <mem_trim+0x1d4>
  62707. }
  62708. LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram &&
  62709. 80198fa: 4b6b ldr r3, [pc, #428] @ (8019aa8 <mem_trim+0x1e0>)
  62710. 80198fc: 681b ldr r3, [r3, #0]
  62711. 80198fe: 687a ldr r2, [r7, #4]
  62712. 8019900: 429a cmp r2, r3
  62713. 8019902: d304 bcc.n 801990e <mem_trim+0x46>
  62714. 8019904: 4b69 ldr r3, [pc, #420] @ (8019aac <mem_trim+0x1e4>)
  62715. 8019906: 681b ldr r3, [r3, #0]
  62716. 8019908: 687a ldr r2, [r7, #4]
  62717. 801990a: 429a cmp r2, r3
  62718. 801990c: d306 bcc.n 801991c <mem_trim+0x54>
  62719. 801990e: 4b68 ldr r3, [pc, #416] @ (8019ab0 <mem_trim+0x1e8>)
  62720. 8019910: f240 22d1 movw r2, #721 @ 0x2d1
  62721. 8019914: 4967 ldr r1, [pc, #412] @ (8019ab4 <mem_trim+0x1ec>)
  62722. 8019916: 4868 ldr r0, [pc, #416] @ (8019ab8 <mem_trim+0x1f0>)
  62723. 8019918: f010 fc50 bl 802a1bc <iprintf>
  62724. (u8_t *)rmem < (u8_t *)ram_end);
  62725. if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) {
  62726. 801991c: 4b62 ldr r3, [pc, #392] @ (8019aa8 <mem_trim+0x1e0>)
  62727. 801991e: 681b ldr r3, [r3, #0]
  62728. 8019920: 687a ldr r2, [r7, #4]
  62729. 8019922: 429a cmp r2, r3
  62730. 8019924: d304 bcc.n 8019930 <mem_trim+0x68>
  62731. 8019926: 4b61 ldr r3, [pc, #388] @ (8019aac <mem_trim+0x1e4>)
  62732. 8019928: 681b ldr r3, [r3, #0]
  62733. 801992a: 687a ldr r2, [r7, #4]
  62734. 801992c: 429a cmp r2, r3
  62735. 801992e: d307 bcc.n 8019940 <mem_trim+0x78>
  62736. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n"));
  62737. /* protect mem stats from concurrent access */
  62738. MEM_STATS_INC_LOCKED(illegal);
  62739. 8019930: f00d f9ae bl 8026c90 <sys_arch_protect>
  62740. 8019934: 60b8 str r0, [r7, #8]
  62741. 8019936: 68b8 ldr r0, [r7, #8]
  62742. 8019938: f00d f9b8 bl 8026cac <sys_arch_unprotect>
  62743. return rmem;
  62744. 801993c: 687b ldr r3, [r7, #4]
  62745. 801993e: e0ad b.n 8019a9c <mem_trim+0x1d4>
  62746. }
  62747. /* Get the corresponding struct mem ... */
  62748. /* cast through void* to get rid of alignment warnings */
  62749. mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET));
  62750. 8019940: 687b ldr r3, [r7, #4]
  62751. 8019942: 3b0c subs r3, #12
  62752. 8019944: 623b str r3, [r7, #32]
  62753. #if MEM_OVERFLOW_CHECK
  62754. mem_overflow_check_element(mem);
  62755. #endif
  62756. /* ... and its offset pointer */
  62757. ptr = mem_to_ptr(mem);
  62758. 8019946: 6a38 ldr r0, [r7, #32]
  62759. 8019948: f7ff fdf0 bl 801952c <mem_to_ptr>
  62760. 801994c: 61f8 str r0, [r7, #28]
  62761. size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD));
  62762. 801994e: 6a3b ldr r3, [r7, #32]
  62763. 8019950: 681a ldr r2, [r3, #0]
  62764. 8019952: 69fb ldr r3, [r7, #28]
  62765. 8019954: 1ad3 subs r3, r2, r3
  62766. 8019956: 3b0c subs r3, #12
  62767. 8019958: 61bb str r3, [r7, #24]
  62768. LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size);
  62769. 801995a: 6a7a ldr r2, [r7, #36] @ 0x24
  62770. 801995c: 69bb ldr r3, [r7, #24]
  62771. 801995e: 429a cmp r2, r3
  62772. 8019960: d906 bls.n 8019970 <mem_trim+0xa8>
  62773. 8019962: 4b53 ldr r3, [pc, #332] @ (8019ab0 <mem_trim+0x1e8>)
  62774. 8019964: f44f 7239 mov.w r2, #740 @ 0x2e4
  62775. 8019968: 4954 ldr r1, [pc, #336] @ (8019abc <mem_trim+0x1f4>)
  62776. 801996a: 4853 ldr r0, [pc, #332] @ (8019ab8 <mem_trim+0x1f0>)
  62777. 801996c: f010 fc26 bl 802a1bc <iprintf>
  62778. if (newsize > size) {
  62779. 8019970: 6a7a ldr r2, [r7, #36] @ 0x24
  62780. 8019972: 69bb ldr r3, [r7, #24]
  62781. 8019974: 429a cmp r2, r3
  62782. 8019976: d901 bls.n 801997c <mem_trim+0xb4>
  62783. /* not supported */
  62784. return NULL;
  62785. 8019978: 2300 movs r3, #0
  62786. 801997a: e08f b.n 8019a9c <mem_trim+0x1d4>
  62787. }
  62788. if (newsize == size) {
  62789. 801997c: 6a7a ldr r2, [r7, #36] @ 0x24
  62790. 801997e: 69bb ldr r3, [r7, #24]
  62791. 8019980: 429a cmp r2, r3
  62792. 8019982: d101 bne.n 8019988 <mem_trim+0xc0>
  62793. /* No change in size, simply return */
  62794. return rmem;
  62795. 8019984: 687b ldr r3, [r7, #4]
  62796. 8019986: e089 b.n 8019a9c <mem_trim+0x1d4>
  62797. }
  62798. /* protect the heap from concurrent access */
  62799. LWIP_MEM_FREE_PROTECT();
  62800. 8019988: 484d ldr r0, [pc, #308] @ (8019ac0 <mem_trim+0x1f8>)
  62801. 801998a: f00d f945 bl 8026c18 <sys_mutex_lock>
  62802. mem2 = ptr_to_mem(mem->next);
  62803. 801998e: 6a3b ldr r3, [r7, #32]
  62804. 8019990: 681b ldr r3, [r3, #0]
  62805. 8019992: 4618 mov r0, r3
  62806. 8019994: f7ff fdba bl 801950c <ptr_to_mem>
  62807. 8019998: 6178 str r0, [r7, #20]
  62808. if (mem2->used == 0) {
  62809. 801999a: 697b ldr r3, [r7, #20]
  62810. 801999c: 7a1b ldrb r3, [r3, #8]
  62811. 801999e: 2b00 cmp r3, #0
  62812. 80199a0: d13c bne.n 8019a1c <mem_trim+0x154>
  62813. /* The next struct is unused, we can simply move it at little */
  62814. mem_size_t next;
  62815. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  62816. 80199a2: 6a3b ldr r3, [r7, #32]
  62817. 80199a4: 681b ldr r3, [r3, #0]
  62818. 80199a6: 4a3f ldr r2, [pc, #252] @ (8019aa4 <mem_trim+0x1dc>)
  62819. 80199a8: 4293 cmp r3, r2
  62820. 80199aa: d106 bne.n 80199ba <mem_trim+0xf2>
  62821. 80199ac: 4b40 ldr r3, [pc, #256] @ (8019ab0 <mem_trim+0x1e8>)
  62822. 80199ae: f240 22f5 movw r2, #757 @ 0x2f5
  62823. 80199b2: 4944 ldr r1, [pc, #272] @ (8019ac4 <mem_trim+0x1fc>)
  62824. 80199b4: 4840 ldr r0, [pc, #256] @ (8019ab8 <mem_trim+0x1f0>)
  62825. 80199b6: f010 fc01 bl 802a1bc <iprintf>
  62826. /* remember the old next pointer */
  62827. next = mem2->next;
  62828. 80199ba: 697b ldr r3, [r7, #20]
  62829. 80199bc: 681b ldr r3, [r3, #0]
  62830. 80199be: 60fb str r3, [r7, #12]
  62831. /* create new struct mem which is moved directly after the shrinked mem */
  62832. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  62833. 80199c0: 69fa ldr r2, [r7, #28]
  62834. 80199c2: 6a7b ldr r3, [r7, #36] @ 0x24
  62835. 80199c4: 4413 add r3, r2
  62836. 80199c6: 330c adds r3, #12
  62837. 80199c8: 613b str r3, [r7, #16]
  62838. if (lfree == mem2) {
  62839. 80199ca: 4b3f ldr r3, [pc, #252] @ (8019ac8 <mem_trim+0x200>)
  62840. 80199cc: 681b ldr r3, [r3, #0]
  62841. 80199ce: 697a ldr r2, [r7, #20]
  62842. 80199d0: 429a cmp r2, r3
  62843. 80199d2: d105 bne.n 80199e0 <mem_trim+0x118>
  62844. lfree = ptr_to_mem(ptr2);
  62845. 80199d4: 6938 ldr r0, [r7, #16]
  62846. 80199d6: f7ff fd99 bl 801950c <ptr_to_mem>
  62847. 80199da: 4603 mov r3, r0
  62848. 80199dc: 4a3a ldr r2, [pc, #232] @ (8019ac8 <mem_trim+0x200>)
  62849. 80199de: 6013 str r3, [r2, #0]
  62850. }
  62851. mem2 = ptr_to_mem(ptr2);
  62852. 80199e0: 6938 ldr r0, [r7, #16]
  62853. 80199e2: f7ff fd93 bl 801950c <ptr_to_mem>
  62854. 80199e6: 6178 str r0, [r7, #20]
  62855. mem2->used = 0;
  62856. 80199e8: 697b ldr r3, [r7, #20]
  62857. 80199ea: 2200 movs r2, #0
  62858. 80199ec: 721a strb r2, [r3, #8]
  62859. /* restore the next pointer */
  62860. mem2->next = next;
  62861. 80199ee: 697b ldr r3, [r7, #20]
  62862. 80199f0: 68fa ldr r2, [r7, #12]
  62863. 80199f2: 601a str r2, [r3, #0]
  62864. /* link it back to mem */
  62865. mem2->prev = ptr;
  62866. 80199f4: 697b ldr r3, [r7, #20]
  62867. 80199f6: 69fa ldr r2, [r7, #28]
  62868. 80199f8: 605a str r2, [r3, #4]
  62869. /* link mem to it */
  62870. mem->next = ptr2;
  62871. 80199fa: 6a3b ldr r3, [r7, #32]
  62872. 80199fc: 693a ldr r2, [r7, #16]
  62873. 80199fe: 601a str r2, [r3, #0]
  62874. /* last thing to restore linked list: as we have moved mem2,
  62875. * let 'mem2->next->prev' point to mem2 again. but only if mem2->next is not
  62876. * the end of the heap */
  62877. if (mem2->next != MEM_SIZE_ALIGNED) {
  62878. 8019a00: 697b ldr r3, [r7, #20]
  62879. 8019a02: 681b ldr r3, [r3, #0]
  62880. 8019a04: 4a27 ldr r2, [pc, #156] @ (8019aa4 <mem_trim+0x1dc>)
  62881. 8019a06: 4293 cmp r3, r2
  62882. 8019a08: d044 beq.n 8019a94 <mem_trim+0x1cc>
  62883. ptr_to_mem(mem2->next)->prev = ptr2;
  62884. 8019a0a: 697b ldr r3, [r7, #20]
  62885. 8019a0c: 681b ldr r3, [r3, #0]
  62886. 8019a0e: 4618 mov r0, r3
  62887. 8019a10: f7ff fd7c bl 801950c <ptr_to_mem>
  62888. 8019a14: 4602 mov r2, r0
  62889. 8019a16: 693b ldr r3, [r7, #16]
  62890. 8019a18: 6053 str r3, [r2, #4]
  62891. 8019a1a: e03b b.n 8019a94 <mem_trim+0x1cc>
  62892. }
  62893. MEM_STATS_DEC_USED(used, (size - newsize));
  62894. /* no need to plug holes, we've already done that */
  62895. } else if (newsize + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED <= size) {
  62896. 8019a1c: 6a7b ldr r3, [r7, #36] @ 0x24
  62897. 8019a1e: 3318 adds r3, #24
  62898. 8019a20: 69ba ldr r2, [r7, #24]
  62899. 8019a22: 429a cmp r2, r3
  62900. 8019a24: d336 bcc.n 8019a94 <mem_trim+0x1cc>
  62901. * Old size ('size') must be big enough to contain at least 'newsize' plus a struct mem
  62902. * ('SIZEOF_STRUCT_MEM') with some data ('MIN_SIZE_ALIGNED').
  62903. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  62904. * region that couldn't hold data, but when mem->next gets freed,
  62905. * the 2 regions would be combined, resulting in more free memory */
  62906. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize);
  62907. 8019a26: 69fa ldr r2, [r7, #28]
  62908. 8019a28: 6a7b ldr r3, [r7, #36] @ 0x24
  62909. 8019a2a: 4413 add r3, r2
  62910. 8019a2c: 330c adds r3, #12
  62911. 8019a2e: 613b str r3, [r7, #16]
  62912. LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED);
  62913. 8019a30: 6a3b ldr r3, [r7, #32]
  62914. 8019a32: 681b ldr r3, [r3, #0]
  62915. 8019a34: 4a1b ldr r2, [pc, #108] @ (8019aa4 <mem_trim+0x1dc>)
  62916. 8019a36: 4293 cmp r3, r2
  62917. 8019a38: d106 bne.n 8019a48 <mem_trim+0x180>
  62918. 8019a3a: 4b1d ldr r3, [pc, #116] @ (8019ab0 <mem_trim+0x1e8>)
  62919. 8019a3c: f240 3216 movw r2, #790 @ 0x316
  62920. 8019a40: 4920 ldr r1, [pc, #128] @ (8019ac4 <mem_trim+0x1fc>)
  62921. 8019a42: 481d ldr r0, [pc, #116] @ (8019ab8 <mem_trim+0x1f0>)
  62922. 8019a44: f010 fbba bl 802a1bc <iprintf>
  62923. mem2 = ptr_to_mem(ptr2);
  62924. 8019a48: 6938 ldr r0, [r7, #16]
  62925. 8019a4a: f7ff fd5f bl 801950c <ptr_to_mem>
  62926. 8019a4e: 6178 str r0, [r7, #20]
  62927. if (mem2 < lfree) {
  62928. 8019a50: 4b1d ldr r3, [pc, #116] @ (8019ac8 <mem_trim+0x200>)
  62929. 8019a52: 681b ldr r3, [r3, #0]
  62930. 8019a54: 697a ldr r2, [r7, #20]
  62931. 8019a56: 429a cmp r2, r3
  62932. 8019a58: d202 bcs.n 8019a60 <mem_trim+0x198>
  62933. lfree = mem2;
  62934. 8019a5a: 4a1b ldr r2, [pc, #108] @ (8019ac8 <mem_trim+0x200>)
  62935. 8019a5c: 697b ldr r3, [r7, #20]
  62936. 8019a5e: 6013 str r3, [r2, #0]
  62937. }
  62938. mem2->used = 0;
  62939. 8019a60: 697b ldr r3, [r7, #20]
  62940. 8019a62: 2200 movs r2, #0
  62941. 8019a64: 721a strb r2, [r3, #8]
  62942. mem2->next = mem->next;
  62943. 8019a66: 6a3b ldr r3, [r7, #32]
  62944. 8019a68: 681a ldr r2, [r3, #0]
  62945. 8019a6a: 697b ldr r3, [r7, #20]
  62946. 8019a6c: 601a str r2, [r3, #0]
  62947. mem2->prev = ptr;
  62948. 8019a6e: 697b ldr r3, [r7, #20]
  62949. 8019a70: 69fa ldr r2, [r7, #28]
  62950. 8019a72: 605a str r2, [r3, #4]
  62951. mem->next = ptr2;
  62952. 8019a74: 6a3b ldr r3, [r7, #32]
  62953. 8019a76: 693a ldr r2, [r7, #16]
  62954. 8019a78: 601a str r2, [r3, #0]
  62955. if (mem2->next != MEM_SIZE_ALIGNED) {
  62956. 8019a7a: 697b ldr r3, [r7, #20]
  62957. 8019a7c: 681b ldr r3, [r3, #0]
  62958. 8019a7e: 4a09 ldr r2, [pc, #36] @ (8019aa4 <mem_trim+0x1dc>)
  62959. 8019a80: 4293 cmp r3, r2
  62960. 8019a82: d007 beq.n 8019a94 <mem_trim+0x1cc>
  62961. ptr_to_mem(mem2->next)->prev = ptr2;
  62962. 8019a84: 697b ldr r3, [r7, #20]
  62963. 8019a86: 681b ldr r3, [r3, #0]
  62964. 8019a88: 4618 mov r0, r3
  62965. 8019a8a: f7ff fd3f bl 801950c <ptr_to_mem>
  62966. 8019a8e: 4602 mov r2, r0
  62967. 8019a90: 693b ldr r3, [r7, #16]
  62968. 8019a92: 6053 str r3, [r2, #4]
  62969. #endif
  62970. MEM_SANITY();
  62971. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  62972. mem_free_count = 1;
  62973. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  62974. LWIP_MEM_FREE_UNPROTECT();
  62975. 8019a94: 480a ldr r0, [pc, #40] @ (8019ac0 <mem_trim+0x1f8>)
  62976. 8019a96: f00d f8ce bl 8026c36 <sys_mutex_unlock>
  62977. return rmem;
  62978. 8019a9a: 687b ldr r3, [r7, #4]
  62979. }
  62980. 8019a9c: 4618 mov r0, r3
  62981. 8019a9e: 3728 adds r7, #40 @ 0x28
  62982. 8019aa0: 46bd mov sp, r7
  62983. 8019aa2: bd80 pop {r7, pc}
  62984. 8019aa4: 0001ffe8 .word 0x0001ffe8
  62985. 8019aa8: 24024420 .word 0x24024420
  62986. 8019aac: 24024424 .word 0x24024424
  62987. 8019ab0: 0802e310 .word 0x0802e310
  62988. 8019ab4: 0802e49c .word 0x0802e49c
  62989. 8019ab8: 0802e358 .word 0x0802e358
  62990. 8019abc: 0802e4b4 .word 0x0802e4b4
  62991. 8019ac0: 24024428 .word 0x24024428
  62992. 8019ac4: 0802e4d4 .word 0x0802e4d4
  62993. 8019ac8: 2402442c .word 0x2402442c
  62994. 08019acc <mem_malloc>:
  62995. *
  62996. * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT).
  62997. */
  62998. void *
  62999. mem_malloc(mem_size_t size_in)
  63000. {
  63001. 8019acc: b580 push {r7, lr}
  63002. 8019ace: b088 sub sp, #32
  63003. 8019ad0: af00 add r7, sp, #0
  63004. 8019ad2: 6078 str r0, [r7, #4]
  63005. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  63006. u8_t local_mem_free_count = 0;
  63007. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63008. LWIP_MEM_ALLOC_DECL_PROTECT();
  63009. if (size_in == 0) {
  63010. 8019ad4: 687b ldr r3, [r7, #4]
  63011. 8019ad6: 2b00 cmp r3, #0
  63012. 8019ad8: d101 bne.n 8019ade <mem_malloc+0x12>
  63013. return NULL;
  63014. 8019ada: 2300 movs r3, #0
  63015. 8019adc: e0d9 b.n 8019c92 <mem_malloc+0x1c6>
  63016. }
  63017. /* Expand the size of the allocated memory region so that we can
  63018. adjust for alignment. */
  63019. size = (mem_size_t)LWIP_MEM_ALIGN_SIZE(size_in);
  63020. 8019ade: 687b ldr r3, [r7, #4]
  63021. 8019ae0: 3303 adds r3, #3
  63022. 8019ae2: f023 0303 bic.w r3, r3, #3
  63023. 8019ae6: 61bb str r3, [r7, #24]
  63024. if (size < MIN_SIZE_ALIGNED) {
  63025. 8019ae8: 69bb ldr r3, [r7, #24]
  63026. 8019aea: 2b0b cmp r3, #11
  63027. 8019aec: d801 bhi.n 8019af2 <mem_malloc+0x26>
  63028. /* every data block must be at least MIN_SIZE_ALIGNED long */
  63029. size = MIN_SIZE_ALIGNED;
  63030. 8019aee: 230c movs r3, #12
  63031. 8019af0: 61bb str r3, [r7, #24]
  63032. }
  63033. #if MEM_OVERFLOW_CHECK
  63034. size += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED;
  63035. #endif
  63036. if ((size > MEM_SIZE_ALIGNED) || (size < size_in)) {
  63037. 8019af2: 69bb ldr r3, [r7, #24]
  63038. 8019af4: 4a69 ldr r2, [pc, #420] @ (8019c9c <mem_malloc+0x1d0>)
  63039. 8019af6: 4293 cmp r3, r2
  63040. 8019af8: d803 bhi.n 8019b02 <mem_malloc+0x36>
  63041. 8019afa: 69ba ldr r2, [r7, #24]
  63042. 8019afc: 687b ldr r3, [r7, #4]
  63043. 8019afe: 429a cmp r2, r3
  63044. 8019b00: d201 bcs.n 8019b06 <mem_malloc+0x3a>
  63045. return NULL;
  63046. 8019b02: 2300 movs r3, #0
  63047. 8019b04: e0c5 b.n 8019c92 <mem_malloc+0x1c6>
  63048. }
  63049. /* protect the heap from concurrent access */
  63050. sys_mutex_lock(&mem_mutex);
  63051. 8019b06: 4866 ldr r0, [pc, #408] @ (8019ca0 <mem_malloc+0x1d4>)
  63052. 8019b08: f00d f886 bl 8026c18 <sys_mutex_lock>
  63053. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63054. /* Scan through the heap searching for a free block that is big enough,
  63055. * beginning with the lowest free block.
  63056. */
  63057. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  63058. 8019b0c: 4b65 ldr r3, [pc, #404] @ (8019ca4 <mem_malloc+0x1d8>)
  63059. 8019b0e: 681b ldr r3, [r3, #0]
  63060. 8019b10: 4618 mov r0, r3
  63061. 8019b12: f7ff fd0b bl 801952c <mem_to_ptr>
  63062. 8019b16: 61f8 str r0, [r7, #28]
  63063. 8019b18: e0b0 b.n 8019c7c <mem_malloc+0x1b0>
  63064. ptr = ptr_to_mem(ptr)->next) {
  63065. mem = ptr_to_mem(ptr);
  63066. 8019b1a: 69f8 ldr r0, [r7, #28]
  63067. 8019b1c: f7ff fcf6 bl 801950c <ptr_to_mem>
  63068. 8019b20: 6138 str r0, [r7, #16]
  63069. local_mem_free_count = 1;
  63070. break;
  63071. }
  63072. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63073. if ((!mem->used) &&
  63074. 8019b22: 693b ldr r3, [r7, #16]
  63075. 8019b24: 7a1b ldrb r3, [r3, #8]
  63076. 8019b26: 2b00 cmp r3, #0
  63077. 8019b28: f040 80a2 bne.w 8019c70 <mem_malloc+0x1a4>
  63078. (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) {
  63079. 8019b2c: 693b ldr r3, [r7, #16]
  63080. 8019b2e: 681a ldr r2, [r3, #0]
  63081. 8019b30: 69fb ldr r3, [r7, #28]
  63082. 8019b32: 1ad3 subs r3, r2, r3
  63083. 8019b34: 3b0c subs r3, #12
  63084. if ((!mem->used) &&
  63085. 8019b36: 69ba ldr r2, [r7, #24]
  63086. 8019b38: 429a cmp r2, r3
  63087. 8019b3a: f200 8099 bhi.w 8019c70 <mem_malloc+0x1a4>
  63088. /* mem is not used and at least perfect fit is possible:
  63089. * mem->next - (ptr + SIZEOF_STRUCT_MEM) gives us the 'user data size' of mem */
  63090. if (mem->next - (ptr + SIZEOF_STRUCT_MEM) >= (size + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED)) {
  63091. 8019b3e: 693b ldr r3, [r7, #16]
  63092. 8019b40: 681a ldr r2, [r3, #0]
  63093. 8019b42: 69fb ldr r3, [r7, #28]
  63094. 8019b44: 1ad3 subs r3, r2, r3
  63095. 8019b46: f1a3 020c sub.w r2, r3, #12
  63096. 8019b4a: 69bb ldr r3, [r7, #24]
  63097. 8019b4c: 3318 adds r3, #24
  63098. 8019b4e: 429a cmp r2, r3
  63099. 8019b50: d331 bcc.n 8019bb6 <mem_malloc+0xea>
  63100. * struct mem would fit in but no data between mem2 and mem2->next
  63101. * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty
  63102. * region that couldn't hold data, but when mem->next gets freed,
  63103. * the 2 regions would be combined, resulting in more free memory
  63104. */
  63105. ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + size);
  63106. 8019b52: 69fa ldr r2, [r7, #28]
  63107. 8019b54: 69bb ldr r3, [r7, #24]
  63108. 8019b56: 4413 add r3, r2
  63109. 8019b58: 330c adds r3, #12
  63110. 8019b5a: 60fb str r3, [r7, #12]
  63111. LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED);
  63112. 8019b5c: 68fb ldr r3, [r7, #12]
  63113. 8019b5e: 4a4f ldr r2, [pc, #316] @ (8019c9c <mem_malloc+0x1d0>)
  63114. 8019b60: 4293 cmp r3, r2
  63115. 8019b62: d106 bne.n 8019b72 <mem_malloc+0xa6>
  63116. 8019b64: 4b50 ldr r3, [pc, #320] @ (8019ca8 <mem_malloc+0x1dc>)
  63117. 8019b66: f240 3287 movw r2, #903 @ 0x387
  63118. 8019b6a: 4950 ldr r1, [pc, #320] @ (8019cac <mem_malloc+0x1e0>)
  63119. 8019b6c: 4850 ldr r0, [pc, #320] @ (8019cb0 <mem_malloc+0x1e4>)
  63120. 8019b6e: f010 fb25 bl 802a1bc <iprintf>
  63121. /* create mem2 struct */
  63122. mem2 = ptr_to_mem(ptr2);
  63123. 8019b72: 68f8 ldr r0, [r7, #12]
  63124. 8019b74: f7ff fcca bl 801950c <ptr_to_mem>
  63125. 8019b78: 60b8 str r0, [r7, #8]
  63126. mem2->used = 0;
  63127. 8019b7a: 68bb ldr r3, [r7, #8]
  63128. 8019b7c: 2200 movs r2, #0
  63129. 8019b7e: 721a strb r2, [r3, #8]
  63130. mem2->next = mem->next;
  63131. 8019b80: 693b ldr r3, [r7, #16]
  63132. 8019b82: 681a ldr r2, [r3, #0]
  63133. 8019b84: 68bb ldr r3, [r7, #8]
  63134. 8019b86: 601a str r2, [r3, #0]
  63135. mem2->prev = ptr;
  63136. 8019b88: 68bb ldr r3, [r7, #8]
  63137. 8019b8a: 69fa ldr r2, [r7, #28]
  63138. 8019b8c: 605a str r2, [r3, #4]
  63139. /* and insert it between mem and mem->next */
  63140. mem->next = ptr2;
  63141. 8019b8e: 693b ldr r3, [r7, #16]
  63142. 8019b90: 68fa ldr r2, [r7, #12]
  63143. 8019b92: 601a str r2, [r3, #0]
  63144. mem->used = 1;
  63145. 8019b94: 693b ldr r3, [r7, #16]
  63146. 8019b96: 2201 movs r2, #1
  63147. 8019b98: 721a strb r2, [r3, #8]
  63148. if (mem2->next != MEM_SIZE_ALIGNED) {
  63149. 8019b9a: 68bb ldr r3, [r7, #8]
  63150. 8019b9c: 681b ldr r3, [r3, #0]
  63151. 8019b9e: 4a3f ldr r2, [pc, #252] @ (8019c9c <mem_malloc+0x1d0>)
  63152. 8019ba0: 4293 cmp r3, r2
  63153. 8019ba2: d00b beq.n 8019bbc <mem_malloc+0xf0>
  63154. ptr_to_mem(mem2->next)->prev = ptr2;
  63155. 8019ba4: 68bb ldr r3, [r7, #8]
  63156. 8019ba6: 681b ldr r3, [r3, #0]
  63157. 8019ba8: 4618 mov r0, r3
  63158. 8019baa: f7ff fcaf bl 801950c <ptr_to_mem>
  63159. 8019bae: 4602 mov r2, r0
  63160. 8019bb0: 68fb ldr r3, [r7, #12]
  63161. 8019bb2: 6053 str r3, [r2, #4]
  63162. 8019bb4: e002 b.n 8019bbc <mem_malloc+0xf0>
  63163. * take care of this).
  63164. * -> near fit or exact fit: do not split, no mem2 creation
  63165. * also can't move mem->next directly behind mem, since mem->next
  63166. * will always be used at this point!
  63167. */
  63168. mem->used = 1;
  63169. 8019bb6: 693b ldr r3, [r7, #16]
  63170. 8019bb8: 2201 movs r2, #1
  63171. 8019bba: 721a strb r2, [r3, #8]
  63172. MEM_STATS_INC_USED(used, mem->next - mem_to_ptr(mem));
  63173. }
  63174. #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT
  63175. mem_malloc_adjust_lfree:
  63176. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63177. if (mem == lfree) {
  63178. 8019bbc: 4b39 ldr r3, [pc, #228] @ (8019ca4 <mem_malloc+0x1d8>)
  63179. 8019bbe: 681b ldr r3, [r3, #0]
  63180. 8019bc0: 693a ldr r2, [r7, #16]
  63181. 8019bc2: 429a cmp r2, r3
  63182. 8019bc4: d127 bne.n 8019c16 <mem_malloc+0x14a>
  63183. struct mem *cur = lfree;
  63184. 8019bc6: 4b37 ldr r3, [pc, #220] @ (8019ca4 <mem_malloc+0x1d8>)
  63185. 8019bc8: 681b ldr r3, [r3, #0]
  63186. 8019bca: 617b str r3, [r7, #20]
  63187. /* Find next free block after mem and update lowest free pointer */
  63188. while (cur->used && cur != ram_end) {
  63189. 8019bcc: e005 b.n 8019bda <mem_malloc+0x10e>
  63190. /* If mem_free or mem_trim have run, we have to restart since they
  63191. could have altered our current struct mem or lfree. */
  63192. goto mem_malloc_adjust_lfree;
  63193. }
  63194. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63195. cur = ptr_to_mem(cur->next);
  63196. 8019bce: 697b ldr r3, [r7, #20]
  63197. 8019bd0: 681b ldr r3, [r3, #0]
  63198. 8019bd2: 4618 mov r0, r3
  63199. 8019bd4: f7ff fc9a bl 801950c <ptr_to_mem>
  63200. 8019bd8: 6178 str r0, [r7, #20]
  63201. while (cur->used && cur != ram_end) {
  63202. 8019bda: 697b ldr r3, [r7, #20]
  63203. 8019bdc: 7a1b ldrb r3, [r3, #8]
  63204. 8019bde: 2b00 cmp r3, #0
  63205. 8019be0: d004 beq.n 8019bec <mem_malloc+0x120>
  63206. 8019be2: 4b34 ldr r3, [pc, #208] @ (8019cb4 <mem_malloc+0x1e8>)
  63207. 8019be4: 681b ldr r3, [r3, #0]
  63208. 8019be6: 697a ldr r2, [r7, #20]
  63209. 8019be8: 429a cmp r2, r3
  63210. 8019bea: d1f0 bne.n 8019bce <mem_malloc+0x102>
  63211. }
  63212. lfree = cur;
  63213. 8019bec: 4a2d ldr r2, [pc, #180] @ (8019ca4 <mem_malloc+0x1d8>)
  63214. 8019bee: 697b ldr r3, [r7, #20]
  63215. 8019bf0: 6013 str r3, [r2, #0]
  63216. LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used)));
  63217. 8019bf2: 4b2c ldr r3, [pc, #176] @ (8019ca4 <mem_malloc+0x1d8>)
  63218. 8019bf4: 681a ldr r2, [r3, #0]
  63219. 8019bf6: 4b2f ldr r3, [pc, #188] @ (8019cb4 <mem_malloc+0x1e8>)
  63220. 8019bf8: 681b ldr r3, [r3, #0]
  63221. 8019bfa: 429a cmp r2, r3
  63222. 8019bfc: d00b beq.n 8019c16 <mem_malloc+0x14a>
  63223. 8019bfe: 4b29 ldr r3, [pc, #164] @ (8019ca4 <mem_malloc+0x1d8>)
  63224. 8019c00: 681b ldr r3, [r3, #0]
  63225. 8019c02: 7a1b ldrb r3, [r3, #8]
  63226. 8019c04: 2b00 cmp r3, #0
  63227. 8019c06: d006 beq.n 8019c16 <mem_malloc+0x14a>
  63228. 8019c08: 4b27 ldr r3, [pc, #156] @ (8019ca8 <mem_malloc+0x1dc>)
  63229. 8019c0a: f240 32b5 movw r2, #949 @ 0x3b5
  63230. 8019c0e: 492a ldr r1, [pc, #168] @ (8019cb8 <mem_malloc+0x1ec>)
  63231. 8019c10: 4827 ldr r0, [pc, #156] @ (8019cb0 <mem_malloc+0x1e4>)
  63232. 8019c12: f010 fad3 bl 802a1bc <iprintf>
  63233. }
  63234. LWIP_MEM_ALLOC_UNPROTECT();
  63235. sys_mutex_unlock(&mem_mutex);
  63236. 8019c16: 4822 ldr r0, [pc, #136] @ (8019ca0 <mem_malloc+0x1d4>)
  63237. 8019c18: f00d f80d bl 8026c36 <sys_mutex_unlock>
  63238. LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.",
  63239. 8019c1c: 693a ldr r2, [r7, #16]
  63240. 8019c1e: 69bb ldr r3, [r7, #24]
  63241. 8019c20: 4413 add r3, r2
  63242. 8019c22: 330c adds r3, #12
  63243. 8019c24: 4a23 ldr r2, [pc, #140] @ (8019cb4 <mem_malloc+0x1e8>)
  63244. 8019c26: 6812 ldr r2, [r2, #0]
  63245. 8019c28: 4293 cmp r3, r2
  63246. 8019c2a: d906 bls.n 8019c3a <mem_malloc+0x16e>
  63247. 8019c2c: 4b1e ldr r3, [pc, #120] @ (8019ca8 <mem_malloc+0x1dc>)
  63248. 8019c2e: f240 32b9 movw r2, #953 @ 0x3b9
  63249. 8019c32: 4922 ldr r1, [pc, #136] @ (8019cbc <mem_malloc+0x1f0>)
  63250. 8019c34: 481e ldr r0, [pc, #120] @ (8019cb0 <mem_malloc+0x1e4>)
  63251. 8019c36: f010 fac1 bl 802a1bc <iprintf>
  63252. (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end);
  63253. LWIP_ASSERT("mem_malloc: allocated memory properly aligned.",
  63254. 8019c3a: 693b ldr r3, [r7, #16]
  63255. 8019c3c: f003 0303 and.w r3, r3, #3
  63256. 8019c40: 2b00 cmp r3, #0
  63257. 8019c42: d006 beq.n 8019c52 <mem_malloc+0x186>
  63258. 8019c44: 4b18 ldr r3, [pc, #96] @ (8019ca8 <mem_malloc+0x1dc>)
  63259. 8019c46: f240 32bb movw r2, #955 @ 0x3bb
  63260. 8019c4a: 491d ldr r1, [pc, #116] @ (8019cc0 <mem_malloc+0x1f4>)
  63261. 8019c4c: 4818 ldr r0, [pc, #96] @ (8019cb0 <mem_malloc+0x1e4>)
  63262. 8019c4e: f010 fab5 bl 802a1bc <iprintf>
  63263. ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0);
  63264. LWIP_ASSERT("mem_malloc: sanity check alignment",
  63265. 8019c52: 693b ldr r3, [r7, #16]
  63266. 8019c54: f003 0303 and.w r3, r3, #3
  63267. 8019c58: 2b00 cmp r3, #0
  63268. 8019c5a: d006 beq.n 8019c6a <mem_malloc+0x19e>
  63269. 8019c5c: 4b12 ldr r3, [pc, #72] @ (8019ca8 <mem_malloc+0x1dc>)
  63270. 8019c5e: f240 32bd movw r2, #957 @ 0x3bd
  63271. 8019c62: 4918 ldr r1, [pc, #96] @ (8019cc4 <mem_malloc+0x1f8>)
  63272. 8019c64: 4812 ldr r0, [pc, #72] @ (8019cb0 <mem_malloc+0x1e4>)
  63273. 8019c66: f010 faa9 bl 802a1bc <iprintf>
  63274. #if MEM_OVERFLOW_CHECK
  63275. mem_overflow_init_element(mem, size_in);
  63276. #endif
  63277. MEM_SANITY();
  63278. return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET;
  63279. 8019c6a: 693b ldr r3, [r7, #16]
  63280. 8019c6c: 330c adds r3, #12
  63281. 8019c6e: e010 b.n 8019c92 <mem_malloc+0x1c6>
  63282. ptr = ptr_to_mem(ptr)->next) {
  63283. 8019c70: 69f8 ldr r0, [r7, #28]
  63284. 8019c72: f7ff fc4b bl 801950c <ptr_to_mem>
  63285. 8019c76: 4603 mov r3, r0
  63286. 8019c78: 681b ldr r3, [r3, #0]
  63287. 8019c7a: 61fb str r3, [r7, #28]
  63288. for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size;
  63289. 8019c7c: 69ba ldr r2, [r7, #24]
  63290. 8019c7e: 4b07 ldr r3, [pc, #28] @ (8019c9c <mem_malloc+0x1d0>)
  63291. 8019c80: 1a9b subs r3, r3, r2
  63292. 8019c82: 69fa ldr r2, [r7, #28]
  63293. 8019c84: 429a cmp r2, r3
  63294. 8019c86: f4ff af48 bcc.w 8019b1a <mem_malloc+0x4e>
  63295. /* if we got interrupted by a mem_free, try again */
  63296. } while (local_mem_free_count != 0);
  63297. #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */
  63298. MEM_STATS_INC(err);
  63299. LWIP_MEM_ALLOC_UNPROTECT();
  63300. sys_mutex_unlock(&mem_mutex);
  63301. 8019c8a: 4805 ldr r0, [pc, #20] @ (8019ca0 <mem_malloc+0x1d4>)
  63302. 8019c8c: f00c ffd3 bl 8026c36 <sys_mutex_unlock>
  63303. LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size));
  63304. return NULL;
  63305. 8019c90: 2300 movs r3, #0
  63306. }
  63307. 8019c92: 4618 mov r0, r3
  63308. 8019c94: 3720 adds r7, #32
  63309. 8019c96: 46bd mov sp, r7
  63310. 8019c98: bd80 pop {r7, pc}
  63311. 8019c9a: bf00 nop
  63312. 8019c9c: 0001ffe8 .word 0x0001ffe8
  63313. 8019ca0: 24024428 .word 0x24024428
  63314. 8019ca4: 2402442c .word 0x2402442c
  63315. 8019ca8: 0802e310 .word 0x0802e310
  63316. 8019cac: 0802e4d4 .word 0x0802e4d4
  63317. 8019cb0: 0802e358 .word 0x0802e358
  63318. 8019cb4: 24024424 .word 0x24024424
  63319. 8019cb8: 0802e4e8 .word 0x0802e4e8
  63320. 8019cbc: 0802e504 .word 0x0802e504
  63321. 8019cc0: 0802e534 .word 0x0802e534
  63322. 8019cc4: 0802e564 .word 0x0802e564
  63323. 08019cc8 <memp_init_pool>:
  63324. *
  63325. * @param desc pool to initialize
  63326. */
  63327. void
  63328. memp_init_pool(const struct memp_desc *desc)
  63329. {
  63330. 8019cc8: b480 push {r7}
  63331. 8019cca: b085 sub sp, #20
  63332. 8019ccc: af00 add r7, sp, #0
  63333. 8019cce: 6078 str r0, [r7, #4]
  63334. LWIP_UNUSED_ARG(desc);
  63335. #else
  63336. int i;
  63337. struct memp *memp;
  63338. *desc->tab = NULL;
  63339. 8019cd0: 687b ldr r3, [r7, #4]
  63340. 8019cd2: 68db ldr r3, [r3, #12]
  63341. 8019cd4: 2200 movs r2, #0
  63342. 8019cd6: 601a str r2, [r3, #0]
  63343. memp = (struct memp *)LWIP_MEM_ALIGN(desc->base);
  63344. 8019cd8: 687b ldr r3, [r7, #4]
  63345. 8019cda: 689b ldr r3, [r3, #8]
  63346. 8019cdc: 3303 adds r3, #3
  63347. 8019cde: f023 0303 bic.w r3, r3, #3
  63348. 8019ce2: 60bb str r3, [r7, #8]
  63349. + MEM_SANITY_REGION_AFTER_ALIGNED
  63350. #endif
  63351. ));
  63352. #endif
  63353. /* create a linked list of memp elements */
  63354. for (i = 0; i < desc->num; ++i) {
  63355. 8019ce4: 2300 movs r3, #0
  63356. 8019ce6: 60fb str r3, [r7, #12]
  63357. 8019ce8: e011 b.n 8019d0e <memp_init_pool+0x46>
  63358. memp->next = *desc->tab;
  63359. 8019cea: 687b ldr r3, [r7, #4]
  63360. 8019cec: 68db ldr r3, [r3, #12]
  63361. 8019cee: 681a ldr r2, [r3, #0]
  63362. 8019cf0: 68bb ldr r3, [r7, #8]
  63363. 8019cf2: 601a str r2, [r3, #0]
  63364. *desc->tab = memp;
  63365. 8019cf4: 687b ldr r3, [r7, #4]
  63366. 8019cf6: 68db ldr r3, [r3, #12]
  63367. 8019cf8: 68ba ldr r2, [r7, #8]
  63368. 8019cfa: 601a str r2, [r3, #0]
  63369. #if MEMP_OVERFLOW_CHECK
  63370. memp_overflow_init_element(memp, desc);
  63371. #endif /* MEMP_OVERFLOW_CHECK */
  63372. /* cast through void* to get rid of alignment warnings */
  63373. memp = (struct memp *)(void *)((u8_t *)memp + MEMP_SIZE + desc->size
  63374. 8019cfc: 687b ldr r3, [r7, #4]
  63375. 8019cfe: 889b ldrh r3, [r3, #4]
  63376. 8019d00: 461a mov r2, r3
  63377. 8019d02: 68bb ldr r3, [r7, #8]
  63378. 8019d04: 4413 add r3, r2
  63379. 8019d06: 60bb str r3, [r7, #8]
  63380. for (i = 0; i < desc->num; ++i) {
  63381. 8019d08: 68fb ldr r3, [r7, #12]
  63382. 8019d0a: 3301 adds r3, #1
  63383. 8019d0c: 60fb str r3, [r7, #12]
  63384. 8019d0e: 687b ldr r3, [r7, #4]
  63385. 8019d10: 88db ldrh r3, [r3, #6]
  63386. 8019d12: 461a mov r2, r3
  63387. 8019d14: 68fb ldr r3, [r7, #12]
  63388. 8019d16: 4293 cmp r3, r2
  63389. 8019d18: dbe7 blt.n 8019cea <memp_init_pool+0x22>
  63390. #endif /* !MEMP_MEM_MALLOC */
  63391. #if MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY)
  63392. desc->stats->name = desc->desc;
  63393. #endif /* MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) */
  63394. }
  63395. 8019d1a: bf00 nop
  63396. 8019d1c: bf00 nop
  63397. 8019d1e: 3714 adds r7, #20
  63398. 8019d20: 46bd mov sp, r7
  63399. 8019d22: f85d 7b04 ldr.w r7, [sp], #4
  63400. 8019d26: 4770 bx lr
  63401. 08019d28 <memp_init>:
  63402. *
  63403. * Carves out memp_memory into linked lists for each pool-type.
  63404. */
  63405. void
  63406. memp_init(void)
  63407. {
  63408. 8019d28: b580 push {r7, lr}
  63409. 8019d2a: b082 sub sp, #8
  63410. 8019d2c: af00 add r7, sp, #0
  63411. u16_t i;
  63412. /* for every pool: */
  63413. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  63414. 8019d2e: 2300 movs r3, #0
  63415. 8019d30: 80fb strh r3, [r7, #6]
  63416. 8019d32: e009 b.n 8019d48 <memp_init+0x20>
  63417. memp_init_pool(memp_pools[i]);
  63418. 8019d34: 88fb ldrh r3, [r7, #6]
  63419. 8019d36: 4a08 ldr r2, [pc, #32] @ (8019d58 <memp_init+0x30>)
  63420. 8019d38: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  63421. 8019d3c: 4618 mov r0, r3
  63422. 8019d3e: f7ff ffc3 bl 8019cc8 <memp_init_pool>
  63423. for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) {
  63424. 8019d42: 88fb ldrh r3, [r7, #6]
  63425. 8019d44: 3301 adds r3, #1
  63426. 8019d46: 80fb strh r3, [r7, #6]
  63427. 8019d48: 88fb ldrh r3, [r7, #6]
  63428. 8019d4a: 2b0c cmp r3, #12
  63429. 8019d4c: d9f2 bls.n 8019d34 <memp_init+0xc>
  63430. #if MEMP_OVERFLOW_CHECK >= 2
  63431. /* check everything a first time to see if it worked */
  63432. memp_overflow_check_all();
  63433. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  63434. }
  63435. 8019d4e: bf00 nop
  63436. 8019d50: bf00 nop
  63437. 8019d52: 3708 adds r7, #8
  63438. 8019d54: 46bd mov sp, r7
  63439. 8019d56: bd80 pop {r7, pc}
  63440. 8019d58: 08031470 .word 0x08031470
  63441. 08019d5c <do_memp_malloc_pool>:
  63442. #if !MEMP_OVERFLOW_CHECK
  63443. do_memp_malloc_pool(const struct memp_desc *desc)
  63444. #else
  63445. do_memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  63446. #endif
  63447. {
  63448. 8019d5c: b580 push {r7, lr}
  63449. 8019d5e: b084 sub sp, #16
  63450. 8019d60: af00 add r7, sp, #0
  63451. 8019d62: 6078 str r0, [r7, #4]
  63452. #if MEMP_MEM_MALLOC
  63453. memp = (struct memp *)mem_malloc(MEMP_SIZE + MEMP_ALIGN_SIZE(desc->size));
  63454. SYS_ARCH_PROTECT(old_level);
  63455. #else /* MEMP_MEM_MALLOC */
  63456. SYS_ARCH_PROTECT(old_level);
  63457. 8019d64: f00c ff94 bl 8026c90 <sys_arch_protect>
  63458. 8019d68: 60f8 str r0, [r7, #12]
  63459. memp = *desc->tab;
  63460. 8019d6a: 687b ldr r3, [r7, #4]
  63461. 8019d6c: 68db ldr r3, [r3, #12]
  63462. 8019d6e: 681b ldr r3, [r3, #0]
  63463. 8019d70: 60bb str r3, [r7, #8]
  63464. #endif /* MEMP_MEM_MALLOC */
  63465. if (memp != NULL) {
  63466. 8019d72: 68bb ldr r3, [r7, #8]
  63467. 8019d74: 2b00 cmp r3, #0
  63468. 8019d76: d015 beq.n 8019da4 <do_memp_malloc_pool+0x48>
  63469. #if !MEMP_MEM_MALLOC
  63470. #if MEMP_OVERFLOW_CHECK == 1
  63471. memp_overflow_check_element(memp, desc);
  63472. #endif /* MEMP_OVERFLOW_CHECK */
  63473. *desc->tab = memp->next;
  63474. 8019d78: 687b ldr r3, [r7, #4]
  63475. 8019d7a: 68db ldr r3, [r3, #12]
  63476. 8019d7c: 68ba ldr r2, [r7, #8]
  63477. 8019d7e: 6812 ldr r2, [r2, #0]
  63478. 8019d80: 601a str r2, [r3, #0]
  63479. memp->line = line;
  63480. #if MEMP_MEM_MALLOC
  63481. memp_overflow_init_element(memp, desc);
  63482. #endif /* MEMP_MEM_MALLOC */
  63483. #endif /* MEMP_OVERFLOW_CHECK */
  63484. LWIP_ASSERT("memp_malloc: memp properly aligned",
  63485. 8019d82: 68bb ldr r3, [r7, #8]
  63486. 8019d84: f003 0303 and.w r3, r3, #3
  63487. 8019d88: 2b00 cmp r3, #0
  63488. 8019d8a: d006 beq.n 8019d9a <do_memp_malloc_pool+0x3e>
  63489. 8019d8c: 4b09 ldr r3, [pc, #36] @ (8019db4 <do_memp_malloc_pool+0x58>)
  63490. 8019d8e: f44f 728c mov.w r2, #280 @ 0x118
  63491. 8019d92: 4909 ldr r1, [pc, #36] @ (8019db8 <do_memp_malloc_pool+0x5c>)
  63492. 8019d94: 4809 ldr r0, [pc, #36] @ (8019dbc <do_memp_malloc_pool+0x60>)
  63493. 8019d96: f010 fa11 bl 802a1bc <iprintf>
  63494. desc->stats->used++;
  63495. if (desc->stats->used > desc->stats->max) {
  63496. desc->stats->max = desc->stats->used;
  63497. }
  63498. #endif
  63499. SYS_ARCH_UNPROTECT(old_level);
  63500. 8019d9a: 68f8 ldr r0, [r7, #12]
  63501. 8019d9c: f00c ff86 bl 8026cac <sys_arch_unprotect>
  63502. /* cast through u8_t* to get rid of alignment warnings */
  63503. return ((u8_t *)memp + MEMP_SIZE);
  63504. 8019da0: 68bb ldr r3, [r7, #8]
  63505. 8019da2: e003 b.n 8019dac <do_memp_malloc_pool+0x50>
  63506. } else {
  63507. #if MEMP_STATS
  63508. desc->stats->err++;
  63509. #endif
  63510. SYS_ARCH_UNPROTECT(old_level);
  63511. 8019da4: 68f8 ldr r0, [r7, #12]
  63512. 8019da6: f00c ff81 bl 8026cac <sys_arch_unprotect>
  63513. LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc));
  63514. }
  63515. return NULL;
  63516. 8019daa: 2300 movs r3, #0
  63517. }
  63518. 8019dac: 4618 mov r0, r3
  63519. 8019dae: 3710 adds r7, #16
  63520. 8019db0: 46bd mov sp, r7
  63521. 8019db2: bd80 pop {r7, pc}
  63522. 8019db4: 0802e620 .word 0x0802e620
  63523. 8019db8: 0802e650 .word 0x0802e650
  63524. 8019dbc: 0802e674 .word 0x0802e674
  63525. 08019dc0 <memp_malloc_pool>:
  63526. #if !MEMP_OVERFLOW_CHECK
  63527. memp_malloc_pool(const struct memp_desc *desc)
  63528. #else
  63529. memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line)
  63530. #endif
  63531. {
  63532. 8019dc0: b580 push {r7, lr}
  63533. 8019dc2: b082 sub sp, #8
  63534. 8019dc4: af00 add r7, sp, #0
  63535. 8019dc6: 6078 str r0, [r7, #4]
  63536. LWIP_ASSERT("invalid pool desc", desc != NULL);
  63537. 8019dc8: 687b ldr r3, [r7, #4]
  63538. 8019dca: 2b00 cmp r3, #0
  63539. 8019dcc: d106 bne.n 8019ddc <memp_malloc_pool+0x1c>
  63540. 8019dce: 4b0a ldr r3, [pc, #40] @ (8019df8 <memp_malloc_pool+0x38>)
  63541. 8019dd0: f44f 729e mov.w r2, #316 @ 0x13c
  63542. 8019dd4: 4909 ldr r1, [pc, #36] @ (8019dfc <memp_malloc_pool+0x3c>)
  63543. 8019dd6: 480a ldr r0, [pc, #40] @ (8019e00 <memp_malloc_pool+0x40>)
  63544. 8019dd8: f010 f9f0 bl 802a1bc <iprintf>
  63545. if (desc == NULL) {
  63546. 8019ddc: 687b ldr r3, [r7, #4]
  63547. 8019dde: 2b00 cmp r3, #0
  63548. 8019de0: d101 bne.n 8019de6 <memp_malloc_pool+0x26>
  63549. return NULL;
  63550. 8019de2: 2300 movs r3, #0
  63551. 8019de4: e003 b.n 8019dee <memp_malloc_pool+0x2e>
  63552. }
  63553. #if !MEMP_OVERFLOW_CHECK
  63554. return do_memp_malloc_pool(desc);
  63555. 8019de6: 6878 ldr r0, [r7, #4]
  63556. 8019de8: f7ff ffb8 bl 8019d5c <do_memp_malloc_pool>
  63557. 8019dec: 4603 mov r3, r0
  63558. #else
  63559. return do_memp_malloc_pool_fn(desc, file, line);
  63560. #endif
  63561. }
  63562. 8019dee: 4618 mov r0, r3
  63563. 8019df0: 3708 adds r7, #8
  63564. 8019df2: 46bd mov sp, r7
  63565. 8019df4: bd80 pop {r7, pc}
  63566. 8019df6: bf00 nop
  63567. 8019df8: 0802e620 .word 0x0802e620
  63568. 8019dfc: 0802e69c .word 0x0802e69c
  63569. 8019e00: 0802e674 .word 0x0802e674
  63570. 08019e04 <memp_malloc>:
  63571. #if !MEMP_OVERFLOW_CHECK
  63572. memp_malloc(memp_t type)
  63573. #else
  63574. memp_malloc_fn(memp_t type, const char *file, const int line)
  63575. #endif
  63576. {
  63577. 8019e04: b580 push {r7, lr}
  63578. 8019e06: b084 sub sp, #16
  63579. 8019e08: af00 add r7, sp, #0
  63580. 8019e0a: 4603 mov r3, r0
  63581. 8019e0c: 71fb strb r3, [r7, #7]
  63582. void *memp;
  63583. LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;);
  63584. 8019e0e: 79fb ldrb r3, [r7, #7]
  63585. 8019e10: 2b0c cmp r3, #12
  63586. 8019e12: d908 bls.n 8019e26 <memp_malloc+0x22>
  63587. 8019e14: 4b0a ldr r3, [pc, #40] @ (8019e40 <memp_malloc+0x3c>)
  63588. 8019e16: f240 1257 movw r2, #343 @ 0x157
  63589. 8019e1a: 490a ldr r1, [pc, #40] @ (8019e44 <memp_malloc+0x40>)
  63590. 8019e1c: 480a ldr r0, [pc, #40] @ (8019e48 <memp_malloc+0x44>)
  63591. 8019e1e: f010 f9cd bl 802a1bc <iprintf>
  63592. 8019e22: 2300 movs r3, #0
  63593. 8019e24: e008 b.n 8019e38 <memp_malloc+0x34>
  63594. #if MEMP_OVERFLOW_CHECK >= 2
  63595. memp_overflow_check_all();
  63596. #endif /* MEMP_OVERFLOW_CHECK >= 2 */
  63597. #if !MEMP_OVERFLOW_CHECK
  63598. memp = do_memp_malloc_pool(memp_pools[type]);
  63599. 8019e26: 79fb ldrb r3, [r7, #7]
  63600. 8019e28: 4a08 ldr r2, [pc, #32] @ (8019e4c <memp_malloc+0x48>)
  63601. 8019e2a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  63602. 8019e2e: 4618 mov r0, r3
  63603. 8019e30: f7ff ff94 bl 8019d5c <do_memp_malloc_pool>
  63604. 8019e34: 60f8 str r0, [r7, #12]
  63605. #else
  63606. memp = do_memp_malloc_pool_fn(memp_pools[type], file, line);
  63607. #endif
  63608. return memp;
  63609. 8019e36: 68fb ldr r3, [r7, #12]
  63610. }
  63611. 8019e38: 4618 mov r0, r3
  63612. 8019e3a: 3710 adds r7, #16
  63613. 8019e3c: 46bd mov sp, r7
  63614. 8019e3e: bd80 pop {r7, pc}
  63615. 8019e40: 0802e620 .word 0x0802e620
  63616. 8019e44: 0802e6b0 .word 0x0802e6b0
  63617. 8019e48: 0802e674 .word 0x0802e674
  63618. 8019e4c: 08031470 .word 0x08031470
  63619. 08019e50 <do_memp_free_pool>:
  63620. static void
  63621. do_memp_free_pool(const struct memp_desc *desc, void *mem)
  63622. {
  63623. 8019e50: b580 push {r7, lr}
  63624. 8019e52: b084 sub sp, #16
  63625. 8019e54: af00 add r7, sp, #0
  63626. 8019e56: 6078 str r0, [r7, #4]
  63627. 8019e58: 6039 str r1, [r7, #0]
  63628. struct memp *memp;
  63629. SYS_ARCH_DECL_PROTECT(old_level);
  63630. LWIP_ASSERT("memp_free: mem properly aligned",
  63631. 8019e5a: 683b ldr r3, [r7, #0]
  63632. 8019e5c: f003 0303 and.w r3, r3, #3
  63633. 8019e60: 2b00 cmp r3, #0
  63634. 8019e62: d006 beq.n 8019e72 <do_memp_free_pool+0x22>
  63635. 8019e64: 4b0d ldr r3, [pc, #52] @ (8019e9c <do_memp_free_pool+0x4c>)
  63636. 8019e66: f44f 72b6 mov.w r2, #364 @ 0x16c
  63637. 8019e6a: 490d ldr r1, [pc, #52] @ (8019ea0 <do_memp_free_pool+0x50>)
  63638. 8019e6c: 480d ldr r0, [pc, #52] @ (8019ea4 <do_memp_free_pool+0x54>)
  63639. 8019e6e: f010 f9a5 bl 802a1bc <iprintf>
  63640. ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);
  63641. /* cast through void* to get rid of alignment warnings */
  63642. memp = (struct memp *)(void *)((u8_t *)mem - MEMP_SIZE);
  63643. 8019e72: 683b ldr r3, [r7, #0]
  63644. 8019e74: 60fb str r3, [r7, #12]
  63645. SYS_ARCH_PROTECT(old_level);
  63646. 8019e76: f00c ff0b bl 8026c90 <sys_arch_protect>
  63647. 8019e7a: 60b8 str r0, [r7, #8]
  63648. #if MEMP_MEM_MALLOC
  63649. LWIP_UNUSED_ARG(desc);
  63650. SYS_ARCH_UNPROTECT(old_level);
  63651. mem_free(memp);
  63652. #else /* MEMP_MEM_MALLOC */
  63653. memp->next = *desc->tab;
  63654. 8019e7c: 687b ldr r3, [r7, #4]
  63655. 8019e7e: 68db ldr r3, [r3, #12]
  63656. 8019e80: 681a ldr r2, [r3, #0]
  63657. 8019e82: 68fb ldr r3, [r7, #12]
  63658. 8019e84: 601a str r2, [r3, #0]
  63659. *desc->tab = memp;
  63660. 8019e86: 687b ldr r3, [r7, #4]
  63661. 8019e88: 68db ldr r3, [r3, #12]
  63662. 8019e8a: 68fa ldr r2, [r7, #12]
  63663. 8019e8c: 601a str r2, [r3, #0]
  63664. #if MEMP_SANITY_CHECK
  63665. LWIP_ASSERT("memp sanity", memp_sanity(desc));
  63666. #endif /* MEMP_SANITY_CHECK */
  63667. SYS_ARCH_UNPROTECT(old_level);
  63668. 8019e8e: 68b8 ldr r0, [r7, #8]
  63669. 8019e90: f00c ff0c bl 8026cac <sys_arch_unprotect>
  63670. #endif /* !MEMP_MEM_MALLOC */
  63671. }
  63672. 8019e94: bf00 nop
  63673. 8019e96: 3710 adds r7, #16
  63674. 8019e98: 46bd mov sp, r7
  63675. 8019e9a: bd80 pop {r7, pc}
  63676. 8019e9c: 0802e620 .word 0x0802e620
  63677. 8019ea0: 0802e6d0 .word 0x0802e6d0
  63678. 8019ea4: 0802e674 .word 0x0802e674
  63679. 08019ea8 <memp_free_pool>:
  63680. * @param desc the pool where to put mem
  63681. * @param mem the memp element to free
  63682. */
  63683. void
  63684. memp_free_pool(const struct memp_desc *desc, void *mem)
  63685. {
  63686. 8019ea8: b580 push {r7, lr}
  63687. 8019eaa: b082 sub sp, #8
  63688. 8019eac: af00 add r7, sp, #0
  63689. 8019eae: 6078 str r0, [r7, #4]
  63690. 8019eb0: 6039 str r1, [r7, #0]
  63691. LWIP_ASSERT("invalid pool desc", desc != NULL);
  63692. 8019eb2: 687b ldr r3, [r7, #4]
  63693. 8019eb4: 2b00 cmp r3, #0
  63694. 8019eb6: d106 bne.n 8019ec6 <memp_free_pool+0x1e>
  63695. 8019eb8: 4b0a ldr r3, [pc, #40] @ (8019ee4 <memp_free_pool+0x3c>)
  63696. 8019eba: f240 1295 movw r2, #405 @ 0x195
  63697. 8019ebe: 490a ldr r1, [pc, #40] @ (8019ee8 <memp_free_pool+0x40>)
  63698. 8019ec0: 480a ldr r0, [pc, #40] @ (8019eec <memp_free_pool+0x44>)
  63699. 8019ec2: f010 f97b bl 802a1bc <iprintf>
  63700. if ((desc == NULL) || (mem == NULL)) {
  63701. 8019ec6: 687b ldr r3, [r7, #4]
  63702. 8019ec8: 2b00 cmp r3, #0
  63703. 8019eca: d007 beq.n 8019edc <memp_free_pool+0x34>
  63704. 8019ecc: 683b ldr r3, [r7, #0]
  63705. 8019ece: 2b00 cmp r3, #0
  63706. 8019ed0: d004 beq.n 8019edc <memp_free_pool+0x34>
  63707. return;
  63708. }
  63709. do_memp_free_pool(desc, mem);
  63710. 8019ed2: 6839 ldr r1, [r7, #0]
  63711. 8019ed4: 6878 ldr r0, [r7, #4]
  63712. 8019ed6: f7ff ffbb bl 8019e50 <do_memp_free_pool>
  63713. 8019eda: e000 b.n 8019ede <memp_free_pool+0x36>
  63714. return;
  63715. 8019edc: bf00 nop
  63716. }
  63717. 8019ede: 3708 adds r7, #8
  63718. 8019ee0: 46bd mov sp, r7
  63719. 8019ee2: bd80 pop {r7, pc}
  63720. 8019ee4: 0802e620 .word 0x0802e620
  63721. 8019ee8: 0802e69c .word 0x0802e69c
  63722. 8019eec: 0802e674 .word 0x0802e674
  63723. 08019ef0 <memp_free>:
  63724. * @param type the pool where to put mem
  63725. * @param mem the memp element to free
  63726. */
  63727. void
  63728. memp_free(memp_t type, void *mem)
  63729. {
  63730. 8019ef0: b580 push {r7, lr}
  63731. 8019ef2: b082 sub sp, #8
  63732. 8019ef4: af00 add r7, sp, #0
  63733. 8019ef6: 4603 mov r3, r0
  63734. 8019ef8: 6039 str r1, [r7, #0]
  63735. 8019efa: 71fb strb r3, [r7, #7]
  63736. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  63737. struct memp *old_first;
  63738. #endif
  63739. LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;);
  63740. 8019efc: 79fb ldrb r3, [r7, #7]
  63741. 8019efe: 2b0c cmp r3, #12
  63742. 8019f00: d907 bls.n 8019f12 <memp_free+0x22>
  63743. 8019f02: 4b0c ldr r3, [pc, #48] @ (8019f34 <memp_free+0x44>)
  63744. 8019f04: f44f 72d5 mov.w r2, #426 @ 0x1aa
  63745. 8019f08: 490b ldr r1, [pc, #44] @ (8019f38 <memp_free+0x48>)
  63746. 8019f0a: 480c ldr r0, [pc, #48] @ (8019f3c <memp_free+0x4c>)
  63747. 8019f0c: f010 f956 bl 802a1bc <iprintf>
  63748. 8019f10: e00c b.n 8019f2c <memp_free+0x3c>
  63749. if (mem == NULL) {
  63750. 8019f12: 683b ldr r3, [r7, #0]
  63751. 8019f14: 2b00 cmp r3, #0
  63752. 8019f16: d008 beq.n 8019f2a <memp_free+0x3a>
  63753. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  63754. old_first = *memp_pools[type]->tab;
  63755. #endif
  63756. do_memp_free_pool(memp_pools[type], mem);
  63757. 8019f18: 79fb ldrb r3, [r7, #7]
  63758. 8019f1a: 4a09 ldr r2, [pc, #36] @ (8019f40 <memp_free+0x50>)
  63759. 8019f1c: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  63760. 8019f20: 6839 ldr r1, [r7, #0]
  63761. 8019f22: 4618 mov r0, r3
  63762. 8019f24: f7ff ff94 bl 8019e50 <do_memp_free_pool>
  63763. 8019f28: e000 b.n 8019f2c <memp_free+0x3c>
  63764. return;
  63765. 8019f2a: bf00 nop
  63766. #ifdef LWIP_HOOK_MEMP_AVAILABLE
  63767. if (old_first == NULL) {
  63768. LWIP_HOOK_MEMP_AVAILABLE(type);
  63769. }
  63770. #endif
  63771. }
  63772. 8019f2c: 3708 adds r7, #8
  63773. 8019f2e: 46bd mov sp, r7
  63774. 8019f30: bd80 pop {r7, pc}
  63775. 8019f32: bf00 nop
  63776. 8019f34: 0802e620 .word 0x0802e620
  63777. 8019f38: 0802e6f0 .word 0x0802e6f0
  63778. 8019f3c: 0802e674 .word 0x0802e674
  63779. 8019f40: 08031470 .word 0x08031470
  63780. 08019f44 <netif_init>:
  63781. }
  63782. #endif /* LWIP_HAVE_LOOPIF */
  63783. void
  63784. netif_init(void)
  63785. {
  63786. 8019f44: b480 push {r7}
  63787. 8019f46: af00 add r7, sp, #0
  63788. netif_set_link_up(&loop_netif);
  63789. netif_set_up(&loop_netif);
  63790. #endif /* LWIP_HAVE_LOOPIF */
  63791. }
  63792. 8019f48: bf00 nop
  63793. 8019f4a: 46bd mov sp, r7
  63794. 8019f4c: f85d 7b04 ldr.w r7, [sp], #4
  63795. 8019f50: 4770 bx lr
  63796. ...
  63797. 08019f54 <netif_add>:
  63798. netif_add(struct netif *netif,
  63799. #if LWIP_IPV4
  63800. const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,
  63801. #endif /* LWIP_IPV4 */
  63802. void *state, netif_init_fn init, netif_input_fn input)
  63803. {
  63804. 8019f54: b580 push {r7, lr}
  63805. 8019f56: b086 sub sp, #24
  63806. 8019f58: af00 add r7, sp, #0
  63807. 8019f5a: 60f8 str r0, [r7, #12]
  63808. 8019f5c: 60b9 str r1, [r7, #8]
  63809. 8019f5e: 607a str r2, [r7, #4]
  63810. 8019f60: 603b str r3, [r7, #0]
  63811. #if LWIP_IPV6
  63812. s8_t i;
  63813. #endif
  63814. LWIP_ASSERT_CORE_LOCKED();
  63815. 8019f62: f7f6 fd8b bl 8010a7c <sys_check_core_locking>
  63816. LWIP_ASSERT("single netif already set", 0);
  63817. return NULL;
  63818. }
  63819. #endif
  63820. LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL);
  63821. 8019f66: 68fb ldr r3, [r7, #12]
  63822. 8019f68: 2b00 cmp r3, #0
  63823. 8019f6a: d108 bne.n 8019f7e <netif_add+0x2a>
  63824. 8019f6c: 4b5b ldr r3, [pc, #364] @ (801a0dc <netif_add+0x188>)
  63825. 8019f6e: f240 1227 movw r2, #295 @ 0x127
  63826. 8019f72: 495b ldr r1, [pc, #364] @ (801a0e0 <netif_add+0x18c>)
  63827. 8019f74: 485b ldr r0, [pc, #364] @ (801a0e4 <netif_add+0x190>)
  63828. 8019f76: f010 f921 bl 802a1bc <iprintf>
  63829. 8019f7a: 2300 movs r3, #0
  63830. 8019f7c: e0a9 b.n 801a0d2 <netif_add+0x17e>
  63831. LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL);
  63832. 8019f7e: 6a7b ldr r3, [r7, #36] @ 0x24
  63833. 8019f80: 2b00 cmp r3, #0
  63834. 8019f82: d108 bne.n 8019f96 <netif_add+0x42>
  63835. 8019f84: 4b55 ldr r3, [pc, #340] @ (801a0dc <netif_add+0x188>)
  63836. 8019f86: f44f 7294 mov.w r2, #296 @ 0x128
  63837. 8019f8a: 4957 ldr r1, [pc, #348] @ (801a0e8 <netif_add+0x194>)
  63838. 8019f8c: 4855 ldr r0, [pc, #340] @ (801a0e4 <netif_add+0x190>)
  63839. 8019f8e: f010 f915 bl 802a1bc <iprintf>
  63840. 8019f92: 2300 movs r3, #0
  63841. 8019f94: e09d b.n 801a0d2 <netif_add+0x17e>
  63842. #if LWIP_IPV4
  63843. if (ipaddr == NULL) {
  63844. 8019f96: 68bb ldr r3, [r7, #8]
  63845. 8019f98: 2b00 cmp r3, #0
  63846. 8019f9a: d101 bne.n 8019fa0 <netif_add+0x4c>
  63847. ipaddr = ip_2_ip4(IP4_ADDR_ANY);
  63848. 8019f9c: 4b53 ldr r3, [pc, #332] @ (801a0ec <netif_add+0x198>)
  63849. 8019f9e: 60bb str r3, [r7, #8]
  63850. }
  63851. if (netmask == NULL) {
  63852. 8019fa0: 687b ldr r3, [r7, #4]
  63853. 8019fa2: 2b00 cmp r3, #0
  63854. 8019fa4: d101 bne.n 8019faa <netif_add+0x56>
  63855. netmask = ip_2_ip4(IP4_ADDR_ANY);
  63856. 8019fa6: 4b51 ldr r3, [pc, #324] @ (801a0ec <netif_add+0x198>)
  63857. 8019fa8: 607b str r3, [r7, #4]
  63858. }
  63859. if (gw == NULL) {
  63860. 8019faa: 683b ldr r3, [r7, #0]
  63861. 8019fac: 2b00 cmp r3, #0
  63862. 8019fae: d101 bne.n 8019fb4 <netif_add+0x60>
  63863. gw = ip_2_ip4(IP4_ADDR_ANY);
  63864. 8019fb0: 4b4e ldr r3, [pc, #312] @ (801a0ec <netif_add+0x198>)
  63865. 8019fb2: 603b str r3, [r7, #0]
  63866. }
  63867. /* reset new interface configuration state */
  63868. ip_addr_set_zero_ip4(&netif->ip_addr);
  63869. 8019fb4: 68fb ldr r3, [r7, #12]
  63870. 8019fb6: 2200 movs r2, #0
  63871. 8019fb8: 605a str r2, [r3, #4]
  63872. ip_addr_set_zero_ip4(&netif->netmask);
  63873. 8019fba: 68fb ldr r3, [r7, #12]
  63874. 8019fbc: 2200 movs r2, #0
  63875. 8019fbe: 609a str r2, [r3, #8]
  63876. ip_addr_set_zero_ip4(&netif->gw);
  63877. 8019fc0: 68fb ldr r3, [r7, #12]
  63878. 8019fc2: 2200 movs r2, #0
  63879. 8019fc4: 60da str r2, [r3, #12]
  63880. netif->output = netif_null_output_ip4;
  63881. 8019fc6: 68fb ldr r3, [r7, #12]
  63882. 8019fc8: 4a49 ldr r2, [pc, #292] @ (801a0f0 <netif_add+0x19c>)
  63883. 8019fca: 615a str r2, [r3, #20]
  63884. #endif /* LWIP_IPV6_ADDRESS_LIFETIMES */
  63885. }
  63886. netif->output_ip6 = netif_null_output_ip6;
  63887. #endif /* LWIP_IPV6 */
  63888. NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_ENABLE_ALL);
  63889. netif->mtu = 0;
  63890. 8019fcc: 68fb ldr r3, [r7, #12]
  63891. 8019fce: 2200 movs r2, #0
  63892. 8019fd0: 851a strh r2, [r3, #40] @ 0x28
  63893. netif->flags = 0;
  63894. 8019fd2: 68fb ldr r3, [r7, #12]
  63895. 8019fd4: 2200 movs r2, #0
  63896. 8019fd6: f883 2031 strb.w r2, [r3, #49] @ 0x31
  63897. #ifdef netif_get_client_data
  63898. memset(netif->client_data, 0, sizeof(netif->client_data));
  63899. 8019fda: 68fb ldr r3, [r7, #12]
  63900. 8019fdc: 3324 adds r3, #36 @ 0x24
  63901. 8019fde: 2204 movs r2, #4
  63902. 8019fe0: 2100 movs r1, #0
  63903. 8019fe2: 4618 mov r0, r3
  63904. 8019fe4: f010 fa7c bl 802a4e0 <memset>
  63905. #endif /* LWIP_IPV6 */
  63906. #if LWIP_NETIF_STATUS_CALLBACK
  63907. netif->status_callback = NULL;
  63908. #endif /* LWIP_NETIF_STATUS_CALLBACK */
  63909. #if LWIP_NETIF_LINK_CALLBACK
  63910. netif->link_callback = NULL;
  63911. 8019fe8: 68fb ldr r3, [r7, #12]
  63912. 8019fea: 2200 movs r2, #0
  63913. 8019fec: 61da str r2, [r3, #28]
  63914. netif->loop_first = NULL;
  63915. netif->loop_last = NULL;
  63916. #endif /* ENABLE_LOOPBACK */
  63917. /* remember netif specific state information data */
  63918. netif->state = state;
  63919. 8019fee: 68fb ldr r3, [r7, #12]
  63920. 8019ff0: 6a3a ldr r2, [r7, #32]
  63921. 8019ff2: 621a str r2, [r3, #32]
  63922. netif->num = netif_num;
  63923. 8019ff4: 4b3f ldr r3, [pc, #252] @ (801a0f4 <netif_add+0x1a0>)
  63924. 8019ff6: 781a ldrb r2, [r3, #0]
  63925. 8019ff8: 68fb ldr r3, [r7, #12]
  63926. 8019ffa: f883 2034 strb.w r2, [r3, #52] @ 0x34
  63927. netif->input = input;
  63928. 8019ffe: 68fb ldr r3, [r7, #12]
  63929. 801a000: 6aba ldr r2, [r7, #40] @ 0x28
  63930. 801a002: 611a str r2, [r3, #16]
  63931. #if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
  63932. netif->loop_cnt_current = 0;
  63933. #endif /* ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS */
  63934. #if LWIP_IPV4
  63935. netif_set_addr(netif, ipaddr, netmask, gw);
  63936. 801a004: 683b ldr r3, [r7, #0]
  63937. 801a006: 687a ldr r2, [r7, #4]
  63938. 801a008: 68b9 ldr r1, [r7, #8]
  63939. 801a00a: 68f8 ldr r0, [r7, #12]
  63940. 801a00c: f000 f914 bl 801a238 <netif_set_addr>
  63941. #endif /* LWIP_IPV4 */
  63942. /* call user specified initialization function for netif */
  63943. if (init(netif) != ERR_OK) {
  63944. 801a010: 6a7b ldr r3, [r7, #36] @ 0x24
  63945. 801a012: 68f8 ldr r0, [r7, #12]
  63946. 801a014: 4798 blx r3
  63947. 801a016: 4603 mov r3, r0
  63948. 801a018: 2b00 cmp r3, #0
  63949. 801a01a: d001 beq.n 801a020 <netif_add+0xcc>
  63950. return NULL;
  63951. 801a01c: 2300 movs r3, #0
  63952. 801a01e: e058 b.n 801a0d2 <netif_add+0x17e>
  63953. */
  63954. {
  63955. struct netif *netif2;
  63956. int num_netifs;
  63957. do {
  63958. if (netif->num == 255) {
  63959. 801a020: 68fb ldr r3, [r7, #12]
  63960. 801a022: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  63961. 801a026: 2bff cmp r3, #255 @ 0xff
  63962. 801a028: d103 bne.n 801a032 <netif_add+0xde>
  63963. netif->num = 0;
  63964. 801a02a: 68fb ldr r3, [r7, #12]
  63965. 801a02c: 2200 movs r2, #0
  63966. 801a02e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  63967. }
  63968. num_netifs = 0;
  63969. 801a032: 2300 movs r3, #0
  63970. 801a034: 613b str r3, [r7, #16]
  63971. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  63972. 801a036: 4b30 ldr r3, [pc, #192] @ (801a0f8 <netif_add+0x1a4>)
  63973. 801a038: 681b ldr r3, [r3, #0]
  63974. 801a03a: 617b str r3, [r7, #20]
  63975. 801a03c: e02b b.n 801a096 <netif_add+0x142>
  63976. LWIP_ASSERT("netif already added", netif2 != netif);
  63977. 801a03e: 697a ldr r2, [r7, #20]
  63978. 801a040: 68fb ldr r3, [r7, #12]
  63979. 801a042: 429a cmp r2, r3
  63980. 801a044: d106 bne.n 801a054 <netif_add+0x100>
  63981. 801a046: 4b25 ldr r3, [pc, #148] @ (801a0dc <netif_add+0x188>)
  63982. 801a048: f240 128b movw r2, #395 @ 0x18b
  63983. 801a04c: 492b ldr r1, [pc, #172] @ (801a0fc <netif_add+0x1a8>)
  63984. 801a04e: 4825 ldr r0, [pc, #148] @ (801a0e4 <netif_add+0x190>)
  63985. 801a050: f010 f8b4 bl 802a1bc <iprintf>
  63986. num_netifs++;
  63987. 801a054: 693b ldr r3, [r7, #16]
  63988. 801a056: 3301 adds r3, #1
  63989. 801a058: 613b str r3, [r7, #16]
  63990. LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255);
  63991. 801a05a: 693b ldr r3, [r7, #16]
  63992. 801a05c: 2bff cmp r3, #255 @ 0xff
  63993. 801a05e: dd06 ble.n 801a06e <netif_add+0x11a>
  63994. 801a060: 4b1e ldr r3, [pc, #120] @ (801a0dc <netif_add+0x188>)
  63995. 801a062: f240 128d movw r2, #397 @ 0x18d
  63996. 801a066: 4926 ldr r1, [pc, #152] @ (801a100 <netif_add+0x1ac>)
  63997. 801a068: 481e ldr r0, [pc, #120] @ (801a0e4 <netif_add+0x190>)
  63998. 801a06a: f010 f8a7 bl 802a1bc <iprintf>
  63999. if (netif2->num == netif->num) {
  64000. 801a06e: 697b ldr r3, [r7, #20]
  64001. 801a070: f893 2034 ldrb.w r2, [r3, #52] @ 0x34
  64002. 801a074: 68fb ldr r3, [r7, #12]
  64003. 801a076: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64004. 801a07a: 429a cmp r2, r3
  64005. 801a07c: d108 bne.n 801a090 <netif_add+0x13c>
  64006. netif->num++;
  64007. 801a07e: 68fb ldr r3, [r7, #12]
  64008. 801a080: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64009. 801a084: 3301 adds r3, #1
  64010. 801a086: b2da uxtb r2, r3
  64011. 801a088: 68fb ldr r3, [r7, #12]
  64012. 801a08a: f883 2034 strb.w r2, [r3, #52] @ 0x34
  64013. break;
  64014. 801a08e: e005 b.n 801a09c <netif_add+0x148>
  64015. for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) {
  64016. 801a090: 697b ldr r3, [r7, #20]
  64017. 801a092: 681b ldr r3, [r3, #0]
  64018. 801a094: 617b str r3, [r7, #20]
  64019. 801a096: 697b ldr r3, [r7, #20]
  64020. 801a098: 2b00 cmp r3, #0
  64021. 801a09a: d1d0 bne.n 801a03e <netif_add+0xea>
  64022. }
  64023. }
  64024. } while (netif2 != NULL);
  64025. 801a09c: 697b ldr r3, [r7, #20]
  64026. 801a09e: 2b00 cmp r3, #0
  64027. 801a0a0: d1be bne.n 801a020 <netif_add+0xcc>
  64028. }
  64029. if (netif->num == 254) {
  64030. 801a0a2: 68fb ldr r3, [r7, #12]
  64031. 801a0a4: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64032. 801a0a8: 2bfe cmp r3, #254 @ 0xfe
  64033. 801a0aa: d103 bne.n 801a0b4 <netif_add+0x160>
  64034. netif_num = 0;
  64035. 801a0ac: 4b11 ldr r3, [pc, #68] @ (801a0f4 <netif_add+0x1a0>)
  64036. 801a0ae: 2200 movs r2, #0
  64037. 801a0b0: 701a strb r2, [r3, #0]
  64038. 801a0b2: e006 b.n 801a0c2 <netif_add+0x16e>
  64039. } else {
  64040. netif_num = (u8_t)(netif->num + 1);
  64041. 801a0b4: 68fb ldr r3, [r7, #12]
  64042. 801a0b6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64043. 801a0ba: 3301 adds r3, #1
  64044. 801a0bc: b2da uxtb r2, r3
  64045. 801a0be: 4b0d ldr r3, [pc, #52] @ (801a0f4 <netif_add+0x1a0>)
  64046. 801a0c0: 701a strb r2, [r3, #0]
  64047. }
  64048. /* add this netif to the list */
  64049. netif->next = netif_list;
  64050. 801a0c2: 4b0d ldr r3, [pc, #52] @ (801a0f8 <netif_add+0x1a4>)
  64051. 801a0c4: 681a ldr r2, [r3, #0]
  64052. 801a0c6: 68fb ldr r3, [r7, #12]
  64053. 801a0c8: 601a str r2, [r3, #0]
  64054. netif_list = netif;
  64055. 801a0ca: 4a0b ldr r2, [pc, #44] @ (801a0f8 <netif_add+0x1a4>)
  64056. 801a0cc: 68fb ldr r3, [r7, #12]
  64057. 801a0ce: 6013 str r3, [r2, #0]
  64058. #endif /* LWIP_IPV4 */
  64059. LWIP_DEBUGF(NETIF_DEBUG, ("\n"));
  64060. netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL);
  64061. return netif;
  64062. 801a0d0: 68fb ldr r3, [r7, #12]
  64063. }
  64064. 801a0d2: 4618 mov r0, r3
  64065. 801a0d4: 3718 adds r7, #24
  64066. 801a0d6: 46bd mov sp, r7
  64067. 801a0d8: bd80 pop {r7, pc}
  64068. 801a0da: bf00 nop
  64069. 801a0dc: 0802e70c .word 0x0802e70c
  64070. 801a0e0: 0802e7a0 .word 0x0802e7a0
  64071. 801a0e4: 0802e75c .word 0x0802e75c
  64072. 801a0e8: 0802e7bc .word 0x0802e7bc
  64073. 801a0ec: 080314f4 .word 0x080314f4
  64074. 801a0f0: 0801a52f .word 0x0801a52f
  64075. 801a0f4: 2402af54 .word 0x2402af54
  64076. 801a0f8: 2402af4c .word 0x2402af4c
  64077. 801a0fc: 0802e7e0 .word 0x0802e7e0
  64078. 801a100: 0802e7f4 .word 0x0802e7f4
  64079. 0801a104 <netif_do_ip_addr_changed>:
  64080. static void
  64081. netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  64082. {
  64083. 801a104: b580 push {r7, lr}
  64084. 801a106: b082 sub sp, #8
  64085. 801a108: af00 add r7, sp, #0
  64086. 801a10a: 6078 str r0, [r7, #4]
  64087. 801a10c: 6039 str r1, [r7, #0]
  64088. #if LWIP_TCP
  64089. tcp_netif_ip_addr_changed(old_addr, new_addr);
  64090. 801a10e: 6839 ldr r1, [r7, #0]
  64091. 801a110: 6878 ldr r0, [r7, #4]
  64092. 801a112: f002 fe6f bl 801cdf4 <tcp_netif_ip_addr_changed>
  64093. #endif /* LWIP_TCP */
  64094. #if LWIP_UDP
  64095. udp_netif_ip_addr_changed(old_addr, new_addr);
  64096. 801a116: 6839 ldr r1, [r7, #0]
  64097. 801a118: 6878 ldr r0, [r7, #4]
  64098. 801a11a: f008 f82b bl 8022174 <udp_netif_ip_addr_changed>
  64099. #endif /* LWIP_UDP */
  64100. #if LWIP_RAW
  64101. raw_netif_ip_addr_changed(old_addr, new_addr);
  64102. #endif /* LWIP_RAW */
  64103. }
  64104. 801a11e: bf00 nop
  64105. 801a120: 3708 adds r7, #8
  64106. 801a122: 46bd mov sp, r7
  64107. 801a124: bd80 pop {r7, pc}
  64108. ...
  64109. 0801a128 <netif_do_set_ipaddr>:
  64110. #if LWIP_IPV4
  64111. static int
  64112. netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr)
  64113. {
  64114. 801a128: b580 push {r7, lr}
  64115. 801a12a: b086 sub sp, #24
  64116. 801a12c: af00 add r7, sp, #0
  64117. 801a12e: 60f8 str r0, [r7, #12]
  64118. 801a130: 60b9 str r1, [r7, #8]
  64119. 801a132: 607a str r2, [r7, #4]
  64120. LWIP_ASSERT("invalid pointer", ipaddr != NULL);
  64121. 801a134: 68bb ldr r3, [r7, #8]
  64122. 801a136: 2b00 cmp r3, #0
  64123. 801a138: d106 bne.n 801a148 <netif_do_set_ipaddr+0x20>
  64124. 801a13a: 4b1d ldr r3, [pc, #116] @ (801a1b0 <netif_do_set_ipaddr+0x88>)
  64125. 801a13c: f240 12cb movw r2, #459 @ 0x1cb
  64126. 801a140: 491c ldr r1, [pc, #112] @ (801a1b4 <netif_do_set_ipaddr+0x8c>)
  64127. 801a142: 481d ldr r0, [pc, #116] @ (801a1b8 <netif_do_set_ipaddr+0x90>)
  64128. 801a144: f010 f83a bl 802a1bc <iprintf>
  64129. LWIP_ASSERT("invalid pointer", old_addr != NULL);
  64130. 801a148: 687b ldr r3, [r7, #4]
  64131. 801a14a: 2b00 cmp r3, #0
  64132. 801a14c: d106 bne.n 801a15c <netif_do_set_ipaddr+0x34>
  64133. 801a14e: 4b18 ldr r3, [pc, #96] @ (801a1b0 <netif_do_set_ipaddr+0x88>)
  64134. 801a150: f44f 72e6 mov.w r2, #460 @ 0x1cc
  64135. 801a154: 4917 ldr r1, [pc, #92] @ (801a1b4 <netif_do_set_ipaddr+0x8c>)
  64136. 801a156: 4818 ldr r0, [pc, #96] @ (801a1b8 <netif_do_set_ipaddr+0x90>)
  64137. 801a158: f010 f830 bl 802a1bc <iprintf>
  64138. /* address is actually being changed? */
  64139. if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) {
  64140. 801a15c: 68bb ldr r3, [r7, #8]
  64141. 801a15e: 681a ldr r2, [r3, #0]
  64142. 801a160: 68fb ldr r3, [r7, #12]
  64143. 801a162: 3304 adds r3, #4
  64144. 801a164: 681b ldr r3, [r3, #0]
  64145. 801a166: 429a cmp r2, r3
  64146. 801a168: d01c beq.n 801a1a4 <netif_do_set_ipaddr+0x7c>
  64147. ip_addr_t new_addr;
  64148. *ip_2_ip4(&new_addr) = *ipaddr;
  64149. 801a16a: 68bb ldr r3, [r7, #8]
  64150. 801a16c: 681b ldr r3, [r3, #0]
  64151. 801a16e: 617b str r3, [r7, #20]
  64152. IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4);
  64153. ip_addr_copy(*old_addr, *netif_ip_addr4(netif));
  64154. 801a170: 68fb ldr r3, [r7, #12]
  64155. 801a172: 3304 adds r3, #4
  64156. 801a174: 681a ldr r2, [r3, #0]
  64157. 801a176: 687b ldr r3, [r7, #4]
  64158. 801a178: 601a str r2, [r3, #0]
  64159. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n"));
  64160. netif_do_ip_addr_changed(old_addr, &new_addr);
  64161. 801a17a: f107 0314 add.w r3, r7, #20
  64162. 801a17e: 4619 mov r1, r3
  64163. 801a180: 6878 ldr r0, [r7, #4]
  64164. 801a182: f7ff ffbf bl 801a104 <netif_do_ip_addr_changed>
  64165. mib2_remove_ip4(netif);
  64166. mib2_remove_route_ip4(0, netif);
  64167. /* set new IP address to netif */
  64168. ip4_addr_set(ip_2_ip4(&netif->ip_addr), ipaddr);
  64169. 801a186: 68bb ldr r3, [r7, #8]
  64170. 801a188: 2b00 cmp r3, #0
  64171. 801a18a: d002 beq.n 801a192 <netif_do_set_ipaddr+0x6a>
  64172. 801a18c: 68bb ldr r3, [r7, #8]
  64173. 801a18e: 681b ldr r3, [r3, #0]
  64174. 801a190: e000 b.n 801a194 <netif_do_set_ipaddr+0x6c>
  64175. 801a192: 2300 movs r3, #0
  64176. 801a194: 68fa ldr r2, [r7, #12]
  64177. 801a196: 6053 str r3, [r2, #4]
  64178. IP_SET_TYPE_VAL(netif->ip_addr, IPADDR_TYPE_V4);
  64179. mib2_add_ip4(netif);
  64180. mib2_add_route_ip4(0, netif);
  64181. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4);
  64182. 801a198: 2101 movs r1, #1
  64183. 801a19a: 68f8 ldr r0, [r7, #12]
  64184. 801a19c: f000 f8d6 bl 801a34c <netif_issue_reports>
  64185. NETIF_STATUS_CALLBACK(netif);
  64186. return 1; /* address changed */
  64187. 801a1a0: 2301 movs r3, #1
  64188. 801a1a2: e000 b.n 801a1a6 <netif_do_set_ipaddr+0x7e>
  64189. }
  64190. return 0; /* address unchanged */
  64191. 801a1a4: 2300 movs r3, #0
  64192. }
  64193. 801a1a6: 4618 mov r0, r3
  64194. 801a1a8: 3718 adds r7, #24
  64195. 801a1aa: 46bd mov sp, r7
  64196. 801a1ac: bd80 pop {r7, pc}
  64197. 801a1ae: bf00 nop
  64198. 801a1b0: 0802e70c .word 0x0802e70c
  64199. 801a1b4: 0802e824 .word 0x0802e824
  64200. 801a1b8: 0802e75c .word 0x0802e75c
  64201. 0801a1bc <netif_do_set_netmask>:
  64202. }
  64203. }
  64204. static int
  64205. netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm)
  64206. {
  64207. 801a1bc: b480 push {r7}
  64208. 801a1be: b085 sub sp, #20
  64209. 801a1c0: af00 add r7, sp, #0
  64210. 801a1c2: 60f8 str r0, [r7, #12]
  64211. 801a1c4: 60b9 str r1, [r7, #8]
  64212. 801a1c6: 607a str r2, [r7, #4]
  64213. /* address is actually being changed? */
  64214. if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) {
  64215. 801a1c8: 68bb ldr r3, [r7, #8]
  64216. 801a1ca: 681a ldr r2, [r3, #0]
  64217. 801a1cc: 68fb ldr r3, [r7, #12]
  64218. 801a1ce: 3308 adds r3, #8
  64219. 801a1d0: 681b ldr r3, [r3, #0]
  64220. 801a1d2: 429a cmp r2, r3
  64221. 801a1d4: d00a beq.n 801a1ec <netif_do_set_netmask+0x30>
  64222. #else
  64223. LWIP_UNUSED_ARG(old_nm);
  64224. #endif
  64225. mib2_remove_route_ip4(0, netif);
  64226. /* set new netmask to netif */
  64227. ip4_addr_set(ip_2_ip4(&netif->netmask), netmask);
  64228. 801a1d6: 68bb ldr r3, [r7, #8]
  64229. 801a1d8: 2b00 cmp r3, #0
  64230. 801a1da: d002 beq.n 801a1e2 <netif_do_set_netmask+0x26>
  64231. 801a1dc: 68bb ldr r3, [r7, #8]
  64232. 801a1de: 681b ldr r3, [r3, #0]
  64233. 801a1e0: e000 b.n 801a1e4 <netif_do_set_netmask+0x28>
  64234. 801a1e2: 2300 movs r3, #0
  64235. 801a1e4: 68fa ldr r2, [r7, #12]
  64236. 801a1e6: 6093 str r3, [r2, #8]
  64237. netif->name[0], netif->name[1],
  64238. ip4_addr1_16(netif_ip4_netmask(netif)),
  64239. ip4_addr2_16(netif_ip4_netmask(netif)),
  64240. ip4_addr3_16(netif_ip4_netmask(netif)),
  64241. ip4_addr4_16(netif_ip4_netmask(netif))));
  64242. return 1; /* netmask changed */
  64243. 801a1e8: 2301 movs r3, #1
  64244. 801a1ea: e000 b.n 801a1ee <netif_do_set_netmask+0x32>
  64245. }
  64246. return 0; /* netmask unchanged */
  64247. 801a1ec: 2300 movs r3, #0
  64248. }
  64249. 801a1ee: 4618 mov r0, r3
  64250. 801a1f0: 3714 adds r7, #20
  64251. 801a1f2: 46bd mov sp, r7
  64252. 801a1f4: f85d 7b04 ldr.w r7, [sp], #4
  64253. 801a1f8: 4770 bx lr
  64254. 0801a1fa <netif_do_set_gw>:
  64255. }
  64256. }
  64257. static int
  64258. netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw)
  64259. {
  64260. 801a1fa: b480 push {r7}
  64261. 801a1fc: b085 sub sp, #20
  64262. 801a1fe: af00 add r7, sp, #0
  64263. 801a200: 60f8 str r0, [r7, #12]
  64264. 801a202: 60b9 str r1, [r7, #8]
  64265. 801a204: 607a str r2, [r7, #4]
  64266. /* address is actually being changed? */
  64267. if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) {
  64268. 801a206: 68bb ldr r3, [r7, #8]
  64269. 801a208: 681a ldr r2, [r3, #0]
  64270. 801a20a: 68fb ldr r3, [r7, #12]
  64271. 801a20c: 330c adds r3, #12
  64272. 801a20e: 681b ldr r3, [r3, #0]
  64273. 801a210: 429a cmp r2, r3
  64274. 801a212: d00a beq.n 801a22a <netif_do_set_gw+0x30>
  64275. ip_addr_copy(*old_gw, *netif_ip_gw4(netif));
  64276. #else
  64277. LWIP_UNUSED_ARG(old_gw);
  64278. #endif
  64279. ip4_addr_set(ip_2_ip4(&netif->gw), gw);
  64280. 801a214: 68bb ldr r3, [r7, #8]
  64281. 801a216: 2b00 cmp r3, #0
  64282. 801a218: d002 beq.n 801a220 <netif_do_set_gw+0x26>
  64283. 801a21a: 68bb ldr r3, [r7, #8]
  64284. 801a21c: 681b ldr r3, [r3, #0]
  64285. 801a21e: e000 b.n 801a222 <netif_do_set_gw+0x28>
  64286. 801a220: 2300 movs r3, #0
  64287. 801a222: 68fa ldr r2, [r7, #12]
  64288. 801a224: 60d3 str r3, [r2, #12]
  64289. netif->name[0], netif->name[1],
  64290. ip4_addr1_16(netif_ip4_gw(netif)),
  64291. ip4_addr2_16(netif_ip4_gw(netif)),
  64292. ip4_addr3_16(netif_ip4_gw(netif)),
  64293. ip4_addr4_16(netif_ip4_gw(netif))));
  64294. return 1; /* gateway changed */
  64295. 801a226: 2301 movs r3, #1
  64296. 801a228: e000 b.n 801a22c <netif_do_set_gw+0x32>
  64297. }
  64298. return 0; /* gateway unchanged */
  64299. 801a22a: 2300 movs r3, #0
  64300. }
  64301. 801a22c: 4618 mov r0, r3
  64302. 801a22e: 3714 adds r7, #20
  64303. 801a230: 46bd mov sp, r7
  64304. 801a232: f85d 7b04 ldr.w r7, [sp], #4
  64305. 801a236: 4770 bx lr
  64306. 0801a238 <netif_set_addr>:
  64307. * @param gw the new default gateway
  64308. */
  64309. void
  64310. netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask,
  64311. const ip4_addr_t *gw)
  64312. {
  64313. 801a238: b580 push {r7, lr}
  64314. 801a23a: b088 sub sp, #32
  64315. 801a23c: af00 add r7, sp, #0
  64316. 801a23e: 60f8 str r0, [r7, #12]
  64317. 801a240: 60b9 str r1, [r7, #8]
  64318. 801a242: 607a str r2, [r7, #4]
  64319. 801a244: 603b str r3, [r7, #0]
  64320. ip_addr_t old_nm_val;
  64321. ip_addr_t old_gw_val;
  64322. ip_addr_t *old_nm = &old_nm_val;
  64323. ip_addr_t *old_gw = &old_gw_val;
  64324. #else
  64325. ip_addr_t *old_nm = NULL;
  64326. 801a246: 2300 movs r3, #0
  64327. 801a248: 61fb str r3, [r7, #28]
  64328. ip_addr_t *old_gw = NULL;
  64329. 801a24a: 2300 movs r3, #0
  64330. 801a24c: 61bb str r3, [r7, #24]
  64331. #endif
  64332. ip_addr_t old_addr;
  64333. int remove;
  64334. LWIP_ASSERT_CORE_LOCKED();
  64335. 801a24e: f7f6 fc15 bl 8010a7c <sys_check_core_locking>
  64336. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  64337. if (ipaddr == NULL) {
  64338. 801a252: 68bb ldr r3, [r7, #8]
  64339. 801a254: 2b00 cmp r3, #0
  64340. 801a256: d101 bne.n 801a25c <netif_set_addr+0x24>
  64341. ipaddr = IP4_ADDR_ANY4;
  64342. 801a258: 4b1c ldr r3, [pc, #112] @ (801a2cc <netif_set_addr+0x94>)
  64343. 801a25a: 60bb str r3, [r7, #8]
  64344. }
  64345. if (netmask == NULL) {
  64346. 801a25c: 687b ldr r3, [r7, #4]
  64347. 801a25e: 2b00 cmp r3, #0
  64348. 801a260: d101 bne.n 801a266 <netif_set_addr+0x2e>
  64349. netmask = IP4_ADDR_ANY4;
  64350. 801a262: 4b1a ldr r3, [pc, #104] @ (801a2cc <netif_set_addr+0x94>)
  64351. 801a264: 607b str r3, [r7, #4]
  64352. }
  64353. if (gw == NULL) {
  64354. 801a266: 683b ldr r3, [r7, #0]
  64355. 801a268: 2b00 cmp r3, #0
  64356. 801a26a: d101 bne.n 801a270 <netif_set_addr+0x38>
  64357. gw = IP4_ADDR_ANY4;
  64358. 801a26c: 4b17 ldr r3, [pc, #92] @ (801a2cc <netif_set_addr+0x94>)
  64359. 801a26e: 603b str r3, [r7, #0]
  64360. }
  64361. remove = ip4_addr_isany(ipaddr);
  64362. 801a270: 68bb ldr r3, [r7, #8]
  64363. 801a272: 2b00 cmp r3, #0
  64364. 801a274: d003 beq.n 801a27e <netif_set_addr+0x46>
  64365. 801a276: 68bb ldr r3, [r7, #8]
  64366. 801a278: 681b ldr r3, [r3, #0]
  64367. 801a27a: 2b00 cmp r3, #0
  64368. 801a27c: d101 bne.n 801a282 <netif_set_addr+0x4a>
  64369. 801a27e: 2301 movs r3, #1
  64370. 801a280: e000 b.n 801a284 <netif_set_addr+0x4c>
  64371. 801a282: 2300 movs r3, #0
  64372. 801a284: 617b str r3, [r7, #20]
  64373. if (remove) {
  64374. 801a286: 697b ldr r3, [r7, #20]
  64375. 801a288: 2b00 cmp r3, #0
  64376. 801a28a: d006 beq.n 801a29a <netif_set_addr+0x62>
  64377. /* when removing an address, we have to remove it *before* changing netmask/gw
  64378. to ensure that tcp RST segment can be sent correctly */
  64379. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  64380. 801a28c: f107 0310 add.w r3, r7, #16
  64381. 801a290: 461a mov r2, r3
  64382. 801a292: 68b9 ldr r1, [r7, #8]
  64383. 801a294: 68f8 ldr r0, [r7, #12]
  64384. 801a296: f7ff ff47 bl 801a128 <netif_do_set_ipaddr>
  64385. change_reason |= LWIP_NSC_IPV4_ADDRESS_CHANGED;
  64386. cb_args.ipv4_changed.old_address = &old_addr;
  64387. #endif
  64388. }
  64389. }
  64390. if (netif_do_set_netmask(netif, netmask, old_nm)) {
  64391. 801a29a: 69fa ldr r2, [r7, #28]
  64392. 801a29c: 6879 ldr r1, [r7, #4]
  64393. 801a29e: 68f8 ldr r0, [r7, #12]
  64394. 801a2a0: f7ff ff8c bl 801a1bc <netif_do_set_netmask>
  64395. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  64396. change_reason |= LWIP_NSC_IPV4_NETMASK_CHANGED;
  64397. cb_args.ipv4_changed.old_netmask = old_nm;
  64398. #endif
  64399. }
  64400. if (netif_do_set_gw(netif, gw, old_gw)) {
  64401. 801a2a4: 69ba ldr r2, [r7, #24]
  64402. 801a2a6: 6839 ldr r1, [r7, #0]
  64403. 801a2a8: 68f8 ldr r0, [r7, #12]
  64404. 801a2aa: f7ff ffa6 bl 801a1fa <netif_do_set_gw>
  64405. #if LWIP_NETIF_EXT_STATUS_CALLBACK
  64406. change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED;
  64407. cb_args.ipv4_changed.old_gw = old_gw;
  64408. #endif
  64409. }
  64410. if (!remove) {
  64411. 801a2ae: 697b ldr r3, [r7, #20]
  64412. 801a2b0: 2b00 cmp r3, #0
  64413. 801a2b2: d106 bne.n 801a2c2 <netif_set_addr+0x8a>
  64414. /* set ipaddr last to ensure netmask/gw have been set when status callback is called */
  64415. if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) {
  64416. 801a2b4: f107 0310 add.w r3, r7, #16
  64417. 801a2b8: 461a mov r2, r3
  64418. 801a2ba: 68b9 ldr r1, [r7, #8]
  64419. 801a2bc: 68f8 ldr r0, [r7, #12]
  64420. 801a2be: f7ff ff33 bl 801a128 <netif_do_set_ipaddr>
  64421. if (change_reason != LWIP_NSC_NONE) {
  64422. change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED;
  64423. netif_invoke_ext_callback(netif, change_reason, &cb_args);
  64424. }
  64425. #endif
  64426. }
  64427. 801a2c2: bf00 nop
  64428. 801a2c4: 3720 adds r7, #32
  64429. 801a2c6: 46bd mov sp, r7
  64430. 801a2c8: bd80 pop {r7, pc}
  64431. 801a2ca: bf00 nop
  64432. 801a2cc: 080314f4 .word 0x080314f4
  64433. 0801a2d0 <netif_set_default>:
  64434. *
  64435. * @param netif the default network interface
  64436. */
  64437. void
  64438. netif_set_default(struct netif *netif)
  64439. {
  64440. 801a2d0: b580 push {r7, lr}
  64441. 801a2d2: b082 sub sp, #8
  64442. 801a2d4: af00 add r7, sp, #0
  64443. 801a2d6: 6078 str r0, [r7, #4]
  64444. LWIP_ASSERT_CORE_LOCKED();
  64445. 801a2d8: f7f6 fbd0 bl 8010a7c <sys_check_core_locking>
  64446. mib2_remove_route_ip4(1, netif);
  64447. } else {
  64448. /* install default route */
  64449. mib2_add_route_ip4(1, netif);
  64450. }
  64451. netif_default = netif;
  64452. 801a2dc: 4a03 ldr r2, [pc, #12] @ (801a2ec <netif_set_default+0x1c>)
  64453. 801a2de: 687b ldr r3, [r7, #4]
  64454. 801a2e0: 6013 str r3, [r2, #0]
  64455. LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n",
  64456. netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\''));
  64457. }
  64458. 801a2e2: bf00 nop
  64459. 801a2e4: 3708 adds r7, #8
  64460. 801a2e6: 46bd mov sp, r7
  64461. 801a2e8: bd80 pop {r7, pc}
  64462. 801a2ea: bf00 nop
  64463. 801a2ec: 2402af50 .word 0x2402af50
  64464. 0801a2f0 <netif_set_up>:
  64465. * Bring an interface up, available for processing
  64466. * traffic.
  64467. */
  64468. void
  64469. netif_set_up(struct netif *netif)
  64470. {
  64471. 801a2f0: b580 push {r7, lr}
  64472. 801a2f2: b082 sub sp, #8
  64473. 801a2f4: af00 add r7, sp, #0
  64474. 801a2f6: 6078 str r0, [r7, #4]
  64475. LWIP_ASSERT_CORE_LOCKED();
  64476. 801a2f8: f7f6 fbc0 bl 8010a7c <sys_check_core_locking>
  64477. LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return);
  64478. 801a2fc: 687b ldr r3, [r7, #4]
  64479. 801a2fe: 2b00 cmp r3, #0
  64480. 801a300: d107 bne.n 801a312 <netif_set_up+0x22>
  64481. 801a302: 4b0f ldr r3, [pc, #60] @ (801a340 <netif_set_up+0x50>)
  64482. 801a304: f44f 7254 mov.w r2, #848 @ 0x350
  64483. 801a308: 490e ldr r1, [pc, #56] @ (801a344 <netif_set_up+0x54>)
  64484. 801a30a: 480f ldr r0, [pc, #60] @ (801a348 <netif_set_up+0x58>)
  64485. 801a30c: f00f ff56 bl 802a1bc <iprintf>
  64486. 801a310: e013 b.n 801a33a <netif_set_up+0x4a>
  64487. if (!(netif->flags & NETIF_FLAG_UP)) {
  64488. 801a312: 687b ldr r3, [r7, #4]
  64489. 801a314: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64490. 801a318: f003 0301 and.w r3, r3, #1
  64491. 801a31c: 2b00 cmp r3, #0
  64492. 801a31e: d10c bne.n 801a33a <netif_set_up+0x4a>
  64493. netif_set_flags(netif, NETIF_FLAG_UP);
  64494. 801a320: 687b ldr r3, [r7, #4]
  64495. 801a322: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64496. 801a326: f043 0301 orr.w r3, r3, #1
  64497. 801a32a: b2da uxtb r2, r3
  64498. 801a32c: 687b ldr r3, [r7, #4]
  64499. 801a32e: f883 2031 strb.w r2, [r3, #49] @ 0x31
  64500. args.status_changed.state = 1;
  64501. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  64502. }
  64503. #endif
  64504. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  64505. 801a332: 2103 movs r1, #3
  64506. 801a334: 6878 ldr r0, [r7, #4]
  64507. 801a336: f000 f809 bl 801a34c <netif_issue_reports>
  64508. #if LWIP_IPV6
  64509. nd6_restart_netif(netif);
  64510. #endif /* LWIP_IPV6 */
  64511. }
  64512. }
  64513. 801a33a: 3708 adds r7, #8
  64514. 801a33c: 46bd mov sp, r7
  64515. 801a33e: bd80 pop {r7, pc}
  64516. 801a340: 0802e70c .word 0x0802e70c
  64517. 801a344: 0802e894 .word 0x0802e894
  64518. 801a348: 0802e75c .word 0x0802e75c
  64519. 0801a34c <netif_issue_reports>:
  64520. /** Send ARP/IGMP/MLD/RS events, e.g. on link-up/netif-up or addr-change
  64521. */
  64522. static void
  64523. netif_issue_reports(struct netif *netif, u8_t report_type)
  64524. {
  64525. 801a34c: b580 push {r7, lr}
  64526. 801a34e: b082 sub sp, #8
  64527. 801a350: af00 add r7, sp, #0
  64528. 801a352: 6078 str r0, [r7, #4]
  64529. 801a354: 460b mov r3, r1
  64530. 801a356: 70fb strb r3, [r7, #3]
  64531. LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL);
  64532. 801a358: 687b ldr r3, [r7, #4]
  64533. 801a35a: 2b00 cmp r3, #0
  64534. 801a35c: d106 bne.n 801a36c <netif_issue_reports+0x20>
  64535. 801a35e: 4b18 ldr r3, [pc, #96] @ (801a3c0 <netif_issue_reports+0x74>)
  64536. 801a360: f240 326d movw r2, #877 @ 0x36d
  64537. 801a364: 4917 ldr r1, [pc, #92] @ (801a3c4 <netif_issue_reports+0x78>)
  64538. 801a366: 4818 ldr r0, [pc, #96] @ (801a3c8 <netif_issue_reports+0x7c>)
  64539. 801a368: f00f ff28 bl 802a1bc <iprintf>
  64540. /* Only send reports when both link and admin states are up */
  64541. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  64542. 801a36c: 687b ldr r3, [r7, #4]
  64543. 801a36e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64544. 801a372: f003 0304 and.w r3, r3, #4
  64545. 801a376: 2b00 cmp r3, #0
  64546. 801a378: d01e beq.n 801a3b8 <netif_issue_reports+0x6c>
  64547. !(netif->flags & NETIF_FLAG_UP)) {
  64548. 801a37a: 687b ldr r3, [r7, #4]
  64549. 801a37c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64550. 801a380: f003 0301 and.w r3, r3, #1
  64551. if (!(netif->flags & NETIF_FLAG_LINK_UP) ||
  64552. 801a384: 2b00 cmp r3, #0
  64553. 801a386: d017 beq.n 801a3b8 <netif_issue_reports+0x6c>
  64554. return;
  64555. }
  64556. #if LWIP_IPV4
  64557. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  64558. 801a388: 78fb ldrb r3, [r7, #3]
  64559. 801a38a: f003 0301 and.w r3, r3, #1
  64560. 801a38e: 2b00 cmp r3, #0
  64561. 801a390: d013 beq.n 801a3ba <netif_issue_reports+0x6e>
  64562. !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  64563. 801a392: 687b ldr r3, [r7, #4]
  64564. 801a394: 3304 adds r3, #4
  64565. 801a396: 681b ldr r3, [r3, #0]
  64566. if ((report_type & NETIF_REPORT_TYPE_IPV4) &&
  64567. 801a398: 2b00 cmp r3, #0
  64568. 801a39a: d00e beq.n 801a3ba <netif_issue_reports+0x6e>
  64569. #if LWIP_ARP
  64570. /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */
  64571. if (netif->flags & (NETIF_FLAG_ETHARP)) {
  64572. 801a39c: 687b ldr r3, [r7, #4]
  64573. 801a39e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64574. 801a3a2: f003 0308 and.w r3, r3, #8
  64575. 801a3a6: 2b00 cmp r3, #0
  64576. 801a3a8: d007 beq.n 801a3ba <netif_issue_reports+0x6e>
  64577. etharp_gratuitous(netif);
  64578. 801a3aa: 687b ldr r3, [r7, #4]
  64579. 801a3ac: 3304 adds r3, #4
  64580. 801a3ae: 4619 mov r1, r3
  64581. 801a3b0: 6878 ldr r0, [r7, #4]
  64582. 801a3b2: f00a fd2b bl 8024e0c <etharp_request>
  64583. 801a3b6: e000 b.n 801a3ba <netif_issue_reports+0x6e>
  64584. return;
  64585. 801a3b8: bf00 nop
  64586. /* send mld memberships */
  64587. mld6_report_groups(netif);
  64588. #endif /* LWIP_IPV6_MLD */
  64589. }
  64590. #endif /* LWIP_IPV6 */
  64591. }
  64592. 801a3ba: 3708 adds r7, #8
  64593. 801a3bc: 46bd mov sp, r7
  64594. 801a3be: bd80 pop {r7, pc}
  64595. 801a3c0: 0802e70c .word 0x0802e70c
  64596. 801a3c4: 0802e8b0 .word 0x0802e8b0
  64597. 801a3c8: 0802e75c .word 0x0802e75c
  64598. 0801a3cc <netif_set_down>:
  64599. * @ingroup netif
  64600. * Bring an interface down, disabling any traffic processing.
  64601. */
  64602. void
  64603. netif_set_down(struct netif *netif)
  64604. {
  64605. 801a3cc: b580 push {r7, lr}
  64606. 801a3ce: b082 sub sp, #8
  64607. 801a3d0: af00 add r7, sp, #0
  64608. 801a3d2: 6078 str r0, [r7, #4]
  64609. LWIP_ASSERT_CORE_LOCKED();
  64610. 801a3d4: f7f6 fb52 bl 8010a7c <sys_check_core_locking>
  64611. LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return);
  64612. 801a3d8: 687b ldr r3, [r7, #4]
  64613. 801a3da: 2b00 cmp r3, #0
  64614. 801a3dc: d107 bne.n 801a3ee <netif_set_down+0x22>
  64615. 801a3de: 4b12 ldr r3, [pc, #72] @ (801a428 <netif_set_down+0x5c>)
  64616. 801a3e0: f240 329b movw r2, #923 @ 0x39b
  64617. 801a3e4: 4911 ldr r1, [pc, #68] @ (801a42c <netif_set_down+0x60>)
  64618. 801a3e6: 4812 ldr r0, [pc, #72] @ (801a430 <netif_set_down+0x64>)
  64619. 801a3e8: f00f fee8 bl 802a1bc <iprintf>
  64620. 801a3ec: e019 b.n 801a422 <netif_set_down+0x56>
  64621. if (netif->flags & NETIF_FLAG_UP) {
  64622. 801a3ee: 687b ldr r3, [r7, #4]
  64623. 801a3f0: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64624. 801a3f4: f003 0301 and.w r3, r3, #1
  64625. 801a3f8: 2b00 cmp r3, #0
  64626. 801a3fa: d012 beq.n 801a422 <netif_set_down+0x56>
  64627. args.status_changed.state = 0;
  64628. netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args);
  64629. }
  64630. #endif
  64631. netif_clear_flags(netif, NETIF_FLAG_UP);
  64632. 801a3fc: 687b ldr r3, [r7, #4]
  64633. 801a3fe: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64634. 801a402: f023 0301 bic.w r3, r3, #1
  64635. 801a406: b2da uxtb r2, r3
  64636. 801a408: 687b ldr r3, [r7, #4]
  64637. 801a40a: f883 2031 strb.w r2, [r3, #49] @ 0x31
  64638. MIB2_COPY_SYSUPTIME_TO(&netif->ts);
  64639. #if LWIP_IPV4 && LWIP_ARP
  64640. if (netif->flags & NETIF_FLAG_ETHARP) {
  64641. 801a40e: 687b ldr r3, [r7, #4]
  64642. 801a410: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64643. 801a414: f003 0308 and.w r3, r3, #8
  64644. 801a418: 2b00 cmp r3, #0
  64645. 801a41a: d002 beq.n 801a422 <netif_set_down+0x56>
  64646. etharp_cleanup_netif(netif);
  64647. 801a41c: 6878 ldr r0, [r7, #4]
  64648. 801a41e: f00a f8ab bl 8024578 <etharp_cleanup_netif>
  64649. nd6_cleanup_netif(netif);
  64650. #endif /* LWIP_IPV6 */
  64651. NETIF_STATUS_CALLBACK(netif);
  64652. }
  64653. }
  64654. 801a422: 3708 adds r7, #8
  64655. 801a424: 46bd mov sp, r7
  64656. 801a426: bd80 pop {r7, pc}
  64657. 801a428: 0802e70c .word 0x0802e70c
  64658. 801a42c: 0802e8d4 .word 0x0802e8d4
  64659. 801a430: 0802e75c .word 0x0802e75c
  64660. 0801a434 <netif_set_link_up>:
  64661. * @ingroup netif
  64662. * Called by a driver when its link goes up
  64663. */
  64664. void
  64665. netif_set_link_up(struct netif *netif)
  64666. {
  64667. 801a434: b580 push {r7, lr}
  64668. 801a436: b082 sub sp, #8
  64669. 801a438: af00 add r7, sp, #0
  64670. 801a43a: 6078 str r0, [r7, #4]
  64671. LWIP_ASSERT_CORE_LOCKED();
  64672. 801a43c: f7f6 fb1e bl 8010a7c <sys_check_core_locking>
  64673. LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return);
  64674. 801a440: 687b ldr r3, [r7, #4]
  64675. 801a442: 2b00 cmp r3, #0
  64676. 801a444: d107 bne.n 801a456 <netif_set_link_up+0x22>
  64677. 801a446: 4b15 ldr r3, [pc, #84] @ (801a49c <netif_set_link_up+0x68>)
  64678. 801a448: f44f 7278 mov.w r2, #992 @ 0x3e0
  64679. 801a44c: 4914 ldr r1, [pc, #80] @ (801a4a0 <netif_set_link_up+0x6c>)
  64680. 801a44e: 4815 ldr r0, [pc, #84] @ (801a4a4 <netif_set_link_up+0x70>)
  64681. 801a450: f00f feb4 bl 802a1bc <iprintf>
  64682. 801a454: e01e b.n 801a494 <netif_set_link_up+0x60>
  64683. if (!(netif->flags & NETIF_FLAG_LINK_UP)) {
  64684. 801a456: 687b ldr r3, [r7, #4]
  64685. 801a458: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64686. 801a45c: f003 0304 and.w r3, r3, #4
  64687. 801a460: 2b00 cmp r3, #0
  64688. 801a462: d117 bne.n 801a494 <netif_set_link_up+0x60>
  64689. netif_set_flags(netif, NETIF_FLAG_LINK_UP);
  64690. 801a464: 687b ldr r3, [r7, #4]
  64691. 801a466: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64692. 801a46a: f043 0304 orr.w r3, r3, #4
  64693. 801a46e: b2da uxtb r2, r3
  64694. 801a470: 687b ldr r3, [r7, #4]
  64695. 801a472: f883 2031 strb.w r2, [r3, #49] @ 0x31
  64696. #if LWIP_DHCP
  64697. dhcp_network_changed(netif);
  64698. 801a476: 6878 ldr r0, [r7, #4]
  64699. 801a478: f008 faaa bl 80229d0 <dhcp_network_changed>
  64700. #if LWIP_AUTOIP
  64701. autoip_network_changed(netif);
  64702. #endif /* LWIP_AUTOIP */
  64703. netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6);
  64704. 801a47c: 2103 movs r1, #3
  64705. 801a47e: 6878 ldr r0, [r7, #4]
  64706. 801a480: f7ff ff64 bl 801a34c <netif_issue_reports>
  64707. #if LWIP_IPV6
  64708. nd6_restart_netif(netif);
  64709. #endif /* LWIP_IPV6 */
  64710. NETIF_LINK_CALLBACK(netif);
  64711. 801a484: 687b ldr r3, [r7, #4]
  64712. 801a486: 69db ldr r3, [r3, #28]
  64713. 801a488: 2b00 cmp r3, #0
  64714. 801a48a: d003 beq.n 801a494 <netif_set_link_up+0x60>
  64715. 801a48c: 687b ldr r3, [r7, #4]
  64716. 801a48e: 69db ldr r3, [r3, #28]
  64717. 801a490: 6878 ldr r0, [r7, #4]
  64718. 801a492: 4798 blx r3
  64719. args.link_changed.state = 1;
  64720. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  64721. }
  64722. #endif
  64723. }
  64724. }
  64725. 801a494: 3708 adds r7, #8
  64726. 801a496: 46bd mov sp, r7
  64727. 801a498: bd80 pop {r7, pc}
  64728. 801a49a: bf00 nop
  64729. 801a49c: 0802e70c .word 0x0802e70c
  64730. 801a4a0: 0802e8f4 .word 0x0802e8f4
  64731. 801a4a4: 0802e75c .word 0x0802e75c
  64732. 0801a4a8 <netif_set_link_down>:
  64733. * @ingroup netif
  64734. * Called by a driver when its link goes down
  64735. */
  64736. void
  64737. netif_set_link_down(struct netif *netif)
  64738. {
  64739. 801a4a8: b580 push {r7, lr}
  64740. 801a4aa: b082 sub sp, #8
  64741. 801a4ac: af00 add r7, sp, #0
  64742. 801a4ae: 6078 str r0, [r7, #4]
  64743. LWIP_ASSERT_CORE_LOCKED();
  64744. 801a4b0: f7f6 fae4 bl 8010a7c <sys_check_core_locking>
  64745. LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return);
  64746. 801a4b4: 687b ldr r3, [r7, #4]
  64747. 801a4b6: 2b00 cmp r3, #0
  64748. 801a4b8: d107 bne.n 801a4ca <netif_set_link_down+0x22>
  64749. 801a4ba: 4b11 ldr r3, [pc, #68] @ (801a500 <netif_set_link_down+0x58>)
  64750. 801a4bc: f240 4206 movw r2, #1030 @ 0x406
  64751. 801a4c0: 4910 ldr r1, [pc, #64] @ (801a504 <netif_set_link_down+0x5c>)
  64752. 801a4c2: 4811 ldr r0, [pc, #68] @ (801a508 <netif_set_link_down+0x60>)
  64753. 801a4c4: f00f fe7a bl 802a1bc <iprintf>
  64754. 801a4c8: e017 b.n 801a4fa <netif_set_link_down+0x52>
  64755. if (netif->flags & NETIF_FLAG_LINK_UP) {
  64756. 801a4ca: 687b ldr r3, [r7, #4]
  64757. 801a4cc: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64758. 801a4d0: f003 0304 and.w r3, r3, #4
  64759. 801a4d4: 2b00 cmp r3, #0
  64760. 801a4d6: d010 beq.n 801a4fa <netif_set_link_down+0x52>
  64761. netif_clear_flags(netif, NETIF_FLAG_LINK_UP);
  64762. 801a4d8: 687b ldr r3, [r7, #4]
  64763. 801a4da: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  64764. 801a4de: f023 0304 bic.w r3, r3, #4
  64765. 801a4e2: b2da uxtb r2, r3
  64766. 801a4e4: 687b ldr r3, [r7, #4]
  64767. 801a4e6: f883 2031 strb.w r2, [r3, #49] @ 0x31
  64768. NETIF_LINK_CALLBACK(netif);
  64769. 801a4ea: 687b ldr r3, [r7, #4]
  64770. 801a4ec: 69db ldr r3, [r3, #28]
  64771. 801a4ee: 2b00 cmp r3, #0
  64772. 801a4f0: d003 beq.n 801a4fa <netif_set_link_down+0x52>
  64773. 801a4f2: 687b ldr r3, [r7, #4]
  64774. 801a4f4: 69db ldr r3, [r3, #28]
  64775. 801a4f6: 6878 ldr r0, [r7, #4]
  64776. 801a4f8: 4798 blx r3
  64777. args.link_changed.state = 0;
  64778. netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args);
  64779. }
  64780. #endif
  64781. }
  64782. }
  64783. 801a4fa: 3708 adds r7, #8
  64784. 801a4fc: 46bd mov sp, r7
  64785. 801a4fe: bd80 pop {r7, pc}
  64786. 801a500: 0802e70c .word 0x0802e70c
  64787. 801a504: 0802e918 .word 0x0802e918
  64788. 801a508: 0802e75c .word 0x0802e75c
  64789. 0801a50c <netif_set_link_callback>:
  64790. * @ingroup netif
  64791. * Set callback to be called when link is brought up/down
  64792. */
  64793. void
  64794. netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback)
  64795. {
  64796. 801a50c: b580 push {r7, lr}
  64797. 801a50e: b082 sub sp, #8
  64798. 801a510: af00 add r7, sp, #0
  64799. 801a512: 6078 str r0, [r7, #4]
  64800. 801a514: 6039 str r1, [r7, #0]
  64801. LWIP_ASSERT_CORE_LOCKED();
  64802. 801a516: f7f6 fab1 bl 8010a7c <sys_check_core_locking>
  64803. if (netif) {
  64804. 801a51a: 687b ldr r3, [r7, #4]
  64805. 801a51c: 2b00 cmp r3, #0
  64806. 801a51e: d002 beq.n 801a526 <netif_set_link_callback+0x1a>
  64807. netif->link_callback = link_callback;
  64808. 801a520: 687b ldr r3, [r7, #4]
  64809. 801a522: 683a ldr r2, [r7, #0]
  64810. 801a524: 61da str r2, [r3, #28]
  64811. }
  64812. }
  64813. 801a526: bf00 nop
  64814. 801a528: 3708 adds r7, #8
  64815. 801a52a: 46bd mov sp, r7
  64816. 801a52c: bd80 pop {r7, pc}
  64817. 0801a52e <netif_null_output_ip4>:
  64818. #if LWIP_IPV4
  64819. /** Dummy IPv4 output function for netifs not supporting IPv4
  64820. */
  64821. static err_t
  64822. netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr)
  64823. {
  64824. 801a52e: b480 push {r7}
  64825. 801a530: b085 sub sp, #20
  64826. 801a532: af00 add r7, sp, #0
  64827. 801a534: 60f8 str r0, [r7, #12]
  64828. 801a536: 60b9 str r1, [r7, #8]
  64829. 801a538: 607a str r2, [r7, #4]
  64830. LWIP_UNUSED_ARG(netif);
  64831. LWIP_UNUSED_ARG(p);
  64832. LWIP_UNUSED_ARG(ipaddr);
  64833. return ERR_IF;
  64834. 801a53a: f06f 030b mvn.w r3, #11
  64835. }
  64836. 801a53e: 4618 mov r0, r3
  64837. 801a540: 3714 adds r7, #20
  64838. 801a542: 46bd mov sp, r7
  64839. 801a544: f85d 7b04 ldr.w r7, [sp], #4
  64840. 801a548: 4770 bx lr
  64841. ...
  64842. 0801a54c <netif_get_by_index>:
  64843. *
  64844. * @param idx index of netif to find
  64845. */
  64846. struct netif *
  64847. netif_get_by_index(u8_t idx)
  64848. {
  64849. 801a54c: b580 push {r7, lr}
  64850. 801a54e: b084 sub sp, #16
  64851. 801a550: af00 add r7, sp, #0
  64852. 801a552: 4603 mov r3, r0
  64853. 801a554: 71fb strb r3, [r7, #7]
  64854. struct netif *netif;
  64855. LWIP_ASSERT_CORE_LOCKED();
  64856. 801a556: f7f6 fa91 bl 8010a7c <sys_check_core_locking>
  64857. if (idx != NETIF_NO_INDEX) {
  64858. 801a55a: 79fb ldrb r3, [r7, #7]
  64859. 801a55c: 2b00 cmp r3, #0
  64860. 801a55e: d013 beq.n 801a588 <netif_get_by_index+0x3c>
  64861. NETIF_FOREACH(netif) {
  64862. 801a560: 4b0c ldr r3, [pc, #48] @ (801a594 <netif_get_by_index+0x48>)
  64863. 801a562: 681b ldr r3, [r3, #0]
  64864. 801a564: 60fb str r3, [r7, #12]
  64865. 801a566: e00c b.n 801a582 <netif_get_by_index+0x36>
  64866. if (idx == netif_get_index(netif)) {
  64867. 801a568: 68fb ldr r3, [r7, #12]
  64868. 801a56a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  64869. 801a56e: 3301 adds r3, #1
  64870. 801a570: b2db uxtb r3, r3
  64871. 801a572: 79fa ldrb r2, [r7, #7]
  64872. 801a574: 429a cmp r2, r3
  64873. 801a576: d101 bne.n 801a57c <netif_get_by_index+0x30>
  64874. return netif; /* found! */
  64875. 801a578: 68fb ldr r3, [r7, #12]
  64876. 801a57a: e006 b.n 801a58a <netif_get_by_index+0x3e>
  64877. NETIF_FOREACH(netif) {
  64878. 801a57c: 68fb ldr r3, [r7, #12]
  64879. 801a57e: 681b ldr r3, [r3, #0]
  64880. 801a580: 60fb str r3, [r7, #12]
  64881. 801a582: 68fb ldr r3, [r7, #12]
  64882. 801a584: 2b00 cmp r3, #0
  64883. 801a586: d1ef bne.n 801a568 <netif_get_by_index+0x1c>
  64884. }
  64885. }
  64886. }
  64887. return NULL;
  64888. 801a588: 2300 movs r3, #0
  64889. }
  64890. 801a58a: 4618 mov r0, r3
  64891. 801a58c: 3710 adds r7, #16
  64892. 801a58e: 46bd mov sp, r7
  64893. 801a590: bd80 pop {r7, pc}
  64894. 801a592: bf00 nop
  64895. 801a594: 2402af4c .word 0x2402af4c
  64896. 0801a598 <pbuf_free_ooseq>:
  64897. #if !NO_SYS
  64898. static
  64899. #endif /* !NO_SYS */
  64900. void
  64901. pbuf_free_ooseq(void)
  64902. {
  64903. 801a598: b580 push {r7, lr}
  64904. 801a59a: b082 sub sp, #8
  64905. 801a59c: af00 add r7, sp, #0
  64906. struct tcp_pcb *pcb;
  64907. SYS_ARCH_SET(pbuf_free_ooseq_pending, 0);
  64908. 801a59e: f00c fb77 bl 8026c90 <sys_arch_protect>
  64909. 801a5a2: 6038 str r0, [r7, #0]
  64910. 801a5a4: 4b0d ldr r3, [pc, #52] @ (801a5dc <pbuf_free_ooseq+0x44>)
  64911. 801a5a6: 2200 movs r2, #0
  64912. 801a5a8: 701a strb r2, [r3, #0]
  64913. 801a5aa: 6838 ldr r0, [r7, #0]
  64914. 801a5ac: f00c fb7e bl 8026cac <sys_arch_unprotect>
  64915. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  64916. 801a5b0: 4b0b ldr r3, [pc, #44] @ (801a5e0 <pbuf_free_ooseq+0x48>)
  64917. 801a5b2: 681b ldr r3, [r3, #0]
  64918. 801a5b4: 607b str r3, [r7, #4]
  64919. 801a5b6: e00a b.n 801a5ce <pbuf_free_ooseq+0x36>
  64920. if (pcb->ooseq != NULL) {
  64921. 801a5b8: 687b ldr r3, [r7, #4]
  64922. 801a5ba: 6f5b ldr r3, [r3, #116] @ 0x74
  64923. 801a5bc: 2b00 cmp r3, #0
  64924. 801a5be: d003 beq.n 801a5c8 <pbuf_free_ooseq+0x30>
  64925. /** Free the ooseq pbufs of one PCB only */
  64926. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free_ooseq: freeing out-of-sequence pbufs\n"));
  64927. tcp_free_ooseq(pcb);
  64928. 801a5c0: 6878 ldr r0, [r7, #4]
  64929. 801a5c2: f002 fc55 bl 801ce70 <tcp_free_ooseq>
  64930. return;
  64931. 801a5c6: e005 b.n 801a5d4 <pbuf_free_ooseq+0x3c>
  64932. for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) {
  64933. 801a5c8: 687b ldr r3, [r7, #4]
  64934. 801a5ca: 68db ldr r3, [r3, #12]
  64935. 801a5cc: 607b str r3, [r7, #4]
  64936. 801a5ce: 687b ldr r3, [r7, #4]
  64937. 801a5d0: 2b00 cmp r3, #0
  64938. 801a5d2: d1f1 bne.n 801a5b8 <pbuf_free_ooseq+0x20>
  64939. }
  64940. }
  64941. }
  64942. 801a5d4: 3708 adds r7, #8
  64943. 801a5d6: 46bd mov sp, r7
  64944. 801a5d8: bd80 pop {r7, pc}
  64945. 801a5da: bf00 nop
  64946. 801a5dc: 2402af55 .word 0x2402af55
  64947. 801a5e0: 2402af64 .word 0x2402af64
  64948. 0801a5e4 <pbuf_free_ooseq_callback>:
  64949. /**
  64950. * Just a callback function for tcpip_callback() that calls pbuf_free_ooseq().
  64951. */
  64952. static void
  64953. pbuf_free_ooseq_callback(void *arg)
  64954. {
  64955. 801a5e4: b580 push {r7, lr}
  64956. 801a5e6: b082 sub sp, #8
  64957. 801a5e8: af00 add r7, sp, #0
  64958. 801a5ea: 6078 str r0, [r7, #4]
  64959. LWIP_UNUSED_ARG(arg);
  64960. pbuf_free_ooseq();
  64961. 801a5ec: f7ff ffd4 bl 801a598 <pbuf_free_ooseq>
  64962. }
  64963. 801a5f0: bf00 nop
  64964. 801a5f2: 3708 adds r7, #8
  64965. 801a5f4: 46bd mov sp, r7
  64966. 801a5f6: bd80 pop {r7, pc}
  64967. 0801a5f8 <pbuf_pool_is_empty>:
  64968. #endif /* !NO_SYS */
  64969. /** Queue a call to pbuf_free_ooseq if not already queued. */
  64970. static void
  64971. pbuf_pool_is_empty(void)
  64972. {
  64973. 801a5f8: b580 push {r7, lr}
  64974. 801a5fa: b082 sub sp, #8
  64975. 801a5fc: af00 add r7, sp, #0
  64976. #ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL
  64977. SYS_ARCH_SET(pbuf_free_ooseq_pending, 1);
  64978. #else /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  64979. u8_t queued;
  64980. SYS_ARCH_DECL_PROTECT(old_level);
  64981. SYS_ARCH_PROTECT(old_level);
  64982. 801a5fe: f00c fb47 bl 8026c90 <sys_arch_protect>
  64983. 801a602: 6078 str r0, [r7, #4]
  64984. queued = pbuf_free_ooseq_pending;
  64985. 801a604: 4b0f ldr r3, [pc, #60] @ (801a644 <pbuf_pool_is_empty+0x4c>)
  64986. 801a606: 781b ldrb r3, [r3, #0]
  64987. 801a608: 70fb strb r3, [r7, #3]
  64988. pbuf_free_ooseq_pending = 1;
  64989. 801a60a: 4b0e ldr r3, [pc, #56] @ (801a644 <pbuf_pool_is_empty+0x4c>)
  64990. 801a60c: 2201 movs r2, #1
  64991. 801a60e: 701a strb r2, [r3, #0]
  64992. SYS_ARCH_UNPROTECT(old_level);
  64993. 801a610: 6878 ldr r0, [r7, #4]
  64994. 801a612: f00c fb4b bl 8026cac <sys_arch_unprotect>
  64995. if (!queued) {
  64996. 801a616: 78fb ldrb r3, [r7, #3]
  64997. 801a618: 2b00 cmp r3, #0
  64998. 801a61a: d10f bne.n 801a63c <pbuf_pool_is_empty+0x44>
  64999. /* queue a call to pbuf_free_ooseq if not already queued */
  65000. PBUF_POOL_FREE_OOSEQ_QUEUE_CALL();
  65001. 801a61c: 2100 movs r1, #0
  65002. 801a61e: 480a ldr r0, [pc, #40] @ (801a648 <pbuf_pool_is_empty+0x50>)
  65003. 801a620: f7fe fdd6 bl 80191d0 <tcpip_try_callback>
  65004. 801a624: 4603 mov r3, r0
  65005. 801a626: 2b00 cmp r3, #0
  65006. 801a628: d008 beq.n 801a63c <pbuf_pool_is_empty+0x44>
  65007. 801a62a: f00c fb31 bl 8026c90 <sys_arch_protect>
  65008. 801a62e: 6078 str r0, [r7, #4]
  65009. 801a630: 4b04 ldr r3, [pc, #16] @ (801a644 <pbuf_pool_is_empty+0x4c>)
  65010. 801a632: 2200 movs r2, #0
  65011. 801a634: 701a strb r2, [r3, #0]
  65012. 801a636: 6878 ldr r0, [r7, #4]
  65013. 801a638: f00c fb38 bl 8026cac <sys_arch_unprotect>
  65014. }
  65015. #endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */
  65016. }
  65017. 801a63c: bf00 nop
  65018. 801a63e: 3708 adds r7, #8
  65019. 801a640: 46bd mov sp, r7
  65020. 801a642: bd80 pop {r7, pc}
  65021. 801a644: 2402af55 .word 0x2402af55
  65022. 801a648: 0801a5e5 .word 0x0801a5e5
  65023. 0801a64c <pbuf_init_alloced_pbuf>:
  65024. #endif /* !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ */
  65025. /* Initialize members of struct pbuf after allocation */
  65026. static void
  65027. pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags)
  65028. {
  65029. 801a64c: b480 push {r7}
  65030. 801a64e: b085 sub sp, #20
  65031. 801a650: af00 add r7, sp, #0
  65032. 801a652: 60f8 str r0, [r7, #12]
  65033. 801a654: 60b9 str r1, [r7, #8]
  65034. 801a656: 4611 mov r1, r2
  65035. 801a658: 461a mov r2, r3
  65036. 801a65a: 460b mov r3, r1
  65037. 801a65c: 80fb strh r3, [r7, #6]
  65038. 801a65e: 4613 mov r3, r2
  65039. 801a660: 80bb strh r3, [r7, #4]
  65040. p->next = NULL;
  65041. 801a662: 68fb ldr r3, [r7, #12]
  65042. 801a664: 2200 movs r2, #0
  65043. 801a666: 601a str r2, [r3, #0]
  65044. p->payload = payload;
  65045. 801a668: 68fb ldr r3, [r7, #12]
  65046. 801a66a: 68ba ldr r2, [r7, #8]
  65047. 801a66c: 605a str r2, [r3, #4]
  65048. p->tot_len = tot_len;
  65049. 801a66e: 68fb ldr r3, [r7, #12]
  65050. 801a670: 88fa ldrh r2, [r7, #6]
  65051. 801a672: 811a strh r2, [r3, #8]
  65052. p->len = len;
  65053. 801a674: 68fb ldr r3, [r7, #12]
  65054. 801a676: 88ba ldrh r2, [r7, #4]
  65055. 801a678: 815a strh r2, [r3, #10]
  65056. p->type_internal = (u8_t)type;
  65057. 801a67a: 8b3b ldrh r3, [r7, #24]
  65058. 801a67c: b2da uxtb r2, r3
  65059. 801a67e: 68fb ldr r3, [r7, #12]
  65060. 801a680: 731a strb r2, [r3, #12]
  65061. p->flags = flags;
  65062. 801a682: 68fb ldr r3, [r7, #12]
  65063. 801a684: 7f3a ldrb r2, [r7, #28]
  65064. 801a686: 735a strb r2, [r3, #13]
  65065. p->ref = 1;
  65066. 801a688: 68fb ldr r3, [r7, #12]
  65067. 801a68a: 2201 movs r2, #1
  65068. 801a68c: 739a strb r2, [r3, #14]
  65069. p->if_idx = NETIF_NO_INDEX;
  65070. 801a68e: 68fb ldr r3, [r7, #12]
  65071. 801a690: 2200 movs r2, #0
  65072. 801a692: 73da strb r2, [r3, #15]
  65073. }
  65074. 801a694: bf00 nop
  65075. 801a696: 3714 adds r7, #20
  65076. 801a698: 46bd mov sp, r7
  65077. 801a69a: f85d 7b04 ldr.w r7, [sp], #4
  65078. 801a69e: 4770 bx lr
  65079. 0801a6a0 <pbuf_alloc>:
  65080. * @return the allocated pbuf. If multiple pbufs where allocated, this
  65081. * is the first pbuf of a pbuf chain.
  65082. */
  65083. struct pbuf *
  65084. pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
  65085. {
  65086. 801a6a0: b580 push {r7, lr}
  65087. 801a6a2: b08c sub sp, #48 @ 0x30
  65088. 801a6a4: af02 add r7, sp, #8
  65089. 801a6a6: 4603 mov r3, r0
  65090. 801a6a8: 71fb strb r3, [r7, #7]
  65091. 801a6aa: 460b mov r3, r1
  65092. 801a6ac: 80bb strh r3, [r7, #4]
  65093. 801a6ae: 4613 mov r3, r2
  65094. 801a6b0: 807b strh r3, [r7, #2]
  65095. struct pbuf *p;
  65096. u16_t offset = (u16_t)layer;
  65097. 801a6b2: 79fb ldrb r3, [r7, #7]
  65098. 801a6b4: 847b strh r3, [r7, #34] @ 0x22
  65099. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length));
  65100. switch (type) {
  65101. 801a6b6: 887b ldrh r3, [r7, #2]
  65102. 801a6b8: f5b3 7f20 cmp.w r3, #640 @ 0x280
  65103. 801a6bc: f000 8082 beq.w 801a7c4 <pbuf_alloc+0x124>
  65104. 801a6c0: f5b3 7f20 cmp.w r3, #640 @ 0x280
  65105. 801a6c4: f300 80c9 bgt.w 801a85a <pbuf_alloc+0x1ba>
  65106. 801a6c8: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  65107. 801a6cc: d010 beq.n 801a6f0 <pbuf_alloc+0x50>
  65108. 801a6ce: f5b3 7fc1 cmp.w r3, #386 @ 0x182
  65109. 801a6d2: f300 80c2 bgt.w 801a85a <pbuf_alloc+0x1ba>
  65110. 801a6d6: 2b01 cmp r3, #1
  65111. 801a6d8: d002 beq.n 801a6e0 <pbuf_alloc+0x40>
  65112. 801a6da: 2b41 cmp r3, #65 @ 0x41
  65113. 801a6dc: f040 80bd bne.w 801a85a <pbuf_alloc+0x1ba>
  65114. case PBUF_REF: /* fall through */
  65115. case PBUF_ROM:
  65116. p = pbuf_alloc_reference(NULL, length, type);
  65117. 801a6e0: 887a ldrh r2, [r7, #2]
  65118. 801a6e2: 88bb ldrh r3, [r7, #4]
  65119. 801a6e4: 4619 mov r1, r3
  65120. 801a6e6: 2000 movs r0, #0
  65121. 801a6e8: f000 f8d2 bl 801a890 <pbuf_alloc_reference>
  65122. 801a6ec: 6278 str r0, [r7, #36] @ 0x24
  65123. break;
  65124. 801a6ee: e0be b.n 801a86e <pbuf_alloc+0x1ce>
  65125. case PBUF_POOL: {
  65126. struct pbuf *q, *last;
  65127. u16_t rem_len; /* remaining length */
  65128. p = NULL;
  65129. 801a6f0: 2300 movs r3, #0
  65130. 801a6f2: 627b str r3, [r7, #36] @ 0x24
  65131. last = NULL;
  65132. 801a6f4: 2300 movs r3, #0
  65133. 801a6f6: 61fb str r3, [r7, #28]
  65134. rem_len = length;
  65135. 801a6f8: 88bb ldrh r3, [r7, #4]
  65136. 801a6fa: 837b strh r3, [r7, #26]
  65137. do {
  65138. u16_t qlen;
  65139. q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL);
  65140. 801a6fc: 200c movs r0, #12
  65141. 801a6fe: f7ff fb81 bl 8019e04 <memp_malloc>
  65142. 801a702: 6138 str r0, [r7, #16]
  65143. if (q == NULL) {
  65144. 801a704: 693b ldr r3, [r7, #16]
  65145. 801a706: 2b00 cmp r3, #0
  65146. 801a708: d109 bne.n 801a71e <pbuf_alloc+0x7e>
  65147. PBUF_POOL_IS_EMPTY();
  65148. 801a70a: f7ff ff75 bl 801a5f8 <pbuf_pool_is_empty>
  65149. /* free chain so far allocated */
  65150. if (p) {
  65151. 801a70e: 6a7b ldr r3, [r7, #36] @ 0x24
  65152. 801a710: 2b00 cmp r3, #0
  65153. 801a712: d002 beq.n 801a71a <pbuf_alloc+0x7a>
  65154. pbuf_free(p);
  65155. 801a714: 6a78 ldr r0, [r7, #36] @ 0x24
  65156. 801a716: f000 fad9 bl 801accc <pbuf_free>
  65157. }
  65158. /* bail out unsuccessfully */
  65159. return NULL;
  65160. 801a71a: 2300 movs r3, #0
  65161. 801a71c: e0a8 b.n 801a870 <pbuf_alloc+0x1d0>
  65162. }
  65163. qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)));
  65164. 801a71e: 8c7b ldrh r3, [r7, #34] @ 0x22
  65165. 801a720: 3303 adds r3, #3
  65166. 801a722: b29b uxth r3, r3
  65167. 801a724: f023 0303 bic.w r3, r3, #3
  65168. 801a728: b29a uxth r2, r3
  65169. 801a72a: f240 53ec movw r3, #1516 @ 0x5ec
  65170. 801a72e: 1a9b subs r3, r3, r2
  65171. 801a730: b29b uxth r3, r3
  65172. 801a732: 8b7a ldrh r2, [r7, #26]
  65173. 801a734: 4293 cmp r3, r2
  65174. 801a736: bf28 it cs
  65175. 801a738: 4613 movcs r3, r2
  65176. 801a73a: 81fb strh r3, [r7, #14]
  65177. pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)),
  65178. 801a73c: 8c7b ldrh r3, [r7, #34] @ 0x22
  65179. 801a73e: 3310 adds r3, #16
  65180. 801a740: 693a ldr r2, [r7, #16]
  65181. 801a742: 4413 add r3, r2
  65182. 801a744: 3303 adds r3, #3
  65183. 801a746: f023 0303 bic.w r3, r3, #3
  65184. 801a74a: 4618 mov r0, r3
  65185. 801a74c: 89f9 ldrh r1, [r7, #14]
  65186. 801a74e: 8b7a ldrh r2, [r7, #26]
  65187. 801a750: 2300 movs r3, #0
  65188. 801a752: 9301 str r3, [sp, #4]
  65189. 801a754: 887b ldrh r3, [r7, #2]
  65190. 801a756: 9300 str r3, [sp, #0]
  65191. 801a758: 460b mov r3, r1
  65192. 801a75a: 4601 mov r1, r0
  65193. 801a75c: 6938 ldr r0, [r7, #16]
  65194. 801a75e: f7ff ff75 bl 801a64c <pbuf_init_alloced_pbuf>
  65195. rem_len, qlen, type, 0);
  65196. LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned",
  65197. 801a762: 693b ldr r3, [r7, #16]
  65198. 801a764: 685b ldr r3, [r3, #4]
  65199. 801a766: f003 0303 and.w r3, r3, #3
  65200. 801a76a: 2b00 cmp r3, #0
  65201. 801a76c: d006 beq.n 801a77c <pbuf_alloc+0xdc>
  65202. 801a76e: 4b42 ldr r3, [pc, #264] @ (801a878 <pbuf_alloc+0x1d8>)
  65203. 801a770: f44f 7280 mov.w r2, #256 @ 0x100
  65204. 801a774: 4941 ldr r1, [pc, #260] @ (801a87c <pbuf_alloc+0x1dc>)
  65205. 801a776: 4842 ldr r0, [pc, #264] @ (801a880 <pbuf_alloc+0x1e0>)
  65206. 801a778: f00f fd20 bl 802a1bc <iprintf>
  65207. ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
  65208. LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT",
  65209. 801a77c: 8c7b ldrh r3, [r7, #34] @ 0x22
  65210. 801a77e: 3303 adds r3, #3
  65211. 801a780: f023 0303 bic.w r3, r3, #3
  65212. 801a784: f240 52ec movw r2, #1516 @ 0x5ec
  65213. 801a788: 4293 cmp r3, r2
  65214. 801a78a: d106 bne.n 801a79a <pbuf_alloc+0xfa>
  65215. 801a78c: 4b3a ldr r3, [pc, #232] @ (801a878 <pbuf_alloc+0x1d8>)
  65216. 801a78e: f44f 7281 mov.w r2, #258 @ 0x102
  65217. 801a792: 493c ldr r1, [pc, #240] @ (801a884 <pbuf_alloc+0x1e4>)
  65218. 801a794: 483a ldr r0, [pc, #232] @ (801a880 <pbuf_alloc+0x1e0>)
  65219. 801a796: f00f fd11 bl 802a1bc <iprintf>
  65220. (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 );
  65221. if (p == NULL) {
  65222. 801a79a: 6a7b ldr r3, [r7, #36] @ 0x24
  65223. 801a79c: 2b00 cmp r3, #0
  65224. 801a79e: d102 bne.n 801a7a6 <pbuf_alloc+0x106>
  65225. /* allocated head of pbuf chain (into p) */
  65226. p = q;
  65227. 801a7a0: 693b ldr r3, [r7, #16]
  65228. 801a7a2: 627b str r3, [r7, #36] @ 0x24
  65229. 801a7a4: e002 b.n 801a7ac <pbuf_alloc+0x10c>
  65230. } else {
  65231. /* make previous pbuf point to this pbuf */
  65232. last->next = q;
  65233. 801a7a6: 69fb ldr r3, [r7, #28]
  65234. 801a7a8: 693a ldr r2, [r7, #16]
  65235. 801a7aa: 601a str r2, [r3, #0]
  65236. }
  65237. last = q;
  65238. 801a7ac: 693b ldr r3, [r7, #16]
  65239. 801a7ae: 61fb str r3, [r7, #28]
  65240. rem_len = (u16_t)(rem_len - qlen);
  65241. 801a7b0: 8b7a ldrh r2, [r7, #26]
  65242. 801a7b2: 89fb ldrh r3, [r7, #14]
  65243. 801a7b4: 1ad3 subs r3, r2, r3
  65244. 801a7b6: 837b strh r3, [r7, #26]
  65245. offset = 0;
  65246. 801a7b8: 2300 movs r3, #0
  65247. 801a7ba: 847b strh r3, [r7, #34] @ 0x22
  65248. } while (rem_len > 0);
  65249. 801a7bc: 8b7b ldrh r3, [r7, #26]
  65250. 801a7be: 2b00 cmp r3, #0
  65251. 801a7c0: d19c bne.n 801a6fc <pbuf_alloc+0x5c>
  65252. break;
  65253. 801a7c2: e054 b.n 801a86e <pbuf_alloc+0x1ce>
  65254. }
  65255. case PBUF_RAM: {
  65256. u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length));
  65257. 801a7c4: 8c7b ldrh r3, [r7, #34] @ 0x22
  65258. 801a7c6: 3303 adds r3, #3
  65259. 801a7c8: b29b uxth r3, r3
  65260. 801a7ca: f023 0303 bic.w r3, r3, #3
  65261. 801a7ce: b29a uxth r2, r3
  65262. 801a7d0: 88bb ldrh r3, [r7, #4]
  65263. 801a7d2: 3303 adds r3, #3
  65264. 801a7d4: b29b uxth r3, r3
  65265. 801a7d6: f023 0303 bic.w r3, r3, #3
  65266. 801a7da: b29b uxth r3, r3
  65267. 801a7dc: 4413 add r3, r2
  65268. 801a7de: 833b strh r3, [r7, #24]
  65269. mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len);
  65270. 801a7e0: 8b3b ldrh r3, [r7, #24]
  65271. 801a7e2: 3310 adds r3, #16
  65272. 801a7e4: 617b str r3, [r7, #20]
  65273. /* bug #50040: Check for integer overflow when calculating alloc_len */
  65274. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  65275. 801a7e6: 8b3a ldrh r2, [r7, #24]
  65276. 801a7e8: 88bb ldrh r3, [r7, #4]
  65277. 801a7ea: 3303 adds r3, #3
  65278. 801a7ec: f023 0303 bic.w r3, r3, #3
  65279. 801a7f0: 429a cmp r2, r3
  65280. 801a7f2: d306 bcc.n 801a802 <pbuf_alloc+0x162>
  65281. (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) {
  65282. 801a7f4: 88bb ldrh r3, [r7, #4]
  65283. 801a7f6: 3303 adds r3, #3
  65284. 801a7f8: f023 0303 bic.w r3, r3, #3
  65285. if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) ||
  65286. 801a7fc: 697a ldr r2, [r7, #20]
  65287. 801a7fe: 429a cmp r2, r3
  65288. 801a800: d201 bcs.n 801a806 <pbuf_alloc+0x166>
  65289. return NULL;
  65290. 801a802: 2300 movs r3, #0
  65291. 801a804: e034 b.n 801a870 <pbuf_alloc+0x1d0>
  65292. }
  65293. /* If pbuf is to be allocated in RAM, allocate memory for it. */
  65294. p = (struct pbuf *)mem_malloc(alloc_len);
  65295. 801a806: 6978 ldr r0, [r7, #20]
  65296. 801a808: f7ff f960 bl 8019acc <mem_malloc>
  65297. 801a80c: 6278 str r0, [r7, #36] @ 0x24
  65298. if (p == NULL) {
  65299. 801a80e: 6a7b ldr r3, [r7, #36] @ 0x24
  65300. 801a810: 2b00 cmp r3, #0
  65301. 801a812: d101 bne.n 801a818 <pbuf_alloc+0x178>
  65302. return NULL;
  65303. 801a814: 2300 movs r3, #0
  65304. 801a816: e02b b.n 801a870 <pbuf_alloc+0x1d0>
  65305. }
  65306. pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)),
  65307. 801a818: 8c7b ldrh r3, [r7, #34] @ 0x22
  65308. 801a81a: 3310 adds r3, #16
  65309. 801a81c: 6a7a ldr r2, [r7, #36] @ 0x24
  65310. 801a81e: 4413 add r3, r2
  65311. 801a820: 3303 adds r3, #3
  65312. 801a822: f023 0303 bic.w r3, r3, #3
  65313. 801a826: 4618 mov r0, r3
  65314. 801a828: 88b9 ldrh r1, [r7, #4]
  65315. 801a82a: 88ba ldrh r2, [r7, #4]
  65316. 801a82c: 2300 movs r3, #0
  65317. 801a82e: 9301 str r3, [sp, #4]
  65318. 801a830: 887b ldrh r3, [r7, #2]
  65319. 801a832: 9300 str r3, [sp, #0]
  65320. 801a834: 460b mov r3, r1
  65321. 801a836: 4601 mov r1, r0
  65322. 801a838: 6a78 ldr r0, [r7, #36] @ 0x24
  65323. 801a83a: f7ff ff07 bl 801a64c <pbuf_init_alloced_pbuf>
  65324. length, length, type, 0);
  65325. LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned",
  65326. 801a83e: 6a7b ldr r3, [r7, #36] @ 0x24
  65327. 801a840: 685b ldr r3, [r3, #4]
  65328. 801a842: f003 0303 and.w r3, r3, #3
  65329. 801a846: 2b00 cmp r3, #0
  65330. 801a848: d010 beq.n 801a86c <pbuf_alloc+0x1cc>
  65331. 801a84a: 4b0b ldr r3, [pc, #44] @ (801a878 <pbuf_alloc+0x1d8>)
  65332. 801a84c: f44f 7291 mov.w r2, #290 @ 0x122
  65333. 801a850: 490d ldr r1, [pc, #52] @ (801a888 <pbuf_alloc+0x1e8>)
  65334. 801a852: 480b ldr r0, [pc, #44] @ (801a880 <pbuf_alloc+0x1e0>)
  65335. 801a854: f00f fcb2 bl 802a1bc <iprintf>
  65336. ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
  65337. break;
  65338. 801a858: e008 b.n 801a86c <pbuf_alloc+0x1cc>
  65339. }
  65340. default:
  65341. LWIP_ASSERT("pbuf_alloc: erroneous type", 0);
  65342. 801a85a: 4b07 ldr r3, [pc, #28] @ (801a878 <pbuf_alloc+0x1d8>)
  65343. 801a85c: f240 1227 movw r2, #295 @ 0x127
  65344. 801a860: 490a ldr r1, [pc, #40] @ (801a88c <pbuf_alloc+0x1ec>)
  65345. 801a862: 4807 ldr r0, [pc, #28] @ (801a880 <pbuf_alloc+0x1e0>)
  65346. 801a864: f00f fcaa bl 802a1bc <iprintf>
  65347. return NULL;
  65348. 801a868: 2300 movs r3, #0
  65349. 801a86a: e001 b.n 801a870 <pbuf_alloc+0x1d0>
  65350. break;
  65351. 801a86c: bf00 nop
  65352. }
  65353. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p));
  65354. return p;
  65355. 801a86e: 6a7b ldr r3, [r7, #36] @ 0x24
  65356. }
  65357. 801a870: 4618 mov r0, r3
  65358. 801a872: 3728 adds r7, #40 @ 0x28
  65359. 801a874: 46bd mov sp, r7
  65360. 801a876: bd80 pop {r7, pc}
  65361. 801a878: 0802e93c .word 0x0802e93c
  65362. 801a87c: 0802e96c .word 0x0802e96c
  65363. 801a880: 0802e99c .word 0x0802e99c
  65364. 801a884: 0802e9c4 .word 0x0802e9c4
  65365. 801a888: 0802e9f8 .word 0x0802e9f8
  65366. 801a88c: 0802ea24 .word 0x0802ea24
  65367. 0801a890 <pbuf_alloc_reference>:
  65368. *
  65369. * @return the allocated pbuf.
  65370. */
  65371. struct pbuf *
  65372. pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type)
  65373. {
  65374. 801a890: b580 push {r7, lr}
  65375. 801a892: b086 sub sp, #24
  65376. 801a894: af02 add r7, sp, #8
  65377. 801a896: 6078 str r0, [r7, #4]
  65378. 801a898: 460b mov r3, r1
  65379. 801a89a: 807b strh r3, [r7, #2]
  65380. 801a89c: 4613 mov r3, r2
  65381. 801a89e: 803b strh r3, [r7, #0]
  65382. struct pbuf *p;
  65383. LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM));
  65384. 801a8a0: 883b ldrh r3, [r7, #0]
  65385. 801a8a2: 2b41 cmp r3, #65 @ 0x41
  65386. 801a8a4: d009 beq.n 801a8ba <pbuf_alloc_reference+0x2a>
  65387. 801a8a6: 883b ldrh r3, [r7, #0]
  65388. 801a8a8: 2b01 cmp r3, #1
  65389. 801a8aa: d006 beq.n 801a8ba <pbuf_alloc_reference+0x2a>
  65390. 801a8ac: 4b0f ldr r3, [pc, #60] @ (801a8ec <pbuf_alloc_reference+0x5c>)
  65391. 801a8ae: f44f 72a5 mov.w r2, #330 @ 0x14a
  65392. 801a8b2: 490f ldr r1, [pc, #60] @ (801a8f0 <pbuf_alloc_reference+0x60>)
  65393. 801a8b4: 480f ldr r0, [pc, #60] @ (801a8f4 <pbuf_alloc_reference+0x64>)
  65394. 801a8b6: f00f fc81 bl 802a1bc <iprintf>
  65395. /* only allocate memory for the pbuf structure */
  65396. p = (struct pbuf *)memp_malloc(MEMP_PBUF);
  65397. 801a8ba: 200b movs r0, #11
  65398. 801a8bc: f7ff faa2 bl 8019e04 <memp_malloc>
  65399. 801a8c0: 60f8 str r0, [r7, #12]
  65400. if (p == NULL) {
  65401. 801a8c2: 68fb ldr r3, [r7, #12]
  65402. 801a8c4: 2b00 cmp r3, #0
  65403. 801a8c6: d101 bne.n 801a8cc <pbuf_alloc_reference+0x3c>
  65404. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  65405. ("pbuf_alloc_reference: Could not allocate MEMP_PBUF for PBUF_%s.\n",
  65406. (type == PBUF_ROM) ? "ROM" : "REF"));
  65407. return NULL;
  65408. 801a8c8: 2300 movs r3, #0
  65409. 801a8ca: e00b b.n 801a8e4 <pbuf_alloc_reference+0x54>
  65410. }
  65411. pbuf_init_alloced_pbuf(p, payload, length, length, type, 0);
  65412. 801a8cc: 8879 ldrh r1, [r7, #2]
  65413. 801a8ce: 887a ldrh r2, [r7, #2]
  65414. 801a8d0: 2300 movs r3, #0
  65415. 801a8d2: 9301 str r3, [sp, #4]
  65416. 801a8d4: 883b ldrh r3, [r7, #0]
  65417. 801a8d6: 9300 str r3, [sp, #0]
  65418. 801a8d8: 460b mov r3, r1
  65419. 801a8da: 6879 ldr r1, [r7, #4]
  65420. 801a8dc: 68f8 ldr r0, [r7, #12]
  65421. 801a8de: f7ff feb5 bl 801a64c <pbuf_init_alloced_pbuf>
  65422. return p;
  65423. 801a8e2: 68fb ldr r3, [r7, #12]
  65424. }
  65425. 801a8e4: 4618 mov r0, r3
  65426. 801a8e6: 3710 adds r7, #16
  65427. 801a8e8: 46bd mov sp, r7
  65428. 801a8ea: bd80 pop {r7, pc}
  65429. 801a8ec: 0802e93c .word 0x0802e93c
  65430. 801a8f0: 0802ea40 .word 0x0802ea40
  65431. 801a8f4: 0802e99c .word 0x0802e99c
  65432. 0801a8f8 <pbuf_alloced_custom>:
  65433. * big enough to hold 'length' plus the header size
  65434. */
  65435. struct pbuf *
  65436. pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p,
  65437. void *payload_mem, u16_t payload_mem_len)
  65438. {
  65439. 801a8f8: b580 push {r7, lr}
  65440. 801a8fa: b088 sub sp, #32
  65441. 801a8fc: af02 add r7, sp, #8
  65442. 801a8fe: 607b str r3, [r7, #4]
  65443. 801a900: 4603 mov r3, r0
  65444. 801a902: 73fb strb r3, [r7, #15]
  65445. 801a904: 460b mov r3, r1
  65446. 801a906: 81bb strh r3, [r7, #12]
  65447. 801a908: 4613 mov r3, r2
  65448. 801a90a: 817b strh r3, [r7, #10]
  65449. u16_t offset = (u16_t)l;
  65450. 801a90c: 7bfb ldrb r3, [r7, #15]
  65451. 801a90e: 827b strh r3, [r7, #18]
  65452. void *payload;
  65453. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloced_custom(length=%"U16_F")\n", length));
  65454. if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len) {
  65455. 801a910: 8a7b ldrh r3, [r7, #18]
  65456. 801a912: 3303 adds r3, #3
  65457. 801a914: f023 0203 bic.w r2, r3, #3
  65458. 801a918: 89bb ldrh r3, [r7, #12]
  65459. 801a91a: 441a add r2, r3
  65460. 801a91c: 8cbb ldrh r3, [r7, #36] @ 0x24
  65461. 801a91e: 429a cmp r2, r3
  65462. 801a920: d901 bls.n 801a926 <pbuf_alloced_custom+0x2e>
  65463. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length));
  65464. return NULL;
  65465. 801a922: 2300 movs r3, #0
  65466. 801a924: e018 b.n 801a958 <pbuf_alloced_custom+0x60>
  65467. }
  65468. if (payload_mem != NULL) {
  65469. 801a926: 6a3b ldr r3, [r7, #32]
  65470. 801a928: 2b00 cmp r3, #0
  65471. 801a92a: d007 beq.n 801a93c <pbuf_alloced_custom+0x44>
  65472. payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset);
  65473. 801a92c: 8a7b ldrh r3, [r7, #18]
  65474. 801a92e: 3303 adds r3, #3
  65475. 801a930: f023 0303 bic.w r3, r3, #3
  65476. 801a934: 6a3a ldr r2, [r7, #32]
  65477. 801a936: 4413 add r3, r2
  65478. 801a938: 617b str r3, [r7, #20]
  65479. 801a93a: e001 b.n 801a940 <pbuf_alloced_custom+0x48>
  65480. } else {
  65481. payload = NULL;
  65482. 801a93c: 2300 movs r3, #0
  65483. 801a93e: 617b str r3, [r7, #20]
  65484. }
  65485. pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM);
  65486. 801a940: 6878 ldr r0, [r7, #4]
  65487. 801a942: 89b9 ldrh r1, [r7, #12]
  65488. 801a944: 89ba ldrh r2, [r7, #12]
  65489. 801a946: 2302 movs r3, #2
  65490. 801a948: 9301 str r3, [sp, #4]
  65491. 801a94a: 897b ldrh r3, [r7, #10]
  65492. 801a94c: 9300 str r3, [sp, #0]
  65493. 801a94e: 460b mov r3, r1
  65494. 801a950: 6979 ldr r1, [r7, #20]
  65495. 801a952: f7ff fe7b bl 801a64c <pbuf_init_alloced_pbuf>
  65496. return &p->pbuf;
  65497. 801a956: 687b ldr r3, [r7, #4]
  65498. }
  65499. 801a958: 4618 mov r0, r3
  65500. 801a95a: 3718 adds r7, #24
  65501. 801a95c: 46bd mov sp, r7
  65502. 801a95e: bd80 pop {r7, pc}
  65503. 0801a960 <pbuf_realloc>:
  65504. *
  65505. * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain).
  65506. */
  65507. void
  65508. pbuf_realloc(struct pbuf *p, u16_t new_len)
  65509. {
  65510. 801a960: b580 push {r7, lr}
  65511. 801a962: b084 sub sp, #16
  65512. 801a964: af00 add r7, sp, #0
  65513. 801a966: 6078 str r0, [r7, #4]
  65514. 801a968: 460b mov r3, r1
  65515. 801a96a: 807b strh r3, [r7, #2]
  65516. struct pbuf *q;
  65517. u16_t rem_len; /* remaining length */
  65518. u16_t shrink;
  65519. LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL);
  65520. 801a96c: 687b ldr r3, [r7, #4]
  65521. 801a96e: 2b00 cmp r3, #0
  65522. 801a970: d106 bne.n 801a980 <pbuf_realloc+0x20>
  65523. 801a972: 4b39 ldr r3, [pc, #228] @ (801aa58 <pbuf_realloc+0xf8>)
  65524. 801a974: f44f 72cc mov.w r2, #408 @ 0x198
  65525. 801a978: 4938 ldr r1, [pc, #224] @ (801aa5c <pbuf_realloc+0xfc>)
  65526. 801a97a: 4839 ldr r0, [pc, #228] @ (801aa60 <pbuf_realloc+0x100>)
  65527. 801a97c: f00f fc1e bl 802a1bc <iprintf>
  65528. /* desired length larger than current length? */
  65529. if (new_len >= p->tot_len) {
  65530. 801a980: 687b ldr r3, [r7, #4]
  65531. 801a982: 891b ldrh r3, [r3, #8]
  65532. 801a984: 887a ldrh r2, [r7, #2]
  65533. 801a986: 429a cmp r2, r3
  65534. 801a988: d261 bcs.n 801aa4e <pbuf_realloc+0xee>
  65535. return;
  65536. }
  65537. /* the pbuf chain grows by (new_len - p->tot_len) bytes
  65538. * (which may be negative in case of shrinking) */
  65539. shrink = (u16_t)(p->tot_len - new_len);
  65540. 801a98a: 687b ldr r3, [r7, #4]
  65541. 801a98c: 891a ldrh r2, [r3, #8]
  65542. 801a98e: 887b ldrh r3, [r7, #2]
  65543. 801a990: 1ad3 subs r3, r2, r3
  65544. 801a992: 813b strh r3, [r7, #8]
  65545. /* first, step over any pbufs that should remain in the chain */
  65546. rem_len = new_len;
  65547. 801a994: 887b ldrh r3, [r7, #2]
  65548. 801a996: 817b strh r3, [r7, #10]
  65549. q = p;
  65550. 801a998: 687b ldr r3, [r7, #4]
  65551. 801a99a: 60fb str r3, [r7, #12]
  65552. /* should this pbuf be kept? */
  65553. while (rem_len > q->len) {
  65554. 801a99c: e018 b.n 801a9d0 <pbuf_realloc+0x70>
  65555. /* decrease remaining length by pbuf length */
  65556. rem_len = (u16_t)(rem_len - q->len);
  65557. 801a99e: 68fb ldr r3, [r7, #12]
  65558. 801a9a0: 895b ldrh r3, [r3, #10]
  65559. 801a9a2: 897a ldrh r2, [r7, #10]
  65560. 801a9a4: 1ad3 subs r3, r2, r3
  65561. 801a9a6: 817b strh r3, [r7, #10]
  65562. /* decrease total length indicator */
  65563. q->tot_len = (u16_t)(q->tot_len - shrink);
  65564. 801a9a8: 68fb ldr r3, [r7, #12]
  65565. 801a9aa: 891a ldrh r2, [r3, #8]
  65566. 801a9ac: 893b ldrh r3, [r7, #8]
  65567. 801a9ae: 1ad3 subs r3, r2, r3
  65568. 801a9b0: b29a uxth r2, r3
  65569. 801a9b2: 68fb ldr r3, [r7, #12]
  65570. 801a9b4: 811a strh r2, [r3, #8]
  65571. /* proceed to next pbuf in chain */
  65572. q = q->next;
  65573. 801a9b6: 68fb ldr r3, [r7, #12]
  65574. 801a9b8: 681b ldr r3, [r3, #0]
  65575. 801a9ba: 60fb str r3, [r7, #12]
  65576. LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL);
  65577. 801a9bc: 68fb ldr r3, [r7, #12]
  65578. 801a9be: 2b00 cmp r3, #0
  65579. 801a9c0: d106 bne.n 801a9d0 <pbuf_realloc+0x70>
  65580. 801a9c2: 4b25 ldr r3, [pc, #148] @ (801aa58 <pbuf_realloc+0xf8>)
  65581. 801a9c4: f240 12af movw r2, #431 @ 0x1af
  65582. 801a9c8: 4926 ldr r1, [pc, #152] @ (801aa64 <pbuf_realloc+0x104>)
  65583. 801a9ca: 4825 ldr r0, [pc, #148] @ (801aa60 <pbuf_realloc+0x100>)
  65584. 801a9cc: f00f fbf6 bl 802a1bc <iprintf>
  65585. while (rem_len > q->len) {
  65586. 801a9d0: 68fb ldr r3, [r7, #12]
  65587. 801a9d2: 895b ldrh r3, [r3, #10]
  65588. 801a9d4: 897a ldrh r2, [r7, #10]
  65589. 801a9d6: 429a cmp r2, r3
  65590. 801a9d8: d8e1 bhi.n 801a99e <pbuf_realloc+0x3e>
  65591. /* we have now reached the new last pbuf (in q) */
  65592. /* rem_len == desired length for pbuf q */
  65593. /* shrink allocated memory for PBUF_RAM */
  65594. /* (other types merely adjust their length fields */
  65595. if (pbuf_match_allocsrc(q, PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) && (rem_len != q->len)
  65596. 801a9da: 68fb ldr r3, [r7, #12]
  65597. 801a9dc: 7b1b ldrb r3, [r3, #12]
  65598. 801a9de: f003 030f and.w r3, r3, #15
  65599. 801a9e2: 2b00 cmp r3, #0
  65600. 801a9e4: d11f bne.n 801aa26 <pbuf_realloc+0xc6>
  65601. 801a9e6: 68fb ldr r3, [r7, #12]
  65602. 801a9e8: 895b ldrh r3, [r3, #10]
  65603. 801a9ea: 897a ldrh r2, [r7, #10]
  65604. 801a9ec: 429a cmp r2, r3
  65605. 801a9ee: d01a beq.n 801aa26 <pbuf_realloc+0xc6>
  65606. #if LWIP_SUPPORT_CUSTOM_PBUF
  65607. && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0)
  65608. 801a9f0: 68fb ldr r3, [r7, #12]
  65609. 801a9f2: 7b5b ldrb r3, [r3, #13]
  65610. 801a9f4: f003 0302 and.w r3, r3, #2
  65611. 801a9f8: 2b00 cmp r3, #0
  65612. 801a9fa: d114 bne.n 801aa26 <pbuf_realloc+0xc6>
  65613. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  65614. ) {
  65615. /* reallocate and adjust the length of the pbuf that will be split */
  65616. q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len));
  65617. 801a9fc: 68fb ldr r3, [r7, #12]
  65618. 801a9fe: 685a ldr r2, [r3, #4]
  65619. 801aa00: 68fb ldr r3, [r7, #12]
  65620. 801aa02: 1ad2 subs r2, r2, r3
  65621. 801aa04: 897b ldrh r3, [r7, #10]
  65622. 801aa06: 4413 add r3, r2
  65623. 801aa08: 4619 mov r1, r3
  65624. 801aa0a: 68f8 ldr r0, [r7, #12]
  65625. 801aa0c: f7fe ff5c bl 80198c8 <mem_trim>
  65626. 801aa10: 60f8 str r0, [r7, #12]
  65627. LWIP_ASSERT("mem_trim returned q == NULL", q != NULL);
  65628. 801aa12: 68fb ldr r3, [r7, #12]
  65629. 801aa14: 2b00 cmp r3, #0
  65630. 801aa16: d106 bne.n 801aa26 <pbuf_realloc+0xc6>
  65631. 801aa18: 4b0f ldr r3, [pc, #60] @ (801aa58 <pbuf_realloc+0xf8>)
  65632. 801aa1a: f240 12bd movw r2, #445 @ 0x1bd
  65633. 801aa1e: 4912 ldr r1, [pc, #72] @ (801aa68 <pbuf_realloc+0x108>)
  65634. 801aa20: 480f ldr r0, [pc, #60] @ (801aa60 <pbuf_realloc+0x100>)
  65635. 801aa22: f00f fbcb bl 802a1bc <iprintf>
  65636. }
  65637. /* adjust length fields for new last pbuf */
  65638. q->len = rem_len;
  65639. 801aa26: 68fb ldr r3, [r7, #12]
  65640. 801aa28: 897a ldrh r2, [r7, #10]
  65641. 801aa2a: 815a strh r2, [r3, #10]
  65642. q->tot_len = q->len;
  65643. 801aa2c: 68fb ldr r3, [r7, #12]
  65644. 801aa2e: 895a ldrh r2, [r3, #10]
  65645. 801aa30: 68fb ldr r3, [r7, #12]
  65646. 801aa32: 811a strh r2, [r3, #8]
  65647. /* any remaining pbufs in chain? */
  65648. if (q->next != NULL) {
  65649. 801aa34: 68fb ldr r3, [r7, #12]
  65650. 801aa36: 681b ldr r3, [r3, #0]
  65651. 801aa38: 2b00 cmp r3, #0
  65652. 801aa3a: d004 beq.n 801aa46 <pbuf_realloc+0xe6>
  65653. /* free remaining pbufs in chain */
  65654. pbuf_free(q->next);
  65655. 801aa3c: 68fb ldr r3, [r7, #12]
  65656. 801aa3e: 681b ldr r3, [r3, #0]
  65657. 801aa40: 4618 mov r0, r3
  65658. 801aa42: f000 f943 bl 801accc <pbuf_free>
  65659. }
  65660. /* q is last packet in chain */
  65661. q->next = NULL;
  65662. 801aa46: 68fb ldr r3, [r7, #12]
  65663. 801aa48: 2200 movs r2, #0
  65664. 801aa4a: 601a str r2, [r3, #0]
  65665. 801aa4c: e000 b.n 801aa50 <pbuf_realloc+0xf0>
  65666. return;
  65667. 801aa4e: bf00 nop
  65668. }
  65669. 801aa50: 3710 adds r7, #16
  65670. 801aa52: 46bd mov sp, r7
  65671. 801aa54: bd80 pop {r7, pc}
  65672. 801aa56: bf00 nop
  65673. 801aa58: 0802e93c .word 0x0802e93c
  65674. 801aa5c: 0802ea54 .word 0x0802ea54
  65675. 801aa60: 0802e99c .word 0x0802e99c
  65676. 801aa64: 0802ea6c .word 0x0802ea6c
  65677. 801aa68: 0802ea84 .word 0x0802ea84
  65678. 0801aa6c <pbuf_add_header_impl>:
  65679. * @return non-zero on failure, zero on success.
  65680. *
  65681. */
  65682. static u8_t
  65683. pbuf_add_header_impl(struct pbuf *p, size_t header_size_increment, u8_t force)
  65684. {
  65685. 801aa6c: b580 push {r7, lr}
  65686. 801aa6e: b086 sub sp, #24
  65687. 801aa70: af00 add r7, sp, #0
  65688. 801aa72: 60f8 str r0, [r7, #12]
  65689. 801aa74: 60b9 str r1, [r7, #8]
  65690. 801aa76: 4613 mov r3, r2
  65691. 801aa78: 71fb strb r3, [r7, #7]
  65692. u16_t type_internal;
  65693. void *payload;
  65694. u16_t increment_magnitude;
  65695. LWIP_ASSERT("p != NULL", p != NULL);
  65696. 801aa7a: 68fb ldr r3, [r7, #12]
  65697. 801aa7c: 2b00 cmp r3, #0
  65698. 801aa7e: d106 bne.n 801aa8e <pbuf_add_header_impl+0x22>
  65699. 801aa80: 4b2b ldr r3, [pc, #172] @ (801ab30 <pbuf_add_header_impl+0xc4>)
  65700. 801aa82: f240 12df movw r2, #479 @ 0x1df
  65701. 801aa86: 492b ldr r1, [pc, #172] @ (801ab34 <pbuf_add_header_impl+0xc8>)
  65702. 801aa88: 482b ldr r0, [pc, #172] @ (801ab38 <pbuf_add_header_impl+0xcc>)
  65703. 801aa8a: f00f fb97 bl 802a1bc <iprintf>
  65704. if ((p == NULL) || (header_size_increment > 0xFFFF)) {
  65705. 801aa8e: 68fb ldr r3, [r7, #12]
  65706. 801aa90: 2b00 cmp r3, #0
  65707. 801aa92: d003 beq.n 801aa9c <pbuf_add_header_impl+0x30>
  65708. 801aa94: 68bb ldr r3, [r7, #8]
  65709. 801aa96: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  65710. 801aa9a: d301 bcc.n 801aaa0 <pbuf_add_header_impl+0x34>
  65711. return 1;
  65712. 801aa9c: 2301 movs r3, #1
  65713. 801aa9e: e043 b.n 801ab28 <pbuf_add_header_impl+0xbc>
  65714. }
  65715. if (header_size_increment == 0) {
  65716. 801aaa0: 68bb ldr r3, [r7, #8]
  65717. 801aaa2: 2b00 cmp r3, #0
  65718. 801aaa4: d101 bne.n 801aaaa <pbuf_add_header_impl+0x3e>
  65719. return 0;
  65720. 801aaa6: 2300 movs r3, #0
  65721. 801aaa8: e03e b.n 801ab28 <pbuf_add_header_impl+0xbc>
  65722. }
  65723. increment_magnitude = (u16_t)header_size_increment;
  65724. 801aaaa: 68bb ldr r3, [r7, #8]
  65725. 801aaac: 827b strh r3, [r7, #18]
  65726. /* Do not allow tot_len to wrap as a result. */
  65727. if ((u16_t)(increment_magnitude + p->tot_len) < increment_magnitude) {
  65728. 801aaae: 68fb ldr r3, [r7, #12]
  65729. 801aab0: 891a ldrh r2, [r3, #8]
  65730. 801aab2: 8a7b ldrh r3, [r7, #18]
  65731. 801aab4: 4413 add r3, r2
  65732. 801aab6: b29b uxth r3, r3
  65733. 801aab8: 8a7a ldrh r2, [r7, #18]
  65734. 801aaba: 429a cmp r2, r3
  65735. 801aabc: d901 bls.n 801aac2 <pbuf_add_header_impl+0x56>
  65736. return 1;
  65737. 801aabe: 2301 movs r3, #1
  65738. 801aac0: e032 b.n 801ab28 <pbuf_add_header_impl+0xbc>
  65739. }
  65740. type_internal = p->type_internal;
  65741. 801aac2: 68fb ldr r3, [r7, #12]
  65742. 801aac4: 7b1b ldrb r3, [r3, #12]
  65743. 801aac6: 823b strh r3, [r7, #16]
  65744. /* pbuf types containing payloads? */
  65745. if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) {
  65746. 801aac8: 8a3b ldrh r3, [r7, #16]
  65747. 801aaca: f003 0380 and.w r3, r3, #128 @ 0x80
  65748. 801aace: 2b00 cmp r3, #0
  65749. 801aad0: d00c beq.n 801aaec <pbuf_add_header_impl+0x80>
  65750. /* set new payload pointer */
  65751. payload = (u8_t *)p->payload - header_size_increment;
  65752. 801aad2: 68fb ldr r3, [r7, #12]
  65753. 801aad4: 685a ldr r2, [r3, #4]
  65754. 801aad6: 68bb ldr r3, [r7, #8]
  65755. 801aad8: 425b negs r3, r3
  65756. 801aada: 4413 add r3, r2
  65757. 801aadc: 617b str r3, [r7, #20]
  65758. /* boundary check fails? */
  65759. if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) {
  65760. 801aade: 68fb ldr r3, [r7, #12]
  65761. 801aae0: 3310 adds r3, #16
  65762. 801aae2: 697a ldr r2, [r7, #20]
  65763. 801aae4: 429a cmp r2, r3
  65764. 801aae6: d20d bcs.n 801ab04 <pbuf_add_header_impl+0x98>
  65765. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE,
  65766. ("pbuf_add_header: failed as %p < %p (not enough space for new header size)\n",
  65767. (void *)payload, (void *)((u8_t *)p + SIZEOF_STRUCT_PBUF)));
  65768. /* bail out unsuccessfully */
  65769. return 1;
  65770. 801aae8: 2301 movs r3, #1
  65771. 801aaea: e01d b.n 801ab28 <pbuf_add_header_impl+0xbc>
  65772. }
  65773. /* pbuf types referring to external payloads? */
  65774. } else {
  65775. /* hide a header in the payload? */
  65776. if (force) {
  65777. 801aaec: 79fb ldrb r3, [r7, #7]
  65778. 801aaee: 2b00 cmp r3, #0
  65779. 801aaf0: d006 beq.n 801ab00 <pbuf_add_header_impl+0x94>
  65780. payload = (u8_t *)p->payload - header_size_increment;
  65781. 801aaf2: 68fb ldr r3, [r7, #12]
  65782. 801aaf4: 685a ldr r2, [r3, #4]
  65783. 801aaf6: 68bb ldr r3, [r7, #8]
  65784. 801aaf8: 425b negs r3, r3
  65785. 801aafa: 4413 add r3, r2
  65786. 801aafc: 617b str r3, [r7, #20]
  65787. 801aafe: e001 b.n 801ab04 <pbuf_add_header_impl+0x98>
  65788. } else {
  65789. /* cannot expand payload to front (yet!)
  65790. * bail out unsuccessfully */
  65791. return 1;
  65792. 801ab00: 2301 movs r3, #1
  65793. 801ab02: e011 b.n 801ab28 <pbuf_add_header_impl+0xbc>
  65794. }
  65795. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: old %p new %p (%"U16_F")\n",
  65796. (void *)p->payload, (void *)payload, increment_magnitude));
  65797. /* modify pbuf fields */
  65798. p->payload = payload;
  65799. 801ab04: 68fb ldr r3, [r7, #12]
  65800. 801ab06: 697a ldr r2, [r7, #20]
  65801. 801ab08: 605a str r2, [r3, #4]
  65802. p->len = (u16_t)(p->len + increment_magnitude);
  65803. 801ab0a: 68fb ldr r3, [r7, #12]
  65804. 801ab0c: 895a ldrh r2, [r3, #10]
  65805. 801ab0e: 8a7b ldrh r3, [r7, #18]
  65806. 801ab10: 4413 add r3, r2
  65807. 801ab12: b29a uxth r2, r3
  65808. 801ab14: 68fb ldr r3, [r7, #12]
  65809. 801ab16: 815a strh r2, [r3, #10]
  65810. p->tot_len = (u16_t)(p->tot_len + increment_magnitude);
  65811. 801ab18: 68fb ldr r3, [r7, #12]
  65812. 801ab1a: 891a ldrh r2, [r3, #8]
  65813. 801ab1c: 8a7b ldrh r3, [r7, #18]
  65814. 801ab1e: 4413 add r3, r2
  65815. 801ab20: b29a uxth r2, r3
  65816. 801ab22: 68fb ldr r3, [r7, #12]
  65817. 801ab24: 811a strh r2, [r3, #8]
  65818. return 0;
  65819. 801ab26: 2300 movs r3, #0
  65820. }
  65821. 801ab28: 4618 mov r0, r3
  65822. 801ab2a: 3718 adds r7, #24
  65823. 801ab2c: 46bd mov sp, r7
  65824. 801ab2e: bd80 pop {r7, pc}
  65825. 801ab30: 0802e93c .word 0x0802e93c
  65826. 801ab34: 0802eaa0 .word 0x0802eaa0
  65827. 801ab38: 0802e99c .word 0x0802e99c
  65828. 0801ab3c <pbuf_add_header>:
  65829. * @return non-zero on failure, zero on success.
  65830. *
  65831. */
  65832. u8_t
  65833. pbuf_add_header(struct pbuf *p, size_t header_size_increment)
  65834. {
  65835. 801ab3c: b580 push {r7, lr}
  65836. 801ab3e: b082 sub sp, #8
  65837. 801ab40: af00 add r7, sp, #0
  65838. 801ab42: 6078 str r0, [r7, #4]
  65839. 801ab44: 6039 str r1, [r7, #0]
  65840. return pbuf_add_header_impl(p, header_size_increment, 0);
  65841. 801ab46: 2200 movs r2, #0
  65842. 801ab48: 6839 ldr r1, [r7, #0]
  65843. 801ab4a: 6878 ldr r0, [r7, #4]
  65844. 801ab4c: f7ff ff8e bl 801aa6c <pbuf_add_header_impl>
  65845. 801ab50: 4603 mov r3, r0
  65846. }
  65847. 801ab52: 4618 mov r0, r3
  65848. 801ab54: 3708 adds r7, #8
  65849. 801ab56: 46bd mov sp, r7
  65850. 801ab58: bd80 pop {r7, pc}
  65851. ...
  65852. 0801ab5c <pbuf_remove_header>:
  65853. * @return non-zero on failure, zero on success.
  65854. *
  65855. */
  65856. u8_t
  65857. pbuf_remove_header(struct pbuf *p, size_t header_size_decrement)
  65858. {
  65859. 801ab5c: b580 push {r7, lr}
  65860. 801ab5e: b084 sub sp, #16
  65861. 801ab60: af00 add r7, sp, #0
  65862. 801ab62: 6078 str r0, [r7, #4]
  65863. 801ab64: 6039 str r1, [r7, #0]
  65864. void *payload;
  65865. u16_t increment_magnitude;
  65866. LWIP_ASSERT("p != NULL", p != NULL);
  65867. 801ab66: 687b ldr r3, [r7, #4]
  65868. 801ab68: 2b00 cmp r3, #0
  65869. 801ab6a: d106 bne.n 801ab7a <pbuf_remove_header+0x1e>
  65870. 801ab6c: 4b20 ldr r3, [pc, #128] @ (801abf0 <pbuf_remove_header+0x94>)
  65871. 801ab6e: f240 224b movw r2, #587 @ 0x24b
  65872. 801ab72: 4920 ldr r1, [pc, #128] @ (801abf4 <pbuf_remove_header+0x98>)
  65873. 801ab74: 4820 ldr r0, [pc, #128] @ (801abf8 <pbuf_remove_header+0x9c>)
  65874. 801ab76: f00f fb21 bl 802a1bc <iprintf>
  65875. if ((p == NULL) || (header_size_decrement > 0xFFFF)) {
  65876. 801ab7a: 687b ldr r3, [r7, #4]
  65877. 801ab7c: 2b00 cmp r3, #0
  65878. 801ab7e: d003 beq.n 801ab88 <pbuf_remove_header+0x2c>
  65879. 801ab80: 683b ldr r3, [r7, #0]
  65880. 801ab82: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  65881. 801ab86: d301 bcc.n 801ab8c <pbuf_remove_header+0x30>
  65882. return 1;
  65883. 801ab88: 2301 movs r3, #1
  65884. 801ab8a: e02c b.n 801abe6 <pbuf_remove_header+0x8a>
  65885. }
  65886. if (header_size_decrement == 0) {
  65887. 801ab8c: 683b ldr r3, [r7, #0]
  65888. 801ab8e: 2b00 cmp r3, #0
  65889. 801ab90: d101 bne.n 801ab96 <pbuf_remove_header+0x3a>
  65890. return 0;
  65891. 801ab92: 2300 movs r3, #0
  65892. 801ab94: e027 b.n 801abe6 <pbuf_remove_header+0x8a>
  65893. }
  65894. increment_magnitude = (u16_t)header_size_decrement;
  65895. 801ab96: 683b ldr r3, [r7, #0]
  65896. 801ab98: 81fb strh r3, [r7, #14]
  65897. /* Check that we aren't going to move off the end of the pbuf */
  65898. LWIP_ERROR("increment_magnitude <= p->len", (increment_magnitude <= p->len), return 1;);
  65899. 801ab9a: 687b ldr r3, [r7, #4]
  65900. 801ab9c: 895b ldrh r3, [r3, #10]
  65901. 801ab9e: 89fa ldrh r2, [r7, #14]
  65902. 801aba0: 429a cmp r2, r3
  65903. 801aba2: d908 bls.n 801abb6 <pbuf_remove_header+0x5a>
  65904. 801aba4: 4b12 ldr r3, [pc, #72] @ (801abf0 <pbuf_remove_header+0x94>)
  65905. 801aba6: f240 2255 movw r2, #597 @ 0x255
  65906. 801abaa: 4914 ldr r1, [pc, #80] @ (801abfc <pbuf_remove_header+0xa0>)
  65907. 801abac: 4812 ldr r0, [pc, #72] @ (801abf8 <pbuf_remove_header+0x9c>)
  65908. 801abae: f00f fb05 bl 802a1bc <iprintf>
  65909. 801abb2: 2301 movs r3, #1
  65910. 801abb4: e017 b.n 801abe6 <pbuf_remove_header+0x8a>
  65911. /* remember current payload pointer */
  65912. payload = p->payload;
  65913. 801abb6: 687b ldr r3, [r7, #4]
  65914. 801abb8: 685b ldr r3, [r3, #4]
  65915. 801abba: 60bb str r3, [r7, #8]
  65916. LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */
  65917. /* increase payload pointer (guarded by length check above) */
  65918. p->payload = (u8_t *)p->payload + header_size_decrement;
  65919. 801abbc: 687b ldr r3, [r7, #4]
  65920. 801abbe: 685a ldr r2, [r3, #4]
  65921. 801abc0: 683b ldr r3, [r7, #0]
  65922. 801abc2: 441a add r2, r3
  65923. 801abc4: 687b ldr r3, [r7, #4]
  65924. 801abc6: 605a str r2, [r3, #4]
  65925. /* modify pbuf length fields */
  65926. p->len = (u16_t)(p->len - increment_magnitude);
  65927. 801abc8: 687b ldr r3, [r7, #4]
  65928. 801abca: 895a ldrh r2, [r3, #10]
  65929. 801abcc: 89fb ldrh r3, [r7, #14]
  65930. 801abce: 1ad3 subs r3, r2, r3
  65931. 801abd0: b29a uxth r2, r3
  65932. 801abd2: 687b ldr r3, [r7, #4]
  65933. 801abd4: 815a strh r2, [r3, #10]
  65934. p->tot_len = (u16_t)(p->tot_len - increment_magnitude);
  65935. 801abd6: 687b ldr r3, [r7, #4]
  65936. 801abd8: 891a ldrh r2, [r3, #8]
  65937. 801abda: 89fb ldrh r3, [r7, #14]
  65938. 801abdc: 1ad3 subs r3, r2, r3
  65939. 801abde: b29a uxth r2, r3
  65940. 801abe0: 687b ldr r3, [r7, #4]
  65941. 801abe2: 811a strh r2, [r3, #8]
  65942. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_remove_header: old %p new %p (%"U16_F")\n",
  65943. (void *)payload, (void *)p->payload, increment_magnitude));
  65944. return 0;
  65945. 801abe4: 2300 movs r3, #0
  65946. }
  65947. 801abe6: 4618 mov r0, r3
  65948. 801abe8: 3710 adds r7, #16
  65949. 801abea: 46bd mov sp, r7
  65950. 801abec: bd80 pop {r7, pc}
  65951. 801abee: bf00 nop
  65952. 801abf0: 0802e93c .word 0x0802e93c
  65953. 801abf4: 0802eaa0 .word 0x0802eaa0
  65954. 801abf8: 0802e99c .word 0x0802e99c
  65955. 801abfc: 0802eaac .word 0x0802eaac
  65956. 0801ac00 <pbuf_header_impl>:
  65957. static u8_t
  65958. pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force)
  65959. {
  65960. 801ac00: b580 push {r7, lr}
  65961. 801ac02: b082 sub sp, #8
  65962. 801ac04: af00 add r7, sp, #0
  65963. 801ac06: 6078 str r0, [r7, #4]
  65964. 801ac08: 460b mov r3, r1
  65965. 801ac0a: 807b strh r3, [r7, #2]
  65966. 801ac0c: 4613 mov r3, r2
  65967. 801ac0e: 707b strb r3, [r7, #1]
  65968. if (header_size_increment < 0) {
  65969. 801ac10: f9b7 3002 ldrsh.w r3, [r7, #2]
  65970. 801ac14: 2b00 cmp r3, #0
  65971. 801ac16: da08 bge.n 801ac2a <pbuf_header_impl+0x2a>
  65972. return pbuf_remove_header(p, (size_t) - header_size_increment);
  65973. 801ac18: f9b7 3002 ldrsh.w r3, [r7, #2]
  65974. 801ac1c: 425b negs r3, r3
  65975. 801ac1e: 4619 mov r1, r3
  65976. 801ac20: 6878 ldr r0, [r7, #4]
  65977. 801ac22: f7ff ff9b bl 801ab5c <pbuf_remove_header>
  65978. 801ac26: 4603 mov r3, r0
  65979. 801ac28: e007 b.n 801ac3a <pbuf_header_impl+0x3a>
  65980. } else {
  65981. return pbuf_add_header_impl(p, (size_t)header_size_increment, force);
  65982. 801ac2a: f9b7 3002 ldrsh.w r3, [r7, #2]
  65983. 801ac2e: 787a ldrb r2, [r7, #1]
  65984. 801ac30: 4619 mov r1, r3
  65985. 801ac32: 6878 ldr r0, [r7, #4]
  65986. 801ac34: f7ff ff1a bl 801aa6c <pbuf_add_header_impl>
  65987. 801ac38: 4603 mov r3, r0
  65988. }
  65989. }
  65990. 801ac3a: 4618 mov r0, r3
  65991. 801ac3c: 3708 adds r7, #8
  65992. 801ac3e: 46bd mov sp, r7
  65993. 801ac40: bd80 pop {r7, pc}
  65994. 0801ac42 <pbuf_header_force>:
  65995. * Same as pbuf_header but does not check if 'header_size > 0' is allowed.
  65996. * This is used internally only, to allow PBUF_REF for RX.
  65997. */
  65998. u8_t
  65999. pbuf_header_force(struct pbuf *p, s16_t header_size_increment)
  66000. {
  66001. 801ac42: b580 push {r7, lr}
  66002. 801ac44: b082 sub sp, #8
  66003. 801ac46: af00 add r7, sp, #0
  66004. 801ac48: 6078 str r0, [r7, #4]
  66005. 801ac4a: 460b mov r3, r1
  66006. 801ac4c: 807b strh r3, [r7, #2]
  66007. return pbuf_header_impl(p, header_size_increment, 1);
  66008. 801ac4e: f9b7 3002 ldrsh.w r3, [r7, #2]
  66009. 801ac52: 2201 movs r2, #1
  66010. 801ac54: 4619 mov r1, r3
  66011. 801ac56: 6878 ldr r0, [r7, #4]
  66012. 801ac58: f7ff ffd2 bl 801ac00 <pbuf_header_impl>
  66013. 801ac5c: 4603 mov r3, r0
  66014. }
  66015. 801ac5e: 4618 mov r0, r3
  66016. 801ac60: 3708 adds r7, #8
  66017. 801ac62: 46bd mov sp, r7
  66018. 801ac64: bd80 pop {r7, pc}
  66019. 0801ac66 <pbuf_free_header>:
  66020. * takes an u16_t not s16_t!
  66021. * @return the new head pbuf
  66022. */
  66023. struct pbuf *
  66024. pbuf_free_header(struct pbuf *q, u16_t size)
  66025. {
  66026. 801ac66: b580 push {r7, lr}
  66027. 801ac68: b086 sub sp, #24
  66028. 801ac6a: af00 add r7, sp, #0
  66029. 801ac6c: 6078 str r0, [r7, #4]
  66030. 801ac6e: 460b mov r3, r1
  66031. 801ac70: 807b strh r3, [r7, #2]
  66032. struct pbuf *p = q;
  66033. 801ac72: 687b ldr r3, [r7, #4]
  66034. 801ac74: 617b str r3, [r7, #20]
  66035. u16_t free_left = size;
  66036. 801ac76: 887b ldrh r3, [r7, #2]
  66037. 801ac78: 827b strh r3, [r7, #18]
  66038. while (free_left && p) {
  66039. 801ac7a: e01c b.n 801acb6 <pbuf_free_header+0x50>
  66040. if (free_left >= p->len) {
  66041. 801ac7c: 697b ldr r3, [r7, #20]
  66042. 801ac7e: 895b ldrh r3, [r3, #10]
  66043. 801ac80: 8a7a ldrh r2, [r7, #18]
  66044. 801ac82: 429a cmp r2, r3
  66045. 801ac84: d310 bcc.n 801aca8 <pbuf_free_header+0x42>
  66046. struct pbuf *f = p;
  66047. 801ac86: 697b ldr r3, [r7, #20]
  66048. 801ac88: 60fb str r3, [r7, #12]
  66049. free_left = (u16_t)(free_left - p->len);
  66050. 801ac8a: 697b ldr r3, [r7, #20]
  66051. 801ac8c: 895b ldrh r3, [r3, #10]
  66052. 801ac8e: 8a7a ldrh r2, [r7, #18]
  66053. 801ac90: 1ad3 subs r3, r2, r3
  66054. 801ac92: 827b strh r3, [r7, #18]
  66055. p = p->next;
  66056. 801ac94: 697b ldr r3, [r7, #20]
  66057. 801ac96: 681b ldr r3, [r3, #0]
  66058. 801ac98: 617b str r3, [r7, #20]
  66059. f->next = 0;
  66060. 801ac9a: 68fb ldr r3, [r7, #12]
  66061. 801ac9c: 2200 movs r2, #0
  66062. 801ac9e: 601a str r2, [r3, #0]
  66063. pbuf_free(f);
  66064. 801aca0: 68f8 ldr r0, [r7, #12]
  66065. 801aca2: f000 f813 bl 801accc <pbuf_free>
  66066. 801aca6: e006 b.n 801acb6 <pbuf_free_header+0x50>
  66067. } else {
  66068. pbuf_remove_header(p, free_left);
  66069. 801aca8: 8a7b ldrh r3, [r7, #18]
  66070. 801acaa: 4619 mov r1, r3
  66071. 801acac: 6978 ldr r0, [r7, #20]
  66072. 801acae: f7ff ff55 bl 801ab5c <pbuf_remove_header>
  66073. free_left = 0;
  66074. 801acb2: 2300 movs r3, #0
  66075. 801acb4: 827b strh r3, [r7, #18]
  66076. while (free_left && p) {
  66077. 801acb6: 8a7b ldrh r3, [r7, #18]
  66078. 801acb8: 2b00 cmp r3, #0
  66079. 801acba: d002 beq.n 801acc2 <pbuf_free_header+0x5c>
  66080. 801acbc: 697b ldr r3, [r7, #20]
  66081. 801acbe: 2b00 cmp r3, #0
  66082. 801acc0: d1dc bne.n 801ac7c <pbuf_free_header+0x16>
  66083. }
  66084. }
  66085. return p;
  66086. 801acc2: 697b ldr r3, [r7, #20]
  66087. }
  66088. 801acc4: 4618 mov r0, r3
  66089. 801acc6: 3718 adds r7, #24
  66090. 801acc8: 46bd mov sp, r7
  66091. 801acca: bd80 pop {r7, pc}
  66092. 0801accc <pbuf_free>:
  66093. * 1->1->1 becomes .......
  66094. *
  66095. */
  66096. u8_t
  66097. pbuf_free(struct pbuf *p)
  66098. {
  66099. 801accc: b580 push {r7, lr}
  66100. 801acce: b088 sub sp, #32
  66101. 801acd0: af00 add r7, sp, #0
  66102. 801acd2: 6078 str r0, [r7, #4]
  66103. u8_t alloc_src;
  66104. struct pbuf *q;
  66105. u8_t count;
  66106. if (p == NULL) {
  66107. 801acd4: 687b ldr r3, [r7, #4]
  66108. 801acd6: 2b00 cmp r3, #0
  66109. 801acd8: d10b bne.n 801acf2 <pbuf_free+0x26>
  66110. LWIP_ASSERT("p != NULL", p != NULL);
  66111. 801acda: 687b ldr r3, [r7, #4]
  66112. 801acdc: 2b00 cmp r3, #0
  66113. 801acde: d106 bne.n 801acee <pbuf_free+0x22>
  66114. 801ace0: 4b3b ldr r3, [pc, #236] @ (801add0 <pbuf_free+0x104>)
  66115. 801ace2: f44f 7237 mov.w r2, #732 @ 0x2dc
  66116. 801ace6: 493b ldr r1, [pc, #236] @ (801add4 <pbuf_free+0x108>)
  66117. 801ace8: 483b ldr r0, [pc, #236] @ (801add8 <pbuf_free+0x10c>)
  66118. 801acea: f00f fa67 bl 802a1bc <iprintf>
  66119. /* if assertions are disabled, proceed with debug output */
  66120. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  66121. ("pbuf_free(p == NULL) was called.\n"));
  66122. return 0;
  66123. 801acee: 2300 movs r3, #0
  66124. 801acf0: e069 b.n 801adc6 <pbuf_free+0xfa>
  66125. }
  66126. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p));
  66127. PERF_START;
  66128. count = 0;
  66129. 801acf2: 2300 movs r3, #0
  66130. 801acf4: 77fb strb r3, [r7, #31]
  66131. /* de-allocate all consecutive pbufs from the head of the chain that
  66132. * obtain a zero reference count after decrementing*/
  66133. while (p != NULL) {
  66134. 801acf6: e062 b.n 801adbe <pbuf_free+0xf2>
  66135. LWIP_PBUF_REF_T ref;
  66136. SYS_ARCH_DECL_PROTECT(old_level);
  66137. /* Since decrementing ref cannot be guaranteed to be a single machine operation
  66138. * we must protect it. We put the new ref into a local variable to prevent
  66139. * further protection. */
  66140. SYS_ARCH_PROTECT(old_level);
  66141. 801acf8: f00b ffca bl 8026c90 <sys_arch_protect>
  66142. 801acfc: 61b8 str r0, [r7, #24]
  66143. /* all pbufs in a chain are referenced at least once */
  66144. LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);
  66145. 801acfe: 687b ldr r3, [r7, #4]
  66146. 801ad00: 7b9b ldrb r3, [r3, #14]
  66147. 801ad02: 2b00 cmp r3, #0
  66148. 801ad04: d106 bne.n 801ad14 <pbuf_free+0x48>
  66149. 801ad06: 4b32 ldr r3, [pc, #200] @ (801add0 <pbuf_free+0x104>)
  66150. 801ad08: f240 22f1 movw r2, #753 @ 0x2f1
  66151. 801ad0c: 4933 ldr r1, [pc, #204] @ (801addc <pbuf_free+0x110>)
  66152. 801ad0e: 4832 ldr r0, [pc, #200] @ (801add8 <pbuf_free+0x10c>)
  66153. 801ad10: f00f fa54 bl 802a1bc <iprintf>
  66154. /* decrease reference count (number of pointers to pbuf) */
  66155. ref = --(p->ref);
  66156. 801ad14: 687b ldr r3, [r7, #4]
  66157. 801ad16: 7b9b ldrb r3, [r3, #14]
  66158. 801ad18: 3b01 subs r3, #1
  66159. 801ad1a: b2da uxtb r2, r3
  66160. 801ad1c: 687b ldr r3, [r7, #4]
  66161. 801ad1e: 739a strb r2, [r3, #14]
  66162. 801ad20: 687b ldr r3, [r7, #4]
  66163. 801ad22: 7b9b ldrb r3, [r3, #14]
  66164. 801ad24: 75fb strb r3, [r7, #23]
  66165. SYS_ARCH_UNPROTECT(old_level);
  66166. 801ad26: 69b8 ldr r0, [r7, #24]
  66167. 801ad28: f00b ffc0 bl 8026cac <sys_arch_unprotect>
  66168. /* this pbuf is no longer referenced to? */
  66169. if (ref == 0) {
  66170. 801ad2c: 7dfb ldrb r3, [r7, #23]
  66171. 801ad2e: 2b00 cmp r3, #0
  66172. 801ad30: d143 bne.n 801adba <pbuf_free+0xee>
  66173. /* remember next pbuf in chain for next iteration */
  66174. q = p->next;
  66175. 801ad32: 687b ldr r3, [r7, #4]
  66176. 801ad34: 681b ldr r3, [r3, #0]
  66177. 801ad36: 613b str r3, [r7, #16]
  66178. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: deallocating %p\n", (void *)p));
  66179. alloc_src = pbuf_get_allocsrc(p);
  66180. 801ad38: 687b ldr r3, [r7, #4]
  66181. 801ad3a: 7b1b ldrb r3, [r3, #12]
  66182. 801ad3c: f003 030f and.w r3, r3, #15
  66183. 801ad40: 73fb strb r3, [r7, #15]
  66184. #if LWIP_SUPPORT_CUSTOM_PBUF
  66185. /* is this a custom pbuf? */
  66186. if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) {
  66187. 801ad42: 687b ldr r3, [r7, #4]
  66188. 801ad44: 7b5b ldrb r3, [r3, #13]
  66189. 801ad46: f003 0302 and.w r3, r3, #2
  66190. 801ad4a: 2b00 cmp r3, #0
  66191. 801ad4c: d011 beq.n 801ad72 <pbuf_free+0xa6>
  66192. struct pbuf_custom *pc = (struct pbuf_custom *)p;
  66193. 801ad4e: 687b ldr r3, [r7, #4]
  66194. 801ad50: 60bb str r3, [r7, #8]
  66195. LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL);
  66196. 801ad52: 68bb ldr r3, [r7, #8]
  66197. 801ad54: 691b ldr r3, [r3, #16]
  66198. 801ad56: 2b00 cmp r3, #0
  66199. 801ad58: d106 bne.n 801ad68 <pbuf_free+0x9c>
  66200. 801ad5a: 4b1d ldr r3, [pc, #116] @ (801add0 <pbuf_free+0x104>)
  66201. 801ad5c: f240 22ff movw r2, #767 @ 0x2ff
  66202. 801ad60: 491f ldr r1, [pc, #124] @ (801ade0 <pbuf_free+0x114>)
  66203. 801ad62: 481d ldr r0, [pc, #116] @ (801add8 <pbuf_free+0x10c>)
  66204. 801ad64: f00f fa2a bl 802a1bc <iprintf>
  66205. pc->custom_free_function(p);
  66206. 801ad68: 68bb ldr r3, [r7, #8]
  66207. 801ad6a: 691b ldr r3, [r3, #16]
  66208. 801ad6c: 6878 ldr r0, [r7, #4]
  66209. 801ad6e: 4798 blx r3
  66210. 801ad70: e01d b.n 801adae <pbuf_free+0xe2>
  66211. } else
  66212. #endif /* LWIP_SUPPORT_CUSTOM_PBUF */
  66213. {
  66214. /* is this a pbuf from the pool? */
  66215. if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL) {
  66216. 801ad72: 7bfb ldrb r3, [r7, #15]
  66217. 801ad74: 2b02 cmp r3, #2
  66218. 801ad76: d104 bne.n 801ad82 <pbuf_free+0xb6>
  66219. memp_free(MEMP_PBUF_POOL, p);
  66220. 801ad78: 6879 ldr r1, [r7, #4]
  66221. 801ad7a: 200c movs r0, #12
  66222. 801ad7c: f7ff f8b8 bl 8019ef0 <memp_free>
  66223. 801ad80: e015 b.n 801adae <pbuf_free+0xe2>
  66224. /* is this a ROM or RAM referencing pbuf? */
  66225. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) {
  66226. 801ad82: 7bfb ldrb r3, [r7, #15]
  66227. 801ad84: 2b01 cmp r3, #1
  66228. 801ad86: d104 bne.n 801ad92 <pbuf_free+0xc6>
  66229. memp_free(MEMP_PBUF, p);
  66230. 801ad88: 6879 ldr r1, [r7, #4]
  66231. 801ad8a: 200b movs r0, #11
  66232. 801ad8c: f7ff f8b0 bl 8019ef0 <memp_free>
  66233. 801ad90: e00d b.n 801adae <pbuf_free+0xe2>
  66234. /* type == PBUF_RAM */
  66235. } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) {
  66236. 801ad92: 7bfb ldrb r3, [r7, #15]
  66237. 801ad94: 2b00 cmp r3, #0
  66238. 801ad96: d103 bne.n 801ada0 <pbuf_free+0xd4>
  66239. mem_free(p);
  66240. 801ad98: 6878 ldr r0, [r7, #4]
  66241. 801ad9a: f7fe fd05 bl 80197a8 <mem_free>
  66242. 801ad9e: e006 b.n 801adae <pbuf_free+0xe2>
  66243. } else {
  66244. /* @todo: support freeing other types */
  66245. LWIP_ASSERT("invalid pbuf type", 0);
  66246. 801ada0: 4b0b ldr r3, [pc, #44] @ (801add0 <pbuf_free+0x104>)
  66247. 801ada2: f240 320f movw r2, #783 @ 0x30f
  66248. 801ada6: 490f ldr r1, [pc, #60] @ (801ade4 <pbuf_free+0x118>)
  66249. 801ada8: 480b ldr r0, [pc, #44] @ (801add8 <pbuf_free+0x10c>)
  66250. 801adaa: f00f fa07 bl 802a1bc <iprintf>
  66251. }
  66252. }
  66253. count++;
  66254. 801adae: 7ffb ldrb r3, [r7, #31]
  66255. 801adb0: 3301 adds r3, #1
  66256. 801adb2: 77fb strb r3, [r7, #31]
  66257. /* proceed to next pbuf */
  66258. p = q;
  66259. 801adb4: 693b ldr r3, [r7, #16]
  66260. 801adb6: 607b str r3, [r7, #4]
  66261. 801adb8: e001 b.n 801adbe <pbuf_free+0xf2>
  66262. /* p->ref > 0, this pbuf is still referenced to */
  66263. /* (and so the remaining pbufs in chain as well) */
  66264. } else {
  66265. LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, (u16_t)ref));
  66266. /* stop walking through the chain */
  66267. p = NULL;
  66268. 801adba: 2300 movs r3, #0
  66269. 801adbc: 607b str r3, [r7, #4]
  66270. while (p != NULL) {
  66271. 801adbe: 687b ldr r3, [r7, #4]
  66272. 801adc0: 2b00 cmp r3, #0
  66273. 801adc2: d199 bne.n 801acf8 <pbuf_free+0x2c>
  66274. }
  66275. }
  66276. PERF_STOP("pbuf_free");
  66277. /* return number of de-allocated pbufs */
  66278. return count;
  66279. 801adc4: 7ffb ldrb r3, [r7, #31]
  66280. }
  66281. 801adc6: 4618 mov r0, r3
  66282. 801adc8: 3720 adds r7, #32
  66283. 801adca: 46bd mov sp, r7
  66284. 801adcc: bd80 pop {r7, pc}
  66285. 801adce: bf00 nop
  66286. 801add0: 0802e93c .word 0x0802e93c
  66287. 801add4: 0802eaa0 .word 0x0802eaa0
  66288. 801add8: 0802e99c .word 0x0802e99c
  66289. 801addc: 0802eacc .word 0x0802eacc
  66290. 801ade0: 0802eae4 .word 0x0802eae4
  66291. 801ade4: 0802eb08 .word 0x0802eb08
  66292. 0801ade8 <pbuf_clen>:
  66293. * @param p first pbuf of chain
  66294. * @return the number of pbufs in a chain
  66295. */
  66296. u16_t
  66297. pbuf_clen(const struct pbuf *p)
  66298. {
  66299. 801ade8: b480 push {r7}
  66300. 801adea: b085 sub sp, #20
  66301. 801adec: af00 add r7, sp, #0
  66302. 801adee: 6078 str r0, [r7, #4]
  66303. u16_t len;
  66304. len = 0;
  66305. 801adf0: 2300 movs r3, #0
  66306. 801adf2: 81fb strh r3, [r7, #14]
  66307. while (p != NULL) {
  66308. 801adf4: e005 b.n 801ae02 <pbuf_clen+0x1a>
  66309. ++len;
  66310. 801adf6: 89fb ldrh r3, [r7, #14]
  66311. 801adf8: 3301 adds r3, #1
  66312. 801adfa: 81fb strh r3, [r7, #14]
  66313. p = p->next;
  66314. 801adfc: 687b ldr r3, [r7, #4]
  66315. 801adfe: 681b ldr r3, [r3, #0]
  66316. 801ae00: 607b str r3, [r7, #4]
  66317. while (p != NULL) {
  66318. 801ae02: 687b ldr r3, [r7, #4]
  66319. 801ae04: 2b00 cmp r3, #0
  66320. 801ae06: d1f6 bne.n 801adf6 <pbuf_clen+0xe>
  66321. }
  66322. return len;
  66323. 801ae08: 89fb ldrh r3, [r7, #14]
  66324. }
  66325. 801ae0a: 4618 mov r0, r3
  66326. 801ae0c: 3714 adds r7, #20
  66327. 801ae0e: 46bd mov sp, r7
  66328. 801ae10: f85d 7b04 ldr.w r7, [sp], #4
  66329. 801ae14: 4770 bx lr
  66330. ...
  66331. 0801ae18 <pbuf_ref>:
  66332. * @param p pbuf to increase reference counter of
  66333. *
  66334. */
  66335. void
  66336. pbuf_ref(struct pbuf *p)
  66337. {
  66338. 801ae18: b580 push {r7, lr}
  66339. 801ae1a: b084 sub sp, #16
  66340. 801ae1c: af00 add r7, sp, #0
  66341. 801ae1e: 6078 str r0, [r7, #4]
  66342. /* pbuf given? */
  66343. if (p != NULL) {
  66344. 801ae20: 687b ldr r3, [r7, #4]
  66345. 801ae22: 2b00 cmp r3, #0
  66346. 801ae24: d016 beq.n 801ae54 <pbuf_ref+0x3c>
  66347. SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1));
  66348. 801ae26: f00b ff33 bl 8026c90 <sys_arch_protect>
  66349. 801ae2a: 60f8 str r0, [r7, #12]
  66350. 801ae2c: 687b ldr r3, [r7, #4]
  66351. 801ae2e: 7b9b ldrb r3, [r3, #14]
  66352. 801ae30: 3301 adds r3, #1
  66353. 801ae32: b2da uxtb r2, r3
  66354. 801ae34: 687b ldr r3, [r7, #4]
  66355. 801ae36: 739a strb r2, [r3, #14]
  66356. 801ae38: 68f8 ldr r0, [r7, #12]
  66357. 801ae3a: f00b ff37 bl 8026cac <sys_arch_unprotect>
  66358. LWIP_ASSERT("pbuf ref overflow", p->ref > 0);
  66359. 801ae3e: 687b ldr r3, [r7, #4]
  66360. 801ae40: 7b9b ldrb r3, [r3, #14]
  66361. 801ae42: 2b00 cmp r3, #0
  66362. 801ae44: d106 bne.n 801ae54 <pbuf_ref+0x3c>
  66363. 801ae46: 4b05 ldr r3, [pc, #20] @ (801ae5c <pbuf_ref+0x44>)
  66364. 801ae48: f240 3242 movw r2, #834 @ 0x342
  66365. 801ae4c: 4904 ldr r1, [pc, #16] @ (801ae60 <pbuf_ref+0x48>)
  66366. 801ae4e: 4805 ldr r0, [pc, #20] @ (801ae64 <pbuf_ref+0x4c>)
  66367. 801ae50: f00f f9b4 bl 802a1bc <iprintf>
  66368. }
  66369. }
  66370. 801ae54: bf00 nop
  66371. 801ae56: 3710 adds r7, #16
  66372. 801ae58: 46bd mov sp, r7
  66373. 801ae5a: bd80 pop {r7, pc}
  66374. 801ae5c: 0802e93c .word 0x0802e93c
  66375. 801ae60: 0802eb1c .word 0x0802eb1c
  66376. 801ae64: 0802e99c .word 0x0802e99c
  66377. 0801ae68 <pbuf_cat>:
  66378. *
  66379. * @see pbuf_chain()
  66380. */
  66381. void
  66382. pbuf_cat(struct pbuf *h, struct pbuf *t)
  66383. {
  66384. 801ae68: b580 push {r7, lr}
  66385. 801ae6a: b084 sub sp, #16
  66386. 801ae6c: af00 add r7, sp, #0
  66387. 801ae6e: 6078 str r0, [r7, #4]
  66388. 801ae70: 6039 str r1, [r7, #0]
  66389. struct pbuf *p;
  66390. LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)",
  66391. 801ae72: 687b ldr r3, [r7, #4]
  66392. 801ae74: 2b00 cmp r3, #0
  66393. 801ae76: d002 beq.n 801ae7e <pbuf_cat+0x16>
  66394. 801ae78: 683b ldr r3, [r7, #0]
  66395. 801ae7a: 2b00 cmp r3, #0
  66396. 801ae7c: d107 bne.n 801ae8e <pbuf_cat+0x26>
  66397. 801ae7e: 4b20 ldr r3, [pc, #128] @ (801af00 <pbuf_cat+0x98>)
  66398. 801ae80: f240 3259 movw r2, #857 @ 0x359
  66399. 801ae84: 491f ldr r1, [pc, #124] @ (801af04 <pbuf_cat+0x9c>)
  66400. 801ae86: 4820 ldr r0, [pc, #128] @ (801af08 <pbuf_cat+0xa0>)
  66401. 801ae88: f00f f998 bl 802a1bc <iprintf>
  66402. 801ae8c: e034 b.n 801aef8 <pbuf_cat+0x90>
  66403. ((h != NULL) && (t != NULL)), return;);
  66404. /* proceed to last pbuf of chain */
  66405. for (p = h; p->next != NULL; p = p->next) {
  66406. 801ae8e: 687b ldr r3, [r7, #4]
  66407. 801ae90: 60fb str r3, [r7, #12]
  66408. 801ae92: e00a b.n 801aeaa <pbuf_cat+0x42>
  66409. /* add total length of second chain to all totals of first chain */
  66410. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  66411. 801ae94: 68fb ldr r3, [r7, #12]
  66412. 801ae96: 891a ldrh r2, [r3, #8]
  66413. 801ae98: 683b ldr r3, [r7, #0]
  66414. 801ae9a: 891b ldrh r3, [r3, #8]
  66415. 801ae9c: 4413 add r3, r2
  66416. 801ae9e: b29a uxth r2, r3
  66417. 801aea0: 68fb ldr r3, [r7, #12]
  66418. 801aea2: 811a strh r2, [r3, #8]
  66419. for (p = h; p->next != NULL; p = p->next) {
  66420. 801aea4: 68fb ldr r3, [r7, #12]
  66421. 801aea6: 681b ldr r3, [r3, #0]
  66422. 801aea8: 60fb str r3, [r7, #12]
  66423. 801aeaa: 68fb ldr r3, [r7, #12]
  66424. 801aeac: 681b ldr r3, [r3, #0]
  66425. 801aeae: 2b00 cmp r3, #0
  66426. 801aeb0: d1f0 bne.n 801ae94 <pbuf_cat+0x2c>
  66427. }
  66428. /* { p is last pbuf of first h chain, p->next == NULL } */
  66429. LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len);
  66430. 801aeb2: 68fb ldr r3, [r7, #12]
  66431. 801aeb4: 891a ldrh r2, [r3, #8]
  66432. 801aeb6: 68fb ldr r3, [r7, #12]
  66433. 801aeb8: 895b ldrh r3, [r3, #10]
  66434. 801aeba: 429a cmp r2, r3
  66435. 801aebc: d006 beq.n 801aecc <pbuf_cat+0x64>
  66436. 801aebe: 4b10 ldr r3, [pc, #64] @ (801af00 <pbuf_cat+0x98>)
  66437. 801aec0: f240 3262 movw r2, #866 @ 0x362
  66438. 801aec4: 4911 ldr r1, [pc, #68] @ (801af0c <pbuf_cat+0xa4>)
  66439. 801aec6: 4810 ldr r0, [pc, #64] @ (801af08 <pbuf_cat+0xa0>)
  66440. 801aec8: f00f f978 bl 802a1bc <iprintf>
  66441. LWIP_ASSERT("p->next == NULL", p->next == NULL);
  66442. 801aecc: 68fb ldr r3, [r7, #12]
  66443. 801aece: 681b ldr r3, [r3, #0]
  66444. 801aed0: 2b00 cmp r3, #0
  66445. 801aed2: d006 beq.n 801aee2 <pbuf_cat+0x7a>
  66446. 801aed4: 4b0a ldr r3, [pc, #40] @ (801af00 <pbuf_cat+0x98>)
  66447. 801aed6: f240 3263 movw r2, #867 @ 0x363
  66448. 801aeda: 490d ldr r1, [pc, #52] @ (801af10 <pbuf_cat+0xa8>)
  66449. 801aedc: 480a ldr r0, [pc, #40] @ (801af08 <pbuf_cat+0xa0>)
  66450. 801aede: f00f f96d bl 802a1bc <iprintf>
  66451. /* add total length of second chain to last pbuf total of first chain */
  66452. p->tot_len = (u16_t)(p->tot_len + t->tot_len);
  66453. 801aee2: 68fb ldr r3, [r7, #12]
  66454. 801aee4: 891a ldrh r2, [r3, #8]
  66455. 801aee6: 683b ldr r3, [r7, #0]
  66456. 801aee8: 891b ldrh r3, [r3, #8]
  66457. 801aeea: 4413 add r3, r2
  66458. 801aeec: b29a uxth r2, r3
  66459. 801aeee: 68fb ldr r3, [r7, #12]
  66460. 801aef0: 811a strh r2, [r3, #8]
  66461. /* chain last pbuf of head (p) with first of tail (t) */
  66462. p->next = t;
  66463. 801aef2: 68fb ldr r3, [r7, #12]
  66464. 801aef4: 683a ldr r2, [r7, #0]
  66465. 801aef6: 601a str r2, [r3, #0]
  66466. /* p->next now references t, but the caller will drop its reference to t,
  66467. * so netto there is no change to the reference count of t.
  66468. */
  66469. }
  66470. 801aef8: 3710 adds r7, #16
  66471. 801aefa: 46bd mov sp, r7
  66472. 801aefc: bd80 pop {r7, pc}
  66473. 801aefe: bf00 nop
  66474. 801af00: 0802e93c .word 0x0802e93c
  66475. 801af04: 0802eb30 .word 0x0802eb30
  66476. 801af08: 0802e99c .word 0x0802e99c
  66477. 801af0c: 0802eb68 .word 0x0802eb68
  66478. 801af10: 0802eb98 .word 0x0802eb98
  66479. 0801af14 <pbuf_chain>:
  66480. * The ->ref field of the first pbuf of the tail chain is adjusted.
  66481. *
  66482. */
  66483. void
  66484. pbuf_chain(struct pbuf *h, struct pbuf *t)
  66485. {
  66486. 801af14: b580 push {r7, lr}
  66487. 801af16: b082 sub sp, #8
  66488. 801af18: af00 add r7, sp, #0
  66489. 801af1a: 6078 str r0, [r7, #4]
  66490. 801af1c: 6039 str r1, [r7, #0]
  66491. pbuf_cat(h, t);
  66492. 801af1e: 6839 ldr r1, [r7, #0]
  66493. 801af20: 6878 ldr r0, [r7, #4]
  66494. 801af22: f7ff ffa1 bl 801ae68 <pbuf_cat>
  66495. /* t is now referenced by h */
  66496. pbuf_ref(t);
  66497. 801af26: 6838 ldr r0, [r7, #0]
  66498. 801af28: f7ff ff76 bl 801ae18 <pbuf_ref>
  66499. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t));
  66500. }
  66501. 801af2c: bf00 nop
  66502. 801af2e: 3708 adds r7, #8
  66503. 801af30: 46bd mov sp, r7
  66504. 801af32: bd80 pop {r7, pc}
  66505. 0801af34 <pbuf_copy>:
  66506. * ERR_ARG if one of the pbufs is NULL or p_to is not big
  66507. * enough to hold p_from
  66508. */
  66509. err_t
  66510. pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
  66511. {
  66512. 801af34: b580 push {r7, lr}
  66513. 801af36: b086 sub sp, #24
  66514. 801af38: af00 add r7, sp, #0
  66515. 801af3a: 6078 str r0, [r7, #4]
  66516. 801af3c: 6039 str r1, [r7, #0]
  66517. size_t offset_to = 0, offset_from = 0, len;
  66518. 801af3e: 2300 movs r3, #0
  66519. 801af40: 617b str r3, [r7, #20]
  66520. 801af42: 2300 movs r3, #0
  66521. 801af44: 613b str r3, [r7, #16]
  66522. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n",
  66523. (const void *)p_to, (const void *)p_from));
  66524. /* is the target big enough to hold the source? */
  66525. LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) &&
  66526. 801af46: 687b ldr r3, [r7, #4]
  66527. 801af48: 2b00 cmp r3, #0
  66528. 801af4a: d008 beq.n 801af5e <pbuf_copy+0x2a>
  66529. 801af4c: 683b ldr r3, [r7, #0]
  66530. 801af4e: 2b00 cmp r3, #0
  66531. 801af50: d005 beq.n 801af5e <pbuf_copy+0x2a>
  66532. 801af52: 687b ldr r3, [r7, #4]
  66533. 801af54: 891a ldrh r2, [r3, #8]
  66534. 801af56: 683b ldr r3, [r7, #0]
  66535. 801af58: 891b ldrh r3, [r3, #8]
  66536. 801af5a: 429a cmp r2, r3
  66537. 801af5c: d209 bcs.n 801af72 <pbuf_copy+0x3e>
  66538. 801af5e: 4b57 ldr r3, [pc, #348] @ (801b0bc <pbuf_copy+0x188>)
  66539. 801af60: f240 32c9 movw r2, #969 @ 0x3c9
  66540. 801af64: 4956 ldr r1, [pc, #344] @ (801b0c0 <pbuf_copy+0x18c>)
  66541. 801af66: 4857 ldr r0, [pc, #348] @ (801b0c4 <pbuf_copy+0x190>)
  66542. 801af68: f00f f928 bl 802a1bc <iprintf>
  66543. 801af6c: f06f 030f mvn.w r3, #15
  66544. 801af70: e09f b.n 801b0b2 <pbuf_copy+0x17e>
  66545. (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;);
  66546. /* iterate through pbuf chain */
  66547. do {
  66548. /* copy one part of the original chain */
  66549. if ((p_to->len - offset_to) >= (p_from->len - offset_from)) {
  66550. 801af72: 687b ldr r3, [r7, #4]
  66551. 801af74: 895b ldrh r3, [r3, #10]
  66552. 801af76: 461a mov r2, r3
  66553. 801af78: 697b ldr r3, [r7, #20]
  66554. 801af7a: 1ad2 subs r2, r2, r3
  66555. 801af7c: 683b ldr r3, [r7, #0]
  66556. 801af7e: 895b ldrh r3, [r3, #10]
  66557. 801af80: 4619 mov r1, r3
  66558. 801af82: 693b ldr r3, [r7, #16]
  66559. 801af84: 1acb subs r3, r1, r3
  66560. 801af86: 429a cmp r2, r3
  66561. 801af88: d306 bcc.n 801af98 <pbuf_copy+0x64>
  66562. /* complete current p_from fits into current p_to */
  66563. len = p_from->len - offset_from;
  66564. 801af8a: 683b ldr r3, [r7, #0]
  66565. 801af8c: 895b ldrh r3, [r3, #10]
  66566. 801af8e: 461a mov r2, r3
  66567. 801af90: 693b ldr r3, [r7, #16]
  66568. 801af92: 1ad3 subs r3, r2, r3
  66569. 801af94: 60fb str r3, [r7, #12]
  66570. 801af96: e005 b.n 801afa4 <pbuf_copy+0x70>
  66571. } else {
  66572. /* current p_from does not fit into current p_to */
  66573. len = p_to->len - offset_to;
  66574. 801af98: 687b ldr r3, [r7, #4]
  66575. 801af9a: 895b ldrh r3, [r3, #10]
  66576. 801af9c: 461a mov r2, r3
  66577. 801af9e: 697b ldr r3, [r7, #20]
  66578. 801afa0: 1ad3 subs r3, r2, r3
  66579. 801afa2: 60fb str r3, [r7, #12]
  66580. }
  66581. MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len);
  66582. 801afa4: 687b ldr r3, [r7, #4]
  66583. 801afa6: 685a ldr r2, [r3, #4]
  66584. 801afa8: 697b ldr r3, [r7, #20]
  66585. 801afaa: 18d0 adds r0, r2, r3
  66586. 801afac: 683b ldr r3, [r7, #0]
  66587. 801afae: 685a ldr r2, [r3, #4]
  66588. 801afb0: 693b ldr r3, [r7, #16]
  66589. 801afb2: 4413 add r3, r2
  66590. 801afb4: 68fa ldr r2, [r7, #12]
  66591. 801afb6: 4619 mov r1, r3
  66592. 801afb8: f00f fb89 bl 802a6ce <memcpy>
  66593. offset_to += len;
  66594. 801afbc: 697a ldr r2, [r7, #20]
  66595. 801afbe: 68fb ldr r3, [r7, #12]
  66596. 801afc0: 4413 add r3, r2
  66597. 801afc2: 617b str r3, [r7, #20]
  66598. offset_from += len;
  66599. 801afc4: 693a ldr r2, [r7, #16]
  66600. 801afc6: 68fb ldr r3, [r7, #12]
  66601. 801afc8: 4413 add r3, r2
  66602. 801afca: 613b str r3, [r7, #16]
  66603. LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len);
  66604. 801afcc: 687b ldr r3, [r7, #4]
  66605. 801afce: 895b ldrh r3, [r3, #10]
  66606. 801afd0: 461a mov r2, r3
  66607. 801afd2: 697b ldr r3, [r7, #20]
  66608. 801afd4: 4293 cmp r3, r2
  66609. 801afd6: d906 bls.n 801afe6 <pbuf_copy+0xb2>
  66610. 801afd8: 4b38 ldr r3, [pc, #224] @ (801b0bc <pbuf_copy+0x188>)
  66611. 801afda: f240 32d9 movw r2, #985 @ 0x3d9
  66612. 801afde: 493a ldr r1, [pc, #232] @ (801b0c8 <pbuf_copy+0x194>)
  66613. 801afe0: 4838 ldr r0, [pc, #224] @ (801b0c4 <pbuf_copy+0x190>)
  66614. 801afe2: f00f f8eb bl 802a1bc <iprintf>
  66615. LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len);
  66616. 801afe6: 683b ldr r3, [r7, #0]
  66617. 801afe8: 895b ldrh r3, [r3, #10]
  66618. 801afea: 461a mov r2, r3
  66619. 801afec: 693b ldr r3, [r7, #16]
  66620. 801afee: 4293 cmp r3, r2
  66621. 801aff0: d906 bls.n 801b000 <pbuf_copy+0xcc>
  66622. 801aff2: 4b32 ldr r3, [pc, #200] @ (801b0bc <pbuf_copy+0x188>)
  66623. 801aff4: f240 32da movw r2, #986 @ 0x3da
  66624. 801aff8: 4934 ldr r1, [pc, #208] @ (801b0cc <pbuf_copy+0x198>)
  66625. 801affa: 4832 ldr r0, [pc, #200] @ (801b0c4 <pbuf_copy+0x190>)
  66626. 801affc: f00f f8de bl 802a1bc <iprintf>
  66627. if (offset_from >= p_from->len) {
  66628. 801b000: 683b ldr r3, [r7, #0]
  66629. 801b002: 895b ldrh r3, [r3, #10]
  66630. 801b004: 461a mov r2, r3
  66631. 801b006: 693b ldr r3, [r7, #16]
  66632. 801b008: 4293 cmp r3, r2
  66633. 801b00a: d304 bcc.n 801b016 <pbuf_copy+0xe2>
  66634. /* on to next p_from (if any) */
  66635. offset_from = 0;
  66636. 801b00c: 2300 movs r3, #0
  66637. 801b00e: 613b str r3, [r7, #16]
  66638. p_from = p_from->next;
  66639. 801b010: 683b ldr r3, [r7, #0]
  66640. 801b012: 681b ldr r3, [r3, #0]
  66641. 801b014: 603b str r3, [r7, #0]
  66642. }
  66643. if (offset_to == p_to->len) {
  66644. 801b016: 687b ldr r3, [r7, #4]
  66645. 801b018: 895b ldrh r3, [r3, #10]
  66646. 801b01a: 461a mov r2, r3
  66647. 801b01c: 697b ldr r3, [r7, #20]
  66648. 801b01e: 4293 cmp r3, r2
  66649. 801b020: d114 bne.n 801b04c <pbuf_copy+0x118>
  66650. /* on to next p_to (if any) */
  66651. offset_to = 0;
  66652. 801b022: 2300 movs r3, #0
  66653. 801b024: 617b str r3, [r7, #20]
  66654. p_to = p_to->next;
  66655. 801b026: 687b ldr r3, [r7, #4]
  66656. 801b028: 681b ldr r3, [r3, #0]
  66657. 801b02a: 607b str r3, [r7, #4]
  66658. LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;);
  66659. 801b02c: 687b ldr r3, [r7, #4]
  66660. 801b02e: 2b00 cmp r3, #0
  66661. 801b030: d10c bne.n 801b04c <pbuf_copy+0x118>
  66662. 801b032: 683b ldr r3, [r7, #0]
  66663. 801b034: 2b00 cmp r3, #0
  66664. 801b036: d009 beq.n 801b04c <pbuf_copy+0x118>
  66665. 801b038: 4b20 ldr r3, [pc, #128] @ (801b0bc <pbuf_copy+0x188>)
  66666. 801b03a: f44f 7279 mov.w r2, #996 @ 0x3e4
  66667. 801b03e: 4924 ldr r1, [pc, #144] @ (801b0d0 <pbuf_copy+0x19c>)
  66668. 801b040: 4820 ldr r0, [pc, #128] @ (801b0c4 <pbuf_copy+0x190>)
  66669. 801b042: f00f f8bb bl 802a1bc <iprintf>
  66670. 801b046: f06f 030f mvn.w r3, #15
  66671. 801b04a: e032 b.n 801b0b2 <pbuf_copy+0x17e>
  66672. }
  66673. if ((p_from != NULL) && (p_from->len == p_from->tot_len)) {
  66674. 801b04c: 683b ldr r3, [r7, #0]
  66675. 801b04e: 2b00 cmp r3, #0
  66676. 801b050: d013 beq.n 801b07a <pbuf_copy+0x146>
  66677. 801b052: 683b ldr r3, [r7, #0]
  66678. 801b054: 895a ldrh r2, [r3, #10]
  66679. 801b056: 683b ldr r3, [r7, #0]
  66680. 801b058: 891b ldrh r3, [r3, #8]
  66681. 801b05a: 429a cmp r2, r3
  66682. 801b05c: d10d bne.n 801b07a <pbuf_copy+0x146>
  66683. /* don't copy more than one packet! */
  66684. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  66685. 801b05e: 683b ldr r3, [r7, #0]
  66686. 801b060: 681b ldr r3, [r3, #0]
  66687. 801b062: 2b00 cmp r3, #0
  66688. 801b064: d009 beq.n 801b07a <pbuf_copy+0x146>
  66689. 801b066: 4b15 ldr r3, [pc, #84] @ (801b0bc <pbuf_copy+0x188>)
  66690. 801b068: f240 32e9 movw r2, #1001 @ 0x3e9
  66691. 801b06c: 4919 ldr r1, [pc, #100] @ (801b0d4 <pbuf_copy+0x1a0>)
  66692. 801b06e: 4815 ldr r0, [pc, #84] @ (801b0c4 <pbuf_copy+0x190>)
  66693. 801b070: f00f f8a4 bl 802a1bc <iprintf>
  66694. 801b074: f06f 0305 mvn.w r3, #5
  66695. 801b078: e01b b.n 801b0b2 <pbuf_copy+0x17e>
  66696. (p_from->next == NULL), return ERR_VAL;);
  66697. }
  66698. if ((p_to != NULL) && (p_to->len == p_to->tot_len)) {
  66699. 801b07a: 687b ldr r3, [r7, #4]
  66700. 801b07c: 2b00 cmp r3, #0
  66701. 801b07e: d013 beq.n 801b0a8 <pbuf_copy+0x174>
  66702. 801b080: 687b ldr r3, [r7, #4]
  66703. 801b082: 895a ldrh r2, [r3, #10]
  66704. 801b084: 687b ldr r3, [r7, #4]
  66705. 801b086: 891b ldrh r3, [r3, #8]
  66706. 801b088: 429a cmp r2, r3
  66707. 801b08a: d10d bne.n 801b0a8 <pbuf_copy+0x174>
  66708. /* don't copy more than one packet! */
  66709. LWIP_ERROR("pbuf_copy() does not allow packet queues!",
  66710. 801b08c: 687b ldr r3, [r7, #4]
  66711. 801b08e: 681b ldr r3, [r3, #0]
  66712. 801b090: 2b00 cmp r3, #0
  66713. 801b092: d009 beq.n 801b0a8 <pbuf_copy+0x174>
  66714. 801b094: 4b09 ldr r3, [pc, #36] @ (801b0bc <pbuf_copy+0x188>)
  66715. 801b096: f240 32ee movw r2, #1006 @ 0x3ee
  66716. 801b09a: 490e ldr r1, [pc, #56] @ (801b0d4 <pbuf_copy+0x1a0>)
  66717. 801b09c: 4809 ldr r0, [pc, #36] @ (801b0c4 <pbuf_copy+0x190>)
  66718. 801b09e: f00f f88d bl 802a1bc <iprintf>
  66719. 801b0a2: f06f 0305 mvn.w r3, #5
  66720. 801b0a6: e004 b.n 801b0b2 <pbuf_copy+0x17e>
  66721. (p_to->next == NULL), return ERR_VAL;);
  66722. }
  66723. } while (p_from);
  66724. 801b0a8: 683b ldr r3, [r7, #0]
  66725. 801b0aa: 2b00 cmp r3, #0
  66726. 801b0ac: f47f af61 bne.w 801af72 <pbuf_copy+0x3e>
  66727. LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n"));
  66728. return ERR_OK;
  66729. 801b0b0: 2300 movs r3, #0
  66730. }
  66731. 801b0b2: 4618 mov r0, r3
  66732. 801b0b4: 3718 adds r7, #24
  66733. 801b0b6: 46bd mov sp, r7
  66734. 801b0b8: bd80 pop {r7, pc}
  66735. 801b0ba: bf00 nop
  66736. 801b0bc: 0802e93c .word 0x0802e93c
  66737. 801b0c0: 0802ebe4 .word 0x0802ebe4
  66738. 801b0c4: 0802e99c .word 0x0802e99c
  66739. 801b0c8: 0802ec14 .word 0x0802ec14
  66740. 801b0cc: 0802ec2c .word 0x0802ec2c
  66741. 801b0d0: 0802ec48 .word 0x0802ec48
  66742. 801b0d4: 0802ec58 .word 0x0802ec58
  66743. 0801b0d8 <pbuf_copy_partial>:
  66744. * @param offset offset into the packet buffer from where to begin copying len bytes
  66745. * @return the number of bytes copied, or 0 on failure
  66746. */
  66747. u16_t
  66748. pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
  66749. {
  66750. 801b0d8: b580 push {r7, lr}
  66751. 801b0da: b088 sub sp, #32
  66752. 801b0dc: af00 add r7, sp, #0
  66753. 801b0de: 60f8 str r0, [r7, #12]
  66754. 801b0e0: 60b9 str r1, [r7, #8]
  66755. 801b0e2: 4611 mov r1, r2
  66756. 801b0e4: 461a mov r2, r3
  66757. 801b0e6: 460b mov r3, r1
  66758. 801b0e8: 80fb strh r3, [r7, #6]
  66759. 801b0ea: 4613 mov r3, r2
  66760. 801b0ec: 80bb strh r3, [r7, #4]
  66761. const struct pbuf *p;
  66762. u16_t left = 0;
  66763. 801b0ee: 2300 movs r3, #0
  66764. 801b0f0: 837b strh r3, [r7, #26]
  66765. u16_t buf_copy_len;
  66766. u16_t copied_total = 0;
  66767. 801b0f2: 2300 movs r3, #0
  66768. 801b0f4: 82fb strh r3, [r7, #22]
  66769. LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;);
  66770. 801b0f6: 68fb ldr r3, [r7, #12]
  66771. 801b0f8: 2b00 cmp r3, #0
  66772. 801b0fa: d108 bne.n 801b10e <pbuf_copy_partial+0x36>
  66773. 801b0fc: 4b2b ldr r3, [pc, #172] @ (801b1ac <pbuf_copy_partial+0xd4>)
  66774. 801b0fe: f240 420a movw r2, #1034 @ 0x40a
  66775. 801b102: 492b ldr r1, [pc, #172] @ (801b1b0 <pbuf_copy_partial+0xd8>)
  66776. 801b104: 482b ldr r0, [pc, #172] @ (801b1b4 <pbuf_copy_partial+0xdc>)
  66777. 801b106: f00f f859 bl 802a1bc <iprintf>
  66778. 801b10a: 2300 movs r3, #0
  66779. 801b10c: e04a b.n 801b1a4 <pbuf_copy_partial+0xcc>
  66780. LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;);
  66781. 801b10e: 68bb ldr r3, [r7, #8]
  66782. 801b110: 2b00 cmp r3, #0
  66783. 801b112: d108 bne.n 801b126 <pbuf_copy_partial+0x4e>
  66784. 801b114: 4b25 ldr r3, [pc, #148] @ (801b1ac <pbuf_copy_partial+0xd4>)
  66785. 801b116: f240 420b movw r2, #1035 @ 0x40b
  66786. 801b11a: 4927 ldr r1, [pc, #156] @ (801b1b8 <pbuf_copy_partial+0xe0>)
  66787. 801b11c: 4825 ldr r0, [pc, #148] @ (801b1b4 <pbuf_copy_partial+0xdc>)
  66788. 801b11e: f00f f84d bl 802a1bc <iprintf>
  66789. 801b122: 2300 movs r3, #0
  66790. 801b124: e03e b.n 801b1a4 <pbuf_copy_partial+0xcc>
  66791. /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
  66792. for (p = buf; len != 0 && p != NULL; p = p->next) {
  66793. 801b126: 68fb ldr r3, [r7, #12]
  66794. 801b128: 61fb str r3, [r7, #28]
  66795. 801b12a: e034 b.n 801b196 <pbuf_copy_partial+0xbe>
  66796. if ((offset != 0) && (offset >= p->len)) {
  66797. 801b12c: 88bb ldrh r3, [r7, #4]
  66798. 801b12e: 2b00 cmp r3, #0
  66799. 801b130: d00a beq.n 801b148 <pbuf_copy_partial+0x70>
  66800. 801b132: 69fb ldr r3, [r7, #28]
  66801. 801b134: 895b ldrh r3, [r3, #10]
  66802. 801b136: 88ba ldrh r2, [r7, #4]
  66803. 801b138: 429a cmp r2, r3
  66804. 801b13a: d305 bcc.n 801b148 <pbuf_copy_partial+0x70>
  66805. /* don't copy from this buffer -> on to the next */
  66806. offset = (u16_t)(offset - p->len);
  66807. 801b13c: 69fb ldr r3, [r7, #28]
  66808. 801b13e: 895b ldrh r3, [r3, #10]
  66809. 801b140: 88ba ldrh r2, [r7, #4]
  66810. 801b142: 1ad3 subs r3, r2, r3
  66811. 801b144: 80bb strh r3, [r7, #4]
  66812. 801b146: e023 b.n 801b190 <pbuf_copy_partial+0xb8>
  66813. } else {
  66814. /* copy from this buffer. maybe only partially. */
  66815. buf_copy_len = (u16_t)(p->len - offset);
  66816. 801b148: 69fb ldr r3, [r7, #28]
  66817. 801b14a: 895a ldrh r2, [r3, #10]
  66818. 801b14c: 88bb ldrh r3, [r7, #4]
  66819. 801b14e: 1ad3 subs r3, r2, r3
  66820. 801b150: 833b strh r3, [r7, #24]
  66821. if (buf_copy_len > len) {
  66822. 801b152: 8b3a ldrh r2, [r7, #24]
  66823. 801b154: 88fb ldrh r3, [r7, #6]
  66824. 801b156: 429a cmp r2, r3
  66825. 801b158: d901 bls.n 801b15e <pbuf_copy_partial+0x86>
  66826. buf_copy_len = len;
  66827. 801b15a: 88fb ldrh r3, [r7, #6]
  66828. 801b15c: 833b strh r3, [r7, #24]
  66829. }
  66830. /* copy the necessary parts of the buffer */
  66831. MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len);
  66832. 801b15e: 8b7b ldrh r3, [r7, #26]
  66833. 801b160: 68ba ldr r2, [r7, #8]
  66834. 801b162: 18d0 adds r0, r2, r3
  66835. 801b164: 69fb ldr r3, [r7, #28]
  66836. 801b166: 685a ldr r2, [r3, #4]
  66837. 801b168: 88bb ldrh r3, [r7, #4]
  66838. 801b16a: 4413 add r3, r2
  66839. 801b16c: 8b3a ldrh r2, [r7, #24]
  66840. 801b16e: 4619 mov r1, r3
  66841. 801b170: f00f faad bl 802a6ce <memcpy>
  66842. copied_total = (u16_t)(copied_total + buf_copy_len);
  66843. 801b174: 8afa ldrh r2, [r7, #22]
  66844. 801b176: 8b3b ldrh r3, [r7, #24]
  66845. 801b178: 4413 add r3, r2
  66846. 801b17a: 82fb strh r3, [r7, #22]
  66847. left = (u16_t)(left + buf_copy_len);
  66848. 801b17c: 8b7a ldrh r2, [r7, #26]
  66849. 801b17e: 8b3b ldrh r3, [r7, #24]
  66850. 801b180: 4413 add r3, r2
  66851. 801b182: 837b strh r3, [r7, #26]
  66852. len = (u16_t)(len - buf_copy_len);
  66853. 801b184: 88fa ldrh r2, [r7, #6]
  66854. 801b186: 8b3b ldrh r3, [r7, #24]
  66855. 801b188: 1ad3 subs r3, r2, r3
  66856. 801b18a: 80fb strh r3, [r7, #6]
  66857. offset = 0;
  66858. 801b18c: 2300 movs r3, #0
  66859. 801b18e: 80bb strh r3, [r7, #4]
  66860. for (p = buf; len != 0 && p != NULL; p = p->next) {
  66861. 801b190: 69fb ldr r3, [r7, #28]
  66862. 801b192: 681b ldr r3, [r3, #0]
  66863. 801b194: 61fb str r3, [r7, #28]
  66864. 801b196: 88fb ldrh r3, [r7, #6]
  66865. 801b198: 2b00 cmp r3, #0
  66866. 801b19a: d002 beq.n 801b1a2 <pbuf_copy_partial+0xca>
  66867. 801b19c: 69fb ldr r3, [r7, #28]
  66868. 801b19e: 2b00 cmp r3, #0
  66869. 801b1a0: d1c4 bne.n 801b12c <pbuf_copy_partial+0x54>
  66870. }
  66871. }
  66872. return copied_total;
  66873. 801b1a2: 8afb ldrh r3, [r7, #22]
  66874. }
  66875. 801b1a4: 4618 mov r0, r3
  66876. 801b1a6: 3720 adds r7, #32
  66877. 801b1a8: 46bd mov sp, r7
  66878. 801b1aa: bd80 pop {r7, pc}
  66879. 801b1ac: 0802e93c .word 0x0802e93c
  66880. 801b1b0: 0802ec84 .word 0x0802ec84
  66881. 801b1b4: 0802e99c .word 0x0802e99c
  66882. 801b1b8: 0802eca4 .word 0x0802eca4
  66883. 0801b1bc <pbuf_clone>:
  66884. *
  66885. * @return a new pbuf or NULL if allocation fails
  66886. */
  66887. struct pbuf *
  66888. pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p)
  66889. {
  66890. 801b1bc: b580 push {r7, lr}
  66891. 801b1be: b084 sub sp, #16
  66892. 801b1c0: af00 add r7, sp, #0
  66893. 801b1c2: 4603 mov r3, r0
  66894. 801b1c4: 603a str r2, [r7, #0]
  66895. 801b1c6: 71fb strb r3, [r7, #7]
  66896. 801b1c8: 460b mov r3, r1
  66897. 801b1ca: 80bb strh r3, [r7, #4]
  66898. struct pbuf *q;
  66899. err_t err;
  66900. q = pbuf_alloc(layer, p->tot_len, type);
  66901. 801b1cc: 683b ldr r3, [r7, #0]
  66902. 801b1ce: 8919 ldrh r1, [r3, #8]
  66903. 801b1d0: 88ba ldrh r2, [r7, #4]
  66904. 801b1d2: 79fb ldrb r3, [r7, #7]
  66905. 801b1d4: 4618 mov r0, r3
  66906. 801b1d6: f7ff fa63 bl 801a6a0 <pbuf_alloc>
  66907. 801b1da: 60f8 str r0, [r7, #12]
  66908. if (q == NULL) {
  66909. 801b1dc: 68fb ldr r3, [r7, #12]
  66910. 801b1de: 2b00 cmp r3, #0
  66911. 801b1e0: d101 bne.n 801b1e6 <pbuf_clone+0x2a>
  66912. return NULL;
  66913. 801b1e2: 2300 movs r3, #0
  66914. 801b1e4: e011 b.n 801b20a <pbuf_clone+0x4e>
  66915. }
  66916. err = pbuf_copy(q, p);
  66917. 801b1e6: 6839 ldr r1, [r7, #0]
  66918. 801b1e8: 68f8 ldr r0, [r7, #12]
  66919. 801b1ea: f7ff fea3 bl 801af34 <pbuf_copy>
  66920. 801b1ee: 4603 mov r3, r0
  66921. 801b1f0: 72fb strb r3, [r7, #11]
  66922. LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */
  66923. LWIP_ASSERT("pbuf_copy failed", err == ERR_OK);
  66924. 801b1f2: f997 300b ldrsb.w r3, [r7, #11]
  66925. 801b1f6: 2b00 cmp r3, #0
  66926. 801b1f8: d006 beq.n 801b208 <pbuf_clone+0x4c>
  66927. 801b1fa: 4b06 ldr r3, [pc, #24] @ (801b214 <pbuf_clone+0x58>)
  66928. 801b1fc: f240 5224 movw r2, #1316 @ 0x524
  66929. 801b200: 4905 ldr r1, [pc, #20] @ (801b218 <pbuf_clone+0x5c>)
  66930. 801b202: 4806 ldr r0, [pc, #24] @ (801b21c <pbuf_clone+0x60>)
  66931. 801b204: f00e ffda bl 802a1bc <iprintf>
  66932. return q;
  66933. 801b208: 68fb ldr r3, [r7, #12]
  66934. }
  66935. 801b20a: 4618 mov r0, r3
  66936. 801b20c: 3710 adds r7, #16
  66937. 801b20e: 46bd mov sp, r7
  66938. 801b210: bd80 pop {r7, pc}
  66939. 801b212: bf00 nop
  66940. 801b214: 0802e93c .word 0x0802e93c
  66941. 801b218: 0802edb0 .word 0x0802edb0
  66942. 801b21c: 0802e99c .word 0x0802e99c
  66943. 0801b220 <tcp_init>:
  66944. /**
  66945. * Initialize this module.
  66946. */
  66947. void
  66948. tcp_init(void)
  66949. {
  66950. 801b220: b580 push {r7, lr}
  66951. 801b222: af00 add r7, sp, #0
  66952. #ifdef LWIP_RAND
  66953. tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  66954. 801b224: f00d fca0 bl 8028b68 <rand>
  66955. 801b228: 4603 mov r3, r0
  66956. 801b22a: b29b uxth r3, r3
  66957. 801b22c: f3c3 030d ubfx r3, r3, #0, #14
  66958. 801b230: b29b uxth r3, r3
  66959. 801b232: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  66960. 801b236: b29a uxth r2, r3
  66961. 801b238: 4b01 ldr r3, [pc, #4] @ (801b240 <tcp_init+0x20>)
  66962. 801b23a: 801a strh r2, [r3, #0]
  66963. #endif /* LWIP_RAND */
  66964. }
  66965. 801b23c: bf00 nop
  66966. 801b23e: bd80 pop {r7, pc}
  66967. 801b240: 2400004c .word 0x2400004c
  66968. 0801b244 <tcp_free>:
  66969. /** Free a tcp pcb */
  66970. void
  66971. tcp_free(struct tcp_pcb *pcb)
  66972. {
  66973. 801b244: b580 push {r7, lr}
  66974. 801b246: b082 sub sp, #8
  66975. 801b248: af00 add r7, sp, #0
  66976. 801b24a: 6078 str r0, [r7, #4]
  66977. LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN);
  66978. 801b24c: 687b ldr r3, [r7, #4]
  66979. 801b24e: 7d1b ldrb r3, [r3, #20]
  66980. 801b250: 2b01 cmp r3, #1
  66981. 801b252: d105 bne.n 801b260 <tcp_free+0x1c>
  66982. 801b254: 4b06 ldr r3, [pc, #24] @ (801b270 <tcp_free+0x2c>)
  66983. 801b256: 22d4 movs r2, #212 @ 0xd4
  66984. 801b258: 4906 ldr r1, [pc, #24] @ (801b274 <tcp_free+0x30>)
  66985. 801b25a: 4807 ldr r0, [pc, #28] @ (801b278 <tcp_free+0x34>)
  66986. 801b25c: f00e ffae bl 802a1bc <iprintf>
  66987. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  66988. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  66989. #endif
  66990. memp_free(MEMP_TCP_PCB, pcb);
  66991. 801b260: 6879 ldr r1, [r7, #4]
  66992. 801b262: 2001 movs r0, #1
  66993. 801b264: f7fe fe44 bl 8019ef0 <memp_free>
  66994. }
  66995. 801b268: bf00 nop
  66996. 801b26a: 3708 adds r7, #8
  66997. 801b26c: 46bd mov sp, r7
  66998. 801b26e: bd80 pop {r7, pc}
  66999. 801b270: 0802ee3c .word 0x0802ee3c
  67000. 801b274: 0802ee6c .word 0x0802ee6c
  67001. 801b278: 0802ee80 .word 0x0802ee80
  67002. 0801b27c <tcp_free_listen>:
  67003. /** Free a tcp listen pcb */
  67004. static void
  67005. tcp_free_listen(struct tcp_pcb *pcb)
  67006. {
  67007. 801b27c: b580 push {r7, lr}
  67008. 801b27e: b082 sub sp, #8
  67009. 801b280: af00 add r7, sp, #0
  67010. 801b282: 6078 str r0, [r7, #4]
  67011. LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN);
  67012. 801b284: 687b ldr r3, [r7, #4]
  67013. 801b286: 7d1b ldrb r3, [r3, #20]
  67014. 801b288: 2b01 cmp r3, #1
  67015. 801b28a: d105 bne.n 801b298 <tcp_free_listen+0x1c>
  67016. 801b28c: 4b06 ldr r3, [pc, #24] @ (801b2a8 <tcp_free_listen+0x2c>)
  67017. 801b28e: 22df movs r2, #223 @ 0xdf
  67018. 801b290: 4906 ldr r1, [pc, #24] @ (801b2ac <tcp_free_listen+0x30>)
  67019. 801b292: 4807 ldr r0, [pc, #28] @ (801b2b0 <tcp_free_listen+0x34>)
  67020. 801b294: f00e ff92 bl 802a1bc <iprintf>
  67021. #if LWIP_TCP_PCB_NUM_EXT_ARGS
  67022. tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
  67023. #endif
  67024. memp_free(MEMP_TCP_PCB_LISTEN, pcb);
  67025. 801b298: 6879 ldr r1, [r7, #4]
  67026. 801b29a: 2002 movs r0, #2
  67027. 801b29c: f7fe fe28 bl 8019ef0 <memp_free>
  67028. }
  67029. 801b2a0: bf00 nop
  67030. 801b2a2: 3708 adds r7, #8
  67031. 801b2a4: 46bd mov sp, r7
  67032. 801b2a6: bd80 pop {r7, pc}
  67033. 801b2a8: 0802ee3c .word 0x0802ee3c
  67034. 801b2ac: 0802eea8 .word 0x0802eea8
  67035. 801b2b0: 0802ee80 .word 0x0802ee80
  67036. 0801b2b4 <tcp_tmr>:
  67037. /**
  67038. * Called periodically to dispatch TCP timers.
  67039. */
  67040. void
  67041. tcp_tmr(void)
  67042. {
  67043. 801b2b4: b580 push {r7, lr}
  67044. 801b2b6: af00 add r7, sp, #0
  67045. /* Call tcp_fasttmr() every 250 ms */
  67046. tcp_fasttmr();
  67047. 801b2b8: f001 f86a bl 801c390 <tcp_fasttmr>
  67048. if (++tcp_timer & 1) {
  67049. 801b2bc: 4b07 ldr r3, [pc, #28] @ (801b2dc <tcp_tmr+0x28>)
  67050. 801b2be: 781b ldrb r3, [r3, #0]
  67051. 801b2c0: 3301 adds r3, #1
  67052. 801b2c2: b2da uxtb r2, r3
  67053. 801b2c4: 4b05 ldr r3, [pc, #20] @ (801b2dc <tcp_tmr+0x28>)
  67054. 801b2c6: 701a strb r2, [r3, #0]
  67055. 801b2c8: 4b04 ldr r3, [pc, #16] @ (801b2dc <tcp_tmr+0x28>)
  67056. 801b2ca: 781b ldrb r3, [r3, #0]
  67057. 801b2cc: f003 0301 and.w r3, r3, #1
  67058. 801b2d0: 2b00 cmp r3, #0
  67059. 801b2d2: d001 beq.n 801b2d8 <tcp_tmr+0x24>
  67060. /* Call tcp_slowtmr() every 500 ms, i.e., every other timer
  67061. tcp_tmr() is called. */
  67062. tcp_slowtmr();
  67063. 801b2d4: f000 fd1a bl 801bd0c <tcp_slowtmr>
  67064. }
  67065. }
  67066. 801b2d8: bf00 nop
  67067. 801b2da: bd80 pop {r7, pc}
  67068. 801b2dc: 2402af6d .word 0x2402af6d
  67069. 0801b2e0 <tcp_remove_listener>:
  67070. /** Called when a listen pcb is closed. Iterates one pcb list and removes the
  67071. * closed listener pcb from pcb->listener if matching.
  67072. */
  67073. static void
  67074. tcp_remove_listener(struct tcp_pcb *list, struct tcp_pcb_listen *lpcb)
  67075. {
  67076. 801b2e0: b580 push {r7, lr}
  67077. 801b2e2: b084 sub sp, #16
  67078. 801b2e4: af00 add r7, sp, #0
  67079. 801b2e6: 6078 str r0, [r7, #4]
  67080. 801b2e8: 6039 str r1, [r7, #0]
  67081. struct tcp_pcb *pcb;
  67082. LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL);
  67083. 801b2ea: 683b ldr r3, [r7, #0]
  67084. 801b2ec: 2b00 cmp r3, #0
  67085. 801b2ee: d105 bne.n 801b2fc <tcp_remove_listener+0x1c>
  67086. 801b2f0: 4b0d ldr r3, [pc, #52] @ (801b328 <tcp_remove_listener+0x48>)
  67087. 801b2f2: 22ff movs r2, #255 @ 0xff
  67088. 801b2f4: 490d ldr r1, [pc, #52] @ (801b32c <tcp_remove_listener+0x4c>)
  67089. 801b2f6: 480e ldr r0, [pc, #56] @ (801b330 <tcp_remove_listener+0x50>)
  67090. 801b2f8: f00e ff60 bl 802a1bc <iprintf>
  67091. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  67092. 801b2fc: 687b ldr r3, [r7, #4]
  67093. 801b2fe: 60fb str r3, [r7, #12]
  67094. 801b300: e00a b.n 801b318 <tcp_remove_listener+0x38>
  67095. if (pcb->listener == lpcb) {
  67096. 801b302: 68fb ldr r3, [r7, #12]
  67097. 801b304: 6fdb ldr r3, [r3, #124] @ 0x7c
  67098. 801b306: 683a ldr r2, [r7, #0]
  67099. 801b308: 429a cmp r2, r3
  67100. 801b30a: d102 bne.n 801b312 <tcp_remove_listener+0x32>
  67101. pcb->listener = NULL;
  67102. 801b30c: 68fb ldr r3, [r7, #12]
  67103. 801b30e: 2200 movs r2, #0
  67104. 801b310: 67da str r2, [r3, #124] @ 0x7c
  67105. for (pcb = list; pcb != NULL; pcb = pcb->next) {
  67106. 801b312: 68fb ldr r3, [r7, #12]
  67107. 801b314: 68db ldr r3, [r3, #12]
  67108. 801b316: 60fb str r3, [r7, #12]
  67109. 801b318: 68fb ldr r3, [r7, #12]
  67110. 801b31a: 2b00 cmp r3, #0
  67111. 801b31c: d1f1 bne.n 801b302 <tcp_remove_listener+0x22>
  67112. }
  67113. }
  67114. }
  67115. 801b31e: bf00 nop
  67116. 801b320: bf00 nop
  67117. 801b322: 3710 adds r7, #16
  67118. 801b324: 46bd mov sp, r7
  67119. 801b326: bd80 pop {r7, pc}
  67120. 801b328: 0802ee3c .word 0x0802ee3c
  67121. 801b32c: 0802eec4 .word 0x0802eec4
  67122. 801b330: 0802ee80 .word 0x0802ee80
  67123. 0801b334 <tcp_listen_closed>:
  67124. /** Called when a listen pcb is closed. Iterates all pcb lists and removes the
  67125. * closed listener pcb from pcb->listener if matching.
  67126. */
  67127. static void
  67128. tcp_listen_closed(struct tcp_pcb *pcb)
  67129. {
  67130. 801b334: b580 push {r7, lr}
  67131. 801b336: b084 sub sp, #16
  67132. 801b338: af00 add r7, sp, #0
  67133. 801b33a: 6078 str r0, [r7, #4]
  67134. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  67135. size_t i;
  67136. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  67137. 801b33c: 687b ldr r3, [r7, #4]
  67138. 801b33e: 2b00 cmp r3, #0
  67139. 801b340: d106 bne.n 801b350 <tcp_listen_closed+0x1c>
  67140. 801b342: 4b14 ldr r3, [pc, #80] @ (801b394 <tcp_listen_closed+0x60>)
  67141. 801b344: f240 1211 movw r2, #273 @ 0x111
  67142. 801b348: 4913 ldr r1, [pc, #76] @ (801b398 <tcp_listen_closed+0x64>)
  67143. 801b34a: 4814 ldr r0, [pc, #80] @ (801b39c <tcp_listen_closed+0x68>)
  67144. 801b34c: f00e ff36 bl 802a1bc <iprintf>
  67145. LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN);
  67146. 801b350: 687b ldr r3, [r7, #4]
  67147. 801b352: 7d1b ldrb r3, [r3, #20]
  67148. 801b354: 2b01 cmp r3, #1
  67149. 801b356: d006 beq.n 801b366 <tcp_listen_closed+0x32>
  67150. 801b358: 4b0e ldr r3, [pc, #56] @ (801b394 <tcp_listen_closed+0x60>)
  67151. 801b35a: f44f 7289 mov.w r2, #274 @ 0x112
  67152. 801b35e: 4910 ldr r1, [pc, #64] @ (801b3a0 <tcp_listen_closed+0x6c>)
  67153. 801b360: 480e ldr r0, [pc, #56] @ (801b39c <tcp_listen_closed+0x68>)
  67154. 801b362: f00e ff2b bl 802a1bc <iprintf>
  67155. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  67156. 801b366: 2301 movs r3, #1
  67157. 801b368: 60fb str r3, [r7, #12]
  67158. 801b36a: e00b b.n 801b384 <tcp_listen_closed+0x50>
  67159. tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb);
  67160. 801b36c: 4a0d ldr r2, [pc, #52] @ (801b3a4 <tcp_listen_closed+0x70>)
  67161. 801b36e: 68fb ldr r3, [r7, #12]
  67162. 801b370: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  67163. 801b374: 681b ldr r3, [r3, #0]
  67164. 801b376: 6879 ldr r1, [r7, #4]
  67165. 801b378: 4618 mov r0, r3
  67166. 801b37a: f7ff ffb1 bl 801b2e0 <tcp_remove_listener>
  67167. for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) {
  67168. 801b37e: 68fb ldr r3, [r7, #12]
  67169. 801b380: 3301 adds r3, #1
  67170. 801b382: 60fb str r3, [r7, #12]
  67171. 801b384: 68fb ldr r3, [r7, #12]
  67172. 801b386: 2b03 cmp r3, #3
  67173. 801b388: d9f0 bls.n 801b36c <tcp_listen_closed+0x38>
  67174. }
  67175. #endif
  67176. LWIP_UNUSED_ARG(pcb);
  67177. }
  67178. 801b38a: bf00 nop
  67179. 801b38c: bf00 nop
  67180. 801b38e: 3710 adds r7, #16
  67181. 801b390: 46bd mov sp, r7
  67182. 801b392: bd80 pop {r7, pc}
  67183. 801b394: 0802ee3c .word 0x0802ee3c
  67184. 801b398: 0802eeec .word 0x0802eeec
  67185. 801b39c: 0802ee80 .word 0x0802ee80
  67186. 801b3a0: 0802eef8 .word 0x0802eef8
  67187. 801b3a4: 080314bc .word 0x080314bc
  67188. 0801b3a8 <tcp_close_shutdown>:
  67189. * @return ERR_OK if connection has been closed
  67190. * another err_t if closing failed and pcb is not freed
  67191. */
  67192. static err_t
  67193. tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data)
  67194. {
  67195. 801b3a8: b5b0 push {r4, r5, r7, lr}
  67196. 801b3aa: b088 sub sp, #32
  67197. 801b3ac: af04 add r7, sp, #16
  67198. 801b3ae: 6078 str r0, [r7, #4]
  67199. 801b3b0: 460b mov r3, r1
  67200. 801b3b2: 70fb strb r3, [r7, #3]
  67201. LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL);
  67202. 801b3b4: 687b ldr r3, [r7, #4]
  67203. 801b3b6: 2b00 cmp r3, #0
  67204. 801b3b8: d106 bne.n 801b3c8 <tcp_close_shutdown+0x20>
  67205. 801b3ba: 4b63 ldr r3, [pc, #396] @ (801b548 <tcp_close_shutdown+0x1a0>)
  67206. 801b3bc: f44f 72af mov.w r2, #350 @ 0x15e
  67207. 801b3c0: 4962 ldr r1, [pc, #392] @ (801b54c <tcp_close_shutdown+0x1a4>)
  67208. 801b3c2: 4863 ldr r0, [pc, #396] @ (801b550 <tcp_close_shutdown+0x1a8>)
  67209. 801b3c4: f00e fefa bl 802a1bc <iprintf>
  67210. if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) {
  67211. 801b3c8: 78fb ldrb r3, [r7, #3]
  67212. 801b3ca: 2b00 cmp r3, #0
  67213. 801b3cc: d067 beq.n 801b49e <tcp_close_shutdown+0xf6>
  67214. 801b3ce: 687b ldr r3, [r7, #4]
  67215. 801b3d0: 7d1b ldrb r3, [r3, #20]
  67216. 801b3d2: 2b04 cmp r3, #4
  67217. 801b3d4: d003 beq.n 801b3de <tcp_close_shutdown+0x36>
  67218. 801b3d6: 687b ldr r3, [r7, #4]
  67219. 801b3d8: 7d1b ldrb r3, [r3, #20]
  67220. 801b3da: 2b07 cmp r3, #7
  67221. 801b3dc: d15f bne.n 801b49e <tcp_close_shutdown+0xf6>
  67222. if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) {
  67223. 801b3de: 687b ldr r3, [r7, #4]
  67224. 801b3e0: 6f9b ldr r3, [r3, #120] @ 0x78
  67225. 801b3e2: 2b00 cmp r3, #0
  67226. 801b3e4: d105 bne.n 801b3f2 <tcp_close_shutdown+0x4a>
  67227. 801b3e6: 687b ldr r3, [r7, #4]
  67228. 801b3e8: 8d1b ldrh r3, [r3, #40] @ 0x28
  67229. 801b3ea: f241 62d0 movw r2, #5840 @ 0x16d0
  67230. 801b3ee: 4293 cmp r3, r2
  67231. 801b3f0: d055 beq.n 801b49e <tcp_close_shutdown+0xf6>
  67232. /* Not all data received by application, send RST to tell the remote
  67233. side about this. */
  67234. LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED);
  67235. 801b3f2: 687b ldr r3, [r7, #4]
  67236. 801b3f4: 8b5b ldrh r3, [r3, #26]
  67237. 801b3f6: f003 0310 and.w r3, r3, #16
  67238. 801b3fa: 2b00 cmp r3, #0
  67239. 801b3fc: d106 bne.n 801b40c <tcp_close_shutdown+0x64>
  67240. 801b3fe: 4b52 ldr r3, [pc, #328] @ (801b548 <tcp_close_shutdown+0x1a0>)
  67241. 801b400: f44f 72b2 mov.w r2, #356 @ 0x164
  67242. 801b404: 4953 ldr r1, [pc, #332] @ (801b554 <tcp_close_shutdown+0x1ac>)
  67243. 801b406: 4852 ldr r0, [pc, #328] @ (801b550 <tcp_close_shutdown+0x1a8>)
  67244. 801b408: f00e fed8 bl 802a1bc <iprintf>
  67245. /* don't call tcp_abort here: we must not deallocate the pcb since
  67246. that might not be expected when calling tcp_close */
  67247. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  67248. 801b40c: 687b ldr r3, [r7, #4]
  67249. 801b40e: 6d18 ldr r0, [r3, #80] @ 0x50
  67250. 801b410: 687b ldr r3, [r7, #4]
  67251. 801b412: 6a5c ldr r4, [r3, #36] @ 0x24
  67252. 801b414: 687d ldr r5, [r7, #4]
  67253. 801b416: 687b ldr r3, [r7, #4]
  67254. 801b418: 3304 adds r3, #4
  67255. 801b41a: 687a ldr r2, [r7, #4]
  67256. 801b41c: 8ad2 ldrh r2, [r2, #22]
  67257. 801b41e: 6879 ldr r1, [r7, #4]
  67258. 801b420: 8b09 ldrh r1, [r1, #24]
  67259. 801b422: 9102 str r1, [sp, #8]
  67260. 801b424: 9201 str r2, [sp, #4]
  67261. 801b426: 9300 str r3, [sp, #0]
  67262. 801b428: 462b mov r3, r5
  67263. 801b42a: 4622 mov r2, r4
  67264. 801b42c: 4601 mov r1, r0
  67265. 801b42e: 6878 ldr r0, [r7, #4]
  67266. 801b430: f005 fdfa bl 8021028 <tcp_rst>
  67267. pcb->local_port, pcb->remote_port);
  67268. tcp_pcb_purge(pcb);
  67269. 801b434: 6878 ldr r0, [r7, #4]
  67270. 801b436: f001 fb67 bl 801cb08 <tcp_pcb_purge>
  67271. TCP_RMV_ACTIVE(pcb);
  67272. 801b43a: 4b47 ldr r3, [pc, #284] @ (801b558 <tcp_close_shutdown+0x1b0>)
  67273. 801b43c: 681b ldr r3, [r3, #0]
  67274. 801b43e: 687a ldr r2, [r7, #4]
  67275. 801b440: 429a cmp r2, r3
  67276. 801b442: d105 bne.n 801b450 <tcp_close_shutdown+0xa8>
  67277. 801b444: 4b44 ldr r3, [pc, #272] @ (801b558 <tcp_close_shutdown+0x1b0>)
  67278. 801b446: 681b ldr r3, [r3, #0]
  67279. 801b448: 68db ldr r3, [r3, #12]
  67280. 801b44a: 4a43 ldr r2, [pc, #268] @ (801b558 <tcp_close_shutdown+0x1b0>)
  67281. 801b44c: 6013 str r3, [r2, #0]
  67282. 801b44e: e013 b.n 801b478 <tcp_close_shutdown+0xd0>
  67283. 801b450: 4b41 ldr r3, [pc, #260] @ (801b558 <tcp_close_shutdown+0x1b0>)
  67284. 801b452: 681b ldr r3, [r3, #0]
  67285. 801b454: 60fb str r3, [r7, #12]
  67286. 801b456: e00c b.n 801b472 <tcp_close_shutdown+0xca>
  67287. 801b458: 68fb ldr r3, [r7, #12]
  67288. 801b45a: 68db ldr r3, [r3, #12]
  67289. 801b45c: 687a ldr r2, [r7, #4]
  67290. 801b45e: 429a cmp r2, r3
  67291. 801b460: d104 bne.n 801b46c <tcp_close_shutdown+0xc4>
  67292. 801b462: 687b ldr r3, [r7, #4]
  67293. 801b464: 68da ldr r2, [r3, #12]
  67294. 801b466: 68fb ldr r3, [r7, #12]
  67295. 801b468: 60da str r2, [r3, #12]
  67296. 801b46a: e005 b.n 801b478 <tcp_close_shutdown+0xd0>
  67297. 801b46c: 68fb ldr r3, [r7, #12]
  67298. 801b46e: 68db ldr r3, [r3, #12]
  67299. 801b470: 60fb str r3, [r7, #12]
  67300. 801b472: 68fb ldr r3, [r7, #12]
  67301. 801b474: 2b00 cmp r3, #0
  67302. 801b476: d1ef bne.n 801b458 <tcp_close_shutdown+0xb0>
  67303. 801b478: 687b ldr r3, [r7, #4]
  67304. 801b47a: 2200 movs r2, #0
  67305. 801b47c: 60da str r2, [r3, #12]
  67306. 801b47e: 4b37 ldr r3, [pc, #220] @ (801b55c <tcp_close_shutdown+0x1b4>)
  67307. 801b480: 2201 movs r2, #1
  67308. 801b482: 701a strb r2, [r3, #0]
  67309. /* Deallocate the pcb since we already sent a RST for it */
  67310. if (tcp_input_pcb == pcb) {
  67311. 801b484: 4b36 ldr r3, [pc, #216] @ (801b560 <tcp_close_shutdown+0x1b8>)
  67312. 801b486: 681b ldr r3, [r3, #0]
  67313. 801b488: 687a ldr r2, [r7, #4]
  67314. 801b48a: 429a cmp r2, r3
  67315. 801b48c: d102 bne.n 801b494 <tcp_close_shutdown+0xec>
  67316. /* prevent using a deallocated pcb: free it from tcp_input later */
  67317. tcp_trigger_input_pcb_close();
  67318. 801b48e: f003 ffff bl 801f490 <tcp_trigger_input_pcb_close>
  67319. 801b492: e002 b.n 801b49a <tcp_close_shutdown+0xf2>
  67320. } else {
  67321. tcp_free(pcb);
  67322. 801b494: 6878 ldr r0, [r7, #4]
  67323. 801b496: f7ff fed5 bl 801b244 <tcp_free>
  67324. }
  67325. return ERR_OK;
  67326. 801b49a: 2300 movs r3, #0
  67327. 801b49c: e050 b.n 801b540 <tcp_close_shutdown+0x198>
  67328. }
  67329. }
  67330. /* - states which free the pcb are handled here,
  67331. - states which send FIN and change state are handled in tcp_close_shutdown_fin() */
  67332. switch (pcb->state) {
  67333. 801b49e: 687b ldr r3, [r7, #4]
  67334. 801b4a0: 7d1b ldrb r3, [r3, #20]
  67335. 801b4a2: 2b02 cmp r3, #2
  67336. 801b4a4: d03b beq.n 801b51e <tcp_close_shutdown+0x176>
  67337. 801b4a6: 2b02 cmp r3, #2
  67338. 801b4a8: dc44 bgt.n 801b534 <tcp_close_shutdown+0x18c>
  67339. 801b4aa: 2b00 cmp r3, #0
  67340. 801b4ac: d002 beq.n 801b4b4 <tcp_close_shutdown+0x10c>
  67341. 801b4ae: 2b01 cmp r3, #1
  67342. 801b4b0: d02a beq.n 801b508 <tcp_close_shutdown+0x160>
  67343. 801b4b2: e03f b.n 801b534 <tcp_close_shutdown+0x18c>
  67344. * and the user needs some way to free it should the need arise.
  67345. * Calling tcp_close() with a pcb that has already been closed, (i.e. twice)
  67346. * or for a pcb that has been used and then entered the CLOSED state
  67347. * is erroneous, but this should never happen as the pcb has in those cases
  67348. * been freed, and so any remaining handles are bogus. */
  67349. if (pcb->local_port != 0) {
  67350. 801b4b4: 687b ldr r3, [r7, #4]
  67351. 801b4b6: 8adb ldrh r3, [r3, #22]
  67352. 801b4b8: 2b00 cmp r3, #0
  67353. 801b4ba: d021 beq.n 801b500 <tcp_close_shutdown+0x158>
  67354. TCP_RMV(&tcp_bound_pcbs, pcb);
  67355. 801b4bc: 4b29 ldr r3, [pc, #164] @ (801b564 <tcp_close_shutdown+0x1bc>)
  67356. 801b4be: 681b ldr r3, [r3, #0]
  67357. 801b4c0: 687a ldr r2, [r7, #4]
  67358. 801b4c2: 429a cmp r2, r3
  67359. 801b4c4: d105 bne.n 801b4d2 <tcp_close_shutdown+0x12a>
  67360. 801b4c6: 4b27 ldr r3, [pc, #156] @ (801b564 <tcp_close_shutdown+0x1bc>)
  67361. 801b4c8: 681b ldr r3, [r3, #0]
  67362. 801b4ca: 68db ldr r3, [r3, #12]
  67363. 801b4cc: 4a25 ldr r2, [pc, #148] @ (801b564 <tcp_close_shutdown+0x1bc>)
  67364. 801b4ce: 6013 str r3, [r2, #0]
  67365. 801b4d0: e013 b.n 801b4fa <tcp_close_shutdown+0x152>
  67366. 801b4d2: 4b24 ldr r3, [pc, #144] @ (801b564 <tcp_close_shutdown+0x1bc>)
  67367. 801b4d4: 681b ldr r3, [r3, #0]
  67368. 801b4d6: 60bb str r3, [r7, #8]
  67369. 801b4d8: e00c b.n 801b4f4 <tcp_close_shutdown+0x14c>
  67370. 801b4da: 68bb ldr r3, [r7, #8]
  67371. 801b4dc: 68db ldr r3, [r3, #12]
  67372. 801b4de: 687a ldr r2, [r7, #4]
  67373. 801b4e0: 429a cmp r2, r3
  67374. 801b4e2: d104 bne.n 801b4ee <tcp_close_shutdown+0x146>
  67375. 801b4e4: 687b ldr r3, [r7, #4]
  67376. 801b4e6: 68da ldr r2, [r3, #12]
  67377. 801b4e8: 68bb ldr r3, [r7, #8]
  67378. 801b4ea: 60da str r2, [r3, #12]
  67379. 801b4ec: e005 b.n 801b4fa <tcp_close_shutdown+0x152>
  67380. 801b4ee: 68bb ldr r3, [r7, #8]
  67381. 801b4f0: 68db ldr r3, [r3, #12]
  67382. 801b4f2: 60bb str r3, [r7, #8]
  67383. 801b4f4: 68bb ldr r3, [r7, #8]
  67384. 801b4f6: 2b00 cmp r3, #0
  67385. 801b4f8: d1ef bne.n 801b4da <tcp_close_shutdown+0x132>
  67386. 801b4fa: 687b ldr r3, [r7, #4]
  67387. 801b4fc: 2200 movs r2, #0
  67388. 801b4fe: 60da str r2, [r3, #12]
  67389. }
  67390. tcp_free(pcb);
  67391. 801b500: 6878 ldr r0, [r7, #4]
  67392. 801b502: f7ff fe9f bl 801b244 <tcp_free>
  67393. break;
  67394. 801b506: e01a b.n 801b53e <tcp_close_shutdown+0x196>
  67395. case LISTEN:
  67396. tcp_listen_closed(pcb);
  67397. 801b508: 6878 ldr r0, [r7, #4]
  67398. 801b50a: f7ff ff13 bl 801b334 <tcp_listen_closed>
  67399. tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb);
  67400. 801b50e: 6879 ldr r1, [r7, #4]
  67401. 801b510: 4815 ldr r0, [pc, #84] @ (801b568 <tcp_close_shutdown+0x1c0>)
  67402. 801b512: f001 fb49 bl 801cba8 <tcp_pcb_remove>
  67403. tcp_free_listen(pcb);
  67404. 801b516: 6878 ldr r0, [r7, #4]
  67405. 801b518: f7ff feb0 bl 801b27c <tcp_free_listen>
  67406. break;
  67407. 801b51c: e00f b.n 801b53e <tcp_close_shutdown+0x196>
  67408. case SYN_SENT:
  67409. TCP_PCB_REMOVE_ACTIVE(pcb);
  67410. 801b51e: 6879 ldr r1, [r7, #4]
  67411. 801b520: 480d ldr r0, [pc, #52] @ (801b558 <tcp_close_shutdown+0x1b0>)
  67412. 801b522: f001 fb41 bl 801cba8 <tcp_pcb_remove>
  67413. 801b526: 4b0d ldr r3, [pc, #52] @ (801b55c <tcp_close_shutdown+0x1b4>)
  67414. 801b528: 2201 movs r2, #1
  67415. 801b52a: 701a strb r2, [r3, #0]
  67416. tcp_free(pcb);
  67417. 801b52c: 6878 ldr r0, [r7, #4]
  67418. 801b52e: f7ff fe89 bl 801b244 <tcp_free>
  67419. MIB2_STATS_INC(mib2.tcpattemptfails);
  67420. break;
  67421. 801b532: e004 b.n 801b53e <tcp_close_shutdown+0x196>
  67422. default:
  67423. return tcp_close_shutdown_fin(pcb);
  67424. 801b534: 6878 ldr r0, [r7, #4]
  67425. 801b536: f000 f819 bl 801b56c <tcp_close_shutdown_fin>
  67426. 801b53a: 4603 mov r3, r0
  67427. 801b53c: e000 b.n 801b540 <tcp_close_shutdown+0x198>
  67428. }
  67429. return ERR_OK;
  67430. 801b53e: 2300 movs r3, #0
  67431. }
  67432. 801b540: 4618 mov r0, r3
  67433. 801b542: 3710 adds r7, #16
  67434. 801b544: 46bd mov sp, r7
  67435. 801b546: bdb0 pop {r4, r5, r7, pc}
  67436. 801b548: 0802ee3c .word 0x0802ee3c
  67437. 801b54c: 0802ef10 .word 0x0802ef10
  67438. 801b550: 0802ee80 .word 0x0802ee80
  67439. 801b554: 0802ef30 .word 0x0802ef30
  67440. 801b558: 2402af64 .word 0x2402af64
  67441. 801b55c: 2402af6c .word 0x2402af6c
  67442. 801b560: 2402afa8 .word 0x2402afa8
  67443. 801b564: 2402af5c .word 0x2402af5c
  67444. 801b568: 2402af60 .word 0x2402af60
  67445. 0801b56c <tcp_close_shutdown_fin>:
  67446. static err_t
  67447. tcp_close_shutdown_fin(struct tcp_pcb *pcb)
  67448. {
  67449. 801b56c: b580 push {r7, lr}
  67450. 801b56e: b084 sub sp, #16
  67451. 801b570: af00 add r7, sp, #0
  67452. 801b572: 6078 str r0, [r7, #4]
  67453. err_t err;
  67454. LWIP_ASSERT("pcb != NULL", pcb != NULL);
  67455. 801b574: 687b ldr r3, [r7, #4]
  67456. 801b576: 2b00 cmp r3, #0
  67457. 801b578: d106 bne.n 801b588 <tcp_close_shutdown_fin+0x1c>
  67458. 801b57a: 4b2e ldr r3, [pc, #184] @ (801b634 <tcp_close_shutdown_fin+0xc8>)
  67459. 801b57c: f44f 72ce mov.w r2, #412 @ 0x19c
  67460. 801b580: 492d ldr r1, [pc, #180] @ (801b638 <tcp_close_shutdown_fin+0xcc>)
  67461. 801b582: 482e ldr r0, [pc, #184] @ (801b63c <tcp_close_shutdown_fin+0xd0>)
  67462. 801b584: f00e fe1a bl 802a1bc <iprintf>
  67463. switch (pcb->state) {
  67464. 801b588: 687b ldr r3, [r7, #4]
  67465. 801b58a: 7d1b ldrb r3, [r3, #20]
  67466. 801b58c: 2b07 cmp r3, #7
  67467. 801b58e: d020 beq.n 801b5d2 <tcp_close_shutdown_fin+0x66>
  67468. 801b590: 2b07 cmp r3, #7
  67469. 801b592: dc2b bgt.n 801b5ec <tcp_close_shutdown_fin+0x80>
  67470. 801b594: 2b03 cmp r3, #3
  67471. 801b596: d002 beq.n 801b59e <tcp_close_shutdown_fin+0x32>
  67472. 801b598: 2b04 cmp r3, #4
  67473. 801b59a: d00d beq.n 801b5b8 <tcp_close_shutdown_fin+0x4c>
  67474. 801b59c: e026 b.n 801b5ec <tcp_close_shutdown_fin+0x80>
  67475. case SYN_RCVD:
  67476. err = tcp_send_fin(pcb);
  67477. 801b59e: 6878 ldr r0, [r7, #4]
  67478. 801b5a0: f004 fe42 bl 8020228 <tcp_send_fin>
  67479. 801b5a4: 4603 mov r3, r0
  67480. 801b5a6: 73fb strb r3, [r7, #15]
  67481. if (err == ERR_OK) {
  67482. 801b5a8: f997 300f ldrsb.w r3, [r7, #15]
  67483. 801b5ac: 2b00 cmp r3, #0
  67484. 801b5ae: d11f bne.n 801b5f0 <tcp_close_shutdown_fin+0x84>
  67485. tcp_backlog_accepted(pcb);
  67486. MIB2_STATS_INC(mib2.tcpattemptfails);
  67487. pcb->state = FIN_WAIT_1;
  67488. 801b5b0: 687b ldr r3, [r7, #4]
  67489. 801b5b2: 2205 movs r2, #5
  67490. 801b5b4: 751a strb r2, [r3, #20]
  67491. }
  67492. break;
  67493. 801b5b6: e01b b.n 801b5f0 <tcp_close_shutdown_fin+0x84>
  67494. case ESTABLISHED:
  67495. err = tcp_send_fin(pcb);
  67496. 801b5b8: 6878 ldr r0, [r7, #4]
  67497. 801b5ba: f004 fe35 bl 8020228 <tcp_send_fin>
  67498. 801b5be: 4603 mov r3, r0
  67499. 801b5c0: 73fb strb r3, [r7, #15]
  67500. if (err == ERR_OK) {
  67501. 801b5c2: f997 300f ldrsb.w r3, [r7, #15]
  67502. 801b5c6: 2b00 cmp r3, #0
  67503. 801b5c8: d114 bne.n 801b5f4 <tcp_close_shutdown_fin+0x88>
  67504. MIB2_STATS_INC(mib2.tcpestabresets);
  67505. pcb->state = FIN_WAIT_1;
  67506. 801b5ca: 687b ldr r3, [r7, #4]
  67507. 801b5cc: 2205 movs r2, #5
  67508. 801b5ce: 751a strb r2, [r3, #20]
  67509. }
  67510. break;
  67511. 801b5d0: e010 b.n 801b5f4 <tcp_close_shutdown_fin+0x88>
  67512. case CLOSE_WAIT:
  67513. err = tcp_send_fin(pcb);
  67514. 801b5d2: 6878 ldr r0, [r7, #4]
  67515. 801b5d4: f004 fe28 bl 8020228 <tcp_send_fin>
  67516. 801b5d8: 4603 mov r3, r0
  67517. 801b5da: 73fb strb r3, [r7, #15]
  67518. if (err == ERR_OK) {
  67519. 801b5dc: f997 300f ldrsb.w r3, [r7, #15]
  67520. 801b5e0: 2b00 cmp r3, #0
  67521. 801b5e2: d109 bne.n 801b5f8 <tcp_close_shutdown_fin+0x8c>
  67522. MIB2_STATS_INC(mib2.tcpestabresets);
  67523. pcb->state = LAST_ACK;
  67524. 801b5e4: 687b ldr r3, [r7, #4]
  67525. 801b5e6: 2209 movs r2, #9
  67526. 801b5e8: 751a strb r2, [r3, #20]
  67527. }
  67528. break;
  67529. 801b5ea: e005 b.n 801b5f8 <tcp_close_shutdown_fin+0x8c>
  67530. default:
  67531. /* Has already been closed, do nothing. */
  67532. return ERR_OK;
  67533. 801b5ec: 2300 movs r3, #0
  67534. 801b5ee: e01c b.n 801b62a <tcp_close_shutdown_fin+0xbe>
  67535. break;
  67536. 801b5f0: bf00 nop
  67537. 801b5f2: e002 b.n 801b5fa <tcp_close_shutdown_fin+0x8e>
  67538. break;
  67539. 801b5f4: bf00 nop
  67540. 801b5f6: e000 b.n 801b5fa <tcp_close_shutdown_fin+0x8e>
  67541. break;
  67542. 801b5f8: bf00 nop
  67543. }
  67544. if (err == ERR_OK) {
  67545. 801b5fa: f997 300f ldrsb.w r3, [r7, #15]
  67546. 801b5fe: 2b00 cmp r3, #0
  67547. 801b600: d103 bne.n 801b60a <tcp_close_shutdown_fin+0x9e>
  67548. /* To ensure all data has been sent when tcp_close returns, we have
  67549. to make sure tcp_output doesn't fail.
  67550. Since we don't really have to ensure all data has been sent when tcp_close
  67551. returns (unsent data is sent from tcp timer functions, also), we don't care
  67552. for the return value of tcp_output for now. */
  67553. tcp_output(pcb);
  67554. 801b602: 6878 ldr r0, [r7, #4]
  67555. 801b604: f004 ff4e bl 80204a4 <tcp_output>
  67556. 801b608: e00d b.n 801b626 <tcp_close_shutdown_fin+0xba>
  67557. } else if (err == ERR_MEM) {
  67558. 801b60a: f997 300f ldrsb.w r3, [r7, #15]
  67559. 801b60e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  67560. 801b612: d108 bne.n 801b626 <tcp_close_shutdown_fin+0xba>
  67561. /* Mark this pcb for closing. Closing is retried from tcp_tmr. */
  67562. tcp_set_flags(pcb, TF_CLOSEPEND);
  67563. 801b614: 687b ldr r3, [r7, #4]
  67564. 801b616: 8b5b ldrh r3, [r3, #26]
  67565. 801b618: f043 0308 orr.w r3, r3, #8
  67566. 801b61c: b29a uxth r2, r3
  67567. 801b61e: 687b ldr r3, [r7, #4]
  67568. 801b620: 835a strh r2, [r3, #26]
  67569. /* We have to return ERR_OK from here to indicate to the callers that this
  67570. pcb should not be used any more as it will be freed soon via tcp_tmr.
  67571. This is OK here since sending FIN does not guarantee a time frime for
  67572. actually freeing the pcb, either (it is left in closure states for
  67573. remote ACK or timeout) */
  67574. return ERR_OK;
  67575. 801b622: 2300 movs r3, #0
  67576. 801b624: e001 b.n 801b62a <tcp_close_shutdown_fin+0xbe>
  67577. }
  67578. return err;
  67579. 801b626: f997 300f ldrsb.w r3, [r7, #15]
  67580. }
  67581. 801b62a: 4618 mov r0, r3
  67582. 801b62c: 3710 adds r7, #16
  67583. 801b62e: 46bd mov sp, r7
  67584. 801b630: bd80 pop {r7, pc}
  67585. 801b632: bf00 nop
  67586. 801b634: 0802ee3c .word 0x0802ee3c
  67587. 801b638: 0802eeec .word 0x0802eeec
  67588. 801b63c: 0802ee80 .word 0x0802ee80
  67589. 0801b640 <tcp_close>:
  67590. * @return ERR_OK if connection has been closed
  67591. * another err_t if closing failed and pcb is not freed
  67592. */
  67593. err_t
  67594. tcp_close(struct tcp_pcb *pcb)
  67595. {
  67596. 801b640: b580 push {r7, lr}
  67597. 801b642: b082 sub sp, #8
  67598. 801b644: af00 add r7, sp, #0
  67599. 801b646: 6078 str r0, [r7, #4]
  67600. LWIP_ASSERT_CORE_LOCKED();
  67601. 801b648: f7f5 fa18 bl 8010a7c <sys_check_core_locking>
  67602. LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG);
  67603. 801b64c: 687b ldr r3, [r7, #4]
  67604. 801b64e: 2b00 cmp r3, #0
  67605. 801b650: d109 bne.n 801b666 <tcp_close+0x26>
  67606. 801b652: 4b0f ldr r3, [pc, #60] @ (801b690 <tcp_close+0x50>)
  67607. 801b654: f44f 72f4 mov.w r2, #488 @ 0x1e8
  67608. 801b658: 490e ldr r1, [pc, #56] @ (801b694 <tcp_close+0x54>)
  67609. 801b65a: 480f ldr r0, [pc, #60] @ (801b698 <tcp_close+0x58>)
  67610. 801b65c: f00e fdae bl 802a1bc <iprintf>
  67611. 801b660: f06f 030f mvn.w r3, #15
  67612. 801b664: e00f b.n 801b686 <tcp_close+0x46>
  67613. LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in "));
  67614. tcp_debug_print_state(pcb->state);
  67615. if (pcb->state != LISTEN) {
  67616. 801b666: 687b ldr r3, [r7, #4]
  67617. 801b668: 7d1b ldrb r3, [r3, #20]
  67618. 801b66a: 2b01 cmp r3, #1
  67619. 801b66c: d006 beq.n 801b67c <tcp_close+0x3c>
  67620. /* Set a flag not to receive any more data... */
  67621. tcp_set_flags(pcb, TF_RXCLOSED);
  67622. 801b66e: 687b ldr r3, [r7, #4]
  67623. 801b670: 8b5b ldrh r3, [r3, #26]
  67624. 801b672: f043 0310 orr.w r3, r3, #16
  67625. 801b676: b29a uxth r2, r3
  67626. 801b678: 687b ldr r3, [r7, #4]
  67627. 801b67a: 835a strh r2, [r3, #26]
  67628. }
  67629. /* ... and close */
  67630. return tcp_close_shutdown(pcb, 1);
  67631. 801b67c: 2101 movs r1, #1
  67632. 801b67e: 6878 ldr r0, [r7, #4]
  67633. 801b680: f7ff fe92 bl 801b3a8 <tcp_close_shutdown>
  67634. 801b684: 4603 mov r3, r0
  67635. }
  67636. 801b686: 4618 mov r0, r3
  67637. 801b688: 3708 adds r7, #8
  67638. 801b68a: 46bd mov sp, r7
  67639. 801b68c: bd80 pop {r7, pc}
  67640. 801b68e: bf00 nop
  67641. 801b690: 0802ee3c .word 0x0802ee3c
  67642. 801b694: 0802ef4c .word 0x0802ef4c
  67643. 801b698: 0802ee80 .word 0x0802ee80
  67644. 0801b69c <tcp_shutdown>:
  67645. * @return ERR_OK if shutdown succeeded (or the PCB has already been shut down)
  67646. * another err_t on error.
  67647. */
  67648. err_t
  67649. tcp_shutdown(struct tcp_pcb *pcb, int shut_rx, int shut_tx)
  67650. {
  67651. 801b69c: b580 push {r7, lr}
  67652. 801b69e: b084 sub sp, #16
  67653. 801b6a0: af00 add r7, sp, #0
  67654. 801b6a2: 60f8 str r0, [r7, #12]
  67655. 801b6a4: 60b9 str r1, [r7, #8]
  67656. 801b6a6: 607a str r2, [r7, #4]
  67657. LWIP_ASSERT_CORE_LOCKED();
  67658. 801b6a8: f7f5 f9e8 bl 8010a7c <sys_check_core_locking>
  67659. LWIP_ERROR("tcp_shutdown: invalid pcb", pcb != NULL, return ERR_ARG);
  67660. 801b6ac: 68fb ldr r3, [r7, #12]
  67661. 801b6ae: 2b00 cmp r3, #0
  67662. 801b6b0: d109 bne.n 801b6c6 <tcp_shutdown+0x2a>
  67663. 801b6b2: 4b26 ldr r3, [pc, #152] @ (801b74c <tcp_shutdown+0xb0>)
  67664. 801b6b4: f240 2207 movw r2, #519 @ 0x207
  67665. 801b6b8: 4925 ldr r1, [pc, #148] @ (801b750 <tcp_shutdown+0xb4>)
  67666. 801b6ba: 4826 ldr r0, [pc, #152] @ (801b754 <tcp_shutdown+0xb8>)
  67667. 801b6bc: f00e fd7e bl 802a1bc <iprintf>
  67668. 801b6c0: f06f 030f mvn.w r3, #15
  67669. 801b6c4: e03d b.n 801b742 <tcp_shutdown+0xa6>
  67670. if (pcb->state == LISTEN) {
  67671. 801b6c6: 68fb ldr r3, [r7, #12]
  67672. 801b6c8: 7d1b ldrb r3, [r3, #20]
  67673. 801b6ca: 2b01 cmp r3, #1
  67674. 801b6cc: d102 bne.n 801b6d4 <tcp_shutdown+0x38>
  67675. return ERR_CONN;
  67676. 801b6ce: f06f 030a mvn.w r3, #10
  67677. 801b6d2: e036 b.n 801b742 <tcp_shutdown+0xa6>
  67678. }
  67679. if (shut_rx) {
  67680. 801b6d4: 68bb ldr r3, [r7, #8]
  67681. 801b6d6: 2b00 cmp r3, #0
  67682. 801b6d8: d01b beq.n 801b712 <tcp_shutdown+0x76>
  67683. /* shut down the receive side: set a flag not to receive any more data... */
  67684. tcp_set_flags(pcb, TF_RXCLOSED);
  67685. 801b6da: 68fb ldr r3, [r7, #12]
  67686. 801b6dc: 8b5b ldrh r3, [r3, #26]
  67687. 801b6de: f043 0310 orr.w r3, r3, #16
  67688. 801b6e2: b29a uxth r2, r3
  67689. 801b6e4: 68fb ldr r3, [r7, #12]
  67690. 801b6e6: 835a strh r2, [r3, #26]
  67691. if (shut_tx) {
  67692. 801b6e8: 687b ldr r3, [r7, #4]
  67693. 801b6ea: 2b00 cmp r3, #0
  67694. 801b6ec: d005 beq.n 801b6fa <tcp_shutdown+0x5e>
  67695. /* shutting down the tx AND rx side is the same as closing for the raw API */
  67696. return tcp_close_shutdown(pcb, 1);
  67697. 801b6ee: 2101 movs r1, #1
  67698. 801b6f0: 68f8 ldr r0, [r7, #12]
  67699. 801b6f2: f7ff fe59 bl 801b3a8 <tcp_close_shutdown>
  67700. 801b6f6: 4603 mov r3, r0
  67701. 801b6f8: e023 b.n 801b742 <tcp_shutdown+0xa6>
  67702. }
  67703. /* ... and free buffered data */
  67704. if (pcb->refused_data != NULL) {
  67705. 801b6fa: 68fb ldr r3, [r7, #12]
  67706. 801b6fc: 6f9b ldr r3, [r3, #120] @ 0x78
  67707. 801b6fe: 2b00 cmp r3, #0
  67708. 801b700: d007 beq.n 801b712 <tcp_shutdown+0x76>
  67709. pbuf_free(pcb->refused_data);
  67710. 801b702: 68fb ldr r3, [r7, #12]
  67711. 801b704: 6f9b ldr r3, [r3, #120] @ 0x78
  67712. 801b706: 4618 mov r0, r3
  67713. 801b708: f7ff fae0 bl 801accc <pbuf_free>
  67714. pcb->refused_data = NULL;
  67715. 801b70c: 68fb ldr r3, [r7, #12]
  67716. 801b70e: 2200 movs r2, #0
  67717. 801b710: 679a str r2, [r3, #120] @ 0x78
  67718. }
  67719. }
  67720. if (shut_tx) {
  67721. 801b712: 687b ldr r3, [r7, #4]
  67722. 801b714: 2b00 cmp r3, #0
  67723. 801b716: d013 beq.n 801b740 <tcp_shutdown+0xa4>
  67724. /* This can't happen twice since if it succeeds, the pcb's state is changed.
  67725. Only close in these states as the others directly deallocate the PCB */
  67726. switch (pcb->state) {
  67727. 801b718: 68fb ldr r3, [r7, #12]
  67728. 801b71a: 7d1b ldrb r3, [r3, #20]
  67729. 801b71c: 2b04 cmp r3, #4
  67730. 801b71e: dc02 bgt.n 801b726 <tcp_shutdown+0x8a>
  67731. 801b720: 2b03 cmp r3, #3
  67732. 801b722: da02 bge.n 801b72a <tcp_shutdown+0x8e>
  67733. 801b724: e009 b.n 801b73a <tcp_shutdown+0x9e>
  67734. 801b726: 2b07 cmp r3, #7
  67735. 801b728: d107 bne.n 801b73a <tcp_shutdown+0x9e>
  67736. case SYN_RCVD:
  67737. case ESTABLISHED:
  67738. case CLOSE_WAIT:
  67739. return tcp_close_shutdown(pcb, (u8_t)shut_rx);
  67740. 801b72a: 68bb ldr r3, [r7, #8]
  67741. 801b72c: b2db uxtb r3, r3
  67742. 801b72e: 4619 mov r1, r3
  67743. 801b730: 68f8 ldr r0, [r7, #12]
  67744. 801b732: f7ff fe39 bl 801b3a8 <tcp_close_shutdown>
  67745. 801b736: 4603 mov r3, r0
  67746. 801b738: e003 b.n 801b742 <tcp_shutdown+0xa6>
  67747. default:
  67748. /* Not (yet?) connected, cannot shutdown the TX side as that would bring us
  67749. into CLOSED state, where the PCB is deallocated. */
  67750. return ERR_CONN;
  67751. 801b73a: f06f 030a mvn.w r3, #10
  67752. 801b73e: e000 b.n 801b742 <tcp_shutdown+0xa6>
  67753. }
  67754. }
  67755. return ERR_OK;
  67756. 801b740: 2300 movs r3, #0
  67757. }
  67758. 801b742: 4618 mov r0, r3
  67759. 801b744: 3710 adds r7, #16
  67760. 801b746: 46bd mov sp, r7
  67761. 801b748: bd80 pop {r7, pc}
  67762. 801b74a: bf00 nop
  67763. 801b74c: 0802ee3c .word 0x0802ee3c
  67764. 801b750: 0802ef64 .word 0x0802ef64
  67765. 801b754: 0802ee80 .word 0x0802ee80
  67766. 0801b758 <tcp_abandon>:
  67767. * @param pcb the tcp_pcb to abort
  67768. * @param reset boolean to indicate whether a reset should be sent
  67769. */
  67770. void
  67771. tcp_abandon(struct tcp_pcb *pcb, int reset)
  67772. {
  67773. 801b758: b580 push {r7, lr}
  67774. 801b75a: b08e sub sp, #56 @ 0x38
  67775. 801b75c: af04 add r7, sp, #16
  67776. 801b75e: 6078 str r0, [r7, #4]
  67777. 801b760: 6039 str r1, [r7, #0]
  67778. #if LWIP_CALLBACK_API
  67779. tcp_err_fn errf;
  67780. #endif /* LWIP_CALLBACK_API */
  67781. void *errf_arg;
  67782. LWIP_ASSERT_CORE_LOCKED();
  67783. 801b762: f7f5 f98b bl 8010a7c <sys_check_core_locking>
  67784. LWIP_ERROR("tcp_abandon: invalid pcb", pcb != NULL, return);
  67785. 801b766: 687b ldr r3, [r7, #4]
  67786. 801b768: 2b00 cmp r3, #0
  67787. 801b76a: d107 bne.n 801b77c <tcp_abandon+0x24>
  67788. 801b76c: 4b52 ldr r3, [pc, #328] @ (801b8b8 <tcp_abandon+0x160>)
  67789. 801b76e: f240 223d movw r2, #573 @ 0x23d
  67790. 801b772: 4952 ldr r1, [pc, #328] @ (801b8bc <tcp_abandon+0x164>)
  67791. 801b774: 4852 ldr r0, [pc, #328] @ (801b8c0 <tcp_abandon+0x168>)
  67792. 801b776: f00e fd21 bl 802a1bc <iprintf>
  67793. 801b77a: e099 b.n 801b8b0 <tcp_abandon+0x158>
  67794. /* pcb->state LISTEN not allowed here */
  67795. LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs",
  67796. 801b77c: 687b ldr r3, [r7, #4]
  67797. 801b77e: 7d1b ldrb r3, [r3, #20]
  67798. 801b780: 2b01 cmp r3, #1
  67799. 801b782: d106 bne.n 801b792 <tcp_abandon+0x3a>
  67800. 801b784: 4b4c ldr r3, [pc, #304] @ (801b8b8 <tcp_abandon+0x160>)
  67801. 801b786: f44f 7210 mov.w r2, #576 @ 0x240
  67802. 801b78a: 494e ldr r1, [pc, #312] @ (801b8c4 <tcp_abandon+0x16c>)
  67803. 801b78c: 484c ldr r0, [pc, #304] @ (801b8c0 <tcp_abandon+0x168>)
  67804. 801b78e: f00e fd15 bl 802a1bc <iprintf>
  67805. pcb->state != LISTEN);
  67806. /* Figure out on which TCP PCB list we are, and remove us. If we
  67807. are in an active state, call the receive function associated with
  67808. the PCB with a NULL argument, and send an RST to the remote end. */
  67809. if (pcb->state == TIME_WAIT) {
  67810. 801b792: 687b ldr r3, [r7, #4]
  67811. 801b794: 7d1b ldrb r3, [r3, #20]
  67812. 801b796: 2b0a cmp r3, #10
  67813. 801b798: d107 bne.n 801b7aa <tcp_abandon+0x52>
  67814. tcp_pcb_remove(&tcp_tw_pcbs, pcb);
  67815. 801b79a: 6879 ldr r1, [r7, #4]
  67816. 801b79c: 484a ldr r0, [pc, #296] @ (801b8c8 <tcp_abandon+0x170>)
  67817. 801b79e: f001 fa03 bl 801cba8 <tcp_pcb_remove>
  67818. tcp_free(pcb);
  67819. 801b7a2: 6878 ldr r0, [r7, #4]
  67820. 801b7a4: f7ff fd4e bl 801b244 <tcp_free>
  67821. 801b7a8: e082 b.n 801b8b0 <tcp_abandon+0x158>
  67822. } else {
  67823. int send_rst = 0;
  67824. 801b7aa: 2300 movs r3, #0
  67825. 801b7ac: 627b str r3, [r7, #36] @ 0x24
  67826. u16_t local_port = 0;
  67827. 801b7ae: 2300 movs r3, #0
  67828. 801b7b0: 847b strh r3, [r7, #34] @ 0x22
  67829. enum tcp_state last_state;
  67830. seqno = pcb->snd_nxt;
  67831. 801b7b2: 687b ldr r3, [r7, #4]
  67832. 801b7b4: 6d1b ldr r3, [r3, #80] @ 0x50
  67833. 801b7b6: 61bb str r3, [r7, #24]
  67834. ackno = pcb->rcv_nxt;
  67835. 801b7b8: 687b ldr r3, [r7, #4]
  67836. 801b7ba: 6a5b ldr r3, [r3, #36] @ 0x24
  67837. 801b7bc: 617b str r3, [r7, #20]
  67838. #if LWIP_CALLBACK_API
  67839. errf = pcb->errf;
  67840. 801b7be: 687b ldr r3, [r7, #4]
  67841. 801b7c0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  67842. 801b7c4: 613b str r3, [r7, #16]
  67843. #endif /* LWIP_CALLBACK_API */
  67844. errf_arg = pcb->callback_arg;
  67845. 801b7c6: 687b ldr r3, [r7, #4]
  67846. 801b7c8: 691b ldr r3, [r3, #16]
  67847. 801b7ca: 60fb str r3, [r7, #12]
  67848. if (pcb->state == CLOSED) {
  67849. 801b7cc: 687b ldr r3, [r7, #4]
  67850. 801b7ce: 7d1b ldrb r3, [r3, #20]
  67851. 801b7d0: 2b00 cmp r3, #0
  67852. 801b7d2: d126 bne.n 801b822 <tcp_abandon+0xca>
  67853. if (pcb->local_port != 0) {
  67854. 801b7d4: 687b ldr r3, [r7, #4]
  67855. 801b7d6: 8adb ldrh r3, [r3, #22]
  67856. 801b7d8: 2b00 cmp r3, #0
  67857. 801b7da: d02e beq.n 801b83a <tcp_abandon+0xe2>
  67858. /* bound, not yet opened */
  67859. TCP_RMV(&tcp_bound_pcbs, pcb);
  67860. 801b7dc: 4b3b ldr r3, [pc, #236] @ (801b8cc <tcp_abandon+0x174>)
  67861. 801b7de: 681b ldr r3, [r3, #0]
  67862. 801b7e0: 687a ldr r2, [r7, #4]
  67863. 801b7e2: 429a cmp r2, r3
  67864. 801b7e4: d105 bne.n 801b7f2 <tcp_abandon+0x9a>
  67865. 801b7e6: 4b39 ldr r3, [pc, #228] @ (801b8cc <tcp_abandon+0x174>)
  67866. 801b7e8: 681b ldr r3, [r3, #0]
  67867. 801b7ea: 68db ldr r3, [r3, #12]
  67868. 801b7ec: 4a37 ldr r2, [pc, #220] @ (801b8cc <tcp_abandon+0x174>)
  67869. 801b7ee: 6013 str r3, [r2, #0]
  67870. 801b7f0: e013 b.n 801b81a <tcp_abandon+0xc2>
  67871. 801b7f2: 4b36 ldr r3, [pc, #216] @ (801b8cc <tcp_abandon+0x174>)
  67872. 801b7f4: 681b ldr r3, [r3, #0]
  67873. 801b7f6: 61fb str r3, [r7, #28]
  67874. 801b7f8: e00c b.n 801b814 <tcp_abandon+0xbc>
  67875. 801b7fa: 69fb ldr r3, [r7, #28]
  67876. 801b7fc: 68db ldr r3, [r3, #12]
  67877. 801b7fe: 687a ldr r2, [r7, #4]
  67878. 801b800: 429a cmp r2, r3
  67879. 801b802: d104 bne.n 801b80e <tcp_abandon+0xb6>
  67880. 801b804: 687b ldr r3, [r7, #4]
  67881. 801b806: 68da ldr r2, [r3, #12]
  67882. 801b808: 69fb ldr r3, [r7, #28]
  67883. 801b80a: 60da str r2, [r3, #12]
  67884. 801b80c: e005 b.n 801b81a <tcp_abandon+0xc2>
  67885. 801b80e: 69fb ldr r3, [r7, #28]
  67886. 801b810: 68db ldr r3, [r3, #12]
  67887. 801b812: 61fb str r3, [r7, #28]
  67888. 801b814: 69fb ldr r3, [r7, #28]
  67889. 801b816: 2b00 cmp r3, #0
  67890. 801b818: d1ef bne.n 801b7fa <tcp_abandon+0xa2>
  67891. 801b81a: 687b ldr r3, [r7, #4]
  67892. 801b81c: 2200 movs r2, #0
  67893. 801b81e: 60da str r2, [r3, #12]
  67894. 801b820: e00b b.n 801b83a <tcp_abandon+0xe2>
  67895. }
  67896. } else {
  67897. send_rst = reset;
  67898. 801b822: 683b ldr r3, [r7, #0]
  67899. 801b824: 627b str r3, [r7, #36] @ 0x24
  67900. local_port = pcb->local_port;
  67901. 801b826: 687b ldr r3, [r7, #4]
  67902. 801b828: 8adb ldrh r3, [r3, #22]
  67903. 801b82a: 847b strh r3, [r7, #34] @ 0x22
  67904. TCP_PCB_REMOVE_ACTIVE(pcb);
  67905. 801b82c: 6879 ldr r1, [r7, #4]
  67906. 801b82e: 4828 ldr r0, [pc, #160] @ (801b8d0 <tcp_abandon+0x178>)
  67907. 801b830: f001 f9ba bl 801cba8 <tcp_pcb_remove>
  67908. 801b834: 4b27 ldr r3, [pc, #156] @ (801b8d4 <tcp_abandon+0x17c>)
  67909. 801b836: 2201 movs r2, #1
  67910. 801b838: 701a strb r2, [r3, #0]
  67911. }
  67912. if (pcb->unacked != NULL) {
  67913. 801b83a: 687b ldr r3, [r7, #4]
  67914. 801b83c: 6f1b ldr r3, [r3, #112] @ 0x70
  67915. 801b83e: 2b00 cmp r3, #0
  67916. 801b840: d004 beq.n 801b84c <tcp_abandon+0xf4>
  67917. tcp_segs_free(pcb->unacked);
  67918. 801b842: 687b ldr r3, [r7, #4]
  67919. 801b844: 6f1b ldr r3, [r3, #112] @ 0x70
  67920. 801b846: 4618 mov r0, r3
  67921. 801b848: f000 fe84 bl 801c554 <tcp_segs_free>
  67922. }
  67923. if (pcb->unsent != NULL) {
  67924. 801b84c: 687b ldr r3, [r7, #4]
  67925. 801b84e: 6edb ldr r3, [r3, #108] @ 0x6c
  67926. 801b850: 2b00 cmp r3, #0
  67927. 801b852: d004 beq.n 801b85e <tcp_abandon+0x106>
  67928. tcp_segs_free(pcb->unsent);
  67929. 801b854: 687b ldr r3, [r7, #4]
  67930. 801b856: 6edb ldr r3, [r3, #108] @ 0x6c
  67931. 801b858: 4618 mov r0, r3
  67932. 801b85a: f000 fe7b bl 801c554 <tcp_segs_free>
  67933. }
  67934. #if TCP_QUEUE_OOSEQ
  67935. if (pcb->ooseq != NULL) {
  67936. 801b85e: 687b ldr r3, [r7, #4]
  67937. 801b860: 6f5b ldr r3, [r3, #116] @ 0x74
  67938. 801b862: 2b00 cmp r3, #0
  67939. 801b864: d004 beq.n 801b870 <tcp_abandon+0x118>
  67940. tcp_segs_free(pcb->ooseq);
  67941. 801b866: 687b ldr r3, [r7, #4]
  67942. 801b868: 6f5b ldr r3, [r3, #116] @ 0x74
  67943. 801b86a: 4618 mov r0, r3
  67944. 801b86c: f000 fe72 bl 801c554 <tcp_segs_free>
  67945. }
  67946. #endif /* TCP_QUEUE_OOSEQ */
  67947. tcp_backlog_accepted(pcb);
  67948. if (send_rst) {
  67949. 801b870: 6a7b ldr r3, [r7, #36] @ 0x24
  67950. 801b872: 2b00 cmp r3, #0
  67951. 801b874: d00e beq.n 801b894 <tcp_abandon+0x13c>
  67952. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_abandon: sending RST\n"));
  67953. tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port);
  67954. 801b876: 6879 ldr r1, [r7, #4]
  67955. 801b878: 687b ldr r3, [r7, #4]
  67956. 801b87a: 3304 adds r3, #4
  67957. 801b87c: 687a ldr r2, [r7, #4]
  67958. 801b87e: 8b12 ldrh r2, [r2, #24]
  67959. 801b880: 9202 str r2, [sp, #8]
  67960. 801b882: 8c7a ldrh r2, [r7, #34] @ 0x22
  67961. 801b884: 9201 str r2, [sp, #4]
  67962. 801b886: 9300 str r3, [sp, #0]
  67963. 801b888: 460b mov r3, r1
  67964. 801b88a: 697a ldr r2, [r7, #20]
  67965. 801b88c: 69b9 ldr r1, [r7, #24]
  67966. 801b88e: 6878 ldr r0, [r7, #4]
  67967. 801b890: f005 fbca bl 8021028 <tcp_rst>
  67968. }
  67969. last_state = pcb->state;
  67970. 801b894: 687b ldr r3, [r7, #4]
  67971. 801b896: 7d1b ldrb r3, [r3, #20]
  67972. 801b898: 72fb strb r3, [r7, #11]
  67973. tcp_free(pcb);
  67974. 801b89a: 6878 ldr r0, [r7, #4]
  67975. 801b89c: f7ff fcd2 bl 801b244 <tcp_free>
  67976. TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT);
  67977. 801b8a0: 693b ldr r3, [r7, #16]
  67978. 801b8a2: 2b00 cmp r3, #0
  67979. 801b8a4: d004 beq.n 801b8b0 <tcp_abandon+0x158>
  67980. 801b8a6: 693b ldr r3, [r7, #16]
  67981. 801b8a8: f06f 010c mvn.w r1, #12
  67982. 801b8ac: 68f8 ldr r0, [r7, #12]
  67983. 801b8ae: 4798 blx r3
  67984. }
  67985. }
  67986. 801b8b0: 3728 adds r7, #40 @ 0x28
  67987. 801b8b2: 46bd mov sp, r7
  67988. 801b8b4: bd80 pop {r7, pc}
  67989. 801b8b6: bf00 nop
  67990. 801b8b8: 0802ee3c .word 0x0802ee3c
  67991. 801b8bc: 0802ef80 .word 0x0802ef80
  67992. 801b8c0: 0802ee80 .word 0x0802ee80
  67993. 801b8c4: 0802ef9c .word 0x0802ef9c
  67994. 801b8c8: 2402af68 .word 0x2402af68
  67995. 801b8cc: 2402af5c .word 0x2402af5c
  67996. 801b8d0: 2402af64 .word 0x2402af64
  67997. 801b8d4: 2402af6c .word 0x2402af6c
  67998. 0801b8d8 <tcp_abort>:
  67999. *
  68000. * @param pcb the tcp pcb to abort
  68001. */
  68002. void
  68003. tcp_abort(struct tcp_pcb *pcb)
  68004. {
  68005. 801b8d8: b580 push {r7, lr}
  68006. 801b8da: b082 sub sp, #8
  68007. 801b8dc: af00 add r7, sp, #0
  68008. 801b8de: 6078 str r0, [r7, #4]
  68009. tcp_abandon(pcb, 1);
  68010. 801b8e0: 2101 movs r1, #1
  68011. 801b8e2: 6878 ldr r0, [r7, #4]
  68012. 801b8e4: f7ff ff38 bl 801b758 <tcp_abandon>
  68013. }
  68014. 801b8e8: bf00 nop
  68015. 801b8ea: 3708 adds r7, #8
  68016. 801b8ec: 46bd mov sp, r7
  68017. 801b8ee: bd80 pop {r7, pc}
  68018. 0801b8f0 <tcp_update_rcv_ann_wnd>:
  68019. * Returns how much extra window would be advertised if we sent an
  68020. * update now.
  68021. */
  68022. u32_t
  68023. tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb)
  68024. {
  68025. 801b8f0: b580 push {r7, lr}
  68026. 801b8f2: b084 sub sp, #16
  68027. 801b8f4: af00 add r7, sp, #0
  68028. 801b8f6: 6078 str r0, [r7, #4]
  68029. u32_t new_right_edge;
  68030. LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL);
  68031. 801b8f8: 687b ldr r3, [r7, #4]
  68032. 801b8fa: 2b00 cmp r3, #0
  68033. 801b8fc: d106 bne.n 801b90c <tcp_update_rcv_ann_wnd+0x1c>
  68034. 801b8fe: 4b25 ldr r3, [pc, #148] @ (801b994 <tcp_update_rcv_ann_wnd+0xa4>)
  68035. 801b900: f240 32a6 movw r2, #934 @ 0x3a6
  68036. 801b904: 4924 ldr r1, [pc, #144] @ (801b998 <tcp_update_rcv_ann_wnd+0xa8>)
  68037. 801b906: 4825 ldr r0, [pc, #148] @ (801b99c <tcp_update_rcv_ann_wnd+0xac>)
  68038. 801b908: f00e fc58 bl 802a1bc <iprintf>
  68039. new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd;
  68040. 801b90c: 687b ldr r3, [r7, #4]
  68041. 801b90e: 6a5b ldr r3, [r3, #36] @ 0x24
  68042. 801b910: 687a ldr r2, [r7, #4]
  68043. 801b912: 8d12 ldrh r2, [r2, #40] @ 0x28
  68044. 801b914: 4413 add r3, r2
  68045. 801b916: 60fb str r3, [r7, #12]
  68046. if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) {
  68047. 801b918: 687b ldr r3, [r7, #4]
  68048. 801b91a: 6adb ldr r3, [r3, #44] @ 0x2c
  68049. 801b91c: 687a ldr r2, [r7, #4]
  68050. 801b91e: 8e52 ldrh r2, [r2, #50] @ 0x32
  68051. 801b920: f640 3168 movw r1, #2920 @ 0xb68
  68052. 801b924: 428a cmp r2, r1
  68053. 801b926: bf28 it cs
  68054. 801b928: 460a movcs r2, r1
  68055. 801b92a: b292 uxth r2, r2
  68056. 801b92c: 4413 add r3, r2
  68057. 801b92e: 68fa ldr r2, [r7, #12]
  68058. 801b930: 1ad3 subs r3, r2, r3
  68059. 801b932: 2b00 cmp r3, #0
  68060. 801b934: db08 blt.n 801b948 <tcp_update_rcv_ann_wnd+0x58>
  68061. /* we can advertise more window */
  68062. pcb->rcv_ann_wnd = pcb->rcv_wnd;
  68063. 801b936: 687b ldr r3, [r7, #4]
  68064. 801b938: 8d1a ldrh r2, [r3, #40] @ 0x28
  68065. 801b93a: 687b ldr r3, [r7, #4]
  68066. 801b93c: 855a strh r2, [r3, #42] @ 0x2a
  68067. return new_right_edge - pcb->rcv_ann_right_edge;
  68068. 801b93e: 687b ldr r3, [r7, #4]
  68069. 801b940: 6adb ldr r3, [r3, #44] @ 0x2c
  68070. 801b942: 68fa ldr r2, [r7, #12]
  68071. 801b944: 1ad3 subs r3, r2, r3
  68072. 801b946: e020 b.n 801b98a <tcp_update_rcv_ann_wnd+0x9a>
  68073. } else {
  68074. if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) {
  68075. 801b948: 687b ldr r3, [r7, #4]
  68076. 801b94a: 6a5a ldr r2, [r3, #36] @ 0x24
  68077. 801b94c: 687b ldr r3, [r7, #4]
  68078. 801b94e: 6adb ldr r3, [r3, #44] @ 0x2c
  68079. 801b950: 1ad3 subs r3, r2, r3
  68080. 801b952: 2b00 cmp r3, #0
  68081. 801b954: dd03 ble.n 801b95e <tcp_update_rcv_ann_wnd+0x6e>
  68082. /* Can happen due to other end sending out of advertised window,
  68083. * but within actual available (but not yet advertised) window */
  68084. pcb->rcv_ann_wnd = 0;
  68085. 801b956: 687b ldr r3, [r7, #4]
  68086. 801b958: 2200 movs r2, #0
  68087. 801b95a: 855a strh r2, [r3, #42] @ 0x2a
  68088. 801b95c: e014 b.n 801b988 <tcp_update_rcv_ann_wnd+0x98>
  68089. } else {
  68090. /* keep the right edge of window constant */
  68091. u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt;
  68092. 801b95e: 687b ldr r3, [r7, #4]
  68093. 801b960: 6ada ldr r2, [r3, #44] @ 0x2c
  68094. 801b962: 687b ldr r3, [r7, #4]
  68095. 801b964: 6a5b ldr r3, [r3, #36] @ 0x24
  68096. 801b966: 1ad3 subs r3, r2, r3
  68097. 801b968: 60bb str r3, [r7, #8]
  68098. #if !LWIP_WND_SCALE
  68099. LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff);
  68100. 801b96a: 68bb ldr r3, [r7, #8]
  68101. 801b96c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  68102. 801b970: d306 bcc.n 801b980 <tcp_update_rcv_ann_wnd+0x90>
  68103. 801b972: 4b08 ldr r3, [pc, #32] @ (801b994 <tcp_update_rcv_ann_wnd+0xa4>)
  68104. 801b974: f240 32b6 movw r2, #950 @ 0x3b6
  68105. 801b978: 4909 ldr r1, [pc, #36] @ (801b9a0 <tcp_update_rcv_ann_wnd+0xb0>)
  68106. 801b97a: 4808 ldr r0, [pc, #32] @ (801b99c <tcp_update_rcv_ann_wnd+0xac>)
  68107. 801b97c: f00e fc1e bl 802a1bc <iprintf>
  68108. #endif
  68109. pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd;
  68110. 801b980: 68bb ldr r3, [r7, #8]
  68111. 801b982: b29a uxth r2, r3
  68112. 801b984: 687b ldr r3, [r7, #4]
  68113. 801b986: 855a strh r2, [r3, #42] @ 0x2a
  68114. }
  68115. return 0;
  68116. 801b988: 2300 movs r3, #0
  68117. }
  68118. }
  68119. 801b98a: 4618 mov r0, r3
  68120. 801b98c: 3710 adds r7, #16
  68121. 801b98e: 46bd mov sp, r7
  68122. 801b990: bd80 pop {r7, pc}
  68123. 801b992: bf00 nop
  68124. 801b994: 0802ee3c .word 0x0802ee3c
  68125. 801b998: 0802f098 .word 0x0802f098
  68126. 801b99c: 0802ee80 .word 0x0802ee80
  68127. 801b9a0: 0802f0bc .word 0x0802f0bc
  68128. 0801b9a4 <tcp_recved>:
  68129. * @param pcb the tcp_pcb for which data is read
  68130. * @param len the amount of bytes that have been read by the application
  68131. */
  68132. void
  68133. tcp_recved(struct tcp_pcb *pcb, u16_t len)
  68134. {
  68135. 801b9a4: b580 push {r7, lr}
  68136. 801b9a6: b084 sub sp, #16
  68137. 801b9a8: af00 add r7, sp, #0
  68138. 801b9aa: 6078 str r0, [r7, #4]
  68139. 801b9ac: 460b mov r3, r1
  68140. 801b9ae: 807b strh r3, [r7, #2]
  68141. u32_t wnd_inflation;
  68142. tcpwnd_size_t rcv_wnd;
  68143. LWIP_ASSERT_CORE_LOCKED();
  68144. 801b9b0: f7f5 f864 bl 8010a7c <sys_check_core_locking>
  68145. LWIP_ERROR("tcp_recved: invalid pcb", pcb != NULL, return);
  68146. 801b9b4: 687b ldr r3, [r7, #4]
  68147. 801b9b6: 2b00 cmp r3, #0
  68148. 801b9b8: d107 bne.n 801b9ca <tcp_recved+0x26>
  68149. 801b9ba: 4b20 ldr r3, [pc, #128] @ (801ba3c <tcp_recved+0x98>)
  68150. 801b9bc: f240 32cf movw r2, #975 @ 0x3cf
  68151. 801b9c0: 491f ldr r1, [pc, #124] @ (801ba40 <tcp_recved+0x9c>)
  68152. 801b9c2: 4820 ldr r0, [pc, #128] @ (801ba44 <tcp_recved+0xa0>)
  68153. 801b9c4: f00e fbfa bl 802a1bc <iprintf>
  68154. 801b9c8: e034 b.n 801ba34 <tcp_recved+0x90>
  68155. /* pcb->state LISTEN not allowed here */
  68156. LWIP_ASSERT("don't call tcp_recved for listen-pcbs",
  68157. 801b9ca: 687b ldr r3, [r7, #4]
  68158. 801b9cc: 7d1b ldrb r3, [r3, #20]
  68159. 801b9ce: 2b01 cmp r3, #1
  68160. 801b9d0: d106 bne.n 801b9e0 <tcp_recved+0x3c>
  68161. 801b9d2: 4b1a ldr r3, [pc, #104] @ (801ba3c <tcp_recved+0x98>)
  68162. 801b9d4: f240 32d2 movw r2, #978 @ 0x3d2
  68163. 801b9d8: 491b ldr r1, [pc, #108] @ (801ba48 <tcp_recved+0xa4>)
  68164. 801b9da: 481a ldr r0, [pc, #104] @ (801ba44 <tcp_recved+0xa0>)
  68165. 801b9dc: f00e fbee bl 802a1bc <iprintf>
  68166. pcb->state != LISTEN);
  68167. rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len);
  68168. 801b9e0: 687b ldr r3, [r7, #4]
  68169. 801b9e2: 8d1a ldrh r2, [r3, #40] @ 0x28
  68170. 801b9e4: 887b ldrh r3, [r7, #2]
  68171. 801b9e6: 4413 add r3, r2
  68172. 801b9e8: 81fb strh r3, [r7, #14]
  68173. if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) {
  68174. 801b9ea: 89fb ldrh r3, [r7, #14]
  68175. 801b9ec: f241 62d0 movw r2, #5840 @ 0x16d0
  68176. 801b9f0: 4293 cmp r3, r2
  68177. 801b9f2: d804 bhi.n 801b9fe <tcp_recved+0x5a>
  68178. 801b9f4: 687b ldr r3, [r7, #4]
  68179. 801b9f6: 8d1b ldrh r3, [r3, #40] @ 0x28
  68180. 801b9f8: 89fa ldrh r2, [r7, #14]
  68181. 801b9fa: 429a cmp r2, r3
  68182. 801b9fc: d204 bcs.n 801ba08 <tcp_recved+0x64>
  68183. /* window got too big or tcpwnd_size_t overflow */
  68184. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: window got too big or tcpwnd_size_t overflow\n"));
  68185. pcb->rcv_wnd = TCP_WND_MAX(pcb);
  68186. 801b9fe: 687b ldr r3, [r7, #4]
  68187. 801ba00: f241 62d0 movw r2, #5840 @ 0x16d0
  68188. 801ba04: 851a strh r2, [r3, #40] @ 0x28
  68189. 801ba06: e002 b.n 801ba0e <tcp_recved+0x6a>
  68190. } else {
  68191. pcb->rcv_wnd = rcv_wnd;
  68192. 801ba08: 687b ldr r3, [r7, #4]
  68193. 801ba0a: 89fa ldrh r2, [r7, #14]
  68194. 801ba0c: 851a strh r2, [r3, #40] @ 0x28
  68195. }
  68196. wnd_inflation = tcp_update_rcv_ann_wnd(pcb);
  68197. 801ba0e: 6878 ldr r0, [r7, #4]
  68198. 801ba10: f7ff ff6e bl 801b8f0 <tcp_update_rcv_ann_wnd>
  68199. 801ba14: 60b8 str r0, [r7, #8]
  68200. /* If the change in the right edge of window is significant (default
  68201. * watermark is TCP_WND/4), then send an explicit update now.
  68202. * Otherwise wait for a packet to be sent in the normal course of
  68203. * events (or more window to be available later) */
  68204. if (wnd_inflation >= TCP_WND_UPDATE_THRESHOLD) {
  68205. 801ba16: 68bb ldr r3, [r7, #8]
  68206. 801ba18: f240 52b3 movw r2, #1459 @ 0x5b3
  68207. 801ba1c: 4293 cmp r3, r2
  68208. 801ba1e: d909 bls.n 801ba34 <tcp_recved+0x90>
  68209. tcp_ack_now(pcb);
  68210. 801ba20: 687b ldr r3, [r7, #4]
  68211. 801ba22: 8b5b ldrh r3, [r3, #26]
  68212. 801ba24: f043 0302 orr.w r3, r3, #2
  68213. 801ba28: b29a uxth r2, r3
  68214. 801ba2a: 687b ldr r3, [r7, #4]
  68215. 801ba2c: 835a strh r2, [r3, #26]
  68216. tcp_output(pcb);
  68217. 801ba2e: 6878 ldr r0, [r7, #4]
  68218. 801ba30: f004 fd38 bl 80204a4 <tcp_output>
  68219. }
  68220. LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: received %"U16_F" bytes, wnd %"TCPWNDSIZE_F" (%"TCPWNDSIZE_F").\n",
  68221. len, pcb->rcv_wnd, (u16_t)(TCP_WND_MAX(pcb) - pcb->rcv_wnd)));
  68222. }
  68223. 801ba34: 3710 adds r7, #16
  68224. 801ba36: 46bd mov sp, r7
  68225. 801ba38: bd80 pop {r7, pc}
  68226. 801ba3a: bf00 nop
  68227. 801ba3c: 0802ee3c .word 0x0802ee3c
  68228. 801ba40: 0802f0d8 .word 0x0802f0d8
  68229. 801ba44: 0802ee80 .word 0x0802ee80
  68230. 801ba48: 0802f0f0 .word 0x0802f0f0
  68231. 0801ba4c <tcp_new_port>:
  68232. *
  68233. * @return a new (free) local TCP port number
  68234. */
  68235. static u16_t
  68236. tcp_new_port(void)
  68237. {
  68238. 801ba4c: b480 push {r7}
  68239. 801ba4e: b083 sub sp, #12
  68240. 801ba50: af00 add r7, sp, #0
  68241. u8_t i;
  68242. u16_t n = 0;
  68243. 801ba52: 2300 movs r3, #0
  68244. 801ba54: 80bb strh r3, [r7, #4]
  68245. struct tcp_pcb *pcb;
  68246. again:
  68247. tcp_port++;
  68248. 801ba56: 4b1e ldr r3, [pc, #120] @ (801bad0 <tcp_new_port+0x84>)
  68249. 801ba58: 881b ldrh r3, [r3, #0]
  68250. 801ba5a: 3301 adds r3, #1
  68251. 801ba5c: b29a uxth r2, r3
  68252. 801ba5e: 4b1c ldr r3, [pc, #112] @ (801bad0 <tcp_new_port+0x84>)
  68253. 801ba60: 801a strh r2, [r3, #0]
  68254. if (tcp_port == TCP_LOCAL_PORT_RANGE_END) {
  68255. 801ba62: 4b1b ldr r3, [pc, #108] @ (801bad0 <tcp_new_port+0x84>)
  68256. 801ba64: 881b ldrh r3, [r3, #0]
  68257. 801ba66: f64f 72ff movw r2, #65535 @ 0xffff
  68258. 801ba6a: 4293 cmp r3, r2
  68259. 801ba6c: d103 bne.n 801ba76 <tcp_new_port+0x2a>
  68260. tcp_port = TCP_LOCAL_PORT_RANGE_START;
  68261. 801ba6e: 4b18 ldr r3, [pc, #96] @ (801bad0 <tcp_new_port+0x84>)
  68262. 801ba70: f44f 4240 mov.w r2, #49152 @ 0xc000
  68263. 801ba74: 801a strh r2, [r3, #0]
  68264. }
  68265. /* Check all PCB lists. */
  68266. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  68267. 801ba76: 2300 movs r3, #0
  68268. 801ba78: 71fb strb r3, [r7, #7]
  68269. 801ba7a: e01e b.n 801baba <tcp_new_port+0x6e>
  68270. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  68271. 801ba7c: 79fb ldrb r3, [r7, #7]
  68272. 801ba7e: 4a15 ldr r2, [pc, #84] @ (801bad4 <tcp_new_port+0x88>)
  68273. 801ba80: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  68274. 801ba84: 681b ldr r3, [r3, #0]
  68275. 801ba86: 603b str r3, [r7, #0]
  68276. 801ba88: e011 b.n 801baae <tcp_new_port+0x62>
  68277. if (pcb->local_port == tcp_port) {
  68278. 801ba8a: 683b ldr r3, [r7, #0]
  68279. 801ba8c: 8ada ldrh r2, [r3, #22]
  68280. 801ba8e: 4b10 ldr r3, [pc, #64] @ (801bad0 <tcp_new_port+0x84>)
  68281. 801ba90: 881b ldrh r3, [r3, #0]
  68282. 801ba92: 429a cmp r2, r3
  68283. 801ba94: d108 bne.n 801baa8 <tcp_new_port+0x5c>
  68284. n++;
  68285. 801ba96: 88bb ldrh r3, [r7, #4]
  68286. 801ba98: 3301 adds r3, #1
  68287. 801ba9a: 80bb strh r3, [r7, #4]
  68288. if (n > (TCP_LOCAL_PORT_RANGE_END - TCP_LOCAL_PORT_RANGE_START)) {
  68289. 801ba9c: 88bb ldrh r3, [r7, #4]
  68290. 801ba9e: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  68291. 801baa2: d3d8 bcc.n 801ba56 <tcp_new_port+0xa>
  68292. return 0;
  68293. 801baa4: 2300 movs r3, #0
  68294. 801baa6: e00d b.n 801bac4 <tcp_new_port+0x78>
  68295. for (pcb = *tcp_pcb_lists[i]; pcb != NULL; pcb = pcb->next) {
  68296. 801baa8: 683b ldr r3, [r7, #0]
  68297. 801baaa: 68db ldr r3, [r3, #12]
  68298. 801baac: 603b str r3, [r7, #0]
  68299. 801baae: 683b ldr r3, [r7, #0]
  68300. 801bab0: 2b00 cmp r3, #0
  68301. 801bab2: d1ea bne.n 801ba8a <tcp_new_port+0x3e>
  68302. for (i = 0; i < NUM_TCP_PCB_LISTS; i++) {
  68303. 801bab4: 79fb ldrb r3, [r7, #7]
  68304. 801bab6: 3301 adds r3, #1
  68305. 801bab8: 71fb strb r3, [r7, #7]
  68306. 801baba: 79fb ldrb r3, [r7, #7]
  68307. 801babc: 2b03 cmp r3, #3
  68308. 801babe: d9dd bls.n 801ba7c <tcp_new_port+0x30>
  68309. }
  68310. goto again;
  68311. }
  68312. }
  68313. }
  68314. return tcp_port;
  68315. 801bac0: 4b03 ldr r3, [pc, #12] @ (801bad0 <tcp_new_port+0x84>)
  68316. 801bac2: 881b ldrh r3, [r3, #0]
  68317. }
  68318. 801bac4: 4618 mov r0, r3
  68319. 801bac6: 370c adds r7, #12
  68320. 801bac8: 46bd mov sp, r7
  68321. 801baca: f85d 7b04 ldr.w r7, [sp], #4
  68322. 801bace: 4770 bx lr
  68323. 801bad0: 2400004c .word 0x2400004c
  68324. 801bad4: 080314bc .word 0x080314bc
  68325. 0801bad8 <tcp_connect>:
  68326. * other err_t values if connect request couldn't be sent
  68327. */
  68328. err_t
  68329. tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port,
  68330. tcp_connected_fn connected)
  68331. {
  68332. 801bad8: b580 push {r7, lr}
  68333. 801bada: b08a sub sp, #40 @ 0x28
  68334. 801badc: af00 add r7, sp, #0
  68335. 801bade: 60f8 str r0, [r7, #12]
  68336. 801bae0: 60b9 str r1, [r7, #8]
  68337. 801bae2: 603b str r3, [r7, #0]
  68338. 801bae4: 4613 mov r3, r2
  68339. 801bae6: 80fb strh r3, [r7, #6]
  68340. struct netif *netif = NULL;
  68341. 801bae8: 2300 movs r3, #0
  68342. 801baea: 627b str r3, [r7, #36] @ 0x24
  68343. err_t ret;
  68344. u32_t iss;
  68345. u16_t old_local_port;
  68346. LWIP_ASSERT_CORE_LOCKED();
  68347. 801baec: f7f4 ffc6 bl 8010a7c <sys_check_core_locking>
  68348. LWIP_ERROR("tcp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  68349. 801baf0: 68fb ldr r3, [r7, #12]
  68350. 801baf2: 2b00 cmp r3, #0
  68351. 801baf4: d109 bne.n 801bb0a <tcp_connect+0x32>
  68352. 801baf6: 4b7d ldr r3, [pc, #500] @ (801bcec <tcp_connect+0x214>)
  68353. 801baf8: f240 4235 movw r2, #1077 @ 0x435
  68354. 801bafc: 497c ldr r1, [pc, #496] @ (801bcf0 <tcp_connect+0x218>)
  68355. 801bafe: 487d ldr r0, [pc, #500] @ (801bcf4 <tcp_connect+0x21c>)
  68356. 801bb00: f00e fb5c bl 802a1bc <iprintf>
  68357. 801bb04: f06f 030f mvn.w r3, #15
  68358. 801bb08: e0ec b.n 801bce4 <tcp_connect+0x20c>
  68359. LWIP_ERROR("tcp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  68360. 801bb0a: 68bb ldr r3, [r7, #8]
  68361. 801bb0c: 2b00 cmp r3, #0
  68362. 801bb0e: d109 bne.n 801bb24 <tcp_connect+0x4c>
  68363. 801bb10: 4b76 ldr r3, [pc, #472] @ (801bcec <tcp_connect+0x214>)
  68364. 801bb12: f240 4236 movw r2, #1078 @ 0x436
  68365. 801bb16: 4978 ldr r1, [pc, #480] @ (801bcf8 <tcp_connect+0x220>)
  68366. 801bb18: 4876 ldr r0, [pc, #472] @ (801bcf4 <tcp_connect+0x21c>)
  68367. 801bb1a: f00e fb4f bl 802a1bc <iprintf>
  68368. 801bb1e: f06f 030f mvn.w r3, #15
  68369. 801bb22: e0df b.n 801bce4 <tcp_connect+0x20c>
  68370. LWIP_ERROR("tcp_connect: can only connect from state CLOSED", pcb->state == CLOSED, return ERR_ISCONN);
  68371. 801bb24: 68fb ldr r3, [r7, #12]
  68372. 801bb26: 7d1b ldrb r3, [r3, #20]
  68373. 801bb28: 2b00 cmp r3, #0
  68374. 801bb2a: d009 beq.n 801bb40 <tcp_connect+0x68>
  68375. 801bb2c: 4b6f ldr r3, [pc, #444] @ (801bcec <tcp_connect+0x214>)
  68376. 801bb2e: f44f 6287 mov.w r2, #1080 @ 0x438
  68377. 801bb32: 4972 ldr r1, [pc, #456] @ (801bcfc <tcp_connect+0x224>)
  68378. 801bb34: 486f ldr r0, [pc, #444] @ (801bcf4 <tcp_connect+0x21c>)
  68379. 801bb36: f00e fb41 bl 802a1bc <iprintf>
  68380. 801bb3a: f06f 0309 mvn.w r3, #9
  68381. 801bb3e: e0d1 b.n 801bce4 <tcp_connect+0x20c>
  68382. LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port));
  68383. ip_addr_set(&pcb->remote_ip, ipaddr);
  68384. 801bb40: 68bb ldr r3, [r7, #8]
  68385. 801bb42: 2b00 cmp r3, #0
  68386. 801bb44: d002 beq.n 801bb4c <tcp_connect+0x74>
  68387. 801bb46: 68bb ldr r3, [r7, #8]
  68388. 801bb48: 681b ldr r3, [r3, #0]
  68389. 801bb4a: e000 b.n 801bb4e <tcp_connect+0x76>
  68390. 801bb4c: 2300 movs r3, #0
  68391. 801bb4e: 68fa ldr r2, [r7, #12]
  68392. 801bb50: 6053 str r3, [r2, #4]
  68393. pcb->remote_port = port;
  68394. 801bb52: 68fb ldr r3, [r7, #12]
  68395. 801bb54: 88fa ldrh r2, [r7, #6]
  68396. 801bb56: 831a strh r2, [r3, #24]
  68397. if (pcb->netif_idx != NETIF_NO_INDEX) {
  68398. 801bb58: 68fb ldr r3, [r7, #12]
  68399. 801bb5a: 7a1b ldrb r3, [r3, #8]
  68400. 801bb5c: 2b00 cmp r3, #0
  68401. 801bb5e: d006 beq.n 801bb6e <tcp_connect+0x96>
  68402. netif = netif_get_by_index(pcb->netif_idx);
  68403. 801bb60: 68fb ldr r3, [r7, #12]
  68404. 801bb62: 7a1b ldrb r3, [r3, #8]
  68405. 801bb64: 4618 mov r0, r3
  68406. 801bb66: f7fe fcf1 bl 801a54c <netif_get_by_index>
  68407. 801bb6a: 6278 str r0, [r7, #36] @ 0x24
  68408. 801bb6c: e005 b.n 801bb7a <tcp_connect+0xa2>
  68409. } else {
  68410. /* check if we have a route to the remote host */
  68411. netif = ip_route(&pcb->local_ip, &pcb->remote_ip);
  68412. 801bb6e: 68fb ldr r3, [r7, #12]
  68413. 801bb70: 3304 adds r3, #4
  68414. 801bb72: 4618 mov r0, r3
  68415. 801bb74: f009 fb14 bl 80251a0 <ip4_route>
  68416. 801bb78: 6278 str r0, [r7, #36] @ 0x24
  68417. }
  68418. if (netif == NULL) {
  68419. 801bb7a: 6a7b ldr r3, [r7, #36] @ 0x24
  68420. 801bb7c: 2b00 cmp r3, #0
  68421. 801bb7e: d102 bne.n 801bb86 <tcp_connect+0xae>
  68422. /* Don't even try to send a SYN packet if we have no route since that will fail. */
  68423. return ERR_RTE;
  68424. 801bb80: f06f 0303 mvn.w r3, #3
  68425. 801bb84: e0ae b.n 801bce4 <tcp_connect+0x20c>
  68426. }
  68427. /* check if local IP has been assigned to pcb, if not, get one */
  68428. if (ip_addr_isany(&pcb->local_ip)) {
  68429. 801bb86: 68fb ldr r3, [r7, #12]
  68430. 801bb88: 2b00 cmp r3, #0
  68431. 801bb8a: d003 beq.n 801bb94 <tcp_connect+0xbc>
  68432. 801bb8c: 68fb ldr r3, [r7, #12]
  68433. 801bb8e: 681b ldr r3, [r3, #0]
  68434. 801bb90: 2b00 cmp r3, #0
  68435. 801bb92: d111 bne.n 801bbb8 <tcp_connect+0xe0>
  68436. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, ipaddr);
  68437. 801bb94: 6a7b ldr r3, [r7, #36] @ 0x24
  68438. 801bb96: 2b00 cmp r3, #0
  68439. 801bb98: d002 beq.n 801bba0 <tcp_connect+0xc8>
  68440. 801bb9a: 6a7b ldr r3, [r7, #36] @ 0x24
  68441. 801bb9c: 3304 adds r3, #4
  68442. 801bb9e: e000 b.n 801bba2 <tcp_connect+0xca>
  68443. 801bba0: 2300 movs r3, #0
  68444. 801bba2: 61fb str r3, [r7, #28]
  68445. if (local_ip == NULL) {
  68446. 801bba4: 69fb ldr r3, [r7, #28]
  68447. 801bba6: 2b00 cmp r3, #0
  68448. 801bba8: d102 bne.n 801bbb0 <tcp_connect+0xd8>
  68449. return ERR_RTE;
  68450. 801bbaa: f06f 0303 mvn.w r3, #3
  68451. 801bbae: e099 b.n 801bce4 <tcp_connect+0x20c>
  68452. }
  68453. ip_addr_copy(pcb->local_ip, *local_ip);
  68454. 801bbb0: 69fb ldr r3, [r7, #28]
  68455. 801bbb2: 681a ldr r2, [r3, #0]
  68456. 801bbb4: 68fb ldr r3, [r7, #12]
  68457. 801bbb6: 601a str r2, [r3, #0]
  68458. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST)) {
  68459. ip6_addr_assign_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNICAST, netif);
  68460. }
  68461. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  68462. old_local_port = pcb->local_port;
  68463. 801bbb8: 68fb ldr r3, [r7, #12]
  68464. 801bbba: 8adb ldrh r3, [r3, #22]
  68465. 801bbbc: 837b strh r3, [r7, #26]
  68466. if (pcb->local_port == 0) {
  68467. 801bbbe: 68fb ldr r3, [r7, #12]
  68468. 801bbc0: 8adb ldrh r3, [r3, #22]
  68469. 801bbc2: 2b00 cmp r3, #0
  68470. 801bbc4: d10c bne.n 801bbe0 <tcp_connect+0x108>
  68471. pcb->local_port = tcp_new_port();
  68472. 801bbc6: f7ff ff41 bl 801ba4c <tcp_new_port>
  68473. 801bbca: 4603 mov r3, r0
  68474. 801bbcc: 461a mov r2, r3
  68475. 801bbce: 68fb ldr r3, [r7, #12]
  68476. 801bbd0: 82da strh r2, [r3, #22]
  68477. if (pcb->local_port == 0) {
  68478. 801bbd2: 68fb ldr r3, [r7, #12]
  68479. 801bbd4: 8adb ldrh r3, [r3, #22]
  68480. 801bbd6: 2b00 cmp r3, #0
  68481. 801bbd8: d102 bne.n 801bbe0 <tcp_connect+0x108>
  68482. return ERR_BUF;
  68483. 801bbda: f06f 0301 mvn.w r3, #1
  68484. 801bbde: e081 b.n 801bce4 <tcp_connect+0x20c>
  68485. }
  68486. }
  68487. #endif /* SO_REUSE */
  68488. }
  68489. iss = tcp_next_iss(pcb);
  68490. 801bbe0: 68f8 ldr r0, [r7, #12]
  68491. 801bbe2: f001 f875 bl 801ccd0 <tcp_next_iss>
  68492. 801bbe6: 6178 str r0, [r7, #20]
  68493. pcb->rcv_nxt = 0;
  68494. 801bbe8: 68fb ldr r3, [r7, #12]
  68495. 801bbea: 2200 movs r2, #0
  68496. 801bbec: 625a str r2, [r3, #36] @ 0x24
  68497. pcb->snd_nxt = iss;
  68498. 801bbee: 68fb ldr r3, [r7, #12]
  68499. 801bbf0: 697a ldr r2, [r7, #20]
  68500. 801bbf2: 651a str r2, [r3, #80] @ 0x50
  68501. pcb->lastack = iss - 1;
  68502. 801bbf4: 697b ldr r3, [r7, #20]
  68503. 801bbf6: 1e5a subs r2, r3, #1
  68504. 801bbf8: 68fb ldr r3, [r7, #12]
  68505. 801bbfa: 645a str r2, [r3, #68] @ 0x44
  68506. pcb->snd_wl2 = iss - 1;
  68507. 801bbfc: 697b ldr r3, [r7, #20]
  68508. 801bbfe: 1e5a subs r2, r3, #1
  68509. 801bc00: 68fb ldr r3, [r7, #12]
  68510. 801bc02: 659a str r2, [r3, #88] @ 0x58
  68511. pcb->snd_lbb = iss - 1;
  68512. 801bc04: 697b ldr r3, [r7, #20]
  68513. 801bc06: 1e5a subs r2, r3, #1
  68514. 801bc08: 68fb ldr r3, [r7, #12]
  68515. 801bc0a: 65da str r2, [r3, #92] @ 0x5c
  68516. /* Start with a window that does not need scaling. When window scaling is
  68517. enabled and used, the window is enlarged when both sides agree on scaling. */
  68518. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  68519. 801bc0c: 68fb ldr r3, [r7, #12]
  68520. 801bc0e: f241 62d0 movw r2, #5840 @ 0x16d0
  68521. 801bc12: 855a strh r2, [r3, #42] @ 0x2a
  68522. 801bc14: 68fb ldr r3, [r7, #12]
  68523. 801bc16: 8d5a ldrh r2, [r3, #42] @ 0x2a
  68524. 801bc18: 68fb ldr r3, [r7, #12]
  68525. 801bc1a: 851a strh r2, [r3, #40] @ 0x28
  68526. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  68527. 801bc1c: 68fb ldr r3, [r7, #12]
  68528. 801bc1e: 6a5a ldr r2, [r3, #36] @ 0x24
  68529. 801bc20: 68fb ldr r3, [r7, #12]
  68530. 801bc22: 62da str r2, [r3, #44] @ 0x2c
  68531. pcb->snd_wnd = TCP_WND;
  68532. 801bc24: 68fb ldr r3, [r7, #12]
  68533. 801bc26: f241 62d0 movw r2, #5840 @ 0x16d0
  68534. 801bc2a: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  68535. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  68536. The send MSS is updated when an MSS option is received. */
  68537. pcb->mss = INITIAL_MSS;
  68538. 801bc2e: 68fb ldr r3, [r7, #12]
  68539. 801bc30: f44f 7206 mov.w r2, #536 @ 0x218
  68540. 801bc34: 865a strh r2, [r3, #50] @ 0x32
  68541. #if TCP_CALCULATE_EFF_SEND_MSS
  68542. pcb->mss = tcp_eff_send_mss_netif(pcb->mss, netif, &pcb->remote_ip);
  68543. 801bc36: 68fb ldr r3, [r7, #12]
  68544. 801bc38: 8e58 ldrh r0, [r3, #50] @ 0x32
  68545. 801bc3a: 68fb ldr r3, [r7, #12]
  68546. 801bc3c: 3304 adds r3, #4
  68547. 801bc3e: 461a mov r2, r3
  68548. 801bc40: 6a79 ldr r1, [r7, #36] @ 0x24
  68549. 801bc42: f001 f86b bl 801cd1c <tcp_eff_send_mss_netif>
  68550. 801bc46: 4603 mov r3, r0
  68551. 801bc48: 461a mov r2, r3
  68552. 801bc4a: 68fb ldr r3, [r7, #12]
  68553. 801bc4c: 865a strh r2, [r3, #50] @ 0x32
  68554. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  68555. pcb->cwnd = 1;
  68556. 801bc4e: 68fb ldr r3, [r7, #12]
  68557. 801bc50: 2201 movs r2, #1
  68558. 801bc52: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  68559. #if LWIP_CALLBACK_API
  68560. pcb->connected = connected;
  68561. 801bc56: 68fb ldr r3, [r7, #12]
  68562. 801bc58: 683a ldr r2, [r7, #0]
  68563. 801bc5a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  68564. #else /* LWIP_CALLBACK_API */
  68565. LWIP_UNUSED_ARG(connected);
  68566. #endif /* LWIP_CALLBACK_API */
  68567. /* Send a SYN together with the MSS option. */
  68568. ret = tcp_enqueue_flags(pcb, TCP_SYN);
  68569. 801bc5e: 2102 movs r1, #2
  68570. 801bc60: 68f8 ldr r0, [r7, #12]
  68571. 801bc62: f004 fb31 bl 80202c8 <tcp_enqueue_flags>
  68572. 801bc66: 4603 mov r3, r0
  68573. 801bc68: 74fb strb r3, [r7, #19]
  68574. if (ret == ERR_OK) {
  68575. 801bc6a: f997 3013 ldrsb.w r3, [r7, #19]
  68576. 801bc6e: 2b00 cmp r3, #0
  68577. 801bc70: d136 bne.n 801bce0 <tcp_connect+0x208>
  68578. /* SYN segment was enqueued, changed the pcbs state now */
  68579. pcb->state = SYN_SENT;
  68580. 801bc72: 68fb ldr r3, [r7, #12]
  68581. 801bc74: 2202 movs r2, #2
  68582. 801bc76: 751a strb r2, [r3, #20]
  68583. if (old_local_port != 0) {
  68584. 801bc78: 8b7b ldrh r3, [r7, #26]
  68585. 801bc7a: 2b00 cmp r3, #0
  68586. 801bc7c: d021 beq.n 801bcc2 <tcp_connect+0x1ea>
  68587. TCP_RMV(&tcp_bound_pcbs, pcb);
  68588. 801bc7e: 4b20 ldr r3, [pc, #128] @ (801bd00 <tcp_connect+0x228>)
  68589. 801bc80: 681b ldr r3, [r3, #0]
  68590. 801bc82: 68fa ldr r2, [r7, #12]
  68591. 801bc84: 429a cmp r2, r3
  68592. 801bc86: d105 bne.n 801bc94 <tcp_connect+0x1bc>
  68593. 801bc88: 4b1d ldr r3, [pc, #116] @ (801bd00 <tcp_connect+0x228>)
  68594. 801bc8a: 681b ldr r3, [r3, #0]
  68595. 801bc8c: 68db ldr r3, [r3, #12]
  68596. 801bc8e: 4a1c ldr r2, [pc, #112] @ (801bd00 <tcp_connect+0x228>)
  68597. 801bc90: 6013 str r3, [r2, #0]
  68598. 801bc92: e013 b.n 801bcbc <tcp_connect+0x1e4>
  68599. 801bc94: 4b1a ldr r3, [pc, #104] @ (801bd00 <tcp_connect+0x228>)
  68600. 801bc96: 681b ldr r3, [r3, #0]
  68601. 801bc98: 623b str r3, [r7, #32]
  68602. 801bc9a: e00c b.n 801bcb6 <tcp_connect+0x1de>
  68603. 801bc9c: 6a3b ldr r3, [r7, #32]
  68604. 801bc9e: 68db ldr r3, [r3, #12]
  68605. 801bca0: 68fa ldr r2, [r7, #12]
  68606. 801bca2: 429a cmp r2, r3
  68607. 801bca4: d104 bne.n 801bcb0 <tcp_connect+0x1d8>
  68608. 801bca6: 68fb ldr r3, [r7, #12]
  68609. 801bca8: 68da ldr r2, [r3, #12]
  68610. 801bcaa: 6a3b ldr r3, [r7, #32]
  68611. 801bcac: 60da str r2, [r3, #12]
  68612. 801bcae: e005 b.n 801bcbc <tcp_connect+0x1e4>
  68613. 801bcb0: 6a3b ldr r3, [r7, #32]
  68614. 801bcb2: 68db ldr r3, [r3, #12]
  68615. 801bcb4: 623b str r3, [r7, #32]
  68616. 801bcb6: 6a3b ldr r3, [r7, #32]
  68617. 801bcb8: 2b00 cmp r3, #0
  68618. 801bcba: d1ef bne.n 801bc9c <tcp_connect+0x1c4>
  68619. 801bcbc: 68fb ldr r3, [r7, #12]
  68620. 801bcbe: 2200 movs r2, #0
  68621. 801bcc0: 60da str r2, [r3, #12]
  68622. }
  68623. TCP_REG_ACTIVE(pcb);
  68624. 801bcc2: 4b10 ldr r3, [pc, #64] @ (801bd04 <tcp_connect+0x22c>)
  68625. 801bcc4: 681a ldr r2, [r3, #0]
  68626. 801bcc6: 68fb ldr r3, [r7, #12]
  68627. 801bcc8: 60da str r2, [r3, #12]
  68628. 801bcca: 4a0e ldr r2, [pc, #56] @ (801bd04 <tcp_connect+0x22c>)
  68629. 801bccc: 68fb ldr r3, [r7, #12]
  68630. 801bcce: 6013 str r3, [r2, #0]
  68631. 801bcd0: f005 fb6c bl 80213ac <tcp_timer_needed>
  68632. 801bcd4: 4b0c ldr r3, [pc, #48] @ (801bd08 <tcp_connect+0x230>)
  68633. 801bcd6: 2201 movs r2, #1
  68634. 801bcd8: 701a strb r2, [r3, #0]
  68635. MIB2_STATS_INC(mib2.tcpactiveopens);
  68636. tcp_output(pcb);
  68637. 801bcda: 68f8 ldr r0, [r7, #12]
  68638. 801bcdc: f004 fbe2 bl 80204a4 <tcp_output>
  68639. }
  68640. return ret;
  68641. 801bce0: f997 3013 ldrsb.w r3, [r7, #19]
  68642. }
  68643. 801bce4: 4618 mov r0, r3
  68644. 801bce6: 3728 adds r7, #40 @ 0x28
  68645. 801bce8: 46bd mov sp, r7
  68646. 801bcea: bd80 pop {r7, pc}
  68647. 801bcec: 0802ee3c .word 0x0802ee3c
  68648. 801bcf0: 0802f118 .word 0x0802f118
  68649. 801bcf4: 0802ee80 .word 0x0802ee80
  68650. 801bcf8: 0802f134 .word 0x0802f134
  68651. 801bcfc: 0802f150 .word 0x0802f150
  68652. 801bd00: 2402af5c .word 0x2402af5c
  68653. 801bd04: 2402af64 .word 0x2402af64
  68654. 801bd08: 2402af6c .word 0x2402af6c
  68655. 0801bd0c <tcp_slowtmr>:
  68656. *
  68657. * Automatically called from tcp_tmr().
  68658. */
  68659. void
  68660. tcp_slowtmr(void)
  68661. {
  68662. 801bd0c: b5b0 push {r4, r5, r7, lr}
  68663. 801bd0e: b090 sub sp, #64 @ 0x40
  68664. 801bd10: af04 add r7, sp, #16
  68665. tcpwnd_size_t eff_wnd;
  68666. u8_t pcb_remove; /* flag if a PCB should be removed */
  68667. u8_t pcb_reset; /* flag if a RST should be sent when removing */
  68668. err_t err;
  68669. err = ERR_OK;
  68670. 801bd12: 2300 movs r3, #0
  68671. 801bd14: f887 3025 strb.w r3, [r7, #37] @ 0x25
  68672. ++tcp_ticks;
  68673. 801bd18: 4b95 ldr r3, [pc, #596] @ (801bf70 <tcp_slowtmr+0x264>)
  68674. 801bd1a: 681b ldr r3, [r3, #0]
  68675. 801bd1c: 3301 adds r3, #1
  68676. 801bd1e: 4a94 ldr r2, [pc, #592] @ (801bf70 <tcp_slowtmr+0x264>)
  68677. 801bd20: 6013 str r3, [r2, #0]
  68678. ++tcp_timer_ctr;
  68679. 801bd22: 4b94 ldr r3, [pc, #592] @ (801bf74 <tcp_slowtmr+0x268>)
  68680. 801bd24: 781b ldrb r3, [r3, #0]
  68681. 801bd26: 3301 adds r3, #1
  68682. 801bd28: b2da uxtb r2, r3
  68683. 801bd2a: 4b92 ldr r3, [pc, #584] @ (801bf74 <tcp_slowtmr+0x268>)
  68684. 801bd2c: 701a strb r2, [r3, #0]
  68685. 801bd2e: e000 b.n 801bd32 <tcp_slowtmr+0x26>
  68686. prev->polltmr = 0;
  68687. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n"));
  68688. tcp_active_pcbs_changed = 0;
  68689. TCP_EVENT_POLL(prev, err);
  68690. if (tcp_active_pcbs_changed) {
  68691. goto tcp_slowtmr_start;
  68692. 801bd30: bf00 nop
  68693. prev = NULL;
  68694. 801bd32: 2300 movs r3, #0
  68695. 801bd34: 62bb str r3, [r7, #40] @ 0x28
  68696. pcb = tcp_active_pcbs;
  68697. 801bd36: 4b90 ldr r3, [pc, #576] @ (801bf78 <tcp_slowtmr+0x26c>)
  68698. 801bd38: 681b ldr r3, [r3, #0]
  68699. 801bd3a: 62fb str r3, [r7, #44] @ 0x2c
  68700. while (pcb != NULL) {
  68701. 801bd3c: e29d b.n 801c27a <tcp_slowtmr+0x56e>
  68702. LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED);
  68703. 801bd3e: 6afb ldr r3, [r7, #44] @ 0x2c
  68704. 801bd40: 7d1b ldrb r3, [r3, #20]
  68705. 801bd42: 2b00 cmp r3, #0
  68706. 801bd44: d106 bne.n 801bd54 <tcp_slowtmr+0x48>
  68707. 801bd46: 4b8d ldr r3, [pc, #564] @ (801bf7c <tcp_slowtmr+0x270>)
  68708. 801bd48: f240 42be movw r2, #1214 @ 0x4be
  68709. 801bd4c: 498c ldr r1, [pc, #560] @ (801bf80 <tcp_slowtmr+0x274>)
  68710. 801bd4e: 488d ldr r0, [pc, #564] @ (801bf84 <tcp_slowtmr+0x278>)
  68711. 801bd50: f00e fa34 bl 802a1bc <iprintf>
  68712. LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN);
  68713. 801bd54: 6afb ldr r3, [r7, #44] @ 0x2c
  68714. 801bd56: 7d1b ldrb r3, [r3, #20]
  68715. 801bd58: 2b01 cmp r3, #1
  68716. 801bd5a: d106 bne.n 801bd6a <tcp_slowtmr+0x5e>
  68717. 801bd5c: 4b87 ldr r3, [pc, #540] @ (801bf7c <tcp_slowtmr+0x270>)
  68718. 801bd5e: f240 42bf movw r2, #1215 @ 0x4bf
  68719. 801bd62: 4989 ldr r1, [pc, #548] @ (801bf88 <tcp_slowtmr+0x27c>)
  68720. 801bd64: 4887 ldr r0, [pc, #540] @ (801bf84 <tcp_slowtmr+0x278>)
  68721. 801bd66: f00e fa29 bl 802a1bc <iprintf>
  68722. LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT);
  68723. 801bd6a: 6afb ldr r3, [r7, #44] @ 0x2c
  68724. 801bd6c: 7d1b ldrb r3, [r3, #20]
  68725. 801bd6e: 2b0a cmp r3, #10
  68726. 801bd70: d106 bne.n 801bd80 <tcp_slowtmr+0x74>
  68727. 801bd72: 4b82 ldr r3, [pc, #520] @ (801bf7c <tcp_slowtmr+0x270>)
  68728. 801bd74: f44f 6298 mov.w r2, #1216 @ 0x4c0
  68729. 801bd78: 4984 ldr r1, [pc, #528] @ (801bf8c <tcp_slowtmr+0x280>)
  68730. 801bd7a: 4882 ldr r0, [pc, #520] @ (801bf84 <tcp_slowtmr+0x278>)
  68731. 801bd7c: f00e fa1e bl 802a1bc <iprintf>
  68732. if (pcb->last_timer == tcp_timer_ctr) {
  68733. 801bd80: 6afb ldr r3, [r7, #44] @ 0x2c
  68734. 801bd82: 7f9a ldrb r2, [r3, #30]
  68735. 801bd84: 4b7b ldr r3, [pc, #492] @ (801bf74 <tcp_slowtmr+0x268>)
  68736. 801bd86: 781b ldrb r3, [r3, #0]
  68737. 801bd88: 429a cmp r2, r3
  68738. 801bd8a: d105 bne.n 801bd98 <tcp_slowtmr+0x8c>
  68739. prev = pcb;
  68740. 801bd8c: 6afb ldr r3, [r7, #44] @ 0x2c
  68741. 801bd8e: 62bb str r3, [r7, #40] @ 0x28
  68742. pcb = pcb->next;
  68743. 801bd90: 6afb ldr r3, [r7, #44] @ 0x2c
  68744. 801bd92: 68db ldr r3, [r3, #12]
  68745. 801bd94: 62fb str r3, [r7, #44] @ 0x2c
  68746. continue;
  68747. 801bd96: e270 b.n 801c27a <tcp_slowtmr+0x56e>
  68748. pcb->last_timer = tcp_timer_ctr;
  68749. 801bd98: 4b76 ldr r3, [pc, #472] @ (801bf74 <tcp_slowtmr+0x268>)
  68750. 801bd9a: 781a ldrb r2, [r3, #0]
  68751. 801bd9c: 6afb ldr r3, [r7, #44] @ 0x2c
  68752. 801bd9e: 779a strb r2, [r3, #30]
  68753. pcb_remove = 0;
  68754. 801bda0: 2300 movs r3, #0
  68755. 801bda2: f887 3027 strb.w r3, [r7, #39] @ 0x27
  68756. pcb_reset = 0;
  68757. 801bda6: 2300 movs r3, #0
  68758. 801bda8: f887 3026 strb.w r3, [r7, #38] @ 0x26
  68759. if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) {
  68760. 801bdac: 6afb ldr r3, [r7, #44] @ 0x2c
  68761. 801bdae: 7d1b ldrb r3, [r3, #20]
  68762. 801bdb0: 2b02 cmp r3, #2
  68763. 801bdb2: d10a bne.n 801bdca <tcp_slowtmr+0xbe>
  68764. 801bdb4: 6afb ldr r3, [r7, #44] @ 0x2c
  68765. 801bdb6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  68766. 801bdba: 2b05 cmp r3, #5
  68767. 801bdbc: d905 bls.n 801bdca <tcp_slowtmr+0xbe>
  68768. ++pcb_remove;
  68769. 801bdbe: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  68770. 801bdc2: 3301 adds r3, #1
  68771. 801bdc4: f887 3027 strb.w r3, [r7, #39] @ 0x27
  68772. LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n"));
  68773. 801bdc8: e11e b.n 801c008 <tcp_slowtmr+0x2fc>
  68774. } else if (pcb->nrtx >= TCP_MAXRTX) {
  68775. 801bdca: 6afb ldr r3, [r7, #44] @ 0x2c
  68776. 801bdcc: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  68777. 801bdd0: 2b0b cmp r3, #11
  68778. 801bdd2: d905 bls.n 801bde0 <tcp_slowtmr+0xd4>
  68779. ++pcb_remove;
  68780. 801bdd4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  68781. 801bdd8: 3301 adds r3, #1
  68782. 801bdda: f887 3027 strb.w r3, [r7, #39] @ 0x27
  68783. 801bdde: e113 b.n 801c008 <tcp_slowtmr+0x2fc>
  68784. if (pcb->persist_backoff > 0) {
  68785. 801bde0: 6afb ldr r3, [r7, #44] @ 0x2c
  68786. 801bde2: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  68787. 801bde6: 2b00 cmp r3, #0
  68788. 801bde8: d075 beq.n 801bed6 <tcp_slowtmr+0x1ca>
  68789. LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL);
  68790. 801bdea: 6afb ldr r3, [r7, #44] @ 0x2c
  68791. 801bdec: 6f1b ldr r3, [r3, #112] @ 0x70
  68792. 801bdee: 2b00 cmp r3, #0
  68793. 801bdf0: d006 beq.n 801be00 <tcp_slowtmr+0xf4>
  68794. 801bdf2: 4b62 ldr r3, [pc, #392] @ (801bf7c <tcp_slowtmr+0x270>)
  68795. 801bdf4: f240 42d4 movw r2, #1236 @ 0x4d4
  68796. 801bdf8: 4965 ldr r1, [pc, #404] @ (801bf90 <tcp_slowtmr+0x284>)
  68797. 801bdfa: 4862 ldr r0, [pc, #392] @ (801bf84 <tcp_slowtmr+0x278>)
  68798. 801bdfc: f00e f9de bl 802a1bc <iprintf>
  68799. LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL);
  68800. 801be00: 6afb ldr r3, [r7, #44] @ 0x2c
  68801. 801be02: 6edb ldr r3, [r3, #108] @ 0x6c
  68802. 801be04: 2b00 cmp r3, #0
  68803. 801be06: d106 bne.n 801be16 <tcp_slowtmr+0x10a>
  68804. 801be08: 4b5c ldr r3, [pc, #368] @ (801bf7c <tcp_slowtmr+0x270>)
  68805. 801be0a: f240 42d5 movw r2, #1237 @ 0x4d5
  68806. 801be0e: 4961 ldr r1, [pc, #388] @ (801bf94 <tcp_slowtmr+0x288>)
  68807. 801be10: 485c ldr r0, [pc, #368] @ (801bf84 <tcp_slowtmr+0x278>)
  68808. 801be12: f00e f9d3 bl 802a1bc <iprintf>
  68809. if (pcb->persist_probe >= TCP_MAXRTX) {
  68810. 801be16: 6afb ldr r3, [r7, #44] @ 0x2c
  68811. 801be18: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  68812. 801be1c: 2b0b cmp r3, #11
  68813. 801be1e: d905 bls.n 801be2c <tcp_slowtmr+0x120>
  68814. ++pcb_remove; /* max probes reached */
  68815. 801be20: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  68816. 801be24: 3301 adds r3, #1
  68817. 801be26: f887 3027 strb.w r3, [r7, #39] @ 0x27
  68818. 801be2a: e0ed b.n 801c008 <tcp_slowtmr+0x2fc>
  68819. u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1];
  68820. 801be2c: 6afb ldr r3, [r7, #44] @ 0x2c
  68821. 801be2e: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  68822. 801be32: 3b01 subs r3, #1
  68823. 801be34: 4a58 ldr r2, [pc, #352] @ (801bf98 <tcp_slowtmr+0x28c>)
  68824. 801be36: 5cd3 ldrb r3, [r2, r3]
  68825. 801be38: 747b strb r3, [r7, #17]
  68826. if (pcb->persist_cnt < backoff_cnt) {
  68827. 801be3a: 6afb ldr r3, [r7, #44] @ 0x2c
  68828. 801be3c: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  68829. 801be40: 7c7a ldrb r2, [r7, #17]
  68830. 801be42: 429a cmp r2, r3
  68831. 801be44: d907 bls.n 801be56 <tcp_slowtmr+0x14a>
  68832. pcb->persist_cnt++;
  68833. 801be46: 6afb ldr r3, [r7, #44] @ 0x2c
  68834. 801be48: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  68835. 801be4c: 3301 adds r3, #1
  68836. 801be4e: b2da uxtb r2, r3
  68837. 801be50: 6afb ldr r3, [r7, #44] @ 0x2c
  68838. 801be52: f883 2098 strb.w r2, [r3, #152] @ 0x98
  68839. if (pcb->persist_cnt >= backoff_cnt) {
  68840. 801be56: 6afb ldr r3, [r7, #44] @ 0x2c
  68841. 801be58: f893 3098 ldrb.w r3, [r3, #152] @ 0x98
  68842. 801be5c: 7c7a ldrb r2, [r7, #17]
  68843. 801be5e: 429a cmp r2, r3
  68844. 801be60: f200 80d2 bhi.w 801c008 <tcp_slowtmr+0x2fc>
  68845. int next_slot = 1; /* increment timer to next slot */
  68846. 801be64: 2301 movs r3, #1
  68847. 801be66: 623b str r3, [r7, #32]
  68848. if (pcb->snd_wnd == 0) {
  68849. 801be68: 6afb ldr r3, [r7, #44] @ 0x2c
  68850. 801be6a: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  68851. 801be6e: 2b00 cmp r3, #0
  68852. 801be70: d108 bne.n 801be84 <tcp_slowtmr+0x178>
  68853. if (tcp_zero_window_probe(pcb) != ERR_OK) {
  68854. 801be72: 6af8 ldr r0, [r7, #44] @ 0x2c
  68855. 801be74: f005 f9cc bl 8021210 <tcp_zero_window_probe>
  68856. 801be78: 4603 mov r3, r0
  68857. 801be7a: 2b00 cmp r3, #0
  68858. 801be7c: d014 beq.n 801bea8 <tcp_slowtmr+0x19c>
  68859. next_slot = 0; /* try probe again with current slot */
  68860. 801be7e: 2300 movs r3, #0
  68861. 801be80: 623b str r3, [r7, #32]
  68862. 801be82: e011 b.n 801bea8 <tcp_slowtmr+0x19c>
  68863. if (tcp_split_unsent_seg(pcb, (u16_t)pcb->snd_wnd) == ERR_OK) {
  68864. 801be84: 6afb ldr r3, [r7, #44] @ 0x2c
  68865. 801be86: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  68866. 801be8a: 4619 mov r1, r3
  68867. 801be8c: 6af8 ldr r0, [r7, #44] @ 0x2c
  68868. 801be8e: f004 f87f bl 801ff90 <tcp_split_unsent_seg>
  68869. 801be92: 4603 mov r3, r0
  68870. 801be94: 2b00 cmp r3, #0
  68871. 801be96: d107 bne.n 801bea8 <tcp_slowtmr+0x19c>
  68872. if (tcp_output(pcb) == ERR_OK) {
  68873. 801be98: 6af8 ldr r0, [r7, #44] @ 0x2c
  68874. 801be9a: f004 fb03 bl 80204a4 <tcp_output>
  68875. 801be9e: 4603 mov r3, r0
  68876. 801bea0: 2b00 cmp r3, #0
  68877. 801bea2: d101 bne.n 801bea8 <tcp_slowtmr+0x19c>
  68878. next_slot = 0;
  68879. 801bea4: 2300 movs r3, #0
  68880. 801bea6: 623b str r3, [r7, #32]
  68881. if (next_slot) {
  68882. 801bea8: 6a3b ldr r3, [r7, #32]
  68883. 801beaa: 2b00 cmp r3, #0
  68884. 801beac: f000 80ac beq.w 801c008 <tcp_slowtmr+0x2fc>
  68885. pcb->persist_cnt = 0;
  68886. 801beb0: 6afb ldr r3, [r7, #44] @ 0x2c
  68887. 801beb2: 2200 movs r2, #0
  68888. 801beb4: f883 2098 strb.w r2, [r3, #152] @ 0x98
  68889. if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) {
  68890. 801beb8: 6afb ldr r3, [r7, #44] @ 0x2c
  68891. 801beba: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  68892. 801bebe: 2b06 cmp r3, #6
  68893. 801bec0: f200 80a2 bhi.w 801c008 <tcp_slowtmr+0x2fc>
  68894. pcb->persist_backoff++;
  68895. 801bec4: 6afb ldr r3, [r7, #44] @ 0x2c
  68896. 801bec6: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  68897. 801beca: 3301 adds r3, #1
  68898. 801becc: b2da uxtb r2, r3
  68899. 801bece: 6afb ldr r3, [r7, #44] @ 0x2c
  68900. 801bed0: f883 2099 strb.w r2, [r3, #153] @ 0x99
  68901. 801bed4: e098 b.n 801c008 <tcp_slowtmr+0x2fc>
  68902. if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) {
  68903. 801bed6: 6afb ldr r3, [r7, #44] @ 0x2c
  68904. 801bed8: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  68905. 801bedc: 2b00 cmp r3, #0
  68906. 801bede: db0f blt.n 801bf00 <tcp_slowtmr+0x1f4>
  68907. 801bee0: 6afb ldr r3, [r7, #44] @ 0x2c
  68908. 801bee2: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  68909. 801bee6: f647 72ff movw r2, #32767 @ 0x7fff
  68910. 801beea: 4293 cmp r3, r2
  68911. 801beec: d008 beq.n 801bf00 <tcp_slowtmr+0x1f4>
  68912. ++pcb->rtime;
  68913. 801beee: 6afb ldr r3, [r7, #44] @ 0x2c
  68914. 801bef0: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  68915. 801bef4: b29b uxth r3, r3
  68916. 801bef6: 3301 adds r3, #1
  68917. 801bef8: b29b uxth r3, r3
  68918. 801befa: b21a sxth r2, r3
  68919. 801befc: 6afb ldr r3, [r7, #44] @ 0x2c
  68920. 801befe: 861a strh r2, [r3, #48] @ 0x30
  68921. if (pcb->rtime >= pcb->rto) {
  68922. 801bf00: 6afb ldr r3, [r7, #44] @ 0x2c
  68923. 801bf02: f9b3 2030 ldrsh.w r2, [r3, #48] @ 0x30
  68924. 801bf06: 6afb ldr r3, [r7, #44] @ 0x2c
  68925. 801bf08: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  68926. 801bf0c: 429a cmp r2, r3
  68927. 801bf0e: db7b blt.n 801c008 <tcp_slowtmr+0x2fc>
  68928. if ((tcp_rexmit_rto_prepare(pcb) == ERR_OK) || ((pcb->unacked == NULL) && (pcb->unsent != NULL))) {
  68929. 801bf10: 6af8 ldr r0, [r7, #44] @ 0x2c
  68930. 801bf12: f004 fdbf bl 8020a94 <tcp_rexmit_rto_prepare>
  68931. 801bf16: 4603 mov r3, r0
  68932. 801bf18: 2b00 cmp r3, #0
  68933. 801bf1a: d007 beq.n 801bf2c <tcp_slowtmr+0x220>
  68934. 801bf1c: 6afb ldr r3, [r7, #44] @ 0x2c
  68935. 801bf1e: 6f1b ldr r3, [r3, #112] @ 0x70
  68936. 801bf20: 2b00 cmp r3, #0
  68937. 801bf22: d171 bne.n 801c008 <tcp_slowtmr+0x2fc>
  68938. 801bf24: 6afb ldr r3, [r7, #44] @ 0x2c
  68939. 801bf26: 6edb ldr r3, [r3, #108] @ 0x6c
  68940. 801bf28: 2b00 cmp r3, #0
  68941. 801bf2a: d06d beq.n 801c008 <tcp_slowtmr+0x2fc>
  68942. if (pcb->state != SYN_SENT) {
  68943. 801bf2c: 6afb ldr r3, [r7, #44] @ 0x2c
  68944. 801bf2e: 7d1b ldrb r3, [r3, #20]
  68945. 801bf30: 2b02 cmp r3, #2
  68946. 801bf32: d03a beq.n 801bfaa <tcp_slowtmr+0x29e>
  68947. u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1);
  68948. 801bf34: 6afb ldr r3, [r7, #44] @ 0x2c
  68949. 801bf36: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  68950. 801bf3a: 2b0c cmp r3, #12
  68951. 801bf3c: bf28 it cs
  68952. 801bf3e: 230c movcs r3, #12
  68953. 801bf40: 76fb strb r3, [r7, #27]
  68954. int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx];
  68955. 801bf42: 6afb ldr r3, [r7, #44] @ 0x2c
  68956. 801bf44: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  68957. 801bf48: 10db asrs r3, r3, #3
  68958. 801bf4a: b21b sxth r3, r3
  68959. 801bf4c: 461a mov r2, r3
  68960. 801bf4e: 6afb ldr r3, [r7, #44] @ 0x2c
  68961. 801bf50: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  68962. 801bf54: 4413 add r3, r2
  68963. 801bf56: 7efa ldrb r2, [r7, #27]
  68964. 801bf58: 4910 ldr r1, [pc, #64] @ (801bf9c <tcp_slowtmr+0x290>)
  68965. 801bf5a: 5c8a ldrb r2, [r1, r2]
  68966. 801bf5c: 4093 lsls r3, r2
  68967. 801bf5e: 617b str r3, [r7, #20]
  68968. pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF);
  68969. 801bf60: 697b ldr r3, [r7, #20]
  68970. 801bf62: f647 72fe movw r2, #32766 @ 0x7ffe
  68971. 801bf66: 4293 cmp r3, r2
  68972. 801bf68: dc1a bgt.n 801bfa0 <tcp_slowtmr+0x294>
  68973. 801bf6a: 697b ldr r3, [r7, #20]
  68974. 801bf6c: b21a sxth r2, r3
  68975. 801bf6e: e019 b.n 801bfa4 <tcp_slowtmr+0x298>
  68976. 801bf70: 2402af58 .word 0x2402af58
  68977. 801bf74: 2402af6e .word 0x2402af6e
  68978. 801bf78: 2402af64 .word 0x2402af64
  68979. 801bf7c: 0802ee3c .word 0x0802ee3c
  68980. 801bf80: 0802f180 .word 0x0802f180
  68981. 801bf84: 0802ee80 .word 0x0802ee80
  68982. 801bf88: 0802f1ac .word 0x0802f1ac
  68983. 801bf8c: 0802f1d8 .word 0x0802f1d8
  68984. 801bf90: 0802f208 .word 0x0802f208
  68985. 801bf94: 0802f23c .word 0x0802f23c
  68986. 801bf98: 080314b4 .word 0x080314b4
  68987. 801bf9c: 080314a4 .word 0x080314a4
  68988. 801bfa0: f647 72ff movw r2, #32767 @ 0x7fff
  68989. 801bfa4: 6afb ldr r3, [r7, #44] @ 0x2c
  68990. 801bfa6: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  68991. pcb->rtime = 0;
  68992. 801bfaa: 6afb ldr r3, [r7, #44] @ 0x2c
  68993. 801bfac: 2200 movs r2, #0
  68994. 801bfae: 861a strh r2, [r3, #48] @ 0x30
  68995. eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd);
  68996. 801bfb0: 6afb ldr r3, [r7, #44] @ 0x2c
  68997. 801bfb2: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  68998. 801bfb6: 6afb ldr r3, [r7, #44] @ 0x2c
  68999. 801bfb8: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  69000. 801bfbc: 4293 cmp r3, r2
  69001. 801bfbe: bf28 it cs
  69002. 801bfc0: 4613 movcs r3, r2
  69003. 801bfc2: 827b strh r3, [r7, #18]
  69004. pcb->ssthresh = eff_wnd >> 1;
  69005. 801bfc4: 8a7b ldrh r3, [r7, #18]
  69006. 801bfc6: 085b lsrs r3, r3, #1
  69007. 801bfc8: b29a uxth r2, r3
  69008. 801bfca: 6afb ldr r3, [r7, #44] @ 0x2c
  69009. 801bfcc: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  69010. if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) {
  69011. 801bfd0: 6afb ldr r3, [r7, #44] @ 0x2c
  69012. 801bfd2: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  69013. 801bfd6: 6afb ldr r3, [r7, #44] @ 0x2c
  69014. 801bfd8: 8e5b ldrh r3, [r3, #50] @ 0x32
  69015. 801bfda: 005b lsls r3, r3, #1
  69016. 801bfdc: b29b uxth r3, r3
  69017. 801bfde: 429a cmp r2, r3
  69018. 801bfe0: d206 bcs.n 801bff0 <tcp_slowtmr+0x2e4>
  69019. pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1);
  69020. 801bfe2: 6afb ldr r3, [r7, #44] @ 0x2c
  69021. 801bfe4: 8e5b ldrh r3, [r3, #50] @ 0x32
  69022. 801bfe6: 005b lsls r3, r3, #1
  69023. 801bfe8: b29a uxth r2, r3
  69024. 801bfea: 6afb ldr r3, [r7, #44] @ 0x2c
  69025. 801bfec: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  69026. pcb->cwnd = pcb->mss;
  69027. 801bff0: 6afb ldr r3, [r7, #44] @ 0x2c
  69028. 801bff2: 8e5a ldrh r2, [r3, #50] @ 0x32
  69029. 801bff4: 6afb ldr r3, [r7, #44] @ 0x2c
  69030. 801bff6: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  69031. pcb->bytes_acked = 0;
  69032. 801bffa: 6afb ldr r3, [r7, #44] @ 0x2c
  69033. 801bffc: 2200 movs r2, #0
  69034. 801bffe: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  69035. tcp_rexmit_rto_commit(pcb);
  69036. 801c002: 6af8 ldr r0, [r7, #44] @ 0x2c
  69037. 801c004: f004 fdc0 bl 8020b88 <tcp_rexmit_rto_commit>
  69038. if (pcb->state == FIN_WAIT_2) {
  69039. 801c008: 6afb ldr r3, [r7, #44] @ 0x2c
  69040. 801c00a: 7d1b ldrb r3, [r3, #20]
  69041. 801c00c: 2b06 cmp r3, #6
  69042. 801c00e: d111 bne.n 801c034 <tcp_slowtmr+0x328>
  69043. if (pcb->flags & TF_RXCLOSED) {
  69044. 801c010: 6afb ldr r3, [r7, #44] @ 0x2c
  69045. 801c012: 8b5b ldrh r3, [r3, #26]
  69046. 801c014: f003 0310 and.w r3, r3, #16
  69047. 801c018: 2b00 cmp r3, #0
  69048. 801c01a: d00b beq.n 801c034 <tcp_slowtmr+0x328>
  69049. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69050. 801c01c: 4b9c ldr r3, [pc, #624] @ (801c290 <tcp_slowtmr+0x584>)
  69051. 801c01e: 681a ldr r2, [r3, #0]
  69052. 801c020: 6afb ldr r3, [r7, #44] @ 0x2c
  69053. 801c022: 6a1b ldr r3, [r3, #32]
  69054. 801c024: 1ad3 subs r3, r2, r3
  69055. 801c026: 2b28 cmp r3, #40 @ 0x28
  69056. 801c028: d904 bls.n 801c034 <tcp_slowtmr+0x328>
  69057. ++pcb_remove;
  69058. 801c02a: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69059. 801c02e: 3301 adds r3, #1
  69060. 801c030: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69061. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  69062. 801c034: 6afb ldr r3, [r7, #44] @ 0x2c
  69063. 801c036: 7a5b ldrb r3, [r3, #9]
  69064. 801c038: f003 0308 and.w r3, r3, #8
  69065. 801c03c: 2b00 cmp r3, #0
  69066. 801c03e: d04a beq.n 801c0d6 <tcp_slowtmr+0x3ca>
  69067. ((pcb->state == ESTABLISHED) ||
  69068. 801c040: 6afb ldr r3, [r7, #44] @ 0x2c
  69069. 801c042: 7d1b ldrb r3, [r3, #20]
  69070. if (ip_get_option(pcb, SOF_KEEPALIVE) &&
  69071. 801c044: 2b04 cmp r3, #4
  69072. 801c046: d003 beq.n 801c050 <tcp_slowtmr+0x344>
  69073. (pcb->state == CLOSE_WAIT))) {
  69074. 801c048: 6afb ldr r3, [r7, #44] @ 0x2c
  69075. 801c04a: 7d1b ldrb r3, [r3, #20]
  69076. ((pcb->state == ESTABLISHED) ||
  69077. 801c04c: 2b07 cmp r3, #7
  69078. 801c04e: d142 bne.n 801c0d6 <tcp_slowtmr+0x3ca>
  69079. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69080. 801c050: 4b8f ldr r3, [pc, #572] @ (801c290 <tcp_slowtmr+0x584>)
  69081. 801c052: 681a ldr r2, [r3, #0]
  69082. 801c054: 6afb ldr r3, [r7, #44] @ 0x2c
  69083. 801c056: 6a1b ldr r3, [r3, #32]
  69084. 801c058: 1ad2 subs r2, r2, r3
  69085. (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) {
  69086. 801c05a: 6afb ldr r3, [r7, #44] @ 0x2c
  69087. 801c05c: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  69088. 801c060: 4b8c ldr r3, [pc, #560] @ (801c294 <tcp_slowtmr+0x588>)
  69089. 801c062: 440b add r3, r1
  69090. 801c064: 498c ldr r1, [pc, #560] @ (801c298 <tcp_slowtmr+0x58c>)
  69091. 801c066: fba1 1303 umull r1, r3, r1, r3
  69092. 801c06a: 095b lsrs r3, r3, #5
  69093. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69094. 801c06c: 429a cmp r2, r3
  69095. 801c06e: d90a bls.n 801c086 <tcp_slowtmr+0x37a>
  69096. ++pcb_remove;
  69097. 801c070: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69098. 801c074: 3301 adds r3, #1
  69099. 801c076: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69100. ++pcb_reset;
  69101. 801c07a: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  69102. 801c07e: 3301 adds r3, #1
  69103. 801c080: f887 3026 strb.w r3, [r7, #38] @ 0x26
  69104. 801c084: e027 b.n 801c0d6 <tcp_slowtmr+0x3ca>
  69105. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  69106. 801c086: 4b82 ldr r3, [pc, #520] @ (801c290 <tcp_slowtmr+0x584>)
  69107. 801c088: 681a ldr r2, [r3, #0]
  69108. 801c08a: 6afb ldr r3, [r7, #44] @ 0x2c
  69109. 801c08c: 6a1b ldr r3, [r3, #32]
  69110. 801c08e: 1ad2 subs r2, r2, r3
  69111. (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb))
  69112. 801c090: 6afb ldr r3, [r7, #44] @ 0x2c
  69113. 801c092: f8d3 1094 ldr.w r1, [r3, #148] @ 0x94
  69114. 801c096: 6afb ldr r3, [r7, #44] @ 0x2c
  69115. 801c098: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  69116. 801c09c: 4618 mov r0, r3
  69117. 801c09e: 4b7f ldr r3, [pc, #508] @ (801c29c <tcp_slowtmr+0x590>)
  69118. 801c0a0: fb00 f303 mul.w r3, r0, r3
  69119. 801c0a4: 440b add r3, r1
  69120. / TCP_SLOW_INTERVAL) {
  69121. 801c0a6: 497c ldr r1, [pc, #496] @ (801c298 <tcp_slowtmr+0x58c>)
  69122. 801c0a8: fba1 1303 umull r1, r3, r1, r3
  69123. 801c0ac: 095b lsrs r3, r3, #5
  69124. } else if ((u32_t)(tcp_ticks - pcb->tmr) >
  69125. 801c0ae: 429a cmp r2, r3
  69126. 801c0b0: d911 bls.n 801c0d6 <tcp_slowtmr+0x3ca>
  69127. err = tcp_keepalive(pcb);
  69128. 801c0b2: 6af8 ldr r0, [r7, #44] @ 0x2c
  69129. 801c0b4: f005 f86c bl 8021190 <tcp_keepalive>
  69130. 801c0b8: 4603 mov r3, r0
  69131. 801c0ba: f887 3025 strb.w r3, [r7, #37] @ 0x25
  69132. if (err == ERR_OK) {
  69133. 801c0be: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  69134. 801c0c2: 2b00 cmp r3, #0
  69135. 801c0c4: d107 bne.n 801c0d6 <tcp_slowtmr+0x3ca>
  69136. pcb->keep_cnt_sent++;
  69137. 801c0c6: 6afb ldr r3, [r7, #44] @ 0x2c
  69138. 801c0c8: f893 309b ldrb.w r3, [r3, #155] @ 0x9b
  69139. 801c0cc: 3301 adds r3, #1
  69140. 801c0ce: b2da uxtb r2, r3
  69141. 801c0d0: 6afb ldr r3, [r7, #44] @ 0x2c
  69142. 801c0d2: f883 209b strb.w r2, [r3, #155] @ 0x9b
  69143. if (pcb->ooseq != NULL &&
  69144. 801c0d6: 6afb ldr r3, [r7, #44] @ 0x2c
  69145. 801c0d8: 6f5b ldr r3, [r3, #116] @ 0x74
  69146. 801c0da: 2b00 cmp r3, #0
  69147. 801c0dc: d011 beq.n 801c102 <tcp_slowtmr+0x3f6>
  69148. (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) {
  69149. 801c0de: 4b6c ldr r3, [pc, #432] @ (801c290 <tcp_slowtmr+0x584>)
  69150. 801c0e0: 681a ldr r2, [r3, #0]
  69151. 801c0e2: 6afb ldr r3, [r7, #44] @ 0x2c
  69152. 801c0e4: 6a1b ldr r3, [r3, #32]
  69153. 801c0e6: 1ad2 subs r2, r2, r3
  69154. 801c0e8: 6afb ldr r3, [r7, #44] @ 0x2c
  69155. 801c0ea: f9b3 3040 ldrsh.w r3, [r3, #64] @ 0x40
  69156. 801c0ee: 4619 mov r1, r3
  69157. 801c0f0: 460b mov r3, r1
  69158. 801c0f2: 005b lsls r3, r3, #1
  69159. 801c0f4: 440b add r3, r1
  69160. 801c0f6: 005b lsls r3, r3, #1
  69161. if (pcb->ooseq != NULL &&
  69162. 801c0f8: 429a cmp r2, r3
  69163. 801c0fa: d302 bcc.n 801c102 <tcp_slowtmr+0x3f6>
  69164. tcp_free_ooseq(pcb);
  69165. 801c0fc: 6af8 ldr r0, [r7, #44] @ 0x2c
  69166. 801c0fe: f000 feb7 bl 801ce70 <tcp_free_ooseq>
  69167. if (pcb->state == SYN_RCVD) {
  69168. 801c102: 6afb ldr r3, [r7, #44] @ 0x2c
  69169. 801c104: 7d1b ldrb r3, [r3, #20]
  69170. 801c106: 2b03 cmp r3, #3
  69171. 801c108: d10b bne.n 801c122 <tcp_slowtmr+0x416>
  69172. if ((u32_t)(tcp_ticks - pcb->tmr) >
  69173. 801c10a: 4b61 ldr r3, [pc, #388] @ (801c290 <tcp_slowtmr+0x584>)
  69174. 801c10c: 681a ldr r2, [r3, #0]
  69175. 801c10e: 6afb ldr r3, [r7, #44] @ 0x2c
  69176. 801c110: 6a1b ldr r3, [r3, #32]
  69177. 801c112: 1ad3 subs r3, r2, r3
  69178. 801c114: 2b28 cmp r3, #40 @ 0x28
  69179. 801c116: d904 bls.n 801c122 <tcp_slowtmr+0x416>
  69180. ++pcb_remove;
  69181. 801c118: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69182. 801c11c: 3301 adds r3, #1
  69183. 801c11e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69184. if (pcb->state == LAST_ACK) {
  69185. 801c122: 6afb ldr r3, [r7, #44] @ 0x2c
  69186. 801c124: 7d1b ldrb r3, [r3, #20]
  69187. 801c126: 2b09 cmp r3, #9
  69188. 801c128: d10b bne.n 801c142 <tcp_slowtmr+0x436>
  69189. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  69190. 801c12a: 4b59 ldr r3, [pc, #356] @ (801c290 <tcp_slowtmr+0x584>)
  69191. 801c12c: 681a ldr r2, [r3, #0]
  69192. 801c12e: 6afb ldr r3, [r7, #44] @ 0x2c
  69193. 801c130: 6a1b ldr r3, [r3, #32]
  69194. 801c132: 1ad3 subs r3, r2, r3
  69195. 801c134: 2bf0 cmp r3, #240 @ 0xf0
  69196. 801c136: d904 bls.n 801c142 <tcp_slowtmr+0x436>
  69197. ++pcb_remove;
  69198. 801c138: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69199. 801c13c: 3301 adds r3, #1
  69200. 801c13e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69201. if (pcb_remove) {
  69202. 801c142: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69203. 801c146: 2b00 cmp r3, #0
  69204. 801c148: d060 beq.n 801c20c <tcp_slowtmr+0x500>
  69205. tcp_err_fn err_fn = pcb->errf;
  69206. 801c14a: 6afb ldr r3, [r7, #44] @ 0x2c
  69207. 801c14c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  69208. 801c150: 60fb str r3, [r7, #12]
  69209. tcp_pcb_purge(pcb);
  69210. 801c152: 6af8 ldr r0, [r7, #44] @ 0x2c
  69211. 801c154: f000 fcd8 bl 801cb08 <tcp_pcb_purge>
  69212. if (prev != NULL) {
  69213. 801c158: 6abb ldr r3, [r7, #40] @ 0x28
  69214. 801c15a: 2b00 cmp r3, #0
  69215. 801c15c: d010 beq.n 801c180 <tcp_slowtmr+0x474>
  69216. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs);
  69217. 801c15e: 4b50 ldr r3, [pc, #320] @ (801c2a0 <tcp_slowtmr+0x594>)
  69218. 801c160: 681b ldr r3, [r3, #0]
  69219. 801c162: 6afa ldr r2, [r7, #44] @ 0x2c
  69220. 801c164: 429a cmp r2, r3
  69221. 801c166: d106 bne.n 801c176 <tcp_slowtmr+0x46a>
  69222. 801c168: 4b4e ldr r3, [pc, #312] @ (801c2a4 <tcp_slowtmr+0x598>)
  69223. 801c16a: f240 526d movw r2, #1389 @ 0x56d
  69224. 801c16e: 494e ldr r1, [pc, #312] @ (801c2a8 <tcp_slowtmr+0x59c>)
  69225. 801c170: 484e ldr r0, [pc, #312] @ (801c2ac <tcp_slowtmr+0x5a0>)
  69226. 801c172: f00e f823 bl 802a1bc <iprintf>
  69227. prev->next = pcb->next;
  69228. 801c176: 6afb ldr r3, [r7, #44] @ 0x2c
  69229. 801c178: 68da ldr r2, [r3, #12]
  69230. 801c17a: 6abb ldr r3, [r7, #40] @ 0x28
  69231. 801c17c: 60da str r2, [r3, #12]
  69232. 801c17e: e00f b.n 801c1a0 <tcp_slowtmr+0x494>
  69233. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb);
  69234. 801c180: 4b47 ldr r3, [pc, #284] @ (801c2a0 <tcp_slowtmr+0x594>)
  69235. 801c182: 681b ldr r3, [r3, #0]
  69236. 801c184: 6afa ldr r2, [r7, #44] @ 0x2c
  69237. 801c186: 429a cmp r2, r3
  69238. 801c188: d006 beq.n 801c198 <tcp_slowtmr+0x48c>
  69239. 801c18a: 4b46 ldr r3, [pc, #280] @ (801c2a4 <tcp_slowtmr+0x598>)
  69240. 801c18c: f240 5271 movw r2, #1393 @ 0x571
  69241. 801c190: 4947 ldr r1, [pc, #284] @ (801c2b0 <tcp_slowtmr+0x5a4>)
  69242. 801c192: 4846 ldr r0, [pc, #280] @ (801c2ac <tcp_slowtmr+0x5a0>)
  69243. 801c194: f00e f812 bl 802a1bc <iprintf>
  69244. tcp_active_pcbs = pcb->next;
  69245. 801c198: 6afb ldr r3, [r7, #44] @ 0x2c
  69246. 801c19a: 68db ldr r3, [r3, #12]
  69247. 801c19c: 4a40 ldr r2, [pc, #256] @ (801c2a0 <tcp_slowtmr+0x594>)
  69248. 801c19e: 6013 str r3, [r2, #0]
  69249. if (pcb_reset) {
  69250. 801c1a0: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  69251. 801c1a4: 2b00 cmp r3, #0
  69252. 801c1a6: d013 beq.n 801c1d0 <tcp_slowtmr+0x4c4>
  69253. tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip,
  69254. 801c1a8: 6afb ldr r3, [r7, #44] @ 0x2c
  69255. 801c1aa: 6d18 ldr r0, [r3, #80] @ 0x50
  69256. 801c1ac: 6afb ldr r3, [r7, #44] @ 0x2c
  69257. 801c1ae: 6a5c ldr r4, [r3, #36] @ 0x24
  69258. 801c1b0: 6afd ldr r5, [r7, #44] @ 0x2c
  69259. 801c1b2: 6afb ldr r3, [r7, #44] @ 0x2c
  69260. 801c1b4: 3304 adds r3, #4
  69261. 801c1b6: 6afa ldr r2, [r7, #44] @ 0x2c
  69262. 801c1b8: 8ad2 ldrh r2, [r2, #22]
  69263. 801c1ba: 6af9 ldr r1, [r7, #44] @ 0x2c
  69264. 801c1bc: 8b09 ldrh r1, [r1, #24]
  69265. 801c1be: 9102 str r1, [sp, #8]
  69266. 801c1c0: 9201 str r2, [sp, #4]
  69267. 801c1c2: 9300 str r3, [sp, #0]
  69268. 801c1c4: 462b mov r3, r5
  69269. 801c1c6: 4622 mov r2, r4
  69270. 801c1c8: 4601 mov r1, r0
  69271. 801c1ca: 6af8 ldr r0, [r7, #44] @ 0x2c
  69272. 801c1cc: f004 ff2c bl 8021028 <tcp_rst>
  69273. err_arg = pcb->callback_arg;
  69274. 801c1d0: 6afb ldr r3, [r7, #44] @ 0x2c
  69275. 801c1d2: 691b ldr r3, [r3, #16]
  69276. 801c1d4: 60bb str r3, [r7, #8]
  69277. last_state = pcb->state;
  69278. 801c1d6: 6afb ldr r3, [r7, #44] @ 0x2c
  69279. 801c1d8: 7d1b ldrb r3, [r3, #20]
  69280. 801c1da: 71fb strb r3, [r7, #7]
  69281. pcb2 = pcb;
  69282. 801c1dc: 6afb ldr r3, [r7, #44] @ 0x2c
  69283. 801c1de: 603b str r3, [r7, #0]
  69284. pcb = pcb->next;
  69285. 801c1e0: 6afb ldr r3, [r7, #44] @ 0x2c
  69286. 801c1e2: 68db ldr r3, [r3, #12]
  69287. 801c1e4: 62fb str r3, [r7, #44] @ 0x2c
  69288. tcp_free(pcb2);
  69289. 801c1e6: 6838 ldr r0, [r7, #0]
  69290. 801c1e8: f7ff f82c bl 801b244 <tcp_free>
  69291. tcp_active_pcbs_changed = 0;
  69292. 801c1ec: 4b31 ldr r3, [pc, #196] @ (801c2b4 <tcp_slowtmr+0x5a8>)
  69293. 801c1ee: 2200 movs r2, #0
  69294. 801c1f0: 701a strb r2, [r3, #0]
  69295. TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT);
  69296. 801c1f2: 68fb ldr r3, [r7, #12]
  69297. 801c1f4: 2b00 cmp r3, #0
  69298. 801c1f6: d004 beq.n 801c202 <tcp_slowtmr+0x4f6>
  69299. 801c1f8: 68fb ldr r3, [r7, #12]
  69300. 801c1fa: f06f 010c mvn.w r1, #12
  69301. 801c1fe: 68b8 ldr r0, [r7, #8]
  69302. 801c200: 4798 blx r3
  69303. if (tcp_active_pcbs_changed) {
  69304. 801c202: 4b2c ldr r3, [pc, #176] @ (801c2b4 <tcp_slowtmr+0x5a8>)
  69305. 801c204: 781b ldrb r3, [r3, #0]
  69306. 801c206: 2b00 cmp r3, #0
  69307. 801c208: d037 beq.n 801c27a <tcp_slowtmr+0x56e>
  69308. goto tcp_slowtmr_start;
  69309. 801c20a: e592 b.n 801bd32 <tcp_slowtmr+0x26>
  69310. prev = pcb;
  69311. 801c20c: 6afb ldr r3, [r7, #44] @ 0x2c
  69312. 801c20e: 62bb str r3, [r7, #40] @ 0x28
  69313. pcb = pcb->next;
  69314. 801c210: 6afb ldr r3, [r7, #44] @ 0x2c
  69315. 801c212: 68db ldr r3, [r3, #12]
  69316. 801c214: 62fb str r3, [r7, #44] @ 0x2c
  69317. ++prev->polltmr;
  69318. 801c216: 6abb ldr r3, [r7, #40] @ 0x28
  69319. 801c218: 7f1b ldrb r3, [r3, #28]
  69320. 801c21a: 3301 adds r3, #1
  69321. 801c21c: b2da uxtb r2, r3
  69322. 801c21e: 6abb ldr r3, [r7, #40] @ 0x28
  69323. 801c220: 771a strb r2, [r3, #28]
  69324. if (prev->polltmr >= prev->pollinterval) {
  69325. 801c222: 6abb ldr r3, [r7, #40] @ 0x28
  69326. 801c224: 7f1a ldrb r2, [r3, #28]
  69327. 801c226: 6abb ldr r3, [r7, #40] @ 0x28
  69328. 801c228: 7f5b ldrb r3, [r3, #29]
  69329. 801c22a: 429a cmp r2, r3
  69330. 801c22c: d325 bcc.n 801c27a <tcp_slowtmr+0x56e>
  69331. prev->polltmr = 0;
  69332. 801c22e: 6abb ldr r3, [r7, #40] @ 0x28
  69333. 801c230: 2200 movs r2, #0
  69334. 801c232: 771a strb r2, [r3, #28]
  69335. tcp_active_pcbs_changed = 0;
  69336. 801c234: 4b1f ldr r3, [pc, #124] @ (801c2b4 <tcp_slowtmr+0x5a8>)
  69337. 801c236: 2200 movs r2, #0
  69338. 801c238: 701a strb r2, [r3, #0]
  69339. TCP_EVENT_POLL(prev, err);
  69340. 801c23a: 6abb ldr r3, [r7, #40] @ 0x28
  69341. 801c23c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  69342. 801c240: 2b00 cmp r3, #0
  69343. 801c242: d00b beq.n 801c25c <tcp_slowtmr+0x550>
  69344. 801c244: 6abb ldr r3, [r7, #40] @ 0x28
  69345. 801c246: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  69346. 801c24a: 6aba ldr r2, [r7, #40] @ 0x28
  69347. 801c24c: 6912 ldr r2, [r2, #16]
  69348. 801c24e: 6ab9 ldr r1, [r7, #40] @ 0x28
  69349. 801c250: 4610 mov r0, r2
  69350. 801c252: 4798 blx r3
  69351. 801c254: 4603 mov r3, r0
  69352. 801c256: f887 3025 strb.w r3, [r7, #37] @ 0x25
  69353. 801c25a: e002 b.n 801c262 <tcp_slowtmr+0x556>
  69354. 801c25c: 2300 movs r3, #0
  69355. 801c25e: f887 3025 strb.w r3, [r7, #37] @ 0x25
  69356. if (tcp_active_pcbs_changed) {
  69357. 801c262: 4b14 ldr r3, [pc, #80] @ (801c2b4 <tcp_slowtmr+0x5a8>)
  69358. 801c264: 781b ldrb r3, [r3, #0]
  69359. 801c266: 2b00 cmp r3, #0
  69360. 801c268: f47f ad62 bne.w 801bd30 <tcp_slowtmr+0x24>
  69361. }
  69362. /* if err == ERR_ABRT, 'prev' is already deallocated */
  69363. if (err == ERR_OK) {
  69364. 801c26c: f997 3025 ldrsb.w r3, [r7, #37] @ 0x25
  69365. 801c270: 2b00 cmp r3, #0
  69366. 801c272: d102 bne.n 801c27a <tcp_slowtmr+0x56e>
  69367. tcp_output(prev);
  69368. 801c274: 6ab8 ldr r0, [r7, #40] @ 0x28
  69369. 801c276: f004 f915 bl 80204a4 <tcp_output>
  69370. while (pcb != NULL) {
  69371. 801c27a: 6afb ldr r3, [r7, #44] @ 0x2c
  69372. 801c27c: 2b00 cmp r3, #0
  69373. 801c27e: f47f ad5e bne.w 801bd3e <tcp_slowtmr+0x32>
  69374. }
  69375. }
  69376. /* Steps through all of the TIME-WAIT PCBs. */
  69377. prev = NULL;
  69378. 801c282: 2300 movs r3, #0
  69379. 801c284: 62bb str r3, [r7, #40] @ 0x28
  69380. pcb = tcp_tw_pcbs;
  69381. 801c286: 4b0c ldr r3, [pc, #48] @ (801c2b8 <tcp_slowtmr+0x5ac>)
  69382. 801c288: 681b ldr r3, [r3, #0]
  69383. 801c28a: 62fb str r3, [r7, #44] @ 0x2c
  69384. while (pcb != NULL) {
  69385. 801c28c: e069 b.n 801c362 <tcp_slowtmr+0x656>
  69386. 801c28e: bf00 nop
  69387. 801c290: 2402af58 .word 0x2402af58
  69388. 801c294: 000a4cb8 .word 0x000a4cb8
  69389. 801c298: 10624dd3 .word 0x10624dd3
  69390. 801c29c: 000124f8 .word 0x000124f8
  69391. 801c2a0: 2402af64 .word 0x2402af64
  69392. 801c2a4: 0802ee3c .word 0x0802ee3c
  69393. 801c2a8: 0802f274 .word 0x0802f274
  69394. 801c2ac: 0802ee80 .word 0x0802ee80
  69395. 801c2b0: 0802f2a0 .word 0x0802f2a0
  69396. 801c2b4: 2402af6c .word 0x2402af6c
  69397. 801c2b8: 2402af68 .word 0x2402af68
  69398. LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  69399. 801c2bc: 6afb ldr r3, [r7, #44] @ 0x2c
  69400. 801c2be: 7d1b ldrb r3, [r3, #20]
  69401. 801c2c0: 2b0a cmp r3, #10
  69402. 801c2c2: d006 beq.n 801c2d2 <tcp_slowtmr+0x5c6>
  69403. 801c2c4: 4b2b ldr r3, [pc, #172] @ (801c374 <tcp_slowtmr+0x668>)
  69404. 801c2c6: f240 52a1 movw r2, #1441 @ 0x5a1
  69405. 801c2ca: 492b ldr r1, [pc, #172] @ (801c378 <tcp_slowtmr+0x66c>)
  69406. 801c2cc: 482b ldr r0, [pc, #172] @ (801c37c <tcp_slowtmr+0x670>)
  69407. 801c2ce: f00d ff75 bl 802a1bc <iprintf>
  69408. pcb_remove = 0;
  69409. 801c2d2: 2300 movs r3, #0
  69410. 801c2d4: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69411. /* Check if this PCB has stayed long enough in TIME-WAIT */
  69412. if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) {
  69413. 801c2d8: 4b29 ldr r3, [pc, #164] @ (801c380 <tcp_slowtmr+0x674>)
  69414. 801c2da: 681a ldr r2, [r3, #0]
  69415. 801c2dc: 6afb ldr r3, [r7, #44] @ 0x2c
  69416. 801c2de: 6a1b ldr r3, [r3, #32]
  69417. 801c2e0: 1ad3 subs r3, r2, r3
  69418. 801c2e2: 2bf0 cmp r3, #240 @ 0xf0
  69419. 801c2e4: d904 bls.n 801c2f0 <tcp_slowtmr+0x5e4>
  69420. ++pcb_remove;
  69421. 801c2e6: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69422. 801c2ea: 3301 adds r3, #1
  69423. 801c2ec: f887 3027 strb.w r3, [r7, #39] @ 0x27
  69424. }
  69425. /* If the PCB should be removed, do it. */
  69426. if (pcb_remove) {
  69427. 801c2f0: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  69428. 801c2f4: 2b00 cmp r3, #0
  69429. 801c2f6: d02f beq.n 801c358 <tcp_slowtmr+0x64c>
  69430. struct tcp_pcb *pcb2;
  69431. tcp_pcb_purge(pcb);
  69432. 801c2f8: 6af8 ldr r0, [r7, #44] @ 0x2c
  69433. 801c2fa: f000 fc05 bl 801cb08 <tcp_pcb_purge>
  69434. /* Remove PCB from tcp_tw_pcbs list. */
  69435. if (prev != NULL) {
  69436. 801c2fe: 6abb ldr r3, [r7, #40] @ 0x28
  69437. 801c300: 2b00 cmp r3, #0
  69438. 801c302: d010 beq.n 801c326 <tcp_slowtmr+0x61a>
  69439. LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs);
  69440. 801c304: 4b1f ldr r3, [pc, #124] @ (801c384 <tcp_slowtmr+0x678>)
  69441. 801c306: 681b ldr r3, [r3, #0]
  69442. 801c308: 6afa ldr r2, [r7, #44] @ 0x2c
  69443. 801c30a: 429a cmp r2, r3
  69444. 801c30c: d106 bne.n 801c31c <tcp_slowtmr+0x610>
  69445. 801c30e: 4b19 ldr r3, [pc, #100] @ (801c374 <tcp_slowtmr+0x668>)
  69446. 801c310: f240 52af movw r2, #1455 @ 0x5af
  69447. 801c314: 491c ldr r1, [pc, #112] @ (801c388 <tcp_slowtmr+0x67c>)
  69448. 801c316: 4819 ldr r0, [pc, #100] @ (801c37c <tcp_slowtmr+0x670>)
  69449. 801c318: f00d ff50 bl 802a1bc <iprintf>
  69450. prev->next = pcb->next;
  69451. 801c31c: 6afb ldr r3, [r7, #44] @ 0x2c
  69452. 801c31e: 68da ldr r2, [r3, #12]
  69453. 801c320: 6abb ldr r3, [r7, #40] @ 0x28
  69454. 801c322: 60da str r2, [r3, #12]
  69455. 801c324: e00f b.n 801c346 <tcp_slowtmr+0x63a>
  69456. } else {
  69457. /* This PCB was the first. */
  69458. LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb);
  69459. 801c326: 4b17 ldr r3, [pc, #92] @ (801c384 <tcp_slowtmr+0x678>)
  69460. 801c328: 681b ldr r3, [r3, #0]
  69461. 801c32a: 6afa ldr r2, [r7, #44] @ 0x2c
  69462. 801c32c: 429a cmp r2, r3
  69463. 801c32e: d006 beq.n 801c33e <tcp_slowtmr+0x632>
  69464. 801c330: 4b10 ldr r3, [pc, #64] @ (801c374 <tcp_slowtmr+0x668>)
  69465. 801c332: f240 52b3 movw r2, #1459 @ 0x5b3
  69466. 801c336: 4915 ldr r1, [pc, #84] @ (801c38c <tcp_slowtmr+0x680>)
  69467. 801c338: 4810 ldr r0, [pc, #64] @ (801c37c <tcp_slowtmr+0x670>)
  69468. 801c33a: f00d ff3f bl 802a1bc <iprintf>
  69469. tcp_tw_pcbs = pcb->next;
  69470. 801c33e: 6afb ldr r3, [r7, #44] @ 0x2c
  69471. 801c340: 68db ldr r3, [r3, #12]
  69472. 801c342: 4a10 ldr r2, [pc, #64] @ (801c384 <tcp_slowtmr+0x678>)
  69473. 801c344: 6013 str r3, [r2, #0]
  69474. }
  69475. pcb2 = pcb;
  69476. 801c346: 6afb ldr r3, [r7, #44] @ 0x2c
  69477. 801c348: 61fb str r3, [r7, #28]
  69478. pcb = pcb->next;
  69479. 801c34a: 6afb ldr r3, [r7, #44] @ 0x2c
  69480. 801c34c: 68db ldr r3, [r3, #12]
  69481. 801c34e: 62fb str r3, [r7, #44] @ 0x2c
  69482. tcp_free(pcb2);
  69483. 801c350: 69f8 ldr r0, [r7, #28]
  69484. 801c352: f7fe ff77 bl 801b244 <tcp_free>
  69485. 801c356: e004 b.n 801c362 <tcp_slowtmr+0x656>
  69486. } else {
  69487. prev = pcb;
  69488. 801c358: 6afb ldr r3, [r7, #44] @ 0x2c
  69489. 801c35a: 62bb str r3, [r7, #40] @ 0x28
  69490. pcb = pcb->next;
  69491. 801c35c: 6afb ldr r3, [r7, #44] @ 0x2c
  69492. 801c35e: 68db ldr r3, [r3, #12]
  69493. 801c360: 62fb str r3, [r7, #44] @ 0x2c
  69494. while (pcb != NULL) {
  69495. 801c362: 6afb ldr r3, [r7, #44] @ 0x2c
  69496. 801c364: 2b00 cmp r3, #0
  69497. 801c366: d1a9 bne.n 801c2bc <tcp_slowtmr+0x5b0>
  69498. }
  69499. }
  69500. }
  69501. 801c368: bf00 nop
  69502. 801c36a: bf00 nop
  69503. 801c36c: 3730 adds r7, #48 @ 0x30
  69504. 801c36e: 46bd mov sp, r7
  69505. 801c370: bdb0 pop {r4, r5, r7, pc}
  69506. 801c372: bf00 nop
  69507. 801c374: 0802ee3c .word 0x0802ee3c
  69508. 801c378: 0802f2cc .word 0x0802f2cc
  69509. 801c37c: 0802ee80 .word 0x0802ee80
  69510. 801c380: 2402af58 .word 0x2402af58
  69511. 801c384: 2402af68 .word 0x2402af68
  69512. 801c388: 0802f2fc .word 0x0802f2fc
  69513. 801c38c: 0802f324 .word 0x0802f324
  69514. 0801c390 <tcp_fasttmr>:
  69515. *
  69516. * Automatically called from tcp_tmr().
  69517. */
  69518. void
  69519. tcp_fasttmr(void)
  69520. {
  69521. 801c390: b580 push {r7, lr}
  69522. 801c392: b082 sub sp, #8
  69523. 801c394: af00 add r7, sp, #0
  69524. struct tcp_pcb *pcb;
  69525. ++tcp_timer_ctr;
  69526. 801c396: 4b2d ldr r3, [pc, #180] @ (801c44c <tcp_fasttmr+0xbc>)
  69527. 801c398: 781b ldrb r3, [r3, #0]
  69528. 801c39a: 3301 adds r3, #1
  69529. 801c39c: b2da uxtb r2, r3
  69530. 801c39e: 4b2b ldr r3, [pc, #172] @ (801c44c <tcp_fasttmr+0xbc>)
  69531. 801c3a0: 701a strb r2, [r3, #0]
  69532. tcp_fasttmr_start:
  69533. pcb = tcp_active_pcbs;
  69534. 801c3a2: 4b2b ldr r3, [pc, #172] @ (801c450 <tcp_fasttmr+0xc0>)
  69535. 801c3a4: 681b ldr r3, [r3, #0]
  69536. 801c3a6: 607b str r3, [r7, #4]
  69537. while (pcb != NULL) {
  69538. 801c3a8: e048 b.n 801c43c <tcp_fasttmr+0xac>
  69539. if (pcb->last_timer != tcp_timer_ctr) {
  69540. 801c3aa: 687b ldr r3, [r7, #4]
  69541. 801c3ac: 7f9a ldrb r2, [r3, #30]
  69542. 801c3ae: 4b27 ldr r3, [pc, #156] @ (801c44c <tcp_fasttmr+0xbc>)
  69543. 801c3b0: 781b ldrb r3, [r3, #0]
  69544. 801c3b2: 429a cmp r2, r3
  69545. 801c3b4: d03f beq.n 801c436 <tcp_fasttmr+0xa6>
  69546. struct tcp_pcb *next;
  69547. pcb->last_timer = tcp_timer_ctr;
  69548. 801c3b6: 4b25 ldr r3, [pc, #148] @ (801c44c <tcp_fasttmr+0xbc>)
  69549. 801c3b8: 781a ldrb r2, [r3, #0]
  69550. 801c3ba: 687b ldr r3, [r7, #4]
  69551. 801c3bc: 779a strb r2, [r3, #30]
  69552. /* send delayed ACKs */
  69553. if (pcb->flags & TF_ACK_DELAY) {
  69554. 801c3be: 687b ldr r3, [r7, #4]
  69555. 801c3c0: 8b5b ldrh r3, [r3, #26]
  69556. 801c3c2: f003 0301 and.w r3, r3, #1
  69557. 801c3c6: 2b00 cmp r3, #0
  69558. 801c3c8: d010 beq.n 801c3ec <tcp_fasttmr+0x5c>
  69559. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n"));
  69560. tcp_ack_now(pcb);
  69561. 801c3ca: 687b ldr r3, [r7, #4]
  69562. 801c3cc: 8b5b ldrh r3, [r3, #26]
  69563. 801c3ce: f043 0302 orr.w r3, r3, #2
  69564. 801c3d2: b29a uxth r2, r3
  69565. 801c3d4: 687b ldr r3, [r7, #4]
  69566. 801c3d6: 835a strh r2, [r3, #26]
  69567. tcp_output(pcb);
  69568. 801c3d8: 6878 ldr r0, [r7, #4]
  69569. 801c3da: f004 f863 bl 80204a4 <tcp_output>
  69570. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  69571. 801c3de: 687b ldr r3, [r7, #4]
  69572. 801c3e0: 8b5b ldrh r3, [r3, #26]
  69573. 801c3e2: f023 0303 bic.w r3, r3, #3
  69574. 801c3e6: b29a uxth r2, r3
  69575. 801c3e8: 687b ldr r3, [r7, #4]
  69576. 801c3ea: 835a strh r2, [r3, #26]
  69577. }
  69578. /* send pending FIN */
  69579. if (pcb->flags & TF_CLOSEPEND) {
  69580. 801c3ec: 687b ldr r3, [r7, #4]
  69581. 801c3ee: 8b5b ldrh r3, [r3, #26]
  69582. 801c3f0: f003 0308 and.w r3, r3, #8
  69583. 801c3f4: 2b00 cmp r3, #0
  69584. 801c3f6: d009 beq.n 801c40c <tcp_fasttmr+0x7c>
  69585. LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n"));
  69586. tcp_clear_flags(pcb, TF_CLOSEPEND);
  69587. 801c3f8: 687b ldr r3, [r7, #4]
  69588. 801c3fa: 8b5b ldrh r3, [r3, #26]
  69589. 801c3fc: f023 0308 bic.w r3, r3, #8
  69590. 801c400: b29a uxth r2, r3
  69591. 801c402: 687b ldr r3, [r7, #4]
  69592. 801c404: 835a strh r2, [r3, #26]
  69593. tcp_close_shutdown_fin(pcb);
  69594. 801c406: 6878 ldr r0, [r7, #4]
  69595. 801c408: f7ff f8b0 bl 801b56c <tcp_close_shutdown_fin>
  69596. }
  69597. next = pcb->next;
  69598. 801c40c: 687b ldr r3, [r7, #4]
  69599. 801c40e: 68db ldr r3, [r3, #12]
  69600. 801c410: 603b str r3, [r7, #0]
  69601. /* If there is data which was previously "refused" by upper layer */
  69602. if (pcb->refused_data != NULL) {
  69603. 801c412: 687b ldr r3, [r7, #4]
  69604. 801c414: 6f9b ldr r3, [r3, #120] @ 0x78
  69605. 801c416: 2b00 cmp r3, #0
  69606. 801c418: d00a beq.n 801c430 <tcp_fasttmr+0xa0>
  69607. tcp_active_pcbs_changed = 0;
  69608. 801c41a: 4b0e ldr r3, [pc, #56] @ (801c454 <tcp_fasttmr+0xc4>)
  69609. 801c41c: 2200 movs r2, #0
  69610. 801c41e: 701a strb r2, [r3, #0]
  69611. tcp_process_refused_data(pcb);
  69612. 801c420: 6878 ldr r0, [r7, #4]
  69613. 801c422: f000 f819 bl 801c458 <tcp_process_refused_data>
  69614. if (tcp_active_pcbs_changed) {
  69615. 801c426: 4b0b ldr r3, [pc, #44] @ (801c454 <tcp_fasttmr+0xc4>)
  69616. 801c428: 781b ldrb r3, [r3, #0]
  69617. 801c42a: 2b00 cmp r3, #0
  69618. 801c42c: d000 beq.n 801c430 <tcp_fasttmr+0xa0>
  69619. /* application callback has changed the pcb list: restart the loop */
  69620. goto tcp_fasttmr_start;
  69621. 801c42e: e7b8 b.n 801c3a2 <tcp_fasttmr+0x12>
  69622. }
  69623. }
  69624. pcb = next;
  69625. 801c430: 683b ldr r3, [r7, #0]
  69626. 801c432: 607b str r3, [r7, #4]
  69627. 801c434: e002 b.n 801c43c <tcp_fasttmr+0xac>
  69628. } else {
  69629. pcb = pcb->next;
  69630. 801c436: 687b ldr r3, [r7, #4]
  69631. 801c438: 68db ldr r3, [r3, #12]
  69632. 801c43a: 607b str r3, [r7, #4]
  69633. while (pcb != NULL) {
  69634. 801c43c: 687b ldr r3, [r7, #4]
  69635. 801c43e: 2b00 cmp r3, #0
  69636. 801c440: d1b3 bne.n 801c3aa <tcp_fasttmr+0x1a>
  69637. }
  69638. }
  69639. }
  69640. 801c442: bf00 nop
  69641. 801c444: bf00 nop
  69642. 801c446: 3708 adds r7, #8
  69643. 801c448: 46bd mov sp, r7
  69644. 801c44a: bd80 pop {r7, pc}
  69645. 801c44c: 2402af6e .word 0x2402af6e
  69646. 801c450: 2402af64 .word 0x2402af64
  69647. 801c454: 2402af6c .word 0x2402af6c
  69648. 0801c458 <tcp_process_refused_data>:
  69649. }
  69650. /** Pass pcb->refused_data to the recv callback */
  69651. err_t
  69652. tcp_process_refused_data(struct tcp_pcb *pcb)
  69653. {
  69654. 801c458: b590 push {r4, r7, lr}
  69655. 801c45a: b085 sub sp, #20
  69656. 801c45c: af00 add r7, sp, #0
  69657. 801c45e: 6078 str r0, [r7, #4]
  69658. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  69659. struct pbuf *rest;
  69660. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  69661. LWIP_ERROR("tcp_process_refused_data: invalid pcb", pcb != NULL, return ERR_ARG);
  69662. 801c460: 687b ldr r3, [r7, #4]
  69663. 801c462: 2b00 cmp r3, #0
  69664. 801c464: d109 bne.n 801c47a <tcp_process_refused_data+0x22>
  69665. 801c466: 4b38 ldr r3, [pc, #224] @ (801c548 <tcp_process_refused_data+0xf0>)
  69666. 801c468: f240 6209 movw r2, #1545 @ 0x609
  69667. 801c46c: 4937 ldr r1, [pc, #220] @ (801c54c <tcp_process_refused_data+0xf4>)
  69668. 801c46e: 4838 ldr r0, [pc, #224] @ (801c550 <tcp_process_refused_data+0xf8>)
  69669. 801c470: f00d fea4 bl 802a1bc <iprintf>
  69670. 801c474: f06f 030f mvn.w r3, #15
  69671. 801c478: e061 b.n 801c53e <tcp_process_refused_data+0xe6>
  69672. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  69673. while (pcb->refused_data != NULL)
  69674. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  69675. {
  69676. err_t err;
  69677. u8_t refused_flags = pcb->refused_data->flags;
  69678. 801c47a: 687b ldr r3, [r7, #4]
  69679. 801c47c: 6f9b ldr r3, [r3, #120] @ 0x78
  69680. 801c47e: 7b5b ldrb r3, [r3, #13]
  69681. 801c480: 73bb strb r3, [r7, #14]
  69682. /* set pcb->refused_data to NULL in case the callback frees it and then
  69683. closes the pcb */
  69684. struct pbuf *refused_data = pcb->refused_data;
  69685. 801c482: 687b ldr r3, [r7, #4]
  69686. 801c484: 6f9b ldr r3, [r3, #120] @ 0x78
  69687. 801c486: 60bb str r3, [r7, #8]
  69688. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  69689. pbuf_split_64k(refused_data, &rest);
  69690. pcb->refused_data = rest;
  69691. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  69692. pcb->refused_data = NULL;
  69693. 801c488: 687b ldr r3, [r7, #4]
  69694. 801c48a: 2200 movs r2, #0
  69695. 801c48c: 679a str r2, [r3, #120] @ 0x78
  69696. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  69697. /* Notify again application with data previously received. */
  69698. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: notify kept packet\n"));
  69699. TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err);
  69700. 801c48e: 687b ldr r3, [r7, #4]
  69701. 801c490: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  69702. 801c494: 2b00 cmp r3, #0
  69703. 801c496: d00b beq.n 801c4b0 <tcp_process_refused_data+0x58>
  69704. 801c498: 687b ldr r3, [r7, #4]
  69705. 801c49a: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  69706. 801c49e: 687b ldr r3, [r7, #4]
  69707. 801c4a0: 6918 ldr r0, [r3, #16]
  69708. 801c4a2: 2300 movs r3, #0
  69709. 801c4a4: 68ba ldr r2, [r7, #8]
  69710. 801c4a6: 6879 ldr r1, [r7, #4]
  69711. 801c4a8: 47a0 blx r4
  69712. 801c4aa: 4603 mov r3, r0
  69713. 801c4ac: 73fb strb r3, [r7, #15]
  69714. 801c4ae: e007 b.n 801c4c0 <tcp_process_refused_data+0x68>
  69715. 801c4b0: 2300 movs r3, #0
  69716. 801c4b2: 68ba ldr r2, [r7, #8]
  69717. 801c4b4: 6879 ldr r1, [r7, #4]
  69718. 801c4b6: 2000 movs r0, #0
  69719. 801c4b8: f000 f8a6 bl 801c608 <tcp_recv_null>
  69720. 801c4bc: 4603 mov r3, r0
  69721. 801c4be: 73fb strb r3, [r7, #15]
  69722. if (err == ERR_OK) {
  69723. 801c4c0: f997 300f ldrsb.w r3, [r7, #15]
  69724. 801c4c4: 2b00 cmp r3, #0
  69725. 801c4c6: d12b bne.n 801c520 <tcp_process_refused_data+0xc8>
  69726. /* did refused_data include a FIN? */
  69727. if ((refused_flags & PBUF_FLAG_TCP_FIN)
  69728. 801c4c8: 7bbb ldrb r3, [r7, #14]
  69729. 801c4ca: f003 0320 and.w r3, r3, #32
  69730. 801c4ce: 2b00 cmp r3, #0
  69731. 801c4d0: d034 beq.n 801c53c <tcp_process_refused_data+0xe4>
  69732. && (rest == NULL)
  69733. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  69734. ) {
  69735. /* correct rcv_wnd as the application won't call tcp_recved()
  69736. for the FIN's seqno */
  69737. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  69738. 801c4d2: 687b ldr r3, [r7, #4]
  69739. 801c4d4: 8d1b ldrh r3, [r3, #40] @ 0x28
  69740. 801c4d6: f241 62d0 movw r2, #5840 @ 0x16d0
  69741. 801c4da: 4293 cmp r3, r2
  69742. 801c4dc: d005 beq.n 801c4ea <tcp_process_refused_data+0x92>
  69743. pcb->rcv_wnd++;
  69744. 801c4de: 687b ldr r3, [r7, #4]
  69745. 801c4e0: 8d1b ldrh r3, [r3, #40] @ 0x28
  69746. 801c4e2: 3301 adds r3, #1
  69747. 801c4e4: b29a uxth r2, r3
  69748. 801c4e6: 687b ldr r3, [r7, #4]
  69749. 801c4e8: 851a strh r2, [r3, #40] @ 0x28
  69750. }
  69751. TCP_EVENT_CLOSED(pcb, err);
  69752. 801c4ea: 687b ldr r3, [r7, #4]
  69753. 801c4ec: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  69754. 801c4f0: 2b00 cmp r3, #0
  69755. 801c4f2: d00b beq.n 801c50c <tcp_process_refused_data+0xb4>
  69756. 801c4f4: 687b ldr r3, [r7, #4]
  69757. 801c4f6: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  69758. 801c4fa: 687b ldr r3, [r7, #4]
  69759. 801c4fc: 6918 ldr r0, [r3, #16]
  69760. 801c4fe: 2300 movs r3, #0
  69761. 801c500: 2200 movs r2, #0
  69762. 801c502: 6879 ldr r1, [r7, #4]
  69763. 801c504: 47a0 blx r4
  69764. 801c506: 4603 mov r3, r0
  69765. 801c508: 73fb strb r3, [r7, #15]
  69766. 801c50a: e001 b.n 801c510 <tcp_process_refused_data+0xb8>
  69767. 801c50c: 2300 movs r3, #0
  69768. 801c50e: 73fb strb r3, [r7, #15]
  69769. if (err == ERR_ABRT) {
  69770. 801c510: f997 300f ldrsb.w r3, [r7, #15]
  69771. 801c514: f113 0f0d cmn.w r3, #13
  69772. 801c518: d110 bne.n 801c53c <tcp_process_refused_data+0xe4>
  69773. return ERR_ABRT;
  69774. 801c51a: f06f 030c mvn.w r3, #12
  69775. 801c51e: e00e b.n 801c53e <tcp_process_refused_data+0xe6>
  69776. }
  69777. }
  69778. } else if (err == ERR_ABRT) {
  69779. 801c520: f997 300f ldrsb.w r3, [r7, #15]
  69780. 801c524: f113 0f0d cmn.w r3, #13
  69781. 801c528: d102 bne.n 801c530 <tcp_process_refused_data+0xd8>
  69782. /* if err == ERR_ABRT, 'pcb' is already deallocated */
  69783. /* Drop incoming packets because pcb is "full" (only if the incoming
  69784. segment contains data). */
  69785. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: drop incoming packets, because pcb is \"full\"\n"));
  69786. return ERR_ABRT;
  69787. 801c52a: f06f 030c mvn.w r3, #12
  69788. 801c52e: e006 b.n 801c53e <tcp_process_refused_data+0xe6>
  69789. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  69790. if (rest != NULL) {
  69791. pbuf_cat(refused_data, rest);
  69792. }
  69793. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  69794. pcb->refused_data = refused_data;
  69795. 801c530: 687b ldr r3, [r7, #4]
  69796. 801c532: 68ba ldr r2, [r7, #8]
  69797. 801c534: 679a str r2, [r3, #120] @ 0x78
  69798. return ERR_INPROGRESS;
  69799. 801c536: f06f 0304 mvn.w r3, #4
  69800. 801c53a: e000 b.n 801c53e <tcp_process_refused_data+0xe6>
  69801. }
  69802. }
  69803. return ERR_OK;
  69804. 801c53c: 2300 movs r3, #0
  69805. }
  69806. 801c53e: 4618 mov r0, r3
  69807. 801c540: 3714 adds r7, #20
  69808. 801c542: 46bd mov sp, r7
  69809. 801c544: bd90 pop {r4, r7, pc}
  69810. 801c546: bf00 nop
  69811. 801c548: 0802ee3c .word 0x0802ee3c
  69812. 801c54c: 0802f34c .word 0x0802f34c
  69813. 801c550: 0802ee80 .word 0x0802ee80
  69814. 0801c554 <tcp_segs_free>:
  69815. *
  69816. * @param seg tcp_seg list of TCP segments to free
  69817. */
  69818. void
  69819. tcp_segs_free(struct tcp_seg *seg)
  69820. {
  69821. 801c554: b580 push {r7, lr}
  69822. 801c556: b084 sub sp, #16
  69823. 801c558: af00 add r7, sp, #0
  69824. 801c55a: 6078 str r0, [r7, #4]
  69825. while (seg != NULL) {
  69826. 801c55c: e007 b.n 801c56e <tcp_segs_free+0x1a>
  69827. struct tcp_seg *next = seg->next;
  69828. 801c55e: 687b ldr r3, [r7, #4]
  69829. 801c560: 681b ldr r3, [r3, #0]
  69830. 801c562: 60fb str r3, [r7, #12]
  69831. tcp_seg_free(seg);
  69832. 801c564: 6878 ldr r0, [r7, #4]
  69833. 801c566: f000 f80a bl 801c57e <tcp_seg_free>
  69834. seg = next;
  69835. 801c56a: 68fb ldr r3, [r7, #12]
  69836. 801c56c: 607b str r3, [r7, #4]
  69837. while (seg != NULL) {
  69838. 801c56e: 687b ldr r3, [r7, #4]
  69839. 801c570: 2b00 cmp r3, #0
  69840. 801c572: d1f4 bne.n 801c55e <tcp_segs_free+0xa>
  69841. }
  69842. }
  69843. 801c574: bf00 nop
  69844. 801c576: bf00 nop
  69845. 801c578: 3710 adds r7, #16
  69846. 801c57a: 46bd mov sp, r7
  69847. 801c57c: bd80 pop {r7, pc}
  69848. 0801c57e <tcp_seg_free>:
  69849. *
  69850. * @param seg single tcp_seg to free
  69851. */
  69852. void
  69853. tcp_seg_free(struct tcp_seg *seg)
  69854. {
  69855. 801c57e: b580 push {r7, lr}
  69856. 801c580: b082 sub sp, #8
  69857. 801c582: af00 add r7, sp, #0
  69858. 801c584: 6078 str r0, [r7, #4]
  69859. if (seg != NULL) {
  69860. 801c586: 687b ldr r3, [r7, #4]
  69861. 801c588: 2b00 cmp r3, #0
  69862. 801c58a: d00c beq.n 801c5a6 <tcp_seg_free+0x28>
  69863. if (seg->p != NULL) {
  69864. 801c58c: 687b ldr r3, [r7, #4]
  69865. 801c58e: 685b ldr r3, [r3, #4]
  69866. 801c590: 2b00 cmp r3, #0
  69867. 801c592: d004 beq.n 801c59e <tcp_seg_free+0x20>
  69868. pbuf_free(seg->p);
  69869. 801c594: 687b ldr r3, [r7, #4]
  69870. 801c596: 685b ldr r3, [r3, #4]
  69871. 801c598: 4618 mov r0, r3
  69872. 801c59a: f7fe fb97 bl 801accc <pbuf_free>
  69873. #if TCP_DEBUG
  69874. seg->p = NULL;
  69875. #endif /* TCP_DEBUG */
  69876. }
  69877. memp_free(MEMP_TCP_SEG, seg);
  69878. 801c59e: 6879 ldr r1, [r7, #4]
  69879. 801c5a0: 2003 movs r0, #3
  69880. 801c5a2: f7fd fca5 bl 8019ef0 <memp_free>
  69881. }
  69882. }
  69883. 801c5a6: bf00 nop
  69884. 801c5a8: 3708 adds r7, #8
  69885. 801c5aa: 46bd mov sp, r7
  69886. 801c5ac: bd80 pop {r7, pc}
  69887. ...
  69888. 0801c5b0 <tcp_seg_copy>:
  69889. * @param seg the old tcp_seg
  69890. * @return a copy of seg
  69891. */
  69892. struct tcp_seg *
  69893. tcp_seg_copy(struct tcp_seg *seg)
  69894. {
  69895. 801c5b0: b580 push {r7, lr}
  69896. 801c5b2: b084 sub sp, #16
  69897. 801c5b4: af00 add r7, sp, #0
  69898. 801c5b6: 6078 str r0, [r7, #4]
  69899. struct tcp_seg *cseg;
  69900. LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL);
  69901. 801c5b8: 687b ldr r3, [r7, #4]
  69902. 801c5ba: 2b00 cmp r3, #0
  69903. 801c5bc: d106 bne.n 801c5cc <tcp_seg_copy+0x1c>
  69904. 801c5be: 4b0f ldr r3, [pc, #60] @ (801c5fc <tcp_seg_copy+0x4c>)
  69905. 801c5c0: f240 6282 movw r2, #1666 @ 0x682
  69906. 801c5c4: 490e ldr r1, [pc, #56] @ (801c600 <tcp_seg_copy+0x50>)
  69907. 801c5c6: 480f ldr r0, [pc, #60] @ (801c604 <tcp_seg_copy+0x54>)
  69908. 801c5c8: f00d fdf8 bl 802a1bc <iprintf>
  69909. cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG);
  69910. 801c5cc: 2003 movs r0, #3
  69911. 801c5ce: f7fd fc19 bl 8019e04 <memp_malloc>
  69912. 801c5d2: 60f8 str r0, [r7, #12]
  69913. if (cseg == NULL) {
  69914. 801c5d4: 68fb ldr r3, [r7, #12]
  69915. 801c5d6: 2b00 cmp r3, #0
  69916. 801c5d8: d101 bne.n 801c5de <tcp_seg_copy+0x2e>
  69917. return NULL;
  69918. 801c5da: 2300 movs r3, #0
  69919. 801c5dc: e00a b.n 801c5f4 <tcp_seg_copy+0x44>
  69920. }
  69921. SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg));
  69922. 801c5de: 2214 movs r2, #20
  69923. 801c5e0: 6879 ldr r1, [r7, #4]
  69924. 801c5e2: 68f8 ldr r0, [r7, #12]
  69925. 801c5e4: f00e f873 bl 802a6ce <memcpy>
  69926. pbuf_ref(cseg->p);
  69927. 801c5e8: 68fb ldr r3, [r7, #12]
  69928. 801c5ea: 685b ldr r3, [r3, #4]
  69929. 801c5ec: 4618 mov r0, r3
  69930. 801c5ee: f7fe fc13 bl 801ae18 <pbuf_ref>
  69931. return cseg;
  69932. 801c5f2: 68fb ldr r3, [r7, #12]
  69933. }
  69934. 801c5f4: 4618 mov r0, r3
  69935. 801c5f6: 3710 adds r7, #16
  69936. 801c5f8: 46bd mov sp, r7
  69937. 801c5fa: bd80 pop {r7, pc}
  69938. 801c5fc: 0802ee3c .word 0x0802ee3c
  69939. 801c600: 0802f390 .word 0x0802f390
  69940. 801c604: 0802ee80 .word 0x0802ee80
  69941. 0801c608 <tcp_recv_null>:
  69942. * Default receive callback that is called if the user didn't register
  69943. * a recv callback for the pcb.
  69944. */
  69945. err_t
  69946. tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
  69947. {
  69948. 801c608: b580 push {r7, lr}
  69949. 801c60a: b084 sub sp, #16
  69950. 801c60c: af00 add r7, sp, #0
  69951. 801c60e: 60f8 str r0, [r7, #12]
  69952. 801c610: 60b9 str r1, [r7, #8]
  69953. 801c612: 607a str r2, [r7, #4]
  69954. 801c614: 70fb strb r3, [r7, #3]
  69955. LWIP_UNUSED_ARG(arg);
  69956. LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG);
  69957. 801c616: 68bb ldr r3, [r7, #8]
  69958. 801c618: 2b00 cmp r3, #0
  69959. 801c61a: d109 bne.n 801c630 <tcp_recv_null+0x28>
  69960. 801c61c: 4b12 ldr r3, [pc, #72] @ (801c668 <tcp_recv_null+0x60>)
  69961. 801c61e: f44f 62d3 mov.w r2, #1688 @ 0x698
  69962. 801c622: 4912 ldr r1, [pc, #72] @ (801c66c <tcp_recv_null+0x64>)
  69963. 801c624: 4812 ldr r0, [pc, #72] @ (801c670 <tcp_recv_null+0x68>)
  69964. 801c626: f00d fdc9 bl 802a1bc <iprintf>
  69965. 801c62a: f06f 030f mvn.w r3, #15
  69966. 801c62e: e016 b.n 801c65e <tcp_recv_null+0x56>
  69967. if (p != NULL) {
  69968. 801c630: 687b ldr r3, [r7, #4]
  69969. 801c632: 2b00 cmp r3, #0
  69970. 801c634: d009 beq.n 801c64a <tcp_recv_null+0x42>
  69971. tcp_recved(pcb, p->tot_len);
  69972. 801c636: 687b ldr r3, [r7, #4]
  69973. 801c638: 891b ldrh r3, [r3, #8]
  69974. 801c63a: 4619 mov r1, r3
  69975. 801c63c: 68b8 ldr r0, [r7, #8]
  69976. 801c63e: f7ff f9b1 bl 801b9a4 <tcp_recved>
  69977. pbuf_free(p);
  69978. 801c642: 6878 ldr r0, [r7, #4]
  69979. 801c644: f7fe fb42 bl 801accc <pbuf_free>
  69980. 801c648: e008 b.n 801c65c <tcp_recv_null+0x54>
  69981. } else if (err == ERR_OK) {
  69982. 801c64a: f997 3003 ldrsb.w r3, [r7, #3]
  69983. 801c64e: 2b00 cmp r3, #0
  69984. 801c650: d104 bne.n 801c65c <tcp_recv_null+0x54>
  69985. return tcp_close(pcb);
  69986. 801c652: 68b8 ldr r0, [r7, #8]
  69987. 801c654: f7fe fff4 bl 801b640 <tcp_close>
  69988. 801c658: 4603 mov r3, r0
  69989. 801c65a: e000 b.n 801c65e <tcp_recv_null+0x56>
  69990. }
  69991. return ERR_OK;
  69992. 801c65c: 2300 movs r3, #0
  69993. }
  69994. 801c65e: 4618 mov r0, r3
  69995. 801c660: 3710 adds r7, #16
  69996. 801c662: 46bd mov sp, r7
  69997. 801c664: bd80 pop {r7, pc}
  69998. 801c666: bf00 nop
  69999. 801c668: 0802ee3c .word 0x0802ee3c
  70000. 801c66c: 0802f3ac .word 0x0802f3ac
  70001. 801c670: 0802ee80 .word 0x0802ee80
  70002. 0801c674 <tcp_kill_prio>:
  70003. *
  70004. * @param prio minimum priority
  70005. */
  70006. static void
  70007. tcp_kill_prio(u8_t prio)
  70008. {
  70009. 801c674: b580 push {r7, lr}
  70010. 801c676: b086 sub sp, #24
  70011. 801c678: af00 add r7, sp, #0
  70012. 801c67a: 4603 mov r3, r0
  70013. 801c67c: 71fb strb r3, [r7, #7]
  70014. struct tcp_pcb *pcb, *inactive;
  70015. u32_t inactivity;
  70016. u8_t mprio;
  70017. mprio = LWIP_MIN(TCP_PRIO_MAX, prio);
  70018. 801c67e: f997 3007 ldrsb.w r3, [r7, #7]
  70019. 801c682: 2b00 cmp r3, #0
  70020. 801c684: db01 blt.n 801c68a <tcp_kill_prio+0x16>
  70021. 801c686: 79fb ldrb r3, [r7, #7]
  70022. 801c688: e000 b.n 801c68c <tcp_kill_prio+0x18>
  70023. 801c68a: 237f movs r3, #127 @ 0x7f
  70024. 801c68c: 72fb strb r3, [r7, #11]
  70025. /* We want to kill connections with a lower prio, so bail out if
  70026. * supplied prio is 0 - there can never be a lower prio
  70027. */
  70028. if (mprio == 0) {
  70029. 801c68e: 7afb ldrb r3, [r7, #11]
  70030. 801c690: 2b00 cmp r3, #0
  70031. 801c692: d034 beq.n 801c6fe <tcp_kill_prio+0x8a>
  70032. /* We only want kill connections with a lower prio, so decrement prio by one
  70033. * and start searching for oldest connection with same or lower priority than mprio.
  70034. * We want to find the connections with the lowest possible prio, and among
  70035. * these the one with the longest inactivity time.
  70036. */
  70037. mprio--;
  70038. 801c694: 7afb ldrb r3, [r7, #11]
  70039. 801c696: 3b01 subs r3, #1
  70040. 801c698: 72fb strb r3, [r7, #11]
  70041. inactivity = 0;
  70042. 801c69a: 2300 movs r3, #0
  70043. 801c69c: 60fb str r3, [r7, #12]
  70044. inactive = NULL;
  70045. 801c69e: 2300 movs r3, #0
  70046. 801c6a0: 613b str r3, [r7, #16]
  70047. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70048. 801c6a2: 4b19 ldr r3, [pc, #100] @ (801c708 <tcp_kill_prio+0x94>)
  70049. 801c6a4: 681b ldr r3, [r3, #0]
  70050. 801c6a6: 617b str r3, [r7, #20]
  70051. 801c6a8: e01f b.n 801c6ea <tcp_kill_prio+0x76>
  70052. /* lower prio is always a kill candidate */
  70053. if ((pcb->prio < mprio) ||
  70054. 801c6aa: 697b ldr r3, [r7, #20]
  70055. 801c6ac: 7d5b ldrb r3, [r3, #21]
  70056. 801c6ae: 7afa ldrb r2, [r7, #11]
  70057. 801c6b0: 429a cmp r2, r3
  70058. 801c6b2: d80c bhi.n 801c6ce <tcp_kill_prio+0x5a>
  70059. /* longer inactivity is also a kill candidate */
  70060. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  70061. 801c6b4: 697b ldr r3, [r7, #20]
  70062. 801c6b6: 7d5b ldrb r3, [r3, #21]
  70063. if ((pcb->prio < mprio) ||
  70064. 801c6b8: 7afa ldrb r2, [r7, #11]
  70065. 801c6ba: 429a cmp r2, r3
  70066. 801c6bc: d112 bne.n 801c6e4 <tcp_kill_prio+0x70>
  70067. ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) {
  70068. 801c6be: 4b13 ldr r3, [pc, #76] @ (801c70c <tcp_kill_prio+0x98>)
  70069. 801c6c0: 681a ldr r2, [r3, #0]
  70070. 801c6c2: 697b ldr r3, [r7, #20]
  70071. 801c6c4: 6a1b ldr r3, [r3, #32]
  70072. 801c6c6: 1ad3 subs r3, r2, r3
  70073. 801c6c8: 68fa ldr r2, [r7, #12]
  70074. 801c6ca: 429a cmp r2, r3
  70075. 801c6cc: d80a bhi.n 801c6e4 <tcp_kill_prio+0x70>
  70076. inactivity = tcp_ticks - pcb->tmr;
  70077. 801c6ce: 4b0f ldr r3, [pc, #60] @ (801c70c <tcp_kill_prio+0x98>)
  70078. 801c6d0: 681a ldr r2, [r3, #0]
  70079. 801c6d2: 697b ldr r3, [r7, #20]
  70080. 801c6d4: 6a1b ldr r3, [r3, #32]
  70081. 801c6d6: 1ad3 subs r3, r2, r3
  70082. 801c6d8: 60fb str r3, [r7, #12]
  70083. inactive = pcb;
  70084. 801c6da: 697b ldr r3, [r7, #20]
  70085. 801c6dc: 613b str r3, [r7, #16]
  70086. mprio = pcb->prio;
  70087. 801c6de: 697b ldr r3, [r7, #20]
  70088. 801c6e0: 7d5b ldrb r3, [r3, #21]
  70089. 801c6e2: 72fb strb r3, [r7, #11]
  70090. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70091. 801c6e4: 697b ldr r3, [r7, #20]
  70092. 801c6e6: 68db ldr r3, [r3, #12]
  70093. 801c6e8: 617b str r3, [r7, #20]
  70094. 801c6ea: 697b ldr r3, [r7, #20]
  70095. 801c6ec: 2b00 cmp r3, #0
  70096. 801c6ee: d1dc bne.n 801c6aa <tcp_kill_prio+0x36>
  70097. }
  70098. }
  70099. if (inactive != NULL) {
  70100. 801c6f0: 693b ldr r3, [r7, #16]
  70101. 801c6f2: 2b00 cmp r3, #0
  70102. 801c6f4: d004 beq.n 801c700 <tcp_kill_prio+0x8c>
  70103. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n",
  70104. (void *)inactive, inactivity));
  70105. tcp_abort(inactive);
  70106. 801c6f6: 6938 ldr r0, [r7, #16]
  70107. 801c6f8: f7ff f8ee bl 801b8d8 <tcp_abort>
  70108. 801c6fc: e000 b.n 801c700 <tcp_kill_prio+0x8c>
  70109. return;
  70110. 801c6fe: bf00 nop
  70111. }
  70112. }
  70113. 801c700: 3718 adds r7, #24
  70114. 801c702: 46bd mov sp, r7
  70115. 801c704: bd80 pop {r7, pc}
  70116. 801c706: bf00 nop
  70117. 801c708: 2402af64 .word 0x2402af64
  70118. 801c70c: 2402af58 .word 0x2402af58
  70119. 0801c710 <tcp_kill_state>:
  70120. * Kills the oldest connection that is in specific state.
  70121. * Called from tcp_alloc() for LAST_ACK and CLOSING if no more connections are available.
  70122. */
  70123. static void
  70124. tcp_kill_state(enum tcp_state state)
  70125. {
  70126. 801c710: b580 push {r7, lr}
  70127. 801c712: b086 sub sp, #24
  70128. 801c714: af00 add r7, sp, #0
  70129. 801c716: 4603 mov r3, r0
  70130. 801c718: 71fb strb r3, [r7, #7]
  70131. struct tcp_pcb *pcb, *inactive;
  70132. u32_t inactivity;
  70133. LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK));
  70134. 801c71a: 79fb ldrb r3, [r7, #7]
  70135. 801c71c: 2b08 cmp r3, #8
  70136. 801c71e: d009 beq.n 801c734 <tcp_kill_state+0x24>
  70137. 801c720: 79fb ldrb r3, [r7, #7]
  70138. 801c722: 2b09 cmp r3, #9
  70139. 801c724: d006 beq.n 801c734 <tcp_kill_state+0x24>
  70140. 801c726: 4b1a ldr r3, [pc, #104] @ (801c790 <tcp_kill_state+0x80>)
  70141. 801c728: f240 62dd movw r2, #1757 @ 0x6dd
  70142. 801c72c: 4919 ldr r1, [pc, #100] @ (801c794 <tcp_kill_state+0x84>)
  70143. 801c72e: 481a ldr r0, [pc, #104] @ (801c798 <tcp_kill_state+0x88>)
  70144. 801c730: f00d fd44 bl 802a1bc <iprintf>
  70145. inactivity = 0;
  70146. 801c734: 2300 movs r3, #0
  70147. 801c736: 60fb str r3, [r7, #12]
  70148. inactive = NULL;
  70149. 801c738: 2300 movs r3, #0
  70150. 801c73a: 613b str r3, [r7, #16]
  70151. /* Go through the list of active pcbs and get the oldest pcb that is in state
  70152. CLOSING/LAST_ACK. */
  70153. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70154. 801c73c: 4b17 ldr r3, [pc, #92] @ (801c79c <tcp_kill_state+0x8c>)
  70155. 801c73e: 681b ldr r3, [r3, #0]
  70156. 801c740: 617b str r3, [r7, #20]
  70157. 801c742: e017 b.n 801c774 <tcp_kill_state+0x64>
  70158. if (pcb->state == state) {
  70159. 801c744: 697b ldr r3, [r7, #20]
  70160. 801c746: 7d1b ldrb r3, [r3, #20]
  70161. 801c748: 79fa ldrb r2, [r7, #7]
  70162. 801c74a: 429a cmp r2, r3
  70163. 801c74c: d10f bne.n 801c76e <tcp_kill_state+0x5e>
  70164. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  70165. 801c74e: 4b14 ldr r3, [pc, #80] @ (801c7a0 <tcp_kill_state+0x90>)
  70166. 801c750: 681a ldr r2, [r3, #0]
  70167. 801c752: 697b ldr r3, [r7, #20]
  70168. 801c754: 6a1b ldr r3, [r3, #32]
  70169. 801c756: 1ad3 subs r3, r2, r3
  70170. 801c758: 68fa ldr r2, [r7, #12]
  70171. 801c75a: 429a cmp r2, r3
  70172. 801c75c: d807 bhi.n 801c76e <tcp_kill_state+0x5e>
  70173. inactivity = tcp_ticks - pcb->tmr;
  70174. 801c75e: 4b10 ldr r3, [pc, #64] @ (801c7a0 <tcp_kill_state+0x90>)
  70175. 801c760: 681a ldr r2, [r3, #0]
  70176. 801c762: 697b ldr r3, [r7, #20]
  70177. 801c764: 6a1b ldr r3, [r3, #32]
  70178. 801c766: 1ad3 subs r3, r2, r3
  70179. 801c768: 60fb str r3, [r7, #12]
  70180. inactive = pcb;
  70181. 801c76a: 697b ldr r3, [r7, #20]
  70182. 801c76c: 613b str r3, [r7, #16]
  70183. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  70184. 801c76e: 697b ldr r3, [r7, #20]
  70185. 801c770: 68db ldr r3, [r3, #12]
  70186. 801c772: 617b str r3, [r7, #20]
  70187. 801c774: 697b ldr r3, [r7, #20]
  70188. 801c776: 2b00 cmp r3, #0
  70189. 801c778: d1e4 bne.n 801c744 <tcp_kill_state+0x34>
  70190. }
  70191. }
  70192. }
  70193. if (inactive != NULL) {
  70194. 801c77a: 693b ldr r3, [r7, #16]
  70195. 801c77c: 2b00 cmp r3, #0
  70196. 801c77e: d003 beq.n 801c788 <tcp_kill_state+0x78>
  70197. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_closing: killing oldest %s PCB %p (%"S32_F")\n",
  70198. tcp_state_str[state], (void *)inactive, inactivity));
  70199. /* Don't send a RST, since no data is lost. */
  70200. tcp_abandon(inactive, 0);
  70201. 801c780: 2100 movs r1, #0
  70202. 801c782: 6938 ldr r0, [r7, #16]
  70203. 801c784: f7fe ffe8 bl 801b758 <tcp_abandon>
  70204. }
  70205. }
  70206. 801c788: bf00 nop
  70207. 801c78a: 3718 adds r7, #24
  70208. 801c78c: 46bd mov sp, r7
  70209. 801c78e: bd80 pop {r7, pc}
  70210. 801c790: 0802ee3c .word 0x0802ee3c
  70211. 801c794: 0802f3c8 .word 0x0802f3c8
  70212. 801c798: 0802ee80 .word 0x0802ee80
  70213. 801c79c: 2402af64 .word 0x2402af64
  70214. 801c7a0: 2402af58 .word 0x2402af58
  70215. 0801c7a4 <tcp_kill_timewait>:
  70216. * Kills the oldest connection that is in TIME_WAIT state.
  70217. * Called from tcp_alloc() if no more connections are available.
  70218. */
  70219. static void
  70220. tcp_kill_timewait(void)
  70221. {
  70222. 801c7a4: b580 push {r7, lr}
  70223. 801c7a6: b084 sub sp, #16
  70224. 801c7a8: af00 add r7, sp, #0
  70225. struct tcp_pcb *pcb, *inactive;
  70226. u32_t inactivity;
  70227. inactivity = 0;
  70228. 801c7aa: 2300 movs r3, #0
  70229. 801c7ac: 607b str r3, [r7, #4]
  70230. inactive = NULL;
  70231. 801c7ae: 2300 movs r3, #0
  70232. 801c7b0: 60bb str r3, [r7, #8]
  70233. /* Go through the list of TIME_WAIT pcbs and get the oldest pcb. */
  70234. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  70235. 801c7b2: 4b12 ldr r3, [pc, #72] @ (801c7fc <tcp_kill_timewait+0x58>)
  70236. 801c7b4: 681b ldr r3, [r3, #0]
  70237. 801c7b6: 60fb str r3, [r7, #12]
  70238. 801c7b8: e012 b.n 801c7e0 <tcp_kill_timewait+0x3c>
  70239. if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) {
  70240. 801c7ba: 4b11 ldr r3, [pc, #68] @ (801c800 <tcp_kill_timewait+0x5c>)
  70241. 801c7bc: 681a ldr r2, [r3, #0]
  70242. 801c7be: 68fb ldr r3, [r7, #12]
  70243. 801c7c0: 6a1b ldr r3, [r3, #32]
  70244. 801c7c2: 1ad3 subs r3, r2, r3
  70245. 801c7c4: 687a ldr r2, [r7, #4]
  70246. 801c7c6: 429a cmp r2, r3
  70247. 801c7c8: d807 bhi.n 801c7da <tcp_kill_timewait+0x36>
  70248. inactivity = tcp_ticks - pcb->tmr;
  70249. 801c7ca: 4b0d ldr r3, [pc, #52] @ (801c800 <tcp_kill_timewait+0x5c>)
  70250. 801c7cc: 681a ldr r2, [r3, #0]
  70251. 801c7ce: 68fb ldr r3, [r7, #12]
  70252. 801c7d0: 6a1b ldr r3, [r3, #32]
  70253. 801c7d2: 1ad3 subs r3, r2, r3
  70254. 801c7d4: 607b str r3, [r7, #4]
  70255. inactive = pcb;
  70256. 801c7d6: 68fb ldr r3, [r7, #12]
  70257. 801c7d8: 60bb str r3, [r7, #8]
  70258. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  70259. 801c7da: 68fb ldr r3, [r7, #12]
  70260. 801c7dc: 68db ldr r3, [r3, #12]
  70261. 801c7de: 60fb str r3, [r7, #12]
  70262. 801c7e0: 68fb ldr r3, [r7, #12]
  70263. 801c7e2: 2b00 cmp r3, #0
  70264. 801c7e4: d1e9 bne.n 801c7ba <tcp_kill_timewait+0x16>
  70265. }
  70266. }
  70267. if (inactive != NULL) {
  70268. 801c7e6: 68bb ldr r3, [r7, #8]
  70269. 801c7e8: 2b00 cmp r3, #0
  70270. 801c7ea: d002 beq.n 801c7f2 <tcp_kill_timewait+0x4e>
  70271. LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n",
  70272. (void *)inactive, inactivity));
  70273. tcp_abort(inactive);
  70274. 801c7ec: 68b8 ldr r0, [r7, #8]
  70275. 801c7ee: f7ff f873 bl 801b8d8 <tcp_abort>
  70276. }
  70277. }
  70278. 801c7f2: bf00 nop
  70279. 801c7f4: 3710 adds r7, #16
  70280. 801c7f6: 46bd mov sp, r7
  70281. 801c7f8: bd80 pop {r7, pc}
  70282. 801c7fa: bf00 nop
  70283. 801c7fc: 2402af68 .word 0x2402af68
  70284. 801c800: 2402af58 .word 0x2402af58
  70285. 0801c804 <tcp_handle_closepend>:
  70286. * now send the FIN (which failed before), the pcb might be in a state that is
  70287. * OK for us to now free it.
  70288. */
  70289. static void
  70290. tcp_handle_closepend(void)
  70291. {
  70292. 801c804: b580 push {r7, lr}
  70293. 801c806: b082 sub sp, #8
  70294. 801c808: af00 add r7, sp, #0
  70295. struct tcp_pcb *pcb = tcp_active_pcbs;
  70296. 801c80a: 4b10 ldr r3, [pc, #64] @ (801c84c <tcp_handle_closepend+0x48>)
  70297. 801c80c: 681b ldr r3, [r3, #0]
  70298. 801c80e: 607b str r3, [r7, #4]
  70299. while (pcb != NULL) {
  70300. 801c810: e014 b.n 801c83c <tcp_handle_closepend+0x38>
  70301. struct tcp_pcb *next = pcb->next;
  70302. 801c812: 687b ldr r3, [r7, #4]
  70303. 801c814: 68db ldr r3, [r3, #12]
  70304. 801c816: 603b str r3, [r7, #0]
  70305. /* send pending FIN */
  70306. if (pcb->flags & TF_CLOSEPEND) {
  70307. 801c818: 687b ldr r3, [r7, #4]
  70308. 801c81a: 8b5b ldrh r3, [r3, #26]
  70309. 801c81c: f003 0308 and.w r3, r3, #8
  70310. 801c820: 2b00 cmp r3, #0
  70311. 801c822: d009 beq.n 801c838 <tcp_handle_closepend+0x34>
  70312. LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n"));
  70313. tcp_clear_flags(pcb, TF_CLOSEPEND);
  70314. 801c824: 687b ldr r3, [r7, #4]
  70315. 801c826: 8b5b ldrh r3, [r3, #26]
  70316. 801c828: f023 0308 bic.w r3, r3, #8
  70317. 801c82c: b29a uxth r2, r3
  70318. 801c82e: 687b ldr r3, [r7, #4]
  70319. 801c830: 835a strh r2, [r3, #26]
  70320. tcp_close_shutdown_fin(pcb);
  70321. 801c832: 6878 ldr r0, [r7, #4]
  70322. 801c834: f7fe fe9a bl 801b56c <tcp_close_shutdown_fin>
  70323. }
  70324. pcb = next;
  70325. 801c838: 683b ldr r3, [r7, #0]
  70326. 801c83a: 607b str r3, [r7, #4]
  70327. while (pcb != NULL) {
  70328. 801c83c: 687b ldr r3, [r7, #4]
  70329. 801c83e: 2b00 cmp r3, #0
  70330. 801c840: d1e7 bne.n 801c812 <tcp_handle_closepend+0xe>
  70331. }
  70332. }
  70333. 801c842: bf00 nop
  70334. 801c844: bf00 nop
  70335. 801c846: 3708 adds r7, #8
  70336. 801c848: 46bd mov sp, r7
  70337. 801c84a: bd80 pop {r7, pc}
  70338. 801c84c: 2402af64 .word 0x2402af64
  70339. 0801c850 <tcp_alloc>:
  70340. * @param prio priority for the new pcb
  70341. * @return a new tcp_pcb that initially is in state CLOSED
  70342. */
  70343. struct tcp_pcb *
  70344. tcp_alloc(u8_t prio)
  70345. {
  70346. 801c850: b580 push {r7, lr}
  70347. 801c852: b084 sub sp, #16
  70348. 801c854: af00 add r7, sp, #0
  70349. 801c856: 4603 mov r3, r0
  70350. 801c858: 71fb strb r3, [r7, #7]
  70351. struct tcp_pcb *pcb;
  70352. LWIP_ASSERT_CORE_LOCKED();
  70353. 801c85a: f7f4 f90f bl 8010a7c <sys_check_core_locking>
  70354. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  70355. 801c85e: 2001 movs r0, #1
  70356. 801c860: f7fd fad0 bl 8019e04 <memp_malloc>
  70357. 801c864: 60f8 str r0, [r7, #12]
  70358. if (pcb == NULL) {
  70359. 801c866: 68fb ldr r3, [r7, #12]
  70360. 801c868: 2b00 cmp r3, #0
  70361. 801c86a: d126 bne.n 801c8ba <tcp_alloc+0x6a>
  70362. /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */
  70363. tcp_handle_closepend();
  70364. 801c86c: f7ff ffca bl 801c804 <tcp_handle_closepend>
  70365. /* Try killing oldest connection in TIME-WAIT. */
  70366. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n"));
  70367. tcp_kill_timewait();
  70368. 801c870: f7ff ff98 bl 801c7a4 <tcp_kill_timewait>
  70369. /* Try to allocate a tcp_pcb again. */
  70370. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  70371. 801c874: 2001 movs r0, #1
  70372. 801c876: f7fd fac5 bl 8019e04 <memp_malloc>
  70373. 801c87a: 60f8 str r0, [r7, #12]
  70374. if (pcb == NULL) {
  70375. 801c87c: 68fb ldr r3, [r7, #12]
  70376. 801c87e: 2b00 cmp r3, #0
  70377. 801c880: d11b bne.n 801c8ba <tcp_alloc+0x6a>
  70378. /* Try killing oldest connection in LAST-ACK (these wouldn't go to TIME-WAIT). */
  70379. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest LAST-ACK connection\n"));
  70380. tcp_kill_state(LAST_ACK);
  70381. 801c882: 2009 movs r0, #9
  70382. 801c884: f7ff ff44 bl 801c710 <tcp_kill_state>
  70383. /* Try to allocate a tcp_pcb again. */
  70384. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  70385. 801c888: 2001 movs r0, #1
  70386. 801c88a: f7fd fabb bl 8019e04 <memp_malloc>
  70387. 801c88e: 60f8 str r0, [r7, #12]
  70388. if (pcb == NULL) {
  70389. 801c890: 68fb ldr r3, [r7, #12]
  70390. 801c892: 2b00 cmp r3, #0
  70391. 801c894: d111 bne.n 801c8ba <tcp_alloc+0x6a>
  70392. /* Try killing oldest connection in CLOSING. */
  70393. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n"));
  70394. tcp_kill_state(CLOSING);
  70395. 801c896: 2008 movs r0, #8
  70396. 801c898: f7ff ff3a bl 801c710 <tcp_kill_state>
  70397. /* Try to allocate a tcp_pcb again. */
  70398. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  70399. 801c89c: 2001 movs r0, #1
  70400. 801c89e: f7fd fab1 bl 8019e04 <memp_malloc>
  70401. 801c8a2: 60f8 str r0, [r7, #12]
  70402. if (pcb == NULL) {
  70403. 801c8a4: 68fb ldr r3, [r7, #12]
  70404. 801c8a6: 2b00 cmp r3, #0
  70405. 801c8a8: d107 bne.n 801c8ba <tcp_alloc+0x6a>
  70406. /* Try killing oldest active connection with lower priority than the new one. */
  70407. LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio));
  70408. tcp_kill_prio(prio);
  70409. 801c8aa: 79fb ldrb r3, [r7, #7]
  70410. 801c8ac: 4618 mov r0, r3
  70411. 801c8ae: f7ff fee1 bl 801c674 <tcp_kill_prio>
  70412. /* Try to allocate a tcp_pcb again. */
  70413. pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB);
  70414. 801c8b2: 2001 movs r0, #1
  70415. 801c8b4: f7fd faa6 bl 8019e04 <memp_malloc>
  70416. 801c8b8: 60f8 str r0, [r7, #12]
  70417. if (pcb != NULL) {
  70418. /* adjust err stats: memp_malloc failed above */
  70419. MEMP_STATS_DEC(err, MEMP_TCP_PCB);
  70420. }
  70421. }
  70422. if (pcb != NULL) {
  70423. 801c8ba: 68fb ldr r3, [r7, #12]
  70424. 801c8bc: 2b00 cmp r3, #0
  70425. 801c8be: d03f beq.n 801c940 <tcp_alloc+0xf0>
  70426. /* zero out the whole pcb, so there is no need to initialize members to zero */
  70427. memset(pcb, 0, sizeof(struct tcp_pcb));
  70428. 801c8c0: 229c movs r2, #156 @ 0x9c
  70429. 801c8c2: 2100 movs r1, #0
  70430. 801c8c4: 68f8 ldr r0, [r7, #12]
  70431. 801c8c6: f00d fe0b bl 802a4e0 <memset>
  70432. pcb->prio = prio;
  70433. 801c8ca: 68fb ldr r3, [r7, #12]
  70434. 801c8cc: 79fa ldrb r2, [r7, #7]
  70435. 801c8ce: 755a strb r2, [r3, #21]
  70436. pcb->snd_buf = TCP_SND_BUF;
  70437. 801c8d0: 68fb ldr r3, [r7, #12]
  70438. 801c8d2: f241 62d0 movw r2, #5840 @ 0x16d0
  70439. 801c8d6: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  70440. /* Start with a window that does not need scaling. When window scaling is
  70441. enabled and used, the window is enlarged when both sides agree on scaling. */
  70442. pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND);
  70443. 801c8da: 68fb ldr r3, [r7, #12]
  70444. 801c8dc: f241 62d0 movw r2, #5840 @ 0x16d0
  70445. 801c8e0: 855a strh r2, [r3, #42] @ 0x2a
  70446. 801c8e2: 68fb ldr r3, [r7, #12]
  70447. 801c8e4: 8d5a ldrh r2, [r3, #42] @ 0x2a
  70448. 801c8e6: 68fb ldr r3, [r7, #12]
  70449. 801c8e8: 851a strh r2, [r3, #40] @ 0x28
  70450. pcb->ttl = TCP_TTL;
  70451. 801c8ea: 68fb ldr r3, [r7, #12]
  70452. 801c8ec: 22ff movs r2, #255 @ 0xff
  70453. 801c8ee: 72da strb r2, [r3, #11]
  70454. /* As initial send MSS, we use TCP_MSS but limit it to 536.
  70455. The send MSS is updated when an MSS option is received. */
  70456. pcb->mss = INITIAL_MSS;
  70457. 801c8f0: 68fb ldr r3, [r7, #12]
  70458. 801c8f2: f44f 7206 mov.w r2, #536 @ 0x218
  70459. 801c8f6: 865a strh r2, [r3, #50] @ 0x32
  70460. pcb->rto = 3000 / TCP_SLOW_INTERVAL;
  70461. 801c8f8: 68fb ldr r3, [r7, #12]
  70462. 801c8fa: 2206 movs r2, #6
  70463. 801c8fc: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  70464. pcb->sv = 3000 / TCP_SLOW_INTERVAL;
  70465. 801c900: 68fb ldr r3, [r7, #12]
  70466. 801c902: 2206 movs r2, #6
  70467. 801c904: 87da strh r2, [r3, #62] @ 0x3e
  70468. pcb->rtime = -1;
  70469. 801c906: 68fb ldr r3, [r7, #12]
  70470. 801c908: f64f 72ff movw r2, #65535 @ 0xffff
  70471. 801c90c: 861a strh r2, [r3, #48] @ 0x30
  70472. pcb->cwnd = 1;
  70473. 801c90e: 68fb ldr r3, [r7, #12]
  70474. 801c910: 2201 movs r2, #1
  70475. 801c912: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  70476. pcb->tmr = tcp_ticks;
  70477. 801c916: 4b0d ldr r3, [pc, #52] @ (801c94c <tcp_alloc+0xfc>)
  70478. 801c918: 681a ldr r2, [r3, #0]
  70479. 801c91a: 68fb ldr r3, [r7, #12]
  70480. 801c91c: 621a str r2, [r3, #32]
  70481. pcb->last_timer = tcp_timer_ctr;
  70482. 801c91e: 4b0c ldr r3, [pc, #48] @ (801c950 <tcp_alloc+0x100>)
  70483. 801c920: 781a ldrb r2, [r3, #0]
  70484. 801c922: 68fb ldr r3, [r7, #12]
  70485. 801c924: 779a strb r2, [r3, #30]
  70486. of using the largest advertised receive window. We've seen complications with
  70487. receiving TCPs that use window scaling and/or window auto-tuning where the
  70488. initial advertised window is very small and then grows rapidly once the
  70489. connection is established. To avoid these complications, we set ssthresh to the
  70490. largest effective cwnd (amount of in-flight data) that the sender can have. */
  70491. pcb->ssthresh = TCP_SND_BUF;
  70492. 801c926: 68fb ldr r3, [r7, #12]
  70493. 801c928: f241 62d0 movw r2, #5840 @ 0x16d0
  70494. 801c92c: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  70495. #if LWIP_CALLBACK_API
  70496. pcb->recv = tcp_recv_null;
  70497. 801c930: 68fb ldr r3, [r7, #12]
  70498. 801c932: 4a08 ldr r2, [pc, #32] @ (801c954 <tcp_alloc+0x104>)
  70499. 801c934: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  70500. #endif /* LWIP_CALLBACK_API */
  70501. /* Init KEEPALIVE timer */
  70502. pcb->keep_idle = TCP_KEEPIDLE_DEFAULT;
  70503. 801c938: 68fb ldr r3, [r7, #12]
  70504. 801c93a: 4a07 ldr r2, [pc, #28] @ (801c958 <tcp_alloc+0x108>)
  70505. 801c93c: f8c3 2094 str.w r2, [r3, #148] @ 0x94
  70506. #if LWIP_TCP_KEEPALIVE
  70507. pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT;
  70508. pcb->keep_cnt = TCP_KEEPCNT_DEFAULT;
  70509. #endif /* LWIP_TCP_KEEPALIVE */
  70510. }
  70511. return pcb;
  70512. 801c940: 68fb ldr r3, [r7, #12]
  70513. }
  70514. 801c942: 4618 mov r0, r3
  70515. 801c944: 3710 adds r7, #16
  70516. 801c946: 46bd mov sp, r7
  70517. 801c948: bd80 pop {r7, pc}
  70518. 801c94a: bf00 nop
  70519. 801c94c: 2402af58 .word 0x2402af58
  70520. 801c950: 2402af6e .word 0x2402af6e
  70521. 801c954: 0801c609 .word 0x0801c609
  70522. 801c958: 006ddd00 .word 0x006ddd00
  70523. 0801c95c <tcp_new_ip_type>:
  70524. * supply @ref IPADDR_TYPE_ANY as argument and bind to @ref IP_ANY_TYPE.
  70525. * @return a new tcp_pcb that initially is in state CLOSED
  70526. */
  70527. struct tcp_pcb *
  70528. tcp_new_ip_type(u8_t type)
  70529. {
  70530. 801c95c: b580 push {r7, lr}
  70531. 801c95e: b084 sub sp, #16
  70532. 801c960: af00 add r7, sp, #0
  70533. 801c962: 4603 mov r3, r0
  70534. 801c964: 71fb strb r3, [r7, #7]
  70535. struct tcp_pcb *pcb;
  70536. pcb = tcp_alloc(TCP_PRIO_NORMAL);
  70537. 801c966: 2040 movs r0, #64 @ 0x40
  70538. 801c968: f7ff ff72 bl 801c850 <tcp_alloc>
  70539. 801c96c: 60f8 str r0, [r7, #12]
  70540. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  70541. }
  70542. #else
  70543. LWIP_UNUSED_ARG(type);
  70544. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  70545. return pcb;
  70546. 801c96e: 68fb ldr r3, [r7, #12]
  70547. }
  70548. 801c970: 4618 mov r0, r3
  70549. 801c972: 3710 adds r7, #16
  70550. 801c974: 46bd mov sp, r7
  70551. 801c976: bd80 pop {r7, pc}
  70552. 0801c978 <tcp_arg>:
  70553. * @param pcb tcp_pcb to set the callback argument
  70554. * @param arg void pointer argument to pass to callback functions
  70555. */
  70556. void
  70557. tcp_arg(struct tcp_pcb *pcb, void *arg)
  70558. {
  70559. 801c978: b580 push {r7, lr}
  70560. 801c97a: b082 sub sp, #8
  70561. 801c97c: af00 add r7, sp, #0
  70562. 801c97e: 6078 str r0, [r7, #4]
  70563. 801c980: 6039 str r1, [r7, #0]
  70564. LWIP_ASSERT_CORE_LOCKED();
  70565. 801c982: f7f4 f87b bl 8010a7c <sys_check_core_locking>
  70566. /* This function is allowed to be called for both listen pcbs and
  70567. connection pcbs. */
  70568. if (pcb != NULL) {
  70569. 801c986: 687b ldr r3, [r7, #4]
  70570. 801c988: 2b00 cmp r3, #0
  70571. 801c98a: d002 beq.n 801c992 <tcp_arg+0x1a>
  70572. pcb->callback_arg = arg;
  70573. 801c98c: 687b ldr r3, [r7, #4]
  70574. 801c98e: 683a ldr r2, [r7, #0]
  70575. 801c990: 611a str r2, [r3, #16]
  70576. }
  70577. }
  70578. 801c992: bf00 nop
  70579. 801c994: 3708 adds r7, #8
  70580. 801c996: 46bd mov sp, r7
  70581. 801c998: bd80 pop {r7, pc}
  70582. ...
  70583. 0801c99c <tcp_recv>:
  70584. * @param pcb tcp_pcb to set the recv callback
  70585. * @param recv callback function to call for this pcb when data is received
  70586. */
  70587. void
  70588. tcp_recv(struct tcp_pcb *pcb, tcp_recv_fn recv)
  70589. {
  70590. 801c99c: b580 push {r7, lr}
  70591. 801c99e: b082 sub sp, #8
  70592. 801c9a0: af00 add r7, sp, #0
  70593. 801c9a2: 6078 str r0, [r7, #4]
  70594. 801c9a4: 6039 str r1, [r7, #0]
  70595. LWIP_ASSERT_CORE_LOCKED();
  70596. 801c9a6: f7f4 f869 bl 8010a7c <sys_check_core_locking>
  70597. if (pcb != NULL) {
  70598. 801c9aa: 687b ldr r3, [r7, #4]
  70599. 801c9ac: 2b00 cmp r3, #0
  70600. 801c9ae: d00e beq.n 801c9ce <tcp_recv+0x32>
  70601. LWIP_ASSERT("invalid socket state for recv callback", pcb->state != LISTEN);
  70602. 801c9b0: 687b ldr r3, [r7, #4]
  70603. 801c9b2: 7d1b ldrb r3, [r3, #20]
  70604. 801c9b4: 2b01 cmp r3, #1
  70605. 801c9b6: d106 bne.n 801c9c6 <tcp_recv+0x2a>
  70606. 801c9b8: 4b07 ldr r3, [pc, #28] @ (801c9d8 <tcp_recv+0x3c>)
  70607. 801c9ba: f240 72df movw r2, #2015 @ 0x7df
  70608. 801c9be: 4907 ldr r1, [pc, #28] @ (801c9dc <tcp_recv+0x40>)
  70609. 801c9c0: 4807 ldr r0, [pc, #28] @ (801c9e0 <tcp_recv+0x44>)
  70610. 801c9c2: f00d fbfb bl 802a1bc <iprintf>
  70611. pcb->recv = recv;
  70612. 801c9c6: 687b ldr r3, [r7, #4]
  70613. 801c9c8: 683a ldr r2, [r7, #0]
  70614. 801c9ca: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  70615. }
  70616. }
  70617. 801c9ce: bf00 nop
  70618. 801c9d0: 3708 adds r7, #8
  70619. 801c9d2: 46bd mov sp, r7
  70620. 801c9d4: bd80 pop {r7, pc}
  70621. 801c9d6: bf00 nop
  70622. 801c9d8: 0802ee3c .word 0x0802ee3c
  70623. 801c9dc: 0802f3d8 .word 0x0802f3d8
  70624. 801c9e0: 0802ee80 .word 0x0802ee80
  70625. 0801c9e4 <tcp_sent>:
  70626. * @param pcb tcp_pcb to set the sent callback
  70627. * @param sent callback function to call for this pcb when data is successfully sent
  70628. */
  70629. void
  70630. tcp_sent(struct tcp_pcb *pcb, tcp_sent_fn sent)
  70631. {
  70632. 801c9e4: b580 push {r7, lr}
  70633. 801c9e6: b082 sub sp, #8
  70634. 801c9e8: af00 add r7, sp, #0
  70635. 801c9ea: 6078 str r0, [r7, #4]
  70636. 801c9ec: 6039 str r1, [r7, #0]
  70637. LWIP_ASSERT_CORE_LOCKED();
  70638. 801c9ee: f7f4 f845 bl 8010a7c <sys_check_core_locking>
  70639. if (pcb != NULL) {
  70640. 801c9f2: 687b ldr r3, [r7, #4]
  70641. 801c9f4: 2b00 cmp r3, #0
  70642. 801c9f6: d00e beq.n 801ca16 <tcp_sent+0x32>
  70643. LWIP_ASSERT("invalid socket state for sent callback", pcb->state != LISTEN);
  70644. 801c9f8: 687b ldr r3, [r7, #4]
  70645. 801c9fa: 7d1b ldrb r3, [r3, #20]
  70646. 801c9fc: 2b01 cmp r3, #1
  70647. 801c9fe: d106 bne.n 801ca0e <tcp_sent+0x2a>
  70648. 801ca00: 4b07 ldr r3, [pc, #28] @ (801ca20 <tcp_sent+0x3c>)
  70649. 801ca02: f240 72f3 movw r2, #2035 @ 0x7f3
  70650. 801ca06: 4907 ldr r1, [pc, #28] @ (801ca24 <tcp_sent+0x40>)
  70651. 801ca08: 4807 ldr r0, [pc, #28] @ (801ca28 <tcp_sent+0x44>)
  70652. 801ca0a: f00d fbd7 bl 802a1bc <iprintf>
  70653. pcb->sent = sent;
  70654. 801ca0e: 687b ldr r3, [r7, #4]
  70655. 801ca10: 683a ldr r2, [r7, #0]
  70656. 801ca12: f8c3 2080 str.w r2, [r3, #128] @ 0x80
  70657. }
  70658. }
  70659. 801ca16: bf00 nop
  70660. 801ca18: 3708 adds r7, #8
  70661. 801ca1a: 46bd mov sp, r7
  70662. 801ca1c: bd80 pop {r7, pc}
  70663. 801ca1e: bf00 nop
  70664. 801ca20: 0802ee3c .word 0x0802ee3c
  70665. 801ca24: 0802f400 .word 0x0802f400
  70666. 801ca28: 0802ee80 .word 0x0802ee80
  70667. 0801ca2c <tcp_err>:
  70668. * @param err callback function to call for this pcb when a fatal error
  70669. * has occurred on the connection
  70670. */
  70671. void
  70672. tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
  70673. {
  70674. 801ca2c: b580 push {r7, lr}
  70675. 801ca2e: b082 sub sp, #8
  70676. 801ca30: af00 add r7, sp, #0
  70677. 801ca32: 6078 str r0, [r7, #4]
  70678. 801ca34: 6039 str r1, [r7, #0]
  70679. LWIP_ASSERT_CORE_LOCKED();
  70680. 801ca36: f7f4 f821 bl 8010a7c <sys_check_core_locking>
  70681. if (pcb != NULL) {
  70682. 801ca3a: 687b ldr r3, [r7, #4]
  70683. 801ca3c: 2b00 cmp r3, #0
  70684. 801ca3e: d00e beq.n 801ca5e <tcp_err+0x32>
  70685. LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
  70686. 801ca40: 687b ldr r3, [r7, #4]
  70687. 801ca42: 7d1b ldrb r3, [r3, #20]
  70688. 801ca44: 2b01 cmp r3, #1
  70689. 801ca46: d106 bne.n 801ca56 <tcp_err+0x2a>
  70690. 801ca48: 4b07 ldr r3, [pc, #28] @ (801ca68 <tcp_err+0x3c>)
  70691. 801ca4a: f640 020d movw r2, #2061 @ 0x80d
  70692. 801ca4e: 4907 ldr r1, [pc, #28] @ (801ca6c <tcp_err+0x40>)
  70693. 801ca50: 4807 ldr r0, [pc, #28] @ (801ca70 <tcp_err+0x44>)
  70694. 801ca52: f00d fbb3 bl 802a1bc <iprintf>
  70695. pcb->errf = err;
  70696. 801ca56: 687b ldr r3, [r7, #4]
  70697. 801ca58: 683a ldr r2, [r7, #0]
  70698. 801ca5a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  70699. }
  70700. }
  70701. 801ca5e: bf00 nop
  70702. 801ca60: 3708 adds r7, #8
  70703. 801ca62: 46bd mov sp, r7
  70704. 801ca64: bd80 pop {r7, pc}
  70705. 801ca66: bf00 nop
  70706. 801ca68: 0802ee3c .word 0x0802ee3c
  70707. 801ca6c: 0802f428 .word 0x0802f428
  70708. 801ca70: 0802ee80 .word 0x0802ee80
  70709. 0801ca74 <tcp_accept>:
  70710. * @param accept callback function to call for this pcb when LISTENing
  70711. * connection has been connected to another host
  70712. */
  70713. void
  70714. tcp_accept(struct tcp_pcb *pcb, tcp_accept_fn accept)
  70715. {
  70716. 801ca74: b580 push {r7, lr}
  70717. 801ca76: b084 sub sp, #16
  70718. 801ca78: af00 add r7, sp, #0
  70719. 801ca7a: 6078 str r0, [r7, #4]
  70720. 801ca7c: 6039 str r1, [r7, #0]
  70721. LWIP_ASSERT_CORE_LOCKED();
  70722. 801ca7e: f7f3 fffd bl 8010a7c <sys_check_core_locking>
  70723. if ((pcb != NULL) && (pcb->state == LISTEN)) {
  70724. 801ca82: 687b ldr r3, [r7, #4]
  70725. 801ca84: 2b00 cmp r3, #0
  70726. 801ca86: d008 beq.n 801ca9a <tcp_accept+0x26>
  70727. 801ca88: 687b ldr r3, [r7, #4]
  70728. 801ca8a: 7d1b ldrb r3, [r3, #20]
  70729. 801ca8c: 2b01 cmp r3, #1
  70730. 801ca8e: d104 bne.n 801ca9a <tcp_accept+0x26>
  70731. struct tcp_pcb_listen *lpcb = (struct tcp_pcb_listen *)pcb;
  70732. 801ca90: 687b ldr r3, [r7, #4]
  70733. 801ca92: 60fb str r3, [r7, #12]
  70734. lpcb->accept = accept;
  70735. 801ca94: 68fb ldr r3, [r7, #12]
  70736. 801ca96: 683a ldr r2, [r7, #0]
  70737. 801ca98: 619a str r2, [r3, #24]
  70738. }
  70739. }
  70740. 801ca9a: bf00 nop
  70741. 801ca9c: 3710 adds r7, #16
  70742. 801ca9e: 46bd mov sp, r7
  70743. 801caa0: bd80 pop {r7, pc}
  70744. ...
  70745. 0801caa4 <tcp_poll>:
  70746. * the application may use the polling functionality to call tcp_write()
  70747. * again when the connection has been idle for a while.
  70748. */
  70749. void
  70750. tcp_poll(struct tcp_pcb *pcb, tcp_poll_fn poll, u8_t interval)
  70751. {
  70752. 801caa4: b580 push {r7, lr}
  70753. 801caa6: b084 sub sp, #16
  70754. 801caa8: af00 add r7, sp, #0
  70755. 801caaa: 60f8 str r0, [r7, #12]
  70756. 801caac: 60b9 str r1, [r7, #8]
  70757. 801caae: 4613 mov r3, r2
  70758. 801cab0: 71fb strb r3, [r7, #7]
  70759. LWIP_ASSERT_CORE_LOCKED();
  70760. 801cab2: f7f3 ffe3 bl 8010a7c <sys_check_core_locking>
  70761. LWIP_ERROR("tcp_poll: invalid pcb", pcb != NULL, return);
  70762. 801cab6: 68fb ldr r3, [r7, #12]
  70763. 801cab8: 2b00 cmp r3, #0
  70764. 801caba: d107 bne.n 801cacc <tcp_poll+0x28>
  70765. 801cabc: 4b0e ldr r3, [pc, #56] @ (801caf8 <tcp_poll+0x54>)
  70766. 801cabe: f640 023d movw r2, #2109 @ 0x83d
  70767. 801cac2: 490e ldr r1, [pc, #56] @ (801cafc <tcp_poll+0x58>)
  70768. 801cac4: 480e ldr r0, [pc, #56] @ (801cb00 <tcp_poll+0x5c>)
  70769. 801cac6: f00d fb79 bl 802a1bc <iprintf>
  70770. 801caca: e011 b.n 801caf0 <tcp_poll+0x4c>
  70771. LWIP_ASSERT("invalid socket state for poll", pcb->state != LISTEN);
  70772. 801cacc: 68fb ldr r3, [r7, #12]
  70773. 801cace: 7d1b ldrb r3, [r3, #20]
  70774. 801cad0: 2b01 cmp r3, #1
  70775. 801cad2: d106 bne.n 801cae2 <tcp_poll+0x3e>
  70776. 801cad4: 4b08 ldr r3, [pc, #32] @ (801caf8 <tcp_poll+0x54>)
  70777. 801cad6: f640 023e movw r2, #2110 @ 0x83e
  70778. 801cada: 490a ldr r1, [pc, #40] @ (801cb04 <tcp_poll+0x60>)
  70779. 801cadc: 4808 ldr r0, [pc, #32] @ (801cb00 <tcp_poll+0x5c>)
  70780. 801cade: f00d fb6d bl 802a1bc <iprintf>
  70781. #if LWIP_CALLBACK_API
  70782. pcb->poll = poll;
  70783. 801cae2: 68fb ldr r3, [r7, #12]
  70784. 801cae4: 68ba ldr r2, [r7, #8]
  70785. 801cae6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  70786. #else /* LWIP_CALLBACK_API */
  70787. LWIP_UNUSED_ARG(poll);
  70788. #endif /* LWIP_CALLBACK_API */
  70789. pcb->pollinterval = interval;
  70790. 801caea: 68fb ldr r3, [r7, #12]
  70791. 801caec: 79fa ldrb r2, [r7, #7]
  70792. 801caee: 775a strb r2, [r3, #29]
  70793. }
  70794. 801caf0: 3710 adds r7, #16
  70795. 801caf2: 46bd mov sp, r7
  70796. 801caf4: bd80 pop {r7, pc}
  70797. 801caf6: bf00 nop
  70798. 801caf8: 0802ee3c .word 0x0802ee3c
  70799. 801cafc: 0802f450 .word 0x0802f450
  70800. 801cb00: 0802ee80 .word 0x0802ee80
  70801. 801cb04: 0802f468 .word 0x0802f468
  70802. 0801cb08 <tcp_pcb_purge>:
  70803. *
  70804. * @param pcb tcp_pcb to purge. The pcb itself is not deallocated!
  70805. */
  70806. void
  70807. tcp_pcb_purge(struct tcp_pcb *pcb)
  70808. {
  70809. 801cb08: b580 push {r7, lr}
  70810. 801cb0a: b082 sub sp, #8
  70811. 801cb0c: af00 add r7, sp, #0
  70812. 801cb0e: 6078 str r0, [r7, #4]
  70813. LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return);
  70814. 801cb10: 687b ldr r3, [r7, #4]
  70815. 801cb12: 2b00 cmp r3, #0
  70816. 801cb14: d107 bne.n 801cb26 <tcp_pcb_purge+0x1e>
  70817. 801cb16: 4b21 ldr r3, [pc, #132] @ (801cb9c <tcp_pcb_purge+0x94>)
  70818. 801cb18: f640 0251 movw r2, #2129 @ 0x851
  70819. 801cb1c: 4920 ldr r1, [pc, #128] @ (801cba0 <tcp_pcb_purge+0x98>)
  70820. 801cb1e: 4821 ldr r0, [pc, #132] @ (801cba4 <tcp_pcb_purge+0x9c>)
  70821. 801cb20: f00d fb4c bl 802a1bc <iprintf>
  70822. 801cb24: e037 b.n 801cb96 <tcp_pcb_purge+0x8e>
  70823. if (pcb->state != CLOSED &&
  70824. 801cb26: 687b ldr r3, [r7, #4]
  70825. 801cb28: 7d1b ldrb r3, [r3, #20]
  70826. 801cb2a: 2b00 cmp r3, #0
  70827. 801cb2c: d033 beq.n 801cb96 <tcp_pcb_purge+0x8e>
  70828. pcb->state != TIME_WAIT &&
  70829. 801cb2e: 687b ldr r3, [r7, #4]
  70830. 801cb30: 7d1b ldrb r3, [r3, #20]
  70831. if (pcb->state != CLOSED &&
  70832. 801cb32: 2b0a cmp r3, #10
  70833. 801cb34: d02f beq.n 801cb96 <tcp_pcb_purge+0x8e>
  70834. pcb->state != LISTEN) {
  70835. 801cb36: 687b ldr r3, [r7, #4]
  70836. 801cb38: 7d1b ldrb r3, [r3, #20]
  70837. pcb->state != TIME_WAIT &&
  70838. 801cb3a: 2b01 cmp r3, #1
  70839. 801cb3c: d02b beq.n 801cb96 <tcp_pcb_purge+0x8e>
  70840. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n"));
  70841. tcp_backlog_accepted(pcb);
  70842. if (pcb->refused_data != NULL) {
  70843. 801cb3e: 687b ldr r3, [r7, #4]
  70844. 801cb40: 6f9b ldr r3, [r3, #120] @ 0x78
  70845. 801cb42: 2b00 cmp r3, #0
  70846. 801cb44: d007 beq.n 801cb56 <tcp_pcb_purge+0x4e>
  70847. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n"));
  70848. pbuf_free(pcb->refused_data);
  70849. 801cb46: 687b ldr r3, [r7, #4]
  70850. 801cb48: 6f9b ldr r3, [r3, #120] @ 0x78
  70851. 801cb4a: 4618 mov r0, r3
  70852. 801cb4c: f7fe f8be bl 801accc <pbuf_free>
  70853. pcb->refused_data = NULL;
  70854. 801cb50: 687b ldr r3, [r7, #4]
  70855. 801cb52: 2200 movs r2, #0
  70856. 801cb54: 679a str r2, [r3, #120] @ 0x78
  70857. }
  70858. if (pcb->unacked != NULL) {
  70859. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n"));
  70860. }
  70861. #if TCP_QUEUE_OOSEQ
  70862. if (pcb->ooseq != NULL) {
  70863. 801cb56: 687b ldr r3, [r7, #4]
  70864. 801cb58: 6f5b ldr r3, [r3, #116] @ 0x74
  70865. 801cb5a: 2b00 cmp r3, #0
  70866. 801cb5c: d002 beq.n 801cb64 <tcp_pcb_purge+0x5c>
  70867. LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
  70868. tcp_free_ooseq(pcb);
  70869. 801cb5e: 6878 ldr r0, [r7, #4]
  70870. 801cb60: f000 f986 bl 801ce70 <tcp_free_ooseq>
  70871. }
  70872. #endif /* TCP_QUEUE_OOSEQ */
  70873. /* Stop the retransmission timer as it will expect data on unacked
  70874. queue if it fires */
  70875. pcb->rtime = -1;
  70876. 801cb64: 687b ldr r3, [r7, #4]
  70877. 801cb66: f64f 72ff movw r2, #65535 @ 0xffff
  70878. 801cb6a: 861a strh r2, [r3, #48] @ 0x30
  70879. tcp_segs_free(pcb->unsent);
  70880. 801cb6c: 687b ldr r3, [r7, #4]
  70881. 801cb6e: 6edb ldr r3, [r3, #108] @ 0x6c
  70882. 801cb70: 4618 mov r0, r3
  70883. 801cb72: f7ff fcef bl 801c554 <tcp_segs_free>
  70884. tcp_segs_free(pcb->unacked);
  70885. 801cb76: 687b ldr r3, [r7, #4]
  70886. 801cb78: 6f1b ldr r3, [r3, #112] @ 0x70
  70887. 801cb7a: 4618 mov r0, r3
  70888. 801cb7c: f7ff fcea bl 801c554 <tcp_segs_free>
  70889. pcb->unacked = pcb->unsent = NULL;
  70890. 801cb80: 687b ldr r3, [r7, #4]
  70891. 801cb82: 2200 movs r2, #0
  70892. 801cb84: 66da str r2, [r3, #108] @ 0x6c
  70893. 801cb86: 687b ldr r3, [r7, #4]
  70894. 801cb88: 6eda ldr r2, [r3, #108] @ 0x6c
  70895. 801cb8a: 687b ldr r3, [r7, #4]
  70896. 801cb8c: 671a str r2, [r3, #112] @ 0x70
  70897. #if TCP_OVERSIZE
  70898. pcb->unsent_oversize = 0;
  70899. 801cb8e: 687b ldr r3, [r7, #4]
  70900. 801cb90: 2200 movs r2, #0
  70901. 801cb92: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  70902. #endif /* TCP_OVERSIZE */
  70903. }
  70904. }
  70905. 801cb96: 3708 adds r7, #8
  70906. 801cb98: 46bd mov sp, r7
  70907. 801cb9a: bd80 pop {r7, pc}
  70908. 801cb9c: 0802ee3c .word 0x0802ee3c
  70909. 801cba0: 0802f488 .word 0x0802f488
  70910. 801cba4: 0802ee80 .word 0x0802ee80
  70911. 0801cba8 <tcp_pcb_remove>:
  70912. * @param pcblist PCB list to purge.
  70913. * @param pcb tcp_pcb to purge. The pcb itself is NOT deallocated!
  70914. */
  70915. void
  70916. tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb)
  70917. {
  70918. 801cba8: b580 push {r7, lr}
  70919. 801cbaa: b084 sub sp, #16
  70920. 801cbac: af00 add r7, sp, #0
  70921. 801cbae: 6078 str r0, [r7, #4]
  70922. 801cbb0: 6039 str r1, [r7, #0]
  70923. LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL);
  70924. 801cbb2: 683b ldr r3, [r7, #0]
  70925. 801cbb4: 2b00 cmp r3, #0
  70926. 801cbb6: d106 bne.n 801cbc6 <tcp_pcb_remove+0x1e>
  70927. 801cbb8: 4b3e ldr r3, [pc, #248] @ (801ccb4 <tcp_pcb_remove+0x10c>)
  70928. 801cbba: f640 0283 movw r2, #2179 @ 0x883
  70929. 801cbbe: 493e ldr r1, [pc, #248] @ (801ccb8 <tcp_pcb_remove+0x110>)
  70930. 801cbc0: 483e ldr r0, [pc, #248] @ (801ccbc <tcp_pcb_remove+0x114>)
  70931. 801cbc2: f00d fafb bl 802a1bc <iprintf>
  70932. LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL);
  70933. 801cbc6: 687b ldr r3, [r7, #4]
  70934. 801cbc8: 2b00 cmp r3, #0
  70935. 801cbca: d106 bne.n 801cbda <tcp_pcb_remove+0x32>
  70936. 801cbcc: 4b39 ldr r3, [pc, #228] @ (801ccb4 <tcp_pcb_remove+0x10c>)
  70937. 801cbce: f640 0284 movw r2, #2180 @ 0x884
  70938. 801cbd2: 493b ldr r1, [pc, #236] @ (801ccc0 <tcp_pcb_remove+0x118>)
  70939. 801cbd4: 4839 ldr r0, [pc, #228] @ (801ccbc <tcp_pcb_remove+0x114>)
  70940. 801cbd6: f00d faf1 bl 802a1bc <iprintf>
  70941. TCP_RMV(pcblist, pcb);
  70942. 801cbda: 687b ldr r3, [r7, #4]
  70943. 801cbdc: 681b ldr r3, [r3, #0]
  70944. 801cbde: 683a ldr r2, [r7, #0]
  70945. 801cbe0: 429a cmp r2, r3
  70946. 801cbe2: d105 bne.n 801cbf0 <tcp_pcb_remove+0x48>
  70947. 801cbe4: 687b ldr r3, [r7, #4]
  70948. 801cbe6: 681b ldr r3, [r3, #0]
  70949. 801cbe8: 68da ldr r2, [r3, #12]
  70950. 801cbea: 687b ldr r3, [r7, #4]
  70951. 801cbec: 601a str r2, [r3, #0]
  70952. 801cbee: e013 b.n 801cc18 <tcp_pcb_remove+0x70>
  70953. 801cbf0: 687b ldr r3, [r7, #4]
  70954. 801cbf2: 681b ldr r3, [r3, #0]
  70955. 801cbf4: 60fb str r3, [r7, #12]
  70956. 801cbf6: e00c b.n 801cc12 <tcp_pcb_remove+0x6a>
  70957. 801cbf8: 68fb ldr r3, [r7, #12]
  70958. 801cbfa: 68db ldr r3, [r3, #12]
  70959. 801cbfc: 683a ldr r2, [r7, #0]
  70960. 801cbfe: 429a cmp r2, r3
  70961. 801cc00: d104 bne.n 801cc0c <tcp_pcb_remove+0x64>
  70962. 801cc02: 683b ldr r3, [r7, #0]
  70963. 801cc04: 68da ldr r2, [r3, #12]
  70964. 801cc06: 68fb ldr r3, [r7, #12]
  70965. 801cc08: 60da str r2, [r3, #12]
  70966. 801cc0a: e005 b.n 801cc18 <tcp_pcb_remove+0x70>
  70967. 801cc0c: 68fb ldr r3, [r7, #12]
  70968. 801cc0e: 68db ldr r3, [r3, #12]
  70969. 801cc10: 60fb str r3, [r7, #12]
  70970. 801cc12: 68fb ldr r3, [r7, #12]
  70971. 801cc14: 2b00 cmp r3, #0
  70972. 801cc16: d1ef bne.n 801cbf8 <tcp_pcb_remove+0x50>
  70973. 801cc18: 683b ldr r3, [r7, #0]
  70974. 801cc1a: 2200 movs r2, #0
  70975. 801cc1c: 60da str r2, [r3, #12]
  70976. tcp_pcb_purge(pcb);
  70977. 801cc1e: 6838 ldr r0, [r7, #0]
  70978. 801cc20: f7ff ff72 bl 801cb08 <tcp_pcb_purge>
  70979. /* if there is an outstanding delayed ACKs, send it */
  70980. if ((pcb->state != TIME_WAIT) &&
  70981. 801cc24: 683b ldr r3, [r7, #0]
  70982. 801cc26: 7d1b ldrb r3, [r3, #20]
  70983. 801cc28: 2b0a cmp r3, #10
  70984. 801cc2a: d013 beq.n 801cc54 <tcp_pcb_remove+0xac>
  70985. (pcb->state != LISTEN) &&
  70986. 801cc2c: 683b ldr r3, [r7, #0]
  70987. 801cc2e: 7d1b ldrb r3, [r3, #20]
  70988. if ((pcb->state != TIME_WAIT) &&
  70989. 801cc30: 2b01 cmp r3, #1
  70990. 801cc32: d00f beq.n 801cc54 <tcp_pcb_remove+0xac>
  70991. (pcb->flags & TF_ACK_DELAY)) {
  70992. 801cc34: 683b ldr r3, [r7, #0]
  70993. 801cc36: 8b5b ldrh r3, [r3, #26]
  70994. 801cc38: f003 0301 and.w r3, r3, #1
  70995. (pcb->state != LISTEN) &&
  70996. 801cc3c: 2b00 cmp r3, #0
  70997. 801cc3e: d009 beq.n 801cc54 <tcp_pcb_remove+0xac>
  70998. tcp_ack_now(pcb);
  70999. 801cc40: 683b ldr r3, [r7, #0]
  71000. 801cc42: 8b5b ldrh r3, [r3, #26]
  71001. 801cc44: f043 0302 orr.w r3, r3, #2
  71002. 801cc48: b29a uxth r2, r3
  71003. 801cc4a: 683b ldr r3, [r7, #0]
  71004. 801cc4c: 835a strh r2, [r3, #26]
  71005. tcp_output(pcb);
  71006. 801cc4e: 6838 ldr r0, [r7, #0]
  71007. 801cc50: f003 fc28 bl 80204a4 <tcp_output>
  71008. }
  71009. if (pcb->state != LISTEN) {
  71010. 801cc54: 683b ldr r3, [r7, #0]
  71011. 801cc56: 7d1b ldrb r3, [r3, #20]
  71012. 801cc58: 2b01 cmp r3, #1
  71013. 801cc5a: d020 beq.n 801cc9e <tcp_pcb_remove+0xf6>
  71014. LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL);
  71015. 801cc5c: 683b ldr r3, [r7, #0]
  71016. 801cc5e: 6edb ldr r3, [r3, #108] @ 0x6c
  71017. 801cc60: 2b00 cmp r3, #0
  71018. 801cc62: d006 beq.n 801cc72 <tcp_pcb_remove+0xca>
  71019. 801cc64: 4b13 ldr r3, [pc, #76] @ (801ccb4 <tcp_pcb_remove+0x10c>)
  71020. 801cc66: f640 0293 movw r2, #2195 @ 0x893
  71021. 801cc6a: 4916 ldr r1, [pc, #88] @ (801ccc4 <tcp_pcb_remove+0x11c>)
  71022. 801cc6c: 4813 ldr r0, [pc, #76] @ (801ccbc <tcp_pcb_remove+0x114>)
  71023. 801cc6e: f00d faa5 bl 802a1bc <iprintf>
  71024. LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL);
  71025. 801cc72: 683b ldr r3, [r7, #0]
  71026. 801cc74: 6f1b ldr r3, [r3, #112] @ 0x70
  71027. 801cc76: 2b00 cmp r3, #0
  71028. 801cc78: d006 beq.n 801cc88 <tcp_pcb_remove+0xe0>
  71029. 801cc7a: 4b0e ldr r3, [pc, #56] @ (801ccb4 <tcp_pcb_remove+0x10c>)
  71030. 801cc7c: f640 0294 movw r2, #2196 @ 0x894
  71031. 801cc80: 4911 ldr r1, [pc, #68] @ (801ccc8 <tcp_pcb_remove+0x120>)
  71032. 801cc82: 480e ldr r0, [pc, #56] @ (801ccbc <tcp_pcb_remove+0x114>)
  71033. 801cc84: f00d fa9a bl 802a1bc <iprintf>
  71034. #if TCP_QUEUE_OOSEQ
  71035. LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL);
  71036. 801cc88: 683b ldr r3, [r7, #0]
  71037. 801cc8a: 6f5b ldr r3, [r3, #116] @ 0x74
  71038. 801cc8c: 2b00 cmp r3, #0
  71039. 801cc8e: d006 beq.n 801cc9e <tcp_pcb_remove+0xf6>
  71040. 801cc90: 4b08 ldr r3, [pc, #32] @ (801ccb4 <tcp_pcb_remove+0x10c>)
  71041. 801cc92: f640 0296 movw r2, #2198 @ 0x896
  71042. 801cc96: 490d ldr r1, [pc, #52] @ (801cccc <tcp_pcb_remove+0x124>)
  71043. 801cc98: 4808 ldr r0, [pc, #32] @ (801ccbc <tcp_pcb_remove+0x114>)
  71044. 801cc9a: f00d fa8f bl 802a1bc <iprintf>
  71045. #endif /* TCP_QUEUE_OOSEQ */
  71046. }
  71047. pcb->state = CLOSED;
  71048. 801cc9e: 683b ldr r3, [r7, #0]
  71049. 801cca0: 2200 movs r2, #0
  71050. 801cca2: 751a strb r2, [r3, #20]
  71051. /* reset the local port to prevent the pcb from being 'bound' */
  71052. pcb->local_port = 0;
  71053. 801cca4: 683b ldr r3, [r7, #0]
  71054. 801cca6: 2200 movs r2, #0
  71055. 801cca8: 82da strh r2, [r3, #22]
  71056. LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane());
  71057. }
  71058. 801ccaa: bf00 nop
  71059. 801ccac: 3710 adds r7, #16
  71060. 801ccae: 46bd mov sp, r7
  71061. 801ccb0: bd80 pop {r7, pc}
  71062. 801ccb2: bf00 nop
  71063. 801ccb4: 0802ee3c .word 0x0802ee3c
  71064. 801ccb8: 0802f4a4 .word 0x0802f4a4
  71065. 801ccbc: 0802ee80 .word 0x0802ee80
  71066. 801ccc0: 0802f4c0 .word 0x0802f4c0
  71067. 801ccc4: 0802f4e0 .word 0x0802f4e0
  71068. 801ccc8: 0802f4f8 .word 0x0802f4f8
  71069. 801cccc: 0802f514 .word 0x0802f514
  71070. 0801ccd0 <tcp_next_iss>:
  71071. *
  71072. * @return u32_t pseudo random sequence number
  71073. */
  71074. u32_t
  71075. tcp_next_iss(struct tcp_pcb *pcb)
  71076. {
  71077. 801ccd0: b580 push {r7, lr}
  71078. 801ccd2: b082 sub sp, #8
  71079. 801ccd4: af00 add r7, sp, #0
  71080. 801ccd6: 6078 str r0, [r7, #4]
  71081. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  71082. return LWIP_HOOK_TCP_ISN(&pcb->local_ip, pcb->local_port, &pcb->remote_ip, pcb->remote_port);
  71083. #else /* LWIP_HOOK_TCP_ISN */
  71084. static u32_t iss = 6510;
  71085. LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL);
  71086. 801ccd8: 687b ldr r3, [r7, #4]
  71087. 801ccda: 2b00 cmp r3, #0
  71088. 801ccdc: d106 bne.n 801ccec <tcp_next_iss+0x1c>
  71089. 801ccde: 4b0a ldr r3, [pc, #40] @ (801cd08 <tcp_next_iss+0x38>)
  71090. 801cce0: f640 02af movw r2, #2223 @ 0x8af
  71091. 801cce4: 4909 ldr r1, [pc, #36] @ (801cd0c <tcp_next_iss+0x3c>)
  71092. 801cce6: 480a ldr r0, [pc, #40] @ (801cd10 <tcp_next_iss+0x40>)
  71093. 801cce8: f00d fa68 bl 802a1bc <iprintf>
  71094. LWIP_UNUSED_ARG(pcb);
  71095. iss += tcp_ticks; /* XXX */
  71096. 801ccec: 4b09 ldr r3, [pc, #36] @ (801cd14 <tcp_next_iss+0x44>)
  71097. 801ccee: 681a ldr r2, [r3, #0]
  71098. 801ccf0: 4b09 ldr r3, [pc, #36] @ (801cd18 <tcp_next_iss+0x48>)
  71099. 801ccf2: 681b ldr r3, [r3, #0]
  71100. 801ccf4: 4413 add r3, r2
  71101. 801ccf6: 4a07 ldr r2, [pc, #28] @ (801cd14 <tcp_next_iss+0x44>)
  71102. 801ccf8: 6013 str r3, [r2, #0]
  71103. return iss;
  71104. 801ccfa: 4b06 ldr r3, [pc, #24] @ (801cd14 <tcp_next_iss+0x44>)
  71105. 801ccfc: 681b ldr r3, [r3, #0]
  71106. #endif /* LWIP_HOOK_TCP_ISN */
  71107. }
  71108. 801ccfe: 4618 mov r0, r3
  71109. 801cd00: 3708 adds r7, #8
  71110. 801cd02: 46bd mov sp, r7
  71111. 801cd04: bd80 pop {r7, pc}
  71112. 801cd06: bf00 nop
  71113. 801cd08: 0802ee3c .word 0x0802ee3c
  71114. 801cd0c: 0802f52c .word 0x0802f52c
  71115. 801cd10: 0802ee80 .word 0x0802ee80
  71116. 801cd14: 24000050 .word 0x24000050
  71117. 801cd18: 2402af58 .word 0x2402af58
  71118. 0801cd1c <tcp_eff_send_mss_netif>:
  71119. * by calculating the minimum of TCP_MSS and the mtu (if set) of the target
  71120. * netif (if not NULL).
  71121. */
  71122. u16_t
  71123. tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, const ip_addr_t *dest)
  71124. {
  71125. 801cd1c: b580 push {r7, lr}
  71126. 801cd1e: b086 sub sp, #24
  71127. 801cd20: af00 add r7, sp, #0
  71128. 801cd22: 4603 mov r3, r0
  71129. 801cd24: 60b9 str r1, [r7, #8]
  71130. 801cd26: 607a str r2, [r7, #4]
  71131. 801cd28: 81fb strh r3, [r7, #14]
  71132. u16_t mss_s;
  71133. u16_t mtu;
  71134. LWIP_UNUSED_ARG(dest); /* in case IPv6 is disabled */
  71135. LWIP_ASSERT("tcp_eff_send_mss_netif: invalid dst_ip", dest != NULL);
  71136. 801cd2a: 687b ldr r3, [r7, #4]
  71137. 801cd2c: 2b00 cmp r3, #0
  71138. 801cd2e: d106 bne.n 801cd3e <tcp_eff_send_mss_netif+0x22>
  71139. 801cd30: 4b14 ldr r3, [pc, #80] @ (801cd84 <tcp_eff_send_mss_netif+0x68>)
  71140. 801cd32: f640 02c5 movw r2, #2245 @ 0x8c5
  71141. 801cd36: 4914 ldr r1, [pc, #80] @ (801cd88 <tcp_eff_send_mss_netif+0x6c>)
  71142. 801cd38: 4814 ldr r0, [pc, #80] @ (801cd8c <tcp_eff_send_mss_netif+0x70>)
  71143. 801cd3a: f00d fa3f bl 802a1bc <iprintf>
  71144. else
  71145. #endif /* LWIP_IPV4 */
  71146. #endif /* LWIP_IPV6 */
  71147. #if LWIP_IPV4
  71148. {
  71149. if (outif == NULL) {
  71150. 801cd3e: 68bb ldr r3, [r7, #8]
  71151. 801cd40: 2b00 cmp r3, #0
  71152. 801cd42: d101 bne.n 801cd48 <tcp_eff_send_mss_netif+0x2c>
  71153. return sendmss;
  71154. 801cd44: 89fb ldrh r3, [r7, #14]
  71155. 801cd46: e019 b.n 801cd7c <tcp_eff_send_mss_netif+0x60>
  71156. }
  71157. mtu = outif->mtu;
  71158. 801cd48: 68bb ldr r3, [r7, #8]
  71159. 801cd4a: 8d1b ldrh r3, [r3, #40] @ 0x28
  71160. 801cd4c: 82fb strh r3, [r7, #22]
  71161. }
  71162. #endif /* LWIP_IPV4 */
  71163. if (mtu != 0) {
  71164. 801cd4e: 8afb ldrh r3, [r7, #22]
  71165. 801cd50: 2b00 cmp r3, #0
  71166. 801cd52: d012 beq.n 801cd7a <tcp_eff_send_mss_netif+0x5e>
  71167. else
  71168. #endif /* LWIP_IPV4 */
  71169. #endif /* LWIP_IPV6 */
  71170. #if LWIP_IPV4
  71171. {
  71172. offset = IP_HLEN + TCP_HLEN;
  71173. 801cd54: 2328 movs r3, #40 @ 0x28
  71174. 801cd56: 82bb strh r3, [r7, #20]
  71175. }
  71176. #endif /* LWIP_IPV4 */
  71177. mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0;
  71178. 801cd58: 8afa ldrh r2, [r7, #22]
  71179. 801cd5a: 8abb ldrh r3, [r7, #20]
  71180. 801cd5c: 429a cmp r2, r3
  71181. 801cd5e: d904 bls.n 801cd6a <tcp_eff_send_mss_netif+0x4e>
  71182. 801cd60: 8afa ldrh r2, [r7, #22]
  71183. 801cd62: 8abb ldrh r3, [r7, #20]
  71184. 801cd64: 1ad3 subs r3, r2, r3
  71185. 801cd66: b29b uxth r3, r3
  71186. 801cd68: e000 b.n 801cd6c <tcp_eff_send_mss_netif+0x50>
  71187. 801cd6a: 2300 movs r3, #0
  71188. 801cd6c: 827b strh r3, [r7, #18]
  71189. /* RFC 1122, chap 4.2.2.6:
  71190. * Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize
  71191. * We correct for TCP options in tcp_write(), and don't support IP options.
  71192. */
  71193. sendmss = LWIP_MIN(sendmss, mss_s);
  71194. 801cd6e: 8a7a ldrh r2, [r7, #18]
  71195. 801cd70: 89fb ldrh r3, [r7, #14]
  71196. 801cd72: 4293 cmp r3, r2
  71197. 801cd74: bf28 it cs
  71198. 801cd76: 4613 movcs r3, r2
  71199. 801cd78: 81fb strh r3, [r7, #14]
  71200. }
  71201. return sendmss;
  71202. 801cd7a: 89fb ldrh r3, [r7, #14]
  71203. }
  71204. 801cd7c: 4618 mov r0, r3
  71205. 801cd7e: 3718 adds r7, #24
  71206. 801cd80: 46bd mov sp, r7
  71207. 801cd82: bd80 pop {r7, pc}
  71208. 801cd84: 0802ee3c .word 0x0802ee3c
  71209. 801cd88: 0802f548 .word 0x0802f548
  71210. 801cd8c: 0802ee80 .word 0x0802ee80
  71211. 0801cd90 <tcp_netif_ip_addr_changed_pcblist>:
  71212. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  71213. /** Helper function for tcp_netif_ip_addr_changed() that iterates a pcb list */
  71214. static void
  71215. tcp_netif_ip_addr_changed_pcblist(const ip_addr_t *old_addr, struct tcp_pcb *pcb_list)
  71216. {
  71217. 801cd90: b580 push {r7, lr}
  71218. 801cd92: b084 sub sp, #16
  71219. 801cd94: af00 add r7, sp, #0
  71220. 801cd96: 6078 str r0, [r7, #4]
  71221. 801cd98: 6039 str r1, [r7, #0]
  71222. struct tcp_pcb *pcb;
  71223. pcb = pcb_list;
  71224. 801cd9a: 683b ldr r3, [r7, #0]
  71225. 801cd9c: 60fb str r3, [r7, #12]
  71226. LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL);
  71227. 801cd9e: 687b ldr r3, [r7, #4]
  71228. 801cda0: 2b00 cmp r3, #0
  71229. 801cda2: d119 bne.n 801cdd8 <tcp_netif_ip_addr_changed_pcblist+0x48>
  71230. 801cda4: 4b10 ldr r3, [pc, #64] @ (801cde8 <tcp_netif_ip_addr_changed_pcblist+0x58>)
  71231. 801cda6: f44f 6210 mov.w r2, #2304 @ 0x900
  71232. 801cdaa: 4910 ldr r1, [pc, #64] @ (801cdec <tcp_netif_ip_addr_changed_pcblist+0x5c>)
  71233. 801cdac: 4810 ldr r0, [pc, #64] @ (801cdf0 <tcp_netif_ip_addr_changed_pcblist+0x60>)
  71234. 801cdae: f00d fa05 bl 802a1bc <iprintf>
  71235. while (pcb != NULL) {
  71236. 801cdb2: e011 b.n 801cdd8 <tcp_netif_ip_addr_changed_pcblist+0x48>
  71237. /* PCB bound to current local interface address? */
  71238. if (ip_addr_cmp(&pcb->local_ip, old_addr)
  71239. 801cdb4: 68fb ldr r3, [r7, #12]
  71240. 801cdb6: 681a ldr r2, [r3, #0]
  71241. 801cdb8: 687b ldr r3, [r7, #4]
  71242. 801cdba: 681b ldr r3, [r3, #0]
  71243. 801cdbc: 429a cmp r2, r3
  71244. 801cdbe: d108 bne.n 801cdd2 <tcp_netif_ip_addr_changed_pcblist+0x42>
  71245. /* connections to link-local addresses must persist (RFC3927 ch. 1.9) */
  71246. && (!IP_IS_V4_VAL(pcb->local_ip) || !ip4_addr_islinklocal(ip_2_ip4(&pcb->local_ip)))
  71247. #endif /* LWIP_AUTOIP */
  71248. ) {
  71249. /* this connection must be aborted */
  71250. struct tcp_pcb *next = pcb->next;
  71251. 801cdc0: 68fb ldr r3, [r7, #12]
  71252. 801cdc2: 68db ldr r3, [r3, #12]
  71253. 801cdc4: 60bb str r3, [r7, #8]
  71254. LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb));
  71255. tcp_abort(pcb);
  71256. 801cdc6: 68f8 ldr r0, [r7, #12]
  71257. 801cdc8: f7fe fd86 bl 801b8d8 <tcp_abort>
  71258. pcb = next;
  71259. 801cdcc: 68bb ldr r3, [r7, #8]
  71260. 801cdce: 60fb str r3, [r7, #12]
  71261. 801cdd0: e002 b.n 801cdd8 <tcp_netif_ip_addr_changed_pcblist+0x48>
  71262. } else {
  71263. pcb = pcb->next;
  71264. 801cdd2: 68fb ldr r3, [r7, #12]
  71265. 801cdd4: 68db ldr r3, [r3, #12]
  71266. 801cdd6: 60fb str r3, [r7, #12]
  71267. while (pcb != NULL) {
  71268. 801cdd8: 68fb ldr r3, [r7, #12]
  71269. 801cdda: 2b00 cmp r3, #0
  71270. 801cddc: d1ea bne.n 801cdb4 <tcp_netif_ip_addr_changed_pcblist+0x24>
  71271. }
  71272. }
  71273. }
  71274. 801cdde: bf00 nop
  71275. 801cde0: bf00 nop
  71276. 801cde2: 3710 adds r7, #16
  71277. 801cde4: 46bd mov sp, r7
  71278. 801cde6: bd80 pop {r7, pc}
  71279. 801cde8: 0802ee3c .word 0x0802ee3c
  71280. 801cdec: 0802f570 .word 0x0802f570
  71281. 801cdf0: 0802ee80 .word 0x0802ee80
  71282. 0801cdf4 <tcp_netif_ip_addr_changed>:
  71283. * @param old_addr IP address of the netif before change
  71284. * @param new_addr IP address of the netif after change or NULL if netif has been removed
  71285. */
  71286. void
  71287. tcp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  71288. {
  71289. 801cdf4: b580 push {r7, lr}
  71290. 801cdf6: b084 sub sp, #16
  71291. 801cdf8: af00 add r7, sp, #0
  71292. 801cdfa: 6078 str r0, [r7, #4]
  71293. 801cdfc: 6039 str r1, [r7, #0]
  71294. struct tcp_pcb_listen *lpcb;
  71295. if (!ip_addr_isany(old_addr)) {
  71296. 801cdfe: 687b ldr r3, [r7, #4]
  71297. 801ce00: 2b00 cmp r3, #0
  71298. 801ce02: d02a beq.n 801ce5a <tcp_netif_ip_addr_changed+0x66>
  71299. 801ce04: 687b ldr r3, [r7, #4]
  71300. 801ce06: 681b ldr r3, [r3, #0]
  71301. 801ce08: 2b00 cmp r3, #0
  71302. 801ce0a: d026 beq.n 801ce5a <tcp_netif_ip_addr_changed+0x66>
  71303. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs);
  71304. 801ce0c: 4b15 ldr r3, [pc, #84] @ (801ce64 <tcp_netif_ip_addr_changed+0x70>)
  71305. 801ce0e: 681b ldr r3, [r3, #0]
  71306. 801ce10: 4619 mov r1, r3
  71307. 801ce12: 6878 ldr r0, [r7, #4]
  71308. 801ce14: f7ff ffbc bl 801cd90 <tcp_netif_ip_addr_changed_pcblist>
  71309. tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs);
  71310. 801ce18: 4b13 ldr r3, [pc, #76] @ (801ce68 <tcp_netif_ip_addr_changed+0x74>)
  71311. 801ce1a: 681b ldr r3, [r3, #0]
  71312. 801ce1c: 4619 mov r1, r3
  71313. 801ce1e: 6878 ldr r0, [r7, #4]
  71314. 801ce20: f7ff ffb6 bl 801cd90 <tcp_netif_ip_addr_changed_pcblist>
  71315. if (!ip_addr_isany(new_addr)) {
  71316. 801ce24: 683b ldr r3, [r7, #0]
  71317. 801ce26: 2b00 cmp r3, #0
  71318. 801ce28: d017 beq.n 801ce5a <tcp_netif_ip_addr_changed+0x66>
  71319. 801ce2a: 683b ldr r3, [r7, #0]
  71320. 801ce2c: 681b ldr r3, [r3, #0]
  71321. 801ce2e: 2b00 cmp r3, #0
  71322. 801ce30: d013 beq.n 801ce5a <tcp_netif_ip_addr_changed+0x66>
  71323. /* PCB bound to current local interface address? */
  71324. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  71325. 801ce32: 4b0e ldr r3, [pc, #56] @ (801ce6c <tcp_netif_ip_addr_changed+0x78>)
  71326. 801ce34: 681b ldr r3, [r3, #0]
  71327. 801ce36: 60fb str r3, [r7, #12]
  71328. 801ce38: e00c b.n 801ce54 <tcp_netif_ip_addr_changed+0x60>
  71329. /* PCB bound to current local interface address? */
  71330. if (ip_addr_cmp(&lpcb->local_ip, old_addr)) {
  71331. 801ce3a: 68fb ldr r3, [r7, #12]
  71332. 801ce3c: 681a ldr r2, [r3, #0]
  71333. 801ce3e: 687b ldr r3, [r7, #4]
  71334. 801ce40: 681b ldr r3, [r3, #0]
  71335. 801ce42: 429a cmp r2, r3
  71336. 801ce44: d103 bne.n 801ce4e <tcp_netif_ip_addr_changed+0x5a>
  71337. /* The PCB is listening to the old ipaddr and
  71338. * is set to listen to the new one instead */
  71339. ip_addr_copy(lpcb->local_ip, *new_addr);
  71340. 801ce46: 683b ldr r3, [r7, #0]
  71341. 801ce48: 681a ldr r2, [r3, #0]
  71342. 801ce4a: 68fb ldr r3, [r7, #12]
  71343. 801ce4c: 601a str r2, [r3, #0]
  71344. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  71345. 801ce4e: 68fb ldr r3, [r7, #12]
  71346. 801ce50: 68db ldr r3, [r3, #12]
  71347. 801ce52: 60fb str r3, [r7, #12]
  71348. 801ce54: 68fb ldr r3, [r7, #12]
  71349. 801ce56: 2b00 cmp r3, #0
  71350. 801ce58: d1ef bne.n 801ce3a <tcp_netif_ip_addr_changed+0x46>
  71351. }
  71352. }
  71353. }
  71354. }
  71355. }
  71356. 801ce5a: bf00 nop
  71357. 801ce5c: 3710 adds r7, #16
  71358. 801ce5e: 46bd mov sp, r7
  71359. 801ce60: bd80 pop {r7, pc}
  71360. 801ce62: bf00 nop
  71361. 801ce64: 2402af64 .word 0x2402af64
  71362. 801ce68: 2402af5c .word 0x2402af5c
  71363. 801ce6c: 2402af60 .word 0x2402af60
  71364. 0801ce70 <tcp_free_ooseq>:
  71365. #if TCP_QUEUE_OOSEQ
  71366. /* Free all ooseq pbufs (and possibly reset SACK state) */
  71367. void
  71368. tcp_free_ooseq(struct tcp_pcb *pcb)
  71369. {
  71370. 801ce70: b580 push {r7, lr}
  71371. 801ce72: b082 sub sp, #8
  71372. 801ce74: af00 add r7, sp, #0
  71373. 801ce76: 6078 str r0, [r7, #4]
  71374. if (pcb->ooseq) {
  71375. 801ce78: 687b ldr r3, [r7, #4]
  71376. 801ce7a: 6f5b ldr r3, [r3, #116] @ 0x74
  71377. 801ce7c: 2b00 cmp r3, #0
  71378. 801ce7e: d007 beq.n 801ce90 <tcp_free_ooseq+0x20>
  71379. tcp_segs_free(pcb->ooseq);
  71380. 801ce80: 687b ldr r3, [r7, #4]
  71381. 801ce82: 6f5b ldr r3, [r3, #116] @ 0x74
  71382. 801ce84: 4618 mov r0, r3
  71383. 801ce86: f7ff fb65 bl 801c554 <tcp_segs_free>
  71384. pcb->ooseq = NULL;
  71385. 801ce8a: 687b ldr r3, [r7, #4]
  71386. 801ce8c: 2200 movs r2, #0
  71387. 801ce8e: 675a str r2, [r3, #116] @ 0x74
  71388. #if LWIP_TCP_SACK_OUT
  71389. memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks));
  71390. #endif /* LWIP_TCP_SACK_OUT */
  71391. }
  71392. }
  71393. 801ce90: bf00 nop
  71394. 801ce92: 3708 adds r7, #8
  71395. 801ce94: 46bd mov sp, r7
  71396. 801ce96: bd80 pop {r7, pc}
  71397. 0801ce98 <tcp_input>:
  71398. * @param p received TCP segment to process (p->payload pointing to the TCP header)
  71399. * @param inp network interface on which this segment was received
  71400. */
  71401. void
  71402. tcp_input(struct pbuf *p, struct netif *inp)
  71403. {
  71404. 801ce98: b590 push {r4, r7, lr}
  71405. 801ce9a: b08d sub sp, #52 @ 0x34
  71406. 801ce9c: af04 add r7, sp, #16
  71407. 801ce9e: 6078 str r0, [r7, #4]
  71408. 801cea0: 6039 str r1, [r7, #0]
  71409. #endif /* SO_REUSE */
  71410. u8_t hdrlen_bytes;
  71411. err_t err;
  71412. LWIP_UNUSED_ARG(inp);
  71413. LWIP_ASSERT_CORE_LOCKED();
  71414. 801cea2: f7f3 fdeb bl 8010a7c <sys_check_core_locking>
  71415. LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL);
  71416. 801cea6: 687b ldr r3, [r7, #4]
  71417. 801cea8: 2b00 cmp r3, #0
  71418. 801ceaa: d105 bne.n 801ceb8 <tcp_input+0x20>
  71419. 801ceac: 4b9b ldr r3, [pc, #620] @ (801d11c <tcp_input+0x284>)
  71420. 801ceae: 2283 movs r2, #131 @ 0x83
  71421. 801ceb0: 499b ldr r1, [pc, #620] @ (801d120 <tcp_input+0x288>)
  71422. 801ceb2: 489c ldr r0, [pc, #624] @ (801d124 <tcp_input+0x28c>)
  71423. 801ceb4: f00d f982 bl 802a1bc <iprintf>
  71424. PERF_START;
  71425. TCP_STATS_INC(tcp.recv);
  71426. MIB2_STATS_INC(mib2.tcpinsegs);
  71427. tcphdr = (struct tcp_hdr *)p->payload;
  71428. 801ceb8: 687b ldr r3, [r7, #4]
  71429. 801ceba: 685b ldr r3, [r3, #4]
  71430. 801cebc: 4a9a ldr r2, [pc, #616] @ (801d128 <tcp_input+0x290>)
  71431. 801cebe: 6013 str r3, [r2, #0]
  71432. #if TCP_INPUT_DEBUG
  71433. tcp_debug_print(tcphdr);
  71434. #endif
  71435. /* Check that TCP header fits in payload */
  71436. if (p->len < TCP_HLEN) {
  71437. 801cec0: 687b ldr r3, [r7, #4]
  71438. 801cec2: 895b ldrh r3, [r3, #10]
  71439. 801cec4: 2b13 cmp r3, #19
  71440. 801cec6: f240 83d1 bls.w 801d66c <tcp_input+0x7d4>
  71441. TCP_STATS_INC(tcp.lenerr);
  71442. goto dropped;
  71443. }
  71444. /* Don't even process incoming broadcasts/multicasts. */
  71445. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  71446. 801ceca: 4b98 ldr r3, [pc, #608] @ (801d12c <tcp_input+0x294>)
  71447. 801cecc: 695b ldr r3, [r3, #20]
  71448. 801cece: 4a97 ldr r2, [pc, #604] @ (801d12c <tcp_input+0x294>)
  71449. 801ced0: 6812 ldr r2, [r2, #0]
  71450. 801ced2: 4611 mov r1, r2
  71451. 801ced4: 4618 mov r0, r3
  71452. 801ced6: f008 fc1b bl 8025710 <ip4_addr_isbroadcast_u32>
  71453. 801ceda: 4603 mov r3, r0
  71454. 801cedc: 2b00 cmp r3, #0
  71455. 801cede: f040 83c7 bne.w 801d670 <tcp_input+0x7d8>
  71456. ip_addr_ismulticast(ip_current_dest_addr())) {
  71457. 801cee2: 4b92 ldr r3, [pc, #584] @ (801d12c <tcp_input+0x294>)
  71458. 801cee4: 695b ldr r3, [r3, #20]
  71459. 801cee6: f003 03f0 and.w r3, r3, #240 @ 0xf0
  71460. if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
  71461. 801ceea: 2be0 cmp r3, #224 @ 0xe0
  71462. 801ceec: f000 83c0 beq.w 801d670 <tcp_input+0x7d8>
  71463. }
  71464. }
  71465. #endif /* CHECKSUM_CHECK_TCP */
  71466. /* sanity-check header length */
  71467. hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr);
  71468. 801cef0: 4b8d ldr r3, [pc, #564] @ (801d128 <tcp_input+0x290>)
  71469. 801cef2: 681b ldr r3, [r3, #0]
  71470. 801cef4: 899b ldrh r3, [r3, #12]
  71471. 801cef6: b29b uxth r3, r3
  71472. 801cef8: 4618 mov r0, r3
  71473. 801cefa: f7fc fa05 bl 8019308 <lwip_htons>
  71474. 801cefe: 4603 mov r3, r0
  71475. 801cf00: 0b1b lsrs r3, r3, #12
  71476. 801cf02: b29b uxth r3, r3
  71477. 801cf04: b2db uxtb r3, r3
  71478. 801cf06: 009b lsls r3, r3, #2
  71479. 801cf08: 74bb strb r3, [r7, #18]
  71480. if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) {
  71481. 801cf0a: 7cbb ldrb r3, [r7, #18]
  71482. 801cf0c: 2b13 cmp r3, #19
  71483. 801cf0e: f240 83b1 bls.w 801d674 <tcp_input+0x7dc>
  71484. 801cf12: 7cbb ldrb r3, [r7, #18]
  71485. 801cf14: b29a uxth r2, r3
  71486. 801cf16: 687b ldr r3, [r7, #4]
  71487. 801cf18: 891b ldrh r3, [r3, #8]
  71488. 801cf1a: 429a cmp r2, r3
  71489. 801cf1c: f200 83aa bhi.w 801d674 <tcp_input+0x7dc>
  71490. goto dropped;
  71491. }
  71492. /* Move the payload pointer in the pbuf so that it points to the
  71493. TCP data instead of the TCP header. */
  71494. tcphdr_optlen = (u16_t)(hdrlen_bytes - TCP_HLEN);
  71495. 801cf20: 7cbb ldrb r3, [r7, #18]
  71496. 801cf22: b29b uxth r3, r3
  71497. 801cf24: 3b14 subs r3, #20
  71498. 801cf26: b29a uxth r2, r3
  71499. 801cf28: 4b81 ldr r3, [pc, #516] @ (801d130 <tcp_input+0x298>)
  71500. 801cf2a: 801a strh r2, [r3, #0]
  71501. tcphdr_opt2 = NULL;
  71502. 801cf2c: 4b81 ldr r3, [pc, #516] @ (801d134 <tcp_input+0x29c>)
  71503. 801cf2e: 2200 movs r2, #0
  71504. 801cf30: 601a str r2, [r3, #0]
  71505. if (p->len >= hdrlen_bytes) {
  71506. 801cf32: 687b ldr r3, [r7, #4]
  71507. 801cf34: 895a ldrh r2, [r3, #10]
  71508. 801cf36: 7cbb ldrb r3, [r7, #18]
  71509. 801cf38: b29b uxth r3, r3
  71510. 801cf3a: 429a cmp r2, r3
  71511. 801cf3c: d309 bcc.n 801cf52 <tcp_input+0xba>
  71512. /* all options are in the first pbuf */
  71513. tcphdr_opt1len = tcphdr_optlen;
  71514. 801cf3e: 4b7c ldr r3, [pc, #496] @ (801d130 <tcp_input+0x298>)
  71515. 801cf40: 881a ldrh r2, [r3, #0]
  71516. 801cf42: 4b7d ldr r3, [pc, #500] @ (801d138 <tcp_input+0x2a0>)
  71517. 801cf44: 801a strh r2, [r3, #0]
  71518. pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */
  71519. 801cf46: 7cbb ldrb r3, [r7, #18]
  71520. 801cf48: 4619 mov r1, r3
  71521. 801cf4a: 6878 ldr r0, [r7, #4]
  71522. 801cf4c: f7fd fe06 bl 801ab5c <pbuf_remove_header>
  71523. 801cf50: e04e b.n 801cff0 <tcp_input+0x158>
  71524. } else {
  71525. u16_t opt2len;
  71526. /* TCP header fits into first pbuf, options don't - data is in the next pbuf */
  71527. /* there must be a next pbuf, due to hdrlen_bytes sanity check above */
  71528. LWIP_ASSERT("p->next != NULL", p->next != NULL);
  71529. 801cf52: 687b ldr r3, [r7, #4]
  71530. 801cf54: 681b ldr r3, [r3, #0]
  71531. 801cf56: 2b00 cmp r3, #0
  71532. 801cf58: d105 bne.n 801cf66 <tcp_input+0xce>
  71533. 801cf5a: 4b70 ldr r3, [pc, #448] @ (801d11c <tcp_input+0x284>)
  71534. 801cf5c: 22c2 movs r2, #194 @ 0xc2
  71535. 801cf5e: 4977 ldr r1, [pc, #476] @ (801d13c <tcp_input+0x2a4>)
  71536. 801cf60: 4870 ldr r0, [pc, #448] @ (801d124 <tcp_input+0x28c>)
  71537. 801cf62: f00d f92b bl 802a1bc <iprintf>
  71538. /* advance over the TCP header (cannot fail) */
  71539. pbuf_remove_header(p, TCP_HLEN);
  71540. 801cf66: 2114 movs r1, #20
  71541. 801cf68: 6878 ldr r0, [r7, #4]
  71542. 801cf6a: f7fd fdf7 bl 801ab5c <pbuf_remove_header>
  71543. /* determine how long the first and second parts of the options are */
  71544. tcphdr_opt1len = p->len;
  71545. 801cf6e: 687b ldr r3, [r7, #4]
  71546. 801cf70: 895a ldrh r2, [r3, #10]
  71547. 801cf72: 4b71 ldr r3, [pc, #452] @ (801d138 <tcp_input+0x2a0>)
  71548. 801cf74: 801a strh r2, [r3, #0]
  71549. opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len);
  71550. 801cf76: 4b6e ldr r3, [pc, #440] @ (801d130 <tcp_input+0x298>)
  71551. 801cf78: 881a ldrh r2, [r3, #0]
  71552. 801cf7a: 4b6f ldr r3, [pc, #444] @ (801d138 <tcp_input+0x2a0>)
  71553. 801cf7c: 881b ldrh r3, [r3, #0]
  71554. 801cf7e: 1ad3 subs r3, r2, r3
  71555. 801cf80: 823b strh r3, [r7, #16]
  71556. /* options continue in the next pbuf: set p to zero length and hide the
  71557. options in the next pbuf (adjusting p->tot_len) */
  71558. pbuf_remove_header(p, tcphdr_opt1len);
  71559. 801cf82: 4b6d ldr r3, [pc, #436] @ (801d138 <tcp_input+0x2a0>)
  71560. 801cf84: 881b ldrh r3, [r3, #0]
  71561. 801cf86: 4619 mov r1, r3
  71562. 801cf88: 6878 ldr r0, [r7, #4]
  71563. 801cf8a: f7fd fde7 bl 801ab5c <pbuf_remove_header>
  71564. /* check that the options fit in the second pbuf */
  71565. if (opt2len > p->next->len) {
  71566. 801cf8e: 687b ldr r3, [r7, #4]
  71567. 801cf90: 681b ldr r3, [r3, #0]
  71568. 801cf92: 895b ldrh r3, [r3, #10]
  71569. 801cf94: 8a3a ldrh r2, [r7, #16]
  71570. 801cf96: 429a cmp r2, r3
  71571. 801cf98: f200 836e bhi.w 801d678 <tcp_input+0x7e0>
  71572. TCP_STATS_INC(tcp.lenerr);
  71573. goto dropped;
  71574. }
  71575. /* remember the pointer to the second part of the options */
  71576. tcphdr_opt2 = (u8_t *)p->next->payload;
  71577. 801cf9c: 687b ldr r3, [r7, #4]
  71578. 801cf9e: 681b ldr r3, [r3, #0]
  71579. 801cfa0: 685b ldr r3, [r3, #4]
  71580. 801cfa2: 4a64 ldr r2, [pc, #400] @ (801d134 <tcp_input+0x29c>)
  71581. 801cfa4: 6013 str r3, [r2, #0]
  71582. /* advance p->next to point after the options, and manually
  71583. adjust p->tot_len to keep it consistent with the changed p->next */
  71584. pbuf_remove_header(p->next, opt2len);
  71585. 801cfa6: 687b ldr r3, [r7, #4]
  71586. 801cfa8: 681b ldr r3, [r3, #0]
  71587. 801cfaa: 8a3a ldrh r2, [r7, #16]
  71588. 801cfac: 4611 mov r1, r2
  71589. 801cfae: 4618 mov r0, r3
  71590. 801cfb0: f7fd fdd4 bl 801ab5c <pbuf_remove_header>
  71591. p->tot_len = (u16_t)(p->tot_len - opt2len);
  71592. 801cfb4: 687b ldr r3, [r7, #4]
  71593. 801cfb6: 891a ldrh r2, [r3, #8]
  71594. 801cfb8: 8a3b ldrh r3, [r7, #16]
  71595. 801cfba: 1ad3 subs r3, r2, r3
  71596. 801cfbc: b29a uxth r2, r3
  71597. 801cfbe: 687b ldr r3, [r7, #4]
  71598. 801cfc0: 811a strh r2, [r3, #8]
  71599. LWIP_ASSERT("p->len == 0", p->len == 0);
  71600. 801cfc2: 687b ldr r3, [r7, #4]
  71601. 801cfc4: 895b ldrh r3, [r3, #10]
  71602. 801cfc6: 2b00 cmp r3, #0
  71603. 801cfc8: d005 beq.n 801cfd6 <tcp_input+0x13e>
  71604. 801cfca: 4b54 ldr r3, [pc, #336] @ (801d11c <tcp_input+0x284>)
  71605. 801cfcc: 22df movs r2, #223 @ 0xdf
  71606. 801cfce: 495c ldr r1, [pc, #368] @ (801d140 <tcp_input+0x2a8>)
  71607. 801cfd0: 4854 ldr r0, [pc, #336] @ (801d124 <tcp_input+0x28c>)
  71608. 801cfd2: f00d f8f3 bl 802a1bc <iprintf>
  71609. LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len);
  71610. 801cfd6: 687b ldr r3, [r7, #4]
  71611. 801cfd8: 891a ldrh r2, [r3, #8]
  71612. 801cfda: 687b ldr r3, [r7, #4]
  71613. 801cfdc: 681b ldr r3, [r3, #0]
  71614. 801cfde: 891b ldrh r3, [r3, #8]
  71615. 801cfe0: 429a cmp r2, r3
  71616. 801cfe2: d005 beq.n 801cff0 <tcp_input+0x158>
  71617. 801cfe4: 4b4d ldr r3, [pc, #308] @ (801d11c <tcp_input+0x284>)
  71618. 801cfe6: 22e0 movs r2, #224 @ 0xe0
  71619. 801cfe8: 4956 ldr r1, [pc, #344] @ (801d144 <tcp_input+0x2ac>)
  71620. 801cfea: 484e ldr r0, [pc, #312] @ (801d124 <tcp_input+0x28c>)
  71621. 801cfec: f00d f8e6 bl 802a1bc <iprintf>
  71622. }
  71623. /* Convert fields in TCP header to host byte order. */
  71624. tcphdr->src = lwip_ntohs(tcphdr->src);
  71625. 801cff0: 4b4d ldr r3, [pc, #308] @ (801d128 <tcp_input+0x290>)
  71626. 801cff2: 681b ldr r3, [r3, #0]
  71627. 801cff4: 881b ldrh r3, [r3, #0]
  71628. 801cff6: b29b uxth r3, r3
  71629. 801cff8: 4a4b ldr r2, [pc, #300] @ (801d128 <tcp_input+0x290>)
  71630. 801cffa: 6814 ldr r4, [r2, #0]
  71631. 801cffc: 4618 mov r0, r3
  71632. 801cffe: f7fc f983 bl 8019308 <lwip_htons>
  71633. 801d002: 4603 mov r3, r0
  71634. 801d004: 8023 strh r3, [r4, #0]
  71635. tcphdr->dest = lwip_ntohs(tcphdr->dest);
  71636. 801d006: 4b48 ldr r3, [pc, #288] @ (801d128 <tcp_input+0x290>)
  71637. 801d008: 681b ldr r3, [r3, #0]
  71638. 801d00a: 885b ldrh r3, [r3, #2]
  71639. 801d00c: b29b uxth r3, r3
  71640. 801d00e: 4a46 ldr r2, [pc, #280] @ (801d128 <tcp_input+0x290>)
  71641. 801d010: 6814 ldr r4, [r2, #0]
  71642. 801d012: 4618 mov r0, r3
  71643. 801d014: f7fc f978 bl 8019308 <lwip_htons>
  71644. 801d018: 4603 mov r3, r0
  71645. 801d01a: 8063 strh r3, [r4, #2]
  71646. seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno);
  71647. 801d01c: 4b42 ldr r3, [pc, #264] @ (801d128 <tcp_input+0x290>)
  71648. 801d01e: 681b ldr r3, [r3, #0]
  71649. 801d020: 685b ldr r3, [r3, #4]
  71650. 801d022: 4a41 ldr r2, [pc, #260] @ (801d128 <tcp_input+0x290>)
  71651. 801d024: 6814 ldr r4, [r2, #0]
  71652. 801d026: 4618 mov r0, r3
  71653. 801d028: f7fc f983 bl 8019332 <lwip_htonl>
  71654. 801d02c: 4603 mov r3, r0
  71655. 801d02e: 6063 str r3, [r4, #4]
  71656. 801d030: 6863 ldr r3, [r4, #4]
  71657. 801d032: 4a45 ldr r2, [pc, #276] @ (801d148 <tcp_input+0x2b0>)
  71658. 801d034: 6013 str r3, [r2, #0]
  71659. ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno);
  71660. 801d036: 4b3c ldr r3, [pc, #240] @ (801d128 <tcp_input+0x290>)
  71661. 801d038: 681b ldr r3, [r3, #0]
  71662. 801d03a: 689b ldr r3, [r3, #8]
  71663. 801d03c: 4a3a ldr r2, [pc, #232] @ (801d128 <tcp_input+0x290>)
  71664. 801d03e: 6814 ldr r4, [r2, #0]
  71665. 801d040: 4618 mov r0, r3
  71666. 801d042: f7fc f976 bl 8019332 <lwip_htonl>
  71667. 801d046: 4603 mov r3, r0
  71668. 801d048: 60a3 str r3, [r4, #8]
  71669. 801d04a: 68a3 ldr r3, [r4, #8]
  71670. 801d04c: 4a3f ldr r2, [pc, #252] @ (801d14c <tcp_input+0x2b4>)
  71671. 801d04e: 6013 str r3, [r2, #0]
  71672. tcphdr->wnd = lwip_ntohs(tcphdr->wnd);
  71673. 801d050: 4b35 ldr r3, [pc, #212] @ (801d128 <tcp_input+0x290>)
  71674. 801d052: 681b ldr r3, [r3, #0]
  71675. 801d054: 89db ldrh r3, [r3, #14]
  71676. 801d056: b29b uxth r3, r3
  71677. 801d058: 4a33 ldr r2, [pc, #204] @ (801d128 <tcp_input+0x290>)
  71678. 801d05a: 6814 ldr r4, [r2, #0]
  71679. 801d05c: 4618 mov r0, r3
  71680. 801d05e: f7fc f953 bl 8019308 <lwip_htons>
  71681. 801d062: 4603 mov r3, r0
  71682. 801d064: 81e3 strh r3, [r4, #14]
  71683. flags = TCPH_FLAGS(tcphdr);
  71684. 801d066: 4b30 ldr r3, [pc, #192] @ (801d128 <tcp_input+0x290>)
  71685. 801d068: 681b ldr r3, [r3, #0]
  71686. 801d06a: 899b ldrh r3, [r3, #12]
  71687. 801d06c: b29b uxth r3, r3
  71688. 801d06e: 4618 mov r0, r3
  71689. 801d070: f7fc f94a bl 8019308 <lwip_htons>
  71690. 801d074: 4603 mov r3, r0
  71691. 801d076: b2db uxtb r3, r3
  71692. 801d078: f003 033f and.w r3, r3, #63 @ 0x3f
  71693. 801d07c: b2da uxtb r2, r3
  71694. 801d07e: 4b34 ldr r3, [pc, #208] @ (801d150 <tcp_input+0x2b8>)
  71695. 801d080: 701a strb r2, [r3, #0]
  71696. tcplen = p->tot_len;
  71697. 801d082: 687b ldr r3, [r7, #4]
  71698. 801d084: 891a ldrh r2, [r3, #8]
  71699. 801d086: 4b33 ldr r3, [pc, #204] @ (801d154 <tcp_input+0x2bc>)
  71700. 801d088: 801a strh r2, [r3, #0]
  71701. if (flags & (TCP_FIN | TCP_SYN)) {
  71702. 801d08a: 4b31 ldr r3, [pc, #196] @ (801d150 <tcp_input+0x2b8>)
  71703. 801d08c: 781b ldrb r3, [r3, #0]
  71704. 801d08e: f003 0303 and.w r3, r3, #3
  71705. 801d092: 2b00 cmp r3, #0
  71706. 801d094: d00c beq.n 801d0b0 <tcp_input+0x218>
  71707. tcplen++;
  71708. 801d096: 4b2f ldr r3, [pc, #188] @ (801d154 <tcp_input+0x2bc>)
  71709. 801d098: 881b ldrh r3, [r3, #0]
  71710. 801d09a: 3301 adds r3, #1
  71711. 801d09c: b29a uxth r2, r3
  71712. 801d09e: 4b2d ldr r3, [pc, #180] @ (801d154 <tcp_input+0x2bc>)
  71713. 801d0a0: 801a strh r2, [r3, #0]
  71714. if (tcplen < p->tot_len) {
  71715. 801d0a2: 687b ldr r3, [r7, #4]
  71716. 801d0a4: 891a ldrh r2, [r3, #8]
  71717. 801d0a6: 4b2b ldr r3, [pc, #172] @ (801d154 <tcp_input+0x2bc>)
  71718. 801d0a8: 881b ldrh r3, [r3, #0]
  71719. 801d0aa: 429a cmp r2, r3
  71720. 801d0ac: f200 82e6 bhi.w 801d67c <tcp_input+0x7e4>
  71721. }
  71722. }
  71723. /* Demultiplex an incoming segment. First, we check if it is destined
  71724. for an active connection. */
  71725. prev = NULL;
  71726. 801d0b0: 2300 movs r3, #0
  71727. 801d0b2: 61fb str r3, [r7, #28]
  71728. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  71729. 801d0b4: 4b28 ldr r3, [pc, #160] @ (801d158 <tcp_input+0x2c0>)
  71730. 801d0b6: 681b ldr r3, [r3, #0]
  71731. 801d0b8: 61bb str r3, [r7, #24]
  71732. 801d0ba: e09d b.n 801d1f8 <tcp_input+0x360>
  71733. LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED);
  71734. 801d0bc: 69bb ldr r3, [r7, #24]
  71735. 801d0be: 7d1b ldrb r3, [r3, #20]
  71736. 801d0c0: 2b00 cmp r3, #0
  71737. 801d0c2: d105 bne.n 801d0d0 <tcp_input+0x238>
  71738. 801d0c4: 4b15 ldr r3, [pc, #84] @ (801d11c <tcp_input+0x284>)
  71739. 801d0c6: 22fb movs r2, #251 @ 0xfb
  71740. 801d0c8: 4924 ldr r1, [pc, #144] @ (801d15c <tcp_input+0x2c4>)
  71741. 801d0ca: 4816 ldr r0, [pc, #88] @ (801d124 <tcp_input+0x28c>)
  71742. 801d0cc: f00d f876 bl 802a1bc <iprintf>
  71743. LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT);
  71744. 801d0d0: 69bb ldr r3, [r7, #24]
  71745. 801d0d2: 7d1b ldrb r3, [r3, #20]
  71746. 801d0d4: 2b0a cmp r3, #10
  71747. 801d0d6: d105 bne.n 801d0e4 <tcp_input+0x24c>
  71748. 801d0d8: 4b10 ldr r3, [pc, #64] @ (801d11c <tcp_input+0x284>)
  71749. 801d0da: 22fc movs r2, #252 @ 0xfc
  71750. 801d0dc: 4920 ldr r1, [pc, #128] @ (801d160 <tcp_input+0x2c8>)
  71751. 801d0de: 4811 ldr r0, [pc, #68] @ (801d124 <tcp_input+0x28c>)
  71752. 801d0e0: f00d f86c bl 802a1bc <iprintf>
  71753. LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN);
  71754. 801d0e4: 69bb ldr r3, [r7, #24]
  71755. 801d0e6: 7d1b ldrb r3, [r3, #20]
  71756. 801d0e8: 2b01 cmp r3, #1
  71757. 801d0ea: d105 bne.n 801d0f8 <tcp_input+0x260>
  71758. 801d0ec: 4b0b ldr r3, [pc, #44] @ (801d11c <tcp_input+0x284>)
  71759. 801d0ee: 22fd movs r2, #253 @ 0xfd
  71760. 801d0f0: 491c ldr r1, [pc, #112] @ (801d164 <tcp_input+0x2cc>)
  71761. 801d0f2: 480c ldr r0, [pc, #48] @ (801d124 <tcp_input+0x28c>)
  71762. 801d0f4: f00d f862 bl 802a1bc <iprintf>
  71763. /* check if PCB is bound to specific netif */
  71764. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  71765. 801d0f8: 69bb ldr r3, [r7, #24]
  71766. 801d0fa: 7a1b ldrb r3, [r3, #8]
  71767. 801d0fc: 2b00 cmp r3, #0
  71768. 801d0fe: d033 beq.n 801d168 <tcp_input+0x2d0>
  71769. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  71770. 801d100: 69bb ldr r3, [r7, #24]
  71771. 801d102: 7a1a ldrb r2, [r3, #8]
  71772. 801d104: 4b09 ldr r3, [pc, #36] @ (801d12c <tcp_input+0x294>)
  71773. 801d106: 685b ldr r3, [r3, #4]
  71774. 801d108: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  71775. 801d10c: 3301 adds r3, #1
  71776. 801d10e: b2db uxtb r3, r3
  71777. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  71778. 801d110: 429a cmp r2, r3
  71779. 801d112: d029 beq.n 801d168 <tcp_input+0x2d0>
  71780. prev = pcb;
  71781. 801d114: 69bb ldr r3, [r7, #24]
  71782. 801d116: 61fb str r3, [r7, #28]
  71783. continue;
  71784. 801d118: e06b b.n 801d1f2 <tcp_input+0x35a>
  71785. 801d11a: bf00 nop
  71786. 801d11c: 0802f5a4 .word 0x0802f5a4
  71787. 801d120: 0802f5d8 .word 0x0802f5d8
  71788. 801d124: 0802f5f0 .word 0x0802f5f0
  71789. 801d128: 2402af84 .word 0x2402af84
  71790. 801d12c: 24024408 .word 0x24024408
  71791. 801d130: 2402af88 .word 0x2402af88
  71792. 801d134: 2402af8c .word 0x2402af8c
  71793. 801d138: 2402af8a .word 0x2402af8a
  71794. 801d13c: 0802f618 .word 0x0802f618
  71795. 801d140: 0802f628 .word 0x0802f628
  71796. 801d144: 0802f634 .word 0x0802f634
  71797. 801d148: 2402af94 .word 0x2402af94
  71798. 801d14c: 2402af98 .word 0x2402af98
  71799. 801d150: 2402afa0 .word 0x2402afa0
  71800. 801d154: 2402af9e .word 0x2402af9e
  71801. 801d158: 2402af64 .word 0x2402af64
  71802. 801d15c: 0802f654 .word 0x0802f654
  71803. 801d160: 0802f67c .word 0x0802f67c
  71804. 801d164: 0802f6a8 .word 0x0802f6a8
  71805. }
  71806. if (pcb->remote_port == tcphdr->src &&
  71807. 801d168: 69bb ldr r3, [r7, #24]
  71808. 801d16a: 8b1a ldrh r2, [r3, #24]
  71809. 801d16c: 4b72 ldr r3, [pc, #456] @ (801d338 <tcp_input+0x4a0>)
  71810. 801d16e: 681b ldr r3, [r3, #0]
  71811. 801d170: 881b ldrh r3, [r3, #0]
  71812. 801d172: b29b uxth r3, r3
  71813. 801d174: 429a cmp r2, r3
  71814. 801d176: d13a bne.n 801d1ee <tcp_input+0x356>
  71815. pcb->local_port == tcphdr->dest &&
  71816. 801d178: 69bb ldr r3, [r7, #24]
  71817. 801d17a: 8ada ldrh r2, [r3, #22]
  71818. 801d17c: 4b6e ldr r3, [pc, #440] @ (801d338 <tcp_input+0x4a0>)
  71819. 801d17e: 681b ldr r3, [r3, #0]
  71820. 801d180: 885b ldrh r3, [r3, #2]
  71821. 801d182: b29b uxth r3, r3
  71822. if (pcb->remote_port == tcphdr->src &&
  71823. 801d184: 429a cmp r2, r3
  71824. 801d186: d132 bne.n 801d1ee <tcp_input+0x356>
  71825. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  71826. 801d188: 69bb ldr r3, [r7, #24]
  71827. 801d18a: 685a ldr r2, [r3, #4]
  71828. 801d18c: 4b6b ldr r3, [pc, #428] @ (801d33c <tcp_input+0x4a4>)
  71829. 801d18e: 691b ldr r3, [r3, #16]
  71830. pcb->local_port == tcphdr->dest &&
  71831. 801d190: 429a cmp r2, r3
  71832. 801d192: d12c bne.n 801d1ee <tcp_input+0x356>
  71833. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  71834. 801d194: 69bb ldr r3, [r7, #24]
  71835. 801d196: 681a ldr r2, [r3, #0]
  71836. 801d198: 4b68 ldr r3, [pc, #416] @ (801d33c <tcp_input+0x4a4>)
  71837. 801d19a: 695b ldr r3, [r3, #20]
  71838. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  71839. 801d19c: 429a cmp r2, r3
  71840. 801d19e: d126 bne.n 801d1ee <tcp_input+0x356>
  71841. /* Move this PCB to the front of the list so that subsequent
  71842. lookups will be faster (we exploit locality in TCP segment
  71843. arrivals). */
  71844. LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb);
  71845. 801d1a0: 69bb ldr r3, [r7, #24]
  71846. 801d1a2: 68db ldr r3, [r3, #12]
  71847. 801d1a4: 69ba ldr r2, [r7, #24]
  71848. 801d1a6: 429a cmp r2, r3
  71849. 801d1a8: d106 bne.n 801d1b8 <tcp_input+0x320>
  71850. 801d1aa: 4b65 ldr r3, [pc, #404] @ (801d340 <tcp_input+0x4a8>)
  71851. 801d1ac: f240 120d movw r2, #269 @ 0x10d
  71852. 801d1b0: 4964 ldr r1, [pc, #400] @ (801d344 <tcp_input+0x4ac>)
  71853. 801d1b2: 4865 ldr r0, [pc, #404] @ (801d348 <tcp_input+0x4b0>)
  71854. 801d1b4: f00d f802 bl 802a1bc <iprintf>
  71855. if (prev != NULL) {
  71856. 801d1b8: 69fb ldr r3, [r7, #28]
  71857. 801d1ba: 2b00 cmp r3, #0
  71858. 801d1bc: d00a beq.n 801d1d4 <tcp_input+0x33c>
  71859. prev->next = pcb->next;
  71860. 801d1be: 69bb ldr r3, [r7, #24]
  71861. 801d1c0: 68da ldr r2, [r3, #12]
  71862. 801d1c2: 69fb ldr r3, [r7, #28]
  71863. 801d1c4: 60da str r2, [r3, #12]
  71864. pcb->next = tcp_active_pcbs;
  71865. 801d1c6: 4b61 ldr r3, [pc, #388] @ (801d34c <tcp_input+0x4b4>)
  71866. 801d1c8: 681a ldr r2, [r3, #0]
  71867. 801d1ca: 69bb ldr r3, [r7, #24]
  71868. 801d1cc: 60da str r2, [r3, #12]
  71869. tcp_active_pcbs = pcb;
  71870. 801d1ce: 4a5f ldr r2, [pc, #380] @ (801d34c <tcp_input+0x4b4>)
  71871. 801d1d0: 69bb ldr r3, [r7, #24]
  71872. 801d1d2: 6013 str r3, [r2, #0]
  71873. } else {
  71874. TCP_STATS_INC(tcp.cachehit);
  71875. }
  71876. LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb);
  71877. 801d1d4: 69bb ldr r3, [r7, #24]
  71878. 801d1d6: 68db ldr r3, [r3, #12]
  71879. 801d1d8: 69ba ldr r2, [r7, #24]
  71880. 801d1da: 429a cmp r2, r3
  71881. 801d1dc: d111 bne.n 801d202 <tcp_input+0x36a>
  71882. 801d1de: 4b58 ldr r3, [pc, #352] @ (801d340 <tcp_input+0x4a8>)
  71883. 801d1e0: f240 1215 movw r2, #277 @ 0x115
  71884. 801d1e4: 495a ldr r1, [pc, #360] @ (801d350 <tcp_input+0x4b8>)
  71885. 801d1e6: 4858 ldr r0, [pc, #352] @ (801d348 <tcp_input+0x4b0>)
  71886. 801d1e8: f00c ffe8 bl 802a1bc <iprintf>
  71887. break;
  71888. 801d1ec: e009 b.n 801d202 <tcp_input+0x36a>
  71889. }
  71890. prev = pcb;
  71891. 801d1ee: 69bb ldr r3, [r7, #24]
  71892. 801d1f0: 61fb str r3, [r7, #28]
  71893. for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) {
  71894. 801d1f2: 69bb ldr r3, [r7, #24]
  71895. 801d1f4: 68db ldr r3, [r3, #12]
  71896. 801d1f6: 61bb str r3, [r7, #24]
  71897. 801d1f8: 69bb ldr r3, [r7, #24]
  71898. 801d1fa: 2b00 cmp r3, #0
  71899. 801d1fc: f47f af5e bne.w 801d0bc <tcp_input+0x224>
  71900. 801d200: e000 b.n 801d204 <tcp_input+0x36c>
  71901. break;
  71902. 801d202: bf00 nop
  71903. }
  71904. if (pcb == NULL) {
  71905. 801d204: 69bb ldr r3, [r7, #24]
  71906. 801d206: 2b00 cmp r3, #0
  71907. 801d208: f040 80aa bne.w 801d360 <tcp_input+0x4c8>
  71908. /* If it did not go to an active connection, we check the connections
  71909. in the TIME-WAIT state. */
  71910. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  71911. 801d20c: 4b51 ldr r3, [pc, #324] @ (801d354 <tcp_input+0x4bc>)
  71912. 801d20e: 681b ldr r3, [r3, #0]
  71913. 801d210: 61bb str r3, [r7, #24]
  71914. 801d212: e03f b.n 801d294 <tcp_input+0x3fc>
  71915. LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT);
  71916. 801d214: 69bb ldr r3, [r7, #24]
  71917. 801d216: 7d1b ldrb r3, [r3, #20]
  71918. 801d218: 2b0a cmp r3, #10
  71919. 801d21a: d006 beq.n 801d22a <tcp_input+0x392>
  71920. 801d21c: 4b48 ldr r3, [pc, #288] @ (801d340 <tcp_input+0x4a8>)
  71921. 801d21e: f240 121f movw r2, #287 @ 0x11f
  71922. 801d222: 494d ldr r1, [pc, #308] @ (801d358 <tcp_input+0x4c0>)
  71923. 801d224: 4848 ldr r0, [pc, #288] @ (801d348 <tcp_input+0x4b0>)
  71924. 801d226: f00c ffc9 bl 802a1bc <iprintf>
  71925. /* check if PCB is bound to specific netif */
  71926. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  71927. 801d22a: 69bb ldr r3, [r7, #24]
  71928. 801d22c: 7a1b ldrb r3, [r3, #8]
  71929. 801d22e: 2b00 cmp r3, #0
  71930. 801d230: d009 beq.n 801d246 <tcp_input+0x3ae>
  71931. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  71932. 801d232: 69bb ldr r3, [r7, #24]
  71933. 801d234: 7a1a ldrb r2, [r3, #8]
  71934. 801d236: 4b41 ldr r3, [pc, #260] @ (801d33c <tcp_input+0x4a4>)
  71935. 801d238: 685b ldr r3, [r3, #4]
  71936. 801d23a: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  71937. 801d23e: 3301 adds r3, #1
  71938. 801d240: b2db uxtb r3, r3
  71939. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  71940. 801d242: 429a cmp r2, r3
  71941. 801d244: d122 bne.n 801d28c <tcp_input+0x3f4>
  71942. continue;
  71943. }
  71944. if (pcb->remote_port == tcphdr->src &&
  71945. 801d246: 69bb ldr r3, [r7, #24]
  71946. 801d248: 8b1a ldrh r2, [r3, #24]
  71947. 801d24a: 4b3b ldr r3, [pc, #236] @ (801d338 <tcp_input+0x4a0>)
  71948. 801d24c: 681b ldr r3, [r3, #0]
  71949. 801d24e: 881b ldrh r3, [r3, #0]
  71950. 801d250: b29b uxth r3, r3
  71951. 801d252: 429a cmp r2, r3
  71952. 801d254: d11b bne.n 801d28e <tcp_input+0x3f6>
  71953. pcb->local_port == tcphdr->dest &&
  71954. 801d256: 69bb ldr r3, [r7, #24]
  71955. 801d258: 8ada ldrh r2, [r3, #22]
  71956. 801d25a: 4b37 ldr r3, [pc, #220] @ (801d338 <tcp_input+0x4a0>)
  71957. 801d25c: 681b ldr r3, [r3, #0]
  71958. 801d25e: 885b ldrh r3, [r3, #2]
  71959. 801d260: b29b uxth r3, r3
  71960. if (pcb->remote_port == tcphdr->src &&
  71961. 801d262: 429a cmp r2, r3
  71962. 801d264: d113 bne.n 801d28e <tcp_input+0x3f6>
  71963. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  71964. 801d266: 69bb ldr r3, [r7, #24]
  71965. 801d268: 685a ldr r2, [r3, #4]
  71966. 801d26a: 4b34 ldr r3, [pc, #208] @ (801d33c <tcp_input+0x4a4>)
  71967. 801d26c: 691b ldr r3, [r3, #16]
  71968. pcb->local_port == tcphdr->dest &&
  71969. 801d26e: 429a cmp r2, r3
  71970. 801d270: d10d bne.n 801d28e <tcp_input+0x3f6>
  71971. ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  71972. 801d272: 69bb ldr r3, [r7, #24]
  71973. 801d274: 681a ldr r2, [r3, #0]
  71974. 801d276: 4b31 ldr r3, [pc, #196] @ (801d33c <tcp_input+0x4a4>)
  71975. 801d278: 695b ldr r3, [r3, #20]
  71976. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) &&
  71977. 801d27a: 429a cmp r2, r3
  71978. 801d27c: d107 bne.n 801d28e <tcp_input+0x3f6>
  71979. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  71980. if (LWIP_HOOK_TCP_INPACKET_PCB(pcb, tcphdr, tcphdr_optlen, tcphdr_opt1len,
  71981. tcphdr_opt2, p) == ERR_OK)
  71982. #endif
  71983. {
  71984. tcp_timewait_input(pcb);
  71985. 801d27e: 69b8 ldr r0, [r7, #24]
  71986. 801d280: f000 fb56 bl 801d930 <tcp_timewait_input>
  71987. }
  71988. pbuf_free(p);
  71989. 801d284: 6878 ldr r0, [r7, #4]
  71990. 801d286: f7fd fd21 bl 801accc <pbuf_free>
  71991. return;
  71992. 801d28a: e1fd b.n 801d688 <tcp_input+0x7f0>
  71993. continue;
  71994. 801d28c: bf00 nop
  71995. for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) {
  71996. 801d28e: 69bb ldr r3, [r7, #24]
  71997. 801d290: 68db ldr r3, [r3, #12]
  71998. 801d292: 61bb str r3, [r7, #24]
  71999. 801d294: 69bb ldr r3, [r7, #24]
  72000. 801d296: 2b00 cmp r3, #0
  72001. 801d298: d1bc bne.n 801d214 <tcp_input+0x37c>
  72002. }
  72003. }
  72004. /* Finally, if we still did not get a match, we check all PCBs that
  72005. are LISTENing for incoming connections. */
  72006. prev = NULL;
  72007. 801d29a: 2300 movs r3, #0
  72008. 801d29c: 61fb str r3, [r7, #28]
  72009. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  72010. 801d29e: 4b2f ldr r3, [pc, #188] @ (801d35c <tcp_input+0x4c4>)
  72011. 801d2a0: 681b ldr r3, [r3, #0]
  72012. 801d2a2: 617b str r3, [r7, #20]
  72013. 801d2a4: e02a b.n 801d2fc <tcp_input+0x464>
  72014. /* check if PCB is bound to specific netif */
  72015. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  72016. 801d2a6: 697b ldr r3, [r7, #20]
  72017. 801d2a8: 7a1b ldrb r3, [r3, #8]
  72018. 801d2aa: 2b00 cmp r3, #0
  72019. 801d2ac: d00c beq.n 801d2c8 <tcp_input+0x430>
  72020. (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  72021. 801d2ae: 697b ldr r3, [r7, #20]
  72022. 801d2b0: 7a1a ldrb r2, [r3, #8]
  72023. 801d2b2: 4b22 ldr r3, [pc, #136] @ (801d33c <tcp_input+0x4a4>)
  72024. 801d2b4: 685b ldr r3, [r3, #4]
  72025. 801d2b6: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  72026. 801d2ba: 3301 adds r3, #1
  72027. 801d2bc: b2db uxtb r3, r3
  72028. if ((lpcb->netif_idx != NETIF_NO_INDEX) &&
  72029. 801d2be: 429a cmp r2, r3
  72030. 801d2c0: d002 beq.n 801d2c8 <tcp_input+0x430>
  72031. prev = (struct tcp_pcb *)lpcb;
  72032. 801d2c2: 697b ldr r3, [r7, #20]
  72033. 801d2c4: 61fb str r3, [r7, #28]
  72034. continue;
  72035. 801d2c6: e016 b.n 801d2f6 <tcp_input+0x45e>
  72036. }
  72037. if (lpcb->local_port == tcphdr->dest) {
  72038. 801d2c8: 697b ldr r3, [r7, #20]
  72039. 801d2ca: 8ada ldrh r2, [r3, #22]
  72040. 801d2cc: 4b1a ldr r3, [pc, #104] @ (801d338 <tcp_input+0x4a0>)
  72041. 801d2ce: 681b ldr r3, [r3, #0]
  72042. 801d2d0: 885b ldrh r3, [r3, #2]
  72043. 801d2d2: b29b uxth r3, r3
  72044. 801d2d4: 429a cmp r2, r3
  72045. 801d2d6: d10c bne.n 801d2f2 <tcp_input+0x45a>
  72046. lpcb_prev = prev;
  72047. #else /* SO_REUSE */
  72048. break;
  72049. #endif /* SO_REUSE */
  72050. } else if (IP_ADDR_PCB_VERSION_MATCH_EXACT(lpcb, ip_current_dest_addr())) {
  72051. if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) {
  72052. 801d2d8: 697b ldr r3, [r7, #20]
  72053. 801d2da: 681a ldr r2, [r3, #0]
  72054. 801d2dc: 4b17 ldr r3, [pc, #92] @ (801d33c <tcp_input+0x4a4>)
  72055. 801d2de: 695b ldr r3, [r3, #20]
  72056. 801d2e0: 429a cmp r2, r3
  72057. 801d2e2: d00f beq.n 801d304 <tcp_input+0x46c>
  72058. /* found an exact match */
  72059. break;
  72060. } else if (ip_addr_isany(&lpcb->local_ip)) {
  72061. 801d2e4: 697b ldr r3, [r7, #20]
  72062. 801d2e6: 2b00 cmp r3, #0
  72063. 801d2e8: d00d beq.n 801d306 <tcp_input+0x46e>
  72064. 801d2ea: 697b ldr r3, [r7, #20]
  72065. 801d2ec: 681b ldr r3, [r3, #0]
  72066. 801d2ee: 2b00 cmp r3, #0
  72067. 801d2f0: d009 beq.n 801d306 <tcp_input+0x46e>
  72068. break;
  72069. #endif /* SO_REUSE */
  72070. }
  72071. }
  72072. }
  72073. prev = (struct tcp_pcb *)lpcb;
  72074. 801d2f2: 697b ldr r3, [r7, #20]
  72075. 801d2f4: 61fb str r3, [r7, #28]
  72076. for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
  72077. 801d2f6: 697b ldr r3, [r7, #20]
  72078. 801d2f8: 68db ldr r3, [r3, #12]
  72079. 801d2fa: 617b str r3, [r7, #20]
  72080. 801d2fc: 697b ldr r3, [r7, #20]
  72081. 801d2fe: 2b00 cmp r3, #0
  72082. 801d300: d1d1 bne.n 801d2a6 <tcp_input+0x40e>
  72083. 801d302: e000 b.n 801d306 <tcp_input+0x46e>
  72084. break;
  72085. 801d304: bf00 nop
  72086. /* only pass to ANY if no specific local IP has been found */
  72087. lpcb = lpcb_any;
  72088. prev = lpcb_prev;
  72089. }
  72090. #endif /* SO_REUSE */
  72091. if (lpcb != NULL) {
  72092. 801d306: 697b ldr r3, [r7, #20]
  72093. 801d308: 2b00 cmp r3, #0
  72094. 801d30a: d029 beq.n 801d360 <tcp_input+0x4c8>
  72095. /* Move this PCB to the front of the list so that subsequent
  72096. lookups will be faster (we exploit locality in TCP segment
  72097. arrivals). */
  72098. if (prev != NULL) {
  72099. 801d30c: 69fb ldr r3, [r7, #28]
  72100. 801d30e: 2b00 cmp r3, #0
  72101. 801d310: d00a beq.n 801d328 <tcp_input+0x490>
  72102. ((struct tcp_pcb_listen *)prev)->next = lpcb->next;
  72103. 801d312: 697b ldr r3, [r7, #20]
  72104. 801d314: 68da ldr r2, [r3, #12]
  72105. 801d316: 69fb ldr r3, [r7, #28]
  72106. 801d318: 60da str r2, [r3, #12]
  72107. /* our successor is the remainder of the listening list */
  72108. lpcb->next = tcp_listen_pcbs.listen_pcbs;
  72109. 801d31a: 4b10 ldr r3, [pc, #64] @ (801d35c <tcp_input+0x4c4>)
  72110. 801d31c: 681a ldr r2, [r3, #0]
  72111. 801d31e: 697b ldr r3, [r7, #20]
  72112. 801d320: 60da str r2, [r3, #12]
  72113. /* put this listening pcb at the head of the listening list */
  72114. tcp_listen_pcbs.listen_pcbs = lpcb;
  72115. 801d322: 4a0e ldr r2, [pc, #56] @ (801d35c <tcp_input+0x4c4>)
  72116. 801d324: 697b ldr r3, [r7, #20]
  72117. 801d326: 6013 str r3, [r2, #0]
  72118. #ifdef LWIP_HOOK_TCP_INPACKET_PCB
  72119. if (LWIP_HOOK_TCP_INPACKET_PCB((struct tcp_pcb *)lpcb, tcphdr, tcphdr_optlen,
  72120. tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK)
  72121. #endif
  72122. {
  72123. tcp_listen_input(lpcb);
  72124. 801d328: 6978 ldr r0, [r7, #20]
  72125. 801d32a: f000 fa03 bl 801d734 <tcp_listen_input>
  72126. }
  72127. pbuf_free(p);
  72128. 801d32e: 6878 ldr r0, [r7, #4]
  72129. 801d330: f7fd fccc bl 801accc <pbuf_free>
  72130. return;
  72131. 801d334: e1a8 b.n 801d688 <tcp_input+0x7f0>
  72132. 801d336: bf00 nop
  72133. 801d338: 2402af84 .word 0x2402af84
  72134. 801d33c: 24024408 .word 0x24024408
  72135. 801d340: 0802f5a4 .word 0x0802f5a4
  72136. 801d344: 0802f6d0 .word 0x0802f6d0
  72137. 801d348: 0802f5f0 .word 0x0802f5f0
  72138. 801d34c: 2402af64 .word 0x2402af64
  72139. 801d350: 0802f6fc .word 0x0802f6fc
  72140. 801d354: 2402af68 .word 0x2402af68
  72141. 801d358: 0802f728 .word 0x0802f728
  72142. 801d35c: 2402af60 .word 0x2402af60
  72143. tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) {
  72144. pbuf_free(p);
  72145. return;
  72146. }
  72147. #endif
  72148. if (pcb != NULL) {
  72149. 801d360: 69bb ldr r3, [r7, #24]
  72150. 801d362: 2b00 cmp r3, #0
  72151. 801d364: f000 8158 beq.w 801d618 <tcp_input+0x780>
  72152. #if TCP_INPUT_DEBUG
  72153. tcp_debug_print_state(pcb->state);
  72154. #endif /* TCP_INPUT_DEBUG */
  72155. /* Set up a tcp_seg structure. */
  72156. inseg.next = NULL;
  72157. 801d368: 4b95 ldr r3, [pc, #596] @ (801d5c0 <tcp_input+0x728>)
  72158. 801d36a: 2200 movs r2, #0
  72159. 801d36c: 601a str r2, [r3, #0]
  72160. inseg.len = p->tot_len;
  72161. 801d36e: 687b ldr r3, [r7, #4]
  72162. 801d370: 891a ldrh r2, [r3, #8]
  72163. 801d372: 4b93 ldr r3, [pc, #588] @ (801d5c0 <tcp_input+0x728>)
  72164. 801d374: 811a strh r2, [r3, #8]
  72165. inseg.p = p;
  72166. 801d376: 4a92 ldr r2, [pc, #584] @ (801d5c0 <tcp_input+0x728>)
  72167. 801d378: 687b ldr r3, [r7, #4]
  72168. 801d37a: 6053 str r3, [r2, #4]
  72169. inseg.tcphdr = tcphdr;
  72170. 801d37c: 4b91 ldr r3, [pc, #580] @ (801d5c4 <tcp_input+0x72c>)
  72171. 801d37e: 681b ldr r3, [r3, #0]
  72172. 801d380: 4a8f ldr r2, [pc, #572] @ (801d5c0 <tcp_input+0x728>)
  72173. 801d382: 6113 str r3, [r2, #16]
  72174. recv_data = NULL;
  72175. 801d384: 4b90 ldr r3, [pc, #576] @ (801d5c8 <tcp_input+0x730>)
  72176. 801d386: 2200 movs r2, #0
  72177. 801d388: 601a str r2, [r3, #0]
  72178. recv_flags = 0;
  72179. 801d38a: 4b90 ldr r3, [pc, #576] @ (801d5cc <tcp_input+0x734>)
  72180. 801d38c: 2200 movs r2, #0
  72181. 801d38e: 701a strb r2, [r3, #0]
  72182. recv_acked = 0;
  72183. 801d390: 4b8f ldr r3, [pc, #572] @ (801d5d0 <tcp_input+0x738>)
  72184. 801d392: 2200 movs r2, #0
  72185. 801d394: 801a strh r2, [r3, #0]
  72186. if (flags & TCP_PSH) {
  72187. 801d396: 4b8f ldr r3, [pc, #572] @ (801d5d4 <tcp_input+0x73c>)
  72188. 801d398: 781b ldrb r3, [r3, #0]
  72189. 801d39a: f003 0308 and.w r3, r3, #8
  72190. 801d39e: 2b00 cmp r3, #0
  72191. 801d3a0: d006 beq.n 801d3b0 <tcp_input+0x518>
  72192. p->flags |= PBUF_FLAG_PUSH;
  72193. 801d3a2: 687b ldr r3, [r7, #4]
  72194. 801d3a4: 7b5b ldrb r3, [r3, #13]
  72195. 801d3a6: f043 0301 orr.w r3, r3, #1
  72196. 801d3aa: b2da uxtb r2, r3
  72197. 801d3ac: 687b ldr r3, [r7, #4]
  72198. 801d3ae: 735a strb r2, [r3, #13]
  72199. }
  72200. /* If there is data which was previously "refused" by upper layer */
  72201. if (pcb->refused_data != NULL) {
  72202. 801d3b0: 69bb ldr r3, [r7, #24]
  72203. 801d3b2: 6f9b ldr r3, [r3, #120] @ 0x78
  72204. 801d3b4: 2b00 cmp r3, #0
  72205. 801d3b6: d017 beq.n 801d3e8 <tcp_input+0x550>
  72206. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  72207. 801d3b8: 69b8 ldr r0, [r7, #24]
  72208. 801d3ba: f7ff f84d bl 801c458 <tcp_process_refused_data>
  72209. 801d3be: 4603 mov r3, r0
  72210. 801d3c0: f113 0f0d cmn.w r3, #13
  72211. 801d3c4: d007 beq.n 801d3d6 <tcp_input+0x53e>
  72212. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  72213. 801d3c6: 69bb ldr r3, [r7, #24]
  72214. 801d3c8: 6f9b ldr r3, [r3, #120] @ 0x78
  72215. if ((tcp_process_refused_data(pcb) == ERR_ABRT) ||
  72216. 801d3ca: 2b00 cmp r3, #0
  72217. 801d3cc: d00c beq.n 801d3e8 <tcp_input+0x550>
  72218. ((pcb->refused_data != NULL) && (tcplen > 0))) {
  72219. 801d3ce: 4b82 ldr r3, [pc, #520] @ (801d5d8 <tcp_input+0x740>)
  72220. 801d3d0: 881b ldrh r3, [r3, #0]
  72221. 801d3d2: 2b00 cmp r3, #0
  72222. 801d3d4: d008 beq.n 801d3e8 <tcp_input+0x550>
  72223. /* pcb has been aborted or refused data is still refused and the new
  72224. segment contains data */
  72225. if (pcb->rcv_ann_wnd == 0) {
  72226. 801d3d6: 69bb ldr r3, [r7, #24]
  72227. 801d3d8: 8d5b ldrh r3, [r3, #42] @ 0x2a
  72228. 801d3da: 2b00 cmp r3, #0
  72229. 801d3dc: f040 80e4 bne.w 801d5a8 <tcp_input+0x710>
  72230. /* this is a zero-window probe, we respond to it with current RCV.NXT
  72231. and drop the data segment */
  72232. tcp_send_empty_ack(pcb);
  72233. 801d3e0: 69b8 ldr r0, [r7, #24]
  72234. 801d3e2: f003 fe73 bl 80210cc <tcp_send_empty_ack>
  72235. }
  72236. TCP_STATS_INC(tcp.drop);
  72237. MIB2_STATS_INC(mib2.tcpinerrs);
  72238. goto aborted;
  72239. 801d3e6: e0df b.n 801d5a8 <tcp_input+0x710>
  72240. }
  72241. }
  72242. tcp_input_pcb = pcb;
  72243. 801d3e8: 4a7c ldr r2, [pc, #496] @ (801d5dc <tcp_input+0x744>)
  72244. 801d3ea: 69bb ldr r3, [r7, #24]
  72245. 801d3ec: 6013 str r3, [r2, #0]
  72246. err = tcp_process(pcb);
  72247. 801d3ee: 69b8 ldr r0, [r7, #24]
  72248. 801d3f0: f000 fb18 bl 801da24 <tcp_process>
  72249. 801d3f4: 4603 mov r3, r0
  72250. 801d3f6: 74fb strb r3, [r7, #19]
  72251. /* A return value of ERR_ABRT means that tcp_abort() was called
  72252. and that the pcb has been freed. If so, we don't do anything. */
  72253. if (err != ERR_ABRT) {
  72254. 801d3f8: f997 3013 ldrsb.w r3, [r7, #19]
  72255. 801d3fc: f113 0f0d cmn.w r3, #13
  72256. 801d400: f000 80d4 beq.w 801d5ac <tcp_input+0x714>
  72257. if (recv_flags & TF_RESET) {
  72258. 801d404: 4b71 ldr r3, [pc, #452] @ (801d5cc <tcp_input+0x734>)
  72259. 801d406: 781b ldrb r3, [r3, #0]
  72260. 801d408: f003 0308 and.w r3, r3, #8
  72261. 801d40c: 2b00 cmp r3, #0
  72262. 801d40e: d015 beq.n 801d43c <tcp_input+0x5a4>
  72263. /* TF_RESET means that the connection was reset by the other
  72264. end. We then call the error callback to inform the
  72265. application that the connection is dead before we
  72266. deallocate the PCB. */
  72267. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_RST);
  72268. 801d410: 69bb ldr r3, [r7, #24]
  72269. 801d412: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  72270. 801d416: 2b00 cmp r3, #0
  72271. 801d418: d008 beq.n 801d42c <tcp_input+0x594>
  72272. 801d41a: 69bb ldr r3, [r7, #24]
  72273. 801d41c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  72274. 801d420: 69ba ldr r2, [r7, #24]
  72275. 801d422: 6912 ldr r2, [r2, #16]
  72276. 801d424: f06f 010d mvn.w r1, #13
  72277. 801d428: 4610 mov r0, r2
  72278. 801d42a: 4798 blx r3
  72279. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  72280. 801d42c: 69b9 ldr r1, [r7, #24]
  72281. 801d42e: 486c ldr r0, [pc, #432] @ (801d5e0 <tcp_input+0x748>)
  72282. 801d430: f7ff fbba bl 801cba8 <tcp_pcb_remove>
  72283. tcp_free(pcb);
  72284. 801d434: 69b8 ldr r0, [r7, #24]
  72285. 801d436: f7fd ff05 bl 801b244 <tcp_free>
  72286. 801d43a: e0da b.n 801d5f2 <tcp_input+0x75a>
  72287. } else {
  72288. err = ERR_OK;
  72289. 801d43c: 2300 movs r3, #0
  72290. 801d43e: 74fb strb r3, [r7, #19]
  72291. /* If the application has registered a "sent" function to be
  72292. called when new send buffer space is available, we call it
  72293. now. */
  72294. if (recv_acked > 0) {
  72295. 801d440: 4b63 ldr r3, [pc, #396] @ (801d5d0 <tcp_input+0x738>)
  72296. 801d442: 881b ldrh r3, [r3, #0]
  72297. 801d444: 2b00 cmp r3, #0
  72298. 801d446: d01d beq.n 801d484 <tcp_input+0x5ec>
  72299. while (acked > 0) {
  72300. acked16 = (u16_t)LWIP_MIN(acked, 0xffffu);
  72301. acked -= acked16;
  72302. #else
  72303. {
  72304. acked16 = recv_acked;
  72305. 801d448: 4b61 ldr r3, [pc, #388] @ (801d5d0 <tcp_input+0x738>)
  72306. 801d44a: 881b ldrh r3, [r3, #0]
  72307. 801d44c: 81fb strh r3, [r7, #14]
  72308. #endif
  72309. TCP_EVENT_SENT(pcb, (u16_t)acked16, err);
  72310. 801d44e: 69bb ldr r3, [r7, #24]
  72311. 801d450: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  72312. 801d454: 2b00 cmp r3, #0
  72313. 801d456: d00a beq.n 801d46e <tcp_input+0x5d6>
  72314. 801d458: 69bb ldr r3, [r7, #24]
  72315. 801d45a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  72316. 801d45e: 69ba ldr r2, [r7, #24]
  72317. 801d460: 6910 ldr r0, [r2, #16]
  72318. 801d462: 89fa ldrh r2, [r7, #14]
  72319. 801d464: 69b9 ldr r1, [r7, #24]
  72320. 801d466: 4798 blx r3
  72321. 801d468: 4603 mov r3, r0
  72322. 801d46a: 74fb strb r3, [r7, #19]
  72323. 801d46c: e001 b.n 801d472 <tcp_input+0x5da>
  72324. 801d46e: 2300 movs r3, #0
  72325. 801d470: 74fb strb r3, [r7, #19]
  72326. if (err == ERR_ABRT) {
  72327. 801d472: f997 3013 ldrsb.w r3, [r7, #19]
  72328. 801d476: f113 0f0d cmn.w r3, #13
  72329. 801d47a: f000 8099 beq.w 801d5b0 <tcp_input+0x718>
  72330. goto aborted;
  72331. }
  72332. }
  72333. recv_acked = 0;
  72334. 801d47e: 4b54 ldr r3, [pc, #336] @ (801d5d0 <tcp_input+0x738>)
  72335. 801d480: 2200 movs r2, #0
  72336. 801d482: 801a strh r2, [r3, #0]
  72337. }
  72338. if (tcp_input_delayed_close(pcb)) {
  72339. 801d484: 69b8 ldr r0, [r7, #24]
  72340. 801d486: f000 f915 bl 801d6b4 <tcp_input_delayed_close>
  72341. 801d48a: 4603 mov r3, r0
  72342. 801d48c: 2b00 cmp r3, #0
  72343. 801d48e: f040 8091 bne.w 801d5b4 <tcp_input+0x71c>
  72344. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  72345. while (recv_data != NULL) {
  72346. struct pbuf *rest = NULL;
  72347. pbuf_split_64k(recv_data, &rest);
  72348. #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  72349. if (recv_data != NULL) {
  72350. 801d492: 4b4d ldr r3, [pc, #308] @ (801d5c8 <tcp_input+0x730>)
  72351. 801d494: 681b ldr r3, [r3, #0]
  72352. 801d496: 2b00 cmp r3, #0
  72353. 801d498: d041 beq.n 801d51e <tcp_input+0x686>
  72354. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  72355. LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL);
  72356. 801d49a: 69bb ldr r3, [r7, #24]
  72357. 801d49c: 6f9b ldr r3, [r3, #120] @ 0x78
  72358. 801d49e: 2b00 cmp r3, #0
  72359. 801d4a0: d006 beq.n 801d4b0 <tcp_input+0x618>
  72360. 801d4a2: 4b50 ldr r3, [pc, #320] @ (801d5e4 <tcp_input+0x74c>)
  72361. 801d4a4: f44f 72f3 mov.w r2, #486 @ 0x1e6
  72362. 801d4a8: 494f ldr r1, [pc, #316] @ (801d5e8 <tcp_input+0x750>)
  72363. 801d4aa: 4850 ldr r0, [pc, #320] @ (801d5ec <tcp_input+0x754>)
  72364. 801d4ac: f00c fe86 bl 802a1bc <iprintf>
  72365. if (pcb->flags & TF_RXCLOSED) {
  72366. 801d4b0: 69bb ldr r3, [r7, #24]
  72367. 801d4b2: 8b5b ldrh r3, [r3, #26]
  72368. 801d4b4: f003 0310 and.w r3, r3, #16
  72369. 801d4b8: 2b00 cmp r3, #0
  72370. 801d4ba: d008 beq.n 801d4ce <tcp_input+0x636>
  72371. /* received data although already closed -> abort (send RST) to
  72372. notify the remote host that not all data has been processed */
  72373. pbuf_free(recv_data);
  72374. 801d4bc: 4b42 ldr r3, [pc, #264] @ (801d5c8 <tcp_input+0x730>)
  72375. 801d4be: 681b ldr r3, [r3, #0]
  72376. 801d4c0: 4618 mov r0, r3
  72377. 801d4c2: f7fd fc03 bl 801accc <pbuf_free>
  72378. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  72379. if (rest != NULL) {
  72380. pbuf_free(rest);
  72381. }
  72382. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  72383. tcp_abort(pcb);
  72384. 801d4c6: 69b8 ldr r0, [r7, #24]
  72385. 801d4c8: f7fe fa06 bl 801b8d8 <tcp_abort>
  72386. goto aborted;
  72387. 801d4cc: e091 b.n 801d5f2 <tcp_input+0x75a>
  72388. }
  72389. /* Notify application that data has been received. */
  72390. TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err);
  72391. 801d4ce: 69bb ldr r3, [r7, #24]
  72392. 801d4d0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  72393. 801d4d4: 2b00 cmp r3, #0
  72394. 801d4d6: d00c beq.n 801d4f2 <tcp_input+0x65a>
  72395. 801d4d8: 69bb ldr r3, [r7, #24]
  72396. 801d4da: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  72397. 801d4de: 69bb ldr r3, [r7, #24]
  72398. 801d4e0: 6918 ldr r0, [r3, #16]
  72399. 801d4e2: 4b39 ldr r3, [pc, #228] @ (801d5c8 <tcp_input+0x730>)
  72400. 801d4e4: 681a ldr r2, [r3, #0]
  72401. 801d4e6: 2300 movs r3, #0
  72402. 801d4e8: 69b9 ldr r1, [r7, #24]
  72403. 801d4ea: 47a0 blx r4
  72404. 801d4ec: 4603 mov r3, r0
  72405. 801d4ee: 74fb strb r3, [r7, #19]
  72406. 801d4f0: e008 b.n 801d504 <tcp_input+0x66c>
  72407. 801d4f2: 4b35 ldr r3, [pc, #212] @ (801d5c8 <tcp_input+0x730>)
  72408. 801d4f4: 681a ldr r2, [r3, #0]
  72409. 801d4f6: 2300 movs r3, #0
  72410. 801d4f8: 69b9 ldr r1, [r7, #24]
  72411. 801d4fa: 2000 movs r0, #0
  72412. 801d4fc: f7ff f884 bl 801c608 <tcp_recv_null>
  72413. 801d500: 4603 mov r3, r0
  72414. 801d502: 74fb strb r3, [r7, #19]
  72415. if (err == ERR_ABRT) {
  72416. 801d504: f997 3013 ldrsb.w r3, [r7, #19]
  72417. 801d508: f113 0f0d cmn.w r3, #13
  72418. 801d50c: d054 beq.n 801d5b8 <tcp_input+0x720>
  72419. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  72420. goto aborted;
  72421. }
  72422. /* If the upper layer can't receive this data, store it */
  72423. if (err != ERR_OK) {
  72424. 801d50e: f997 3013 ldrsb.w r3, [r7, #19]
  72425. 801d512: 2b00 cmp r3, #0
  72426. 801d514: d003 beq.n 801d51e <tcp_input+0x686>
  72427. #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE
  72428. if (rest != NULL) {
  72429. pbuf_cat(recv_data, rest);
  72430. }
  72431. #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */
  72432. pcb->refused_data = recv_data;
  72433. 801d516: 4b2c ldr r3, [pc, #176] @ (801d5c8 <tcp_input+0x730>)
  72434. 801d518: 681a ldr r2, [r3, #0]
  72435. 801d51a: 69bb ldr r3, [r7, #24]
  72436. 801d51c: 679a str r2, [r3, #120] @ 0x78
  72437. }
  72438. }
  72439. /* If a FIN segment was received, we call the callback
  72440. function with a NULL buffer to indicate EOF. */
  72441. if (recv_flags & TF_GOT_FIN) {
  72442. 801d51e: 4b2b ldr r3, [pc, #172] @ (801d5cc <tcp_input+0x734>)
  72443. 801d520: 781b ldrb r3, [r3, #0]
  72444. 801d522: f003 0320 and.w r3, r3, #32
  72445. 801d526: 2b00 cmp r3, #0
  72446. 801d528: d031 beq.n 801d58e <tcp_input+0x6f6>
  72447. if (pcb->refused_data != NULL) {
  72448. 801d52a: 69bb ldr r3, [r7, #24]
  72449. 801d52c: 6f9b ldr r3, [r3, #120] @ 0x78
  72450. 801d52e: 2b00 cmp r3, #0
  72451. 801d530: d009 beq.n 801d546 <tcp_input+0x6ae>
  72452. /* Delay this if we have refused data. */
  72453. pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN;
  72454. 801d532: 69bb ldr r3, [r7, #24]
  72455. 801d534: 6f9b ldr r3, [r3, #120] @ 0x78
  72456. 801d536: 7b5a ldrb r2, [r3, #13]
  72457. 801d538: 69bb ldr r3, [r7, #24]
  72458. 801d53a: 6f9b ldr r3, [r3, #120] @ 0x78
  72459. 801d53c: f042 0220 orr.w r2, r2, #32
  72460. 801d540: b2d2 uxtb r2, r2
  72461. 801d542: 735a strb r2, [r3, #13]
  72462. 801d544: e023 b.n 801d58e <tcp_input+0x6f6>
  72463. } else {
  72464. /* correct rcv_wnd as the application won't call tcp_recved()
  72465. for the FIN's seqno */
  72466. if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) {
  72467. 801d546: 69bb ldr r3, [r7, #24]
  72468. 801d548: 8d1b ldrh r3, [r3, #40] @ 0x28
  72469. 801d54a: f241 62d0 movw r2, #5840 @ 0x16d0
  72470. 801d54e: 4293 cmp r3, r2
  72471. 801d550: d005 beq.n 801d55e <tcp_input+0x6c6>
  72472. pcb->rcv_wnd++;
  72473. 801d552: 69bb ldr r3, [r7, #24]
  72474. 801d554: 8d1b ldrh r3, [r3, #40] @ 0x28
  72475. 801d556: 3301 adds r3, #1
  72476. 801d558: b29a uxth r2, r3
  72477. 801d55a: 69bb ldr r3, [r7, #24]
  72478. 801d55c: 851a strh r2, [r3, #40] @ 0x28
  72479. }
  72480. TCP_EVENT_CLOSED(pcb, err);
  72481. 801d55e: 69bb ldr r3, [r7, #24]
  72482. 801d560: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  72483. 801d564: 2b00 cmp r3, #0
  72484. 801d566: d00b beq.n 801d580 <tcp_input+0x6e8>
  72485. 801d568: 69bb ldr r3, [r7, #24]
  72486. 801d56a: f8d3 4084 ldr.w r4, [r3, #132] @ 0x84
  72487. 801d56e: 69bb ldr r3, [r7, #24]
  72488. 801d570: 6918 ldr r0, [r3, #16]
  72489. 801d572: 2300 movs r3, #0
  72490. 801d574: 2200 movs r2, #0
  72491. 801d576: 69b9 ldr r1, [r7, #24]
  72492. 801d578: 47a0 blx r4
  72493. 801d57a: 4603 mov r3, r0
  72494. 801d57c: 74fb strb r3, [r7, #19]
  72495. 801d57e: e001 b.n 801d584 <tcp_input+0x6ec>
  72496. 801d580: 2300 movs r3, #0
  72497. 801d582: 74fb strb r3, [r7, #19]
  72498. if (err == ERR_ABRT) {
  72499. 801d584: f997 3013 ldrsb.w r3, [r7, #19]
  72500. 801d588: f113 0f0d cmn.w r3, #13
  72501. 801d58c: d016 beq.n 801d5bc <tcp_input+0x724>
  72502. goto aborted;
  72503. }
  72504. }
  72505. }
  72506. tcp_input_pcb = NULL;
  72507. 801d58e: 4b13 ldr r3, [pc, #76] @ (801d5dc <tcp_input+0x744>)
  72508. 801d590: 2200 movs r2, #0
  72509. 801d592: 601a str r2, [r3, #0]
  72510. if (tcp_input_delayed_close(pcb)) {
  72511. 801d594: 69b8 ldr r0, [r7, #24]
  72512. 801d596: f000 f88d bl 801d6b4 <tcp_input_delayed_close>
  72513. 801d59a: 4603 mov r3, r0
  72514. 801d59c: 2b00 cmp r3, #0
  72515. 801d59e: d127 bne.n 801d5f0 <tcp_input+0x758>
  72516. goto aborted;
  72517. }
  72518. /* Try to send something out. */
  72519. tcp_output(pcb);
  72520. 801d5a0: 69b8 ldr r0, [r7, #24]
  72521. 801d5a2: f002 ff7f bl 80204a4 <tcp_output>
  72522. 801d5a6: e024 b.n 801d5f2 <tcp_input+0x75a>
  72523. goto aborted;
  72524. 801d5a8: bf00 nop
  72525. 801d5aa: e022 b.n 801d5f2 <tcp_input+0x75a>
  72526. #endif /* TCP_INPUT_DEBUG */
  72527. }
  72528. }
  72529. /* Jump target if pcb has been aborted in a callback (by calling tcp_abort()).
  72530. Below this line, 'pcb' may not be dereferenced! */
  72531. aborted:
  72532. 801d5ac: bf00 nop
  72533. 801d5ae: e020 b.n 801d5f2 <tcp_input+0x75a>
  72534. goto aborted;
  72535. 801d5b0: bf00 nop
  72536. 801d5b2: e01e b.n 801d5f2 <tcp_input+0x75a>
  72537. goto aborted;
  72538. 801d5b4: bf00 nop
  72539. 801d5b6: e01c b.n 801d5f2 <tcp_input+0x75a>
  72540. goto aborted;
  72541. 801d5b8: bf00 nop
  72542. 801d5ba: e01a b.n 801d5f2 <tcp_input+0x75a>
  72543. goto aborted;
  72544. 801d5bc: bf00 nop
  72545. 801d5be: e018 b.n 801d5f2 <tcp_input+0x75a>
  72546. 801d5c0: 2402af70 .word 0x2402af70
  72547. 801d5c4: 2402af84 .word 0x2402af84
  72548. 801d5c8: 2402afa4 .word 0x2402afa4
  72549. 801d5cc: 2402afa1 .word 0x2402afa1
  72550. 801d5d0: 2402af9c .word 0x2402af9c
  72551. 801d5d4: 2402afa0 .word 0x2402afa0
  72552. 801d5d8: 2402af9e .word 0x2402af9e
  72553. 801d5dc: 2402afa8 .word 0x2402afa8
  72554. 801d5e0: 2402af64 .word 0x2402af64
  72555. 801d5e4: 0802f5a4 .word 0x0802f5a4
  72556. 801d5e8: 0802f758 .word 0x0802f758
  72557. 801d5ec: 0802f5f0 .word 0x0802f5f0
  72558. goto aborted;
  72559. 801d5f0: bf00 nop
  72560. tcp_input_pcb = NULL;
  72561. 801d5f2: 4b27 ldr r3, [pc, #156] @ (801d690 <tcp_input+0x7f8>)
  72562. 801d5f4: 2200 movs r2, #0
  72563. 801d5f6: 601a str r2, [r3, #0]
  72564. recv_data = NULL;
  72565. 801d5f8: 4b26 ldr r3, [pc, #152] @ (801d694 <tcp_input+0x7fc>)
  72566. 801d5fa: 2200 movs r2, #0
  72567. 801d5fc: 601a str r2, [r3, #0]
  72568. /* give up our reference to inseg.p */
  72569. if (inseg.p != NULL) {
  72570. 801d5fe: 4b26 ldr r3, [pc, #152] @ (801d698 <tcp_input+0x800>)
  72571. 801d600: 685b ldr r3, [r3, #4]
  72572. 801d602: 2b00 cmp r3, #0
  72573. 801d604: d03f beq.n 801d686 <tcp_input+0x7ee>
  72574. pbuf_free(inseg.p);
  72575. 801d606: 4b24 ldr r3, [pc, #144] @ (801d698 <tcp_input+0x800>)
  72576. 801d608: 685b ldr r3, [r3, #4]
  72577. 801d60a: 4618 mov r0, r3
  72578. 801d60c: f7fd fb5e bl 801accc <pbuf_free>
  72579. inseg.p = NULL;
  72580. 801d610: 4b21 ldr r3, [pc, #132] @ (801d698 <tcp_input+0x800>)
  72581. 801d612: 2200 movs r2, #0
  72582. 801d614: 605a str r2, [r3, #4]
  72583. pbuf_free(p);
  72584. }
  72585. LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane());
  72586. PERF_STOP("tcp_input");
  72587. return;
  72588. 801d616: e036 b.n 801d686 <tcp_input+0x7ee>
  72589. if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) {
  72590. 801d618: 4b20 ldr r3, [pc, #128] @ (801d69c <tcp_input+0x804>)
  72591. 801d61a: 681b ldr r3, [r3, #0]
  72592. 801d61c: 899b ldrh r3, [r3, #12]
  72593. 801d61e: b29b uxth r3, r3
  72594. 801d620: 4618 mov r0, r3
  72595. 801d622: f7fb fe71 bl 8019308 <lwip_htons>
  72596. 801d626: 4603 mov r3, r0
  72597. 801d628: b2db uxtb r3, r3
  72598. 801d62a: f003 0304 and.w r3, r3, #4
  72599. 801d62e: 2b00 cmp r3, #0
  72600. 801d630: d118 bne.n 801d664 <tcp_input+0x7cc>
  72601. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  72602. 801d632: 4b1b ldr r3, [pc, #108] @ (801d6a0 <tcp_input+0x808>)
  72603. 801d634: 6819 ldr r1, [r3, #0]
  72604. 801d636: 4b1b ldr r3, [pc, #108] @ (801d6a4 <tcp_input+0x80c>)
  72605. 801d638: 881b ldrh r3, [r3, #0]
  72606. 801d63a: 461a mov r2, r3
  72607. 801d63c: 4b1a ldr r3, [pc, #104] @ (801d6a8 <tcp_input+0x810>)
  72608. 801d63e: 681b ldr r3, [r3, #0]
  72609. 801d640: 18d0 adds r0, r2, r3
  72610. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72611. 801d642: 4b16 ldr r3, [pc, #88] @ (801d69c <tcp_input+0x804>)
  72612. 801d644: 681b ldr r3, [r3, #0]
  72613. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  72614. 801d646: 885b ldrh r3, [r3, #2]
  72615. 801d648: b29b uxth r3, r3
  72616. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72617. 801d64a: 4a14 ldr r2, [pc, #80] @ (801d69c <tcp_input+0x804>)
  72618. 801d64c: 6812 ldr r2, [r2, #0]
  72619. tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(),
  72620. 801d64e: 8812 ldrh r2, [r2, #0]
  72621. 801d650: b292 uxth r2, r2
  72622. 801d652: 9202 str r2, [sp, #8]
  72623. 801d654: 9301 str r3, [sp, #4]
  72624. 801d656: 4b15 ldr r3, [pc, #84] @ (801d6ac <tcp_input+0x814>)
  72625. 801d658: 9300 str r3, [sp, #0]
  72626. 801d65a: 4b15 ldr r3, [pc, #84] @ (801d6b0 <tcp_input+0x818>)
  72627. 801d65c: 4602 mov r2, r0
  72628. 801d65e: 2000 movs r0, #0
  72629. 801d660: f003 fce2 bl 8021028 <tcp_rst>
  72630. pbuf_free(p);
  72631. 801d664: 6878 ldr r0, [r7, #4]
  72632. 801d666: f7fd fb31 bl 801accc <pbuf_free>
  72633. return;
  72634. 801d66a: e00c b.n 801d686 <tcp_input+0x7ee>
  72635. goto dropped;
  72636. 801d66c: bf00 nop
  72637. 801d66e: e006 b.n 801d67e <tcp_input+0x7e6>
  72638. goto dropped;
  72639. 801d670: bf00 nop
  72640. 801d672: e004 b.n 801d67e <tcp_input+0x7e6>
  72641. goto dropped;
  72642. 801d674: bf00 nop
  72643. 801d676: e002 b.n 801d67e <tcp_input+0x7e6>
  72644. goto dropped;
  72645. 801d678: bf00 nop
  72646. 801d67a: e000 b.n 801d67e <tcp_input+0x7e6>
  72647. goto dropped;
  72648. 801d67c: bf00 nop
  72649. dropped:
  72650. TCP_STATS_INC(tcp.drop);
  72651. MIB2_STATS_INC(mib2.tcpinerrs);
  72652. pbuf_free(p);
  72653. 801d67e: 6878 ldr r0, [r7, #4]
  72654. 801d680: f7fd fb24 bl 801accc <pbuf_free>
  72655. 801d684: e000 b.n 801d688 <tcp_input+0x7f0>
  72656. return;
  72657. 801d686: bf00 nop
  72658. }
  72659. 801d688: 3724 adds r7, #36 @ 0x24
  72660. 801d68a: 46bd mov sp, r7
  72661. 801d68c: bd90 pop {r4, r7, pc}
  72662. 801d68e: bf00 nop
  72663. 801d690: 2402afa8 .word 0x2402afa8
  72664. 801d694: 2402afa4 .word 0x2402afa4
  72665. 801d698: 2402af70 .word 0x2402af70
  72666. 801d69c: 2402af84 .word 0x2402af84
  72667. 801d6a0: 2402af98 .word 0x2402af98
  72668. 801d6a4: 2402af9e .word 0x2402af9e
  72669. 801d6a8: 2402af94 .word 0x2402af94
  72670. 801d6ac: 24024418 .word 0x24024418
  72671. 801d6b0: 2402441c .word 0x2402441c
  72672. 0801d6b4 <tcp_input_delayed_close>:
  72673. * any more.
  72674. * @returns 1 if the pcb has been closed and deallocated, 0 otherwise
  72675. */
  72676. static int
  72677. tcp_input_delayed_close(struct tcp_pcb *pcb)
  72678. {
  72679. 801d6b4: b580 push {r7, lr}
  72680. 801d6b6: b082 sub sp, #8
  72681. 801d6b8: af00 add r7, sp, #0
  72682. 801d6ba: 6078 str r0, [r7, #4]
  72683. LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL);
  72684. 801d6bc: 687b ldr r3, [r7, #4]
  72685. 801d6be: 2b00 cmp r3, #0
  72686. 801d6c0: d106 bne.n 801d6d0 <tcp_input_delayed_close+0x1c>
  72687. 801d6c2: 4b17 ldr r3, [pc, #92] @ (801d720 <tcp_input_delayed_close+0x6c>)
  72688. 801d6c4: f240 225a movw r2, #602 @ 0x25a
  72689. 801d6c8: 4916 ldr r1, [pc, #88] @ (801d724 <tcp_input_delayed_close+0x70>)
  72690. 801d6ca: 4817 ldr r0, [pc, #92] @ (801d728 <tcp_input_delayed_close+0x74>)
  72691. 801d6cc: f00c fd76 bl 802a1bc <iprintf>
  72692. if (recv_flags & TF_CLOSED) {
  72693. 801d6d0: 4b16 ldr r3, [pc, #88] @ (801d72c <tcp_input_delayed_close+0x78>)
  72694. 801d6d2: 781b ldrb r3, [r3, #0]
  72695. 801d6d4: f003 0310 and.w r3, r3, #16
  72696. 801d6d8: 2b00 cmp r3, #0
  72697. 801d6da: d01c beq.n 801d716 <tcp_input_delayed_close+0x62>
  72698. /* The connection has been closed and we will deallocate the
  72699. PCB. */
  72700. if (!(pcb->flags & TF_RXCLOSED)) {
  72701. 801d6dc: 687b ldr r3, [r7, #4]
  72702. 801d6de: 8b5b ldrh r3, [r3, #26]
  72703. 801d6e0: f003 0310 and.w r3, r3, #16
  72704. 801d6e4: 2b00 cmp r3, #0
  72705. 801d6e6: d10d bne.n 801d704 <tcp_input_delayed_close+0x50>
  72706. /* Connection closed although the application has only shut down the
  72707. tx side: call the PCB's err callback and indicate the closure to
  72708. ensure the application doesn't continue using the PCB. */
  72709. TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_CLSD);
  72710. 801d6e8: 687b ldr r3, [r7, #4]
  72711. 801d6ea: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  72712. 801d6ee: 2b00 cmp r3, #0
  72713. 801d6f0: d008 beq.n 801d704 <tcp_input_delayed_close+0x50>
  72714. 801d6f2: 687b ldr r3, [r7, #4]
  72715. 801d6f4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  72716. 801d6f8: 687a ldr r2, [r7, #4]
  72717. 801d6fa: 6912 ldr r2, [r2, #16]
  72718. 801d6fc: f06f 010e mvn.w r1, #14
  72719. 801d700: 4610 mov r0, r2
  72720. 801d702: 4798 blx r3
  72721. }
  72722. tcp_pcb_remove(&tcp_active_pcbs, pcb);
  72723. 801d704: 6879 ldr r1, [r7, #4]
  72724. 801d706: 480a ldr r0, [pc, #40] @ (801d730 <tcp_input_delayed_close+0x7c>)
  72725. 801d708: f7ff fa4e bl 801cba8 <tcp_pcb_remove>
  72726. tcp_free(pcb);
  72727. 801d70c: 6878 ldr r0, [r7, #4]
  72728. 801d70e: f7fd fd99 bl 801b244 <tcp_free>
  72729. return 1;
  72730. 801d712: 2301 movs r3, #1
  72731. 801d714: e000 b.n 801d718 <tcp_input_delayed_close+0x64>
  72732. }
  72733. return 0;
  72734. 801d716: 2300 movs r3, #0
  72735. }
  72736. 801d718: 4618 mov r0, r3
  72737. 801d71a: 3708 adds r7, #8
  72738. 801d71c: 46bd mov sp, r7
  72739. 801d71e: bd80 pop {r7, pc}
  72740. 801d720: 0802f5a4 .word 0x0802f5a4
  72741. 801d724: 0802f774 .word 0x0802f774
  72742. 801d728: 0802f5f0 .word 0x0802f5f0
  72743. 801d72c: 2402afa1 .word 0x2402afa1
  72744. 801d730: 2402af64 .word 0x2402af64
  72745. 0801d734 <tcp_listen_input>:
  72746. * @note the segment which arrived is saved in global variables, therefore only the pcb
  72747. * involved is passed as a parameter to this function
  72748. */
  72749. static void
  72750. tcp_listen_input(struct tcp_pcb_listen *pcb)
  72751. {
  72752. 801d734: b590 push {r4, r7, lr}
  72753. 801d736: b08b sub sp, #44 @ 0x2c
  72754. 801d738: af04 add r7, sp, #16
  72755. 801d73a: 6078 str r0, [r7, #4]
  72756. struct tcp_pcb *npcb;
  72757. u32_t iss;
  72758. err_t rc;
  72759. if (flags & TCP_RST) {
  72760. 801d73c: 4b6f ldr r3, [pc, #444] @ (801d8fc <tcp_listen_input+0x1c8>)
  72761. 801d73e: 781b ldrb r3, [r3, #0]
  72762. 801d740: f003 0304 and.w r3, r3, #4
  72763. 801d744: 2b00 cmp r3, #0
  72764. 801d746: f040 80d2 bne.w 801d8ee <tcp_listen_input+0x1ba>
  72765. /* An incoming RST should be ignored. Return. */
  72766. return;
  72767. }
  72768. LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL);
  72769. 801d74a: 687b ldr r3, [r7, #4]
  72770. 801d74c: 2b00 cmp r3, #0
  72771. 801d74e: d106 bne.n 801d75e <tcp_listen_input+0x2a>
  72772. 801d750: 4b6b ldr r3, [pc, #428] @ (801d900 <tcp_listen_input+0x1cc>)
  72773. 801d752: f240 2281 movw r2, #641 @ 0x281
  72774. 801d756: 496b ldr r1, [pc, #428] @ (801d904 <tcp_listen_input+0x1d0>)
  72775. 801d758: 486b ldr r0, [pc, #428] @ (801d908 <tcp_listen_input+0x1d4>)
  72776. 801d75a: f00c fd2f bl 802a1bc <iprintf>
  72777. /* In the LISTEN state, we check for incoming SYN segments,
  72778. creates a new PCB, and responds with a SYN|ACK. */
  72779. if (flags & TCP_ACK) {
  72780. 801d75e: 4b67 ldr r3, [pc, #412] @ (801d8fc <tcp_listen_input+0x1c8>)
  72781. 801d760: 781b ldrb r3, [r3, #0]
  72782. 801d762: f003 0310 and.w r3, r3, #16
  72783. 801d766: 2b00 cmp r3, #0
  72784. 801d768: d019 beq.n 801d79e <tcp_listen_input+0x6a>
  72785. /* For incoming segments with the ACK flag set, respond with a
  72786. RST. */
  72787. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_listen_input: ACK in LISTEN, sending reset\n"));
  72788. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72789. 801d76a: 4b68 ldr r3, [pc, #416] @ (801d90c <tcp_listen_input+0x1d8>)
  72790. 801d76c: 6819 ldr r1, [r3, #0]
  72791. 801d76e: 4b68 ldr r3, [pc, #416] @ (801d910 <tcp_listen_input+0x1dc>)
  72792. 801d770: 881b ldrh r3, [r3, #0]
  72793. 801d772: 461a mov r2, r3
  72794. 801d774: 4b67 ldr r3, [pc, #412] @ (801d914 <tcp_listen_input+0x1e0>)
  72795. 801d776: 681b ldr r3, [r3, #0]
  72796. 801d778: 18d0 adds r0, r2, r3
  72797. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72798. 801d77a: 4b67 ldr r3, [pc, #412] @ (801d918 <tcp_listen_input+0x1e4>)
  72799. 801d77c: 681b ldr r3, [r3, #0]
  72800. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72801. 801d77e: 885b ldrh r3, [r3, #2]
  72802. 801d780: b29b uxth r3, r3
  72803. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  72804. 801d782: 4a65 ldr r2, [pc, #404] @ (801d918 <tcp_listen_input+0x1e4>)
  72805. 801d784: 6812 ldr r2, [r2, #0]
  72806. tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  72807. 801d786: 8812 ldrh r2, [r2, #0]
  72808. 801d788: b292 uxth r2, r2
  72809. 801d78a: 9202 str r2, [sp, #8]
  72810. 801d78c: 9301 str r3, [sp, #4]
  72811. 801d78e: 4b63 ldr r3, [pc, #396] @ (801d91c <tcp_listen_input+0x1e8>)
  72812. 801d790: 9300 str r3, [sp, #0]
  72813. 801d792: 4b63 ldr r3, [pc, #396] @ (801d920 <tcp_listen_input+0x1ec>)
  72814. 801d794: 4602 mov r2, r0
  72815. 801d796: 6878 ldr r0, [r7, #4]
  72816. 801d798: f003 fc46 bl 8021028 <tcp_rst>
  72817. tcp_abandon(npcb, 0);
  72818. return;
  72819. }
  72820. tcp_output(npcb);
  72821. }
  72822. return;
  72823. 801d79c: e0a9 b.n 801d8f2 <tcp_listen_input+0x1be>
  72824. } else if (flags & TCP_SYN) {
  72825. 801d79e: 4b57 ldr r3, [pc, #348] @ (801d8fc <tcp_listen_input+0x1c8>)
  72826. 801d7a0: 781b ldrb r3, [r3, #0]
  72827. 801d7a2: f003 0302 and.w r3, r3, #2
  72828. 801d7a6: 2b00 cmp r3, #0
  72829. 801d7a8: f000 80a3 beq.w 801d8f2 <tcp_listen_input+0x1be>
  72830. npcb = tcp_alloc(pcb->prio);
  72831. 801d7ac: 687b ldr r3, [r7, #4]
  72832. 801d7ae: 7d5b ldrb r3, [r3, #21]
  72833. 801d7b0: 4618 mov r0, r3
  72834. 801d7b2: f7ff f84d bl 801c850 <tcp_alloc>
  72835. 801d7b6: 6178 str r0, [r7, #20]
  72836. if (npcb == NULL) {
  72837. 801d7b8: 697b ldr r3, [r7, #20]
  72838. 801d7ba: 2b00 cmp r3, #0
  72839. 801d7bc: d111 bne.n 801d7e2 <tcp_listen_input+0xae>
  72840. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  72841. 801d7be: 687b ldr r3, [r7, #4]
  72842. 801d7c0: 699b ldr r3, [r3, #24]
  72843. 801d7c2: 2b00 cmp r3, #0
  72844. 801d7c4: d00a beq.n 801d7dc <tcp_listen_input+0xa8>
  72845. 801d7c6: 687b ldr r3, [r7, #4]
  72846. 801d7c8: 699b ldr r3, [r3, #24]
  72847. 801d7ca: 687a ldr r2, [r7, #4]
  72848. 801d7cc: 6910 ldr r0, [r2, #16]
  72849. 801d7ce: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  72850. 801d7d2: 2100 movs r1, #0
  72851. 801d7d4: 4798 blx r3
  72852. 801d7d6: 4603 mov r3, r0
  72853. 801d7d8: 73bb strb r3, [r7, #14]
  72854. return;
  72855. 801d7da: e08b b.n 801d8f4 <tcp_listen_input+0x1c0>
  72856. TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err);
  72857. 801d7dc: 23f0 movs r3, #240 @ 0xf0
  72858. 801d7de: 73bb strb r3, [r7, #14]
  72859. return;
  72860. 801d7e0: e088 b.n 801d8f4 <tcp_listen_input+0x1c0>
  72861. ip_addr_copy(npcb->local_ip, *ip_current_dest_addr());
  72862. 801d7e2: 4b50 ldr r3, [pc, #320] @ (801d924 <tcp_listen_input+0x1f0>)
  72863. 801d7e4: 695a ldr r2, [r3, #20]
  72864. 801d7e6: 697b ldr r3, [r7, #20]
  72865. 801d7e8: 601a str r2, [r3, #0]
  72866. ip_addr_copy(npcb->remote_ip, *ip_current_src_addr());
  72867. 801d7ea: 4b4e ldr r3, [pc, #312] @ (801d924 <tcp_listen_input+0x1f0>)
  72868. 801d7ec: 691a ldr r2, [r3, #16]
  72869. 801d7ee: 697b ldr r3, [r7, #20]
  72870. 801d7f0: 605a str r2, [r3, #4]
  72871. npcb->local_port = pcb->local_port;
  72872. 801d7f2: 687b ldr r3, [r7, #4]
  72873. 801d7f4: 8ada ldrh r2, [r3, #22]
  72874. 801d7f6: 697b ldr r3, [r7, #20]
  72875. 801d7f8: 82da strh r2, [r3, #22]
  72876. npcb->remote_port = tcphdr->src;
  72877. 801d7fa: 4b47 ldr r3, [pc, #284] @ (801d918 <tcp_listen_input+0x1e4>)
  72878. 801d7fc: 681b ldr r3, [r3, #0]
  72879. 801d7fe: 881b ldrh r3, [r3, #0]
  72880. 801d800: b29a uxth r2, r3
  72881. 801d802: 697b ldr r3, [r7, #20]
  72882. 801d804: 831a strh r2, [r3, #24]
  72883. npcb->state = SYN_RCVD;
  72884. 801d806: 697b ldr r3, [r7, #20]
  72885. 801d808: 2203 movs r2, #3
  72886. 801d80a: 751a strb r2, [r3, #20]
  72887. npcb->rcv_nxt = seqno + 1;
  72888. 801d80c: 4b41 ldr r3, [pc, #260] @ (801d914 <tcp_listen_input+0x1e0>)
  72889. 801d80e: 681b ldr r3, [r3, #0]
  72890. 801d810: 1c5a adds r2, r3, #1
  72891. 801d812: 697b ldr r3, [r7, #20]
  72892. 801d814: 625a str r2, [r3, #36] @ 0x24
  72893. npcb->rcv_ann_right_edge = npcb->rcv_nxt;
  72894. 801d816: 697b ldr r3, [r7, #20]
  72895. 801d818: 6a5a ldr r2, [r3, #36] @ 0x24
  72896. 801d81a: 697b ldr r3, [r7, #20]
  72897. 801d81c: 62da str r2, [r3, #44] @ 0x2c
  72898. iss = tcp_next_iss(npcb);
  72899. 801d81e: 6978 ldr r0, [r7, #20]
  72900. 801d820: f7ff fa56 bl 801ccd0 <tcp_next_iss>
  72901. 801d824: 6138 str r0, [r7, #16]
  72902. npcb->snd_wl2 = iss;
  72903. 801d826: 697b ldr r3, [r7, #20]
  72904. 801d828: 693a ldr r2, [r7, #16]
  72905. 801d82a: 659a str r2, [r3, #88] @ 0x58
  72906. npcb->snd_nxt = iss;
  72907. 801d82c: 697b ldr r3, [r7, #20]
  72908. 801d82e: 693a ldr r2, [r7, #16]
  72909. 801d830: 651a str r2, [r3, #80] @ 0x50
  72910. npcb->lastack = iss;
  72911. 801d832: 697b ldr r3, [r7, #20]
  72912. 801d834: 693a ldr r2, [r7, #16]
  72913. 801d836: 645a str r2, [r3, #68] @ 0x44
  72914. npcb->snd_lbb = iss;
  72915. 801d838: 697b ldr r3, [r7, #20]
  72916. 801d83a: 693a ldr r2, [r7, #16]
  72917. 801d83c: 65da str r2, [r3, #92] @ 0x5c
  72918. npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */
  72919. 801d83e: 4b35 ldr r3, [pc, #212] @ (801d914 <tcp_listen_input+0x1e0>)
  72920. 801d840: 681b ldr r3, [r3, #0]
  72921. 801d842: 1e5a subs r2, r3, #1
  72922. 801d844: 697b ldr r3, [r7, #20]
  72923. 801d846: 655a str r2, [r3, #84] @ 0x54
  72924. npcb->callback_arg = pcb->callback_arg;
  72925. 801d848: 687b ldr r3, [r7, #4]
  72926. 801d84a: 691a ldr r2, [r3, #16]
  72927. 801d84c: 697b ldr r3, [r7, #20]
  72928. 801d84e: 611a str r2, [r3, #16]
  72929. npcb->listener = pcb;
  72930. 801d850: 697b ldr r3, [r7, #20]
  72931. 801d852: 687a ldr r2, [r7, #4]
  72932. 801d854: 67da str r2, [r3, #124] @ 0x7c
  72933. npcb->so_options = pcb->so_options & SOF_INHERITED;
  72934. 801d856: 687b ldr r3, [r7, #4]
  72935. 801d858: 7a5b ldrb r3, [r3, #9]
  72936. 801d85a: f003 030c and.w r3, r3, #12
  72937. 801d85e: b2da uxtb r2, r3
  72938. 801d860: 697b ldr r3, [r7, #20]
  72939. 801d862: 725a strb r2, [r3, #9]
  72940. npcb->netif_idx = pcb->netif_idx;
  72941. 801d864: 687b ldr r3, [r7, #4]
  72942. 801d866: 7a1a ldrb r2, [r3, #8]
  72943. 801d868: 697b ldr r3, [r7, #20]
  72944. 801d86a: 721a strb r2, [r3, #8]
  72945. TCP_REG_ACTIVE(npcb);
  72946. 801d86c: 4b2e ldr r3, [pc, #184] @ (801d928 <tcp_listen_input+0x1f4>)
  72947. 801d86e: 681a ldr r2, [r3, #0]
  72948. 801d870: 697b ldr r3, [r7, #20]
  72949. 801d872: 60da str r2, [r3, #12]
  72950. 801d874: 4a2c ldr r2, [pc, #176] @ (801d928 <tcp_listen_input+0x1f4>)
  72951. 801d876: 697b ldr r3, [r7, #20]
  72952. 801d878: 6013 str r3, [r2, #0]
  72953. 801d87a: f003 fd97 bl 80213ac <tcp_timer_needed>
  72954. 801d87e: 4b2b ldr r3, [pc, #172] @ (801d92c <tcp_listen_input+0x1f8>)
  72955. 801d880: 2201 movs r2, #1
  72956. 801d882: 701a strb r2, [r3, #0]
  72957. tcp_parseopt(npcb);
  72958. 801d884: 6978 ldr r0, [r7, #20]
  72959. 801d886: f001 fd8b bl 801f3a0 <tcp_parseopt>
  72960. npcb->snd_wnd = tcphdr->wnd;
  72961. 801d88a: 4b23 ldr r3, [pc, #140] @ (801d918 <tcp_listen_input+0x1e4>)
  72962. 801d88c: 681b ldr r3, [r3, #0]
  72963. 801d88e: 89db ldrh r3, [r3, #14]
  72964. 801d890: b29a uxth r2, r3
  72965. 801d892: 697b ldr r3, [r7, #20]
  72966. 801d894: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  72967. npcb->snd_wnd_max = npcb->snd_wnd;
  72968. 801d898: 697b ldr r3, [r7, #20]
  72969. 801d89a: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  72970. 801d89e: 697b ldr r3, [r7, #20]
  72971. 801d8a0: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  72972. npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
  72973. 801d8a4: 697b ldr r3, [r7, #20]
  72974. 801d8a6: 8e5c ldrh r4, [r3, #50] @ 0x32
  72975. 801d8a8: 697b ldr r3, [r7, #20]
  72976. 801d8aa: 3304 adds r3, #4
  72977. 801d8ac: 4618 mov r0, r3
  72978. 801d8ae: f007 fc77 bl 80251a0 <ip4_route>
  72979. 801d8b2: 4601 mov r1, r0
  72980. 801d8b4: 697b ldr r3, [r7, #20]
  72981. 801d8b6: 3304 adds r3, #4
  72982. 801d8b8: 461a mov r2, r3
  72983. 801d8ba: 4620 mov r0, r4
  72984. 801d8bc: f7ff fa2e bl 801cd1c <tcp_eff_send_mss_netif>
  72985. 801d8c0: 4603 mov r3, r0
  72986. 801d8c2: 461a mov r2, r3
  72987. 801d8c4: 697b ldr r3, [r7, #20]
  72988. 801d8c6: 865a strh r2, [r3, #50] @ 0x32
  72989. rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK);
  72990. 801d8c8: 2112 movs r1, #18
  72991. 801d8ca: 6978 ldr r0, [r7, #20]
  72992. 801d8cc: f002 fcfc bl 80202c8 <tcp_enqueue_flags>
  72993. 801d8d0: 4603 mov r3, r0
  72994. 801d8d2: 73fb strb r3, [r7, #15]
  72995. if (rc != ERR_OK) {
  72996. 801d8d4: f997 300f ldrsb.w r3, [r7, #15]
  72997. 801d8d8: 2b00 cmp r3, #0
  72998. 801d8da: d004 beq.n 801d8e6 <tcp_listen_input+0x1b2>
  72999. tcp_abandon(npcb, 0);
  73000. 801d8dc: 2100 movs r1, #0
  73001. 801d8de: 6978 ldr r0, [r7, #20]
  73002. 801d8e0: f7fd ff3a bl 801b758 <tcp_abandon>
  73003. return;
  73004. 801d8e4: e006 b.n 801d8f4 <tcp_listen_input+0x1c0>
  73005. tcp_output(npcb);
  73006. 801d8e6: 6978 ldr r0, [r7, #20]
  73007. 801d8e8: f002 fddc bl 80204a4 <tcp_output>
  73008. return;
  73009. 801d8ec: e001 b.n 801d8f2 <tcp_listen_input+0x1be>
  73010. return;
  73011. 801d8ee: bf00 nop
  73012. 801d8f0: e000 b.n 801d8f4 <tcp_listen_input+0x1c0>
  73013. return;
  73014. 801d8f2: bf00 nop
  73015. }
  73016. 801d8f4: 371c adds r7, #28
  73017. 801d8f6: 46bd mov sp, r7
  73018. 801d8f8: bd90 pop {r4, r7, pc}
  73019. 801d8fa: bf00 nop
  73020. 801d8fc: 2402afa0 .word 0x2402afa0
  73021. 801d900: 0802f5a4 .word 0x0802f5a4
  73022. 801d904: 0802f79c .word 0x0802f79c
  73023. 801d908: 0802f5f0 .word 0x0802f5f0
  73024. 801d90c: 2402af98 .word 0x2402af98
  73025. 801d910: 2402af9e .word 0x2402af9e
  73026. 801d914: 2402af94 .word 0x2402af94
  73027. 801d918: 2402af84 .word 0x2402af84
  73028. 801d91c: 24024418 .word 0x24024418
  73029. 801d920: 2402441c .word 0x2402441c
  73030. 801d924: 24024408 .word 0x24024408
  73031. 801d928: 2402af64 .word 0x2402af64
  73032. 801d92c: 2402af6c .word 0x2402af6c
  73033. 0801d930 <tcp_timewait_input>:
  73034. * @note the segment which arrived is saved in global variables, therefore only the pcb
  73035. * involved is passed as a parameter to this function
  73036. */
  73037. static void
  73038. tcp_timewait_input(struct tcp_pcb *pcb)
  73039. {
  73040. 801d930: b580 push {r7, lr}
  73041. 801d932: b086 sub sp, #24
  73042. 801d934: af04 add r7, sp, #16
  73043. 801d936: 6078 str r0, [r7, #4]
  73044. /* RFC 1337: in TIME_WAIT, ignore RST and ACK FINs + any 'acceptable' segments */
  73045. /* RFC 793 3.9 Event Processing - Segment Arrives:
  73046. * - first check sequence number - we skip that one in TIME_WAIT (always
  73047. * acceptable since we only send ACKs)
  73048. * - second check the RST bit (... return) */
  73049. if (flags & TCP_RST) {
  73050. 801d938: 4b2f ldr r3, [pc, #188] @ (801d9f8 <tcp_timewait_input+0xc8>)
  73051. 801d93a: 781b ldrb r3, [r3, #0]
  73052. 801d93c: f003 0304 and.w r3, r3, #4
  73053. 801d940: 2b00 cmp r3, #0
  73054. 801d942: d153 bne.n 801d9ec <tcp_timewait_input+0xbc>
  73055. return;
  73056. }
  73057. LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL);
  73058. 801d944: 687b ldr r3, [r7, #4]
  73059. 801d946: 2b00 cmp r3, #0
  73060. 801d948: d106 bne.n 801d958 <tcp_timewait_input+0x28>
  73061. 801d94a: 4b2c ldr r3, [pc, #176] @ (801d9fc <tcp_timewait_input+0xcc>)
  73062. 801d94c: f240 22ee movw r2, #750 @ 0x2ee
  73063. 801d950: 492b ldr r1, [pc, #172] @ (801da00 <tcp_timewait_input+0xd0>)
  73064. 801d952: 482c ldr r0, [pc, #176] @ (801da04 <tcp_timewait_input+0xd4>)
  73065. 801d954: f00c fc32 bl 802a1bc <iprintf>
  73066. /* - fourth, check the SYN bit, */
  73067. if (flags & TCP_SYN) {
  73068. 801d958: 4b27 ldr r3, [pc, #156] @ (801d9f8 <tcp_timewait_input+0xc8>)
  73069. 801d95a: 781b ldrb r3, [r3, #0]
  73070. 801d95c: f003 0302 and.w r3, r3, #2
  73071. 801d960: 2b00 cmp r3, #0
  73072. 801d962: d02a beq.n 801d9ba <tcp_timewait_input+0x8a>
  73073. /* If an incoming segment is not acceptable, an acknowledgment
  73074. should be sent in reply */
  73075. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd)) {
  73076. 801d964: 4b28 ldr r3, [pc, #160] @ (801da08 <tcp_timewait_input+0xd8>)
  73077. 801d966: 681a ldr r2, [r3, #0]
  73078. 801d968: 687b ldr r3, [r7, #4]
  73079. 801d96a: 6a5b ldr r3, [r3, #36] @ 0x24
  73080. 801d96c: 1ad3 subs r3, r2, r3
  73081. 801d96e: 2b00 cmp r3, #0
  73082. 801d970: db2d blt.n 801d9ce <tcp_timewait_input+0x9e>
  73083. 801d972: 4b25 ldr r3, [pc, #148] @ (801da08 <tcp_timewait_input+0xd8>)
  73084. 801d974: 681a ldr r2, [r3, #0]
  73085. 801d976: 687b ldr r3, [r7, #4]
  73086. 801d978: 6a5b ldr r3, [r3, #36] @ 0x24
  73087. 801d97a: 6879 ldr r1, [r7, #4]
  73088. 801d97c: 8d09 ldrh r1, [r1, #40] @ 0x28
  73089. 801d97e: 440b add r3, r1
  73090. 801d980: 1ad3 subs r3, r2, r3
  73091. 801d982: 2b00 cmp r3, #0
  73092. 801d984: dc23 bgt.n 801d9ce <tcp_timewait_input+0x9e>
  73093. /* If the SYN is in the window it is an error, send a reset */
  73094. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73095. 801d986: 4b21 ldr r3, [pc, #132] @ (801da0c <tcp_timewait_input+0xdc>)
  73096. 801d988: 6819 ldr r1, [r3, #0]
  73097. 801d98a: 4b21 ldr r3, [pc, #132] @ (801da10 <tcp_timewait_input+0xe0>)
  73098. 801d98c: 881b ldrh r3, [r3, #0]
  73099. 801d98e: 461a mov r2, r3
  73100. 801d990: 4b1d ldr r3, [pc, #116] @ (801da08 <tcp_timewait_input+0xd8>)
  73101. 801d992: 681b ldr r3, [r3, #0]
  73102. 801d994: 18d0 adds r0, r2, r3
  73103. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73104. 801d996: 4b1f ldr r3, [pc, #124] @ (801da14 <tcp_timewait_input+0xe4>)
  73105. 801d998: 681b ldr r3, [r3, #0]
  73106. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73107. 801d99a: 885b ldrh r3, [r3, #2]
  73108. 801d99c: b29b uxth r3, r3
  73109. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73110. 801d99e: 4a1d ldr r2, [pc, #116] @ (801da14 <tcp_timewait_input+0xe4>)
  73111. 801d9a0: 6812 ldr r2, [r2, #0]
  73112. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73113. 801d9a2: 8812 ldrh r2, [r2, #0]
  73114. 801d9a4: b292 uxth r2, r2
  73115. 801d9a6: 9202 str r2, [sp, #8]
  73116. 801d9a8: 9301 str r3, [sp, #4]
  73117. 801d9aa: 4b1b ldr r3, [pc, #108] @ (801da18 <tcp_timewait_input+0xe8>)
  73118. 801d9ac: 9300 str r3, [sp, #0]
  73119. 801d9ae: 4b1b ldr r3, [pc, #108] @ (801da1c <tcp_timewait_input+0xec>)
  73120. 801d9b0: 4602 mov r2, r0
  73121. 801d9b2: 6878 ldr r0, [r7, #4]
  73122. 801d9b4: f003 fb38 bl 8021028 <tcp_rst>
  73123. return;
  73124. 801d9b8: e01b b.n 801d9f2 <tcp_timewait_input+0xc2>
  73125. }
  73126. } else if (flags & TCP_FIN) {
  73127. 801d9ba: 4b0f ldr r3, [pc, #60] @ (801d9f8 <tcp_timewait_input+0xc8>)
  73128. 801d9bc: 781b ldrb r3, [r3, #0]
  73129. 801d9be: f003 0301 and.w r3, r3, #1
  73130. 801d9c2: 2b00 cmp r3, #0
  73131. 801d9c4: d003 beq.n 801d9ce <tcp_timewait_input+0x9e>
  73132. /* - eighth, check the FIN bit: Remain in the TIME-WAIT state.
  73133. Restart the 2 MSL time-wait timeout.*/
  73134. pcb->tmr = tcp_ticks;
  73135. 801d9c6: 4b16 ldr r3, [pc, #88] @ (801da20 <tcp_timewait_input+0xf0>)
  73136. 801d9c8: 681a ldr r2, [r3, #0]
  73137. 801d9ca: 687b ldr r3, [r7, #4]
  73138. 801d9cc: 621a str r2, [r3, #32]
  73139. }
  73140. if ((tcplen > 0)) {
  73141. 801d9ce: 4b10 ldr r3, [pc, #64] @ (801da10 <tcp_timewait_input+0xe0>)
  73142. 801d9d0: 881b ldrh r3, [r3, #0]
  73143. 801d9d2: 2b00 cmp r3, #0
  73144. 801d9d4: d00c beq.n 801d9f0 <tcp_timewait_input+0xc0>
  73145. /* Acknowledge data, FIN or out-of-window SYN */
  73146. tcp_ack_now(pcb);
  73147. 801d9d6: 687b ldr r3, [r7, #4]
  73148. 801d9d8: 8b5b ldrh r3, [r3, #26]
  73149. 801d9da: f043 0302 orr.w r3, r3, #2
  73150. 801d9de: b29a uxth r2, r3
  73151. 801d9e0: 687b ldr r3, [r7, #4]
  73152. 801d9e2: 835a strh r2, [r3, #26]
  73153. tcp_output(pcb);
  73154. 801d9e4: 6878 ldr r0, [r7, #4]
  73155. 801d9e6: f002 fd5d bl 80204a4 <tcp_output>
  73156. }
  73157. return;
  73158. 801d9ea: e001 b.n 801d9f0 <tcp_timewait_input+0xc0>
  73159. return;
  73160. 801d9ec: bf00 nop
  73161. 801d9ee: e000 b.n 801d9f2 <tcp_timewait_input+0xc2>
  73162. return;
  73163. 801d9f0: bf00 nop
  73164. }
  73165. 801d9f2: 3708 adds r7, #8
  73166. 801d9f4: 46bd mov sp, r7
  73167. 801d9f6: bd80 pop {r7, pc}
  73168. 801d9f8: 2402afa0 .word 0x2402afa0
  73169. 801d9fc: 0802f5a4 .word 0x0802f5a4
  73170. 801da00: 0802f7bc .word 0x0802f7bc
  73171. 801da04: 0802f5f0 .word 0x0802f5f0
  73172. 801da08: 2402af94 .word 0x2402af94
  73173. 801da0c: 2402af98 .word 0x2402af98
  73174. 801da10: 2402af9e .word 0x2402af9e
  73175. 801da14: 2402af84 .word 0x2402af84
  73176. 801da18: 24024418 .word 0x24024418
  73177. 801da1c: 2402441c .word 0x2402441c
  73178. 801da20: 2402af58 .word 0x2402af58
  73179. 0801da24 <tcp_process>:
  73180. * @note the segment which arrived is saved in global variables, therefore only the pcb
  73181. * involved is passed as a parameter to this function
  73182. */
  73183. static err_t
  73184. tcp_process(struct tcp_pcb *pcb)
  73185. {
  73186. 801da24: b590 push {r4, r7, lr}
  73187. 801da26: b08d sub sp, #52 @ 0x34
  73188. 801da28: af04 add r7, sp, #16
  73189. 801da2a: 6078 str r0, [r7, #4]
  73190. struct tcp_seg *rseg;
  73191. u8_t acceptable = 0;
  73192. 801da2c: 2300 movs r3, #0
  73193. 801da2e: 77fb strb r3, [r7, #31]
  73194. err_t err;
  73195. err = ERR_OK;
  73196. 801da30: 2300 movs r3, #0
  73197. 801da32: 77bb strb r3, [r7, #30]
  73198. LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL);
  73199. 801da34: 687b ldr r3, [r7, #4]
  73200. 801da36: 2b00 cmp r3, #0
  73201. 801da38: d106 bne.n 801da48 <tcp_process+0x24>
  73202. 801da3a: 4b9d ldr r3, [pc, #628] @ (801dcb0 <tcp_process+0x28c>)
  73203. 801da3c: f44f 7247 mov.w r2, #796 @ 0x31c
  73204. 801da40: 499c ldr r1, [pc, #624] @ (801dcb4 <tcp_process+0x290>)
  73205. 801da42: 489d ldr r0, [pc, #628] @ (801dcb8 <tcp_process+0x294>)
  73206. 801da44: f00c fbba bl 802a1bc <iprintf>
  73207. /* Process incoming RST segments. */
  73208. if (flags & TCP_RST) {
  73209. 801da48: 4b9c ldr r3, [pc, #624] @ (801dcbc <tcp_process+0x298>)
  73210. 801da4a: 781b ldrb r3, [r3, #0]
  73211. 801da4c: f003 0304 and.w r3, r3, #4
  73212. 801da50: 2b00 cmp r3, #0
  73213. 801da52: d04e beq.n 801daf2 <tcp_process+0xce>
  73214. /* First, determine if the reset is acceptable. */
  73215. if (pcb->state == SYN_SENT) {
  73216. 801da54: 687b ldr r3, [r7, #4]
  73217. 801da56: 7d1b ldrb r3, [r3, #20]
  73218. 801da58: 2b02 cmp r3, #2
  73219. 801da5a: d108 bne.n 801da6e <tcp_process+0x4a>
  73220. /* "In the SYN-SENT state (a RST received in response to an initial SYN),
  73221. the RST is acceptable if the ACK field acknowledges the SYN." */
  73222. if (ackno == pcb->snd_nxt) {
  73223. 801da5c: 687b ldr r3, [r7, #4]
  73224. 801da5e: 6d1a ldr r2, [r3, #80] @ 0x50
  73225. 801da60: 4b97 ldr r3, [pc, #604] @ (801dcc0 <tcp_process+0x29c>)
  73226. 801da62: 681b ldr r3, [r3, #0]
  73227. 801da64: 429a cmp r2, r3
  73228. 801da66: d123 bne.n 801dab0 <tcp_process+0x8c>
  73229. acceptable = 1;
  73230. 801da68: 2301 movs r3, #1
  73231. 801da6a: 77fb strb r3, [r7, #31]
  73232. 801da6c: e020 b.n 801dab0 <tcp_process+0x8c>
  73233. }
  73234. } else {
  73235. /* "In all states except SYN-SENT, all reset (RST) segments are validated
  73236. by checking their SEQ-fields." */
  73237. if (seqno == pcb->rcv_nxt) {
  73238. 801da6e: 687b ldr r3, [r7, #4]
  73239. 801da70: 6a5a ldr r2, [r3, #36] @ 0x24
  73240. 801da72: 4b94 ldr r3, [pc, #592] @ (801dcc4 <tcp_process+0x2a0>)
  73241. 801da74: 681b ldr r3, [r3, #0]
  73242. 801da76: 429a cmp r2, r3
  73243. 801da78: d102 bne.n 801da80 <tcp_process+0x5c>
  73244. acceptable = 1;
  73245. 801da7a: 2301 movs r3, #1
  73246. 801da7c: 77fb strb r3, [r7, #31]
  73247. 801da7e: e017 b.n 801dab0 <tcp_process+0x8c>
  73248. } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  73249. 801da80: 4b90 ldr r3, [pc, #576] @ (801dcc4 <tcp_process+0x2a0>)
  73250. 801da82: 681a ldr r2, [r3, #0]
  73251. 801da84: 687b ldr r3, [r7, #4]
  73252. 801da86: 6a5b ldr r3, [r3, #36] @ 0x24
  73253. 801da88: 1ad3 subs r3, r2, r3
  73254. 801da8a: 2b00 cmp r3, #0
  73255. 801da8c: db10 blt.n 801dab0 <tcp_process+0x8c>
  73256. 801da8e: 4b8d ldr r3, [pc, #564] @ (801dcc4 <tcp_process+0x2a0>)
  73257. 801da90: 681a ldr r2, [r3, #0]
  73258. 801da92: 687b ldr r3, [r7, #4]
  73259. 801da94: 6a5b ldr r3, [r3, #36] @ 0x24
  73260. 801da96: 6879 ldr r1, [r7, #4]
  73261. 801da98: 8d09 ldrh r1, [r1, #40] @ 0x28
  73262. 801da9a: 440b add r3, r1
  73263. 801da9c: 1ad3 subs r3, r2, r3
  73264. 801da9e: 2b00 cmp r3, #0
  73265. 801daa0: dc06 bgt.n 801dab0 <tcp_process+0x8c>
  73266. pcb->rcv_nxt + pcb->rcv_wnd)) {
  73267. /* If the sequence number is inside the window, we send a challenge ACK
  73268. and wait for a re-send with matching sequence number.
  73269. This follows RFC 5961 section 3.2 and addresses CVE-2004-0230
  73270. (RST spoofing attack), which is present in RFC 793 RST handling. */
  73271. tcp_ack_now(pcb);
  73272. 801daa2: 687b ldr r3, [r7, #4]
  73273. 801daa4: 8b5b ldrh r3, [r3, #26]
  73274. 801daa6: f043 0302 orr.w r3, r3, #2
  73275. 801daaa: b29a uxth r2, r3
  73276. 801daac: 687b ldr r3, [r7, #4]
  73277. 801daae: 835a strh r2, [r3, #26]
  73278. }
  73279. }
  73280. if (acceptable) {
  73281. 801dab0: 7ffb ldrb r3, [r7, #31]
  73282. 801dab2: 2b00 cmp r3, #0
  73283. 801dab4: d01b beq.n 801daee <tcp_process+0xca>
  73284. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n"));
  73285. LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED);
  73286. 801dab6: 687b ldr r3, [r7, #4]
  73287. 801dab8: 7d1b ldrb r3, [r3, #20]
  73288. 801daba: 2b00 cmp r3, #0
  73289. 801dabc: d106 bne.n 801dacc <tcp_process+0xa8>
  73290. 801dabe: 4b7c ldr r3, [pc, #496] @ (801dcb0 <tcp_process+0x28c>)
  73291. 801dac0: f44f 724e mov.w r2, #824 @ 0x338
  73292. 801dac4: 4980 ldr r1, [pc, #512] @ (801dcc8 <tcp_process+0x2a4>)
  73293. 801dac6: 487c ldr r0, [pc, #496] @ (801dcb8 <tcp_process+0x294>)
  73294. 801dac8: f00c fb78 bl 802a1bc <iprintf>
  73295. recv_flags |= TF_RESET;
  73296. 801dacc: 4b7f ldr r3, [pc, #508] @ (801dccc <tcp_process+0x2a8>)
  73297. 801dace: 781b ldrb r3, [r3, #0]
  73298. 801dad0: f043 0308 orr.w r3, r3, #8
  73299. 801dad4: b2da uxtb r2, r3
  73300. 801dad6: 4b7d ldr r3, [pc, #500] @ (801dccc <tcp_process+0x2a8>)
  73301. 801dad8: 701a strb r2, [r3, #0]
  73302. tcp_clear_flags(pcb, TF_ACK_DELAY);
  73303. 801dada: 687b ldr r3, [r7, #4]
  73304. 801dadc: 8b5b ldrh r3, [r3, #26]
  73305. 801dade: f023 0301 bic.w r3, r3, #1
  73306. 801dae2: b29a uxth r2, r3
  73307. 801dae4: 687b ldr r3, [r7, #4]
  73308. 801dae6: 835a strh r2, [r3, #26]
  73309. return ERR_RST;
  73310. 801dae8: f06f 030d mvn.w r3, #13
  73311. 801daec: e37a b.n 801e1e4 <tcp_process+0x7c0>
  73312. } else {
  73313. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  73314. seqno, pcb->rcv_nxt));
  73315. LWIP_DEBUGF(TCP_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n",
  73316. seqno, pcb->rcv_nxt));
  73317. return ERR_OK;
  73318. 801daee: 2300 movs r3, #0
  73319. 801daf0: e378 b.n 801e1e4 <tcp_process+0x7c0>
  73320. }
  73321. }
  73322. if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) {
  73323. 801daf2: 4b72 ldr r3, [pc, #456] @ (801dcbc <tcp_process+0x298>)
  73324. 801daf4: 781b ldrb r3, [r3, #0]
  73325. 801daf6: f003 0302 and.w r3, r3, #2
  73326. 801dafa: 2b00 cmp r3, #0
  73327. 801dafc: d010 beq.n 801db20 <tcp_process+0xfc>
  73328. 801dafe: 687b ldr r3, [r7, #4]
  73329. 801db00: 7d1b ldrb r3, [r3, #20]
  73330. 801db02: 2b02 cmp r3, #2
  73331. 801db04: d00c beq.n 801db20 <tcp_process+0xfc>
  73332. 801db06: 687b ldr r3, [r7, #4]
  73333. 801db08: 7d1b ldrb r3, [r3, #20]
  73334. 801db0a: 2b03 cmp r3, #3
  73335. 801db0c: d008 beq.n 801db20 <tcp_process+0xfc>
  73336. /* Cope with new connection attempt after remote end crashed */
  73337. tcp_ack_now(pcb);
  73338. 801db0e: 687b ldr r3, [r7, #4]
  73339. 801db10: 8b5b ldrh r3, [r3, #26]
  73340. 801db12: f043 0302 orr.w r3, r3, #2
  73341. 801db16: b29a uxth r2, r3
  73342. 801db18: 687b ldr r3, [r7, #4]
  73343. 801db1a: 835a strh r2, [r3, #26]
  73344. return ERR_OK;
  73345. 801db1c: 2300 movs r3, #0
  73346. 801db1e: e361 b.n 801e1e4 <tcp_process+0x7c0>
  73347. }
  73348. if ((pcb->flags & TF_RXCLOSED) == 0) {
  73349. 801db20: 687b ldr r3, [r7, #4]
  73350. 801db22: 8b5b ldrh r3, [r3, #26]
  73351. 801db24: f003 0310 and.w r3, r3, #16
  73352. 801db28: 2b00 cmp r3, #0
  73353. 801db2a: d103 bne.n 801db34 <tcp_process+0x110>
  73354. /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */
  73355. pcb->tmr = tcp_ticks;
  73356. 801db2c: 4b68 ldr r3, [pc, #416] @ (801dcd0 <tcp_process+0x2ac>)
  73357. 801db2e: 681a ldr r2, [r3, #0]
  73358. 801db30: 687b ldr r3, [r7, #4]
  73359. 801db32: 621a str r2, [r3, #32]
  73360. }
  73361. pcb->keep_cnt_sent = 0;
  73362. 801db34: 687b ldr r3, [r7, #4]
  73363. 801db36: 2200 movs r2, #0
  73364. 801db38: f883 209b strb.w r2, [r3, #155] @ 0x9b
  73365. pcb->persist_probe = 0;
  73366. 801db3c: 687b ldr r3, [r7, #4]
  73367. 801db3e: 2200 movs r2, #0
  73368. 801db40: f883 209a strb.w r2, [r3, #154] @ 0x9a
  73369. tcp_parseopt(pcb);
  73370. 801db44: 6878 ldr r0, [r7, #4]
  73371. 801db46: f001 fc2b bl 801f3a0 <tcp_parseopt>
  73372. /* Do different things depending on the TCP state. */
  73373. switch (pcb->state) {
  73374. 801db4a: 687b ldr r3, [r7, #4]
  73375. 801db4c: 7d1b ldrb r3, [r3, #20]
  73376. 801db4e: 3b02 subs r3, #2
  73377. 801db50: 2b07 cmp r3, #7
  73378. 801db52: f200 8337 bhi.w 801e1c4 <tcp_process+0x7a0>
  73379. 801db56: a201 add r2, pc, #4 @ (adr r2, 801db5c <tcp_process+0x138>)
  73380. 801db58: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  73381. 801db5c: 0801db7d .word 0x0801db7d
  73382. 801db60: 0801ddad .word 0x0801ddad
  73383. 801db64: 0801df25 .word 0x0801df25
  73384. 801db68: 0801df4f .word 0x0801df4f
  73385. 801db6c: 0801e073 .word 0x0801e073
  73386. 801db70: 0801df25 .word 0x0801df25
  73387. 801db74: 0801e0ff .word 0x0801e0ff
  73388. 801db78: 0801e18f .word 0x0801e18f
  73389. case SYN_SENT:
  73390. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %"U32_F"\n", ackno,
  73391. pcb->snd_nxt, lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  73392. /* received SYN ACK with expected sequence number? */
  73393. if ((flags & TCP_ACK) && (flags & TCP_SYN)
  73394. 801db7c: 4b4f ldr r3, [pc, #316] @ (801dcbc <tcp_process+0x298>)
  73395. 801db7e: 781b ldrb r3, [r3, #0]
  73396. 801db80: f003 0310 and.w r3, r3, #16
  73397. 801db84: 2b00 cmp r3, #0
  73398. 801db86: f000 80e4 beq.w 801dd52 <tcp_process+0x32e>
  73399. 801db8a: 4b4c ldr r3, [pc, #304] @ (801dcbc <tcp_process+0x298>)
  73400. 801db8c: 781b ldrb r3, [r3, #0]
  73401. 801db8e: f003 0302 and.w r3, r3, #2
  73402. 801db92: 2b00 cmp r3, #0
  73403. 801db94: f000 80dd beq.w 801dd52 <tcp_process+0x32e>
  73404. && (ackno == pcb->lastack + 1)) {
  73405. 801db98: 687b ldr r3, [r7, #4]
  73406. 801db9a: 6c5b ldr r3, [r3, #68] @ 0x44
  73407. 801db9c: 1c5a adds r2, r3, #1
  73408. 801db9e: 4b48 ldr r3, [pc, #288] @ (801dcc0 <tcp_process+0x29c>)
  73409. 801dba0: 681b ldr r3, [r3, #0]
  73410. 801dba2: 429a cmp r2, r3
  73411. 801dba4: f040 80d5 bne.w 801dd52 <tcp_process+0x32e>
  73412. pcb->rcv_nxt = seqno + 1;
  73413. 801dba8: 4b46 ldr r3, [pc, #280] @ (801dcc4 <tcp_process+0x2a0>)
  73414. 801dbaa: 681b ldr r3, [r3, #0]
  73415. 801dbac: 1c5a adds r2, r3, #1
  73416. 801dbae: 687b ldr r3, [r7, #4]
  73417. 801dbb0: 625a str r2, [r3, #36] @ 0x24
  73418. pcb->rcv_ann_right_edge = pcb->rcv_nxt;
  73419. 801dbb2: 687b ldr r3, [r7, #4]
  73420. 801dbb4: 6a5a ldr r2, [r3, #36] @ 0x24
  73421. 801dbb6: 687b ldr r3, [r7, #4]
  73422. 801dbb8: 62da str r2, [r3, #44] @ 0x2c
  73423. pcb->lastack = ackno;
  73424. 801dbba: 4b41 ldr r3, [pc, #260] @ (801dcc0 <tcp_process+0x29c>)
  73425. 801dbbc: 681a ldr r2, [r3, #0]
  73426. 801dbbe: 687b ldr r3, [r7, #4]
  73427. 801dbc0: 645a str r2, [r3, #68] @ 0x44
  73428. pcb->snd_wnd = tcphdr->wnd;
  73429. 801dbc2: 4b44 ldr r3, [pc, #272] @ (801dcd4 <tcp_process+0x2b0>)
  73430. 801dbc4: 681b ldr r3, [r3, #0]
  73431. 801dbc6: 89db ldrh r3, [r3, #14]
  73432. 801dbc8: b29a uxth r2, r3
  73433. 801dbca: 687b ldr r3, [r7, #4]
  73434. 801dbcc: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  73435. pcb->snd_wnd_max = pcb->snd_wnd;
  73436. 801dbd0: 687b ldr r3, [r7, #4]
  73437. 801dbd2: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  73438. 801dbd6: 687b ldr r3, [r7, #4]
  73439. 801dbd8: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  73440. pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */
  73441. 801dbdc: 4b39 ldr r3, [pc, #228] @ (801dcc4 <tcp_process+0x2a0>)
  73442. 801dbde: 681b ldr r3, [r3, #0]
  73443. 801dbe0: 1e5a subs r2, r3, #1
  73444. 801dbe2: 687b ldr r3, [r7, #4]
  73445. 801dbe4: 655a str r2, [r3, #84] @ 0x54
  73446. pcb->state = ESTABLISHED;
  73447. 801dbe6: 687b ldr r3, [r7, #4]
  73448. 801dbe8: 2204 movs r2, #4
  73449. 801dbea: 751a strb r2, [r3, #20]
  73450. #if TCP_CALCULATE_EFF_SEND_MSS
  73451. pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip);
  73452. 801dbec: 687b ldr r3, [r7, #4]
  73453. 801dbee: 8e5c ldrh r4, [r3, #50] @ 0x32
  73454. 801dbf0: 687b ldr r3, [r7, #4]
  73455. 801dbf2: 3304 adds r3, #4
  73456. 801dbf4: 4618 mov r0, r3
  73457. 801dbf6: f007 fad3 bl 80251a0 <ip4_route>
  73458. 801dbfa: 4601 mov r1, r0
  73459. 801dbfc: 687b ldr r3, [r7, #4]
  73460. 801dbfe: 3304 adds r3, #4
  73461. 801dc00: 461a mov r2, r3
  73462. 801dc02: 4620 mov r0, r4
  73463. 801dc04: f7ff f88a bl 801cd1c <tcp_eff_send_mss_netif>
  73464. 801dc08: 4603 mov r3, r0
  73465. 801dc0a: 461a mov r2, r3
  73466. 801dc0c: 687b ldr r3, [r7, #4]
  73467. 801dc0e: 865a strh r2, [r3, #50] @ 0x32
  73468. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  73469. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  73470. 801dc10: 687b ldr r3, [r7, #4]
  73471. 801dc12: 8e5b ldrh r3, [r3, #50] @ 0x32
  73472. 801dc14: 009a lsls r2, r3, #2
  73473. 801dc16: 687b ldr r3, [r7, #4]
  73474. 801dc18: 8e5b ldrh r3, [r3, #50] @ 0x32
  73475. 801dc1a: 005b lsls r3, r3, #1
  73476. 801dc1c: f241 111c movw r1, #4380 @ 0x111c
  73477. 801dc20: 428b cmp r3, r1
  73478. 801dc22: bf38 it cc
  73479. 801dc24: 460b movcc r3, r1
  73480. 801dc26: 429a cmp r2, r3
  73481. 801dc28: d204 bcs.n 801dc34 <tcp_process+0x210>
  73482. 801dc2a: 687b ldr r3, [r7, #4]
  73483. 801dc2c: 8e5b ldrh r3, [r3, #50] @ 0x32
  73484. 801dc2e: 009b lsls r3, r3, #2
  73485. 801dc30: b29b uxth r3, r3
  73486. 801dc32: e00d b.n 801dc50 <tcp_process+0x22c>
  73487. 801dc34: 687b ldr r3, [r7, #4]
  73488. 801dc36: 8e5b ldrh r3, [r3, #50] @ 0x32
  73489. 801dc38: 005b lsls r3, r3, #1
  73490. 801dc3a: f241 121c movw r2, #4380 @ 0x111c
  73491. 801dc3e: 4293 cmp r3, r2
  73492. 801dc40: d904 bls.n 801dc4c <tcp_process+0x228>
  73493. 801dc42: 687b ldr r3, [r7, #4]
  73494. 801dc44: 8e5b ldrh r3, [r3, #50] @ 0x32
  73495. 801dc46: 005b lsls r3, r3, #1
  73496. 801dc48: b29b uxth r3, r3
  73497. 801dc4a: e001 b.n 801dc50 <tcp_process+0x22c>
  73498. 801dc4c: f241 131c movw r3, #4380 @ 0x111c
  73499. 801dc50: 687a ldr r2, [r7, #4]
  73500. 801dc52: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  73501. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SENT): cwnd %"TCPWNDSIZE_F
  73502. " ssthresh %"TCPWNDSIZE_F"\n",
  73503. pcb->cwnd, pcb->ssthresh));
  73504. LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0));
  73505. 801dc56: 687b ldr r3, [r7, #4]
  73506. 801dc58: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  73507. 801dc5c: 2b00 cmp r3, #0
  73508. 801dc5e: d106 bne.n 801dc6e <tcp_process+0x24a>
  73509. 801dc60: 4b13 ldr r3, [pc, #76] @ (801dcb0 <tcp_process+0x28c>)
  73510. 801dc62: f44f 725b mov.w r2, #876 @ 0x36c
  73511. 801dc66: 491c ldr r1, [pc, #112] @ (801dcd8 <tcp_process+0x2b4>)
  73512. 801dc68: 4813 ldr r0, [pc, #76] @ (801dcb8 <tcp_process+0x294>)
  73513. 801dc6a: f00c faa7 bl 802a1bc <iprintf>
  73514. --pcb->snd_queuelen;
  73515. 801dc6e: 687b ldr r3, [r7, #4]
  73516. 801dc70: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  73517. 801dc74: 3b01 subs r3, #1
  73518. 801dc76: b29a uxth r2, r3
  73519. 801dc78: 687b ldr r3, [r7, #4]
  73520. 801dc7a: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  73521. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  73522. rseg = pcb->unacked;
  73523. 801dc7e: 687b ldr r3, [r7, #4]
  73524. 801dc80: 6f1b ldr r3, [r3, #112] @ 0x70
  73525. 801dc82: 617b str r3, [r7, #20]
  73526. if (rseg == NULL) {
  73527. 801dc84: 697b ldr r3, [r7, #20]
  73528. 801dc86: 2b00 cmp r3, #0
  73529. 801dc88: d12a bne.n 801dce0 <tcp_process+0x2bc>
  73530. /* might happen if tcp_output fails in tcp_rexmit_rto()
  73531. in which case the segment is on the unsent list */
  73532. rseg = pcb->unsent;
  73533. 801dc8a: 687b ldr r3, [r7, #4]
  73534. 801dc8c: 6edb ldr r3, [r3, #108] @ 0x6c
  73535. 801dc8e: 617b str r3, [r7, #20]
  73536. LWIP_ASSERT("no segment to free", rseg != NULL);
  73537. 801dc90: 697b ldr r3, [r7, #20]
  73538. 801dc92: 2b00 cmp r3, #0
  73539. 801dc94: d106 bne.n 801dca4 <tcp_process+0x280>
  73540. 801dc96: 4b06 ldr r3, [pc, #24] @ (801dcb0 <tcp_process+0x28c>)
  73541. 801dc98: f44f 725d mov.w r2, #884 @ 0x374
  73542. 801dc9c: 490f ldr r1, [pc, #60] @ (801dcdc <tcp_process+0x2b8>)
  73543. 801dc9e: 4806 ldr r0, [pc, #24] @ (801dcb8 <tcp_process+0x294>)
  73544. 801dca0: f00c fa8c bl 802a1bc <iprintf>
  73545. pcb->unsent = rseg->next;
  73546. 801dca4: 697b ldr r3, [r7, #20]
  73547. 801dca6: 681a ldr r2, [r3, #0]
  73548. 801dca8: 687b ldr r3, [r7, #4]
  73549. 801dcaa: 66da str r2, [r3, #108] @ 0x6c
  73550. 801dcac: e01c b.n 801dce8 <tcp_process+0x2c4>
  73551. 801dcae: bf00 nop
  73552. 801dcb0: 0802f5a4 .word 0x0802f5a4
  73553. 801dcb4: 0802f7dc .word 0x0802f7dc
  73554. 801dcb8: 0802f5f0 .word 0x0802f5f0
  73555. 801dcbc: 2402afa0 .word 0x2402afa0
  73556. 801dcc0: 2402af98 .word 0x2402af98
  73557. 801dcc4: 2402af94 .word 0x2402af94
  73558. 801dcc8: 0802f7f8 .word 0x0802f7f8
  73559. 801dccc: 2402afa1 .word 0x2402afa1
  73560. 801dcd0: 2402af58 .word 0x2402af58
  73561. 801dcd4: 2402af84 .word 0x2402af84
  73562. 801dcd8: 0802f818 .word 0x0802f818
  73563. 801dcdc: 0802f830 .word 0x0802f830
  73564. } else {
  73565. pcb->unacked = rseg->next;
  73566. 801dce0: 697b ldr r3, [r7, #20]
  73567. 801dce2: 681a ldr r2, [r3, #0]
  73568. 801dce4: 687b ldr r3, [r7, #4]
  73569. 801dce6: 671a str r2, [r3, #112] @ 0x70
  73570. }
  73571. tcp_seg_free(rseg);
  73572. 801dce8: 6978 ldr r0, [r7, #20]
  73573. 801dcea: f7fe fc48 bl 801c57e <tcp_seg_free>
  73574. /* If there's nothing left to acknowledge, stop the retransmit
  73575. timer, otherwise reset it to start again */
  73576. if (pcb->unacked == NULL) {
  73577. 801dcee: 687b ldr r3, [r7, #4]
  73578. 801dcf0: 6f1b ldr r3, [r3, #112] @ 0x70
  73579. 801dcf2: 2b00 cmp r3, #0
  73580. 801dcf4: d104 bne.n 801dd00 <tcp_process+0x2dc>
  73581. pcb->rtime = -1;
  73582. 801dcf6: 687b ldr r3, [r7, #4]
  73583. 801dcf8: f64f 72ff movw r2, #65535 @ 0xffff
  73584. 801dcfc: 861a strh r2, [r3, #48] @ 0x30
  73585. 801dcfe: e006 b.n 801dd0e <tcp_process+0x2ea>
  73586. } else {
  73587. pcb->rtime = 0;
  73588. 801dd00: 687b ldr r3, [r7, #4]
  73589. 801dd02: 2200 movs r2, #0
  73590. 801dd04: 861a strh r2, [r3, #48] @ 0x30
  73591. pcb->nrtx = 0;
  73592. 801dd06: 687b ldr r3, [r7, #4]
  73593. 801dd08: 2200 movs r2, #0
  73594. 801dd0a: f883 2042 strb.w r2, [r3, #66] @ 0x42
  73595. }
  73596. /* Call the user specified function to call when successfully
  73597. * connected. */
  73598. TCP_EVENT_CONNECTED(pcb, ERR_OK, err);
  73599. 801dd0e: 687b ldr r3, [r7, #4]
  73600. 801dd10: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  73601. 801dd14: 2b00 cmp r3, #0
  73602. 801dd16: d00a beq.n 801dd2e <tcp_process+0x30a>
  73603. 801dd18: 687b ldr r3, [r7, #4]
  73604. 801dd1a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  73605. 801dd1e: 687a ldr r2, [r7, #4]
  73606. 801dd20: 6910 ldr r0, [r2, #16]
  73607. 801dd22: 2200 movs r2, #0
  73608. 801dd24: 6879 ldr r1, [r7, #4]
  73609. 801dd26: 4798 blx r3
  73610. 801dd28: 4603 mov r3, r0
  73611. 801dd2a: 77bb strb r3, [r7, #30]
  73612. 801dd2c: e001 b.n 801dd32 <tcp_process+0x30e>
  73613. 801dd2e: 2300 movs r3, #0
  73614. 801dd30: 77bb strb r3, [r7, #30]
  73615. if (err == ERR_ABRT) {
  73616. 801dd32: f997 301e ldrsb.w r3, [r7, #30]
  73617. 801dd36: f113 0f0d cmn.w r3, #13
  73618. 801dd3a: d102 bne.n 801dd42 <tcp_process+0x31e>
  73619. return ERR_ABRT;
  73620. 801dd3c: f06f 030c mvn.w r3, #12
  73621. 801dd40: e250 b.n 801e1e4 <tcp_process+0x7c0>
  73622. }
  73623. tcp_ack_now(pcb);
  73624. 801dd42: 687b ldr r3, [r7, #4]
  73625. 801dd44: 8b5b ldrh r3, [r3, #26]
  73626. 801dd46: f043 0302 orr.w r3, r3, #2
  73627. 801dd4a: b29a uxth r2, r3
  73628. 801dd4c: 687b ldr r3, [r7, #4]
  73629. 801dd4e: 835a strh r2, [r3, #26]
  73630. if (pcb->nrtx < TCP_SYNMAXRTX) {
  73631. pcb->rtime = 0;
  73632. tcp_rexmit_rto(pcb);
  73633. }
  73634. }
  73635. break;
  73636. 801dd50: e23a b.n 801e1c8 <tcp_process+0x7a4>
  73637. else if (flags & TCP_ACK) {
  73638. 801dd52: 4b98 ldr r3, [pc, #608] @ (801dfb4 <tcp_process+0x590>)
  73639. 801dd54: 781b ldrb r3, [r3, #0]
  73640. 801dd56: f003 0310 and.w r3, r3, #16
  73641. 801dd5a: 2b00 cmp r3, #0
  73642. 801dd5c: f000 8234 beq.w 801e1c8 <tcp_process+0x7a4>
  73643. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73644. 801dd60: 4b95 ldr r3, [pc, #596] @ (801dfb8 <tcp_process+0x594>)
  73645. 801dd62: 6819 ldr r1, [r3, #0]
  73646. 801dd64: 4b95 ldr r3, [pc, #596] @ (801dfbc <tcp_process+0x598>)
  73647. 801dd66: 881b ldrh r3, [r3, #0]
  73648. 801dd68: 461a mov r2, r3
  73649. 801dd6a: 4b95 ldr r3, [pc, #596] @ (801dfc0 <tcp_process+0x59c>)
  73650. 801dd6c: 681b ldr r3, [r3, #0]
  73651. 801dd6e: 18d0 adds r0, r2, r3
  73652. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73653. 801dd70: 4b94 ldr r3, [pc, #592] @ (801dfc4 <tcp_process+0x5a0>)
  73654. 801dd72: 681b ldr r3, [r3, #0]
  73655. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73656. 801dd74: 885b ldrh r3, [r3, #2]
  73657. 801dd76: b29b uxth r3, r3
  73658. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73659. 801dd78: 4a92 ldr r2, [pc, #584] @ (801dfc4 <tcp_process+0x5a0>)
  73660. 801dd7a: 6812 ldr r2, [r2, #0]
  73661. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73662. 801dd7c: 8812 ldrh r2, [r2, #0]
  73663. 801dd7e: b292 uxth r2, r2
  73664. 801dd80: 9202 str r2, [sp, #8]
  73665. 801dd82: 9301 str r3, [sp, #4]
  73666. 801dd84: 4b90 ldr r3, [pc, #576] @ (801dfc8 <tcp_process+0x5a4>)
  73667. 801dd86: 9300 str r3, [sp, #0]
  73668. 801dd88: 4b90 ldr r3, [pc, #576] @ (801dfcc <tcp_process+0x5a8>)
  73669. 801dd8a: 4602 mov r2, r0
  73670. 801dd8c: 6878 ldr r0, [r7, #4]
  73671. 801dd8e: f003 f94b bl 8021028 <tcp_rst>
  73672. if (pcb->nrtx < TCP_SYNMAXRTX) {
  73673. 801dd92: 687b ldr r3, [r7, #4]
  73674. 801dd94: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  73675. 801dd98: 2b05 cmp r3, #5
  73676. 801dd9a: f200 8215 bhi.w 801e1c8 <tcp_process+0x7a4>
  73677. pcb->rtime = 0;
  73678. 801dd9e: 687b ldr r3, [r7, #4]
  73679. 801dda0: 2200 movs r2, #0
  73680. 801dda2: 861a strh r2, [r3, #48] @ 0x30
  73681. tcp_rexmit_rto(pcb);
  73682. 801dda4: 6878 ldr r0, [r7, #4]
  73683. 801dda6: f002 ff17 bl 8020bd8 <tcp_rexmit_rto>
  73684. break;
  73685. 801ddaa: e20d b.n 801e1c8 <tcp_process+0x7a4>
  73686. case SYN_RCVD:
  73687. if (flags & TCP_ACK) {
  73688. 801ddac: 4b81 ldr r3, [pc, #516] @ (801dfb4 <tcp_process+0x590>)
  73689. 801ddae: 781b ldrb r3, [r3, #0]
  73690. 801ddb0: f003 0310 and.w r3, r3, #16
  73691. 801ddb4: 2b00 cmp r3, #0
  73692. 801ddb6: f000 80a1 beq.w 801defc <tcp_process+0x4d8>
  73693. /* expected ACK number? */
  73694. if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  73695. 801ddba: 4b7f ldr r3, [pc, #508] @ (801dfb8 <tcp_process+0x594>)
  73696. 801ddbc: 681a ldr r2, [r3, #0]
  73697. 801ddbe: 687b ldr r3, [r7, #4]
  73698. 801ddc0: 6c5b ldr r3, [r3, #68] @ 0x44
  73699. 801ddc2: 1ad3 subs r3, r2, r3
  73700. 801ddc4: 3b01 subs r3, #1
  73701. 801ddc6: 2b00 cmp r3, #0
  73702. 801ddc8: db7e blt.n 801dec8 <tcp_process+0x4a4>
  73703. 801ddca: 4b7b ldr r3, [pc, #492] @ (801dfb8 <tcp_process+0x594>)
  73704. 801ddcc: 681a ldr r2, [r3, #0]
  73705. 801ddce: 687b ldr r3, [r7, #4]
  73706. 801ddd0: 6d1b ldr r3, [r3, #80] @ 0x50
  73707. 801ddd2: 1ad3 subs r3, r2, r3
  73708. 801ddd4: 2b00 cmp r3, #0
  73709. 801ddd6: dc77 bgt.n 801dec8 <tcp_process+0x4a4>
  73710. pcb->state = ESTABLISHED;
  73711. 801ddd8: 687b ldr r3, [r7, #4]
  73712. 801ddda: 2204 movs r2, #4
  73713. 801dddc: 751a strb r2, [r3, #20]
  73714. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection established %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  73715. #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG
  73716. if (pcb->listener == NULL) {
  73717. 801ddde: 687b ldr r3, [r7, #4]
  73718. 801dde0: 6fdb ldr r3, [r3, #124] @ 0x7c
  73719. 801dde2: 2b00 cmp r3, #0
  73720. 801dde4: d102 bne.n 801ddec <tcp_process+0x3c8>
  73721. /* listen pcb might be closed by now */
  73722. err = ERR_VAL;
  73723. 801dde6: 23fa movs r3, #250 @ 0xfa
  73724. 801dde8: 77bb strb r3, [r7, #30]
  73725. 801ddea: e01d b.n 801de28 <tcp_process+0x404>
  73726. } else
  73727. #endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */
  73728. {
  73729. #if LWIP_CALLBACK_API
  73730. LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL);
  73731. 801ddec: 687b ldr r3, [r7, #4]
  73732. 801ddee: 6fdb ldr r3, [r3, #124] @ 0x7c
  73733. 801ddf0: 699b ldr r3, [r3, #24]
  73734. 801ddf2: 2b00 cmp r3, #0
  73735. 801ddf4: d106 bne.n 801de04 <tcp_process+0x3e0>
  73736. 801ddf6: 4b76 ldr r3, [pc, #472] @ (801dfd0 <tcp_process+0x5ac>)
  73737. 801ddf8: f44f 726a mov.w r2, #936 @ 0x3a8
  73738. 801ddfc: 4975 ldr r1, [pc, #468] @ (801dfd4 <tcp_process+0x5b0>)
  73739. 801ddfe: 4876 ldr r0, [pc, #472] @ (801dfd8 <tcp_process+0x5b4>)
  73740. 801de00: f00c f9dc bl 802a1bc <iprintf>
  73741. #endif
  73742. tcp_backlog_accepted(pcb);
  73743. /* Call the accept function. */
  73744. TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err);
  73745. 801de04: 687b ldr r3, [r7, #4]
  73746. 801de06: 6fdb ldr r3, [r3, #124] @ 0x7c
  73747. 801de08: 699b ldr r3, [r3, #24]
  73748. 801de0a: 2b00 cmp r3, #0
  73749. 801de0c: d00a beq.n 801de24 <tcp_process+0x400>
  73750. 801de0e: 687b ldr r3, [r7, #4]
  73751. 801de10: 6fdb ldr r3, [r3, #124] @ 0x7c
  73752. 801de12: 699b ldr r3, [r3, #24]
  73753. 801de14: 687a ldr r2, [r7, #4]
  73754. 801de16: 6910 ldr r0, [r2, #16]
  73755. 801de18: 2200 movs r2, #0
  73756. 801de1a: 6879 ldr r1, [r7, #4]
  73757. 801de1c: 4798 blx r3
  73758. 801de1e: 4603 mov r3, r0
  73759. 801de20: 77bb strb r3, [r7, #30]
  73760. 801de22: e001 b.n 801de28 <tcp_process+0x404>
  73761. 801de24: 23f0 movs r3, #240 @ 0xf0
  73762. 801de26: 77bb strb r3, [r7, #30]
  73763. }
  73764. if (err != ERR_OK) {
  73765. 801de28: f997 301e ldrsb.w r3, [r7, #30]
  73766. 801de2c: 2b00 cmp r3, #0
  73767. 801de2e: d00a beq.n 801de46 <tcp_process+0x422>
  73768. /* If the accept function returns with an error, we abort
  73769. * the connection. */
  73770. /* Already aborted? */
  73771. if (err != ERR_ABRT) {
  73772. 801de30: f997 301e ldrsb.w r3, [r7, #30]
  73773. 801de34: f113 0f0d cmn.w r3, #13
  73774. 801de38: d002 beq.n 801de40 <tcp_process+0x41c>
  73775. tcp_abort(pcb);
  73776. 801de3a: 6878 ldr r0, [r7, #4]
  73777. 801de3c: f7fd fd4c bl 801b8d8 <tcp_abort>
  73778. }
  73779. return ERR_ABRT;
  73780. 801de40: f06f 030c mvn.w r3, #12
  73781. 801de44: e1ce b.n 801e1e4 <tcp_process+0x7c0>
  73782. }
  73783. /* If there was any data contained within this ACK,
  73784. * we'd better pass it on to the application as well. */
  73785. tcp_receive(pcb);
  73786. 801de46: 6878 ldr r0, [r7, #4]
  73787. 801de48: f000 fae0 bl 801e40c <tcp_receive>
  73788. /* Prevent ACK for SYN to generate a sent event */
  73789. if (recv_acked != 0) {
  73790. 801de4c: 4b63 ldr r3, [pc, #396] @ (801dfdc <tcp_process+0x5b8>)
  73791. 801de4e: 881b ldrh r3, [r3, #0]
  73792. 801de50: 2b00 cmp r3, #0
  73793. 801de52: d005 beq.n 801de60 <tcp_process+0x43c>
  73794. recv_acked--;
  73795. 801de54: 4b61 ldr r3, [pc, #388] @ (801dfdc <tcp_process+0x5b8>)
  73796. 801de56: 881b ldrh r3, [r3, #0]
  73797. 801de58: 3b01 subs r3, #1
  73798. 801de5a: b29a uxth r2, r3
  73799. 801de5c: 4b5f ldr r3, [pc, #380] @ (801dfdc <tcp_process+0x5b8>)
  73800. 801de5e: 801a strh r2, [r3, #0]
  73801. }
  73802. pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss);
  73803. 801de60: 687b ldr r3, [r7, #4]
  73804. 801de62: 8e5b ldrh r3, [r3, #50] @ 0x32
  73805. 801de64: 009a lsls r2, r3, #2
  73806. 801de66: 687b ldr r3, [r7, #4]
  73807. 801de68: 8e5b ldrh r3, [r3, #50] @ 0x32
  73808. 801de6a: 005b lsls r3, r3, #1
  73809. 801de6c: f241 111c movw r1, #4380 @ 0x111c
  73810. 801de70: 428b cmp r3, r1
  73811. 801de72: bf38 it cc
  73812. 801de74: 460b movcc r3, r1
  73813. 801de76: 429a cmp r2, r3
  73814. 801de78: d204 bcs.n 801de84 <tcp_process+0x460>
  73815. 801de7a: 687b ldr r3, [r7, #4]
  73816. 801de7c: 8e5b ldrh r3, [r3, #50] @ 0x32
  73817. 801de7e: 009b lsls r3, r3, #2
  73818. 801de80: b29b uxth r3, r3
  73819. 801de82: e00d b.n 801dea0 <tcp_process+0x47c>
  73820. 801de84: 687b ldr r3, [r7, #4]
  73821. 801de86: 8e5b ldrh r3, [r3, #50] @ 0x32
  73822. 801de88: 005b lsls r3, r3, #1
  73823. 801de8a: f241 121c movw r2, #4380 @ 0x111c
  73824. 801de8e: 4293 cmp r3, r2
  73825. 801de90: d904 bls.n 801de9c <tcp_process+0x478>
  73826. 801de92: 687b ldr r3, [r7, #4]
  73827. 801de94: 8e5b ldrh r3, [r3, #50] @ 0x32
  73828. 801de96: 005b lsls r3, r3, #1
  73829. 801de98: b29b uxth r3, r3
  73830. 801de9a: e001 b.n 801dea0 <tcp_process+0x47c>
  73831. 801de9c: f241 131c movw r3, #4380 @ 0x111c
  73832. 801dea0: 687a ldr r2, [r7, #4]
  73833. 801dea2: f8a2 3048 strh.w r3, [r2, #72] @ 0x48
  73834. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SYN_RCVD): cwnd %"TCPWNDSIZE_F
  73835. " ssthresh %"TCPWNDSIZE_F"\n",
  73836. pcb->cwnd, pcb->ssthresh));
  73837. if (recv_flags & TF_GOT_FIN) {
  73838. 801dea6: 4b4e ldr r3, [pc, #312] @ (801dfe0 <tcp_process+0x5bc>)
  73839. 801dea8: 781b ldrb r3, [r3, #0]
  73840. 801deaa: f003 0320 and.w r3, r3, #32
  73841. 801deae: 2b00 cmp r3, #0
  73842. 801deb0: d037 beq.n 801df22 <tcp_process+0x4fe>
  73843. tcp_ack_now(pcb);
  73844. 801deb2: 687b ldr r3, [r7, #4]
  73845. 801deb4: 8b5b ldrh r3, [r3, #26]
  73846. 801deb6: f043 0302 orr.w r3, r3, #2
  73847. 801deba: b29a uxth r2, r3
  73848. 801debc: 687b ldr r3, [r7, #4]
  73849. 801debe: 835a strh r2, [r3, #26]
  73850. pcb->state = CLOSE_WAIT;
  73851. 801dec0: 687b ldr r3, [r7, #4]
  73852. 801dec2: 2207 movs r2, #7
  73853. 801dec4: 751a strb r2, [r3, #20]
  73854. if (recv_flags & TF_GOT_FIN) {
  73855. 801dec6: e02c b.n 801df22 <tcp_process+0x4fe>
  73856. }
  73857. } else {
  73858. /* incorrect ACK number, send RST */
  73859. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73860. 801dec8: 4b3b ldr r3, [pc, #236] @ (801dfb8 <tcp_process+0x594>)
  73861. 801deca: 6819 ldr r1, [r3, #0]
  73862. 801decc: 4b3b ldr r3, [pc, #236] @ (801dfbc <tcp_process+0x598>)
  73863. 801dece: 881b ldrh r3, [r3, #0]
  73864. 801ded0: 461a mov r2, r3
  73865. 801ded2: 4b3b ldr r3, [pc, #236] @ (801dfc0 <tcp_process+0x59c>)
  73866. 801ded4: 681b ldr r3, [r3, #0]
  73867. 801ded6: 18d0 adds r0, r2, r3
  73868. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73869. 801ded8: 4b3a ldr r3, [pc, #232] @ (801dfc4 <tcp_process+0x5a0>)
  73870. 801deda: 681b ldr r3, [r3, #0]
  73871. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73872. 801dedc: 885b ldrh r3, [r3, #2]
  73873. 801dede: b29b uxth r3, r3
  73874. ip_current_src_addr(), tcphdr->dest, tcphdr->src);
  73875. 801dee0: 4a38 ldr r2, [pc, #224] @ (801dfc4 <tcp_process+0x5a0>)
  73876. 801dee2: 6812 ldr r2, [r2, #0]
  73877. tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(),
  73878. 801dee4: 8812 ldrh r2, [r2, #0]
  73879. 801dee6: b292 uxth r2, r2
  73880. 801dee8: 9202 str r2, [sp, #8]
  73881. 801deea: 9301 str r3, [sp, #4]
  73882. 801deec: 4b36 ldr r3, [pc, #216] @ (801dfc8 <tcp_process+0x5a4>)
  73883. 801deee: 9300 str r3, [sp, #0]
  73884. 801def0: 4b36 ldr r3, [pc, #216] @ (801dfcc <tcp_process+0x5a8>)
  73885. 801def2: 4602 mov r2, r0
  73886. 801def4: 6878 ldr r0, [r7, #4]
  73887. 801def6: f003 f897 bl 8021028 <tcp_rst>
  73888. }
  73889. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  73890. /* Looks like another copy of the SYN - retransmit our SYN-ACK */
  73891. tcp_rexmit(pcb);
  73892. }
  73893. break;
  73894. 801defa: e167 b.n 801e1cc <tcp_process+0x7a8>
  73895. } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) {
  73896. 801defc: 4b2d ldr r3, [pc, #180] @ (801dfb4 <tcp_process+0x590>)
  73897. 801defe: 781b ldrb r3, [r3, #0]
  73898. 801df00: f003 0302 and.w r3, r3, #2
  73899. 801df04: 2b00 cmp r3, #0
  73900. 801df06: f000 8161 beq.w 801e1cc <tcp_process+0x7a8>
  73901. 801df0a: 687b ldr r3, [r7, #4]
  73902. 801df0c: 6a5b ldr r3, [r3, #36] @ 0x24
  73903. 801df0e: 1e5a subs r2, r3, #1
  73904. 801df10: 4b2b ldr r3, [pc, #172] @ (801dfc0 <tcp_process+0x59c>)
  73905. 801df12: 681b ldr r3, [r3, #0]
  73906. 801df14: 429a cmp r2, r3
  73907. 801df16: f040 8159 bne.w 801e1cc <tcp_process+0x7a8>
  73908. tcp_rexmit(pcb);
  73909. 801df1a: 6878 ldr r0, [r7, #4]
  73910. 801df1c: f002 fe7e bl 8020c1c <tcp_rexmit>
  73911. break;
  73912. 801df20: e154 b.n 801e1cc <tcp_process+0x7a8>
  73913. 801df22: e153 b.n 801e1cc <tcp_process+0x7a8>
  73914. case CLOSE_WAIT:
  73915. /* FALLTHROUGH */
  73916. case ESTABLISHED:
  73917. tcp_receive(pcb);
  73918. 801df24: 6878 ldr r0, [r7, #4]
  73919. 801df26: f000 fa71 bl 801e40c <tcp_receive>
  73920. if (recv_flags & TF_GOT_FIN) { /* passive close */
  73921. 801df2a: 4b2d ldr r3, [pc, #180] @ (801dfe0 <tcp_process+0x5bc>)
  73922. 801df2c: 781b ldrb r3, [r3, #0]
  73923. 801df2e: f003 0320 and.w r3, r3, #32
  73924. 801df32: 2b00 cmp r3, #0
  73925. 801df34: f000 814c beq.w 801e1d0 <tcp_process+0x7ac>
  73926. tcp_ack_now(pcb);
  73927. 801df38: 687b ldr r3, [r7, #4]
  73928. 801df3a: 8b5b ldrh r3, [r3, #26]
  73929. 801df3c: f043 0302 orr.w r3, r3, #2
  73930. 801df40: b29a uxth r2, r3
  73931. 801df42: 687b ldr r3, [r7, #4]
  73932. 801df44: 835a strh r2, [r3, #26]
  73933. pcb->state = CLOSE_WAIT;
  73934. 801df46: 687b ldr r3, [r7, #4]
  73935. 801df48: 2207 movs r2, #7
  73936. 801df4a: 751a strb r2, [r3, #20]
  73937. }
  73938. break;
  73939. 801df4c: e140 b.n 801e1d0 <tcp_process+0x7ac>
  73940. case FIN_WAIT_1:
  73941. tcp_receive(pcb);
  73942. 801df4e: 6878 ldr r0, [r7, #4]
  73943. 801df50: f000 fa5c bl 801e40c <tcp_receive>
  73944. if (recv_flags & TF_GOT_FIN) {
  73945. 801df54: 4b22 ldr r3, [pc, #136] @ (801dfe0 <tcp_process+0x5bc>)
  73946. 801df56: 781b ldrb r3, [r3, #0]
  73947. 801df58: f003 0320 and.w r3, r3, #32
  73948. 801df5c: 2b00 cmp r3, #0
  73949. 801df5e: d071 beq.n 801e044 <tcp_process+0x620>
  73950. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  73951. 801df60: 4b14 ldr r3, [pc, #80] @ (801dfb4 <tcp_process+0x590>)
  73952. 801df62: 781b ldrb r3, [r3, #0]
  73953. 801df64: f003 0310 and.w r3, r3, #16
  73954. 801df68: 2b00 cmp r3, #0
  73955. 801df6a: d060 beq.n 801e02e <tcp_process+0x60a>
  73956. 801df6c: 687b ldr r3, [r7, #4]
  73957. 801df6e: 6d1a ldr r2, [r3, #80] @ 0x50
  73958. 801df70: 4b11 ldr r3, [pc, #68] @ (801dfb8 <tcp_process+0x594>)
  73959. 801df72: 681b ldr r3, [r3, #0]
  73960. 801df74: 429a cmp r2, r3
  73961. 801df76: d15a bne.n 801e02e <tcp_process+0x60a>
  73962. pcb->unsent == NULL) {
  73963. 801df78: 687b ldr r3, [r7, #4]
  73964. 801df7a: 6edb ldr r3, [r3, #108] @ 0x6c
  73965. if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  73966. 801df7c: 2b00 cmp r3, #0
  73967. 801df7e: d156 bne.n 801e02e <tcp_process+0x60a>
  73968. LWIP_DEBUGF(TCP_DEBUG,
  73969. ("TCP connection closed: FIN_WAIT_1 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  73970. tcp_ack_now(pcb);
  73971. 801df80: 687b ldr r3, [r7, #4]
  73972. 801df82: 8b5b ldrh r3, [r3, #26]
  73973. 801df84: f043 0302 orr.w r3, r3, #2
  73974. 801df88: b29a uxth r2, r3
  73975. 801df8a: 687b ldr r3, [r7, #4]
  73976. 801df8c: 835a strh r2, [r3, #26]
  73977. tcp_pcb_purge(pcb);
  73978. 801df8e: 6878 ldr r0, [r7, #4]
  73979. 801df90: f7fe fdba bl 801cb08 <tcp_pcb_purge>
  73980. TCP_RMV_ACTIVE(pcb);
  73981. 801df94: 4b13 ldr r3, [pc, #76] @ (801dfe4 <tcp_process+0x5c0>)
  73982. 801df96: 681b ldr r3, [r3, #0]
  73983. 801df98: 687a ldr r2, [r7, #4]
  73984. 801df9a: 429a cmp r2, r3
  73985. 801df9c: d105 bne.n 801dfaa <tcp_process+0x586>
  73986. 801df9e: 4b11 ldr r3, [pc, #68] @ (801dfe4 <tcp_process+0x5c0>)
  73987. 801dfa0: 681b ldr r3, [r3, #0]
  73988. 801dfa2: 68db ldr r3, [r3, #12]
  73989. 801dfa4: 4a0f ldr r2, [pc, #60] @ (801dfe4 <tcp_process+0x5c0>)
  73990. 801dfa6: 6013 str r3, [r2, #0]
  73991. 801dfa8: e02e b.n 801e008 <tcp_process+0x5e4>
  73992. 801dfaa: 4b0e ldr r3, [pc, #56] @ (801dfe4 <tcp_process+0x5c0>)
  73993. 801dfac: 681b ldr r3, [r3, #0]
  73994. 801dfae: 613b str r3, [r7, #16]
  73995. 801dfb0: e027 b.n 801e002 <tcp_process+0x5de>
  73996. 801dfb2: bf00 nop
  73997. 801dfb4: 2402afa0 .word 0x2402afa0
  73998. 801dfb8: 2402af98 .word 0x2402af98
  73999. 801dfbc: 2402af9e .word 0x2402af9e
  74000. 801dfc0: 2402af94 .word 0x2402af94
  74001. 801dfc4: 2402af84 .word 0x2402af84
  74002. 801dfc8: 24024418 .word 0x24024418
  74003. 801dfcc: 2402441c .word 0x2402441c
  74004. 801dfd0: 0802f5a4 .word 0x0802f5a4
  74005. 801dfd4: 0802f844 .word 0x0802f844
  74006. 801dfd8: 0802f5f0 .word 0x0802f5f0
  74007. 801dfdc: 2402af9c .word 0x2402af9c
  74008. 801dfe0: 2402afa1 .word 0x2402afa1
  74009. 801dfe4: 2402af64 .word 0x2402af64
  74010. 801dfe8: 693b ldr r3, [r7, #16]
  74011. 801dfea: 68db ldr r3, [r3, #12]
  74012. 801dfec: 687a ldr r2, [r7, #4]
  74013. 801dfee: 429a cmp r2, r3
  74014. 801dff0: d104 bne.n 801dffc <tcp_process+0x5d8>
  74015. 801dff2: 687b ldr r3, [r7, #4]
  74016. 801dff4: 68da ldr r2, [r3, #12]
  74017. 801dff6: 693b ldr r3, [r7, #16]
  74018. 801dff8: 60da str r2, [r3, #12]
  74019. 801dffa: e005 b.n 801e008 <tcp_process+0x5e4>
  74020. 801dffc: 693b ldr r3, [r7, #16]
  74021. 801dffe: 68db ldr r3, [r3, #12]
  74022. 801e000: 613b str r3, [r7, #16]
  74023. 801e002: 693b ldr r3, [r7, #16]
  74024. 801e004: 2b00 cmp r3, #0
  74025. 801e006: d1ef bne.n 801dfe8 <tcp_process+0x5c4>
  74026. 801e008: 687b ldr r3, [r7, #4]
  74027. 801e00a: 2200 movs r2, #0
  74028. 801e00c: 60da str r2, [r3, #12]
  74029. 801e00e: 4b77 ldr r3, [pc, #476] @ (801e1ec <tcp_process+0x7c8>)
  74030. 801e010: 2201 movs r2, #1
  74031. 801e012: 701a strb r2, [r3, #0]
  74032. pcb->state = TIME_WAIT;
  74033. 801e014: 687b ldr r3, [r7, #4]
  74034. 801e016: 220a movs r2, #10
  74035. 801e018: 751a strb r2, [r3, #20]
  74036. TCP_REG(&tcp_tw_pcbs, pcb);
  74037. 801e01a: 4b75 ldr r3, [pc, #468] @ (801e1f0 <tcp_process+0x7cc>)
  74038. 801e01c: 681a ldr r2, [r3, #0]
  74039. 801e01e: 687b ldr r3, [r7, #4]
  74040. 801e020: 60da str r2, [r3, #12]
  74041. 801e022: 4a73 ldr r2, [pc, #460] @ (801e1f0 <tcp_process+0x7cc>)
  74042. 801e024: 687b ldr r3, [r7, #4]
  74043. 801e026: 6013 str r3, [r2, #0]
  74044. 801e028: f003 f9c0 bl 80213ac <tcp_timer_needed>
  74045. }
  74046. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74047. pcb->unsent == NULL) {
  74048. pcb->state = FIN_WAIT_2;
  74049. }
  74050. break;
  74051. 801e02c: e0d2 b.n 801e1d4 <tcp_process+0x7b0>
  74052. tcp_ack_now(pcb);
  74053. 801e02e: 687b ldr r3, [r7, #4]
  74054. 801e030: 8b5b ldrh r3, [r3, #26]
  74055. 801e032: f043 0302 orr.w r3, r3, #2
  74056. 801e036: b29a uxth r2, r3
  74057. 801e038: 687b ldr r3, [r7, #4]
  74058. 801e03a: 835a strh r2, [r3, #26]
  74059. pcb->state = CLOSING;
  74060. 801e03c: 687b ldr r3, [r7, #4]
  74061. 801e03e: 2208 movs r2, #8
  74062. 801e040: 751a strb r2, [r3, #20]
  74063. break;
  74064. 801e042: e0c7 b.n 801e1d4 <tcp_process+0x7b0>
  74065. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74066. 801e044: 4b6b ldr r3, [pc, #428] @ (801e1f4 <tcp_process+0x7d0>)
  74067. 801e046: 781b ldrb r3, [r3, #0]
  74068. 801e048: f003 0310 and.w r3, r3, #16
  74069. 801e04c: 2b00 cmp r3, #0
  74070. 801e04e: f000 80c1 beq.w 801e1d4 <tcp_process+0x7b0>
  74071. 801e052: 687b ldr r3, [r7, #4]
  74072. 801e054: 6d1a ldr r2, [r3, #80] @ 0x50
  74073. 801e056: 4b68 ldr r3, [pc, #416] @ (801e1f8 <tcp_process+0x7d4>)
  74074. 801e058: 681b ldr r3, [r3, #0]
  74075. 801e05a: 429a cmp r2, r3
  74076. 801e05c: f040 80ba bne.w 801e1d4 <tcp_process+0x7b0>
  74077. pcb->unsent == NULL) {
  74078. 801e060: 687b ldr r3, [r7, #4]
  74079. 801e062: 6edb ldr r3, [r3, #108] @ 0x6c
  74080. } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) &&
  74081. 801e064: 2b00 cmp r3, #0
  74082. 801e066: f040 80b5 bne.w 801e1d4 <tcp_process+0x7b0>
  74083. pcb->state = FIN_WAIT_2;
  74084. 801e06a: 687b ldr r3, [r7, #4]
  74085. 801e06c: 2206 movs r2, #6
  74086. 801e06e: 751a strb r2, [r3, #20]
  74087. break;
  74088. 801e070: e0b0 b.n 801e1d4 <tcp_process+0x7b0>
  74089. case FIN_WAIT_2:
  74090. tcp_receive(pcb);
  74091. 801e072: 6878 ldr r0, [r7, #4]
  74092. 801e074: f000 f9ca bl 801e40c <tcp_receive>
  74093. if (recv_flags & TF_GOT_FIN) {
  74094. 801e078: 4b60 ldr r3, [pc, #384] @ (801e1fc <tcp_process+0x7d8>)
  74095. 801e07a: 781b ldrb r3, [r3, #0]
  74096. 801e07c: f003 0320 and.w r3, r3, #32
  74097. 801e080: 2b00 cmp r3, #0
  74098. 801e082: f000 80a9 beq.w 801e1d8 <tcp_process+0x7b4>
  74099. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_2 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  74100. tcp_ack_now(pcb);
  74101. 801e086: 687b ldr r3, [r7, #4]
  74102. 801e088: 8b5b ldrh r3, [r3, #26]
  74103. 801e08a: f043 0302 orr.w r3, r3, #2
  74104. 801e08e: b29a uxth r2, r3
  74105. 801e090: 687b ldr r3, [r7, #4]
  74106. 801e092: 835a strh r2, [r3, #26]
  74107. tcp_pcb_purge(pcb);
  74108. 801e094: 6878 ldr r0, [r7, #4]
  74109. 801e096: f7fe fd37 bl 801cb08 <tcp_pcb_purge>
  74110. TCP_RMV_ACTIVE(pcb);
  74111. 801e09a: 4b59 ldr r3, [pc, #356] @ (801e200 <tcp_process+0x7dc>)
  74112. 801e09c: 681b ldr r3, [r3, #0]
  74113. 801e09e: 687a ldr r2, [r7, #4]
  74114. 801e0a0: 429a cmp r2, r3
  74115. 801e0a2: d105 bne.n 801e0b0 <tcp_process+0x68c>
  74116. 801e0a4: 4b56 ldr r3, [pc, #344] @ (801e200 <tcp_process+0x7dc>)
  74117. 801e0a6: 681b ldr r3, [r3, #0]
  74118. 801e0a8: 68db ldr r3, [r3, #12]
  74119. 801e0aa: 4a55 ldr r2, [pc, #340] @ (801e200 <tcp_process+0x7dc>)
  74120. 801e0ac: 6013 str r3, [r2, #0]
  74121. 801e0ae: e013 b.n 801e0d8 <tcp_process+0x6b4>
  74122. 801e0b0: 4b53 ldr r3, [pc, #332] @ (801e200 <tcp_process+0x7dc>)
  74123. 801e0b2: 681b ldr r3, [r3, #0]
  74124. 801e0b4: 60fb str r3, [r7, #12]
  74125. 801e0b6: e00c b.n 801e0d2 <tcp_process+0x6ae>
  74126. 801e0b8: 68fb ldr r3, [r7, #12]
  74127. 801e0ba: 68db ldr r3, [r3, #12]
  74128. 801e0bc: 687a ldr r2, [r7, #4]
  74129. 801e0be: 429a cmp r2, r3
  74130. 801e0c0: d104 bne.n 801e0cc <tcp_process+0x6a8>
  74131. 801e0c2: 687b ldr r3, [r7, #4]
  74132. 801e0c4: 68da ldr r2, [r3, #12]
  74133. 801e0c6: 68fb ldr r3, [r7, #12]
  74134. 801e0c8: 60da str r2, [r3, #12]
  74135. 801e0ca: e005 b.n 801e0d8 <tcp_process+0x6b4>
  74136. 801e0cc: 68fb ldr r3, [r7, #12]
  74137. 801e0ce: 68db ldr r3, [r3, #12]
  74138. 801e0d0: 60fb str r3, [r7, #12]
  74139. 801e0d2: 68fb ldr r3, [r7, #12]
  74140. 801e0d4: 2b00 cmp r3, #0
  74141. 801e0d6: d1ef bne.n 801e0b8 <tcp_process+0x694>
  74142. 801e0d8: 687b ldr r3, [r7, #4]
  74143. 801e0da: 2200 movs r2, #0
  74144. 801e0dc: 60da str r2, [r3, #12]
  74145. 801e0de: 4b43 ldr r3, [pc, #268] @ (801e1ec <tcp_process+0x7c8>)
  74146. 801e0e0: 2201 movs r2, #1
  74147. 801e0e2: 701a strb r2, [r3, #0]
  74148. pcb->state = TIME_WAIT;
  74149. 801e0e4: 687b ldr r3, [r7, #4]
  74150. 801e0e6: 220a movs r2, #10
  74151. 801e0e8: 751a strb r2, [r3, #20]
  74152. TCP_REG(&tcp_tw_pcbs, pcb);
  74153. 801e0ea: 4b41 ldr r3, [pc, #260] @ (801e1f0 <tcp_process+0x7cc>)
  74154. 801e0ec: 681a ldr r2, [r3, #0]
  74155. 801e0ee: 687b ldr r3, [r7, #4]
  74156. 801e0f0: 60da str r2, [r3, #12]
  74157. 801e0f2: 4a3f ldr r2, [pc, #252] @ (801e1f0 <tcp_process+0x7cc>)
  74158. 801e0f4: 687b ldr r3, [r7, #4]
  74159. 801e0f6: 6013 str r3, [r2, #0]
  74160. 801e0f8: f003 f958 bl 80213ac <tcp_timer_needed>
  74161. }
  74162. break;
  74163. 801e0fc: e06c b.n 801e1d8 <tcp_process+0x7b4>
  74164. case CLOSING:
  74165. tcp_receive(pcb);
  74166. 801e0fe: 6878 ldr r0, [r7, #4]
  74167. 801e100: f000 f984 bl 801e40c <tcp_receive>
  74168. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  74169. 801e104: 4b3b ldr r3, [pc, #236] @ (801e1f4 <tcp_process+0x7d0>)
  74170. 801e106: 781b ldrb r3, [r3, #0]
  74171. 801e108: f003 0310 and.w r3, r3, #16
  74172. 801e10c: 2b00 cmp r3, #0
  74173. 801e10e: d065 beq.n 801e1dc <tcp_process+0x7b8>
  74174. 801e110: 687b ldr r3, [r7, #4]
  74175. 801e112: 6d1a ldr r2, [r3, #80] @ 0x50
  74176. 801e114: 4b38 ldr r3, [pc, #224] @ (801e1f8 <tcp_process+0x7d4>)
  74177. 801e116: 681b ldr r3, [r3, #0]
  74178. 801e118: 429a cmp r2, r3
  74179. 801e11a: d15f bne.n 801e1dc <tcp_process+0x7b8>
  74180. 801e11c: 687b ldr r3, [r7, #4]
  74181. 801e11e: 6edb ldr r3, [r3, #108] @ 0x6c
  74182. 801e120: 2b00 cmp r3, #0
  74183. 801e122: d15b bne.n 801e1dc <tcp_process+0x7b8>
  74184. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  74185. tcp_pcb_purge(pcb);
  74186. 801e124: 6878 ldr r0, [r7, #4]
  74187. 801e126: f7fe fcef bl 801cb08 <tcp_pcb_purge>
  74188. TCP_RMV_ACTIVE(pcb);
  74189. 801e12a: 4b35 ldr r3, [pc, #212] @ (801e200 <tcp_process+0x7dc>)
  74190. 801e12c: 681b ldr r3, [r3, #0]
  74191. 801e12e: 687a ldr r2, [r7, #4]
  74192. 801e130: 429a cmp r2, r3
  74193. 801e132: d105 bne.n 801e140 <tcp_process+0x71c>
  74194. 801e134: 4b32 ldr r3, [pc, #200] @ (801e200 <tcp_process+0x7dc>)
  74195. 801e136: 681b ldr r3, [r3, #0]
  74196. 801e138: 68db ldr r3, [r3, #12]
  74197. 801e13a: 4a31 ldr r2, [pc, #196] @ (801e200 <tcp_process+0x7dc>)
  74198. 801e13c: 6013 str r3, [r2, #0]
  74199. 801e13e: e013 b.n 801e168 <tcp_process+0x744>
  74200. 801e140: 4b2f ldr r3, [pc, #188] @ (801e200 <tcp_process+0x7dc>)
  74201. 801e142: 681b ldr r3, [r3, #0]
  74202. 801e144: 61bb str r3, [r7, #24]
  74203. 801e146: e00c b.n 801e162 <tcp_process+0x73e>
  74204. 801e148: 69bb ldr r3, [r7, #24]
  74205. 801e14a: 68db ldr r3, [r3, #12]
  74206. 801e14c: 687a ldr r2, [r7, #4]
  74207. 801e14e: 429a cmp r2, r3
  74208. 801e150: d104 bne.n 801e15c <tcp_process+0x738>
  74209. 801e152: 687b ldr r3, [r7, #4]
  74210. 801e154: 68da ldr r2, [r3, #12]
  74211. 801e156: 69bb ldr r3, [r7, #24]
  74212. 801e158: 60da str r2, [r3, #12]
  74213. 801e15a: e005 b.n 801e168 <tcp_process+0x744>
  74214. 801e15c: 69bb ldr r3, [r7, #24]
  74215. 801e15e: 68db ldr r3, [r3, #12]
  74216. 801e160: 61bb str r3, [r7, #24]
  74217. 801e162: 69bb ldr r3, [r7, #24]
  74218. 801e164: 2b00 cmp r3, #0
  74219. 801e166: d1ef bne.n 801e148 <tcp_process+0x724>
  74220. 801e168: 687b ldr r3, [r7, #4]
  74221. 801e16a: 2200 movs r2, #0
  74222. 801e16c: 60da str r2, [r3, #12]
  74223. 801e16e: 4b1f ldr r3, [pc, #124] @ (801e1ec <tcp_process+0x7c8>)
  74224. 801e170: 2201 movs r2, #1
  74225. 801e172: 701a strb r2, [r3, #0]
  74226. pcb->state = TIME_WAIT;
  74227. 801e174: 687b ldr r3, [r7, #4]
  74228. 801e176: 220a movs r2, #10
  74229. 801e178: 751a strb r2, [r3, #20]
  74230. TCP_REG(&tcp_tw_pcbs, pcb);
  74231. 801e17a: 4b1d ldr r3, [pc, #116] @ (801e1f0 <tcp_process+0x7cc>)
  74232. 801e17c: 681a ldr r2, [r3, #0]
  74233. 801e17e: 687b ldr r3, [r7, #4]
  74234. 801e180: 60da str r2, [r3, #12]
  74235. 801e182: 4a1b ldr r2, [pc, #108] @ (801e1f0 <tcp_process+0x7cc>)
  74236. 801e184: 687b ldr r3, [r7, #4]
  74237. 801e186: 6013 str r3, [r2, #0]
  74238. 801e188: f003 f910 bl 80213ac <tcp_timer_needed>
  74239. }
  74240. break;
  74241. 801e18c: e026 b.n 801e1dc <tcp_process+0x7b8>
  74242. case LAST_ACK:
  74243. tcp_receive(pcb);
  74244. 801e18e: 6878 ldr r0, [r7, #4]
  74245. 801e190: f000 f93c bl 801e40c <tcp_receive>
  74246. if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) {
  74247. 801e194: 4b17 ldr r3, [pc, #92] @ (801e1f4 <tcp_process+0x7d0>)
  74248. 801e196: 781b ldrb r3, [r3, #0]
  74249. 801e198: f003 0310 and.w r3, r3, #16
  74250. 801e19c: 2b00 cmp r3, #0
  74251. 801e19e: d01f beq.n 801e1e0 <tcp_process+0x7bc>
  74252. 801e1a0: 687b ldr r3, [r7, #4]
  74253. 801e1a2: 6d1a ldr r2, [r3, #80] @ 0x50
  74254. 801e1a4: 4b14 ldr r3, [pc, #80] @ (801e1f8 <tcp_process+0x7d4>)
  74255. 801e1a6: 681b ldr r3, [r3, #0]
  74256. 801e1a8: 429a cmp r2, r3
  74257. 801e1aa: d119 bne.n 801e1e0 <tcp_process+0x7bc>
  74258. 801e1ac: 687b ldr r3, [r7, #4]
  74259. 801e1ae: 6edb ldr r3, [r3, #108] @ 0x6c
  74260. 801e1b0: 2b00 cmp r3, #0
  74261. 801e1b2: d115 bne.n 801e1e0 <tcp_process+0x7bc>
  74262. LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: LAST_ACK %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
  74263. /* bugfix #21699: don't set pcb->state to CLOSED here or we risk leaking segments */
  74264. recv_flags |= TF_CLOSED;
  74265. 801e1b4: 4b11 ldr r3, [pc, #68] @ (801e1fc <tcp_process+0x7d8>)
  74266. 801e1b6: 781b ldrb r3, [r3, #0]
  74267. 801e1b8: f043 0310 orr.w r3, r3, #16
  74268. 801e1bc: b2da uxtb r2, r3
  74269. 801e1be: 4b0f ldr r3, [pc, #60] @ (801e1fc <tcp_process+0x7d8>)
  74270. 801e1c0: 701a strb r2, [r3, #0]
  74271. }
  74272. break;
  74273. 801e1c2: e00d b.n 801e1e0 <tcp_process+0x7bc>
  74274. default:
  74275. break;
  74276. 801e1c4: bf00 nop
  74277. 801e1c6: e00c b.n 801e1e2 <tcp_process+0x7be>
  74278. break;
  74279. 801e1c8: bf00 nop
  74280. 801e1ca: e00a b.n 801e1e2 <tcp_process+0x7be>
  74281. break;
  74282. 801e1cc: bf00 nop
  74283. 801e1ce: e008 b.n 801e1e2 <tcp_process+0x7be>
  74284. break;
  74285. 801e1d0: bf00 nop
  74286. 801e1d2: e006 b.n 801e1e2 <tcp_process+0x7be>
  74287. break;
  74288. 801e1d4: bf00 nop
  74289. 801e1d6: e004 b.n 801e1e2 <tcp_process+0x7be>
  74290. break;
  74291. 801e1d8: bf00 nop
  74292. 801e1da: e002 b.n 801e1e2 <tcp_process+0x7be>
  74293. break;
  74294. 801e1dc: bf00 nop
  74295. 801e1de: e000 b.n 801e1e2 <tcp_process+0x7be>
  74296. break;
  74297. 801e1e0: bf00 nop
  74298. }
  74299. return ERR_OK;
  74300. 801e1e2: 2300 movs r3, #0
  74301. }
  74302. 801e1e4: 4618 mov r0, r3
  74303. 801e1e6: 3724 adds r7, #36 @ 0x24
  74304. 801e1e8: 46bd mov sp, r7
  74305. 801e1ea: bd90 pop {r4, r7, pc}
  74306. 801e1ec: 2402af6c .word 0x2402af6c
  74307. 801e1f0: 2402af68 .word 0x2402af68
  74308. 801e1f4: 2402afa0 .word 0x2402afa0
  74309. 801e1f8: 2402af98 .word 0x2402af98
  74310. 801e1fc: 2402afa1 .word 0x2402afa1
  74311. 801e200: 2402af64 .word 0x2402af64
  74312. 0801e204 <tcp_oos_insert_segment>:
  74313. *
  74314. * Called from tcp_receive()
  74315. */
  74316. static void
  74317. tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next)
  74318. {
  74319. 801e204: b590 push {r4, r7, lr}
  74320. 801e206: b085 sub sp, #20
  74321. 801e208: af00 add r7, sp, #0
  74322. 801e20a: 6078 str r0, [r7, #4]
  74323. 801e20c: 6039 str r1, [r7, #0]
  74324. struct tcp_seg *old_seg;
  74325. LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL);
  74326. 801e20e: 687b ldr r3, [r7, #4]
  74327. 801e210: 2b00 cmp r3, #0
  74328. 801e212: d106 bne.n 801e222 <tcp_oos_insert_segment+0x1e>
  74329. 801e214: 4b3b ldr r3, [pc, #236] @ (801e304 <tcp_oos_insert_segment+0x100>)
  74330. 801e216: f240 421f movw r2, #1055 @ 0x41f
  74331. 801e21a: 493b ldr r1, [pc, #236] @ (801e308 <tcp_oos_insert_segment+0x104>)
  74332. 801e21c: 483b ldr r0, [pc, #236] @ (801e30c <tcp_oos_insert_segment+0x108>)
  74333. 801e21e: f00b ffcd bl 802a1bc <iprintf>
  74334. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  74335. 801e222: 687b ldr r3, [r7, #4]
  74336. 801e224: 691b ldr r3, [r3, #16]
  74337. 801e226: 899b ldrh r3, [r3, #12]
  74338. 801e228: b29b uxth r3, r3
  74339. 801e22a: 4618 mov r0, r3
  74340. 801e22c: f7fb f86c bl 8019308 <lwip_htons>
  74341. 801e230: 4603 mov r3, r0
  74342. 801e232: b2db uxtb r3, r3
  74343. 801e234: f003 0301 and.w r3, r3, #1
  74344. 801e238: 2b00 cmp r3, #0
  74345. 801e23a: d028 beq.n 801e28e <tcp_oos_insert_segment+0x8a>
  74346. /* received segment overlaps all following segments */
  74347. tcp_segs_free(next);
  74348. 801e23c: 6838 ldr r0, [r7, #0]
  74349. 801e23e: f7fe f989 bl 801c554 <tcp_segs_free>
  74350. next = NULL;
  74351. 801e242: 2300 movs r3, #0
  74352. 801e244: 603b str r3, [r7, #0]
  74353. 801e246: e056 b.n 801e2f6 <tcp_oos_insert_segment+0xf2>
  74354. oos queue may have segments with FIN flag */
  74355. while (next &&
  74356. TCP_SEQ_GEQ((seqno + cseg->len),
  74357. (next->tcphdr->seqno + next->len))) {
  74358. /* cseg with FIN already processed */
  74359. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  74360. 801e248: 683b ldr r3, [r7, #0]
  74361. 801e24a: 691b ldr r3, [r3, #16]
  74362. 801e24c: 899b ldrh r3, [r3, #12]
  74363. 801e24e: b29b uxth r3, r3
  74364. 801e250: 4618 mov r0, r3
  74365. 801e252: f7fb f859 bl 8019308 <lwip_htons>
  74366. 801e256: 4603 mov r3, r0
  74367. 801e258: b2db uxtb r3, r3
  74368. 801e25a: f003 0301 and.w r3, r3, #1
  74369. 801e25e: 2b00 cmp r3, #0
  74370. 801e260: d00d beq.n 801e27e <tcp_oos_insert_segment+0x7a>
  74371. TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN);
  74372. 801e262: 687b ldr r3, [r7, #4]
  74373. 801e264: 691b ldr r3, [r3, #16]
  74374. 801e266: 899b ldrh r3, [r3, #12]
  74375. 801e268: b29c uxth r4, r3
  74376. 801e26a: 2001 movs r0, #1
  74377. 801e26c: f7fb f84c bl 8019308 <lwip_htons>
  74378. 801e270: 4603 mov r3, r0
  74379. 801e272: 461a mov r2, r3
  74380. 801e274: 687b ldr r3, [r7, #4]
  74381. 801e276: 691b ldr r3, [r3, #16]
  74382. 801e278: 4322 orrs r2, r4
  74383. 801e27a: b292 uxth r2, r2
  74384. 801e27c: 819a strh r2, [r3, #12]
  74385. }
  74386. old_seg = next;
  74387. 801e27e: 683b ldr r3, [r7, #0]
  74388. 801e280: 60fb str r3, [r7, #12]
  74389. next = next->next;
  74390. 801e282: 683b ldr r3, [r7, #0]
  74391. 801e284: 681b ldr r3, [r3, #0]
  74392. 801e286: 603b str r3, [r7, #0]
  74393. tcp_seg_free(old_seg);
  74394. 801e288: 68f8 ldr r0, [r7, #12]
  74395. 801e28a: f7fe f978 bl 801c57e <tcp_seg_free>
  74396. while (next &&
  74397. 801e28e: 683b ldr r3, [r7, #0]
  74398. 801e290: 2b00 cmp r3, #0
  74399. 801e292: d00e beq.n 801e2b2 <tcp_oos_insert_segment+0xae>
  74400. TCP_SEQ_GEQ((seqno + cseg->len),
  74401. 801e294: 687b ldr r3, [r7, #4]
  74402. 801e296: 891b ldrh r3, [r3, #8]
  74403. 801e298: 461a mov r2, r3
  74404. 801e29a: 4b1d ldr r3, [pc, #116] @ (801e310 <tcp_oos_insert_segment+0x10c>)
  74405. 801e29c: 681b ldr r3, [r3, #0]
  74406. 801e29e: 441a add r2, r3
  74407. 801e2a0: 683b ldr r3, [r7, #0]
  74408. 801e2a2: 691b ldr r3, [r3, #16]
  74409. 801e2a4: 685b ldr r3, [r3, #4]
  74410. 801e2a6: 6839 ldr r1, [r7, #0]
  74411. 801e2a8: 8909 ldrh r1, [r1, #8]
  74412. 801e2aa: 440b add r3, r1
  74413. 801e2ac: 1ad3 subs r3, r2, r3
  74414. while (next &&
  74415. 801e2ae: 2b00 cmp r3, #0
  74416. 801e2b0: daca bge.n 801e248 <tcp_oos_insert_segment+0x44>
  74417. }
  74418. if (next &&
  74419. 801e2b2: 683b ldr r3, [r7, #0]
  74420. 801e2b4: 2b00 cmp r3, #0
  74421. 801e2b6: d01e beq.n 801e2f6 <tcp_oos_insert_segment+0xf2>
  74422. TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) {
  74423. 801e2b8: 687b ldr r3, [r7, #4]
  74424. 801e2ba: 891b ldrh r3, [r3, #8]
  74425. 801e2bc: 461a mov r2, r3
  74426. 801e2be: 4b14 ldr r3, [pc, #80] @ (801e310 <tcp_oos_insert_segment+0x10c>)
  74427. 801e2c0: 681b ldr r3, [r3, #0]
  74428. 801e2c2: 441a add r2, r3
  74429. 801e2c4: 683b ldr r3, [r7, #0]
  74430. 801e2c6: 691b ldr r3, [r3, #16]
  74431. 801e2c8: 685b ldr r3, [r3, #4]
  74432. 801e2ca: 1ad3 subs r3, r2, r3
  74433. if (next &&
  74434. 801e2cc: 2b00 cmp r3, #0
  74435. 801e2ce: dd12 ble.n 801e2f6 <tcp_oos_insert_segment+0xf2>
  74436. /* We need to trim the incoming segment. */
  74437. cseg->len = (u16_t)(next->tcphdr->seqno - seqno);
  74438. 801e2d0: 683b ldr r3, [r7, #0]
  74439. 801e2d2: 691b ldr r3, [r3, #16]
  74440. 801e2d4: 685b ldr r3, [r3, #4]
  74441. 801e2d6: b29a uxth r2, r3
  74442. 801e2d8: 4b0d ldr r3, [pc, #52] @ (801e310 <tcp_oos_insert_segment+0x10c>)
  74443. 801e2da: 681b ldr r3, [r3, #0]
  74444. 801e2dc: b29b uxth r3, r3
  74445. 801e2de: 1ad3 subs r3, r2, r3
  74446. 801e2e0: b29a uxth r2, r3
  74447. 801e2e2: 687b ldr r3, [r7, #4]
  74448. 801e2e4: 811a strh r2, [r3, #8]
  74449. pbuf_realloc(cseg->p, cseg->len);
  74450. 801e2e6: 687b ldr r3, [r7, #4]
  74451. 801e2e8: 685a ldr r2, [r3, #4]
  74452. 801e2ea: 687b ldr r3, [r7, #4]
  74453. 801e2ec: 891b ldrh r3, [r3, #8]
  74454. 801e2ee: 4619 mov r1, r3
  74455. 801e2f0: 4610 mov r0, r2
  74456. 801e2f2: f7fc fb35 bl 801a960 <pbuf_realloc>
  74457. }
  74458. }
  74459. cseg->next = next;
  74460. 801e2f6: 687b ldr r3, [r7, #4]
  74461. 801e2f8: 683a ldr r2, [r7, #0]
  74462. 801e2fa: 601a str r2, [r3, #0]
  74463. }
  74464. 801e2fc: bf00 nop
  74465. 801e2fe: 3714 adds r7, #20
  74466. 801e300: 46bd mov sp, r7
  74467. 801e302: bd90 pop {r4, r7, pc}
  74468. 801e304: 0802f5a4 .word 0x0802f5a4
  74469. 801e308: 0802f864 .word 0x0802f864
  74470. 801e30c: 0802f5f0 .word 0x0802f5f0
  74471. 801e310: 2402af94 .word 0x2402af94
  74472. 0801e314 <tcp_free_acked_segments>:
  74473. /** Remove segments from a list if the incoming ACK acknowledges them */
  74474. static struct tcp_seg *
  74475. tcp_free_acked_segments(struct tcp_pcb *pcb, struct tcp_seg *seg_list, const char *dbg_list_name,
  74476. struct tcp_seg *dbg_other_seg_list)
  74477. {
  74478. 801e314: b5b0 push {r4, r5, r7, lr}
  74479. 801e316: b086 sub sp, #24
  74480. 801e318: af00 add r7, sp, #0
  74481. 801e31a: 60f8 str r0, [r7, #12]
  74482. 801e31c: 60b9 str r1, [r7, #8]
  74483. 801e31e: 607a str r2, [r7, #4]
  74484. 801e320: 603b str r3, [r7, #0]
  74485. u16_t clen;
  74486. LWIP_UNUSED_ARG(dbg_list_name);
  74487. LWIP_UNUSED_ARG(dbg_other_seg_list);
  74488. while (seg_list != NULL &&
  74489. 801e322: e03e b.n 801e3a2 <tcp_free_acked_segments+0x8e>
  74490. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: removing %"U32_F":%"U32_F" from pcb->%s\n",
  74491. lwip_ntohl(seg_list->tcphdr->seqno),
  74492. lwip_ntohl(seg_list->tcphdr->seqno) + TCP_TCPLEN(seg_list),
  74493. dbg_list_name));
  74494. next = seg_list;
  74495. 801e324: 68bb ldr r3, [r7, #8]
  74496. 801e326: 617b str r3, [r7, #20]
  74497. seg_list = seg_list->next;
  74498. 801e328: 68bb ldr r3, [r7, #8]
  74499. 801e32a: 681b ldr r3, [r3, #0]
  74500. 801e32c: 60bb str r3, [r7, #8]
  74501. clen = pbuf_clen(next->p);
  74502. 801e32e: 697b ldr r3, [r7, #20]
  74503. 801e330: 685b ldr r3, [r3, #4]
  74504. 801e332: 4618 mov r0, r3
  74505. 801e334: f7fc fd58 bl 801ade8 <pbuf_clen>
  74506. 801e338: 4603 mov r3, r0
  74507. 801e33a: 827b strh r3, [r7, #18]
  74508. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_receive: queuelen %"TCPWNDSIZE_F" ... ",
  74509. (tcpwnd_size_t)pcb->snd_queuelen));
  74510. LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= clen));
  74511. 801e33c: 68fb ldr r3, [r7, #12]
  74512. 801e33e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  74513. 801e342: 8a7a ldrh r2, [r7, #18]
  74514. 801e344: 429a cmp r2, r3
  74515. 801e346: d906 bls.n 801e356 <tcp_free_acked_segments+0x42>
  74516. 801e348: 4b2a ldr r3, [pc, #168] @ (801e3f4 <tcp_free_acked_segments+0xe0>)
  74517. 801e34a: f240 4257 movw r2, #1111 @ 0x457
  74518. 801e34e: 492a ldr r1, [pc, #168] @ (801e3f8 <tcp_free_acked_segments+0xe4>)
  74519. 801e350: 482a ldr r0, [pc, #168] @ (801e3fc <tcp_free_acked_segments+0xe8>)
  74520. 801e352: f00b ff33 bl 802a1bc <iprintf>
  74521. pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen);
  74522. 801e356: 68fb ldr r3, [r7, #12]
  74523. 801e358: f8b3 2066 ldrh.w r2, [r3, #102] @ 0x66
  74524. 801e35c: 8a7b ldrh r3, [r7, #18]
  74525. 801e35e: 1ad3 subs r3, r2, r3
  74526. 801e360: b29a uxth r2, r3
  74527. 801e362: 68fb ldr r3, [r7, #12]
  74528. 801e364: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  74529. recv_acked = (tcpwnd_size_t)(recv_acked + next->len);
  74530. 801e368: 697b ldr r3, [r7, #20]
  74531. 801e36a: 891a ldrh r2, [r3, #8]
  74532. 801e36c: 4b24 ldr r3, [pc, #144] @ (801e400 <tcp_free_acked_segments+0xec>)
  74533. 801e36e: 881b ldrh r3, [r3, #0]
  74534. 801e370: 4413 add r3, r2
  74535. 801e372: b29a uxth r2, r3
  74536. 801e374: 4b22 ldr r3, [pc, #136] @ (801e400 <tcp_free_acked_segments+0xec>)
  74537. 801e376: 801a strh r2, [r3, #0]
  74538. tcp_seg_free(next);
  74539. 801e378: 6978 ldr r0, [r7, #20]
  74540. 801e37a: f7fe f900 bl 801c57e <tcp_seg_free>
  74541. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("%"TCPWNDSIZE_F" (after freeing %s)\n",
  74542. (tcpwnd_size_t)pcb->snd_queuelen,
  74543. dbg_list_name));
  74544. if (pcb->snd_queuelen != 0) {
  74545. 801e37e: 68fb ldr r3, [r7, #12]
  74546. 801e380: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  74547. 801e384: 2b00 cmp r3, #0
  74548. 801e386: d00c beq.n 801e3a2 <tcp_free_acked_segments+0x8e>
  74549. LWIP_ASSERT("tcp_receive: valid queue length",
  74550. 801e388: 68bb ldr r3, [r7, #8]
  74551. 801e38a: 2b00 cmp r3, #0
  74552. 801e38c: d109 bne.n 801e3a2 <tcp_free_acked_segments+0x8e>
  74553. 801e38e: 683b ldr r3, [r7, #0]
  74554. 801e390: 2b00 cmp r3, #0
  74555. 801e392: d106 bne.n 801e3a2 <tcp_free_acked_segments+0x8e>
  74556. 801e394: 4b17 ldr r3, [pc, #92] @ (801e3f4 <tcp_free_acked_segments+0xe0>)
  74557. 801e396: f240 4261 movw r2, #1121 @ 0x461
  74558. 801e39a: 491a ldr r1, [pc, #104] @ (801e404 <tcp_free_acked_segments+0xf0>)
  74559. 801e39c: 4817 ldr r0, [pc, #92] @ (801e3fc <tcp_free_acked_segments+0xe8>)
  74560. 801e39e: f00b ff0d bl 802a1bc <iprintf>
  74561. while (seg_list != NULL &&
  74562. 801e3a2: 68bb ldr r3, [r7, #8]
  74563. 801e3a4: 2b00 cmp r3, #0
  74564. 801e3a6: d020 beq.n 801e3ea <tcp_free_acked_segments+0xd6>
  74565. TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) +
  74566. 801e3a8: 68bb ldr r3, [r7, #8]
  74567. 801e3aa: 691b ldr r3, [r3, #16]
  74568. 801e3ac: 685b ldr r3, [r3, #4]
  74569. 801e3ae: 4618 mov r0, r3
  74570. 801e3b0: f7fa ffbf bl 8019332 <lwip_htonl>
  74571. 801e3b4: 4604 mov r4, r0
  74572. 801e3b6: 68bb ldr r3, [r7, #8]
  74573. 801e3b8: 891b ldrh r3, [r3, #8]
  74574. 801e3ba: 461d mov r5, r3
  74575. 801e3bc: 68bb ldr r3, [r7, #8]
  74576. 801e3be: 691b ldr r3, [r3, #16]
  74577. 801e3c0: 899b ldrh r3, [r3, #12]
  74578. 801e3c2: b29b uxth r3, r3
  74579. 801e3c4: 4618 mov r0, r3
  74580. 801e3c6: f7fa ff9f bl 8019308 <lwip_htons>
  74581. 801e3ca: 4603 mov r3, r0
  74582. 801e3cc: b2db uxtb r3, r3
  74583. 801e3ce: f003 0303 and.w r3, r3, #3
  74584. 801e3d2: 2b00 cmp r3, #0
  74585. 801e3d4: d001 beq.n 801e3da <tcp_free_acked_segments+0xc6>
  74586. 801e3d6: 2301 movs r3, #1
  74587. 801e3d8: e000 b.n 801e3dc <tcp_free_acked_segments+0xc8>
  74588. 801e3da: 2300 movs r3, #0
  74589. 801e3dc: 442b add r3, r5
  74590. 801e3de: 18e2 adds r2, r4, r3
  74591. 801e3e0: 4b09 ldr r3, [pc, #36] @ (801e408 <tcp_free_acked_segments+0xf4>)
  74592. 801e3e2: 681b ldr r3, [r3, #0]
  74593. 801e3e4: 1ad3 subs r3, r2, r3
  74594. while (seg_list != NULL &&
  74595. 801e3e6: 2b00 cmp r3, #0
  74596. 801e3e8: dd9c ble.n 801e324 <tcp_free_acked_segments+0x10>
  74597. seg_list != NULL || dbg_other_seg_list != NULL);
  74598. }
  74599. }
  74600. return seg_list;
  74601. 801e3ea: 68bb ldr r3, [r7, #8]
  74602. }
  74603. 801e3ec: 4618 mov r0, r3
  74604. 801e3ee: 3718 adds r7, #24
  74605. 801e3f0: 46bd mov sp, r7
  74606. 801e3f2: bdb0 pop {r4, r5, r7, pc}
  74607. 801e3f4: 0802f5a4 .word 0x0802f5a4
  74608. 801e3f8: 0802f88c .word 0x0802f88c
  74609. 801e3fc: 0802f5f0 .word 0x0802f5f0
  74610. 801e400: 2402af9c .word 0x2402af9c
  74611. 801e404: 0802f8b4 .word 0x0802f8b4
  74612. 801e408: 2402af98 .word 0x2402af98
  74613. 0801e40c <tcp_receive>:
  74614. *
  74615. * Called from tcp_process().
  74616. */
  74617. static void
  74618. tcp_receive(struct tcp_pcb *pcb)
  74619. {
  74620. 801e40c: b5b0 push {r4, r5, r7, lr}
  74621. 801e40e: b094 sub sp, #80 @ 0x50
  74622. 801e410: af00 add r7, sp, #0
  74623. 801e412: 6078 str r0, [r7, #4]
  74624. s16_t m;
  74625. u32_t right_wnd_edge;
  74626. int found_dupack = 0;
  74627. 801e414: 2300 movs r3, #0
  74628. 801e416: 64bb str r3, [r7, #72] @ 0x48
  74629. LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL);
  74630. 801e418: 687b ldr r3, [r7, #4]
  74631. 801e41a: 2b00 cmp r3, #0
  74632. 801e41c: d106 bne.n 801e42c <tcp_receive+0x20>
  74633. 801e41e: 4b91 ldr r3, [pc, #580] @ (801e664 <tcp_receive+0x258>)
  74634. 801e420: f240 427b movw r2, #1147 @ 0x47b
  74635. 801e424: 4990 ldr r1, [pc, #576] @ (801e668 <tcp_receive+0x25c>)
  74636. 801e426: 4891 ldr r0, [pc, #580] @ (801e66c <tcp_receive+0x260>)
  74637. 801e428: f00b fec8 bl 802a1bc <iprintf>
  74638. LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED);
  74639. 801e42c: 687b ldr r3, [r7, #4]
  74640. 801e42e: 7d1b ldrb r3, [r3, #20]
  74641. 801e430: 2b03 cmp r3, #3
  74642. 801e432: d806 bhi.n 801e442 <tcp_receive+0x36>
  74643. 801e434: 4b8b ldr r3, [pc, #556] @ (801e664 <tcp_receive+0x258>)
  74644. 801e436: f240 427c movw r2, #1148 @ 0x47c
  74645. 801e43a: 498d ldr r1, [pc, #564] @ (801e670 <tcp_receive+0x264>)
  74646. 801e43c: 488b ldr r0, [pc, #556] @ (801e66c <tcp_receive+0x260>)
  74647. 801e43e: f00b febd bl 802a1bc <iprintf>
  74648. if (flags & TCP_ACK) {
  74649. 801e442: 4b8c ldr r3, [pc, #560] @ (801e674 <tcp_receive+0x268>)
  74650. 801e444: 781b ldrb r3, [r3, #0]
  74651. 801e446: f003 0310 and.w r3, r3, #16
  74652. 801e44a: 2b00 cmp r3, #0
  74653. 801e44c: f000 8264 beq.w 801e918 <tcp_receive+0x50c>
  74654. right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2;
  74655. 801e450: 687b ldr r3, [r7, #4]
  74656. 801e452: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  74657. 801e456: 461a mov r2, r3
  74658. 801e458: 687b ldr r3, [r7, #4]
  74659. 801e45a: 6d9b ldr r3, [r3, #88] @ 0x58
  74660. 801e45c: 4413 add r3, r2
  74661. 801e45e: 633b str r3, [r7, #48] @ 0x30
  74662. /* Update window. */
  74663. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  74664. 801e460: 687b ldr r3, [r7, #4]
  74665. 801e462: 6d5a ldr r2, [r3, #84] @ 0x54
  74666. 801e464: 4b84 ldr r3, [pc, #528] @ (801e678 <tcp_receive+0x26c>)
  74667. 801e466: 681b ldr r3, [r3, #0]
  74668. 801e468: 1ad3 subs r3, r2, r3
  74669. 801e46a: 2b00 cmp r3, #0
  74670. 801e46c: db1b blt.n 801e4a6 <tcp_receive+0x9a>
  74671. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  74672. 801e46e: 687b ldr r3, [r7, #4]
  74673. 801e470: 6d5a ldr r2, [r3, #84] @ 0x54
  74674. 801e472: 4b81 ldr r3, [pc, #516] @ (801e678 <tcp_receive+0x26c>)
  74675. 801e474: 681b ldr r3, [r3, #0]
  74676. if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
  74677. 801e476: 429a cmp r2, r3
  74678. 801e478: d106 bne.n 801e488 <tcp_receive+0x7c>
  74679. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  74680. 801e47a: 687b ldr r3, [r7, #4]
  74681. 801e47c: 6d9a ldr r2, [r3, #88] @ 0x58
  74682. 801e47e: 4b7f ldr r3, [pc, #508] @ (801e67c <tcp_receive+0x270>)
  74683. 801e480: 681b ldr r3, [r3, #0]
  74684. 801e482: 1ad3 subs r3, r2, r3
  74685. 801e484: 2b00 cmp r3, #0
  74686. 801e486: db0e blt.n 801e4a6 <tcp_receive+0x9a>
  74687. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  74688. 801e488: 687b ldr r3, [r7, #4]
  74689. 801e48a: 6d9a ldr r2, [r3, #88] @ 0x58
  74690. 801e48c: 4b7b ldr r3, [pc, #492] @ (801e67c <tcp_receive+0x270>)
  74691. 801e48e: 681b ldr r3, [r3, #0]
  74692. (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
  74693. 801e490: 429a cmp r2, r3
  74694. 801e492: d125 bne.n 801e4e0 <tcp_receive+0xd4>
  74695. (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
  74696. 801e494: 4b7a ldr r3, [pc, #488] @ (801e680 <tcp_receive+0x274>)
  74697. 801e496: 681b ldr r3, [r3, #0]
  74698. 801e498: 89db ldrh r3, [r3, #14]
  74699. 801e49a: b29a uxth r2, r3
  74700. 801e49c: 687b ldr r3, [r7, #4]
  74701. 801e49e: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  74702. 801e4a2: 429a cmp r2, r3
  74703. 801e4a4: d91c bls.n 801e4e0 <tcp_receive+0xd4>
  74704. pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd);
  74705. 801e4a6: 4b76 ldr r3, [pc, #472] @ (801e680 <tcp_receive+0x274>)
  74706. 801e4a8: 681b ldr r3, [r3, #0]
  74707. 801e4aa: 89db ldrh r3, [r3, #14]
  74708. 801e4ac: b29a uxth r2, r3
  74709. 801e4ae: 687b ldr r3, [r7, #4]
  74710. 801e4b0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  74711. /* keep track of the biggest window announced by the remote host to calculate
  74712. the maximum segment size */
  74713. if (pcb->snd_wnd_max < pcb->snd_wnd) {
  74714. 801e4b4: 687b ldr r3, [r7, #4]
  74715. 801e4b6: f8b3 2062 ldrh.w r2, [r3, #98] @ 0x62
  74716. 801e4ba: 687b ldr r3, [r7, #4]
  74717. 801e4bc: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  74718. 801e4c0: 429a cmp r2, r3
  74719. 801e4c2: d205 bcs.n 801e4d0 <tcp_receive+0xc4>
  74720. pcb->snd_wnd_max = pcb->snd_wnd;
  74721. 801e4c4: 687b ldr r3, [r7, #4]
  74722. 801e4c6: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  74723. 801e4ca: 687b ldr r3, [r7, #4]
  74724. 801e4cc: f8a3 2062 strh.w r2, [r3, #98] @ 0x62
  74725. }
  74726. pcb->snd_wl1 = seqno;
  74727. 801e4d0: 4b69 ldr r3, [pc, #420] @ (801e678 <tcp_receive+0x26c>)
  74728. 801e4d2: 681a ldr r2, [r3, #0]
  74729. 801e4d4: 687b ldr r3, [r7, #4]
  74730. 801e4d6: 655a str r2, [r3, #84] @ 0x54
  74731. pcb->snd_wl2 = ackno;
  74732. 801e4d8: 4b68 ldr r3, [pc, #416] @ (801e67c <tcp_receive+0x270>)
  74733. 801e4da: 681a ldr r2, [r3, #0]
  74734. 801e4dc: 687b ldr r3, [r7, #4]
  74735. 801e4de: 659a str r2, [r3, #88] @ 0x58
  74736. * If it only passes 1, should reset dupack counter
  74737. *
  74738. */
  74739. /* Clause 1 */
  74740. if (TCP_SEQ_LEQ(ackno, pcb->lastack)) {
  74741. 801e4e0: 4b66 ldr r3, [pc, #408] @ (801e67c <tcp_receive+0x270>)
  74742. 801e4e2: 681a ldr r2, [r3, #0]
  74743. 801e4e4: 687b ldr r3, [r7, #4]
  74744. 801e4e6: 6c5b ldr r3, [r3, #68] @ 0x44
  74745. 801e4e8: 1ad3 subs r3, r2, r3
  74746. 801e4ea: 2b00 cmp r3, #0
  74747. 801e4ec: dc58 bgt.n 801e5a0 <tcp_receive+0x194>
  74748. /* Clause 2 */
  74749. if (tcplen == 0) {
  74750. 801e4ee: 4b65 ldr r3, [pc, #404] @ (801e684 <tcp_receive+0x278>)
  74751. 801e4f0: 881b ldrh r3, [r3, #0]
  74752. 801e4f2: 2b00 cmp r3, #0
  74753. 801e4f4: d14b bne.n 801e58e <tcp_receive+0x182>
  74754. /* Clause 3 */
  74755. if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) {
  74756. 801e4f6: 687b ldr r3, [r7, #4]
  74757. 801e4f8: 6d9b ldr r3, [r3, #88] @ 0x58
  74758. 801e4fa: 687a ldr r2, [r7, #4]
  74759. 801e4fc: f8b2 2060 ldrh.w r2, [r2, #96] @ 0x60
  74760. 801e500: 4413 add r3, r2
  74761. 801e502: 6b3a ldr r2, [r7, #48] @ 0x30
  74762. 801e504: 429a cmp r2, r3
  74763. 801e506: d142 bne.n 801e58e <tcp_receive+0x182>
  74764. /* Clause 4 */
  74765. if (pcb->rtime >= 0) {
  74766. 801e508: 687b ldr r3, [r7, #4]
  74767. 801e50a: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  74768. 801e50e: 2b00 cmp r3, #0
  74769. 801e510: db3d blt.n 801e58e <tcp_receive+0x182>
  74770. /* Clause 5 */
  74771. if (pcb->lastack == ackno) {
  74772. 801e512: 687b ldr r3, [r7, #4]
  74773. 801e514: 6c5a ldr r2, [r3, #68] @ 0x44
  74774. 801e516: 4b59 ldr r3, [pc, #356] @ (801e67c <tcp_receive+0x270>)
  74775. 801e518: 681b ldr r3, [r3, #0]
  74776. 801e51a: 429a cmp r2, r3
  74777. 801e51c: d137 bne.n 801e58e <tcp_receive+0x182>
  74778. found_dupack = 1;
  74779. 801e51e: 2301 movs r3, #1
  74780. 801e520: 64bb str r3, [r7, #72] @ 0x48
  74781. if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) {
  74782. 801e522: 687b ldr r3, [r7, #4]
  74783. 801e524: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  74784. 801e528: 2bff cmp r3, #255 @ 0xff
  74785. 801e52a: d007 beq.n 801e53c <tcp_receive+0x130>
  74786. ++pcb->dupacks;
  74787. 801e52c: 687b ldr r3, [r7, #4]
  74788. 801e52e: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  74789. 801e532: 3301 adds r3, #1
  74790. 801e534: b2da uxtb r2, r3
  74791. 801e536: 687b ldr r3, [r7, #4]
  74792. 801e538: f883 2043 strb.w r2, [r3, #67] @ 0x43
  74793. }
  74794. if (pcb->dupacks > 3) {
  74795. 801e53c: 687b ldr r3, [r7, #4]
  74796. 801e53e: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  74797. 801e542: 2b03 cmp r3, #3
  74798. 801e544: d91b bls.n 801e57e <tcp_receive+0x172>
  74799. /* Inflate the congestion window */
  74800. TCP_WND_INC(pcb->cwnd, pcb->mss);
  74801. 801e546: 687b ldr r3, [r7, #4]
  74802. 801e548: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  74803. 801e54c: 687b ldr r3, [r7, #4]
  74804. 801e54e: 8e5b ldrh r3, [r3, #50] @ 0x32
  74805. 801e550: 4413 add r3, r2
  74806. 801e552: b29a uxth r2, r3
  74807. 801e554: 687b ldr r3, [r7, #4]
  74808. 801e556: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  74809. 801e55a: 429a cmp r2, r3
  74810. 801e55c: d30a bcc.n 801e574 <tcp_receive+0x168>
  74811. 801e55e: 687b ldr r3, [r7, #4]
  74812. 801e560: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  74813. 801e564: 687b ldr r3, [r7, #4]
  74814. 801e566: 8e5b ldrh r3, [r3, #50] @ 0x32
  74815. 801e568: 4413 add r3, r2
  74816. 801e56a: b29a uxth r2, r3
  74817. 801e56c: 687b ldr r3, [r7, #4]
  74818. 801e56e: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  74819. 801e572: e004 b.n 801e57e <tcp_receive+0x172>
  74820. 801e574: 687b ldr r3, [r7, #4]
  74821. 801e576: f64f 72ff movw r2, #65535 @ 0xffff
  74822. 801e57a: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  74823. }
  74824. if (pcb->dupacks >= 3) {
  74825. 801e57e: 687b ldr r3, [r7, #4]
  74826. 801e580: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  74827. 801e584: 2b02 cmp r3, #2
  74828. 801e586: d902 bls.n 801e58e <tcp_receive+0x182>
  74829. /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */
  74830. tcp_rexmit_fast(pcb);
  74831. 801e588: 6878 ldr r0, [r7, #4]
  74832. 801e58a: f002 fbb3 bl 8020cf4 <tcp_rexmit_fast>
  74833. }
  74834. }
  74835. }
  74836. /* If Clause (1) or more is true, but not a duplicate ack, reset
  74837. * count of consecutive duplicate acks */
  74838. if (!found_dupack) {
  74839. 801e58e: 6cbb ldr r3, [r7, #72] @ 0x48
  74840. 801e590: 2b00 cmp r3, #0
  74841. 801e592: f040 8161 bne.w 801e858 <tcp_receive+0x44c>
  74842. pcb->dupacks = 0;
  74843. 801e596: 687b ldr r3, [r7, #4]
  74844. 801e598: 2200 movs r2, #0
  74845. 801e59a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  74846. 801e59e: e15b b.n 801e858 <tcp_receive+0x44c>
  74847. }
  74848. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  74849. 801e5a0: 4b36 ldr r3, [pc, #216] @ (801e67c <tcp_receive+0x270>)
  74850. 801e5a2: 681a ldr r2, [r3, #0]
  74851. 801e5a4: 687b ldr r3, [r7, #4]
  74852. 801e5a6: 6c5b ldr r3, [r3, #68] @ 0x44
  74853. 801e5a8: 1ad3 subs r3, r2, r3
  74854. 801e5aa: 3b01 subs r3, #1
  74855. 801e5ac: 2b00 cmp r3, #0
  74856. 801e5ae: f2c0 814e blt.w 801e84e <tcp_receive+0x442>
  74857. 801e5b2: 4b32 ldr r3, [pc, #200] @ (801e67c <tcp_receive+0x270>)
  74858. 801e5b4: 681a ldr r2, [r3, #0]
  74859. 801e5b6: 687b ldr r3, [r7, #4]
  74860. 801e5b8: 6d1b ldr r3, [r3, #80] @ 0x50
  74861. 801e5ba: 1ad3 subs r3, r2, r3
  74862. 801e5bc: 2b00 cmp r3, #0
  74863. 801e5be: f300 8146 bgt.w 801e84e <tcp_receive+0x442>
  74864. tcpwnd_size_t acked;
  74865. /* Reset the "IN Fast Retransmit" flag, since we are no longer
  74866. in fast retransmit. Also reset the congestion window to the
  74867. slow start threshold. */
  74868. if (pcb->flags & TF_INFR) {
  74869. 801e5c2: 687b ldr r3, [r7, #4]
  74870. 801e5c4: 8b5b ldrh r3, [r3, #26]
  74871. 801e5c6: f003 0304 and.w r3, r3, #4
  74872. 801e5ca: 2b00 cmp r3, #0
  74873. 801e5cc: d010 beq.n 801e5f0 <tcp_receive+0x1e4>
  74874. tcp_clear_flags(pcb, TF_INFR);
  74875. 801e5ce: 687b ldr r3, [r7, #4]
  74876. 801e5d0: 8b5b ldrh r3, [r3, #26]
  74877. 801e5d2: f023 0304 bic.w r3, r3, #4
  74878. 801e5d6: b29a uxth r2, r3
  74879. 801e5d8: 687b ldr r3, [r7, #4]
  74880. 801e5da: 835a strh r2, [r3, #26]
  74881. pcb->cwnd = pcb->ssthresh;
  74882. 801e5dc: 687b ldr r3, [r7, #4]
  74883. 801e5de: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  74884. 801e5e2: 687b ldr r3, [r7, #4]
  74885. 801e5e4: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  74886. pcb->bytes_acked = 0;
  74887. 801e5e8: 687b ldr r3, [r7, #4]
  74888. 801e5ea: 2200 movs r2, #0
  74889. 801e5ec: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  74890. }
  74891. /* Reset the number of retransmissions. */
  74892. pcb->nrtx = 0;
  74893. 801e5f0: 687b ldr r3, [r7, #4]
  74894. 801e5f2: 2200 movs r2, #0
  74895. 801e5f4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  74896. /* Reset the retransmission time-out. */
  74897. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  74898. 801e5f8: 687b ldr r3, [r7, #4]
  74899. 801e5fa: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  74900. 801e5fe: 10db asrs r3, r3, #3
  74901. 801e600: b21b sxth r3, r3
  74902. 801e602: b29a uxth r2, r3
  74903. 801e604: 687b ldr r3, [r7, #4]
  74904. 801e606: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  74905. 801e60a: b29b uxth r3, r3
  74906. 801e60c: 4413 add r3, r2
  74907. 801e60e: b29b uxth r3, r3
  74908. 801e610: b21a sxth r2, r3
  74909. 801e612: 687b ldr r3, [r7, #4]
  74910. 801e614: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  74911. /* Record how much data this ACK acks */
  74912. acked = (tcpwnd_size_t)(ackno - pcb->lastack);
  74913. 801e618: 4b18 ldr r3, [pc, #96] @ (801e67c <tcp_receive+0x270>)
  74914. 801e61a: 681b ldr r3, [r3, #0]
  74915. 801e61c: b29a uxth r2, r3
  74916. 801e61e: 687b ldr r3, [r7, #4]
  74917. 801e620: 6c5b ldr r3, [r3, #68] @ 0x44
  74918. 801e622: b29b uxth r3, r3
  74919. 801e624: 1ad3 subs r3, r2, r3
  74920. 801e626: 85fb strh r3, [r7, #46] @ 0x2e
  74921. /* Reset the fast retransmit variables. */
  74922. pcb->dupacks = 0;
  74923. 801e628: 687b ldr r3, [r7, #4]
  74924. 801e62a: 2200 movs r2, #0
  74925. 801e62c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  74926. pcb->lastack = ackno;
  74927. 801e630: 4b12 ldr r3, [pc, #72] @ (801e67c <tcp_receive+0x270>)
  74928. 801e632: 681a ldr r2, [r3, #0]
  74929. 801e634: 687b ldr r3, [r7, #4]
  74930. 801e636: 645a str r2, [r3, #68] @ 0x44
  74931. /* Update the congestion control variables (cwnd and
  74932. ssthresh). */
  74933. if (pcb->state >= ESTABLISHED) {
  74934. 801e638: 687b ldr r3, [r7, #4]
  74935. 801e63a: 7d1b ldrb r3, [r3, #20]
  74936. 801e63c: 2b03 cmp r3, #3
  74937. 801e63e: f240 8097 bls.w 801e770 <tcp_receive+0x364>
  74938. if (pcb->cwnd < pcb->ssthresh) {
  74939. 801e642: 687b ldr r3, [r7, #4]
  74940. 801e644: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  74941. 801e648: 687b ldr r3, [r7, #4]
  74942. 801e64a: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  74943. 801e64e: 429a cmp r2, r3
  74944. 801e650: d245 bcs.n 801e6de <tcp_receive+0x2d2>
  74945. tcpwnd_size_t increase;
  74946. /* limit to 1 SMSS segment during period following RTO */
  74947. u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2;
  74948. 801e652: 687b ldr r3, [r7, #4]
  74949. 801e654: 8b5b ldrh r3, [r3, #26]
  74950. 801e656: f403 6300 and.w r3, r3, #2048 @ 0x800
  74951. 801e65a: 2b00 cmp r3, #0
  74952. 801e65c: d014 beq.n 801e688 <tcp_receive+0x27c>
  74953. 801e65e: 2301 movs r3, #1
  74954. 801e660: e013 b.n 801e68a <tcp_receive+0x27e>
  74955. 801e662: bf00 nop
  74956. 801e664: 0802f5a4 .word 0x0802f5a4
  74957. 801e668: 0802f8d4 .word 0x0802f8d4
  74958. 801e66c: 0802f5f0 .word 0x0802f5f0
  74959. 801e670: 0802f8f0 .word 0x0802f8f0
  74960. 801e674: 2402afa0 .word 0x2402afa0
  74961. 801e678: 2402af94 .word 0x2402af94
  74962. 801e67c: 2402af98 .word 0x2402af98
  74963. 801e680: 2402af84 .word 0x2402af84
  74964. 801e684: 2402af9e .word 0x2402af9e
  74965. 801e688: 2302 movs r3, #2
  74966. 801e68a: f887 302d strb.w r3, [r7, #45] @ 0x2d
  74967. /* RFC 3465, section 2.2 Slow Start */
  74968. increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss));
  74969. 801e68e: f897 302d ldrb.w r3, [r7, #45] @ 0x2d
  74970. 801e692: b29a uxth r2, r3
  74971. 801e694: 687b ldr r3, [r7, #4]
  74972. 801e696: 8e5b ldrh r3, [r3, #50] @ 0x32
  74973. 801e698: fb12 f303 smulbb r3, r2, r3
  74974. 801e69c: b29b uxth r3, r3
  74975. 801e69e: 8dfa ldrh r2, [r7, #46] @ 0x2e
  74976. 801e6a0: 4293 cmp r3, r2
  74977. 801e6a2: bf28 it cs
  74978. 801e6a4: 4613 movcs r3, r2
  74979. 801e6a6: 857b strh r3, [r7, #42] @ 0x2a
  74980. TCP_WND_INC(pcb->cwnd, increase);
  74981. 801e6a8: 687b ldr r3, [r7, #4]
  74982. 801e6aa: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  74983. 801e6ae: 8d7b ldrh r3, [r7, #42] @ 0x2a
  74984. 801e6b0: 4413 add r3, r2
  74985. 801e6b2: b29a uxth r2, r3
  74986. 801e6b4: 687b ldr r3, [r7, #4]
  74987. 801e6b6: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  74988. 801e6ba: 429a cmp r2, r3
  74989. 801e6bc: d309 bcc.n 801e6d2 <tcp_receive+0x2c6>
  74990. 801e6be: 687b ldr r3, [r7, #4]
  74991. 801e6c0: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  74992. 801e6c4: 8d7b ldrh r3, [r7, #42] @ 0x2a
  74993. 801e6c6: 4413 add r3, r2
  74994. 801e6c8: b29a uxth r2, r3
  74995. 801e6ca: 687b ldr r3, [r7, #4]
  74996. 801e6cc: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  74997. 801e6d0: e04e b.n 801e770 <tcp_receive+0x364>
  74998. 801e6d2: 687b ldr r3, [r7, #4]
  74999. 801e6d4: f64f 72ff movw r2, #65535 @ 0xffff
  75000. 801e6d8: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75001. 801e6dc: e048 b.n 801e770 <tcp_receive+0x364>
  75002. LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_receive: slow start cwnd %"TCPWNDSIZE_F"\n", pcb->cwnd));
  75003. } else {
  75004. /* RFC 3465, section 2.1 Congestion Avoidance */
  75005. TCP_WND_INC(pcb->bytes_acked, acked);
  75006. 801e6de: 687b ldr r3, [r7, #4]
  75007. 801e6e0: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75008. 801e6e4: 8dfb ldrh r3, [r7, #46] @ 0x2e
  75009. 801e6e6: 4413 add r3, r2
  75010. 801e6e8: b29a uxth r2, r3
  75011. 801e6ea: 687b ldr r3, [r7, #4]
  75012. 801e6ec: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  75013. 801e6f0: 429a cmp r2, r3
  75014. 801e6f2: d309 bcc.n 801e708 <tcp_receive+0x2fc>
  75015. 801e6f4: 687b ldr r3, [r7, #4]
  75016. 801e6f6: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75017. 801e6fa: 8dfb ldrh r3, [r7, #46] @ 0x2e
  75018. 801e6fc: 4413 add r3, r2
  75019. 801e6fe: b29a uxth r2, r3
  75020. 801e700: 687b ldr r3, [r7, #4]
  75021. 801e702: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  75022. 801e706: e004 b.n 801e712 <tcp_receive+0x306>
  75023. 801e708: 687b ldr r3, [r7, #4]
  75024. 801e70a: f64f 72ff movw r2, #65535 @ 0xffff
  75025. 801e70e: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  75026. if (pcb->bytes_acked >= pcb->cwnd) {
  75027. 801e712: 687b ldr r3, [r7, #4]
  75028. 801e714: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75029. 801e718: 687b ldr r3, [r7, #4]
  75030. 801e71a: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75031. 801e71e: 429a cmp r2, r3
  75032. 801e720: d326 bcc.n 801e770 <tcp_receive+0x364>
  75033. pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd);
  75034. 801e722: 687b ldr r3, [r7, #4]
  75035. 801e724: f8b3 206a ldrh.w r2, [r3, #106] @ 0x6a
  75036. 801e728: 687b ldr r3, [r7, #4]
  75037. 801e72a: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75038. 801e72e: 1ad3 subs r3, r2, r3
  75039. 801e730: b29a uxth r2, r3
  75040. 801e732: 687b ldr r3, [r7, #4]
  75041. 801e734: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  75042. TCP_WND_INC(pcb->cwnd, pcb->mss);
  75043. 801e738: 687b ldr r3, [r7, #4]
  75044. 801e73a: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75045. 801e73e: 687b ldr r3, [r7, #4]
  75046. 801e740: 8e5b ldrh r3, [r3, #50] @ 0x32
  75047. 801e742: 4413 add r3, r2
  75048. 801e744: b29a uxth r2, r3
  75049. 801e746: 687b ldr r3, [r7, #4]
  75050. 801e748: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  75051. 801e74c: 429a cmp r2, r3
  75052. 801e74e: d30a bcc.n 801e766 <tcp_receive+0x35a>
  75053. 801e750: 687b ldr r3, [r7, #4]
  75054. 801e752: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  75055. 801e756: 687b ldr r3, [r7, #4]
  75056. 801e758: 8e5b ldrh r3, [r3, #50] @ 0x32
  75057. 801e75a: 4413 add r3, r2
  75058. 801e75c: b29a uxth r2, r3
  75059. 801e75e: 687b ldr r3, [r7, #4]
  75060. 801e760: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75061. 801e764: e004 b.n 801e770 <tcp_receive+0x364>
  75062. 801e766: 687b ldr r3, [r7, #4]
  75063. 801e768: f64f 72ff movw r2, #65535 @ 0xffff
  75064. 801e76c: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  75065. pcb->unacked != NULL ?
  75066. lwip_ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked) : 0));
  75067. /* Remove segment from the unacknowledged list if the incoming
  75068. ACK acknowledges them. */
  75069. pcb->unacked = tcp_free_acked_segments(pcb, pcb->unacked, "unacked", pcb->unsent);
  75070. 801e770: 687b ldr r3, [r7, #4]
  75071. 801e772: 6f19 ldr r1, [r3, #112] @ 0x70
  75072. 801e774: 687b ldr r3, [r7, #4]
  75073. 801e776: 6edb ldr r3, [r3, #108] @ 0x6c
  75074. 801e778: 4a98 ldr r2, [pc, #608] @ (801e9dc <tcp_receive+0x5d0>)
  75075. 801e77a: 6878 ldr r0, [r7, #4]
  75076. 801e77c: f7ff fdca bl 801e314 <tcp_free_acked_segments>
  75077. 801e780: 4602 mov r2, r0
  75078. 801e782: 687b ldr r3, [r7, #4]
  75079. 801e784: 671a str r2, [r3, #112] @ 0x70
  75080. on the list are acknowledged by the ACK. This may seem
  75081. strange since an "unsent" segment shouldn't be acked. The
  75082. rationale is that lwIP puts all outstanding segments on the
  75083. ->unsent list after a retransmission, so these segments may
  75084. in fact have been sent once. */
  75085. pcb->unsent = tcp_free_acked_segments(pcb, pcb->unsent, "unsent", pcb->unacked);
  75086. 801e786: 687b ldr r3, [r7, #4]
  75087. 801e788: 6ed9 ldr r1, [r3, #108] @ 0x6c
  75088. 801e78a: 687b ldr r3, [r7, #4]
  75089. 801e78c: 6f1b ldr r3, [r3, #112] @ 0x70
  75090. 801e78e: 4a94 ldr r2, [pc, #592] @ (801e9e0 <tcp_receive+0x5d4>)
  75091. 801e790: 6878 ldr r0, [r7, #4]
  75092. 801e792: f7ff fdbf bl 801e314 <tcp_free_acked_segments>
  75093. 801e796: 4602 mov r2, r0
  75094. 801e798: 687b ldr r3, [r7, #4]
  75095. 801e79a: 66da str r2, [r3, #108] @ 0x6c
  75096. /* If there's nothing left to acknowledge, stop the retransmit
  75097. timer, otherwise reset it to start again */
  75098. if (pcb->unacked == NULL) {
  75099. 801e79c: 687b ldr r3, [r7, #4]
  75100. 801e79e: 6f1b ldr r3, [r3, #112] @ 0x70
  75101. 801e7a0: 2b00 cmp r3, #0
  75102. 801e7a2: d104 bne.n 801e7ae <tcp_receive+0x3a2>
  75103. pcb->rtime = -1;
  75104. 801e7a4: 687b ldr r3, [r7, #4]
  75105. 801e7a6: f64f 72ff movw r2, #65535 @ 0xffff
  75106. 801e7aa: 861a strh r2, [r3, #48] @ 0x30
  75107. 801e7ac: e002 b.n 801e7b4 <tcp_receive+0x3a8>
  75108. } else {
  75109. pcb->rtime = 0;
  75110. 801e7ae: 687b ldr r3, [r7, #4]
  75111. 801e7b0: 2200 movs r2, #0
  75112. 801e7b2: 861a strh r2, [r3, #48] @ 0x30
  75113. }
  75114. pcb->polltmr = 0;
  75115. 801e7b4: 687b ldr r3, [r7, #4]
  75116. 801e7b6: 2200 movs r2, #0
  75117. 801e7b8: 771a strb r2, [r3, #28]
  75118. #if TCP_OVERSIZE
  75119. if (pcb->unsent == NULL) {
  75120. 801e7ba: 687b ldr r3, [r7, #4]
  75121. 801e7bc: 6edb ldr r3, [r3, #108] @ 0x6c
  75122. 801e7be: 2b00 cmp r3, #0
  75123. 801e7c0: d103 bne.n 801e7ca <tcp_receive+0x3be>
  75124. pcb->unsent_oversize = 0;
  75125. 801e7c2: 687b ldr r3, [r7, #4]
  75126. 801e7c4: 2200 movs r2, #0
  75127. 801e7c6: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  75128. /* Inform neighbor reachability of forward progress. */
  75129. nd6_reachability_hint(ip6_current_src_addr());
  75130. }
  75131. #endif /* LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS*/
  75132. pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked);
  75133. 801e7ca: 687b ldr r3, [r7, #4]
  75134. 801e7cc: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  75135. 801e7d0: 4b84 ldr r3, [pc, #528] @ (801e9e4 <tcp_receive+0x5d8>)
  75136. 801e7d2: 881b ldrh r3, [r3, #0]
  75137. 801e7d4: 4413 add r3, r2
  75138. 801e7d6: b29a uxth r2, r3
  75139. 801e7d8: 687b ldr r3, [r7, #4]
  75140. 801e7da: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  75141. /* check if this ACK ends our retransmission of in-flight data */
  75142. if (pcb->flags & TF_RTO) {
  75143. 801e7de: 687b ldr r3, [r7, #4]
  75144. 801e7e0: 8b5b ldrh r3, [r3, #26]
  75145. 801e7e2: f403 6300 and.w r3, r3, #2048 @ 0x800
  75146. 801e7e6: 2b00 cmp r3, #0
  75147. 801e7e8: d035 beq.n 801e856 <tcp_receive+0x44a>
  75148. /* RTO is done if
  75149. 1) both queues are empty or
  75150. 2) unacked is empty and unsent head contains data not part of RTO or
  75151. 3) unacked head contains data not part of RTO */
  75152. if (pcb->unacked == NULL) {
  75153. 801e7ea: 687b ldr r3, [r7, #4]
  75154. 801e7ec: 6f1b ldr r3, [r3, #112] @ 0x70
  75155. 801e7ee: 2b00 cmp r3, #0
  75156. 801e7f0: d118 bne.n 801e824 <tcp_receive+0x418>
  75157. if ((pcb->unsent == NULL) ||
  75158. 801e7f2: 687b ldr r3, [r7, #4]
  75159. 801e7f4: 6edb ldr r3, [r3, #108] @ 0x6c
  75160. 801e7f6: 2b00 cmp r3, #0
  75161. 801e7f8: d00c beq.n 801e814 <tcp_receive+0x408>
  75162. (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) {
  75163. 801e7fa: 687b ldr r3, [r7, #4]
  75164. 801e7fc: 6cdc ldr r4, [r3, #76] @ 0x4c
  75165. 801e7fe: 687b ldr r3, [r7, #4]
  75166. 801e800: 6edb ldr r3, [r3, #108] @ 0x6c
  75167. 801e802: 691b ldr r3, [r3, #16]
  75168. 801e804: 685b ldr r3, [r3, #4]
  75169. 801e806: 4618 mov r0, r3
  75170. 801e808: f7fa fd93 bl 8019332 <lwip_htonl>
  75171. 801e80c: 4603 mov r3, r0
  75172. 801e80e: 1ae3 subs r3, r4, r3
  75173. if ((pcb->unsent == NULL) ||
  75174. 801e810: 2b00 cmp r3, #0
  75175. 801e812: dc20 bgt.n 801e856 <tcp_receive+0x44a>
  75176. tcp_clear_flags(pcb, TF_RTO);
  75177. 801e814: 687b ldr r3, [r7, #4]
  75178. 801e816: 8b5b ldrh r3, [r3, #26]
  75179. 801e818: f423 6300 bic.w r3, r3, #2048 @ 0x800
  75180. 801e81c: b29a uxth r2, r3
  75181. 801e81e: 687b ldr r3, [r7, #4]
  75182. 801e820: 835a strh r2, [r3, #26]
  75183. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  75184. 801e822: e018 b.n 801e856 <tcp_receive+0x44a>
  75185. }
  75186. } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) {
  75187. 801e824: 687b ldr r3, [r7, #4]
  75188. 801e826: 6cdc ldr r4, [r3, #76] @ 0x4c
  75189. 801e828: 687b ldr r3, [r7, #4]
  75190. 801e82a: 6f1b ldr r3, [r3, #112] @ 0x70
  75191. 801e82c: 691b ldr r3, [r3, #16]
  75192. 801e82e: 685b ldr r3, [r3, #4]
  75193. 801e830: 4618 mov r0, r3
  75194. 801e832: f7fa fd7e bl 8019332 <lwip_htonl>
  75195. 801e836: 4603 mov r3, r0
  75196. 801e838: 1ae3 subs r3, r4, r3
  75197. 801e83a: 2b00 cmp r3, #0
  75198. 801e83c: dc0b bgt.n 801e856 <tcp_receive+0x44a>
  75199. tcp_clear_flags(pcb, TF_RTO);
  75200. 801e83e: 687b ldr r3, [r7, #4]
  75201. 801e840: 8b5b ldrh r3, [r3, #26]
  75202. 801e842: f423 6300 bic.w r3, r3, #2048 @ 0x800
  75203. 801e846: b29a uxth r2, r3
  75204. 801e848: 687b ldr r3, [r7, #4]
  75205. 801e84a: 835a strh r2, [r3, #26]
  75206. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  75207. 801e84c: e003 b.n 801e856 <tcp_receive+0x44a>
  75208. }
  75209. }
  75210. /* End of ACK for new data processing. */
  75211. } else {
  75212. /* Out of sequence ACK, didn't really ack anything */
  75213. tcp_send_empty_ack(pcb);
  75214. 801e84e: 6878 ldr r0, [r7, #4]
  75215. 801e850: f002 fc3c bl 80210cc <tcp_send_empty_ack>
  75216. 801e854: e000 b.n 801e858 <tcp_receive+0x44c>
  75217. } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) {
  75218. 801e856: bf00 nop
  75219. pcb->rttest, pcb->rtseq, ackno));
  75220. /* RTT estimation calculations. This is done by checking if the
  75221. incoming segment acknowledges the segment we use to take a
  75222. round-trip time measurement. */
  75223. if (pcb->rttest && TCP_SEQ_LT(pcb->rtseq, ackno)) {
  75224. 801e858: 687b ldr r3, [r7, #4]
  75225. 801e85a: 6b5b ldr r3, [r3, #52] @ 0x34
  75226. 801e85c: 2b00 cmp r3, #0
  75227. 801e85e: d05b beq.n 801e918 <tcp_receive+0x50c>
  75228. 801e860: 687b ldr r3, [r7, #4]
  75229. 801e862: 6b9a ldr r2, [r3, #56] @ 0x38
  75230. 801e864: 4b60 ldr r3, [pc, #384] @ (801e9e8 <tcp_receive+0x5dc>)
  75231. 801e866: 681b ldr r3, [r3, #0]
  75232. 801e868: 1ad3 subs r3, r2, r3
  75233. 801e86a: 2b00 cmp r3, #0
  75234. 801e86c: da54 bge.n 801e918 <tcp_receive+0x50c>
  75235. /* diff between this shouldn't exceed 32K since this are tcp timer ticks
  75236. and a round-trip shouldn't be that long... */
  75237. m = (s16_t)(tcp_ticks - pcb->rttest);
  75238. 801e86e: 4b5f ldr r3, [pc, #380] @ (801e9ec <tcp_receive+0x5e0>)
  75239. 801e870: 681b ldr r3, [r3, #0]
  75240. 801e872: b29a uxth r2, r3
  75241. 801e874: 687b ldr r3, [r7, #4]
  75242. 801e876: 6b5b ldr r3, [r3, #52] @ 0x34
  75243. 801e878: b29b uxth r3, r3
  75244. 801e87a: 1ad3 subs r3, r2, r3
  75245. 801e87c: b29b uxth r3, r3
  75246. 801e87e: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  75247. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: experienced rtt %"U16_F" ticks (%"U16_F" msec).\n",
  75248. m, (u16_t)(m * TCP_SLOW_INTERVAL)));
  75249. /* This is taken directly from VJs original code in his paper */
  75250. m = (s16_t)(m - (pcb->sa >> 3));
  75251. 801e882: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  75252. 801e886: 687b ldr r3, [r7, #4]
  75253. 801e888: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  75254. 801e88c: 10db asrs r3, r3, #3
  75255. 801e88e: b21b sxth r3, r3
  75256. 801e890: b29b uxth r3, r3
  75257. 801e892: 1ad3 subs r3, r2, r3
  75258. 801e894: b29b uxth r3, r3
  75259. 801e896: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  75260. pcb->sa = (s16_t)(pcb->sa + m);
  75261. 801e89a: 687b ldr r3, [r7, #4]
  75262. 801e89c: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  75263. 801e8a0: b29a uxth r2, r3
  75264. 801e8a2: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  75265. 801e8a6: 4413 add r3, r2
  75266. 801e8a8: b29b uxth r3, r3
  75267. 801e8aa: b21a sxth r2, r3
  75268. 801e8ac: 687b ldr r3, [r7, #4]
  75269. 801e8ae: 879a strh r2, [r3, #60] @ 0x3c
  75270. if (m < 0) {
  75271. 801e8b0: f9b7 304e ldrsh.w r3, [r7, #78] @ 0x4e
  75272. 801e8b4: 2b00 cmp r3, #0
  75273. 801e8b6: da05 bge.n 801e8c4 <tcp_receive+0x4b8>
  75274. m = (s16_t) - m;
  75275. 801e8b8: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  75276. 801e8bc: 425b negs r3, r3
  75277. 801e8be: b29b uxth r3, r3
  75278. 801e8c0: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  75279. }
  75280. m = (s16_t)(m - (pcb->sv >> 2));
  75281. 801e8c4: f8b7 204e ldrh.w r2, [r7, #78] @ 0x4e
  75282. 801e8c8: 687b ldr r3, [r7, #4]
  75283. 801e8ca: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  75284. 801e8ce: 109b asrs r3, r3, #2
  75285. 801e8d0: b21b sxth r3, r3
  75286. 801e8d2: b29b uxth r3, r3
  75287. 801e8d4: 1ad3 subs r3, r2, r3
  75288. 801e8d6: b29b uxth r3, r3
  75289. 801e8d8: f8a7 304e strh.w r3, [r7, #78] @ 0x4e
  75290. pcb->sv = (s16_t)(pcb->sv + m);
  75291. 801e8dc: 687b ldr r3, [r7, #4]
  75292. 801e8de: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  75293. 801e8e2: b29a uxth r2, r3
  75294. 801e8e4: f8b7 304e ldrh.w r3, [r7, #78] @ 0x4e
  75295. 801e8e8: 4413 add r3, r2
  75296. 801e8ea: b29b uxth r3, r3
  75297. 801e8ec: b21a sxth r2, r3
  75298. 801e8ee: 687b ldr r3, [r7, #4]
  75299. 801e8f0: 87da strh r2, [r3, #62] @ 0x3e
  75300. pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv);
  75301. 801e8f2: 687b ldr r3, [r7, #4]
  75302. 801e8f4: f9b3 303c ldrsh.w r3, [r3, #60] @ 0x3c
  75303. 801e8f8: 10db asrs r3, r3, #3
  75304. 801e8fa: b21b sxth r3, r3
  75305. 801e8fc: b29a uxth r2, r3
  75306. 801e8fe: 687b ldr r3, [r7, #4]
  75307. 801e900: f9b3 303e ldrsh.w r3, [r3, #62] @ 0x3e
  75308. 801e904: b29b uxth r3, r3
  75309. 801e906: 4413 add r3, r2
  75310. 801e908: b29b uxth r3, r3
  75311. 801e90a: b21a sxth r2, r3
  75312. 801e90c: 687b ldr r3, [r7, #4]
  75313. 801e90e: f8a3 2040 strh.w r2, [r3, #64] @ 0x40
  75314. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: RTO %"U16_F" (%"U16_F" milliseconds)\n",
  75315. pcb->rto, (u16_t)(pcb->rto * TCP_SLOW_INTERVAL)));
  75316. pcb->rttest = 0;
  75317. 801e912: 687b ldr r3, [r7, #4]
  75318. 801e914: 2200 movs r2, #0
  75319. 801e916: 635a str r2, [r3, #52] @ 0x34
  75320. /* If the incoming segment contains data, we must process it
  75321. further unless the pcb already received a FIN.
  75322. (RFC 793, chapter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING,
  75323. LAST-ACK and TIME-WAIT: "Ignore the segment text.") */
  75324. if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) {
  75325. 801e918: 4b35 ldr r3, [pc, #212] @ (801e9f0 <tcp_receive+0x5e4>)
  75326. 801e91a: 881b ldrh r3, [r3, #0]
  75327. 801e91c: 2b00 cmp r3, #0
  75328. 801e91e: f000 84df beq.w 801f2e0 <tcp_receive+0xed4>
  75329. 801e922: 687b ldr r3, [r7, #4]
  75330. 801e924: 7d1b ldrb r3, [r3, #20]
  75331. 801e926: 2b06 cmp r3, #6
  75332. 801e928: f200 84da bhi.w 801f2e0 <tcp_receive+0xed4>
  75333. this if the sequence number of the incoming segment is less
  75334. than rcv_nxt, and the sequence number plus the length of the
  75335. segment is larger than rcv_nxt. */
  75336. /* if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  75337. if (TCP_SEQ_LT(pcb->rcv_nxt, seqno + tcplen)) {*/
  75338. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  75339. 801e92c: 687b ldr r3, [r7, #4]
  75340. 801e92e: 6a5a ldr r2, [r3, #36] @ 0x24
  75341. 801e930: 4b30 ldr r3, [pc, #192] @ (801e9f4 <tcp_receive+0x5e8>)
  75342. 801e932: 681b ldr r3, [r3, #0]
  75343. 801e934: 1ad3 subs r3, r2, r3
  75344. 801e936: 3b01 subs r3, #1
  75345. 801e938: 2b00 cmp r3, #0
  75346. 801e93a: f2c0 808f blt.w 801ea5c <tcp_receive+0x650>
  75347. 801e93e: 687b ldr r3, [r7, #4]
  75348. 801e940: 6a5a ldr r2, [r3, #36] @ 0x24
  75349. 801e942: 4b2b ldr r3, [pc, #172] @ (801e9f0 <tcp_receive+0x5e4>)
  75350. 801e944: 881b ldrh r3, [r3, #0]
  75351. 801e946: 4619 mov r1, r3
  75352. 801e948: 4b2a ldr r3, [pc, #168] @ (801e9f4 <tcp_receive+0x5e8>)
  75353. 801e94a: 681b ldr r3, [r3, #0]
  75354. 801e94c: 440b add r3, r1
  75355. 801e94e: 1ad3 subs r3, r2, r3
  75356. 801e950: 3301 adds r3, #1
  75357. 801e952: 2b00 cmp r3, #0
  75358. 801e954: f300 8082 bgt.w 801ea5c <tcp_receive+0x650>
  75359. After we are done with adjusting the pbuf pointers we must
  75360. adjust the ->data pointer in the seg and the segment
  75361. length.*/
  75362. struct pbuf *p = inseg.p;
  75363. 801e958: 4b27 ldr r3, [pc, #156] @ (801e9f8 <tcp_receive+0x5ec>)
  75364. 801e95a: 685b ldr r3, [r3, #4]
  75365. 801e95c: 647b str r3, [r7, #68] @ 0x44
  75366. u32_t off32 = pcb->rcv_nxt - seqno;
  75367. 801e95e: 687b ldr r3, [r7, #4]
  75368. 801e960: 6a5a ldr r2, [r3, #36] @ 0x24
  75369. 801e962: 4b24 ldr r3, [pc, #144] @ (801e9f4 <tcp_receive+0x5e8>)
  75370. 801e964: 681b ldr r3, [r3, #0]
  75371. 801e966: 1ad3 subs r3, r2, r3
  75372. 801e968: 627b str r3, [r7, #36] @ 0x24
  75373. u16_t new_tot_len, off;
  75374. LWIP_ASSERT("inseg.p != NULL", inseg.p);
  75375. 801e96a: 4b23 ldr r3, [pc, #140] @ (801e9f8 <tcp_receive+0x5ec>)
  75376. 801e96c: 685b ldr r3, [r3, #4]
  75377. 801e96e: 2b00 cmp r3, #0
  75378. 801e970: d106 bne.n 801e980 <tcp_receive+0x574>
  75379. 801e972: 4b22 ldr r3, [pc, #136] @ (801e9fc <tcp_receive+0x5f0>)
  75380. 801e974: f240 5294 movw r2, #1428 @ 0x594
  75381. 801e978: 4921 ldr r1, [pc, #132] @ (801ea00 <tcp_receive+0x5f4>)
  75382. 801e97a: 4822 ldr r0, [pc, #136] @ (801ea04 <tcp_receive+0x5f8>)
  75383. 801e97c: f00b fc1e bl 802a1bc <iprintf>
  75384. LWIP_ASSERT("insane offset!", (off32 < 0xffff));
  75385. 801e980: 6a7b ldr r3, [r7, #36] @ 0x24
  75386. 801e982: f64f 72fe movw r2, #65534 @ 0xfffe
  75387. 801e986: 4293 cmp r3, r2
  75388. 801e988: d906 bls.n 801e998 <tcp_receive+0x58c>
  75389. 801e98a: 4b1c ldr r3, [pc, #112] @ (801e9fc <tcp_receive+0x5f0>)
  75390. 801e98c: f240 5295 movw r2, #1429 @ 0x595
  75391. 801e990: 491d ldr r1, [pc, #116] @ (801ea08 <tcp_receive+0x5fc>)
  75392. 801e992: 481c ldr r0, [pc, #112] @ (801ea04 <tcp_receive+0x5f8>)
  75393. 801e994: f00b fc12 bl 802a1bc <iprintf>
  75394. off = (u16_t)off32;
  75395. 801e998: 6a7b ldr r3, [r7, #36] @ 0x24
  75396. 801e99a: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  75397. LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off));
  75398. 801e99e: 4b16 ldr r3, [pc, #88] @ (801e9f8 <tcp_receive+0x5ec>)
  75399. 801e9a0: 685b ldr r3, [r3, #4]
  75400. 801e9a2: 891b ldrh r3, [r3, #8]
  75401. 801e9a4: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  75402. 801e9a8: 429a cmp r2, r3
  75403. 801e9aa: d906 bls.n 801e9ba <tcp_receive+0x5ae>
  75404. 801e9ac: 4b13 ldr r3, [pc, #76] @ (801e9fc <tcp_receive+0x5f0>)
  75405. 801e9ae: f240 5297 movw r2, #1431 @ 0x597
  75406. 801e9b2: 4916 ldr r1, [pc, #88] @ (801ea0c <tcp_receive+0x600>)
  75407. 801e9b4: 4813 ldr r0, [pc, #76] @ (801ea04 <tcp_receive+0x5f8>)
  75408. 801e9b6: f00b fc01 bl 802a1bc <iprintf>
  75409. inseg.len -= off;
  75410. 801e9ba: 4b0f ldr r3, [pc, #60] @ (801e9f8 <tcp_receive+0x5ec>)
  75411. 801e9bc: 891a ldrh r2, [r3, #8]
  75412. 801e9be: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  75413. 801e9c2: 1ad3 subs r3, r2, r3
  75414. 801e9c4: b29a uxth r2, r3
  75415. 801e9c6: 4b0c ldr r3, [pc, #48] @ (801e9f8 <tcp_receive+0x5ec>)
  75416. 801e9c8: 811a strh r2, [r3, #8]
  75417. new_tot_len = (u16_t)(inseg.p->tot_len - off);
  75418. 801e9ca: 4b0b ldr r3, [pc, #44] @ (801e9f8 <tcp_receive+0x5ec>)
  75419. 801e9cc: 685b ldr r3, [r3, #4]
  75420. 801e9ce: 891a ldrh r2, [r3, #8]
  75421. 801e9d0: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  75422. 801e9d4: 1ad3 subs r3, r2, r3
  75423. 801e9d6: 847b strh r3, [r7, #34] @ 0x22
  75424. while (p->len < off) {
  75425. 801e9d8: e02a b.n 801ea30 <tcp_receive+0x624>
  75426. 801e9da: bf00 nop
  75427. 801e9dc: 0802f90c .word 0x0802f90c
  75428. 801e9e0: 0802f914 .word 0x0802f914
  75429. 801e9e4: 2402af9c .word 0x2402af9c
  75430. 801e9e8: 2402af98 .word 0x2402af98
  75431. 801e9ec: 2402af58 .word 0x2402af58
  75432. 801e9f0: 2402af9e .word 0x2402af9e
  75433. 801e9f4: 2402af94 .word 0x2402af94
  75434. 801e9f8: 2402af70 .word 0x2402af70
  75435. 801e9fc: 0802f5a4 .word 0x0802f5a4
  75436. 801ea00: 0802f91c .word 0x0802f91c
  75437. 801ea04: 0802f5f0 .word 0x0802f5f0
  75438. 801ea08: 0802f92c .word 0x0802f92c
  75439. 801ea0c: 0802f93c .word 0x0802f93c
  75440. off -= p->len;
  75441. 801ea10: 6c7b ldr r3, [r7, #68] @ 0x44
  75442. 801ea12: 895b ldrh r3, [r3, #10]
  75443. 801ea14: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  75444. 801ea18: 1ad3 subs r3, r2, r3
  75445. 801ea1a: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  75446. /* all pbufs up to and including this one have len==0, so tot_len is equal */
  75447. p->tot_len = new_tot_len;
  75448. 801ea1e: 6c7b ldr r3, [r7, #68] @ 0x44
  75449. 801ea20: 8c7a ldrh r2, [r7, #34] @ 0x22
  75450. 801ea22: 811a strh r2, [r3, #8]
  75451. p->len = 0;
  75452. 801ea24: 6c7b ldr r3, [r7, #68] @ 0x44
  75453. 801ea26: 2200 movs r2, #0
  75454. 801ea28: 815a strh r2, [r3, #10]
  75455. p = p->next;
  75456. 801ea2a: 6c7b ldr r3, [r7, #68] @ 0x44
  75457. 801ea2c: 681b ldr r3, [r3, #0]
  75458. 801ea2e: 647b str r3, [r7, #68] @ 0x44
  75459. while (p->len < off) {
  75460. 801ea30: 6c7b ldr r3, [r7, #68] @ 0x44
  75461. 801ea32: 895b ldrh r3, [r3, #10]
  75462. 801ea34: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  75463. 801ea38: 429a cmp r2, r3
  75464. 801ea3a: d8e9 bhi.n 801ea10 <tcp_receive+0x604>
  75465. }
  75466. /* cannot fail... */
  75467. pbuf_remove_header(p, off);
  75468. 801ea3c: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  75469. 801ea40: 4619 mov r1, r3
  75470. 801ea42: 6c78 ldr r0, [r7, #68] @ 0x44
  75471. 801ea44: f7fc f88a bl 801ab5c <pbuf_remove_header>
  75472. inseg.tcphdr->seqno = seqno = pcb->rcv_nxt;
  75473. 801ea48: 687b ldr r3, [r7, #4]
  75474. 801ea4a: 6a5b ldr r3, [r3, #36] @ 0x24
  75475. 801ea4c: 4a90 ldr r2, [pc, #576] @ (801ec90 <tcp_receive+0x884>)
  75476. 801ea4e: 6013 str r3, [r2, #0]
  75477. 801ea50: 4b90 ldr r3, [pc, #576] @ (801ec94 <tcp_receive+0x888>)
  75478. 801ea52: 691b ldr r3, [r3, #16]
  75479. 801ea54: 4a8e ldr r2, [pc, #568] @ (801ec90 <tcp_receive+0x884>)
  75480. 801ea56: 6812 ldr r2, [r2, #0]
  75481. 801ea58: 605a str r2, [r3, #4]
  75482. if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) {
  75483. 801ea5a: e00d b.n 801ea78 <tcp_receive+0x66c>
  75484. } else {
  75485. if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) {
  75486. 801ea5c: 4b8c ldr r3, [pc, #560] @ (801ec90 <tcp_receive+0x884>)
  75487. 801ea5e: 681a ldr r2, [r3, #0]
  75488. 801ea60: 687b ldr r3, [r7, #4]
  75489. 801ea62: 6a5b ldr r3, [r3, #36] @ 0x24
  75490. 801ea64: 1ad3 subs r3, r2, r3
  75491. 801ea66: 2b00 cmp r3, #0
  75492. 801ea68: da06 bge.n 801ea78 <tcp_receive+0x66c>
  75493. /* the whole segment is < rcv_nxt */
  75494. /* must be a duplicate of a packet that has already been correctly handled */
  75495. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: duplicate seqno %"U32_F"\n", seqno));
  75496. tcp_ack_now(pcb);
  75497. 801ea6a: 687b ldr r3, [r7, #4]
  75498. 801ea6c: 8b5b ldrh r3, [r3, #26]
  75499. 801ea6e: f043 0302 orr.w r3, r3, #2
  75500. 801ea72: b29a uxth r2, r3
  75501. 801ea74: 687b ldr r3, [r7, #4]
  75502. 801ea76: 835a strh r2, [r3, #26]
  75503. }
  75504. /* The sequence number must be within the window (above rcv_nxt
  75505. and below rcv_nxt + rcv_wnd) in order to be further
  75506. processed. */
  75507. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  75508. 801ea78: 4b85 ldr r3, [pc, #532] @ (801ec90 <tcp_receive+0x884>)
  75509. 801ea7a: 681a ldr r2, [r3, #0]
  75510. 801ea7c: 687b ldr r3, [r7, #4]
  75511. 801ea7e: 6a5b ldr r3, [r3, #36] @ 0x24
  75512. 801ea80: 1ad3 subs r3, r2, r3
  75513. 801ea82: 2b00 cmp r3, #0
  75514. 801ea84: f2c0 8427 blt.w 801f2d6 <tcp_receive+0xeca>
  75515. 801ea88: 4b81 ldr r3, [pc, #516] @ (801ec90 <tcp_receive+0x884>)
  75516. 801ea8a: 681a ldr r2, [r3, #0]
  75517. 801ea8c: 687b ldr r3, [r7, #4]
  75518. 801ea8e: 6a5b ldr r3, [r3, #36] @ 0x24
  75519. 801ea90: 6879 ldr r1, [r7, #4]
  75520. 801ea92: 8d09 ldrh r1, [r1, #40] @ 0x28
  75521. 801ea94: 440b add r3, r1
  75522. 801ea96: 1ad3 subs r3, r2, r3
  75523. 801ea98: 3301 adds r3, #1
  75524. 801ea9a: 2b00 cmp r3, #0
  75525. 801ea9c: f300 841b bgt.w 801f2d6 <tcp_receive+0xeca>
  75526. pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  75527. if (pcb->rcv_nxt == seqno) {
  75528. 801eaa0: 687b ldr r3, [r7, #4]
  75529. 801eaa2: 6a5a ldr r2, [r3, #36] @ 0x24
  75530. 801eaa4: 4b7a ldr r3, [pc, #488] @ (801ec90 <tcp_receive+0x884>)
  75531. 801eaa6: 681b ldr r3, [r3, #0]
  75532. 801eaa8: 429a cmp r2, r3
  75533. 801eaaa: f040 8298 bne.w 801efde <tcp_receive+0xbd2>
  75534. /* The incoming segment is the next in sequence. We check if
  75535. we have to trim the end of the segment and update rcv_nxt
  75536. and pass the data to the application. */
  75537. tcplen = TCP_TCPLEN(&inseg);
  75538. 801eaae: 4b79 ldr r3, [pc, #484] @ (801ec94 <tcp_receive+0x888>)
  75539. 801eab0: 891c ldrh r4, [r3, #8]
  75540. 801eab2: 4b78 ldr r3, [pc, #480] @ (801ec94 <tcp_receive+0x888>)
  75541. 801eab4: 691b ldr r3, [r3, #16]
  75542. 801eab6: 899b ldrh r3, [r3, #12]
  75543. 801eab8: b29b uxth r3, r3
  75544. 801eaba: 4618 mov r0, r3
  75545. 801eabc: f7fa fc24 bl 8019308 <lwip_htons>
  75546. 801eac0: 4603 mov r3, r0
  75547. 801eac2: b2db uxtb r3, r3
  75548. 801eac4: f003 0303 and.w r3, r3, #3
  75549. 801eac8: 2b00 cmp r3, #0
  75550. 801eaca: d001 beq.n 801ead0 <tcp_receive+0x6c4>
  75551. 801eacc: 2301 movs r3, #1
  75552. 801eace: e000 b.n 801ead2 <tcp_receive+0x6c6>
  75553. 801ead0: 2300 movs r3, #0
  75554. 801ead2: 4423 add r3, r4
  75555. 801ead4: b29a uxth r2, r3
  75556. 801ead6: 4b70 ldr r3, [pc, #448] @ (801ec98 <tcp_receive+0x88c>)
  75557. 801ead8: 801a strh r2, [r3, #0]
  75558. if (tcplen > pcb->rcv_wnd) {
  75559. 801eada: 687b ldr r3, [r7, #4]
  75560. 801eadc: 8d1a ldrh r2, [r3, #40] @ 0x28
  75561. 801eade: 4b6e ldr r3, [pc, #440] @ (801ec98 <tcp_receive+0x88c>)
  75562. 801eae0: 881b ldrh r3, [r3, #0]
  75563. 801eae2: 429a cmp r2, r3
  75564. 801eae4: d274 bcs.n 801ebd0 <tcp_receive+0x7c4>
  75565. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  75566. ("tcp_receive: other end overran receive window"
  75567. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  75568. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  75569. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  75570. 801eae6: 4b6b ldr r3, [pc, #428] @ (801ec94 <tcp_receive+0x888>)
  75571. 801eae8: 691b ldr r3, [r3, #16]
  75572. 801eaea: 899b ldrh r3, [r3, #12]
  75573. 801eaec: b29b uxth r3, r3
  75574. 801eaee: 4618 mov r0, r3
  75575. 801eaf0: f7fa fc0a bl 8019308 <lwip_htons>
  75576. 801eaf4: 4603 mov r3, r0
  75577. 801eaf6: b2db uxtb r3, r3
  75578. 801eaf8: f003 0301 and.w r3, r3, #1
  75579. 801eafc: 2b00 cmp r3, #0
  75580. 801eafe: d01e beq.n 801eb3e <tcp_receive+0x732>
  75581. /* Must remove the FIN from the header as we're trimming
  75582. * that byte of sequence-space from the packet */
  75583. TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) & ~(unsigned int)TCP_FIN);
  75584. 801eb00: 4b64 ldr r3, [pc, #400] @ (801ec94 <tcp_receive+0x888>)
  75585. 801eb02: 691b ldr r3, [r3, #16]
  75586. 801eb04: 899b ldrh r3, [r3, #12]
  75587. 801eb06: b29b uxth r3, r3
  75588. 801eb08: b21b sxth r3, r3
  75589. 801eb0a: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  75590. 801eb0e: b21c sxth r4, r3
  75591. 801eb10: 4b60 ldr r3, [pc, #384] @ (801ec94 <tcp_receive+0x888>)
  75592. 801eb12: 691b ldr r3, [r3, #16]
  75593. 801eb14: 899b ldrh r3, [r3, #12]
  75594. 801eb16: b29b uxth r3, r3
  75595. 801eb18: 4618 mov r0, r3
  75596. 801eb1a: f7fa fbf5 bl 8019308 <lwip_htons>
  75597. 801eb1e: 4603 mov r3, r0
  75598. 801eb20: b2db uxtb r3, r3
  75599. 801eb22: f003 033e and.w r3, r3, #62 @ 0x3e
  75600. 801eb26: b29b uxth r3, r3
  75601. 801eb28: 4618 mov r0, r3
  75602. 801eb2a: f7fa fbed bl 8019308 <lwip_htons>
  75603. 801eb2e: 4603 mov r3, r0
  75604. 801eb30: b21b sxth r3, r3
  75605. 801eb32: 4323 orrs r3, r4
  75606. 801eb34: b21a sxth r2, r3
  75607. 801eb36: 4b57 ldr r3, [pc, #348] @ (801ec94 <tcp_receive+0x888>)
  75608. 801eb38: 691b ldr r3, [r3, #16]
  75609. 801eb3a: b292 uxth r2, r2
  75610. 801eb3c: 819a strh r2, [r3, #12]
  75611. }
  75612. /* Adjust length of segment to fit in the window. */
  75613. TCPWND_CHECK16(pcb->rcv_wnd);
  75614. inseg.len = (u16_t)pcb->rcv_wnd;
  75615. 801eb3e: 687b ldr r3, [r7, #4]
  75616. 801eb40: 8d1a ldrh r2, [r3, #40] @ 0x28
  75617. 801eb42: 4b54 ldr r3, [pc, #336] @ (801ec94 <tcp_receive+0x888>)
  75618. 801eb44: 811a strh r2, [r3, #8]
  75619. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  75620. 801eb46: 4b53 ldr r3, [pc, #332] @ (801ec94 <tcp_receive+0x888>)
  75621. 801eb48: 691b ldr r3, [r3, #16]
  75622. 801eb4a: 899b ldrh r3, [r3, #12]
  75623. 801eb4c: b29b uxth r3, r3
  75624. 801eb4e: 4618 mov r0, r3
  75625. 801eb50: f7fa fbda bl 8019308 <lwip_htons>
  75626. 801eb54: 4603 mov r3, r0
  75627. 801eb56: b2db uxtb r3, r3
  75628. 801eb58: f003 0302 and.w r3, r3, #2
  75629. 801eb5c: 2b00 cmp r3, #0
  75630. 801eb5e: d005 beq.n 801eb6c <tcp_receive+0x760>
  75631. inseg.len -= 1;
  75632. 801eb60: 4b4c ldr r3, [pc, #304] @ (801ec94 <tcp_receive+0x888>)
  75633. 801eb62: 891b ldrh r3, [r3, #8]
  75634. 801eb64: 3b01 subs r3, #1
  75635. 801eb66: b29a uxth r2, r3
  75636. 801eb68: 4b4a ldr r3, [pc, #296] @ (801ec94 <tcp_receive+0x888>)
  75637. 801eb6a: 811a strh r2, [r3, #8]
  75638. }
  75639. pbuf_realloc(inseg.p, inseg.len);
  75640. 801eb6c: 4b49 ldr r3, [pc, #292] @ (801ec94 <tcp_receive+0x888>)
  75641. 801eb6e: 685b ldr r3, [r3, #4]
  75642. 801eb70: 4a48 ldr r2, [pc, #288] @ (801ec94 <tcp_receive+0x888>)
  75643. 801eb72: 8912 ldrh r2, [r2, #8]
  75644. 801eb74: 4611 mov r1, r2
  75645. 801eb76: 4618 mov r0, r3
  75646. 801eb78: f7fb fef2 bl 801a960 <pbuf_realloc>
  75647. tcplen = TCP_TCPLEN(&inseg);
  75648. 801eb7c: 4b45 ldr r3, [pc, #276] @ (801ec94 <tcp_receive+0x888>)
  75649. 801eb7e: 891c ldrh r4, [r3, #8]
  75650. 801eb80: 4b44 ldr r3, [pc, #272] @ (801ec94 <tcp_receive+0x888>)
  75651. 801eb82: 691b ldr r3, [r3, #16]
  75652. 801eb84: 899b ldrh r3, [r3, #12]
  75653. 801eb86: b29b uxth r3, r3
  75654. 801eb88: 4618 mov r0, r3
  75655. 801eb8a: f7fa fbbd bl 8019308 <lwip_htons>
  75656. 801eb8e: 4603 mov r3, r0
  75657. 801eb90: b2db uxtb r3, r3
  75658. 801eb92: f003 0303 and.w r3, r3, #3
  75659. 801eb96: 2b00 cmp r3, #0
  75660. 801eb98: d001 beq.n 801eb9e <tcp_receive+0x792>
  75661. 801eb9a: 2301 movs r3, #1
  75662. 801eb9c: e000 b.n 801eba0 <tcp_receive+0x794>
  75663. 801eb9e: 2300 movs r3, #0
  75664. 801eba0: 4423 add r3, r4
  75665. 801eba2: b29a uxth r2, r3
  75666. 801eba4: 4b3c ldr r3, [pc, #240] @ (801ec98 <tcp_receive+0x88c>)
  75667. 801eba6: 801a strh r2, [r3, #0]
  75668. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  75669. 801eba8: 4b3b ldr r3, [pc, #236] @ (801ec98 <tcp_receive+0x88c>)
  75670. 801ebaa: 881b ldrh r3, [r3, #0]
  75671. 801ebac: 461a mov r2, r3
  75672. 801ebae: 4b38 ldr r3, [pc, #224] @ (801ec90 <tcp_receive+0x884>)
  75673. 801ebb0: 681b ldr r3, [r3, #0]
  75674. 801ebb2: 441a add r2, r3
  75675. 801ebb4: 687b ldr r3, [r7, #4]
  75676. 801ebb6: 6a5b ldr r3, [r3, #36] @ 0x24
  75677. 801ebb8: 6879 ldr r1, [r7, #4]
  75678. 801ebba: 8d09 ldrh r1, [r1, #40] @ 0x28
  75679. 801ebbc: 440b add r3, r1
  75680. 801ebbe: 429a cmp r2, r3
  75681. 801ebc0: d006 beq.n 801ebd0 <tcp_receive+0x7c4>
  75682. 801ebc2: 4b36 ldr r3, [pc, #216] @ (801ec9c <tcp_receive+0x890>)
  75683. 801ebc4: f240 52cb movw r2, #1483 @ 0x5cb
  75684. 801ebc8: 4935 ldr r1, [pc, #212] @ (801eca0 <tcp_receive+0x894>)
  75685. 801ebca: 4836 ldr r0, [pc, #216] @ (801eca4 <tcp_receive+0x898>)
  75686. 801ebcc: f00b faf6 bl 802a1bc <iprintf>
  75687. }
  75688. #if TCP_QUEUE_OOSEQ
  75689. /* Received in-sequence data, adjust ooseq data if:
  75690. - FIN has been received or
  75691. - inseq overlaps with ooseq */
  75692. if (pcb->ooseq != NULL) {
  75693. 801ebd0: 687b ldr r3, [r7, #4]
  75694. 801ebd2: 6f5b ldr r3, [r3, #116] @ 0x74
  75695. 801ebd4: 2b00 cmp r3, #0
  75696. 801ebd6: f000 80e6 beq.w 801eda6 <tcp_receive+0x99a>
  75697. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  75698. 801ebda: 4b2e ldr r3, [pc, #184] @ (801ec94 <tcp_receive+0x888>)
  75699. 801ebdc: 691b ldr r3, [r3, #16]
  75700. 801ebde: 899b ldrh r3, [r3, #12]
  75701. 801ebe0: b29b uxth r3, r3
  75702. 801ebe2: 4618 mov r0, r3
  75703. 801ebe4: f7fa fb90 bl 8019308 <lwip_htons>
  75704. 801ebe8: 4603 mov r3, r0
  75705. 801ebea: b2db uxtb r3, r3
  75706. 801ebec: f003 0301 and.w r3, r3, #1
  75707. 801ebf0: 2b00 cmp r3, #0
  75708. 801ebf2: d010 beq.n 801ec16 <tcp_receive+0x80a>
  75709. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  75710. ("tcp_receive: received in-order FIN, binning ooseq queue\n"));
  75711. /* Received in-order FIN means anything that was received
  75712. * out of order must now have been received in-order, so
  75713. * bin the ooseq queue */
  75714. while (pcb->ooseq != NULL) {
  75715. 801ebf4: e00a b.n 801ec0c <tcp_receive+0x800>
  75716. struct tcp_seg *old_ooseq = pcb->ooseq;
  75717. 801ebf6: 687b ldr r3, [r7, #4]
  75718. 801ebf8: 6f5b ldr r3, [r3, #116] @ 0x74
  75719. 801ebfa: 60fb str r3, [r7, #12]
  75720. pcb->ooseq = pcb->ooseq->next;
  75721. 801ebfc: 687b ldr r3, [r7, #4]
  75722. 801ebfe: 6f5b ldr r3, [r3, #116] @ 0x74
  75723. 801ec00: 681a ldr r2, [r3, #0]
  75724. 801ec02: 687b ldr r3, [r7, #4]
  75725. 801ec04: 675a str r2, [r3, #116] @ 0x74
  75726. tcp_seg_free(old_ooseq);
  75727. 801ec06: 68f8 ldr r0, [r7, #12]
  75728. 801ec08: f7fd fcb9 bl 801c57e <tcp_seg_free>
  75729. while (pcb->ooseq != NULL) {
  75730. 801ec0c: 687b ldr r3, [r7, #4]
  75731. 801ec0e: 6f5b ldr r3, [r3, #116] @ 0x74
  75732. 801ec10: 2b00 cmp r3, #0
  75733. 801ec12: d1f0 bne.n 801ebf6 <tcp_receive+0x7ea>
  75734. 801ec14: e0c7 b.n 801eda6 <tcp_receive+0x99a>
  75735. }
  75736. } else {
  75737. struct tcp_seg *next = pcb->ooseq;
  75738. 801ec16: 687b ldr r3, [r7, #4]
  75739. 801ec18: 6f5b ldr r3, [r3, #116] @ 0x74
  75740. 801ec1a: 63fb str r3, [r7, #60] @ 0x3c
  75741. /* Remove all segments on ooseq that are covered by inseg already.
  75742. * FIN is copied from ooseq to inseg if present. */
  75743. while (next &&
  75744. 801ec1c: e051 b.n 801ecc2 <tcp_receive+0x8b6>
  75745. TCP_SEQ_GEQ(seqno + tcplen,
  75746. next->tcphdr->seqno + next->len)) {
  75747. struct tcp_seg *tmp;
  75748. /* inseg cannot have FIN here (already processed above) */
  75749. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  75750. 801ec1e: 6bfb ldr r3, [r7, #60] @ 0x3c
  75751. 801ec20: 691b ldr r3, [r3, #16]
  75752. 801ec22: 899b ldrh r3, [r3, #12]
  75753. 801ec24: b29b uxth r3, r3
  75754. 801ec26: 4618 mov r0, r3
  75755. 801ec28: f7fa fb6e bl 8019308 <lwip_htons>
  75756. 801ec2c: 4603 mov r3, r0
  75757. 801ec2e: b2db uxtb r3, r3
  75758. 801ec30: f003 0301 and.w r3, r3, #1
  75759. 801ec34: 2b00 cmp r3, #0
  75760. 801ec36: d03c beq.n 801ecb2 <tcp_receive+0x8a6>
  75761. (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) {
  75762. 801ec38: 4b16 ldr r3, [pc, #88] @ (801ec94 <tcp_receive+0x888>)
  75763. 801ec3a: 691b ldr r3, [r3, #16]
  75764. 801ec3c: 899b ldrh r3, [r3, #12]
  75765. 801ec3e: b29b uxth r3, r3
  75766. 801ec40: 4618 mov r0, r3
  75767. 801ec42: f7fa fb61 bl 8019308 <lwip_htons>
  75768. 801ec46: 4603 mov r3, r0
  75769. 801ec48: b2db uxtb r3, r3
  75770. 801ec4a: f003 0302 and.w r3, r3, #2
  75771. if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 &&
  75772. 801ec4e: 2b00 cmp r3, #0
  75773. 801ec50: d12f bne.n 801ecb2 <tcp_receive+0x8a6>
  75774. TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN);
  75775. 801ec52: 4b10 ldr r3, [pc, #64] @ (801ec94 <tcp_receive+0x888>)
  75776. 801ec54: 691b ldr r3, [r3, #16]
  75777. 801ec56: 899b ldrh r3, [r3, #12]
  75778. 801ec58: b29c uxth r4, r3
  75779. 801ec5a: 2001 movs r0, #1
  75780. 801ec5c: f7fa fb54 bl 8019308 <lwip_htons>
  75781. 801ec60: 4603 mov r3, r0
  75782. 801ec62: 461a mov r2, r3
  75783. 801ec64: 4b0b ldr r3, [pc, #44] @ (801ec94 <tcp_receive+0x888>)
  75784. 801ec66: 691b ldr r3, [r3, #16]
  75785. 801ec68: 4322 orrs r2, r4
  75786. 801ec6a: b292 uxth r2, r2
  75787. 801ec6c: 819a strh r2, [r3, #12]
  75788. tcplen = TCP_TCPLEN(&inseg);
  75789. 801ec6e: 4b09 ldr r3, [pc, #36] @ (801ec94 <tcp_receive+0x888>)
  75790. 801ec70: 891c ldrh r4, [r3, #8]
  75791. 801ec72: 4b08 ldr r3, [pc, #32] @ (801ec94 <tcp_receive+0x888>)
  75792. 801ec74: 691b ldr r3, [r3, #16]
  75793. 801ec76: 899b ldrh r3, [r3, #12]
  75794. 801ec78: b29b uxth r3, r3
  75795. 801ec7a: 4618 mov r0, r3
  75796. 801ec7c: f7fa fb44 bl 8019308 <lwip_htons>
  75797. 801ec80: 4603 mov r3, r0
  75798. 801ec82: b2db uxtb r3, r3
  75799. 801ec84: f003 0303 and.w r3, r3, #3
  75800. 801ec88: 2b00 cmp r3, #0
  75801. 801ec8a: d00d beq.n 801eca8 <tcp_receive+0x89c>
  75802. 801ec8c: 2301 movs r3, #1
  75803. 801ec8e: e00c b.n 801ecaa <tcp_receive+0x89e>
  75804. 801ec90: 2402af94 .word 0x2402af94
  75805. 801ec94: 2402af70 .word 0x2402af70
  75806. 801ec98: 2402af9e .word 0x2402af9e
  75807. 801ec9c: 0802f5a4 .word 0x0802f5a4
  75808. 801eca0: 0802f94c .word 0x0802f94c
  75809. 801eca4: 0802f5f0 .word 0x0802f5f0
  75810. 801eca8: 2300 movs r3, #0
  75811. 801ecaa: 4423 add r3, r4
  75812. 801ecac: b29a uxth r2, r3
  75813. 801ecae: 4b98 ldr r3, [pc, #608] @ (801ef10 <tcp_receive+0xb04>)
  75814. 801ecb0: 801a strh r2, [r3, #0]
  75815. }
  75816. tmp = next;
  75817. 801ecb2: 6bfb ldr r3, [r7, #60] @ 0x3c
  75818. 801ecb4: 613b str r3, [r7, #16]
  75819. next = next->next;
  75820. 801ecb6: 6bfb ldr r3, [r7, #60] @ 0x3c
  75821. 801ecb8: 681b ldr r3, [r3, #0]
  75822. 801ecba: 63fb str r3, [r7, #60] @ 0x3c
  75823. tcp_seg_free(tmp);
  75824. 801ecbc: 6938 ldr r0, [r7, #16]
  75825. 801ecbe: f7fd fc5e bl 801c57e <tcp_seg_free>
  75826. while (next &&
  75827. 801ecc2: 6bfb ldr r3, [r7, #60] @ 0x3c
  75828. 801ecc4: 2b00 cmp r3, #0
  75829. 801ecc6: d00e beq.n 801ece6 <tcp_receive+0x8da>
  75830. TCP_SEQ_GEQ(seqno + tcplen,
  75831. 801ecc8: 4b91 ldr r3, [pc, #580] @ (801ef10 <tcp_receive+0xb04>)
  75832. 801ecca: 881b ldrh r3, [r3, #0]
  75833. 801eccc: 461a mov r2, r3
  75834. 801ecce: 4b91 ldr r3, [pc, #580] @ (801ef14 <tcp_receive+0xb08>)
  75835. 801ecd0: 681b ldr r3, [r3, #0]
  75836. 801ecd2: 441a add r2, r3
  75837. 801ecd4: 6bfb ldr r3, [r7, #60] @ 0x3c
  75838. 801ecd6: 691b ldr r3, [r3, #16]
  75839. 801ecd8: 685b ldr r3, [r3, #4]
  75840. 801ecda: 6bf9 ldr r1, [r7, #60] @ 0x3c
  75841. 801ecdc: 8909 ldrh r1, [r1, #8]
  75842. 801ecde: 440b add r3, r1
  75843. 801ece0: 1ad3 subs r3, r2, r3
  75844. while (next &&
  75845. 801ece2: 2b00 cmp r3, #0
  75846. 801ece4: da9b bge.n 801ec1e <tcp_receive+0x812>
  75847. }
  75848. /* Now trim right side of inseg if it overlaps with the first
  75849. * segment on ooseq */
  75850. if (next &&
  75851. 801ece6: 6bfb ldr r3, [r7, #60] @ 0x3c
  75852. 801ece8: 2b00 cmp r3, #0
  75853. 801ecea: d059 beq.n 801eda0 <tcp_receive+0x994>
  75854. TCP_SEQ_GT(seqno + tcplen,
  75855. 801ecec: 4b88 ldr r3, [pc, #544] @ (801ef10 <tcp_receive+0xb04>)
  75856. 801ecee: 881b ldrh r3, [r3, #0]
  75857. 801ecf0: 461a mov r2, r3
  75858. 801ecf2: 4b88 ldr r3, [pc, #544] @ (801ef14 <tcp_receive+0xb08>)
  75859. 801ecf4: 681b ldr r3, [r3, #0]
  75860. 801ecf6: 441a add r2, r3
  75861. 801ecf8: 6bfb ldr r3, [r7, #60] @ 0x3c
  75862. 801ecfa: 691b ldr r3, [r3, #16]
  75863. 801ecfc: 685b ldr r3, [r3, #4]
  75864. 801ecfe: 1ad3 subs r3, r2, r3
  75865. if (next &&
  75866. 801ed00: 2b00 cmp r3, #0
  75867. 801ed02: dd4d ble.n 801eda0 <tcp_receive+0x994>
  75868. next->tcphdr->seqno)) {
  75869. /* inseg cannot have FIN here (already processed above) */
  75870. inseg.len = (u16_t)(next->tcphdr->seqno - seqno);
  75871. 801ed04: 6bfb ldr r3, [r7, #60] @ 0x3c
  75872. 801ed06: 691b ldr r3, [r3, #16]
  75873. 801ed08: 685b ldr r3, [r3, #4]
  75874. 801ed0a: b29a uxth r2, r3
  75875. 801ed0c: 4b81 ldr r3, [pc, #516] @ (801ef14 <tcp_receive+0xb08>)
  75876. 801ed0e: 681b ldr r3, [r3, #0]
  75877. 801ed10: b29b uxth r3, r3
  75878. 801ed12: 1ad3 subs r3, r2, r3
  75879. 801ed14: b29a uxth r2, r3
  75880. 801ed16: 4b80 ldr r3, [pc, #512] @ (801ef18 <tcp_receive+0xb0c>)
  75881. 801ed18: 811a strh r2, [r3, #8]
  75882. if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
  75883. 801ed1a: 4b7f ldr r3, [pc, #508] @ (801ef18 <tcp_receive+0xb0c>)
  75884. 801ed1c: 691b ldr r3, [r3, #16]
  75885. 801ed1e: 899b ldrh r3, [r3, #12]
  75886. 801ed20: b29b uxth r3, r3
  75887. 801ed22: 4618 mov r0, r3
  75888. 801ed24: f7fa faf0 bl 8019308 <lwip_htons>
  75889. 801ed28: 4603 mov r3, r0
  75890. 801ed2a: b2db uxtb r3, r3
  75891. 801ed2c: f003 0302 and.w r3, r3, #2
  75892. 801ed30: 2b00 cmp r3, #0
  75893. 801ed32: d005 beq.n 801ed40 <tcp_receive+0x934>
  75894. inseg.len -= 1;
  75895. 801ed34: 4b78 ldr r3, [pc, #480] @ (801ef18 <tcp_receive+0xb0c>)
  75896. 801ed36: 891b ldrh r3, [r3, #8]
  75897. 801ed38: 3b01 subs r3, #1
  75898. 801ed3a: b29a uxth r2, r3
  75899. 801ed3c: 4b76 ldr r3, [pc, #472] @ (801ef18 <tcp_receive+0xb0c>)
  75900. 801ed3e: 811a strh r2, [r3, #8]
  75901. }
  75902. pbuf_realloc(inseg.p, inseg.len);
  75903. 801ed40: 4b75 ldr r3, [pc, #468] @ (801ef18 <tcp_receive+0xb0c>)
  75904. 801ed42: 685b ldr r3, [r3, #4]
  75905. 801ed44: 4a74 ldr r2, [pc, #464] @ (801ef18 <tcp_receive+0xb0c>)
  75906. 801ed46: 8912 ldrh r2, [r2, #8]
  75907. 801ed48: 4611 mov r1, r2
  75908. 801ed4a: 4618 mov r0, r3
  75909. 801ed4c: f7fb fe08 bl 801a960 <pbuf_realloc>
  75910. tcplen = TCP_TCPLEN(&inseg);
  75911. 801ed50: 4b71 ldr r3, [pc, #452] @ (801ef18 <tcp_receive+0xb0c>)
  75912. 801ed52: 891c ldrh r4, [r3, #8]
  75913. 801ed54: 4b70 ldr r3, [pc, #448] @ (801ef18 <tcp_receive+0xb0c>)
  75914. 801ed56: 691b ldr r3, [r3, #16]
  75915. 801ed58: 899b ldrh r3, [r3, #12]
  75916. 801ed5a: b29b uxth r3, r3
  75917. 801ed5c: 4618 mov r0, r3
  75918. 801ed5e: f7fa fad3 bl 8019308 <lwip_htons>
  75919. 801ed62: 4603 mov r3, r0
  75920. 801ed64: b2db uxtb r3, r3
  75921. 801ed66: f003 0303 and.w r3, r3, #3
  75922. 801ed6a: 2b00 cmp r3, #0
  75923. 801ed6c: d001 beq.n 801ed72 <tcp_receive+0x966>
  75924. 801ed6e: 2301 movs r3, #1
  75925. 801ed70: e000 b.n 801ed74 <tcp_receive+0x968>
  75926. 801ed72: 2300 movs r3, #0
  75927. 801ed74: 4423 add r3, r4
  75928. 801ed76: b29a uxth r2, r3
  75929. 801ed78: 4b65 ldr r3, [pc, #404] @ (801ef10 <tcp_receive+0xb04>)
  75930. 801ed7a: 801a strh r2, [r3, #0]
  75931. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n",
  75932. 801ed7c: 4b64 ldr r3, [pc, #400] @ (801ef10 <tcp_receive+0xb04>)
  75933. 801ed7e: 881b ldrh r3, [r3, #0]
  75934. 801ed80: 461a mov r2, r3
  75935. 801ed82: 4b64 ldr r3, [pc, #400] @ (801ef14 <tcp_receive+0xb08>)
  75936. 801ed84: 681b ldr r3, [r3, #0]
  75937. 801ed86: 441a add r2, r3
  75938. 801ed88: 6bfb ldr r3, [r7, #60] @ 0x3c
  75939. 801ed8a: 691b ldr r3, [r3, #16]
  75940. 801ed8c: 685b ldr r3, [r3, #4]
  75941. 801ed8e: 429a cmp r2, r3
  75942. 801ed90: d006 beq.n 801eda0 <tcp_receive+0x994>
  75943. 801ed92: 4b62 ldr r3, [pc, #392] @ (801ef1c <tcp_receive+0xb10>)
  75944. 801ed94: f240 52fc movw r2, #1532 @ 0x5fc
  75945. 801ed98: 4961 ldr r1, [pc, #388] @ (801ef20 <tcp_receive+0xb14>)
  75946. 801ed9a: 4862 ldr r0, [pc, #392] @ (801ef24 <tcp_receive+0xb18>)
  75947. 801ed9c: f00b fa0e bl 802a1bc <iprintf>
  75948. (seqno + tcplen) == next->tcphdr->seqno);
  75949. }
  75950. pcb->ooseq = next;
  75951. 801eda0: 687b ldr r3, [r7, #4]
  75952. 801eda2: 6bfa ldr r2, [r7, #60] @ 0x3c
  75953. 801eda4: 675a str r2, [r3, #116] @ 0x74
  75954. }
  75955. }
  75956. #endif /* TCP_QUEUE_OOSEQ */
  75957. pcb->rcv_nxt = seqno + tcplen;
  75958. 801eda6: 4b5a ldr r3, [pc, #360] @ (801ef10 <tcp_receive+0xb04>)
  75959. 801eda8: 881b ldrh r3, [r3, #0]
  75960. 801edaa: 461a mov r2, r3
  75961. 801edac: 4b59 ldr r3, [pc, #356] @ (801ef14 <tcp_receive+0xb08>)
  75962. 801edae: 681b ldr r3, [r3, #0]
  75963. 801edb0: 441a add r2, r3
  75964. 801edb2: 687b ldr r3, [r7, #4]
  75965. 801edb4: 625a str r2, [r3, #36] @ 0x24
  75966. /* Update the receiver's (our) window. */
  75967. LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen);
  75968. 801edb6: 687b ldr r3, [r7, #4]
  75969. 801edb8: 8d1a ldrh r2, [r3, #40] @ 0x28
  75970. 801edba: 4b55 ldr r3, [pc, #340] @ (801ef10 <tcp_receive+0xb04>)
  75971. 801edbc: 881b ldrh r3, [r3, #0]
  75972. 801edbe: 429a cmp r2, r3
  75973. 801edc0: d206 bcs.n 801edd0 <tcp_receive+0x9c4>
  75974. 801edc2: 4b56 ldr r3, [pc, #344] @ (801ef1c <tcp_receive+0xb10>)
  75975. 801edc4: f240 6207 movw r2, #1543 @ 0x607
  75976. 801edc8: 4957 ldr r1, [pc, #348] @ (801ef28 <tcp_receive+0xb1c>)
  75977. 801edca: 4856 ldr r0, [pc, #344] @ (801ef24 <tcp_receive+0xb18>)
  75978. 801edcc: f00b f9f6 bl 802a1bc <iprintf>
  75979. pcb->rcv_wnd -= tcplen;
  75980. 801edd0: 687b ldr r3, [r7, #4]
  75981. 801edd2: 8d1a ldrh r2, [r3, #40] @ 0x28
  75982. 801edd4: 4b4e ldr r3, [pc, #312] @ (801ef10 <tcp_receive+0xb04>)
  75983. 801edd6: 881b ldrh r3, [r3, #0]
  75984. 801edd8: 1ad3 subs r3, r2, r3
  75985. 801edda: b29a uxth r2, r3
  75986. 801eddc: 687b ldr r3, [r7, #4]
  75987. 801edde: 851a strh r2, [r3, #40] @ 0x28
  75988. tcp_update_rcv_ann_wnd(pcb);
  75989. 801ede0: 6878 ldr r0, [r7, #4]
  75990. 801ede2: f7fc fd85 bl 801b8f0 <tcp_update_rcv_ann_wnd>
  75991. chains its data on this pbuf as well.
  75992. If the segment was a FIN, we set the TF_GOT_FIN flag that will
  75993. be used to indicate to the application that the remote side has
  75994. closed its end of the connection. */
  75995. if (inseg.p->tot_len > 0) {
  75996. 801ede6: 4b4c ldr r3, [pc, #304] @ (801ef18 <tcp_receive+0xb0c>)
  75997. 801ede8: 685b ldr r3, [r3, #4]
  75998. 801edea: 891b ldrh r3, [r3, #8]
  75999. 801edec: 2b00 cmp r3, #0
  76000. 801edee: d006 beq.n 801edfe <tcp_receive+0x9f2>
  76001. recv_data = inseg.p;
  76002. 801edf0: 4b49 ldr r3, [pc, #292] @ (801ef18 <tcp_receive+0xb0c>)
  76003. 801edf2: 685b ldr r3, [r3, #4]
  76004. 801edf4: 4a4d ldr r2, [pc, #308] @ (801ef2c <tcp_receive+0xb20>)
  76005. 801edf6: 6013 str r3, [r2, #0]
  76006. /* Since this pbuf now is the responsibility of the
  76007. application, we delete our reference to it so that we won't
  76008. (mistakingly) deallocate it. */
  76009. inseg.p = NULL;
  76010. 801edf8: 4b47 ldr r3, [pc, #284] @ (801ef18 <tcp_receive+0xb0c>)
  76011. 801edfa: 2200 movs r2, #0
  76012. 801edfc: 605a str r2, [r3, #4]
  76013. }
  76014. if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
  76015. 801edfe: 4b46 ldr r3, [pc, #280] @ (801ef18 <tcp_receive+0xb0c>)
  76016. 801ee00: 691b ldr r3, [r3, #16]
  76017. 801ee02: 899b ldrh r3, [r3, #12]
  76018. 801ee04: b29b uxth r3, r3
  76019. 801ee06: 4618 mov r0, r3
  76020. 801ee08: f7fa fa7e bl 8019308 <lwip_htons>
  76021. 801ee0c: 4603 mov r3, r0
  76022. 801ee0e: b2db uxtb r3, r3
  76023. 801ee10: f003 0301 and.w r3, r3, #1
  76024. 801ee14: 2b00 cmp r3, #0
  76025. 801ee16: f000 80b8 beq.w 801ef8a <tcp_receive+0xb7e>
  76026. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n"));
  76027. recv_flags |= TF_GOT_FIN;
  76028. 801ee1a: 4b45 ldr r3, [pc, #276] @ (801ef30 <tcp_receive+0xb24>)
  76029. 801ee1c: 781b ldrb r3, [r3, #0]
  76030. 801ee1e: f043 0320 orr.w r3, r3, #32
  76031. 801ee22: b2da uxtb r2, r3
  76032. 801ee24: 4b42 ldr r3, [pc, #264] @ (801ef30 <tcp_receive+0xb24>)
  76033. 801ee26: 701a strb r2, [r3, #0]
  76034. }
  76035. #if TCP_QUEUE_OOSEQ
  76036. /* We now check if we have segments on the ->ooseq queue that
  76037. are now in sequence. */
  76038. while (pcb->ooseq != NULL &&
  76039. 801ee28: e0af b.n 801ef8a <tcp_receive+0xb7e>
  76040. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  76041. struct tcp_seg *cseg = pcb->ooseq;
  76042. 801ee2a: 687b ldr r3, [r7, #4]
  76043. 801ee2c: 6f5b ldr r3, [r3, #116] @ 0x74
  76044. 801ee2e: 60bb str r3, [r7, #8]
  76045. seqno = pcb->ooseq->tcphdr->seqno;
  76046. 801ee30: 687b ldr r3, [r7, #4]
  76047. 801ee32: 6f5b ldr r3, [r3, #116] @ 0x74
  76048. 801ee34: 691b ldr r3, [r3, #16]
  76049. 801ee36: 685b ldr r3, [r3, #4]
  76050. 801ee38: 4a36 ldr r2, [pc, #216] @ (801ef14 <tcp_receive+0xb08>)
  76051. 801ee3a: 6013 str r3, [r2, #0]
  76052. pcb->rcv_nxt += TCP_TCPLEN(cseg);
  76053. 801ee3c: 68bb ldr r3, [r7, #8]
  76054. 801ee3e: 891b ldrh r3, [r3, #8]
  76055. 801ee40: 461c mov r4, r3
  76056. 801ee42: 68bb ldr r3, [r7, #8]
  76057. 801ee44: 691b ldr r3, [r3, #16]
  76058. 801ee46: 899b ldrh r3, [r3, #12]
  76059. 801ee48: b29b uxth r3, r3
  76060. 801ee4a: 4618 mov r0, r3
  76061. 801ee4c: f7fa fa5c bl 8019308 <lwip_htons>
  76062. 801ee50: 4603 mov r3, r0
  76063. 801ee52: b2db uxtb r3, r3
  76064. 801ee54: f003 0303 and.w r3, r3, #3
  76065. 801ee58: 2b00 cmp r3, #0
  76066. 801ee5a: d001 beq.n 801ee60 <tcp_receive+0xa54>
  76067. 801ee5c: 2301 movs r3, #1
  76068. 801ee5e: e000 b.n 801ee62 <tcp_receive+0xa56>
  76069. 801ee60: 2300 movs r3, #0
  76070. 801ee62: 191a adds r2, r3, r4
  76071. 801ee64: 687b ldr r3, [r7, #4]
  76072. 801ee66: 6a5b ldr r3, [r3, #36] @ 0x24
  76073. 801ee68: 441a add r2, r3
  76074. 801ee6a: 687b ldr r3, [r7, #4]
  76075. 801ee6c: 625a str r2, [r3, #36] @ 0x24
  76076. LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n",
  76077. 801ee6e: 687b ldr r3, [r7, #4]
  76078. 801ee70: 8d1b ldrh r3, [r3, #40] @ 0x28
  76079. 801ee72: 461c mov r4, r3
  76080. 801ee74: 68bb ldr r3, [r7, #8]
  76081. 801ee76: 891b ldrh r3, [r3, #8]
  76082. 801ee78: 461d mov r5, r3
  76083. 801ee7a: 68bb ldr r3, [r7, #8]
  76084. 801ee7c: 691b ldr r3, [r3, #16]
  76085. 801ee7e: 899b ldrh r3, [r3, #12]
  76086. 801ee80: b29b uxth r3, r3
  76087. 801ee82: 4618 mov r0, r3
  76088. 801ee84: f7fa fa40 bl 8019308 <lwip_htons>
  76089. 801ee88: 4603 mov r3, r0
  76090. 801ee8a: b2db uxtb r3, r3
  76091. 801ee8c: f003 0303 and.w r3, r3, #3
  76092. 801ee90: 2b00 cmp r3, #0
  76093. 801ee92: d001 beq.n 801ee98 <tcp_receive+0xa8c>
  76094. 801ee94: 2301 movs r3, #1
  76095. 801ee96: e000 b.n 801ee9a <tcp_receive+0xa8e>
  76096. 801ee98: 2300 movs r3, #0
  76097. 801ee9a: 442b add r3, r5
  76098. 801ee9c: 429c cmp r4, r3
  76099. 801ee9e: d206 bcs.n 801eeae <tcp_receive+0xaa2>
  76100. 801eea0: 4b1e ldr r3, [pc, #120] @ (801ef1c <tcp_receive+0xb10>)
  76101. 801eea2: f240 622b movw r2, #1579 @ 0x62b
  76102. 801eea6: 4923 ldr r1, [pc, #140] @ (801ef34 <tcp_receive+0xb28>)
  76103. 801eea8: 481e ldr r0, [pc, #120] @ (801ef24 <tcp_receive+0xb18>)
  76104. 801eeaa: f00b f987 bl 802a1bc <iprintf>
  76105. pcb->rcv_wnd >= TCP_TCPLEN(cseg));
  76106. pcb->rcv_wnd -= TCP_TCPLEN(cseg);
  76107. 801eeae: 68bb ldr r3, [r7, #8]
  76108. 801eeb0: 891b ldrh r3, [r3, #8]
  76109. 801eeb2: 461c mov r4, r3
  76110. 801eeb4: 68bb ldr r3, [r7, #8]
  76111. 801eeb6: 691b ldr r3, [r3, #16]
  76112. 801eeb8: 899b ldrh r3, [r3, #12]
  76113. 801eeba: b29b uxth r3, r3
  76114. 801eebc: 4618 mov r0, r3
  76115. 801eebe: f7fa fa23 bl 8019308 <lwip_htons>
  76116. 801eec2: 4603 mov r3, r0
  76117. 801eec4: b2db uxtb r3, r3
  76118. 801eec6: f003 0303 and.w r3, r3, #3
  76119. 801eeca: 2b00 cmp r3, #0
  76120. 801eecc: d001 beq.n 801eed2 <tcp_receive+0xac6>
  76121. 801eece: 2301 movs r3, #1
  76122. 801eed0: e000 b.n 801eed4 <tcp_receive+0xac8>
  76123. 801eed2: 2300 movs r3, #0
  76124. 801eed4: 1919 adds r1, r3, r4
  76125. 801eed6: 687b ldr r3, [r7, #4]
  76126. 801eed8: 8d1a ldrh r2, [r3, #40] @ 0x28
  76127. 801eeda: b28b uxth r3, r1
  76128. 801eedc: 1ad3 subs r3, r2, r3
  76129. 801eede: b29a uxth r2, r3
  76130. 801eee0: 687b ldr r3, [r7, #4]
  76131. 801eee2: 851a strh r2, [r3, #40] @ 0x28
  76132. tcp_update_rcv_ann_wnd(pcb);
  76133. 801eee4: 6878 ldr r0, [r7, #4]
  76134. 801eee6: f7fc fd03 bl 801b8f0 <tcp_update_rcv_ann_wnd>
  76135. if (cseg->p->tot_len > 0) {
  76136. 801eeea: 68bb ldr r3, [r7, #8]
  76137. 801eeec: 685b ldr r3, [r3, #4]
  76138. 801eeee: 891b ldrh r3, [r3, #8]
  76139. 801eef0: 2b00 cmp r3, #0
  76140. 801eef2: d028 beq.n 801ef46 <tcp_receive+0xb3a>
  76141. /* Chain this pbuf onto the pbuf that we will pass to
  76142. the application. */
  76143. /* With window scaling, this can overflow recv_data->tot_len, but
  76144. that's not a problem since we explicitly fix that before passing
  76145. recv_data to the application. */
  76146. if (recv_data) {
  76147. 801eef4: 4b0d ldr r3, [pc, #52] @ (801ef2c <tcp_receive+0xb20>)
  76148. 801eef6: 681b ldr r3, [r3, #0]
  76149. 801eef8: 2b00 cmp r3, #0
  76150. 801eefa: d01d beq.n 801ef38 <tcp_receive+0xb2c>
  76151. pbuf_cat(recv_data, cseg->p);
  76152. 801eefc: 4b0b ldr r3, [pc, #44] @ (801ef2c <tcp_receive+0xb20>)
  76153. 801eefe: 681a ldr r2, [r3, #0]
  76154. 801ef00: 68bb ldr r3, [r7, #8]
  76155. 801ef02: 685b ldr r3, [r3, #4]
  76156. 801ef04: 4619 mov r1, r3
  76157. 801ef06: 4610 mov r0, r2
  76158. 801ef08: f7fb ffae bl 801ae68 <pbuf_cat>
  76159. 801ef0c: e018 b.n 801ef40 <tcp_receive+0xb34>
  76160. 801ef0e: bf00 nop
  76161. 801ef10: 2402af9e .word 0x2402af9e
  76162. 801ef14: 2402af94 .word 0x2402af94
  76163. 801ef18: 2402af70 .word 0x2402af70
  76164. 801ef1c: 0802f5a4 .word 0x0802f5a4
  76165. 801ef20: 0802f984 .word 0x0802f984
  76166. 801ef24: 0802f5f0 .word 0x0802f5f0
  76167. 801ef28: 0802f9c0 .word 0x0802f9c0
  76168. 801ef2c: 2402afa4 .word 0x2402afa4
  76169. 801ef30: 2402afa1 .word 0x2402afa1
  76170. 801ef34: 0802f9e0 .word 0x0802f9e0
  76171. } else {
  76172. recv_data = cseg->p;
  76173. 801ef38: 68bb ldr r3, [r7, #8]
  76174. 801ef3a: 685b ldr r3, [r3, #4]
  76175. 801ef3c: 4a70 ldr r2, [pc, #448] @ (801f100 <tcp_receive+0xcf4>)
  76176. 801ef3e: 6013 str r3, [r2, #0]
  76177. }
  76178. cseg->p = NULL;
  76179. 801ef40: 68bb ldr r3, [r7, #8]
  76180. 801ef42: 2200 movs r2, #0
  76181. 801ef44: 605a str r2, [r3, #4]
  76182. }
  76183. if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) {
  76184. 801ef46: 68bb ldr r3, [r7, #8]
  76185. 801ef48: 691b ldr r3, [r3, #16]
  76186. 801ef4a: 899b ldrh r3, [r3, #12]
  76187. 801ef4c: b29b uxth r3, r3
  76188. 801ef4e: 4618 mov r0, r3
  76189. 801ef50: f7fa f9da bl 8019308 <lwip_htons>
  76190. 801ef54: 4603 mov r3, r0
  76191. 801ef56: b2db uxtb r3, r3
  76192. 801ef58: f003 0301 and.w r3, r3, #1
  76193. 801ef5c: 2b00 cmp r3, #0
  76194. 801ef5e: d00d beq.n 801ef7c <tcp_receive+0xb70>
  76195. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n"));
  76196. recv_flags |= TF_GOT_FIN;
  76197. 801ef60: 4b68 ldr r3, [pc, #416] @ (801f104 <tcp_receive+0xcf8>)
  76198. 801ef62: 781b ldrb r3, [r3, #0]
  76199. 801ef64: f043 0320 orr.w r3, r3, #32
  76200. 801ef68: b2da uxtb r2, r3
  76201. 801ef6a: 4b66 ldr r3, [pc, #408] @ (801f104 <tcp_receive+0xcf8>)
  76202. 801ef6c: 701a strb r2, [r3, #0]
  76203. if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */
  76204. 801ef6e: 687b ldr r3, [r7, #4]
  76205. 801ef70: 7d1b ldrb r3, [r3, #20]
  76206. 801ef72: 2b04 cmp r3, #4
  76207. 801ef74: d102 bne.n 801ef7c <tcp_receive+0xb70>
  76208. pcb->state = CLOSE_WAIT;
  76209. 801ef76: 687b ldr r3, [r7, #4]
  76210. 801ef78: 2207 movs r2, #7
  76211. 801ef7a: 751a strb r2, [r3, #20]
  76212. }
  76213. }
  76214. pcb->ooseq = cseg->next;
  76215. 801ef7c: 68bb ldr r3, [r7, #8]
  76216. 801ef7e: 681a ldr r2, [r3, #0]
  76217. 801ef80: 687b ldr r3, [r7, #4]
  76218. 801ef82: 675a str r2, [r3, #116] @ 0x74
  76219. tcp_seg_free(cseg);
  76220. 801ef84: 68b8 ldr r0, [r7, #8]
  76221. 801ef86: f7fd fafa bl 801c57e <tcp_seg_free>
  76222. while (pcb->ooseq != NULL &&
  76223. 801ef8a: 687b ldr r3, [r7, #4]
  76224. 801ef8c: 6f5b ldr r3, [r3, #116] @ 0x74
  76225. 801ef8e: 2b00 cmp r3, #0
  76226. 801ef90: d008 beq.n 801efa4 <tcp_receive+0xb98>
  76227. pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) {
  76228. 801ef92: 687b ldr r3, [r7, #4]
  76229. 801ef94: 6f5b ldr r3, [r3, #116] @ 0x74
  76230. 801ef96: 691b ldr r3, [r3, #16]
  76231. 801ef98: 685a ldr r2, [r3, #4]
  76232. 801ef9a: 687b ldr r3, [r7, #4]
  76233. 801ef9c: 6a5b ldr r3, [r3, #36] @ 0x24
  76234. while (pcb->ooseq != NULL &&
  76235. 801ef9e: 429a cmp r2, r3
  76236. 801efa0: f43f af43 beq.w 801ee2a <tcp_receive+0xa1e>
  76237. #endif /* LWIP_TCP_SACK_OUT */
  76238. #endif /* TCP_QUEUE_OOSEQ */
  76239. /* Acknowledge the segment(s). */
  76240. tcp_ack(pcb);
  76241. 801efa4: 687b ldr r3, [r7, #4]
  76242. 801efa6: 8b5b ldrh r3, [r3, #26]
  76243. 801efa8: f003 0301 and.w r3, r3, #1
  76244. 801efac: 2b00 cmp r3, #0
  76245. 801efae: d00e beq.n 801efce <tcp_receive+0xbc2>
  76246. 801efb0: 687b ldr r3, [r7, #4]
  76247. 801efb2: 8b5b ldrh r3, [r3, #26]
  76248. 801efb4: f023 0301 bic.w r3, r3, #1
  76249. 801efb8: b29a uxth r2, r3
  76250. 801efba: 687b ldr r3, [r7, #4]
  76251. 801efbc: 835a strh r2, [r3, #26]
  76252. 801efbe: 687b ldr r3, [r7, #4]
  76253. 801efc0: 8b5b ldrh r3, [r3, #26]
  76254. 801efc2: f043 0302 orr.w r3, r3, #2
  76255. 801efc6: b29a uxth r2, r3
  76256. 801efc8: 687b ldr r3, [r7, #4]
  76257. 801efca: 835a strh r2, [r3, #26]
  76258. if (pcb->rcv_nxt == seqno) {
  76259. 801efcc: e187 b.n 801f2de <tcp_receive+0xed2>
  76260. tcp_ack(pcb);
  76261. 801efce: 687b ldr r3, [r7, #4]
  76262. 801efd0: 8b5b ldrh r3, [r3, #26]
  76263. 801efd2: f043 0301 orr.w r3, r3, #1
  76264. 801efd6: b29a uxth r2, r3
  76265. 801efd8: 687b ldr r3, [r7, #4]
  76266. 801efda: 835a strh r2, [r3, #26]
  76267. if (pcb->rcv_nxt == seqno) {
  76268. 801efdc: e17f b.n 801f2de <tcp_receive+0xed2>
  76269. } else {
  76270. /* We get here if the incoming segment is out-of-sequence. */
  76271. #if TCP_QUEUE_OOSEQ
  76272. /* We queue the segment on the ->ooseq queue. */
  76273. if (pcb->ooseq == NULL) {
  76274. 801efde: 687b ldr r3, [r7, #4]
  76275. 801efe0: 6f5b ldr r3, [r3, #116] @ 0x74
  76276. 801efe2: 2b00 cmp r3, #0
  76277. 801efe4: d106 bne.n 801eff4 <tcp_receive+0xbe8>
  76278. pcb->ooseq = tcp_seg_copy(&inseg);
  76279. 801efe6: 4848 ldr r0, [pc, #288] @ (801f108 <tcp_receive+0xcfc>)
  76280. 801efe8: f7fd fae2 bl 801c5b0 <tcp_seg_copy>
  76281. 801efec: 4602 mov r2, r0
  76282. 801efee: 687b ldr r3, [r7, #4]
  76283. 801eff0: 675a str r2, [r3, #116] @ 0x74
  76284. 801eff2: e16c b.n 801f2ce <tcp_receive+0xec2>
  76285. #if LWIP_TCP_SACK_OUT
  76286. /* This is the left edge of the lowest possible SACK range.
  76287. It may start before the newly received segment (possibly adjusted below). */
  76288. u32_t sackbeg = TCP_SEQ_LT(seqno, pcb->ooseq->tcphdr->seqno) ? seqno : pcb->ooseq->tcphdr->seqno;
  76289. #endif /* LWIP_TCP_SACK_OUT */
  76290. struct tcp_seg *next, *prev = NULL;
  76291. 801eff4: 2300 movs r3, #0
  76292. 801eff6: 637b str r3, [r7, #52] @ 0x34
  76293. for (next = pcb->ooseq; next != NULL; next = next->next) {
  76294. 801eff8: 687b ldr r3, [r7, #4]
  76295. 801effa: 6f5b ldr r3, [r3, #116] @ 0x74
  76296. 801effc: 63bb str r3, [r7, #56] @ 0x38
  76297. 801effe: e156 b.n 801f2ae <tcp_receive+0xea2>
  76298. if (seqno == next->tcphdr->seqno) {
  76299. 801f000: 6bbb ldr r3, [r7, #56] @ 0x38
  76300. 801f002: 691b ldr r3, [r3, #16]
  76301. 801f004: 685a ldr r2, [r3, #4]
  76302. 801f006: 4b41 ldr r3, [pc, #260] @ (801f10c <tcp_receive+0xd00>)
  76303. 801f008: 681b ldr r3, [r3, #0]
  76304. 801f00a: 429a cmp r2, r3
  76305. 801f00c: d11d bne.n 801f04a <tcp_receive+0xc3e>
  76306. /* The sequence number of the incoming segment is the
  76307. same as the sequence number of the segment on
  76308. ->ooseq. We check the lengths to see which one to
  76309. discard. */
  76310. if (inseg.len > next->len) {
  76311. 801f00e: 4b3e ldr r3, [pc, #248] @ (801f108 <tcp_receive+0xcfc>)
  76312. 801f010: 891a ldrh r2, [r3, #8]
  76313. 801f012: 6bbb ldr r3, [r7, #56] @ 0x38
  76314. 801f014: 891b ldrh r3, [r3, #8]
  76315. 801f016: 429a cmp r2, r3
  76316. 801f018: f240 814e bls.w 801f2b8 <tcp_receive+0xeac>
  76317. /* The incoming segment is larger than the old
  76318. segment. We replace some segments with the new
  76319. one. */
  76320. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  76321. 801f01c: 483a ldr r0, [pc, #232] @ (801f108 <tcp_receive+0xcfc>)
  76322. 801f01e: f7fd fac7 bl 801c5b0 <tcp_seg_copy>
  76323. 801f022: 6178 str r0, [r7, #20]
  76324. if (cseg != NULL) {
  76325. 801f024: 697b ldr r3, [r7, #20]
  76326. 801f026: 2b00 cmp r3, #0
  76327. 801f028: f000 8148 beq.w 801f2bc <tcp_receive+0xeb0>
  76328. if (prev != NULL) {
  76329. 801f02c: 6b7b ldr r3, [r7, #52] @ 0x34
  76330. 801f02e: 2b00 cmp r3, #0
  76331. 801f030: d003 beq.n 801f03a <tcp_receive+0xc2e>
  76332. prev->next = cseg;
  76333. 801f032: 6b7b ldr r3, [r7, #52] @ 0x34
  76334. 801f034: 697a ldr r2, [r7, #20]
  76335. 801f036: 601a str r2, [r3, #0]
  76336. 801f038: e002 b.n 801f040 <tcp_receive+0xc34>
  76337. } else {
  76338. pcb->ooseq = cseg;
  76339. 801f03a: 687b ldr r3, [r7, #4]
  76340. 801f03c: 697a ldr r2, [r7, #20]
  76341. 801f03e: 675a str r2, [r3, #116] @ 0x74
  76342. }
  76343. tcp_oos_insert_segment(cseg, next);
  76344. 801f040: 6bb9 ldr r1, [r7, #56] @ 0x38
  76345. 801f042: 6978 ldr r0, [r7, #20]
  76346. 801f044: f7ff f8de bl 801e204 <tcp_oos_insert_segment>
  76347. }
  76348. break;
  76349. 801f048: e138 b.n 801f2bc <tcp_receive+0xeb0>
  76350. segment was smaller than the old one; in either
  76351. case, we ditch the incoming segment. */
  76352. break;
  76353. }
  76354. } else {
  76355. if (prev == NULL) {
  76356. 801f04a: 6b7b ldr r3, [r7, #52] @ 0x34
  76357. 801f04c: 2b00 cmp r3, #0
  76358. 801f04e: d117 bne.n 801f080 <tcp_receive+0xc74>
  76359. if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {
  76360. 801f050: 4b2e ldr r3, [pc, #184] @ (801f10c <tcp_receive+0xd00>)
  76361. 801f052: 681a ldr r2, [r3, #0]
  76362. 801f054: 6bbb ldr r3, [r7, #56] @ 0x38
  76363. 801f056: 691b ldr r3, [r3, #16]
  76364. 801f058: 685b ldr r3, [r3, #4]
  76365. 801f05a: 1ad3 subs r3, r2, r3
  76366. 801f05c: 2b00 cmp r3, #0
  76367. 801f05e: da57 bge.n 801f110 <tcp_receive+0xd04>
  76368. /* The sequence number of the incoming segment is lower
  76369. than the sequence number of the first segment on the
  76370. queue. We put the incoming segment first on the
  76371. queue. */
  76372. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  76373. 801f060: 4829 ldr r0, [pc, #164] @ (801f108 <tcp_receive+0xcfc>)
  76374. 801f062: f7fd faa5 bl 801c5b0 <tcp_seg_copy>
  76375. 801f066: 61b8 str r0, [r7, #24]
  76376. if (cseg != NULL) {
  76377. 801f068: 69bb ldr r3, [r7, #24]
  76378. 801f06a: 2b00 cmp r3, #0
  76379. 801f06c: f000 8128 beq.w 801f2c0 <tcp_receive+0xeb4>
  76380. pcb->ooseq = cseg;
  76381. 801f070: 687b ldr r3, [r7, #4]
  76382. 801f072: 69ba ldr r2, [r7, #24]
  76383. 801f074: 675a str r2, [r3, #116] @ 0x74
  76384. tcp_oos_insert_segment(cseg, next);
  76385. 801f076: 6bb9 ldr r1, [r7, #56] @ 0x38
  76386. 801f078: 69b8 ldr r0, [r7, #24]
  76387. 801f07a: f7ff f8c3 bl 801e204 <tcp_oos_insert_segment>
  76388. }
  76389. break;
  76390. 801f07e: e11f b.n 801f2c0 <tcp_receive+0xeb4>
  76391. }
  76392. } else {
  76393. /*if (TCP_SEQ_LT(prev->tcphdr->seqno, seqno) &&
  76394. TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {*/
  76395. if (TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno + 1, next->tcphdr->seqno - 1)) {
  76396. 801f080: 4b22 ldr r3, [pc, #136] @ (801f10c <tcp_receive+0xd00>)
  76397. 801f082: 681a ldr r2, [r3, #0]
  76398. 801f084: 6b7b ldr r3, [r7, #52] @ 0x34
  76399. 801f086: 691b ldr r3, [r3, #16]
  76400. 801f088: 685b ldr r3, [r3, #4]
  76401. 801f08a: 1ad3 subs r3, r2, r3
  76402. 801f08c: 3b01 subs r3, #1
  76403. 801f08e: 2b00 cmp r3, #0
  76404. 801f090: db3e blt.n 801f110 <tcp_receive+0xd04>
  76405. 801f092: 4b1e ldr r3, [pc, #120] @ (801f10c <tcp_receive+0xd00>)
  76406. 801f094: 681a ldr r2, [r3, #0]
  76407. 801f096: 6bbb ldr r3, [r7, #56] @ 0x38
  76408. 801f098: 691b ldr r3, [r3, #16]
  76409. 801f09a: 685b ldr r3, [r3, #4]
  76410. 801f09c: 1ad3 subs r3, r2, r3
  76411. 801f09e: 3301 adds r3, #1
  76412. 801f0a0: 2b00 cmp r3, #0
  76413. 801f0a2: dc35 bgt.n 801f110 <tcp_receive+0xd04>
  76414. /* The sequence number of the incoming segment is in
  76415. between the sequence numbers of the previous and
  76416. the next segment on ->ooseq. We trim trim the previous
  76417. segment, delete next segments that included in received segment
  76418. and trim received, if needed. */
  76419. struct tcp_seg *cseg = tcp_seg_copy(&inseg);
  76420. 801f0a4: 4818 ldr r0, [pc, #96] @ (801f108 <tcp_receive+0xcfc>)
  76421. 801f0a6: f7fd fa83 bl 801c5b0 <tcp_seg_copy>
  76422. 801f0aa: 61f8 str r0, [r7, #28]
  76423. if (cseg != NULL) {
  76424. 801f0ac: 69fb ldr r3, [r7, #28]
  76425. 801f0ae: 2b00 cmp r3, #0
  76426. 801f0b0: f000 8108 beq.w 801f2c4 <tcp_receive+0xeb8>
  76427. if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) {
  76428. 801f0b4: 6b7b ldr r3, [r7, #52] @ 0x34
  76429. 801f0b6: 691b ldr r3, [r3, #16]
  76430. 801f0b8: 685b ldr r3, [r3, #4]
  76431. 801f0ba: 6b7a ldr r2, [r7, #52] @ 0x34
  76432. 801f0bc: 8912 ldrh r2, [r2, #8]
  76433. 801f0be: 441a add r2, r3
  76434. 801f0c0: 4b12 ldr r3, [pc, #72] @ (801f10c <tcp_receive+0xd00>)
  76435. 801f0c2: 681b ldr r3, [r3, #0]
  76436. 801f0c4: 1ad3 subs r3, r2, r3
  76437. 801f0c6: 2b00 cmp r3, #0
  76438. 801f0c8: dd12 ble.n 801f0f0 <tcp_receive+0xce4>
  76439. /* We need to trim the prev segment. */
  76440. prev->len = (u16_t)(seqno - prev->tcphdr->seqno);
  76441. 801f0ca: 4b10 ldr r3, [pc, #64] @ (801f10c <tcp_receive+0xd00>)
  76442. 801f0cc: 681b ldr r3, [r3, #0]
  76443. 801f0ce: b29a uxth r2, r3
  76444. 801f0d0: 6b7b ldr r3, [r7, #52] @ 0x34
  76445. 801f0d2: 691b ldr r3, [r3, #16]
  76446. 801f0d4: 685b ldr r3, [r3, #4]
  76447. 801f0d6: b29b uxth r3, r3
  76448. 801f0d8: 1ad3 subs r3, r2, r3
  76449. 801f0da: b29a uxth r2, r3
  76450. 801f0dc: 6b7b ldr r3, [r7, #52] @ 0x34
  76451. 801f0de: 811a strh r2, [r3, #8]
  76452. pbuf_realloc(prev->p, prev->len);
  76453. 801f0e0: 6b7b ldr r3, [r7, #52] @ 0x34
  76454. 801f0e2: 685a ldr r2, [r3, #4]
  76455. 801f0e4: 6b7b ldr r3, [r7, #52] @ 0x34
  76456. 801f0e6: 891b ldrh r3, [r3, #8]
  76457. 801f0e8: 4619 mov r1, r3
  76458. 801f0ea: 4610 mov r0, r2
  76459. 801f0ec: f7fb fc38 bl 801a960 <pbuf_realloc>
  76460. }
  76461. prev->next = cseg;
  76462. 801f0f0: 6b7b ldr r3, [r7, #52] @ 0x34
  76463. 801f0f2: 69fa ldr r2, [r7, #28]
  76464. 801f0f4: 601a str r2, [r3, #0]
  76465. tcp_oos_insert_segment(cseg, next);
  76466. 801f0f6: 6bb9 ldr r1, [r7, #56] @ 0x38
  76467. 801f0f8: 69f8 ldr r0, [r7, #28]
  76468. 801f0fa: f7ff f883 bl 801e204 <tcp_oos_insert_segment>
  76469. }
  76470. break;
  76471. 801f0fe: e0e1 b.n 801f2c4 <tcp_receive+0xeb8>
  76472. 801f100: 2402afa4 .word 0x2402afa4
  76473. 801f104: 2402afa1 .word 0x2402afa1
  76474. 801f108: 2402af70 .word 0x2402af70
  76475. 801f10c: 2402af94 .word 0x2402af94
  76476. #endif /* LWIP_TCP_SACK_OUT */
  76477. /* We don't use 'prev' below, so let's set it to current 'next'.
  76478. This way even if we break the loop below, 'prev' will be pointing
  76479. at the segment right in front of the newly added one. */
  76480. prev = next;
  76481. 801f110: 6bbb ldr r3, [r7, #56] @ 0x38
  76482. 801f112: 637b str r3, [r7, #52] @ 0x34
  76483. /* If the "next" segment is the last segment on the
  76484. ooseq queue, we add the incoming segment to the end
  76485. of the list. */
  76486. if (next->next == NULL &&
  76487. 801f114: 6bbb ldr r3, [r7, #56] @ 0x38
  76488. 801f116: 681b ldr r3, [r3, #0]
  76489. 801f118: 2b00 cmp r3, #0
  76490. 801f11a: f040 80c5 bne.w 801f2a8 <tcp_receive+0xe9c>
  76491. TCP_SEQ_GT(seqno, next->tcphdr->seqno)) {
  76492. 801f11e: 4b7f ldr r3, [pc, #508] @ (801f31c <tcp_receive+0xf10>)
  76493. 801f120: 681a ldr r2, [r3, #0]
  76494. 801f122: 6bbb ldr r3, [r7, #56] @ 0x38
  76495. 801f124: 691b ldr r3, [r3, #16]
  76496. 801f126: 685b ldr r3, [r3, #4]
  76497. 801f128: 1ad3 subs r3, r2, r3
  76498. if (next->next == NULL &&
  76499. 801f12a: 2b00 cmp r3, #0
  76500. 801f12c: f340 80bc ble.w 801f2a8 <tcp_receive+0xe9c>
  76501. if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) {
  76502. 801f130: 6bbb ldr r3, [r7, #56] @ 0x38
  76503. 801f132: 691b ldr r3, [r3, #16]
  76504. 801f134: 899b ldrh r3, [r3, #12]
  76505. 801f136: b29b uxth r3, r3
  76506. 801f138: 4618 mov r0, r3
  76507. 801f13a: f7fa f8e5 bl 8019308 <lwip_htons>
  76508. 801f13e: 4603 mov r3, r0
  76509. 801f140: b2db uxtb r3, r3
  76510. 801f142: f003 0301 and.w r3, r3, #1
  76511. 801f146: 2b00 cmp r3, #0
  76512. 801f148: f040 80be bne.w 801f2c8 <tcp_receive+0xebc>
  76513. /* segment "next" already contains all data */
  76514. break;
  76515. }
  76516. next->next = tcp_seg_copy(&inseg);
  76517. 801f14c: 4874 ldr r0, [pc, #464] @ (801f320 <tcp_receive+0xf14>)
  76518. 801f14e: f7fd fa2f bl 801c5b0 <tcp_seg_copy>
  76519. 801f152: 4602 mov r2, r0
  76520. 801f154: 6bbb ldr r3, [r7, #56] @ 0x38
  76521. 801f156: 601a str r2, [r3, #0]
  76522. if (next->next != NULL) {
  76523. 801f158: 6bbb ldr r3, [r7, #56] @ 0x38
  76524. 801f15a: 681b ldr r3, [r3, #0]
  76525. 801f15c: 2b00 cmp r3, #0
  76526. 801f15e: f000 80b5 beq.w 801f2cc <tcp_receive+0xec0>
  76527. if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) {
  76528. 801f162: 6bbb ldr r3, [r7, #56] @ 0x38
  76529. 801f164: 691b ldr r3, [r3, #16]
  76530. 801f166: 685b ldr r3, [r3, #4]
  76531. 801f168: 6bba ldr r2, [r7, #56] @ 0x38
  76532. 801f16a: 8912 ldrh r2, [r2, #8]
  76533. 801f16c: 441a add r2, r3
  76534. 801f16e: 4b6b ldr r3, [pc, #428] @ (801f31c <tcp_receive+0xf10>)
  76535. 801f170: 681b ldr r3, [r3, #0]
  76536. 801f172: 1ad3 subs r3, r2, r3
  76537. 801f174: 2b00 cmp r3, #0
  76538. 801f176: dd12 ble.n 801f19e <tcp_receive+0xd92>
  76539. /* We need to trim the last segment. */
  76540. next->len = (u16_t)(seqno - next->tcphdr->seqno);
  76541. 801f178: 4b68 ldr r3, [pc, #416] @ (801f31c <tcp_receive+0xf10>)
  76542. 801f17a: 681b ldr r3, [r3, #0]
  76543. 801f17c: b29a uxth r2, r3
  76544. 801f17e: 6bbb ldr r3, [r7, #56] @ 0x38
  76545. 801f180: 691b ldr r3, [r3, #16]
  76546. 801f182: 685b ldr r3, [r3, #4]
  76547. 801f184: b29b uxth r3, r3
  76548. 801f186: 1ad3 subs r3, r2, r3
  76549. 801f188: b29a uxth r2, r3
  76550. 801f18a: 6bbb ldr r3, [r7, #56] @ 0x38
  76551. 801f18c: 811a strh r2, [r3, #8]
  76552. pbuf_realloc(next->p, next->len);
  76553. 801f18e: 6bbb ldr r3, [r7, #56] @ 0x38
  76554. 801f190: 685a ldr r2, [r3, #4]
  76555. 801f192: 6bbb ldr r3, [r7, #56] @ 0x38
  76556. 801f194: 891b ldrh r3, [r3, #8]
  76557. 801f196: 4619 mov r1, r3
  76558. 801f198: 4610 mov r0, r2
  76559. 801f19a: f7fb fbe1 bl 801a960 <pbuf_realloc>
  76560. }
  76561. /* check if the remote side overruns our receive window */
  76562. if (TCP_SEQ_GT((u32_t)tcplen + seqno, pcb->rcv_nxt + (u32_t)pcb->rcv_wnd)) {
  76563. 801f19e: 4b61 ldr r3, [pc, #388] @ (801f324 <tcp_receive+0xf18>)
  76564. 801f1a0: 881b ldrh r3, [r3, #0]
  76565. 801f1a2: 461a mov r2, r3
  76566. 801f1a4: 4b5d ldr r3, [pc, #372] @ (801f31c <tcp_receive+0xf10>)
  76567. 801f1a6: 681b ldr r3, [r3, #0]
  76568. 801f1a8: 441a add r2, r3
  76569. 801f1aa: 687b ldr r3, [r7, #4]
  76570. 801f1ac: 6a5b ldr r3, [r3, #36] @ 0x24
  76571. 801f1ae: 6879 ldr r1, [r7, #4]
  76572. 801f1b0: 8d09 ldrh r1, [r1, #40] @ 0x28
  76573. 801f1b2: 440b add r3, r1
  76574. 801f1b4: 1ad3 subs r3, r2, r3
  76575. 801f1b6: 2b00 cmp r3, #0
  76576. 801f1b8: f340 8088 ble.w 801f2cc <tcp_receive+0xec0>
  76577. LWIP_DEBUGF(TCP_INPUT_DEBUG,
  76578. ("tcp_receive: other end overran receive window"
  76579. "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n",
  76580. seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd));
  76581. if (TCPH_FLAGS(next->next->tcphdr) & TCP_FIN) {
  76582. 801f1bc: 6bbb ldr r3, [r7, #56] @ 0x38
  76583. 801f1be: 681b ldr r3, [r3, #0]
  76584. 801f1c0: 691b ldr r3, [r3, #16]
  76585. 801f1c2: 899b ldrh r3, [r3, #12]
  76586. 801f1c4: b29b uxth r3, r3
  76587. 801f1c6: 4618 mov r0, r3
  76588. 801f1c8: f7fa f89e bl 8019308 <lwip_htons>
  76589. 801f1cc: 4603 mov r3, r0
  76590. 801f1ce: b2db uxtb r3, r3
  76591. 801f1d0: f003 0301 and.w r3, r3, #1
  76592. 801f1d4: 2b00 cmp r3, #0
  76593. 801f1d6: d021 beq.n 801f21c <tcp_receive+0xe10>
  76594. /* Must remove the FIN from the header as we're trimming
  76595. * that byte of sequence-space from the packet */
  76596. TCPH_FLAGS_SET(next->next->tcphdr, TCPH_FLAGS(next->next->tcphdr) & ~TCP_FIN);
  76597. 801f1d8: 6bbb ldr r3, [r7, #56] @ 0x38
  76598. 801f1da: 681b ldr r3, [r3, #0]
  76599. 801f1dc: 691b ldr r3, [r3, #16]
  76600. 801f1de: 899b ldrh r3, [r3, #12]
  76601. 801f1e0: b29b uxth r3, r3
  76602. 801f1e2: b21b sxth r3, r3
  76603. 801f1e4: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  76604. 801f1e8: b21c sxth r4, r3
  76605. 801f1ea: 6bbb ldr r3, [r7, #56] @ 0x38
  76606. 801f1ec: 681b ldr r3, [r3, #0]
  76607. 801f1ee: 691b ldr r3, [r3, #16]
  76608. 801f1f0: 899b ldrh r3, [r3, #12]
  76609. 801f1f2: b29b uxth r3, r3
  76610. 801f1f4: 4618 mov r0, r3
  76611. 801f1f6: f7fa f887 bl 8019308 <lwip_htons>
  76612. 801f1fa: 4603 mov r3, r0
  76613. 801f1fc: b2db uxtb r3, r3
  76614. 801f1fe: f003 033e and.w r3, r3, #62 @ 0x3e
  76615. 801f202: b29b uxth r3, r3
  76616. 801f204: 4618 mov r0, r3
  76617. 801f206: f7fa f87f bl 8019308 <lwip_htons>
  76618. 801f20a: 4603 mov r3, r0
  76619. 801f20c: b21b sxth r3, r3
  76620. 801f20e: 4323 orrs r3, r4
  76621. 801f210: b21a sxth r2, r3
  76622. 801f212: 6bbb ldr r3, [r7, #56] @ 0x38
  76623. 801f214: 681b ldr r3, [r3, #0]
  76624. 801f216: 691b ldr r3, [r3, #16]
  76625. 801f218: b292 uxth r2, r2
  76626. 801f21a: 819a strh r2, [r3, #12]
  76627. }
  76628. /* Adjust length of segment to fit in the window. */
  76629. next->next->len = (u16_t)(pcb->rcv_nxt + pcb->rcv_wnd - seqno);
  76630. 801f21c: 687b ldr r3, [r7, #4]
  76631. 801f21e: 6a5b ldr r3, [r3, #36] @ 0x24
  76632. 801f220: b29a uxth r2, r3
  76633. 801f222: 687b ldr r3, [r7, #4]
  76634. 801f224: 8d1b ldrh r3, [r3, #40] @ 0x28
  76635. 801f226: 4413 add r3, r2
  76636. 801f228: b299 uxth r1, r3
  76637. 801f22a: 4b3c ldr r3, [pc, #240] @ (801f31c <tcp_receive+0xf10>)
  76638. 801f22c: 681b ldr r3, [r3, #0]
  76639. 801f22e: b29a uxth r2, r3
  76640. 801f230: 6bbb ldr r3, [r7, #56] @ 0x38
  76641. 801f232: 681b ldr r3, [r3, #0]
  76642. 801f234: 1a8a subs r2, r1, r2
  76643. 801f236: b292 uxth r2, r2
  76644. 801f238: 811a strh r2, [r3, #8]
  76645. pbuf_realloc(next->next->p, next->next->len);
  76646. 801f23a: 6bbb ldr r3, [r7, #56] @ 0x38
  76647. 801f23c: 681b ldr r3, [r3, #0]
  76648. 801f23e: 685a ldr r2, [r3, #4]
  76649. 801f240: 6bbb ldr r3, [r7, #56] @ 0x38
  76650. 801f242: 681b ldr r3, [r3, #0]
  76651. 801f244: 891b ldrh r3, [r3, #8]
  76652. 801f246: 4619 mov r1, r3
  76653. 801f248: 4610 mov r0, r2
  76654. 801f24a: f7fb fb89 bl 801a960 <pbuf_realloc>
  76655. tcplen = TCP_TCPLEN(next->next);
  76656. 801f24e: 6bbb ldr r3, [r7, #56] @ 0x38
  76657. 801f250: 681b ldr r3, [r3, #0]
  76658. 801f252: 891c ldrh r4, [r3, #8]
  76659. 801f254: 6bbb ldr r3, [r7, #56] @ 0x38
  76660. 801f256: 681b ldr r3, [r3, #0]
  76661. 801f258: 691b ldr r3, [r3, #16]
  76662. 801f25a: 899b ldrh r3, [r3, #12]
  76663. 801f25c: b29b uxth r3, r3
  76664. 801f25e: 4618 mov r0, r3
  76665. 801f260: f7fa f852 bl 8019308 <lwip_htons>
  76666. 801f264: 4603 mov r3, r0
  76667. 801f266: b2db uxtb r3, r3
  76668. 801f268: f003 0303 and.w r3, r3, #3
  76669. 801f26c: 2b00 cmp r3, #0
  76670. 801f26e: d001 beq.n 801f274 <tcp_receive+0xe68>
  76671. 801f270: 2301 movs r3, #1
  76672. 801f272: e000 b.n 801f276 <tcp_receive+0xe6a>
  76673. 801f274: 2300 movs r3, #0
  76674. 801f276: 4423 add r3, r4
  76675. 801f278: b29a uxth r2, r3
  76676. 801f27a: 4b2a ldr r3, [pc, #168] @ (801f324 <tcp_receive+0xf18>)
  76677. 801f27c: 801a strh r2, [r3, #0]
  76678. LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n",
  76679. 801f27e: 4b29 ldr r3, [pc, #164] @ (801f324 <tcp_receive+0xf18>)
  76680. 801f280: 881b ldrh r3, [r3, #0]
  76681. 801f282: 461a mov r2, r3
  76682. 801f284: 4b25 ldr r3, [pc, #148] @ (801f31c <tcp_receive+0xf10>)
  76683. 801f286: 681b ldr r3, [r3, #0]
  76684. 801f288: 441a add r2, r3
  76685. 801f28a: 687b ldr r3, [r7, #4]
  76686. 801f28c: 6a5b ldr r3, [r3, #36] @ 0x24
  76687. 801f28e: 6879 ldr r1, [r7, #4]
  76688. 801f290: 8d09 ldrh r1, [r1, #40] @ 0x28
  76689. 801f292: 440b add r3, r1
  76690. 801f294: 429a cmp r2, r3
  76691. 801f296: d019 beq.n 801f2cc <tcp_receive+0xec0>
  76692. 801f298: 4b23 ldr r3, [pc, #140] @ (801f328 <tcp_receive+0xf1c>)
  76693. 801f29a: f44f 62df mov.w r2, #1784 @ 0x6f8
  76694. 801f29e: 4923 ldr r1, [pc, #140] @ (801f32c <tcp_receive+0xf20>)
  76695. 801f2a0: 4823 ldr r0, [pc, #140] @ (801f330 <tcp_receive+0xf24>)
  76696. 801f2a2: f00a ff8b bl 802a1bc <iprintf>
  76697. (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd));
  76698. }
  76699. }
  76700. break;
  76701. 801f2a6: e011 b.n 801f2cc <tcp_receive+0xec0>
  76702. for (next = pcb->ooseq; next != NULL; next = next->next) {
  76703. 801f2a8: 6bbb ldr r3, [r7, #56] @ 0x38
  76704. 801f2aa: 681b ldr r3, [r3, #0]
  76705. 801f2ac: 63bb str r3, [r7, #56] @ 0x38
  76706. 801f2ae: 6bbb ldr r3, [r7, #56] @ 0x38
  76707. 801f2b0: 2b00 cmp r3, #0
  76708. 801f2b2: f47f aea5 bne.w 801f000 <tcp_receive+0xbf4>
  76709. 801f2b6: e00a b.n 801f2ce <tcp_receive+0xec2>
  76710. break;
  76711. 801f2b8: bf00 nop
  76712. 801f2ba: e008 b.n 801f2ce <tcp_receive+0xec2>
  76713. break;
  76714. 801f2bc: bf00 nop
  76715. 801f2be: e006 b.n 801f2ce <tcp_receive+0xec2>
  76716. break;
  76717. 801f2c0: bf00 nop
  76718. 801f2c2: e004 b.n 801f2ce <tcp_receive+0xec2>
  76719. break;
  76720. 801f2c4: bf00 nop
  76721. 801f2c6: e002 b.n 801f2ce <tcp_receive+0xec2>
  76722. break;
  76723. 801f2c8: bf00 nop
  76724. 801f2ca: e000 b.n 801f2ce <tcp_receive+0xec2>
  76725. break;
  76726. 801f2cc: bf00 nop
  76727. #endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */
  76728. #endif /* TCP_QUEUE_OOSEQ */
  76729. /* We send the ACK packet after we've (potentially) dealt with SACKs,
  76730. so they can be included in the acknowledgment. */
  76731. tcp_send_empty_ack(pcb);
  76732. 801f2ce: 6878 ldr r0, [r7, #4]
  76733. 801f2d0: f001 fefc bl 80210cc <tcp_send_empty_ack>
  76734. if (pcb->rcv_nxt == seqno) {
  76735. 801f2d4: e003 b.n 801f2de <tcp_receive+0xed2>
  76736. }
  76737. } else {
  76738. /* The incoming segment is not within the window. */
  76739. tcp_send_empty_ack(pcb);
  76740. 801f2d6: 6878 ldr r0, [r7, #4]
  76741. 801f2d8: f001 fef8 bl 80210cc <tcp_send_empty_ack>
  76742. if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt,
  76743. 801f2dc: e01a b.n 801f314 <tcp_receive+0xf08>
  76744. 801f2de: e019 b.n 801f314 <tcp_receive+0xf08>
  76745. }
  76746. } else {
  76747. /* Segments with length 0 is taken care of here. Segments that
  76748. fall out of the window are ACKed. */
  76749. if (!TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd - 1)) {
  76750. 801f2e0: 4b0e ldr r3, [pc, #56] @ (801f31c <tcp_receive+0xf10>)
  76751. 801f2e2: 681a ldr r2, [r3, #0]
  76752. 801f2e4: 687b ldr r3, [r7, #4]
  76753. 801f2e6: 6a5b ldr r3, [r3, #36] @ 0x24
  76754. 801f2e8: 1ad3 subs r3, r2, r3
  76755. 801f2ea: 2b00 cmp r3, #0
  76756. 801f2ec: db0a blt.n 801f304 <tcp_receive+0xef8>
  76757. 801f2ee: 4b0b ldr r3, [pc, #44] @ (801f31c <tcp_receive+0xf10>)
  76758. 801f2f0: 681a ldr r2, [r3, #0]
  76759. 801f2f2: 687b ldr r3, [r7, #4]
  76760. 801f2f4: 6a5b ldr r3, [r3, #36] @ 0x24
  76761. 801f2f6: 6879 ldr r1, [r7, #4]
  76762. 801f2f8: 8d09 ldrh r1, [r1, #40] @ 0x28
  76763. 801f2fa: 440b add r3, r1
  76764. 801f2fc: 1ad3 subs r3, r2, r3
  76765. 801f2fe: 3301 adds r3, #1
  76766. 801f300: 2b00 cmp r3, #0
  76767. 801f302: dd07 ble.n 801f314 <tcp_receive+0xf08>
  76768. tcp_ack_now(pcb);
  76769. 801f304: 687b ldr r3, [r7, #4]
  76770. 801f306: 8b5b ldrh r3, [r3, #26]
  76771. 801f308: f043 0302 orr.w r3, r3, #2
  76772. 801f30c: b29a uxth r2, r3
  76773. 801f30e: 687b ldr r3, [r7, #4]
  76774. 801f310: 835a strh r2, [r3, #26]
  76775. }
  76776. }
  76777. }
  76778. 801f312: e7ff b.n 801f314 <tcp_receive+0xf08>
  76779. 801f314: bf00 nop
  76780. 801f316: 3750 adds r7, #80 @ 0x50
  76781. 801f318: 46bd mov sp, r7
  76782. 801f31a: bdb0 pop {r4, r5, r7, pc}
  76783. 801f31c: 2402af94 .word 0x2402af94
  76784. 801f320: 2402af70 .word 0x2402af70
  76785. 801f324: 2402af9e .word 0x2402af9e
  76786. 801f328: 0802f5a4 .word 0x0802f5a4
  76787. 801f32c: 0802f94c .word 0x0802f94c
  76788. 801f330: 0802f5f0 .word 0x0802f5f0
  76789. 0801f334 <tcp_get_next_optbyte>:
  76790. static u8_t
  76791. tcp_get_next_optbyte(void)
  76792. {
  76793. 801f334: b480 push {r7}
  76794. 801f336: b083 sub sp, #12
  76795. 801f338: af00 add r7, sp, #0
  76796. u16_t optidx = tcp_optidx++;
  76797. 801f33a: 4b15 ldr r3, [pc, #84] @ (801f390 <tcp_get_next_optbyte+0x5c>)
  76798. 801f33c: 881b ldrh r3, [r3, #0]
  76799. 801f33e: 1c5a adds r2, r3, #1
  76800. 801f340: b291 uxth r1, r2
  76801. 801f342: 4a13 ldr r2, [pc, #76] @ (801f390 <tcp_get_next_optbyte+0x5c>)
  76802. 801f344: 8011 strh r1, [r2, #0]
  76803. 801f346: 80fb strh r3, [r7, #6]
  76804. if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) {
  76805. 801f348: 4b12 ldr r3, [pc, #72] @ (801f394 <tcp_get_next_optbyte+0x60>)
  76806. 801f34a: 681b ldr r3, [r3, #0]
  76807. 801f34c: 2b00 cmp r3, #0
  76808. 801f34e: d004 beq.n 801f35a <tcp_get_next_optbyte+0x26>
  76809. 801f350: 4b11 ldr r3, [pc, #68] @ (801f398 <tcp_get_next_optbyte+0x64>)
  76810. 801f352: 881b ldrh r3, [r3, #0]
  76811. 801f354: 88fa ldrh r2, [r7, #6]
  76812. 801f356: 429a cmp r2, r3
  76813. 801f358: d208 bcs.n 801f36c <tcp_get_next_optbyte+0x38>
  76814. u8_t *opts = (u8_t *)tcphdr + TCP_HLEN;
  76815. 801f35a: 4b10 ldr r3, [pc, #64] @ (801f39c <tcp_get_next_optbyte+0x68>)
  76816. 801f35c: 681b ldr r3, [r3, #0]
  76817. 801f35e: 3314 adds r3, #20
  76818. 801f360: 603b str r3, [r7, #0]
  76819. return opts[optidx];
  76820. 801f362: 88fb ldrh r3, [r7, #6]
  76821. 801f364: 683a ldr r2, [r7, #0]
  76822. 801f366: 4413 add r3, r2
  76823. 801f368: 781b ldrb r3, [r3, #0]
  76824. 801f36a: e00b b.n 801f384 <tcp_get_next_optbyte+0x50>
  76825. } else {
  76826. u8_t idx = (u8_t)(optidx - tcphdr_opt1len);
  76827. 801f36c: 88fb ldrh r3, [r7, #6]
  76828. 801f36e: b2da uxtb r2, r3
  76829. 801f370: 4b09 ldr r3, [pc, #36] @ (801f398 <tcp_get_next_optbyte+0x64>)
  76830. 801f372: 881b ldrh r3, [r3, #0]
  76831. 801f374: b2db uxtb r3, r3
  76832. 801f376: 1ad3 subs r3, r2, r3
  76833. 801f378: 717b strb r3, [r7, #5]
  76834. return tcphdr_opt2[idx];
  76835. 801f37a: 4b06 ldr r3, [pc, #24] @ (801f394 <tcp_get_next_optbyte+0x60>)
  76836. 801f37c: 681a ldr r2, [r3, #0]
  76837. 801f37e: 797b ldrb r3, [r7, #5]
  76838. 801f380: 4413 add r3, r2
  76839. 801f382: 781b ldrb r3, [r3, #0]
  76840. }
  76841. }
  76842. 801f384: 4618 mov r0, r3
  76843. 801f386: 370c adds r7, #12
  76844. 801f388: 46bd mov sp, r7
  76845. 801f38a: f85d 7b04 ldr.w r7, [sp], #4
  76846. 801f38e: 4770 bx lr
  76847. 801f390: 2402af90 .word 0x2402af90
  76848. 801f394: 2402af8c .word 0x2402af8c
  76849. 801f398: 2402af8a .word 0x2402af8a
  76850. 801f39c: 2402af84 .word 0x2402af84
  76851. 0801f3a0 <tcp_parseopt>:
  76852. *
  76853. * @param pcb the tcp_pcb for which a segment arrived
  76854. */
  76855. static void
  76856. tcp_parseopt(struct tcp_pcb *pcb)
  76857. {
  76858. 801f3a0: b580 push {r7, lr}
  76859. 801f3a2: b084 sub sp, #16
  76860. 801f3a4: af00 add r7, sp, #0
  76861. 801f3a6: 6078 str r0, [r7, #4]
  76862. u16_t mss;
  76863. #if LWIP_TCP_TIMESTAMPS
  76864. u32_t tsval;
  76865. #endif
  76866. LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL);
  76867. 801f3a8: 687b ldr r3, [r7, #4]
  76868. 801f3aa: 2b00 cmp r3, #0
  76869. 801f3ac: d106 bne.n 801f3bc <tcp_parseopt+0x1c>
  76870. 801f3ae: 4b33 ldr r3, [pc, #204] @ (801f47c <tcp_parseopt+0xdc>)
  76871. 801f3b0: f240 727d movw r2, #1917 @ 0x77d
  76872. 801f3b4: 4932 ldr r1, [pc, #200] @ (801f480 <tcp_parseopt+0xe0>)
  76873. 801f3b6: 4833 ldr r0, [pc, #204] @ (801f484 <tcp_parseopt+0xe4>)
  76874. 801f3b8: f00a ff00 bl 802a1bc <iprintf>
  76875. /* Parse the TCP MSS option, if present. */
  76876. if (tcphdr_optlen != 0) {
  76877. 801f3bc: 4b32 ldr r3, [pc, #200] @ (801f488 <tcp_parseopt+0xe8>)
  76878. 801f3be: 881b ldrh r3, [r3, #0]
  76879. 801f3c0: 2b00 cmp r3, #0
  76880. 801f3c2: d057 beq.n 801f474 <tcp_parseopt+0xd4>
  76881. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  76882. 801f3c4: 4b31 ldr r3, [pc, #196] @ (801f48c <tcp_parseopt+0xec>)
  76883. 801f3c6: 2200 movs r2, #0
  76884. 801f3c8: 801a strh r2, [r3, #0]
  76885. 801f3ca: e047 b.n 801f45c <tcp_parseopt+0xbc>
  76886. u8_t opt = tcp_get_next_optbyte();
  76887. 801f3cc: f7ff ffb2 bl 801f334 <tcp_get_next_optbyte>
  76888. 801f3d0: 4603 mov r3, r0
  76889. 801f3d2: 73fb strb r3, [r7, #15]
  76890. switch (opt) {
  76891. 801f3d4: 7bfb ldrb r3, [r7, #15]
  76892. 801f3d6: 2b02 cmp r3, #2
  76893. 801f3d8: d006 beq.n 801f3e8 <tcp_parseopt+0x48>
  76894. 801f3da: 2b02 cmp r3, #2
  76895. 801f3dc: dc2b bgt.n 801f436 <tcp_parseopt+0x96>
  76896. 801f3de: 2b00 cmp r3, #0
  76897. 801f3e0: d043 beq.n 801f46a <tcp_parseopt+0xca>
  76898. 801f3e2: 2b01 cmp r3, #1
  76899. 801f3e4: d039 beq.n 801f45a <tcp_parseopt+0xba>
  76900. 801f3e6: e026 b.n 801f436 <tcp_parseopt+0x96>
  76901. /* NOP option. */
  76902. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: NOP\n"));
  76903. break;
  76904. case LWIP_TCP_OPT_MSS:
  76905. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: MSS\n"));
  76906. if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_MSS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_MSS) > tcphdr_optlen) {
  76907. 801f3e8: f7ff ffa4 bl 801f334 <tcp_get_next_optbyte>
  76908. 801f3ec: 4603 mov r3, r0
  76909. 801f3ee: 2b04 cmp r3, #4
  76910. 801f3f0: d13d bne.n 801f46e <tcp_parseopt+0xce>
  76911. 801f3f2: 4b26 ldr r3, [pc, #152] @ (801f48c <tcp_parseopt+0xec>)
  76912. 801f3f4: 881b ldrh r3, [r3, #0]
  76913. 801f3f6: 3301 adds r3, #1
  76914. 801f3f8: 4a23 ldr r2, [pc, #140] @ (801f488 <tcp_parseopt+0xe8>)
  76915. 801f3fa: 8812 ldrh r2, [r2, #0]
  76916. 801f3fc: 4293 cmp r3, r2
  76917. 801f3fe: da36 bge.n 801f46e <tcp_parseopt+0xce>
  76918. /* Bad length */
  76919. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n"));
  76920. return;
  76921. }
  76922. /* An MSS option with the right option length. */
  76923. mss = (u16_t)(tcp_get_next_optbyte() << 8);
  76924. 801f400: f7ff ff98 bl 801f334 <tcp_get_next_optbyte>
  76925. 801f404: 4603 mov r3, r0
  76926. 801f406: 021b lsls r3, r3, #8
  76927. 801f408: 81bb strh r3, [r7, #12]
  76928. mss |= tcp_get_next_optbyte();
  76929. 801f40a: f7ff ff93 bl 801f334 <tcp_get_next_optbyte>
  76930. 801f40e: 4603 mov r3, r0
  76931. 801f410: 461a mov r2, r3
  76932. 801f412: 89bb ldrh r3, [r7, #12]
  76933. 801f414: 4313 orrs r3, r2
  76934. 801f416: 81bb strh r3, [r7, #12]
  76935. /* Limit the mss to the configured TCP_MSS and prevent division by zero */
  76936. pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss;
  76937. 801f418: 89bb ldrh r3, [r7, #12]
  76938. 801f41a: f240 52b4 movw r2, #1460 @ 0x5b4
  76939. 801f41e: 4293 cmp r3, r2
  76940. 801f420: d804 bhi.n 801f42c <tcp_parseopt+0x8c>
  76941. 801f422: 89bb ldrh r3, [r7, #12]
  76942. 801f424: 2b00 cmp r3, #0
  76943. 801f426: d001 beq.n 801f42c <tcp_parseopt+0x8c>
  76944. 801f428: 89ba ldrh r2, [r7, #12]
  76945. 801f42a: e001 b.n 801f430 <tcp_parseopt+0x90>
  76946. 801f42c: f240 52b4 movw r2, #1460 @ 0x5b4
  76947. 801f430: 687b ldr r3, [r7, #4]
  76948. 801f432: 865a strh r2, [r3, #50] @ 0x32
  76949. break;
  76950. 801f434: e012 b.n 801f45c <tcp_parseopt+0xbc>
  76951. }
  76952. break;
  76953. #endif /* LWIP_TCP_SACK_OUT */
  76954. default:
  76955. LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n"));
  76956. data = tcp_get_next_optbyte();
  76957. 801f436: f7ff ff7d bl 801f334 <tcp_get_next_optbyte>
  76958. 801f43a: 4603 mov r3, r0
  76959. 801f43c: 72fb strb r3, [r7, #11]
  76960. if (data < 2) {
  76961. 801f43e: 7afb ldrb r3, [r7, #11]
  76962. 801f440: 2b01 cmp r3, #1
  76963. 801f442: d916 bls.n 801f472 <tcp_parseopt+0xd2>
  76964. and we don't process them further. */
  76965. return;
  76966. }
  76967. /* All other options have a length field, so that we easily
  76968. can skip past them. */
  76969. tcp_optidx += data - 2;
  76970. 801f444: 7afb ldrb r3, [r7, #11]
  76971. 801f446: b29a uxth r2, r3
  76972. 801f448: 4b10 ldr r3, [pc, #64] @ (801f48c <tcp_parseopt+0xec>)
  76973. 801f44a: 881b ldrh r3, [r3, #0]
  76974. 801f44c: 4413 add r3, r2
  76975. 801f44e: b29b uxth r3, r3
  76976. 801f450: 3b02 subs r3, #2
  76977. 801f452: b29a uxth r2, r3
  76978. 801f454: 4b0d ldr r3, [pc, #52] @ (801f48c <tcp_parseopt+0xec>)
  76979. 801f456: 801a strh r2, [r3, #0]
  76980. 801f458: e000 b.n 801f45c <tcp_parseopt+0xbc>
  76981. break;
  76982. 801f45a: bf00 nop
  76983. for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) {
  76984. 801f45c: 4b0b ldr r3, [pc, #44] @ (801f48c <tcp_parseopt+0xec>)
  76985. 801f45e: 881a ldrh r2, [r3, #0]
  76986. 801f460: 4b09 ldr r3, [pc, #36] @ (801f488 <tcp_parseopt+0xe8>)
  76987. 801f462: 881b ldrh r3, [r3, #0]
  76988. 801f464: 429a cmp r2, r3
  76989. 801f466: d3b1 bcc.n 801f3cc <tcp_parseopt+0x2c>
  76990. 801f468: e004 b.n 801f474 <tcp_parseopt+0xd4>
  76991. return;
  76992. 801f46a: bf00 nop
  76993. 801f46c: e002 b.n 801f474 <tcp_parseopt+0xd4>
  76994. return;
  76995. 801f46e: bf00 nop
  76996. 801f470: e000 b.n 801f474 <tcp_parseopt+0xd4>
  76997. return;
  76998. 801f472: bf00 nop
  76999. }
  77000. }
  77001. }
  77002. }
  77003. 801f474: 3710 adds r7, #16
  77004. 801f476: 46bd mov sp, r7
  77005. 801f478: bd80 pop {r7, pc}
  77006. 801f47a: bf00 nop
  77007. 801f47c: 0802f5a4 .word 0x0802f5a4
  77008. 801f480: 0802fa08 .word 0x0802fa08
  77009. 801f484: 0802f5f0 .word 0x0802f5f0
  77010. 801f488: 2402af88 .word 0x2402af88
  77011. 801f48c: 2402af90 .word 0x2402af90
  77012. 0801f490 <tcp_trigger_input_pcb_close>:
  77013. void
  77014. tcp_trigger_input_pcb_close(void)
  77015. {
  77016. 801f490: b480 push {r7}
  77017. 801f492: af00 add r7, sp, #0
  77018. recv_flags |= TF_CLOSED;
  77019. 801f494: 4b05 ldr r3, [pc, #20] @ (801f4ac <tcp_trigger_input_pcb_close+0x1c>)
  77020. 801f496: 781b ldrb r3, [r3, #0]
  77021. 801f498: f043 0310 orr.w r3, r3, #16
  77022. 801f49c: b2da uxtb r2, r3
  77023. 801f49e: 4b03 ldr r3, [pc, #12] @ (801f4ac <tcp_trigger_input_pcb_close+0x1c>)
  77024. 801f4a0: 701a strb r2, [r3, #0]
  77025. }
  77026. 801f4a2: bf00 nop
  77027. 801f4a4: 46bd mov sp, r7
  77028. 801f4a6: f85d 7b04 ldr.w r7, [sp], #4
  77029. 801f4aa: 4770 bx lr
  77030. 801f4ac: 2402afa1 .word 0x2402afa1
  77031. 0801f4b0 <tcp_route>:
  77032. static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif);
  77033. /* tcp_route: common code that returns a fixed bound netif or calls ip_route */
  77034. static struct netif *
  77035. tcp_route(const struct tcp_pcb *pcb, const ip_addr_t *src, const ip_addr_t *dst)
  77036. {
  77037. 801f4b0: b580 push {r7, lr}
  77038. 801f4b2: b084 sub sp, #16
  77039. 801f4b4: af00 add r7, sp, #0
  77040. 801f4b6: 60f8 str r0, [r7, #12]
  77041. 801f4b8: 60b9 str r1, [r7, #8]
  77042. 801f4ba: 607a str r2, [r7, #4]
  77043. LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */
  77044. if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) {
  77045. 801f4bc: 68fb ldr r3, [r7, #12]
  77046. 801f4be: 2b00 cmp r3, #0
  77047. 801f4c0: d00a beq.n 801f4d8 <tcp_route+0x28>
  77048. 801f4c2: 68fb ldr r3, [r7, #12]
  77049. 801f4c4: 7a1b ldrb r3, [r3, #8]
  77050. 801f4c6: 2b00 cmp r3, #0
  77051. 801f4c8: d006 beq.n 801f4d8 <tcp_route+0x28>
  77052. return netif_get_by_index(pcb->netif_idx);
  77053. 801f4ca: 68fb ldr r3, [r7, #12]
  77054. 801f4cc: 7a1b ldrb r3, [r3, #8]
  77055. 801f4ce: 4618 mov r0, r3
  77056. 801f4d0: f7fb f83c bl 801a54c <netif_get_by_index>
  77057. 801f4d4: 4603 mov r3, r0
  77058. 801f4d6: e003 b.n 801f4e0 <tcp_route+0x30>
  77059. } else {
  77060. return ip_route(src, dst);
  77061. 801f4d8: 6878 ldr r0, [r7, #4]
  77062. 801f4da: f005 fe61 bl 80251a0 <ip4_route>
  77063. 801f4de: 4603 mov r3, r0
  77064. }
  77065. }
  77066. 801f4e0: 4618 mov r0, r3
  77067. 801f4e2: 3710 adds r7, #16
  77068. 801f4e4: 46bd mov sp, r7
  77069. 801f4e6: bd80 pop {r7, pc}
  77070. 0801f4e8 <tcp_create_segment>:
  77071. * The TCP header is filled in except ackno and wnd.
  77072. * p is freed on failure.
  77073. */
  77074. static struct tcp_seg *
  77075. tcp_create_segment(const struct tcp_pcb *pcb, struct pbuf *p, u8_t hdrflags, u32_t seqno, u8_t optflags)
  77076. {
  77077. 801f4e8: b590 push {r4, r7, lr}
  77078. 801f4ea: b087 sub sp, #28
  77079. 801f4ec: af00 add r7, sp, #0
  77080. 801f4ee: 60f8 str r0, [r7, #12]
  77081. 801f4f0: 60b9 str r1, [r7, #8]
  77082. 801f4f2: 603b str r3, [r7, #0]
  77083. 801f4f4: 4613 mov r3, r2
  77084. 801f4f6: 71fb strb r3, [r7, #7]
  77085. struct tcp_seg *seg;
  77086. u8_t optlen;
  77087. LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL);
  77088. 801f4f8: 68fb ldr r3, [r7, #12]
  77089. 801f4fa: 2b00 cmp r3, #0
  77090. 801f4fc: d105 bne.n 801f50a <tcp_create_segment+0x22>
  77091. 801f4fe: 4b45 ldr r3, [pc, #276] @ (801f614 <tcp_create_segment+0x12c>)
  77092. 801f500: 22a3 movs r2, #163 @ 0xa3
  77093. 801f502: 4945 ldr r1, [pc, #276] @ (801f618 <tcp_create_segment+0x130>)
  77094. 801f504: 4845 ldr r0, [pc, #276] @ (801f61c <tcp_create_segment+0x134>)
  77095. 801f506: f00a fe59 bl 802a1bc <iprintf>
  77096. LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL);
  77097. 801f50a: 68bb ldr r3, [r7, #8]
  77098. 801f50c: 2b00 cmp r3, #0
  77099. 801f50e: d105 bne.n 801f51c <tcp_create_segment+0x34>
  77100. 801f510: 4b40 ldr r3, [pc, #256] @ (801f614 <tcp_create_segment+0x12c>)
  77101. 801f512: 22a4 movs r2, #164 @ 0xa4
  77102. 801f514: 4942 ldr r1, [pc, #264] @ (801f620 <tcp_create_segment+0x138>)
  77103. 801f516: 4841 ldr r0, [pc, #260] @ (801f61c <tcp_create_segment+0x134>)
  77104. 801f518: f00a fe50 bl 802a1bc <iprintf>
  77105. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  77106. 801f51c: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  77107. 801f520: 009b lsls r3, r3, #2
  77108. 801f522: b2db uxtb r3, r3
  77109. 801f524: f003 0304 and.w r3, r3, #4
  77110. 801f528: 75fb strb r3, [r7, #23]
  77111. if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) {
  77112. 801f52a: 2003 movs r0, #3
  77113. 801f52c: f7fa fc6a bl 8019e04 <memp_malloc>
  77114. 801f530: 6138 str r0, [r7, #16]
  77115. 801f532: 693b ldr r3, [r7, #16]
  77116. 801f534: 2b00 cmp r3, #0
  77117. 801f536: d104 bne.n 801f542 <tcp_create_segment+0x5a>
  77118. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n"));
  77119. pbuf_free(p);
  77120. 801f538: 68b8 ldr r0, [r7, #8]
  77121. 801f53a: f7fb fbc7 bl 801accc <pbuf_free>
  77122. return NULL;
  77123. 801f53e: 2300 movs r3, #0
  77124. 801f540: e063 b.n 801f60a <tcp_create_segment+0x122>
  77125. }
  77126. seg->flags = optflags;
  77127. 801f542: 693b ldr r3, [r7, #16]
  77128. 801f544: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  77129. 801f548: 731a strb r2, [r3, #12]
  77130. seg->next = NULL;
  77131. 801f54a: 693b ldr r3, [r7, #16]
  77132. 801f54c: 2200 movs r2, #0
  77133. 801f54e: 601a str r2, [r3, #0]
  77134. seg->p = p;
  77135. 801f550: 693b ldr r3, [r7, #16]
  77136. 801f552: 68ba ldr r2, [r7, #8]
  77137. 801f554: 605a str r2, [r3, #4]
  77138. LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen);
  77139. 801f556: 68bb ldr r3, [r7, #8]
  77140. 801f558: 891a ldrh r2, [r3, #8]
  77141. 801f55a: 7dfb ldrb r3, [r7, #23]
  77142. 801f55c: b29b uxth r3, r3
  77143. 801f55e: 429a cmp r2, r3
  77144. 801f560: d205 bcs.n 801f56e <tcp_create_segment+0x86>
  77145. 801f562: 4b2c ldr r3, [pc, #176] @ (801f614 <tcp_create_segment+0x12c>)
  77146. 801f564: 22b0 movs r2, #176 @ 0xb0
  77147. 801f566: 492f ldr r1, [pc, #188] @ (801f624 <tcp_create_segment+0x13c>)
  77148. 801f568: 482c ldr r0, [pc, #176] @ (801f61c <tcp_create_segment+0x134>)
  77149. 801f56a: f00a fe27 bl 802a1bc <iprintf>
  77150. seg->len = p->tot_len - optlen;
  77151. 801f56e: 68bb ldr r3, [r7, #8]
  77152. 801f570: 891a ldrh r2, [r3, #8]
  77153. 801f572: 7dfb ldrb r3, [r7, #23]
  77154. 801f574: b29b uxth r3, r3
  77155. 801f576: 1ad3 subs r3, r2, r3
  77156. 801f578: b29a uxth r2, r3
  77157. 801f57a: 693b ldr r3, [r7, #16]
  77158. 801f57c: 811a strh r2, [r3, #8]
  77159. #if TCP_OVERSIZE_DBGCHECK
  77160. seg->oversize_left = 0;
  77161. 801f57e: 693b ldr r3, [r7, #16]
  77162. 801f580: 2200 movs r2, #0
  77163. 801f582: 815a strh r2, [r3, #10]
  77164. LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED",
  77165. (optflags & TF_SEG_DATA_CHECKSUMMED) == 0);
  77166. #endif /* TCP_CHECKSUM_ON_COPY */
  77167. /* build TCP header */
  77168. if (pbuf_add_header(p, TCP_HLEN)) {
  77169. 801f584: 2114 movs r1, #20
  77170. 801f586: 68b8 ldr r0, [r7, #8]
  77171. 801f588: f7fb fad8 bl 801ab3c <pbuf_add_header>
  77172. 801f58c: 4603 mov r3, r0
  77173. 801f58e: 2b00 cmp r3, #0
  77174. 801f590: d004 beq.n 801f59c <tcp_create_segment+0xb4>
  77175. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no room for TCP header in pbuf.\n"));
  77176. TCP_STATS_INC(tcp.err);
  77177. tcp_seg_free(seg);
  77178. 801f592: 6938 ldr r0, [r7, #16]
  77179. 801f594: f7fc fff3 bl 801c57e <tcp_seg_free>
  77180. return NULL;
  77181. 801f598: 2300 movs r3, #0
  77182. 801f59a: e036 b.n 801f60a <tcp_create_segment+0x122>
  77183. }
  77184. seg->tcphdr = (struct tcp_hdr *)seg->p->payload;
  77185. 801f59c: 693b ldr r3, [r7, #16]
  77186. 801f59e: 685b ldr r3, [r3, #4]
  77187. 801f5a0: 685a ldr r2, [r3, #4]
  77188. 801f5a2: 693b ldr r3, [r7, #16]
  77189. 801f5a4: 611a str r2, [r3, #16]
  77190. seg->tcphdr->src = lwip_htons(pcb->local_port);
  77191. 801f5a6: 68fb ldr r3, [r7, #12]
  77192. 801f5a8: 8ada ldrh r2, [r3, #22]
  77193. 801f5aa: 693b ldr r3, [r7, #16]
  77194. 801f5ac: 691c ldr r4, [r3, #16]
  77195. 801f5ae: 4610 mov r0, r2
  77196. 801f5b0: f7f9 feaa bl 8019308 <lwip_htons>
  77197. 801f5b4: 4603 mov r3, r0
  77198. 801f5b6: 8023 strh r3, [r4, #0]
  77199. seg->tcphdr->dest = lwip_htons(pcb->remote_port);
  77200. 801f5b8: 68fb ldr r3, [r7, #12]
  77201. 801f5ba: 8b1a ldrh r2, [r3, #24]
  77202. 801f5bc: 693b ldr r3, [r7, #16]
  77203. 801f5be: 691c ldr r4, [r3, #16]
  77204. 801f5c0: 4610 mov r0, r2
  77205. 801f5c2: f7f9 fea1 bl 8019308 <lwip_htons>
  77206. 801f5c6: 4603 mov r3, r0
  77207. 801f5c8: 8063 strh r3, [r4, #2]
  77208. seg->tcphdr->seqno = lwip_htonl(seqno);
  77209. 801f5ca: 693b ldr r3, [r7, #16]
  77210. 801f5cc: 691c ldr r4, [r3, #16]
  77211. 801f5ce: 6838 ldr r0, [r7, #0]
  77212. 801f5d0: f7f9 feaf bl 8019332 <lwip_htonl>
  77213. 801f5d4: 4603 mov r3, r0
  77214. 801f5d6: 6063 str r3, [r4, #4]
  77215. /* ackno is set in tcp_output */
  77216. TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags);
  77217. 801f5d8: 7dfb ldrb r3, [r7, #23]
  77218. 801f5da: 089b lsrs r3, r3, #2
  77219. 801f5dc: b2db uxtb r3, r3
  77220. 801f5de: 3305 adds r3, #5
  77221. 801f5e0: b29b uxth r3, r3
  77222. 801f5e2: 031b lsls r3, r3, #12
  77223. 801f5e4: b29a uxth r2, r3
  77224. 801f5e6: 79fb ldrb r3, [r7, #7]
  77225. 801f5e8: b29b uxth r3, r3
  77226. 801f5ea: 4313 orrs r3, r2
  77227. 801f5ec: b29a uxth r2, r3
  77228. 801f5ee: 693b ldr r3, [r7, #16]
  77229. 801f5f0: 691c ldr r4, [r3, #16]
  77230. 801f5f2: 4610 mov r0, r2
  77231. 801f5f4: f7f9 fe88 bl 8019308 <lwip_htons>
  77232. 801f5f8: 4603 mov r3, r0
  77233. 801f5fa: 81a3 strh r3, [r4, #12]
  77234. /* wnd and chksum are set in tcp_output */
  77235. seg->tcphdr->urgp = 0;
  77236. 801f5fc: 693b ldr r3, [r7, #16]
  77237. 801f5fe: 691b ldr r3, [r3, #16]
  77238. 801f600: 2200 movs r2, #0
  77239. 801f602: 749a strb r2, [r3, #18]
  77240. 801f604: 2200 movs r2, #0
  77241. 801f606: 74da strb r2, [r3, #19]
  77242. return seg;
  77243. 801f608: 693b ldr r3, [r7, #16]
  77244. }
  77245. 801f60a: 4618 mov r0, r3
  77246. 801f60c: 371c adds r7, #28
  77247. 801f60e: 46bd mov sp, r7
  77248. 801f610: bd90 pop {r4, r7, pc}
  77249. 801f612: bf00 nop
  77250. 801f614: 0802fa24 .word 0x0802fa24
  77251. 801f618: 0802fa58 .word 0x0802fa58
  77252. 801f61c: 0802fa78 .word 0x0802fa78
  77253. 801f620: 0802faa0 .word 0x0802faa0
  77254. 801f624: 0802fac4 .word 0x0802fac4
  77255. 0801f628 <tcp_pbuf_prealloc>:
  77256. #if TCP_OVERSIZE
  77257. static struct pbuf *
  77258. tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length,
  77259. u16_t *oversize, const struct tcp_pcb *pcb, u8_t apiflags,
  77260. u8_t first_seg)
  77261. {
  77262. 801f628: b580 push {r7, lr}
  77263. 801f62a: b086 sub sp, #24
  77264. 801f62c: af00 add r7, sp, #0
  77265. 801f62e: 607b str r3, [r7, #4]
  77266. 801f630: 4603 mov r3, r0
  77267. 801f632: 73fb strb r3, [r7, #15]
  77268. 801f634: 460b mov r3, r1
  77269. 801f636: 81bb strh r3, [r7, #12]
  77270. 801f638: 4613 mov r3, r2
  77271. 801f63a: 817b strh r3, [r7, #10]
  77272. struct pbuf *p;
  77273. u16_t alloc = length;
  77274. 801f63c: 89bb ldrh r3, [r7, #12]
  77275. 801f63e: 82fb strh r3, [r7, #22]
  77276. LWIP_ASSERT("tcp_pbuf_prealloc: invalid oversize", oversize != NULL);
  77277. 801f640: 687b ldr r3, [r7, #4]
  77278. 801f642: 2b00 cmp r3, #0
  77279. 801f644: d105 bne.n 801f652 <tcp_pbuf_prealloc+0x2a>
  77280. 801f646: 4b30 ldr r3, [pc, #192] @ (801f708 <tcp_pbuf_prealloc+0xe0>)
  77281. 801f648: 22e8 movs r2, #232 @ 0xe8
  77282. 801f64a: 4930 ldr r1, [pc, #192] @ (801f70c <tcp_pbuf_prealloc+0xe4>)
  77283. 801f64c: 4830 ldr r0, [pc, #192] @ (801f710 <tcp_pbuf_prealloc+0xe8>)
  77284. 801f64e: f00a fdb5 bl 802a1bc <iprintf>
  77285. LWIP_ASSERT("tcp_pbuf_prealloc: invalid pcb", pcb != NULL);
  77286. 801f652: 6a3b ldr r3, [r7, #32]
  77287. 801f654: 2b00 cmp r3, #0
  77288. 801f656: d105 bne.n 801f664 <tcp_pbuf_prealloc+0x3c>
  77289. 801f658: 4b2b ldr r3, [pc, #172] @ (801f708 <tcp_pbuf_prealloc+0xe0>)
  77290. 801f65a: 22e9 movs r2, #233 @ 0xe9
  77291. 801f65c: 492d ldr r1, [pc, #180] @ (801f714 <tcp_pbuf_prealloc+0xec>)
  77292. 801f65e: 482c ldr r0, [pc, #176] @ (801f710 <tcp_pbuf_prealloc+0xe8>)
  77293. 801f660: f00a fdac bl 802a1bc <iprintf>
  77294. LWIP_UNUSED_ARG(pcb);
  77295. LWIP_UNUSED_ARG(apiflags);
  77296. LWIP_UNUSED_ARG(first_seg);
  77297. alloc = max_length;
  77298. #else /* LWIP_NETIF_TX_SINGLE_PBUF */
  77299. if (length < max_length) {
  77300. 801f664: 89ba ldrh r2, [r7, #12]
  77301. 801f666: 897b ldrh r3, [r7, #10]
  77302. 801f668: 429a cmp r2, r3
  77303. 801f66a: d221 bcs.n 801f6b0 <tcp_pbuf_prealloc+0x88>
  77304. *
  77305. * Did the user set TCP_WRITE_FLAG_MORE?
  77306. *
  77307. * Will the Nagle algorithm defer transmission of this segment?
  77308. */
  77309. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  77310. 801f66c: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  77311. 801f670: f003 0302 and.w r3, r3, #2
  77312. 801f674: 2b00 cmp r3, #0
  77313. 801f676: d111 bne.n 801f69c <tcp_pbuf_prealloc+0x74>
  77314. (!(pcb->flags & TF_NODELAY) &&
  77315. 801f678: 6a3b ldr r3, [r7, #32]
  77316. 801f67a: 8b5b ldrh r3, [r3, #26]
  77317. 801f67c: f003 0340 and.w r3, r3, #64 @ 0x40
  77318. if ((apiflags & TCP_WRITE_FLAG_MORE) ||
  77319. 801f680: 2b00 cmp r3, #0
  77320. 801f682: d115 bne.n 801f6b0 <tcp_pbuf_prealloc+0x88>
  77321. (!(pcb->flags & TF_NODELAY) &&
  77322. 801f684: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  77323. 801f688: 2b00 cmp r3, #0
  77324. 801f68a: d007 beq.n 801f69c <tcp_pbuf_prealloc+0x74>
  77325. (!first_seg ||
  77326. pcb->unsent != NULL ||
  77327. 801f68c: 6a3b ldr r3, [r7, #32]
  77328. 801f68e: 6edb ldr r3, [r3, #108] @ 0x6c
  77329. (!first_seg ||
  77330. 801f690: 2b00 cmp r3, #0
  77331. 801f692: d103 bne.n 801f69c <tcp_pbuf_prealloc+0x74>
  77332. pcb->unacked != NULL))) {
  77333. 801f694: 6a3b ldr r3, [r7, #32]
  77334. 801f696: 6f1b ldr r3, [r3, #112] @ 0x70
  77335. pcb->unsent != NULL ||
  77336. 801f698: 2b00 cmp r3, #0
  77337. 801f69a: d009 beq.n 801f6b0 <tcp_pbuf_prealloc+0x88>
  77338. alloc = LWIP_MIN(max_length, LWIP_MEM_ALIGN_SIZE(TCP_OVERSIZE_CALC_LENGTH(length)));
  77339. 801f69c: 89bb ldrh r3, [r7, #12]
  77340. 801f69e: f203 53b7 addw r3, r3, #1463 @ 0x5b7
  77341. 801f6a2: f023 0203 bic.w r2, r3, #3
  77342. 801f6a6: 897b ldrh r3, [r7, #10]
  77343. 801f6a8: 4293 cmp r3, r2
  77344. 801f6aa: bf28 it cs
  77345. 801f6ac: 4613 movcs r3, r2
  77346. 801f6ae: 82fb strh r3, [r7, #22]
  77347. }
  77348. }
  77349. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  77350. p = pbuf_alloc(layer, alloc, PBUF_RAM);
  77351. 801f6b0: 8af9 ldrh r1, [r7, #22]
  77352. 801f6b2: 7bfb ldrb r3, [r7, #15]
  77353. 801f6b4: f44f 7220 mov.w r2, #640 @ 0x280
  77354. 801f6b8: 4618 mov r0, r3
  77355. 801f6ba: f7fa fff1 bl 801a6a0 <pbuf_alloc>
  77356. 801f6be: 6138 str r0, [r7, #16]
  77357. if (p == NULL) {
  77358. 801f6c0: 693b ldr r3, [r7, #16]
  77359. 801f6c2: 2b00 cmp r3, #0
  77360. 801f6c4: d101 bne.n 801f6ca <tcp_pbuf_prealloc+0xa2>
  77361. return NULL;
  77362. 801f6c6: 2300 movs r3, #0
  77363. 801f6c8: e019 b.n 801f6fe <tcp_pbuf_prealloc+0xd6>
  77364. }
  77365. LWIP_ASSERT("need unchained pbuf", p->next == NULL);
  77366. 801f6ca: 693b ldr r3, [r7, #16]
  77367. 801f6cc: 681b ldr r3, [r3, #0]
  77368. 801f6ce: 2b00 cmp r3, #0
  77369. 801f6d0: d006 beq.n 801f6e0 <tcp_pbuf_prealloc+0xb8>
  77370. 801f6d2: 4b0d ldr r3, [pc, #52] @ (801f708 <tcp_pbuf_prealloc+0xe0>)
  77371. 801f6d4: f240 120b movw r2, #267 @ 0x10b
  77372. 801f6d8: 490f ldr r1, [pc, #60] @ (801f718 <tcp_pbuf_prealloc+0xf0>)
  77373. 801f6da: 480d ldr r0, [pc, #52] @ (801f710 <tcp_pbuf_prealloc+0xe8>)
  77374. 801f6dc: f00a fd6e bl 802a1bc <iprintf>
  77375. *oversize = p->len - length;
  77376. 801f6e0: 693b ldr r3, [r7, #16]
  77377. 801f6e2: 895a ldrh r2, [r3, #10]
  77378. 801f6e4: 89bb ldrh r3, [r7, #12]
  77379. 801f6e6: 1ad3 subs r3, r2, r3
  77380. 801f6e8: b29a uxth r2, r3
  77381. 801f6ea: 687b ldr r3, [r7, #4]
  77382. 801f6ec: 801a strh r2, [r3, #0]
  77383. /* trim p->len to the currently used size */
  77384. p->len = p->tot_len = length;
  77385. 801f6ee: 693b ldr r3, [r7, #16]
  77386. 801f6f0: 89ba ldrh r2, [r7, #12]
  77387. 801f6f2: 811a strh r2, [r3, #8]
  77388. 801f6f4: 693b ldr r3, [r7, #16]
  77389. 801f6f6: 891a ldrh r2, [r3, #8]
  77390. 801f6f8: 693b ldr r3, [r7, #16]
  77391. 801f6fa: 815a strh r2, [r3, #10]
  77392. return p;
  77393. 801f6fc: 693b ldr r3, [r7, #16]
  77394. }
  77395. 801f6fe: 4618 mov r0, r3
  77396. 801f700: 3718 adds r7, #24
  77397. 801f702: 46bd mov sp, r7
  77398. 801f704: bd80 pop {r7, pc}
  77399. 801f706: bf00 nop
  77400. 801f708: 0802fa24 .word 0x0802fa24
  77401. 801f70c: 0802fadc .word 0x0802fadc
  77402. 801f710: 0802fa78 .word 0x0802fa78
  77403. 801f714: 0802fb00 .word 0x0802fb00
  77404. 801f718: 0802fb20 .word 0x0802fb20
  77405. 0801f71c <tcp_write_checks>:
  77406. * @param len length of data to send (checked agains snd_buf)
  77407. * @return ERR_OK if tcp_write is allowed to proceed, another err_t otherwise
  77408. */
  77409. static err_t
  77410. tcp_write_checks(struct tcp_pcb *pcb, u16_t len)
  77411. {
  77412. 801f71c: b580 push {r7, lr}
  77413. 801f71e: b082 sub sp, #8
  77414. 801f720: af00 add r7, sp, #0
  77415. 801f722: 6078 str r0, [r7, #4]
  77416. 801f724: 460b mov r3, r1
  77417. 801f726: 807b strh r3, [r7, #2]
  77418. LWIP_ASSERT("tcp_write_checks: invalid pcb", pcb != NULL);
  77419. 801f728: 687b ldr r3, [r7, #4]
  77420. 801f72a: 2b00 cmp r3, #0
  77421. 801f72c: d106 bne.n 801f73c <tcp_write_checks+0x20>
  77422. 801f72e: 4b33 ldr r3, [pc, #204] @ (801f7fc <tcp_write_checks+0xe0>)
  77423. 801f730: f240 1233 movw r2, #307 @ 0x133
  77424. 801f734: 4932 ldr r1, [pc, #200] @ (801f800 <tcp_write_checks+0xe4>)
  77425. 801f736: 4833 ldr r0, [pc, #204] @ (801f804 <tcp_write_checks+0xe8>)
  77426. 801f738: f00a fd40 bl 802a1bc <iprintf>
  77427. /* connection is in invalid state for data transmission? */
  77428. if ((pcb->state != ESTABLISHED) &&
  77429. 801f73c: 687b ldr r3, [r7, #4]
  77430. 801f73e: 7d1b ldrb r3, [r3, #20]
  77431. 801f740: 2b04 cmp r3, #4
  77432. 801f742: d00e beq.n 801f762 <tcp_write_checks+0x46>
  77433. (pcb->state != CLOSE_WAIT) &&
  77434. 801f744: 687b ldr r3, [r7, #4]
  77435. 801f746: 7d1b ldrb r3, [r3, #20]
  77436. if ((pcb->state != ESTABLISHED) &&
  77437. 801f748: 2b07 cmp r3, #7
  77438. 801f74a: d00a beq.n 801f762 <tcp_write_checks+0x46>
  77439. (pcb->state != SYN_SENT) &&
  77440. 801f74c: 687b ldr r3, [r7, #4]
  77441. 801f74e: 7d1b ldrb r3, [r3, #20]
  77442. (pcb->state != CLOSE_WAIT) &&
  77443. 801f750: 2b02 cmp r3, #2
  77444. 801f752: d006 beq.n 801f762 <tcp_write_checks+0x46>
  77445. (pcb->state != SYN_RCVD)) {
  77446. 801f754: 687b ldr r3, [r7, #4]
  77447. 801f756: 7d1b ldrb r3, [r3, #20]
  77448. (pcb->state != SYN_SENT) &&
  77449. 801f758: 2b03 cmp r3, #3
  77450. 801f75a: d002 beq.n 801f762 <tcp_write_checks+0x46>
  77451. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_STATE | LWIP_DBG_LEVEL_SEVERE, ("tcp_write() called in invalid state\n"));
  77452. return ERR_CONN;
  77453. 801f75c: f06f 030a mvn.w r3, #10
  77454. 801f760: e048 b.n 801f7f4 <tcp_write_checks+0xd8>
  77455. } else if (len == 0) {
  77456. 801f762: 887b ldrh r3, [r7, #2]
  77457. 801f764: 2b00 cmp r3, #0
  77458. 801f766: d101 bne.n 801f76c <tcp_write_checks+0x50>
  77459. return ERR_OK;
  77460. 801f768: 2300 movs r3, #0
  77461. 801f76a: e043 b.n 801f7f4 <tcp_write_checks+0xd8>
  77462. }
  77463. /* fail on too much data */
  77464. if (len > pcb->snd_buf) {
  77465. 801f76c: 687b ldr r3, [r7, #4]
  77466. 801f76e: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  77467. 801f772: 887a ldrh r2, [r7, #2]
  77468. 801f774: 429a cmp r2, r3
  77469. 801f776: d909 bls.n 801f78c <tcp_write_checks+0x70>
  77470. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too much data (len=%"U16_F" > snd_buf=%"TCPWNDSIZE_F")\n",
  77471. len, pcb->snd_buf));
  77472. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  77473. 801f778: 687b ldr r3, [r7, #4]
  77474. 801f77a: 8b5b ldrh r3, [r3, #26]
  77475. 801f77c: f043 0380 orr.w r3, r3, #128 @ 0x80
  77476. 801f780: b29a uxth r2, r3
  77477. 801f782: 687b ldr r3, [r7, #4]
  77478. 801f784: 835a strh r2, [r3, #26]
  77479. return ERR_MEM;
  77480. 801f786: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  77481. 801f78a: e033 b.n 801f7f4 <tcp_write_checks+0xd8>
  77482. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen));
  77483. /* If total number of pbufs on the unsent/unacked queues exceeds the
  77484. * configured maximum, return an error */
  77485. /* check for configured max queuelen and possible overflow */
  77486. if (pcb->snd_queuelen >= LWIP_MIN(TCP_SND_QUEUELEN, (TCP_SNDQUEUELEN_OVERFLOW + 1))) {
  77487. 801f78c: 687b ldr r3, [r7, #4]
  77488. 801f78e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77489. 801f792: 2b0f cmp r3, #15
  77490. 801f794: d909 bls.n 801f7aa <tcp_write_checks+0x8e>
  77491. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("tcp_write: too long queue %"U16_F" (max %"U16_F")\n",
  77492. pcb->snd_queuelen, (u16_t)TCP_SND_QUEUELEN));
  77493. TCP_STATS_INC(tcp.memerr);
  77494. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  77495. 801f796: 687b ldr r3, [r7, #4]
  77496. 801f798: 8b5b ldrh r3, [r3, #26]
  77497. 801f79a: f043 0380 orr.w r3, r3, #128 @ 0x80
  77498. 801f79e: b29a uxth r2, r3
  77499. 801f7a0: 687b ldr r3, [r7, #4]
  77500. 801f7a2: 835a strh r2, [r3, #26]
  77501. return ERR_MEM;
  77502. 801f7a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  77503. 801f7a8: e024 b.n 801f7f4 <tcp_write_checks+0xd8>
  77504. }
  77505. if (pcb->snd_queuelen != 0) {
  77506. 801f7aa: 687b ldr r3, [r7, #4]
  77507. 801f7ac: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77508. 801f7b0: 2b00 cmp r3, #0
  77509. 801f7b2: d00f beq.n 801f7d4 <tcp_write_checks+0xb8>
  77510. LWIP_ASSERT("tcp_write: pbufs on queue => at least one queue non-empty",
  77511. 801f7b4: 687b ldr r3, [r7, #4]
  77512. 801f7b6: 6f1b ldr r3, [r3, #112] @ 0x70
  77513. 801f7b8: 2b00 cmp r3, #0
  77514. 801f7ba: d11a bne.n 801f7f2 <tcp_write_checks+0xd6>
  77515. 801f7bc: 687b ldr r3, [r7, #4]
  77516. 801f7be: 6edb ldr r3, [r3, #108] @ 0x6c
  77517. 801f7c0: 2b00 cmp r3, #0
  77518. 801f7c2: d116 bne.n 801f7f2 <tcp_write_checks+0xd6>
  77519. 801f7c4: 4b0d ldr r3, [pc, #52] @ (801f7fc <tcp_write_checks+0xe0>)
  77520. 801f7c6: f240 1255 movw r2, #341 @ 0x155
  77521. 801f7ca: 490f ldr r1, [pc, #60] @ (801f808 <tcp_write_checks+0xec>)
  77522. 801f7cc: 480d ldr r0, [pc, #52] @ (801f804 <tcp_write_checks+0xe8>)
  77523. 801f7ce: f00a fcf5 bl 802a1bc <iprintf>
  77524. 801f7d2: e00e b.n 801f7f2 <tcp_write_checks+0xd6>
  77525. pcb->unacked != NULL || pcb->unsent != NULL);
  77526. } else {
  77527. LWIP_ASSERT("tcp_write: no pbufs on queue => both queues empty",
  77528. 801f7d4: 687b ldr r3, [r7, #4]
  77529. 801f7d6: 6f1b ldr r3, [r3, #112] @ 0x70
  77530. 801f7d8: 2b00 cmp r3, #0
  77531. 801f7da: d103 bne.n 801f7e4 <tcp_write_checks+0xc8>
  77532. 801f7dc: 687b ldr r3, [r7, #4]
  77533. 801f7de: 6edb ldr r3, [r3, #108] @ 0x6c
  77534. 801f7e0: 2b00 cmp r3, #0
  77535. 801f7e2: d006 beq.n 801f7f2 <tcp_write_checks+0xd6>
  77536. 801f7e4: 4b05 ldr r3, [pc, #20] @ (801f7fc <tcp_write_checks+0xe0>)
  77537. 801f7e6: f44f 72ac mov.w r2, #344 @ 0x158
  77538. 801f7ea: 4908 ldr r1, [pc, #32] @ (801f80c <tcp_write_checks+0xf0>)
  77539. 801f7ec: 4805 ldr r0, [pc, #20] @ (801f804 <tcp_write_checks+0xe8>)
  77540. 801f7ee: f00a fce5 bl 802a1bc <iprintf>
  77541. pcb->unacked == NULL && pcb->unsent == NULL);
  77542. }
  77543. return ERR_OK;
  77544. 801f7f2: 2300 movs r3, #0
  77545. }
  77546. 801f7f4: 4618 mov r0, r3
  77547. 801f7f6: 3708 adds r7, #8
  77548. 801f7f8: 46bd mov sp, r7
  77549. 801f7fa: bd80 pop {r7, pc}
  77550. 801f7fc: 0802fa24 .word 0x0802fa24
  77551. 801f800: 0802fb34 .word 0x0802fb34
  77552. 801f804: 0802fa78 .word 0x0802fa78
  77553. 801f808: 0802fb54 .word 0x0802fb54
  77554. 801f80c: 0802fb90 .word 0x0802fb90
  77555. 0801f810 <tcp_write>:
  77556. * - TCP_WRITE_FLAG_MORE (0x02) for TCP connection, PSH flag will not be set on last segment sent,
  77557. * @return ERR_OK if enqueued, another err_t on error
  77558. */
  77559. err_t
  77560. tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
  77561. {
  77562. 801f810: b590 push {r4, r7, lr}
  77563. 801f812: b09d sub sp, #116 @ 0x74
  77564. 801f814: af04 add r7, sp, #16
  77565. 801f816: 60f8 str r0, [r7, #12]
  77566. 801f818: 60b9 str r1, [r7, #8]
  77567. 801f81a: 4611 mov r1, r2
  77568. 801f81c: 461a mov r2, r3
  77569. 801f81e: 460b mov r3, r1
  77570. 801f820: 80fb strh r3, [r7, #6]
  77571. 801f822: 4613 mov r3, r2
  77572. 801f824: 717b strb r3, [r7, #5]
  77573. struct pbuf *concat_p = NULL;
  77574. 801f826: 2300 movs r3, #0
  77575. 801f828: 63fb str r3, [r7, #60] @ 0x3c
  77576. struct tcp_seg *last_unsent = NULL, *seg = NULL, *prev_seg = NULL, *queue = NULL;
  77577. 801f82a: 2300 movs r3, #0
  77578. 801f82c: 643b str r3, [r7, #64] @ 0x40
  77579. 801f82e: 2300 movs r3, #0
  77580. 801f830: 657b str r3, [r7, #84] @ 0x54
  77581. 801f832: 2300 movs r3, #0
  77582. 801f834: 653b str r3, [r7, #80] @ 0x50
  77583. 801f836: 2300 movs r3, #0
  77584. 801f838: 64fb str r3, [r7, #76] @ 0x4c
  77585. u16_t pos = 0; /* position in 'arg' data */
  77586. 801f83a: 2300 movs r3, #0
  77587. 801f83c: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  77588. u16_t queuelen;
  77589. u8_t optlen;
  77590. u8_t optflags = 0;
  77591. 801f840: 2300 movs r3, #0
  77592. 801f842: f887 302b strb.w r3, [r7, #43] @ 0x2b
  77593. #if TCP_OVERSIZE
  77594. u16_t oversize = 0;
  77595. 801f846: 2300 movs r3, #0
  77596. 801f848: 82fb strh r3, [r7, #22]
  77597. u16_t oversize_used = 0;
  77598. 801f84a: 2300 movs r3, #0
  77599. 801f84c: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  77600. #if TCP_OVERSIZE_DBGCHECK
  77601. u16_t oversize_add = 0;
  77602. 801f850: 2300 movs r3, #0
  77603. 801f852: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  77604. #endif /* TCP_OVERSIZE_DBGCHECK*/
  77605. #endif /* TCP_OVERSIZE */
  77606. u16_t extendlen = 0;
  77607. 801f856: 2300 movs r3, #0
  77608. 801f858: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  77609. u16_t concat_chksummed = 0;
  77610. #endif /* TCP_CHECKSUM_ON_COPY */
  77611. err_t err;
  77612. u16_t mss_local;
  77613. LWIP_ERROR("tcp_write: invalid pcb", pcb != NULL, return ERR_ARG);
  77614. 801f85c: 68fb ldr r3, [r7, #12]
  77615. 801f85e: 2b00 cmp r3, #0
  77616. 801f860: d109 bne.n 801f876 <tcp_write+0x66>
  77617. 801f862: 4b9d ldr r3, [pc, #628] @ (801fad8 <tcp_write+0x2c8>)
  77618. 801f864: f44f 72cf mov.w r2, #414 @ 0x19e
  77619. 801f868: 499c ldr r1, [pc, #624] @ (801fadc <tcp_write+0x2cc>)
  77620. 801f86a: 489d ldr r0, [pc, #628] @ (801fae0 <tcp_write+0x2d0>)
  77621. 801f86c: f00a fca6 bl 802a1bc <iprintf>
  77622. 801f870: f06f 030f mvn.w r3, #15
  77623. 801f874: e37b b.n 801ff6e <tcp_write+0x75e>
  77624. /* don't allocate segments bigger than half the maximum window we ever received */
  77625. mss_local = LWIP_MIN(pcb->mss, TCPWND_MIN16(pcb->snd_wnd_max / 2));
  77626. 801f876: 68fb ldr r3, [r7, #12]
  77627. 801f878: f8b3 3062 ldrh.w r3, [r3, #98] @ 0x62
  77628. 801f87c: 085b lsrs r3, r3, #1
  77629. 801f87e: b29a uxth r2, r3
  77630. 801f880: 68fb ldr r3, [r7, #12]
  77631. 801f882: 8e5b ldrh r3, [r3, #50] @ 0x32
  77632. 801f884: 4293 cmp r3, r2
  77633. 801f886: bf28 it cs
  77634. 801f888: 4613 movcs r3, r2
  77635. 801f88a: 853b strh r3, [r7, #40] @ 0x28
  77636. mss_local = mss_local ? mss_local : pcb->mss;
  77637. 801f88c: 8d3b ldrh r3, [r7, #40] @ 0x28
  77638. 801f88e: 2b00 cmp r3, #0
  77639. 801f890: d102 bne.n 801f898 <tcp_write+0x88>
  77640. 801f892: 68fb ldr r3, [r7, #12]
  77641. 801f894: 8e5b ldrh r3, [r3, #50] @ 0x32
  77642. 801f896: e000 b.n 801f89a <tcp_write+0x8a>
  77643. 801f898: 8d3b ldrh r3, [r7, #40] @ 0x28
  77644. 801f89a: 853b strh r3, [r7, #40] @ 0x28
  77645. LWIP_ASSERT_CORE_LOCKED();
  77646. 801f89c: f7f1 f8ee bl 8010a7c <sys_check_core_locking>
  77647. apiflags |= TCP_WRITE_FLAG_COPY;
  77648. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  77649. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n",
  77650. (void *)pcb, arg, len, (u16_t)apiflags));
  77651. LWIP_ERROR("tcp_write: arg == NULL (programmer violates API)",
  77652. 801f8a0: 68bb ldr r3, [r7, #8]
  77653. 801f8a2: 2b00 cmp r3, #0
  77654. 801f8a4: d109 bne.n 801f8ba <tcp_write+0xaa>
  77655. 801f8a6: 4b8c ldr r3, [pc, #560] @ (801fad8 <tcp_write+0x2c8>)
  77656. 801f8a8: f240 12ad movw r2, #429 @ 0x1ad
  77657. 801f8ac: 498d ldr r1, [pc, #564] @ (801fae4 <tcp_write+0x2d4>)
  77658. 801f8ae: 488c ldr r0, [pc, #560] @ (801fae0 <tcp_write+0x2d0>)
  77659. 801f8b0: f00a fc84 bl 802a1bc <iprintf>
  77660. 801f8b4: f06f 030f mvn.w r3, #15
  77661. 801f8b8: e359 b.n 801ff6e <tcp_write+0x75e>
  77662. arg != NULL, return ERR_ARG;);
  77663. err = tcp_write_checks(pcb, len);
  77664. 801f8ba: 88fb ldrh r3, [r7, #6]
  77665. 801f8bc: 4619 mov r1, r3
  77666. 801f8be: 68f8 ldr r0, [r7, #12]
  77667. 801f8c0: f7ff ff2c bl 801f71c <tcp_write_checks>
  77668. 801f8c4: 4603 mov r3, r0
  77669. 801f8c6: f887 3027 strb.w r3, [r7, #39] @ 0x27
  77670. if (err != ERR_OK) {
  77671. 801f8ca: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  77672. 801f8ce: 2b00 cmp r3, #0
  77673. 801f8d0: d002 beq.n 801f8d8 <tcp_write+0xc8>
  77674. return err;
  77675. 801f8d2: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  77676. 801f8d6: e34a b.n 801ff6e <tcp_write+0x75e>
  77677. }
  77678. queuelen = pcb->snd_queuelen;
  77679. 801f8d8: 68fb ldr r3, [r7, #12]
  77680. 801f8da: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  77681. 801f8de: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  77682. /* ensure that segments can hold at least one data byte... */
  77683. mss_local = LWIP_MAX(mss_local, LWIP_TCP_OPT_LEN_TS + 1);
  77684. } else
  77685. #endif /* LWIP_TCP_TIMESTAMPS */
  77686. {
  77687. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  77688. 801f8e2: 2300 movs r3, #0
  77689. 801f8e4: f887 3026 strb.w r3, [r7, #38] @ 0x26
  77690. *
  77691. * pos records progress as data is segmented.
  77692. */
  77693. /* Find the tail of the unsent queue. */
  77694. if (pcb->unsent != NULL) {
  77695. 801f8e8: 68fb ldr r3, [r7, #12]
  77696. 801f8ea: 6edb ldr r3, [r3, #108] @ 0x6c
  77697. 801f8ec: 2b00 cmp r3, #0
  77698. 801f8ee: f000 8127 beq.w 801fb40 <tcp_write+0x330>
  77699. u16_t space;
  77700. u16_t unsent_optlen;
  77701. /* @todo: this could be sped up by keeping last_unsent in the pcb */
  77702. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  77703. 801f8f2: 68fb ldr r3, [r7, #12]
  77704. 801f8f4: 6edb ldr r3, [r3, #108] @ 0x6c
  77705. 801f8f6: 643b str r3, [r7, #64] @ 0x40
  77706. 801f8f8: e002 b.n 801f900 <tcp_write+0xf0>
  77707. last_unsent = last_unsent->next);
  77708. 801f8fa: 6c3b ldr r3, [r7, #64] @ 0x40
  77709. 801f8fc: 681b ldr r3, [r3, #0]
  77710. 801f8fe: 643b str r3, [r7, #64] @ 0x40
  77711. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  77712. 801f900: 6c3b ldr r3, [r7, #64] @ 0x40
  77713. 801f902: 681b ldr r3, [r3, #0]
  77714. 801f904: 2b00 cmp r3, #0
  77715. 801f906: d1f8 bne.n 801f8fa <tcp_write+0xea>
  77716. /* Usable space at the end of the last unsent segment */
  77717. unsent_optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(last_unsent->flags, pcb);
  77718. 801f908: 6c3b ldr r3, [r7, #64] @ 0x40
  77719. 801f90a: 7b1b ldrb r3, [r3, #12]
  77720. 801f90c: 009b lsls r3, r3, #2
  77721. 801f90e: b29b uxth r3, r3
  77722. 801f910: f003 0304 and.w r3, r3, #4
  77723. 801f914: 84bb strh r3, [r7, #36] @ 0x24
  77724. LWIP_ASSERT("mss_local is too small", mss_local >= last_unsent->len + unsent_optlen);
  77725. 801f916: 8d3a ldrh r2, [r7, #40] @ 0x28
  77726. 801f918: 6c3b ldr r3, [r7, #64] @ 0x40
  77727. 801f91a: 891b ldrh r3, [r3, #8]
  77728. 801f91c: 4619 mov r1, r3
  77729. 801f91e: 8cbb ldrh r3, [r7, #36] @ 0x24
  77730. 801f920: 440b add r3, r1
  77731. 801f922: 429a cmp r2, r3
  77732. 801f924: da06 bge.n 801f934 <tcp_write+0x124>
  77733. 801f926: 4b6c ldr r3, [pc, #432] @ (801fad8 <tcp_write+0x2c8>)
  77734. 801f928: f44f 72f3 mov.w r2, #486 @ 0x1e6
  77735. 801f92c: 496e ldr r1, [pc, #440] @ (801fae8 <tcp_write+0x2d8>)
  77736. 801f92e: 486c ldr r0, [pc, #432] @ (801fae0 <tcp_write+0x2d0>)
  77737. 801f930: f00a fc44 bl 802a1bc <iprintf>
  77738. space = mss_local - (last_unsent->len + unsent_optlen);
  77739. 801f934: 6c3b ldr r3, [r7, #64] @ 0x40
  77740. 801f936: 891a ldrh r2, [r3, #8]
  77741. 801f938: 8cbb ldrh r3, [r7, #36] @ 0x24
  77742. 801f93a: 4413 add r3, r2
  77743. 801f93c: b29b uxth r3, r3
  77744. 801f93e: 8d3a ldrh r2, [r7, #40] @ 0x28
  77745. 801f940: 1ad3 subs r3, r2, r3
  77746. 801f942: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  77747. * function.
  77748. */
  77749. #if TCP_OVERSIZE
  77750. #if TCP_OVERSIZE_DBGCHECK
  77751. /* check that pcb->unsent_oversize matches last_unsent->oversize_left */
  77752. LWIP_ASSERT("unsent_oversize mismatch (pcb vs. last_unsent)",
  77753. 801f946: 68fb ldr r3, [r7, #12]
  77754. 801f948: f8b3 2068 ldrh.w r2, [r3, #104] @ 0x68
  77755. 801f94c: 6c3b ldr r3, [r7, #64] @ 0x40
  77756. 801f94e: 895b ldrh r3, [r3, #10]
  77757. 801f950: 429a cmp r2, r3
  77758. 801f952: d006 beq.n 801f962 <tcp_write+0x152>
  77759. 801f954: 4b60 ldr r3, [pc, #384] @ (801fad8 <tcp_write+0x2c8>)
  77760. 801f956: f240 12f3 movw r2, #499 @ 0x1f3
  77761. 801f95a: 4964 ldr r1, [pc, #400] @ (801faec <tcp_write+0x2dc>)
  77762. 801f95c: 4860 ldr r0, [pc, #384] @ (801fae0 <tcp_write+0x2d0>)
  77763. 801f95e: f00a fc2d bl 802a1bc <iprintf>
  77764. pcb->unsent_oversize == last_unsent->oversize_left);
  77765. #endif /* TCP_OVERSIZE_DBGCHECK */
  77766. oversize = pcb->unsent_oversize;
  77767. 801f962: 68fb ldr r3, [r7, #12]
  77768. 801f964: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  77769. 801f968: 82fb strh r3, [r7, #22]
  77770. if (oversize > 0) {
  77771. 801f96a: 8afb ldrh r3, [r7, #22]
  77772. 801f96c: 2b00 cmp r3, #0
  77773. 801f96e: d02e beq.n 801f9ce <tcp_write+0x1be>
  77774. LWIP_ASSERT("inconsistent oversize vs. space", oversize <= space);
  77775. 801f970: 8afb ldrh r3, [r7, #22]
  77776. 801f972: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  77777. 801f976: 429a cmp r2, r3
  77778. 801f978: d206 bcs.n 801f988 <tcp_write+0x178>
  77779. 801f97a: 4b57 ldr r3, [pc, #348] @ (801fad8 <tcp_write+0x2c8>)
  77780. 801f97c: f44f 72fc mov.w r2, #504 @ 0x1f8
  77781. 801f980: 495b ldr r1, [pc, #364] @ (801faf0 <tcp_write+0x2e0>)
  77782. 801f982: 4857 ldr r0, [pc, #348] @ (801fae0 <tcp_write+0x2d0>)
  77783. 801f984: f00a fc1a bl 802a1bc <iprintf>
  77784. seg = last_unsent;
  77785. 801f988: 6c3b ldr r3, [r7, #64] @ 0x40
  77786. 801f98a: 657b str r3, [r7, #84] @ 0x54
  77787. oversize_used = LWIP_MIN(space, LWIP_MIN(oversize, len));
  77788. 801f98c: 8afb ldrh r3, [r7, #22]
  77789. 801f98e: 88fa ldrh r2, [r7, #6]
  77790. 801f990: 4293 cmp r3, r2
  77791. 801f992: bf28 it cs
  77792. 801f994: 4613 movcs r3, r2
  77793. 801f996: b29b uxth r3, r3
  77794. 801f998: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  77795. 801f99c: 4293 cmp r3, r2
  77796. 801f99e: bf28 it cs
  77797. 801f9a0: 4613 movcs r3, r2
  77798. 801f9a2: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  77799. pos += oversize_used;
  77800. 801f9a6: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  77801. 801f9aa: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77802. 801f9ae: 4413 add r3, r2
  77803. 801f9b0: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  77804. oversize -= oversize_used;
  77805. 801f9b4: 8afa ldrh r2, [r7, #22]
  77806. 801f9b6: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77807. 801f9ba: 1ad3 subs r3, r2, r3
  77808. 801f9bc: b29b uxth r3, r3
  77809. 801f9be: 82fb strh r3, [r7, #22]
  77810. space -= oversize_used;
  77811. 801f9c0: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  77812. 801f9c4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  77813. 801f9c8: 1ad3 subs r3, r2, r3
  77814. 801f9ca: f8a7 305c strh.w r3, [r7, #92] @ 0x5c
  77815. }
  77816. /* now we are either finished or oversize is zero */
  77817. LWIP_ASSERT("inconsistent oversize vs. len", (oversize == 0) || (pos == len));
  77818. 801f9ce: 8afb ldrh r3, [r7, #22]
  77819. 801f9d0: 2b00 cmp r3, #0
  77820. 801f9d2: d00b beq.n 801f9ec <tcp_write+0x1dc>
  77821. 801f9d4: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  77822. 801f9d8: 88fb ldrh r3, [r7, #6]
  77823. 801f9da: 429a cmp r2, r3
  77824. 801f9dc: d006 beq.n 801f9ec <tcp_write+0x1dc>
  77825. 801f9de: 4b3e ldr r3, [pc, #248] @ (801fad8 <tcp_write+0x2c8>)
  77826. 801f9e0: f44f 7200 mov.w r2, #512 @ 0x200
  77827. 801f9e4: 4943 ldr r1, [pc, #268] @ (801faf4 <tcp_write+0x2e4>)
  77828. 801f9e6: 483e ldr r0, [pc, #248] @ (801fae0 <tcp_write+0x2d0>)
  77829. 801f9e8: f00a fbe8 bl 802a1bc <iprintf>
  77830. *
  77831. * This phase is skipped for LWIP_NETIF_TX_SINGLE_PBUF as we could only execute
  77832. * it after rexmit puts a segment from unacked to unsent and at this point,
  77833. * oversize info is lost.
  77834. */
  77835. if ((pos < len) && (space > 0) && (last_unsent->len > 0)) {
  77836. 801f9ec: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  77837. 801f9f0: 88fb ldrh r3, [r7, #6]
  77838. 801f9f2: 429a cmp r2, r3
  77839. 801f9f4: f080 8172 bcs.w 801fcdc <tcp_write+0x4cc>
  77840. 801f9f8: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  77841. 801f9fc: 2b00 cmp r3, #0
  77842. 801f9fe: f000 816d beq.w 801fcdc <tcp_write+0x4cc>
  77843. 801fa02: 6c3b ldr r3, [r7, #64] @ 0x40
  77844. 801fa04: 891b ldrh r3, [r3, #8]
  77845. 801fa06: 2b00 cmp r3, #0
  77846. 801fa08: f000 8168 beq.w 801fcdc <tcp_write+0x4cc>
  77847. u16_t seglen = LWIP_MIN(space, len - pos);
  77848. 801fa0c: 88fa ldrh r2, [r7, #6]
  77849. 801fa0e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  77850. 801fa12: 1ad2 subs r2, r2, r3
  77851. 801fa14: f8b7 305c ldrh.w r3, [r7, #92] @ 0x5c
  77852. 801fa18: 4293 cmp r3, r2
  77853. 801fa1a: bfa8 it ge
  77854. 801fa1c: 4613 movge r3, r2
  77855. 801fa1e: 847b strh r3, [r7, #34] @ 0x22
  77856. seg = last_unsent;
  77857. 801fa20: 6c3b ldr r3, [r7, #64] @ 0x40
  77858. 801fa22: 657b str r3, [r7, #84] @ 0x54
  77859. /* Create a pbuf with a copy or reference to seglen bytes. We
  77860. * can use PBUF_RAW here since the data appears in the middle of
  77861. * a segment. A header will never be prepended. */
  77862. if (apiflags & TCP_WRITE_FLAG_COPY) {
  77863. 801fa24: 797b ldrb r3, [r7, #5]
  77864. 801fa26: f003 0301 and.w r3, r3, #1
  77865. 801fa2a: 2b00 cmp r3, #0
  77866. 801fa2c: d02b beq.n 801fa86 <tcp_write+0x276>
  77867. /* Data is copied */
  77868. if ((concat_p = tcp_pbuf_prealloc(PBUF_RAW, seglen, space, &oversize, pcb, apiflags, 1)) == NULL) {
  77869. 801fa2e: f107 0016 add.w r0, r7, #22
  77870. 801fa32: f8b7 205c ldrh.w r2, [r7, #92] @ 0x5c
  77871. 801fa36: 8c79 ldrh r1, [r7, #34] @ 0x22
  77872. 801fa38: 2301 movs r3, #1
  77873. 801fa3a: 9302 str r3, [sp, #8]
  77874. 801fa3c: 797b ldrb r3, [r7, #5]
  77875. 801fa3e: 9301 str r3, [sp, #4]
  77876. 801fa40: 68fb ldr r3, [r7, #12]
  77877. 801fa42: 9300 str r3, [sp, #0]
  77878. 801fa44: 4603 mov r3, r0
  77879. 801fa46: 2000 movs r0, #0
  77880. 801fa48: f7ff fdee bl 801f628 <tcp_pbuf_prealloc>
  77881. 801fa4c: 63f8 str r0, [r7, #60] @ 0x3c
  77882. 801fa4e: 6bfb ldr r3, [r7, #60] @ 0x3c
  77883. 801fa50: 2b00 cmp r3, #0
  77884. 801fa52: f000 825a beq.w 801ff0a <tcp_write+0x6fa>
  77885. ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n",
  77886. seglen));
  77887. goto memerr;
  77888. }
  77889. #if TCP_OVERSIZE_DBGCHECK
  77890. oversize_add = oversize;
  77891. 801fa56: 8afb ldrh r3, [r7, #22]
  77892. 801fa58: f8a7 305a strh.w r3, [r7, #90] @ 0x5a
  77893. #endif /* TCP_OVERSIZE_DBGCHECK */
  77894. TCP_DATA_COPY2(concat_p->payload, (const u8_t *)arg + pos, seglen, &concat_chksum, &concat_chksum_swapped);
  77895. 801fa5c: 6bfb ldr r3, [r7, #60] @ 0x3c
  77896. 801fa5e: 6858 ldr r0, [r3, #4]
  77897. 801fa60: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  77898. 801fa64: 68ba ldr r2, [r7, #8]
  77899. 801fa66: 4413 add r3, r2
  77900. 801fa68: 8c7a ldrh r2, [r7, #34] @ 0x22
  77901. 801fa6a: 4619 mov r1, r3
  77902. 801fa6c: f00a fe2f bl 802a6ce <memcpy>
  77903. #if TCP_CHECKSUM_ON_COPY
  77904. concat_chksummed += seglen;
  77905. #endif /* TCP_CHECKSUM_ON_COPY */
  77906. queuelen += pbuf_clen(concat_p);
  77907. 801fa70: 6bf8 ldr r0, [r7, #60] @ 0x3c
  77908. 801fa72: f7fb f9b9 bl 801ade8 <pbuf_clen>
  77909. 801fa76: 4603 mov r3, r0
  77910. 801fa78: 461a mov r2, r3
  77911. 801fa7a: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  77912. 801fa7e: 4413 add r3, r2
  77913. 801fa80: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  77914. 801fa84: e055 b.n 801fb32 <tcp_write+0x322>
  77915. } else {
  77916. /* Data is not copied */
  77917. /* If the last unsent pbuf is of type PBUF_ROM, try to extend it. */
  77918. struct pbuf *p;
  77919. for (p = last_unsent->p; p->next != NULL; p = p->next);
  77920. 801fa86: 6c3b ldr r3, [r7, #64] @ 0x40
  77921. 801fa88: 685b ldr r3, [r3, #4]
  77922. 801fa8a: 63bb str r3, [r7, #56] @ 0x38
  77923. 801fa8c: e002 b.n 801fa94 <tcp_write+0x284>
  77924. 801fa8e: 6bbb ldr r3, [r7, #56] @ 0x38
  77925. 801fa90: 681b ldr r3, [r3, #0]
  77926. 801fa92: 63bb str r3, [r7, #56] @ 0x38
  77927. 801fa94: 6bbb ldr r3, [r7, #56] @ 0x38
  77928. 801fa96: 681b ldr r3, [r3, #0]
  77929. 801fa98: 2b00 cmp r3, #0
  77930. 801fa9a: d1f8 bne.n 801fa8e <tcp_write+0x27e>
  77931. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  77932. 801fa9c: 6bbb ldr r3, [r7, #56] @ 0x38
  77933. 801fa9e: 7b1b ldrb r3, [r3, #12]
  77934. 801faa0: f003 03c0 and.w r3, r3, #192 @ 0xc0
  77935. 801faa4: 2b00 cmp r3, #0
  77936. 801faa6: d129 bne.n 801fafc <tcp_write+0x2ec>
  77937. (const u8_t *)p->payload + p->len == (const u8_t *)arg) {
  77938. 801faa8: 6bbb ldr r3, [r7, #56] @ 0x38
  77939. 801faaa: 685b ldr r3, [r3, #4]
  77940. 801faac: 6bba ldr r2, [r7, #56] @ 0x38
  77941. 801faae: 8952 ldrh r2, [r2, #10]
  77942. 801fab0: 4413 add r3, r2
  77943. if (((p->type_internal & (PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS | PBUF_TYPE_FLAG_DATA_VOLATILE)) == 0) &&
  77944. 801fab2: 68ba ldr r2, [r7, #8]
  77945. 801fab4: 429a cmp r2, r3
  77946. 801fab6: d121 bne.n 801fafc <tcp_write+0x2ec>
  77947. LWIP_ASSERT("tcp_write: ROM pbufs cannot be oversized", pos == 0);
  77948. 801fab8: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  77949. 801fabc: 2b00 cmp r3, #0
  77950. 801fabe: d006 beq.n 801face <tcp_write+0x2be>
  77951. 801fac0: 4b05 ldr r3, [pc, #20] @ (801fad8 <tcp_write+0x2c8>)
  77952. 801fac2: f240 2231 movw r2, #561 @ 0x231
  77953. 801fac6: 490c ldr r1, [pc, #48] @ (801faf8 <tcp_write+0x2e8>)
  77954. 801fac8: 4805 ldr r0, [pc, #20] @ (801fae0 <tcp_write+0x2d0>)
  77955. 801faca: f00a fb77 bl 802a1bc <iprintf>
  77956. extendlen = seglen;
  77957. 801face: 8c7b ldrh r3, [r7, #34] @ 0x22
  77958. 801fad0: f8a7 305e strh.w r3, [r7, #94] @ 0x5e
  77959. 801fad4: e02d b.n 801fb32 <tcp_write+0x322>
  77960. 801fad6: bf00 nop
  77961. 801fad8: 0802fa24 .word 0x0802fa24
  77962. 801fadc: 0802fbc4 .word 0x0802fbc4
  77963. 801fae0: 0802fa78 .word 0x0802fa78
  77964. 801fae4: 0802fbdc .word 0x0802fbdc
  77965. 801fae8: 0802fc10 .word 0x0802fc10
  77966. 801faec: 0802fc28 .word 0x0802fc28
  77967. 801faf0: 0802fc58 .word 0x0802fc58
  77968. 801faf4: 0802fc78 .word 0x0802fc78
  77969. 801faf8: 0802fc98 .word 0x0802fc98
  77970. } else {
  77971. if ((concat_p = pbuf_alloc(PBUF_RAW, seglen, PBUF_ROM)) == NULL) {
  77972. 801fafc: 8c7b ldrh r3, [r7, #34] @ 0x22
  77973. 801fafe: 2201 movs r2, #1
  77974. 801fb00: 4619 mov r1, r3
  77975. 801fb02: 2000 movs r0, #0
  77976. 801fb04: f7fa fdcc bl 801a6a0 <pbuf_alloc>
  77977. 801fb08: 63f8 str r0, [r7, #60] @ 0x3c
  77978. 801fb0a: 6bfb ldr r3, [r7, #60] @ 0x3c
  77979. 801fb0c: 2b00 cmp r3, #0
  77980. 801fb0e: f000 81fe beq.w 801ff0e <tcp_write+0x6fe>
  77981. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  77982. ("tcp_write: could not allocate memory for zero-copy pbuf\n"));
  77983. goto memerr;
  77984. }
  77985. /* reference the non-volatile payload data */
  77986. ((struct pbuf_rom *)concat_p)->payload = (const u8_t *)arg + pos;
  77987. 801fb12: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  77988. 801fb16: 68ba ldr r2, [r7, #8]
  77989. 801fb18: 441a add r2, r3
  77990. 801fb1a: 6bfb ldr r3, [r7, #60] @ 0x3c
  77991. 801fb1c: 605a str r2, [r3, #4]
  77992. queuelen += pbuf_clen(concat_p);
  77993. 801fb1e: 6bf8 ldr r0, [r7, #60] @ 0x3c
  77994. 801fb20: f7fb f962 bl 801ade8 <pbuf_clen>
  77995. 801fb24: 4603 mov r3, r0
  77996. 801fb26: 461a mov r2, r3
  77997. 801fb28: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  77998. 801fb2c: 4413 add r3, r2
  77999. 801fb2e: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  78000. &concat_chksum, &concat_chksum_swapped);
  78001. concat_chksummed += seglen;
  78002. #endif /* TCP_CHECKSUM_ON_COPY */
  78003. }
  78004. pos += seglen;
  78005. 801fb32: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  78006. 801fb36: 8c7b ldrh r3, [r7, #34] @ 0x22
  78007. 801fb38: 4413 add r3, r2
  78008. 801fb3a: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  78009. 801fb3e: e0cd b.n 801fcdc <tcp_write+0x4cc>
  78010. }
  78011. #endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
  78012. } else {
  78013. #if TCP_OVERSIZE
  78014. LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
  78015. 801fb40: 68fb ldr r3, [r7, #12]
  78016. 801fb42: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  78017. 801fb46: 2b00 cmp r3, #0
  78018. 801fb48: f000 80c8 beq.w 801fcdc <tcp_write+0x4cc>
  78019. 801fb4c: 4b72 ldr r3, [pc, #456] @ (801fd18 <tcp_write+0x508>)
  78020. 801fb4e: f240 224a movw r2, #586 @ 0x24a
  78021. 801fb52: 4972 ldr r1, [pc, #456] @ (801fd1c <tcp_write+0x50c>)
  78022. 801fb54: 4872 ldr r0, [pc, #456] @ (801fd20 <tcp_write+0x510>)
  78023. 801fb56: f00a fb31 bl 802a1bc <iprintf>
  78024. * Phase 3: Create new segments.
  78025. *
  78026. * The new segments are chained together in the local 'queue'
  78027. * variable, ready to be appended to pcb->unsent.
  78028. */
  78029. while (pos < len) {
  78030. 801fb5a: e0bf b.n 801fcdc <tcp_write+0x4cc>
  78031. struct pbuf *p;
  78032. u16_t left = len - pos;
  78033. 801fb5c: 88fa ldrh r2, [r7, #6]
  78034. 801fb5e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78035. 801fb62: 1ad3 subs r3, r2, r3
  78036. 801fb64: 843b strh r3, [r7, #32]
  78037. u16_t max_len = mss_local - optlen;
  78038. 801fb66: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78039. 801fb6a: b29b uxth r3, r3
  78040. 801fb6c: 8d3a ldrh r2, [r7, #40] @ 0x28
  78041. 801fb6e: 1ad3 subs r3, r2, r3
  78042. 801fb70: 83fb strh r3, [r7, #30]
  78043. u16_t seglen = LWIP_MIN(left, max_len);
  78044. 801fb72: 8bfa ldrh r2, [r7, #30]
  78045. 801fb74: 8c3b ldrh r3, [r7, #32]
  78046. 801fb76: 4293 cmp r3, r2
  78047. 801fb78: bf28 it cs
  78048. 801fb7a: 4613 movcs r3, r2
  78049. 801fb7c: 83bb strh r3, [r7, #28]
  78050. #if TCP_CHECKSUM_ON_COPY
  78051. u16_t chksum = 0;
  78052. u8_t chksum_swapped = 0;
  78053. #endif /* TCP_CHECKSUM_ON_COPY */
  78054. if (apiflags & TCP_WRITE_FLAG_COPY) {
  78055. 801fb7e: 797b ldrb r3, [r7, #5]
  78056. 801fb80: f003 0301 and.w r3, r3, #1
  78057. 801fb84: 2b00 cmp r3, #0
  78058. 801fb86: d036 beq.n 801fbf6 <tcp_write+0x3e6>
  78059. /* If copy is set, memory should be allocated and data copied
  78060. * into pbuf */
  78061. if ((p = tcp_pbuf_prealloc(PBUF_TRANSPORT, seglen + optlen, mss_local, &oversize, pcb, apiflags, queue == NULL)) == NULL) {
  78062. 801fb88: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78063. 801fb8c: b29a uxth r2, r3
  78064. 801fb8e: 8bbb ldrh r3, [r7, #28]
  78065. 801fb90: 4413 add r3, r2
  78066. 801fb92: b299 uxth r1, r3
  78067. 801fb94: 6cfb ldr r3, [r7, #76] @ 0x4c
  78068. 801fb96: 2b00 cmp r3, #0
  78069. 801fb98: bf0c ite eq
  78070. 801fb9a: 2301 moveq r3, #1
  78071. 801fb9c: 2300 movne r3, #0
  78072. 801fb9e: b2db uxtb r3, r3
  78073. 801fba0: f107 0016 add.w r0, r7, #22
  78074. 801fba4: 8d3a ldrh r2, [r7, #40] @ 0x28
  78075. 801fba6: 9302 str r3, [sp, #8]
  78076. 801fba8: 797b ldrb r3, [r7, #5]
  78077. 801fbaa: 9301 str r3, [sp, #4]
  78078. 801fbac: 68fb ldr r3, [r7, #12]
  78079. 801fbae: 9300 str r3, [sp, #0]
  78080. 801fbb0: 4603 mov r3, r0
  78081. 801fbb2: 2036 movs r0, #54 @ 0x36
  78082. 801fbb4: f7ff fd38 bl 801f628 <tcp_pbuf_prealloc>
  78083. 801fbb8: 6378 str r0, [r7, #52] @ 0x34
  78084. 801fbba: 6b7b ldr r3, [r7, #52] @ 0x34
  78085. 801fbbc: 2b00 cmp r3, #0
  78086. 801fbbe: f000 81a8 beq.w 801ff12 <tcp_write+0x702>
  78087. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write : could not allocate memory for pbuf copy size %"U16_F"\n", seglen));
  78088. goto memerr;
  78089. }
  78090. LWIP_ASSERT("tcp_write: check that first pbuf can hold the complete seglen",
  78091. 801fbc2: 6b7b ldr r3, [r7, #52] @ 0x34
  78092. 801fbc4: 895b ldrh r3, [r3, #10]
  78093. 801fbc6: 8bba ldrh r2, [r7, #28]
  78094. 801fbc8: 429a cmp r2, r3
  78095. 801fbca: d906 bls.n 801fbda <tcp_write+0x3ca>
  78096. 801fbcc: 4b52 ldr r3, [pc, #328] @ (801fd18 <tcp_write+0x508>)
  78097. 801fbce: f240 2266 movw r2, #614 @ 0x266
  78098. 801fbd2: 4954 ldr r1, [pc, #336] @ (801fd24 <tcp_write+0x514>)
  78099. 801fbd4: 4852 ldr r0, [pc, #328] @ (801fd20 <tcp_write+0x510>)
  78100. 801fbd6: f00a faf1 bl 802a1bc <iprintf>
  78101. (p->len >= seglen));
  78102. TCP_DATA_COPY2((char *)p->payload + optlen, (const u8_t *)arg + pos, seglen, &chksum, &chksum_swapped);
  78103. 801fbda: 6b7b ldr r3, [r7, #52] @ 0x34
  78104. 801fbdc: 685a ldr r2, [r3, #4]
  78105. 801fbde: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78106. 801fbe2: 18d0 adds r0, r2, r3
  78107. 801fbe4: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78108. 801fbe8: 68ba ldr r2, [r7, #8]
  78109. 801fbea: 4413 add r3, r2
  78110. 801fbec: 8bba ldrh r2, [r7, #28]
  78111. 801fbee: 4619 mov r1, r3
  78112. 801fbf0: f00a fd6d bl 802a6ce <memcpy>
  78113. 801fbf4: e02f b.n 801fc56 <tcp_write+0x446>
  78114. * sent out on the link (as it has to be ACKed by the remote
  78115. * party) we can safely use PBUF_ROM instead of PBUF_REF here.
  78116. */
  78117. struct pbuf *p2;
  78118. #if TCP_OVERSIZE
  78119. LWIP_ASSERT("oversize == 0", oversize == 0);
  78120. 801fbf6: 8afb ldrh r3, [r7, #22]
  78121. 801fbf8: 2b00 cmp r3, #0
  78122. 801fbfa: d006 beq.n 801fc0a <tcp_write+0x3fa>
  78123. 801fbfc: 4b46 ldr r3, [pc, #280] @ (801fd18 <tcp_write+0x508>)
  78124. 801fbfe: f240 2271 movw r2, #625 @ 0x271
  78125. 801fc02: 4949 ldr r1, [pc, #292] @ (801fd28 <tcp_write+0x518>)
  78126. 801fc04: 4846 ldr r0, [pc, #280] @ (801fd20 <tcp_write+0x510>)
  78127. 801fc06: f00a fad9 bl 802a1bc <iprintf>
  78128. #endif /* TCP_OVERSIZE */
  78129. if ((p2 = pbuf_alloc(PBUF_TRANSPORT, seglen, PBUF_ROM)) == NULL) {
  78130. 801fc0a: 8bbb ldrh r3, [r7, #28]
  78131. 801fc0c: 2201 movs r2, #1
  78132. 801fc0e: 4619 mov r1, r3
  78133. 801fc10: 2036 movs r0, #54 @ 0x36
  78134. 801fc12: f7fa fd45 bl 801a6a0 <pbuf_alloc>
  78135. 801fc16: 61b8 str r0, [r7, #24]
  78136. 801fc18: 69bb ldr r3, [r7, #24]
  78137. 801fc1a: 2b00 cmp r3, #0
  78138. 801fc1c: f000 817b beq.w 801ff16 <tcp_write+0x706>
  78139. chksum_swapped = 1;
  78140. chksum = SWAP_BYTES_IN_WORD(chksum);
  78141. }
  78142. #endif /* TCP_CHECKSUM_ON_COPY */
  78143. /* reference the non-volatile payload data */
  78144. ((struct pbuf_rom *)p2)->payload = (const u8_t *)arg + pos;
  78145. 801fc20: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78146. 801fc24: 68ba ldr r2, [r7, #8]
  78147. 801fc26: 441a add r2, r3
  78148. 801fc28: 69bb ldr r3, [r7, #24]
  78149. 801fc2a: 605a str r2, [r3, #4]
  78150. /* Second, allocate a pbuf for the headers. */
  78151. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  78152. 801fc2c: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  78153. 801fc30: b29b uxth r3, r3
  78154. 801fc32: f44f 7220 mov.w r2, #640 @ 0x280
  78155. 801fc36: 4619 mov r1, r3
  78156. 801fc38: 2036 movs r0, #54 @ 0x36
  78157. 801fc3a: f7fa fd31 bl 801a6a0 <pbuf_alloc>
  78158. 801fc3e: 6378 str r0, [r7, #52] @ 0x34
  78159. 801fc40: 6b7b ldr r3, [r7, #52] @ 0x34
  78160. 801fc42: 2b00 cmp r3, #0
  78161. 801fc44: d103 bne.n 801fc4e <tcp_write+0x43e>
  78162. /* If allocation fails, we have to deallocate the data pbuf as
  78163. * well. */
  78164. pbuf_free(p2);
  78165. 801fc46: 69b8 ldr r0, [r7, #24]
  78166. 801fc48: f7fb f840 bl 801accc <pbuf_free>
  78167. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: could not allocate memory for header pbuf\n"));
  78168. goto memerr;
  78169. 801fc4c: e166 b.n 801ff1c <tcp_write+0x70c>
  78170. }
  78171. /* Concatenate the headers and data pbufs together. */
  78172. pbuf_cat(p/*header*/, p2/*data*/);
  78173. 801fc4e: 69b9 ldr r1, [r7, #24]
  78174. 801fc50: 6b78 ldr r0, [r7, #52] @ 0x34
  78175. 801fc52: f7fb f909 bl 801ae68 <pbuf_cat>
  78176. }
  78177. queuelen += pbuf_clen(p);
  78178. 801fc56: 6b78 ldr r0, [r7, #52] @ 0x34
  78179. 801fc58: f7fb f8c6 bl 801ade8 <pbuf_clen>
  78180. 801fc5c: 4603 mov r3, r0
  78181. 801fc5e: 461a mov r2, r3
  78182. 801fc60: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  78183. 801fc64: 4413 add r3, r2
  78184. 801fc66: f8a7 3048 strh.w r3, [r7, #72] @ 0x48
  78185. /* Now that there are more segments queued, we check again if the
  78186. * length of the queue exceeds the configured maximum or
  78187. * overflows. */
  78188. if (queuelen > LWIP_MIN(TCP_SND_QUEUELEN, TCP_SNDQUEUELEN_OVERFLOW)) {
  78189. 801fc6a: f8b7 3048 ldrh.w r3, [r7, #72] @ 0x48
  78190. 801fc6e: 2b10 cmp r3, #16
  78191. 801fc70: d903 bls.n 801fc7a <tcp_write+0x46a>
  78192. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_write: queue too long %"U16_F" (%d)\n",
  78193. queuelen, (int)TCP_SND_QUEUELEN));
  78194. pbuf_free(p);
  78195. 801fc72: 6b78 ldr r0, [r7, #52] @ 0x34
  78196. 801fc74: f7fb f82a bl 801accc <pbuf_free>
  78197. goto memerr;
  78198. 801fc78: e150 b.n 801ff1c <tcp_write+0x70c>
  78199. }
  78200. if ((seg = tcp_create_segment(pcb, p, 0, pcb->snd_lbb + pos, optflags)) == NULL) {
  78201. 801fc7a: 68fb ldr r3, [r7, #12]
  78202. 801fc7c: 6dda ldr r2, [r3, #92] @ 0x5c
  78203. 801fc7e: f8b7 304a ldrh.w r3, [r7, #74] @ 0x4a
  78204. 801fc82: 441a add r2, r3
  78205. 801fc84: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  78206. 801fc88: 9300 str r3, [sp, #0]
  78207. 801fc8a: 4613 mov r3, r2
  78208. 801fc8c: 2200 movs r2, #0
  78209. 801fc8e: 6b79 ldr r1, [r7, #52] @ 0x34
  78210. 801fc90: 68f8 ldr r0, [r7, #12]
  78211. 801fc92: f7ff fc29 bl 801f4e8 <tcp_create_segment>
  78212. 801fc96: 6578 str r0, [r7, #84] @ 0x54
  78213. 801fc98: 6d7b ldr r3, [r7, #84] @ 0x54
  78214. 801fc9a: 2b00 cmp r3, #0
  78215. 801fc9c: f000 813d beq.w 801ff1a <tcp_write+0x70a>
  78216. goto memerr;
  78217. }
  78218. #if TCP_OVERSIZE_DBGCHECK
  78219. seg->oversize_left = oversize;
  78220. 801fca0: 8afa ldrh r2, [r7, #22]
  78221. 801fca2: 6d7b ldr r3, [r7, #84] @ 0x54
  78222. 801fca4: 815a strh r2, [r3, #10]
  78223. seg->chksum_swapped = chksum_swapped;
  78224. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  78225. #endif /* TCP_CHECKSUM_ON_COPY */
  78226. /* first segment of to-be-queued data? */
  78227. if (queue == NULL) {
  78228. 801fca6: 6cfb ldr r3, [r7, #76] @ 0x4c
  78229. 801fca8: 2b00 cmp r3, #0
  78230. 801fcaa: d102 bne.n 801fcb2 <tcp_write+0x4a2>
  78231. queue = seg;
  78232. 801fcac: 6d7b ldr r3, [r7, #84] @ 0x54
  78233. 801fcae: 64fb str r3, [r7, #76] @ 0x4c
  78234. 801fcb0: e00c b.n 801fccc <tcp_write+0x4bc>
  78235. } else {
  78236. /* Attach the segment to the end of the queued segments */
  78237. LWIP_ASSERT("prev_seg != NULL", prev_seg != NULL);
  78238. 801fcb2: 6d3b ldr r3, [r7, #80] @ 0x50
  78239. 801fcb4: 2b00 cmp r3, #0
  78240. 801fcb6: d106 bne.n 801fcc6 <tcp_write+0x4b6>
  78241. 801fcb8: 4b17 ldr r3, [pc, #92] @ (801fd18 <tcp_write+0x508>)
  78242. 801fcba: f240 22ab movw r2, #683 @ 0x2ab
  78243. 801fcbe: 491b ldr r1, [pc, #108] @ (801fd2c <tcp_write+0x51c>)
  78244. 801fcc0: 4817 ldr r0, [pc, #92] @ (801fd20 <tcp_write+0x510>)
  78245. 801fcc2: f00a fa7b bl 802a1bc <iprintf>
  78246. prev_seg->next = seg;
  78247. 801fcc6: 6d3b ldr r3, [r7, #80] @ 0x50
  78248. 801fcc8: 6d7a ldr r2, [r7, #84] @ 0x54
  78249. 801fcca: 601a str r2, [r3, #0]
  78250. }
  78251. /* remember last segment of to-be-queued data for next iteration */
  78252. prev_seg = seg;
  78253. 801fccc: 6d7b ldr r3, [r7, #84] @ 0x54
  78254. 801fcce: 653b str r3, [r7, #80] @ 0x50
  78255. LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_TRACE, ("tcp_write: queueing %"U32_F":%"U32_F"\n",
  78256. lwip_ntohl(seg->tcphdr->seqno),
  78257. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
  78258. pos += seglen;
  78259. 801fcd0: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  78260. 801fcd4: 8bbb ldrh r3, [r7, #28]
  78261. 801fcd6: 4413 add r3, r2
  78262. 801fcd8: f8a7 304a strh.w r3, [r7, #74] @ 0x4a
  78263. while (pos < len) {
  78264. 801fcdc: f8b7 204a ldrh.w r2, [r7, #74] @ 0x4a
  78265. 801fce0: 88fb ldrh r3, [r7, #6]
  78266. 801fce2: 429a cmp r2, r3
  78267. 801fce4: f4ff af3a bcc.w 801fb5c <tcp_write+0x34c>
  78268. /*
  78269. * All three segmentation phases were successful. We can commit the
  78270. * transaction.
  78271. */
  78272. #if TCP_OVERSIZE_DBGCHECK
  78273. if ((last_unsent != NULL) && (oversize_add != 0)) {
  78274. 801fce8: 6c3b ldr r3, [r7, #64] @ 0x40
  78275. 801fcea: 2b00 cmp r3, #0
  78276. 801fcec: d00b beq.n 801fd06 <tcp_write+0x4f6>
  78277. 801fcee: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  78278. 801fcf2: 2b00 cmp r3, #0
  78279. 801fcf4: d007 beq.n 801fd06 <tcp_write+0x4f6>
  78280. last_unsent->oversize_left += oversize_add;
  78281. 801fcf6: 6c3b ldr r3, [r7, #64] @ 0x40
  78282. 801fcf8: 895a ldrh r2, [r3, #10]
  78283. 801fcfa: f8b7 305a ldrh.w r3, [r7, #90] @ 0x5a
  78284. 801fcfe: 4413 add r3, r2
  78285. 801fd00: b29a uxth r2, r3
  78286. 801fd02: 6c3b ldr r3, [r7, #64] @ 0x40
  78287. 801fd04: 815a strh r2, [r3, #10]
  78288. /*
  78289. * Phase 1: If data has been added to the preallocated tail of
  78290. * last_unsent, we update the length fields of the pbuf chain.
  78291. */
  78292. #if TCP_OVERSIZE
  78293. if (oversize_used > 0) {
  78294. 801fd06: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78295. 801fd0a: 2b00 cmp r3, #0
  78296. 801fd0c: d052 beq.n 801fdb4 <tcp_write+0x5a4>
  78297. struct pbuf *p;
  78298. /* Bump tot_len of whole chain, len of tail */
  78299. for (p = last_unsent->p; p; p = p->next) {
  78300. 801fd0e: 6c3b ldr r3, [r7, #64] @ 0x40
  78301. 801fd10: 685b ldr r3, [r3, #4]
  78302. 801fd12: 633b str r3, [r7, #48] @ 0x30
  78303. 801fd14: e02e b.n 801fd74 <tcp_write+0x564>
  78304. 801fd16: bf00 nop
  78305. 801fd18: 0802fa24 .word 0x0802fa24
  78306. 801fd1c: 0802fcc4 .word 0x0802fcc4
  78307. 801fd20: 0802fa78 .word 0x0802fa78
  78308. 801fd24: 0802fcf4 .word 0x0802fcf4
  78309. 801fd28: 0802fd34 .word 0x0802fd34
  78310. 801fd2c: 0802fd44 .word 0x0802fd44
  78311. p->tot_len += oversize_used;
  78312. 801fd30: 6b3b ldr r3, [r7, #48] @ 0x30
  78313. 801fd32: 891a ldrh r2, [r3, #8]
  78314. 801fd34: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78315. 801fd38: 4413 add r3, r2
  78316. 801fd3a: b29a uxth r2, r3
  78317. 801fd3c: 6b3b ldr r3, [r7, #48] @ 0x30
  78318. 801fd3e: 811a strh r2, [r3, #8]
  78319. if (p->next == NULL) {
  78320. 801fd40: 6b3b ldr r3, [r7, #48] @ 0x30
  78321. 801fd42: 681b ldr r3, [r3, #0]
  78322. 801fd44: 2b00 cmp r3, #0
  78323. 801fd46: d112 bne.n 801fd6e <tcp_write+0x55e>
  78324. TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent);
  78325. 801fd48: 6b3b ldr r3, [r7, #48] @ 0x30
  78326. 801fd4a: 685b ldr r3, [r3, #4]
  78327. 801fd4c: 6b3a ldr r2, [r7, #48] @ 0x30
  78328. 801fd4e: 8952 ldrh r2, [r2, #10]
  78329. 801fd50: 4413 add r3, r2
  78330. 801fd52: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  78331. 801fd56: 68b9 ldr r1, [r7, #8]
  78332. 801fd58: 4618 mov r0, r3
  78333. 801fd5a: f00a fcb8 bl 802a6ce <memcpy>
  78334. p->len += oversize_used;
  78335. 801fd5e: 6b3b ldr r3, [r7, #48] @ 0x30
  78336. 801fd60: 895a ldrh r2, [r3, #10]
  78337. 801fd62: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78338. 801fd66: 4413 add r3, r2
  78339. 801fd68: b29a uxth r2, r3
  78340. 801fd6a: 6b3b ldr r3, [r7, #48] @ 0x30
  78341. 801fd6c: 815a strh r2, [r3, #10]
  78342. for (p = last_unsent->p; p; p = p->next) {
  78343. 801fd6e: 6b3b ldr r3, [r7, #48] @ 0x30
  78344. 801fd70: 681b ldr r3, [r3, #0]
  78345. 801fd72: 633b str r3, [r7, #48] @ 0x30
  78346. 801fd74: 6b3b ldr r3, [r7, #48] @ 0x30
  78347. 801fd76: 2b00 cmp r3, #0
  78348. 801fd78: d1da bne.n 801fd30 <tcp_write+0x520>
  78349. }
  78350. }
  78351. last_unsent->len += oversize_used;
  78352. 801fd7a: 6c3b ldr r3, [r7, #64] @ 0x40
  78353. 801fd7c: 891a ldrh r2, [r3, #8]
  78354. 801fd7e: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78355. 801fd82: 4413 add r3, r2
  78356. 801fd84: b29a uxth r2, r3
  78357. 801fd86: 6c3b ldr r3, [r7, #64] @ 0x40
  78358. 801fd88: 811a strh r2, [r3, #8]
  78359. #if TCP_OVERSIZE_DBGCHECK
  78360. LWIP_ASSERT("last_unsent->oversize_left >= oversize_used",
  78361. 801fd8a: 6c3b ldr r3, [r7, #64] @ 0x40
  78362. 801fd8c: 895b ldrh r3, [r3, #10]
  78363. 801fd8e: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  78364. 801fd92: 429a cmp r2, r3
  78365. 801fd94: d906 bls.n 801fda4 <tcp_write+0x594>
  78366. 801fd96: 4b78 ldr r3, [pc, #480] @ (801ff78 <tcp_write+0x768>)
  78367. 801fd98: f240 22d3 movw r2, #723 @ 0x2d3
  78368. 801fd9c: 4977 ldr r1, [pc, #476] @ (801ff7c <tcp_write+0x76c>)
  78369. 801fd9e: 4878 ldr r0, [pc, #480] @ (801ff80 <tcp_write+0x770>)
  78370. 801fda0: f00a fa0c bl 802a1bc <iprintf>
  78371. last_unsent->oversize_left >= oversize_used);
  78372. last_unsent->oversize_left -= oversize_used;
  78373. 801fda4: 6c3b ldr r3, [r7, #64] @ 0x40
  78374. 801fda6: 895a ldrh r2, [r3, #10]
  78375. 801fda8: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  78376. 801fdac: 1ad3 subs r3, r2, r3
  78377. 801fdae: b29a uxth r2, r3
  78378. 801fdb0: 6c3b ldr r3, [r7, #64] @ 0x40
  78379. 801fdb2: 815a strh r2, [r3, #10]
  78380. #endif /* TCP_OVERSIZE_DBGCHECK */
  78381. }
  78382. pcb->unsent_oversize = oversize;
  78383. 801fdb4: 8afa ldrh r2, [r7, #22]
  78384. 801fdb6: 68fb ldr r3, [r7, #12]
  78385. 801fdb8: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  78386. /*
  78387. * Phase 2: concat_p can be concatenated onto last_unsent->p, unless we
  78388. * determined that the last ROM pbuf can be extended to include the new data.
  78389. */
  78390. if (concat_p != NULL) {
  78391. 801fdbc: 6bfb ldr r3, [r7, #60] @ 0x3c
  78392. 801fdbe: 2b00 cmp r3, #0
  78393. 801fdc0: d018 beq.n 801fdf4 <tcp_write+0x5e4>
  78394. LWIP_ASSERT("tcp_write: cannot concatenate when pcb->unsent is empty",
  78395. 801fdc2: 6c3b ldr r3, [r7, #64] @ 0x40
  78396. 801fdc4: 2b00 cmp r3, #0
  78397. 801fdc6: d106 bne.n 801fdd6 <tcp_write+0x5c6>
  78398. 801fdc8: 4b6b ldr r3, [pc, #428] @ (801ff78 <tcp_write+0x768>)
  78399. 801fdca: f44f 7238 mov.w r2, #736 @ 0x2e0
  78400. 801fdce: 496d ldr r1, [pc, #436] @ (801ff84 <tcp_write+0x774>)
  78401. 801fdd0: 486b ldr r0, [pc, #428] @ (801ff80 <tcp_write+0x770>)
  78402. 801fdd2: f00a f9f3 bl 802a1bc <iprintf>
  78403. (last_unsent != NULL));
  78404. pbuf_cat(last_unsent->p, concat_p);
  78405. 801fdd6: 6c3b ldr r3, [r7, #64] @ 0x40
  78406. 801fdd8: 685b ldr r3, [r3, #4]
  78407. 801fdda: 6bf9 ldr r1, [r7, #60] @ 0x3c
  78408. 801fddc: 4618 mov r0, r3
  78409. 801fdde: f7fb f843 bl 801ae68 <pbuf_cat>
  78410. last_unsent->len += concat_p->tot_len;
  78411. 801fde2: 6c3b ldr r3, [r7, #64] @ 0x40
  78412. 801fde4: 891a ldrh r2, [r3, #8]
  78413. 801fde6: 6bfb ldr r3, [r7, #60] @ 0x3c
  78414. 801fde8: 891b ldrh r3, [r3, #8]
  78415. 801fdea: 4413 add r3, r2
  78416. 801fdec: b29a uxth r2, r3
  78417. 801fdee: 6c3b ldr r3, [r7, #64] @ 0x40
  78418. 801fdf0: 811a strh r2, [r3, #8]
  78419. 801fdf2: e03c b.n 801fe6e <tcp_write+0x65e>
  78420. } else if (extendlen > 0) {
  78421. 801fdf4: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  78422. 801fdf8: 2b00 cmp r3, #0
  78423. 801fdfa: d038 beq.n 801fe6e <tcp_write+0x65e>
  78424. struct pbuf *p;
  78425. LWIP_ASSERT("tcp_write: extension of reference requires reference",
  78426. 801fdfc: 6c3b ldr r3, [r7, #64] @ 0x40
  78427. 801fdfe: 2b00 cmp r3, #0
  78428. 801fe00: d003 beq.n 801fe0a <tcp_write+0x5fa>
  78429. 801fe02: 6c3b ldr r3, [r7, #64] @ 0x40
  78430. 801fe04: 685b ldr r3, [r3, #4]
  78431. 801fe06: 2b00 cmp r3, #0
  78432. 801fe08: d106 bne.n 801fe18 <tcp_write+0x608>
  78433. 801fe0a: 4b5b ldr r3, [pc, #364] @ (801ff78 <tcp_write+0x768>)
  78434. 801fe0c: f240 22e6 movw r2, #742 @ 0x2e6
  78435. 801fe10: 495d ldr r1, [pc, #372] @ (801ff88 <tcp_write+0x778>)
  78436. 801fe12: 485b ldr r0, [pc, #364] @ (801ff80 <tcp_write+0x770>)
  78437. 801fe14: f00a f9d2 bl 802a1bc <iprintf>
  78438. last_unsent != NULL && last_unsent->p != NULL);
  78439. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  78440. 801fe18: 6c3b ldr r3, [r7, #64] @ 0x40
  78441. 801fe1a: 685b ldr r3, [r3, #4]
  78442. 801fe1c: 62fb str r3, [r7, #44] @ 0x2c
  78443. 801fe1e: e00a b.n 801fe36 <tcp_write+0x626>
  78444. p->tot_len += extendlen;
  78445. 801fe20: 6afb ldr r3, [r7, #44] @ 0x2c
  78446. 801fe22: 891a ldrh r2, [r3, #8]
  78447. 801fe24: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  78448. 801fe28: 4413 add r3, r2
  78449. 801fe2a: b29a uxth r2, r3
  78450. 801fe2c: 6afb ldr r3, [r7, #44] @ 0x2c
  78451. 801fe2e: 811a strh r2, [r3, #8]
  78452. for (p = last_unsent->p; p->next != NULL; p = p->next) {
  78453. 801fe30: 6afb ldr r3, [r7, #44] @ 0x2c
  78454. 801fe32: 681b ldr r3, [r3, #0]
  78455. 801fe34: 62fb str r3, [r7, #44] @ 0x2c
  78456. 801fe36: 6afb ldr r3, [r7, #44] @ 0x2c
  78457. 801fe38: 681b ldr r3, [r3, #0]
  78458. 801fe3a: 2b00 cmp r3, #0
  78459. 801fe3c: d1f0 bne.n 801fe20 <tcp_write+0x610>
  78460. }
  78461. p->tot_len += extendlen;
  78462. 801fe3e: 6afb ldr r3, [r7, #44] @ 0x2c
  78463. 801fe40: 891a ldrh r2, [r3, #8]
  78464. 801fe42: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  78465. 801fe46: 4413 add r3, r2
  78466. 801fe48: b29a uxth r2, r3
  78467. 801fe4a: 6afb ldr r3, [r7, #44] @ 0x2c
  78468. 801fe4c: 811a strh r2, [r3, #8]
  78469. p->len += extendlen;
  78470. 801fe4e: 6afb ldr r3, [r7, #44] @ 0x2c
  78471. 801fe50: 895a ldrh r2, [r3, #10]
  78472. 801fe52: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  78473. 801fe56: 4413 add r3, r2
  78474. 801fe58: b29a uxth r2, r3
  78475. 801fe5a: 6afb ldr r3, [r7, #44] @ 0x2c
  78476. 801fe5c: 815a strh r2, [r3, #10]
  78477. last_unsent->len += extendlen;
  78478. 801fe5e: 6c3b ldr r3, [r7, #64] @ 0x40
  78479. 801fe60: 891a ldrh r2, [r3, #8]
  78480. 801fe62: f8b7 305e ldrh.w r3, [r7, #94] @ 0x5e
  78481. 801fe66: 4413 add r3, r2
  78482. 801fe68: b29a uxth r2, r3
  78483. 801fe6a: 6c3b ldr r3, [r7, #64] @ 0x40
  78484. 801fe6c: 811a strh r2, [r3, #8]
  78485. /*
  78486. * Phase 3: Append queue to pcb->unsent. Queue may be NULL, but that
  78487. * is harmless
  78488. */
  78489. if (last_unsent == NULL) {
  78490. 801fe6e: 6c3b ldr r3, [r7, #64] @ 0x40
  78491. 801fe70: 2b00 cmp r3, #0
  78492. 801fe72: d103 bne.n 801fe7c <tcp_write+0x66c>
  78493. pcb->unsent = queue;
  78494. 801fe74: 68fb ldr r3, [r7, #12]
  78495. 801fe76: 6cfa ldr r2, [r7, #76] @ 0x4c
  78496. 801fe78: 66da str r2, [r3, #108] @ 0x6c
  78497. 801fe7a: e002 b.n 801fe82 <tcp_write+0x672>
  78498. } else {
  78499. last_unsent->next = queue;
  78500. 801fe7c: 6c3b ldr r3, [r7, #64] @ 0x40
  78501. 801fe7e: 6cfa ldr r2, [r7, #76] @ 0x4c
  78502. 801fe80: 601a str r2, [r3, #0]
  78503. }
  78504. /*
  78505. * Finally update the pcb state.
  78506. */
  78507. pcb->snd_lbb += len;
  78508. 801fe82: 68fb ldr r3, [r7, #12]
  78509. 801fe84: 6dda ldr r2, [r3, #92] @ 0x5c
  78510. 801fe86: 88fb ldrh r3, [r7, #6]
  78511. 801fe88: 441a add r2, r3
  78512. 801fe8a: 68fb ldr r3, [r7, #12]
  78513. 801fe8c: 65da str r2, [r3, #92] @ 0x5c
  78514. pcb->snd_buf -= len;
  78515. 801fe8e: 68fb ldr r3, [r7, #12]
  78516. 801fe90: f8b3 2064 ldrh.w r2, [r3, #100] @ 0x64
  78517. 801fe94: 88fb ldrh r3, [r7, #6]
  78518. 801fe96: 1ad3 subs r3, r2, r3
  78519. 801fe98: b29a uxth r2, r3
  78520. 801fe9a: 68fb ldr r3, [r7, #12]
  78521. 801fe9c: f8a3 2064 strh.w r2, [r3, #100] @ 0x64
  78522. pcb->snd_queuelen = queuelen;
  78523. 801fea0: 68fb ldr r3, [r7, #12]
  78524. 801fea2: f8b7 2048 ldrh.w r2, [r7, #72] @ 0x48
  78525. 801fea6: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  78526. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: %"S16_F" (after enqueued)\n",
  78527. pcb->snd_queuelen));
  78528. if (pcb->snd_queuelen != 0) {
  78529. 801feaa: 68fb ldr r3, [r7, #12]
  78530. 801feac: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78531. 801feb0: 2b00 cmp r3, #0
  78532. 801feb2: d00e beq.n 801fed2 <tcp_write+0x6c2>
  78533. LWIP_ASSERT("tcp_write: valid queue length",
  78534. 801feb4: 68fb ldr r3, [r7, #12]
  78535. 801feb6: 6f1b ldr r3, [r3, #112] @ 0x70
  78536. 801feb8: 2b00 cmp r3, #0
  78537. 801feba: d10a bne.n 801fed2 <tcp_write+0x6c2>
  78538. 801febc: 68fb ldr r3, [r7, #12]
  78539. 801febe: 6edb ldr r3, [r3, #108] @ 0x6c
  78540. 801fec0: 2b00 cmp r3, #0
  78541. 801fec2: d106 bne.n 801fed2 <tcp_write+0x6c2>
  78542. 801fec4: 4b2c ldr r3, [pc, #176] @ (801ff78 <tcp_write+0x768>)
  78543. 801fec6: f240 3212 movw r2, #786 @ 0x312
  78544. 801feca: 4930 ldr r1, [pc, #192] @ (801ff8c <tcp_write+0x77c>)
  78545. 801fecc: 482c ldr r0, [pc, #176] @ (801ff80 <tcp_write+0x770>)
  78546. 801fece: f00a f975 bl 802a1bc <iprintf>
  78547. pcb->unacked != NULL || pcb->unsent != NULL);
  78548. }
  78549. /* Set the PSH flag in the last segment that we enqueued. */
  78550. if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) {
  78551. 801fed2: 6d7b ldr r3, [r7, #84] @ 0x54
  78552. 801fed4: 2b00 cmp r3, #0
  78553. 801fed6: d016 beq.n 801ff06 <tcp_write+0x6f6>
  78554. 801fed8: 6d7b ldr r3, [r7, #84] @ 0x54
  78555. 801feda: 691b ldr r3, [r3, #16]
  78556. 801fedc: 2b00 cmp r3, #0
  78557. 801fede: d012 beq.n 801ff06 <tcp_write+0x6f6>
  78558. 801fee0: 797b ldrb r3, [r7, #5]
  78559. 801fee2: f003 0302 and.w r3, r3, #2
  78560. 801fee6: 2b00 cmp r3, #0
  78561. 801fee8: d10d bne.n 801ff06 <tcp_write+0x6f6>
  78562. TCPH_SET_FLAG(seg->tcphdr, TCP_PSH);
  78563. 801feea: 6d7b ldr r3, [r7, #84] @ 0x54
  78564. 801feec: 691b ldr r3, [r3, #16]
  78565. 801feee: 899b ldrh r3, [r3, #12]
  78566. 801fef0: b29c uxth r4, r3
  78567. 801fef2: 2008 movs r0, #8
  78568. 801fef4: f7f9 fa08 bl 8019308 <lwip_htons>
  78569. 801fef8: 4603 mov r3, r0
  78570. 801fefa: 461a mov r2, r3
  78571. 801fefc: 6d7b ldr r3, [r7, #84] @ 0x54
  78572. 801fefe: 691b ldr r3, [r3, #16]
  78573. 801ff00: 4322 orrs r2, r4
  78574. 801ff02: b292 uxth r2, r2
  78575. 801ff04: 819a strh r2, [r3, #12]
  78576. }
  78577. return ERR_OK;
  78578. 801ff06: 2300 movs r3, #0
  78579. 801ff08: e031 b.n 801ff6e <tcp_write+0x75e>
  78580. goto memerr;
  78581. 801ff0a: bf00 nop
  78582. 801ff0c: e006 b.n 801ff1c <tcp_write+0x70c>
  78583. goto memerr;
  78584. 801ff0e: bf00 nop
  78585. 801ff10: e004 b.n 801ff1c <tcp_write+0x70c>
  78586. goto memerr;
  78587. 801ff12: bf00 nop
  78588. 801ff14: e002 b.n 801ff1c <tcp_write+0x70c>
  78589. goto memerr;
  78590. 801ff16: bf00 nop
  78591. 801ff18: e000 b.n 801ff1c <tcp_write+0x70c>
  78592. goto memerr;
  78593. 801ff1a: bf00 nop
  78594. memerr:
  78595. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  78596. 801ff1c: 68fb ldr r3, [r7, #12]
  78597. 801ff1e: 8b5b ldrh r3, [r3, #26]
  78598. 801ff20: f043 0380 orr.w r3, r3, #128 @ 0x80
  78599. 801ff24: b29a uxth r2, r3
  78600. 801ff26: 68fb ldr r3, [r7, #12]
  78601. 801ff28: 835a strh r2, [r3, #26]
  78602. TCP_STATS_INC(tcp.memerr);
  78603. if (concat_p != NULL) {
  78604. 801ff2a: 6bfb ldr r3, [r7, #60] @ 0x3c
  78605. 801ff2c: 2b00 cmp r3, #0
  78606. 801ff2e: d002 beq.n 801ff36 <tcp_write+0x726>
  78607. pbuf_free(concat_p);
  78608. 801ff30: 6bf8 ldr r0, [r7, #60] @ 0x3c
  78609. 801ff32: f7fa fecb bl 801accc <pbuf_free>
  78610. }
  78611. if (queue != NULL) {
  78612. 801ff36: 6cfb ldr r3, [r7, #76] @ 0x4c
  78613. 801ff38: 2b00 cmp r3, #0
  78614. 801ff3a: d002 beq.n 801ff42 <tcp_write+0x732>
  78615. tcp_segs_free(queue);
  78616. 801ff3c: 6cf8 ldr r0, [r7, #76] @ 0x4c
  78617. 801ff3e: f7fc fb09 bl 801c554 <tcp_segs_free>
  78618. }
  78619. if (pcb->snd_queuelen != 0) {
  78620. 801ff42: 68fb ldr r3, [r7, #12]
  78621. 801ff44: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78622. 801ff48: 2b00 cmp r3, #0
  78623. 801ff4a: d00e beq.n 801ff6a <tcp_write+0x75a>
  78624. LWIP_ASSERT("tcp_write: valid queue length", pcb->unacked != NULL ||
  78625. 801ff4c: 68fb ldr r3, [r7, #12]
  78626. 801ff4e: 6f1b ldr r3, [r3, #112] @ 0x70
  78627. 801ff50: 2b00 cmp r3, #0
  78628. 801ff52: d10a bne.n 801ff6a <tcp_write+0x75a>
  78629. 801ff54: 68fb ldr r3, [r7, #12]
  78630. 801ff56: 6edb ldr r3, [r3, #108] @ 0x6c
  78631. 801ff58: 2b00 cmp r3, #0
  78632. 801ff5a: d106 bne.n 801ff6a <tcp_write+0x75a>
  78633. 801ff5c: 4b06 ldr r3, [pc, #24] @ (801ff78 <tcp_write+0x768>)
  78634. 801ff5e: f240 3227 movw r2, #807 @ 0x327
  78635. 801ff62: 490a ldr r1, [pc, #40] @ (801ff8c <tcp_write+0x77c>)
  78636. 801ff64: 4806 ldr r0, [pc, #24] @ (801ff80 <tcp_write+0x770>)
  78637. 801ff66: f00a f929 bl 802a1bc <iprintf>
  78638. pcb->unsent != NULL);
  78639. }
  78640. LWIP_DEBUGF(TCP_QLEN_DEBUG | LWIP_DBG_STATE, ("tcp_write: %"S16_F" (with mem err)\n", pcb->snd_queuelen));
  78641. return ERR_MEM;
  78642. 801ff6a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  78643. }
  78644. 801ff6e: 4618 mov r0, r3
  78645. 801ff70: 3764 adds r7, #100 @ 0x64
  78646. 801ff72: 46bd mov sp, r7
  78647. 801ff74: bd90 pop {r4, r7, pc}
  78648. 801ff76: bf00 nop
  78649. 801ff78: 0802fa24 .word 0x0802fa24
  78650. 801ff7c: 0802fd58 .word 0x0802fd58
  78651. 801ff80: 0802fa78 .word 0x0802fa78
  78652. 801ff84: 0802fd84 .word 0x0802fd84
  78653. 801ff88: 0802fdbc .word 0x0802fdbc
  78654. 801ff8c: 0802fdf4 .word 0x0802fdf4
  78655. 0801ff90 <tcp_split_unsent_seg>:
  78656. * @param pcb the tcp_pcb for which to split the unsent head
  78657. * @param split the amount of payload to remain in the head
  78658. */
  78659. err_t
  78660. tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split)
  78661. {
  78662. 801ff90: b590 push {r4, r7, lr}
  78663. 801ff92: b08b sub sp, #44 @ 0x2c
  78664. 801ff94: af02 add r7, sp, #8
  78665. 801ff96: 6078 str r0, [r7, #4]
  78666. 801ff98: 460b mov r3, r1
  78667. 801ff9a: 807b strh r3, [r7, #2]
  78668. struct tcp_seg *seg = NULL, *useg = NULL;
  78669. 801ff9c: 2300 movs r3, #0
  78670. 801ff9e: 61bb str r3, [r7, #24]
  78671. 801ffa0: 2300 movs r3, #0
  78672. 801ffa2: 617b str r3, [r7, #20]
  78673. struct pbuf *p = NULL;
  78674. 801ffa4: 2300 movs r3, #0
  78675. 801ffa6: 613b str r3, [r7, #16]
  78676. u16_t chksum = 0;
  78677. u8_t chksum_swapped = 0;
  78678. struct pbuf *q;
  78679. #endif /* TCP_CHECKSUM_ON_COPY */
  78680. LWIP_ASSERT("tcp_split_unsent_seg: invalid pcb", pcb != NULL);
  78681. 801ffa8: 687b ldr r3, [r7, #4]
  78682. 801ffaa: 2b00 cmp r3, #0
  78683. 801ffac: d106 bne.n 801ffbc <tcp_split_unsent_seg+0x2c>
  78684. 801ffae: 4b97 ldr r3, [pc, #604] @ (802020c <tcp_split_unsent_seg+0x27c>)
  78685. 801ffb0: f240 324b movw r2, #843 @ 0x34b
  78686. 801ffb4: 4996 ldr r1, [pc, #600] @ (8020210 <tcp_split_unsent_seg+0x280>)
  78687. 801ffb6: 4897 ldr r0, [pc, #604] @ (8020214 <tcp_split_unsent_seg+0x284>)
  78688. 801ffb8: f00a f900 bl 802a1bc <iprintf>
  78689. useg = pcb->unsent;
  78690. 801ffbc: 687b ldr r3, [r7, #4]
  78691. 801ffbe: 6edb ldr r3, [r3, #108] @ 0x6c
  78692. 801ffc0: 617b str r3, [r7, #20]
  78693. if (useg == NULL) {
  78694. 801ffc2: 697b ldr r3, [r7, #20]
  78695. 801ffc4: 2b00 cmp r3, #0
  78696. 801ffc6: d102 bne.n 801ffce <tcp_split_unsent_seg+0x3e>
  78697. return ERR_MEM;
  78698. 801ffc8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  78699. 801ffcc: e119 b.n 8020202 <tcp_split_unsent_seg+0x272>
  78700. }
  78701. if (split == 0) {
  78702. 801ffce: 887b ldrh r3, [r7, #2]
  78703. 801ffd0: 2b00 cmp r3, #0
  78704. 801ffd2: d109 bne.n 801ffe8 <tcp_split_unsent_seg+0x58>
  78705. LWIP_ASSERT("Can't split segment into length 0", 0);
  78706. 801ffd4: 4b8d ldr r3, [pc, #564] @ (802020c <tcp_split_unsent_seg+0x27c>)
  78707. 801ffd6: f240 3253 movw r2, #851 @ 0x353
  78708. 801ffda: 498f ldr r1, [pc, #572] @ (8020218 <tcp_split_unsent_seg+0x288>)
  78709. 801ffdc: 488d ldr r0, [pc, #564] @ (8020214 <tcp_split_unsent_seg+0x284>)
  78710. 801ffde: f00a f8ed bl 802a1bc <iprintf>
  78711. return ERR_VAL;
  78712. 801ffe2: f06f 0305 mvn.w r3, #5
  78713. 801ffe6: e10c b.n 8020202 <tcp_split_unsent_seg+0x272>
  78714. }
  78715. if (useg->len <= split) {
  78716. 801ffe8: 697b ldr r3, [r7, #20]
  78717. 801ffea: 891b ldrh r3, [r3, #8]
  78718. 801ffec: 887a ldrh r2, [r7, #2]
  78719. 801ffee: 429a cmp r2, r3
  78720. 801fff0: d301 bcc.n 801fff6 <tcp_split_unsent_seg+0x66>
  78721. return ERR_OK;
  78722. 801fff2: 2300 movs r3, #0
  78723. 801fff4: e105 b.n 8020202 <tcp_split_unsent_seg+0x272>
  78724. }
  78725. LWIP_ASSERT("split <= mss", split <= pcb->mss);
  78726. 801fff6: 687b ldr r3, [r7, #4]
  78727. 801fff8: 8e5b ldrh r3, [r3, #50] @ 0x32
  78728. 801fffa: 887a ldrh r2, [r7, #2]
  78729. 801fffc: 429a cmp r2, r3
  78730. 801fffe: d906 bls.n 802000e <tcp_split_unsent_seg+0x7e>
  78731. 8020000: 4b82 ldr r3, [pc, #520] @ (802020c <tcp_split_unsent_seg+0x27c>)
  78732. 8020002: f240 325b movw r2, #859 @ 0x35b
  78733. 8020006: 4985 ldr r1, [pc, #532] @ (802021c <tcp_split_unsent_seg+0x28c>)
  78734. 8020008: 4882 ldr r0, [pc, #520] @ (8020214 <tcp_split_unsent_seg+0x284>)
  78735. 802000a: f00a f8d7 bl 802a1bc <iprintf>
  78736. LWIP_ASSERT("useg->len > 0", useg->len > 0);
  78737. 802000e: 697b ldr r3, [r7, #20]
  78738. 8020010: 891b ldrh r3, [r3, #8]
  78739. 8020012: 2b00 cmp r3, #0
  78740. 8020014: d106 bne.n 8020024 <tcp_split_unsent_seg+0x94>
  78741. 8020016: 4b7d ldr r3, [pc, #500] @ (802020c <tcp_split_unsent_seg+0x27c>)
  78742. 8020018: f44f 7257 mov.w r2, #860 @ 0x35c
  78743. 802001c: 4980 ldr r1, [pc, #512] @ (8020220 <tcp_split_unsent_seg+0x290>)
  78744. 802001e: 487d ldr r0, [pc, #500] @ (8020214 <tcp_split_unsent_seg+0x284>)
  78745. 8020020: f00a f8cc bl 802a1bc <iprintf>
  78746. * to split this packet so we may actually exceed the max value by
  78747. * one!
  78748. */
  78749. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue: split_unsent_seg: %u\n", (unsigned int)pcb->snd_queuelen));
  78750. optflags = useg->flags;
  78751. 8020024: 697b ldr r3, [r7, #20]
  78752. 8020026: 7b1b ldrb r3, [r3, #12]
  78753. 8020028: 73fb strb r3, [r7, #15]
  78754. #if TCP_CHECKSUM_ON_COPY
  78755. /* Remove since checksum is not stored until after tcp_create_segment() */
  78756. optflags &= ~TF_SEG_DATA_CHECKSUMMED;
  78757. #endif /* TCP_CHECKSUM_ON_COPY */
  78758. optlen = LWIP_TCP_OPT_LENGTH(optflags);
  78759. 802002a: 7bfb ldrb r3, [r7, #15]
  78760. 802002c: 009b lsls r3, r3, #2
  78761. 802002e: b2db uxtb r3, r3
  78762. 8020030: f003 0304 and.w r3, r3, #4
  78763. 8020034: 73bb strb r3, [r7, #14]
  78764. remainder = useg->len - split;
  78765. 8020036: 697b ldr r3, [r7, #20]
  78766. 8020038: 891a ldrh r2, [r3, #8]
  78767. 802003a: 887b ldrh r3, [r7, #2]
  78768. 802003c: 1ad3 subs r3, r2, r3
  78769. 802003e: 81bb strh r3, [r7, #12]
  78770. /* Create new pbuf for the remainder of the split */
  78771. p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM);
  78772. 8020040: 7bbb ldrb r3, [r7, #14]
  78773. 8020042: b29a uxth r2, r3
  78774. 8020044: 89bb ldrh r3, [r7, #12]
  78775. 8020046: 4413 add r3, r2
  78776. 8020048: b29b uxth r3, r3
  78777. 802004a: f44f 7220 mov.w r2, #640 @ 0x280
  78778. 802004e: 4619 mov r1, r3
  78779. 8020050: 2036 movs r0, #54 @ 0x36
  78780. 8020052: f7fa fb25 bl 801a6a0 <pbuf_alloc>
  78781. 8020056: 6138 str r0, [r7, #16]
  78782. if (p == NULL) {
  78783. 8020058: 693b ldr r3, [r7, #16]
  78784. 802005a: 2b00 cmp r3, #0
  78785. 802005c: f000 80ba beq.w 80201d4 <tcp_split_unsent_seg+0x244>
  78786. ("tcp_split_unsent_seg: could not allocate memory for pbuf remainder %u\n", remainder));
  78787. goto memerr;
  78788. }
  78789. /* Offset into the original pbuf is past TCP/IP headers, options, and split amount */
  78790. offset = useg->p->tot_len - useg->len + split;
  78791. 8020060: 697b ldr r3, [r7, #20]
  78792. 8020062: 685b ldr r3, [r3, #4]
  78793. 8020064: 891a ldrh r2, [r3, #8]
  78794. 8020066: 697b ldr r3, [r7, #20]
  78795. 8020068: 891b ldrh r3, [r3, #8]
  78796. 802006a: 1ad3 subs r3, r2, r3
  78797. 802006c: b29a uxth r2, r3
  78798. 802006e: 887b ldrh r3, [r7, #2]
  78799. 8020070: 4413 add r3, r2
  78800. 8020072: 817b strh r3, [r7, #10]
  78801. /* Copy remainder into new pbuf, headers and options will not be filled out */
  78802. if (pbuf_copy_partial(useg->p, (u8_t *)p->payload + optlen, remainder, offset ) != remainder) {
  78803. 8020074: 697b ldr r3, [r7, #20]
  78804. 8020076: 6858 ldr r0, [r3, #4]
  78805. 8020078: 693b ldr r3, [r7, #16]
  78806. 802007a: 685a ldr r2, [r3, #4]
  78807. 802007c: 7bbb ldrb r3, [r7, #14]
  78808. 802007e: 18d1 adds r1, r2, r3
  78809. 8020080: 897b ldrh r3, [r7, #10]
  78810. 8020082: 89ba ldrh r2, [r7, #12]
  78811. 8020084: f7fb f828 bl 801b0d8 <pbuf_copy_partial>
  78812. 8020088: 4603 mov r3, r0
  78813. 802008a: 461a mov r2, r3
  78814. 802008c: 89bb ldrh r3, [r7, #12]
  78815. 802008e: 4293 cmp r3, r2
  78816. 8020090: f040 80a2 bne.w 80201d8 <tcp_split_unsent_seg+0x248>
  78817. #endif /* TCP_CHECKSUM_ON_COPY */
  78818. /* Options are created when calling tcp_output() */
  78819. /* Migrate flags from original segment */
  78820. split_flags = TCPH_FLAGS(useg->tcphdr);
  78821. 8020094: 697b ldr r3, [r7, #20]
  78822. 8020096: 691b ldr r3, [r3, #16]
  78823. 8020098: 899b ldrh r3, [r3, #12]
  78824. 802009a: b29b uxth r3, r3
  78825. 802009c: 4618 mov r0, r3
  78826. 802009e: f7f9 f933 bl 8019308 <lwip_htons>
  78827. 80200a2: 4603 mov r3, r0
  78828. 80200a4: b2db uxtb r3, r3
  78829. 80200a6: f003 033f and.w r3, r3, #63 @ 0x3f
  78830. 80200aa: 77fb strb r3, [r7, #31]
  78831. remainder_flags = 0; /* ACK added in tcp_output() */
  78832. 80200ac: 2300 movs r3, #0
  78833. 80200ae: 77bb strb r3, [r7, #30]
  78834. if (split_flags & TCP_PSH) {
  78835. 80200b0: 7ffb ldrb r3, [r7, #31]
  78836. 80200b2: f003 0308 and.w r3, r3, #8
  78837. 80200b6: 2b00 cmp r3, #0
  78838. 80200b8: d007 beq.n 80200ca <tcp_split_unsent_seg+0x13a>
  78839. split_flags &= ~TCP_PSH;
  78840. 80200ba: 7ffb ldrb r3, [r7, #31]
  78841. 80200bc: f023 0308 bic.w r3, r3, #8
  78842. 80200c0: 77fb strb r3, [r7, #31]
  78843. remainder_flags |= TCP_PSH;
  78844. 80200c2: 7fbb ldrb r3, [r7, #30]
  78845. 80200c4: f043 0308 orr.w r3, r3, #8
  78846. 80200c8: 77bb strb r3, [r7, #30]
  78847. }
  78848. if (split_flags & TCP_FIN) {
  78849. 80200ca: 7ffb ldrb r3, [r7, #31]
  78850. 80200cc: f003 0301 and.w r3, r3, #1
  78851. 80200d0: 2b00 cmp r3, #0
  78852. 80200d2: d007 beq.n 80200e4 <tcp_split_unsent_seg+0x154>
  78853. split_flags &= ~TCP_FIN;
  78854. 80200d4: 7ffb ldrb r3, [r7, #31]
  78855. 80200d6: f023 0301 bic.w r3, r3, #1
  78856. 80200da: 77fb strb r3, [r7, #31]
  78857. remainder_flags |= TCP_FIN;
  78858. 80200dc: 7fbb ldrb r3, [r7, #30]
  78859. 80200de: f043 0301 orr.w r3, r3, #1
  78860. 80200e2: 77bb strb r3, [r7, #30]
  78861. }
  78862. /* SYN should be left on split, RST should not be present with data */
  78863. seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags);
  78864. 80200e4: 697b ldr r3, [r7, #20]
  78865. 80200e6: 691b ldr r3, [r3, #16]
  78866. 80200e8: 685b ldr r3, [r3, #4]
  78867. 80200ea: 4618 mov r0, r3
  78868. 80200ec: f7f9 f921 bl 8019332 <lwip_htonl>
  78869. 80200f0: 4602 mov r2, r0
  78870. 80200f2: 887b ldrh r3, [r7, #2]
  78871. 80200f4: 18d1 adds r1, r2, r3
  78872. 80200f6: 7fba ldrb r2, [r7, #30]
  78873. 80200f8: 7bfb ldrb r3, [r7, #15]
  78874. 80200fa: 9300 str r3, [sp, #0]
  78875. 80200fc: 460b mov r3, r1
  78876. 80200fe: 6939 ldr r1, [r7, #16]
  78877. 8020100: 6878 ldr r0, [r7, #4]
  78878. 8020102: f7ff f9f1 bl 801f4e8 <tcp_create_segment>
  78879. 8020106: 61b8 str r0, [r7, #24]
  78880. if (seg == NULL) {
  78881. 8020108: 69bb ldr r3, [r7, #24]
  78882. 802010a: 2b00 cmp r3, #0
  78883. 802010c: d066 beq.n 80201dc <tcp_split_unsent_seg+0x24c>
  78884. seg->chksum_swapped = chksum_swapped;
  78885. seg->flags |= TF_SEG_DATA_CHECKSUMMED;
  78886. #endif /* TCP_CHECKSUM_ON_COPY */
  78887. /* Remove this segment from the queue since trimming it may free pbufs */
  78888. pcb->snd_queuelen -= pbuf_clen(useg->p);
  78889. 802010e: 697b ldr r3, [r7, #20]
  78890. 8020110: 685b ldr r3, [r3, #4]
  78891. 8020112: 4618 mov r0, r3
  78892. 8020114: f7fa fe68 bl 801ade8 <pbuf_clen>
  78893. 8020118: 4603 mov r3, r0
  78894. 802011a: 461a mov r2, r3
  78895. 802011c: 687b ldr r3, [r7, #4]
  78896. 802011e: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78897. 8020122: 1a9b subs r3, r3, r2
  78898. 8020124: b29a uxth r2, r3
  78899. 8020126: 687b ldr r3, [r7, #4]
  78900. 8020128: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  78901. /* Trim the original pbuf into our split size. At this point our remainder segment must be setup
  78902. successfully because we are modifying the original segment */
  78903. pbuf_realloc(useg->p, useg->p->tot_len - remainder);
  78904. 802012c: 697b ldr r3, [r7, #20]
  78905. 802012e: 6858 ldr r0, [r3, #4]
  78906. 8020130: 697b ldr r3, [r7, #20]
  78907. 8020132: 685b ldr r3, [r3, #4]
  78908. 8020134: 891a ldrh r2, [r3, #8]
  78909. 8020136: 89bb ldrh r3, [r7, #12]
  78910. 8020138: 1ad3 subs r3, r2, r3
  78911. 802013a: b29b uxth r3, r3
  78912. 802013c: 4619 mov r1, r3
  78913. 802013e: f7fa fc0f bl 801a960 <pbuf_realloc>
  78914. useg->len -= remainder;
  78915. 8020142: 697b ldr r3, [r7, #20]
  78916. 8020144: 891a ldrh r2, [r3, #8]
  78917. 8020146: 89bb ldrh r3, [r7, #12]
  78918. 8020148: 1ad3 subs r3, r2, r3
  78919. 802014a: b29a uxth r2, r3
  78920. 802014c: 697b ldr r3, [r7, #20]
  78921. 802014e: 811a strh r2, [r3, #8]
  78922. TCPH_SET_FLAG(useg->tcphdr, split_flags);
  78923. 8020150: 697b ldr r3, [r7, #20]
  78924. 8020152: 691b ldr r3, [r3, #16]
  78925. 8020154: 899b ldrh r3, [r3, #12]
  78926. 8020156: b29c uxth r4, r3
  78927. 8020158: 7ffb ldrb r3, [r7, #31]
  78928. 802015a: b29b uxth r3, r3
  78929. 802015c: 4618 mov r0, r3
  78930. 802015e: f7f9 f8d3 bl 8019308 <lwip_htons>
  78931. 8020162: 4603 mov r3, r0
  78932. 8020164: 461a mov r2, r3
  78933. 8020166: 697b ldr r3, [r7, #20]
  78934. 8020168: 691b ldr r3, [r3, #16]
  78935. 802016a: 4322 orrs r2, r4
  78936. 802016c: b292 uxth r2, r2
  78937. 802016e: 819a strh r2, [r3, #12]
  78938. #if TCP_OVERSIZE_DBGCHECK
  78939. /* By trimming, realloc may have actually shrunk the pbuf, so clear oversize_left */
  78940. useg->oversize_left = 0;
  78941. 8020170: 697b ldr r3, [r7, #20]
  78942. 8020172: 2200 movs r2, #0
  78943. 8020174: 815a strh r2, [r3, #10]
  78944. #endif /* TCP_OVERSIZE_DBGCHECK */
  78945. /* Add back to the queue with new trimmed pbuf */
  78946. pcb->snd_queuelen += pbuf_clen(useg->p);
  78947. 8020176: 697b ldr r3, [r7, #20]
  78948. 8020178: 685b ldr r3, [r3, #4]
  78949. 802017a: 4618 mov r0, r3
  78950. 802017c: f7fa fe34 bl 801ade8 <pbuf_clen>
  78951. 8020180: 4603 mov r3, r0
  78952. 8020182: 461a mov r2, r3
  78953. 8020184: 687b ldr r3, [r7, #4]
  78954. 8020186: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78955. 802018a: 4413 add r3, r2
  78956. 802018c: b29a uxth r2, r3
  78957. 802018e: 687b ldr r3, [r7, #4]
  78958. 8020190: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  78959. #endif /* TCP_CHECKSUM_ON_COPY */
  78960. /* Update number of segments on the queues. Note that length now may
  78961. * exceed TCP_SND_QUEUELEN! We don't have to touch pcb->snd_buf
  78962. * because the total amount of data is constant when packet is split */
  78963. pcb->snd_queuelen += pbuf_clen(seg->p);
  78964. 8020194: 69bb ldr r3, [r7, #24]
  78965. 8020196: 685b ldr r3, [r3, #4]
  78966. 8020198: 4618 mov r0, r3
  78967. 802019a: f7fa fe25 bl 801ade8 <pbuf_clen>
  78968. 802019e: 4603 mov r3, r0
  78969. 80201a0: 461a mov r2, r3
  78970. 80201a2: 687b ldr r3, [r7, #4]
  78971. 80201a4: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  78972. 80201a8: 4413 add r3, r2
  78973. 80201aa: b29a uxth r2, r3
  78974. 80201ac: 687b ldr r3, [r7, #4]
  78975. 80201ae: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  78976. /* Finally insert remainder into queue after split (which stays head) */
  78977. seg->next = useg->next;
  78978. 80201b2: 697b ldr r3, [r7, #20]
  78979. 80201b4: 681a ldr r2, [r3, #0]
  78980. 80201b6: 69bb ldr r3, [r7, #24]
  78981. 80201b8: 601a str r2, [r3, #0]
  78982. useg->next = seg;
  78983. 80201ba: 697b ldr r3, [r7, #20]
  78984. 80201bc: 69ba ldr r2, [r7, #24]
  78985. 80201be: 601a str r2, [r3, #0]
  78986. #if TCP_OVERSIZE
  78987. /* If remainder is last segment on the unsent, ensure we clear the oversize amount
  78988. * because the remainder is always sized to the exact remaining amount */
  78989. if (seg->next == NULL) {
  78990. 80201c0: 69bb ldr r3, [r7, #24]
  78991. 80201c2: 681b ldr r3, [r3, #0]
  78992. 80201c4: 2b00 cmp r3, #0
  78993. 80201c6: d103 bne.n 80201d0 <tcp_split_unsent_seg+0x240>
  78994. pcb->unsent_oversize = 0;
  78995. 80201c8: 687b ldr r3, [r7, #4]
  78996. 80201ca: 2200 movs r2, #0
  78997. 80201cc: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  78998. }
  78999. #endif /* TCP_OVERSIZE */
  79000. return ERR_OK;
  79001. 80201d0: 2300 movs r3, #0
  79002. 80201d2: e016 b.n 8020202 <tcp_split_unsent_seg+0x272>
  79003. goto memerr;
  79004. 80201d4: bf00 nop
  79005. 80201d6: e002 b.n 80201de <tcp_split_unsent_seg+0x24e>
  79006. goto memerr;
  79007. 80201d8: bf00 nop
  79008. 80201da: e000 b.n 80201de <tcp_split_unsent_seg+0x24e>
  79009. goto memerr;
  79010. 80201dc: bf00 nop
  79011. memerr:
  79012. TCP_STATS_INC(tcp.memerr);
  79013. LWIP_ASSERT("seg == NULL", seg == NULL);
  79014. 80201de: 69bb ldr r3, [r7, #24]
  79015. 80201e0: 2b00 cmp r3, #0
  79016. 80201e2: d006 beq.n 80201f2 <tcp_split_unsent_seg+0x262>
  79017. 80201e4: 4b09 ldr r3, [pc, #36] @ (802020c <tcp_split_unsent_seg+0x27c>)
  79018. 80201e6: f44f 7276 mov.w r2, #984 @ 0x3d8
  79019. 80201ea: 490e ldr r1, [pc, #56] @ (8020224 <tcp_split_unsent_seg+0x294>)
  79020. 80201ec: 4809 ldr r0, [pc, #36] @ (8020214 <tcp_split_unsent_seg+0x284>)
  79021. 80201ee: f009 ffe5 bl 802a1bc <iprintf>
  79022. if (p != NULL) {
  79023. 80201f2: 693b ldr r3, [r7, #16]
  79024. 80201f4: 2b00 cmp r3, #0
  79025. 80201f6: d002 beq.n 80201fe <tcp_split_unsent_seg+0x26e>
  79026. pbuf_free(p);
  79027. 80201f8: 6938 ldr r0, [r7, #16]
  79028. 80201fa: f7fa fd67 bl 801accc <pbuf_free>
  79029. }
  79030. return ERR_MEM;
  79031. 80201fe: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79032. }
  79033. 8020202: 4618 mov r0, r3
  79034. 8020204: 3724 adds r7, #36 @ 0x24
  79035. 8020206: 46bd mov sp, r7
  79036. 8020208: bd90 pop {r4, r7, pc}
  79037. 802020a: bf00 nop
  79038. 802020c: 0802fa24 .word 0x0802fa24
  79039. 8020210: 0802fe14 .word 0x0802fe14
  79040. 8020214: 0802fa78 .word 0x0802fa78
  79041. 8020218: 0802fe38 .word 0x0802fe38
  79042. 802021c: 0802fe5c .word 0x0802fe5c
  79043. 8020220: 0802fe6c .word 0x0802fe6c
  79044. 8020224: 0802fe7c .word 0x0802fe7c
  79045. 08020228 <tcp_send_fin>:
  79046. * @param pcb the tcp_pcb over which to send a segment
  79047. * @return ERR_OK if sent, another err_t otherwise
  79048. */
  79049. err_t
  79050. tcp_send_fin(struct tcp_pcb *pcb)
  79051. {
  79052. 8020228: b590 push {r4, r7, lr}
  79053. 802022a: b085 sub sp, #20
  79054. 802022c: af00 add r7, sp, #0
  79055. 802022e: 6078 str r0, [r7, #4]
  79056. LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL);
  79057. 8020230: 687b ldr r3, [r7, #4]
  79058. 8020232: 2b00 cmp r3, #0
  79059. 8020234: d106 bne.n 8020244 <tcp_send_fin+0x1c>
  79060. 8020236: 4b21 ldr r3, [pc, #132] @ (80202bc <tcp_send_fin+0x94>)
  79061. 8020238: f240 32eb movw r2, #1003 @ 0x3eb
  79062. 802023c: 4920 ldr r1, [pc, #128] @ (80202c0 <tcp_send_fin+0x98>)
  79063. 802023e: 4821 ldr r0, [pc, #132] @ (80202c4 <tcp_send_fin+0x9c>)
  79064. 8020240: f009 ffbc bl 802a1bc <iprintf>
  79065. /* first, try to add the fin to the last unsent segment */
  79066. if (pcb->unsent != NULL) {
  79067. 8020244: 687b ldr r3, [r7, #4]
  79068. 8020246: 6edb ldr r3, [r3, #108] @ 0x6c
  79069. 8020248: 2b00 cmp r3, #0
  79070. 802024a: d02e beq.n 80202aa <tcp_send_fin+0x82>
  79071. struct tcp_seg *last_unsent;
  79072. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  79073. 802024c: 687b ldr r3, [r7, #4]
  79074. 802024e: 6edb ldr r3, [r3, #108] @ 0x6c
  79075. 8020250: 60fb str r3, [r7, #12]
  79076. 8020252: e002 b.n 802025a <tcp_send_fin+0x32>
  79077. last_unsent = last_unsent->next);
  79078. 8020254: 68fb ldr r3, [r7, #12]
  79079. 8020256: 681b ldr r3, [r3, #0]
  79080. 8020258: 60fb str r3, [r7, #12]
  79081. for (last_unsent = pcb->unsent; last_unsent->next != NULL;
  79082. 802025a: 68fb ldr r3, [r7, #12]
  79083. 802025c: 681b ldr r3, [r3, #0]
  79084. 802025e: 2b00 cmp r3, #0
  79085. 8020260: d1f8 bne.n 8020254 <tcp_send_fin+0x2c>
  79086. if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
  79087. 8020262: 68fb ldr r3, [r7, #12]
  79088. 8020264: 691b ldr r3, [r3, #16]
  79089. 8020266: 899b ldrh r3, [r3, #12]
  79090. 8020268: b29b uxth r3, r3
  79091. 802026a: 4618 mov r0, r3
  79092. 802026c: f7f9 f84c bl 8019308 <lwip_htons>
  79093. 8020270: 4603 mov r3, r0
  79094. 8020272: b2db uxtb r3, r3
  79095. 8020274: f003 0307 and.w r3, r3, #7
  79096. 8020278: 2b00 cmp r3, #0
  79097. 802027a: d116 bne.n 80202aa <tcp_send_fin+0x82>
  79098. /* no SYN/FIN/RST flag in the header, we can add the FIN flag */
  79099. TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
  79100. 802027c: 68fb ldr r3, [r7, #12]
  79101. 802027e: 691b ldr r3, [r3, #16]
  79102. 8020280: 899b ldrh r3, [r3, #12]
  79103. 8020282: b29c uxth r4, r3
  79104. 8020284: 2001 movs r0, #1
  79105. 8020286: f7f9 f83f bl 8019308 <lwip_htons>
  79106. 802028a: 4603 mov r3, r0
  79107. 802028c: 461a mov r2, r3
  79108. 802028e: 68fb ldr r3, [r7, #12]
  79109. 8020290: 691b ldr r3, [r3, #16]
  79110. 8020292: 4322 orrs r2, r4
  79111. 8020294: b292 uxth r2, r2
  79112. 8020296: 819a strh r2, [r3, #12]
  79113. tcp_set_flags(pcb, TF_FIN);
  79114. 8020298: 687b ldr r3, [r7, #4]
  79115. 802029a: 8b5b ldrh r3, [r3, #26]
  79116. 802029c: f043 0320 orr.w r3, r3, #32
  79117. 80202a0: b29a uxth r2, r3
  79118. 80202a2: 687b ldr r3, [r7, #4]
  79119. 80202a4: 835a strh r2, [r3, #26]
  79120. return ERR_OK;
  79121. 80202a6: 2300 movs r3, #0
  79122. 80202a8: e004 b.n 80202b4 <tcp_send_fin+0x8c>
  79123. }
  79124. }
  79125. /* no data, no length, flags, copy=1, no optdata */
  79126. return tcp_enqueue_flags(pcb, TCP_FIN);
  79127. 80202aa: 2101 movs r1, #1
  79128. 80202ac: 6878 ldr r0, [r7, #4]
  79129. 80202ae: f000 f80b bl 80202c8 <tcp_enqueue_flags>
  79130. 80202b2: 4603 mov r3, r0
  79131. }
  79132. 80202b4: 4618 mov r0, r3
  79133. 80202b6: 3714 adds r7, #20
  79134. 80202b8: 46bd mov sp, r7
  79135. 80202ba: bd90 pop {r4, r7, pc}
  79136. 80202bc: 0802fa24 .word 0x0802fa24
  79137. 80202c0: 0802fe88 .word 0x0802fe88
  79138. 80202c4: 0802fa78 .word 0x0802fa78
  79139. 080202c8 <tcp_enqueue_flags>:
  79140. * @param pcb Protocol control block for the TCP connection.
  79141. * @param flags TCP header flags to set in the outgoing segment.
  79142. */
  79143. err_t
  79144. tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags)
  79145. {
  79146. 80202c8: b580 push {r7, lr}
  79147. 80202ca: b088 sub sp, #32
  79148. 80202cc: af02 add r7, sp, #8
  79149. 80202ce: 6078 str r0, [r7, #4]
  79150. 80202d0: 460b mov r3, r1
  79151. 80202d2: 70fb strb r3, [r7, #3]
  79152. struct pbuf *p;
  79153. struct tcp_seg *seg;
  79154. u8_t optflags = 0;
  79155. 80202d4: 2300 movs r3, #0
  79156. 80202d6: 75fb strb r3, [r7, #23]
  79157. u8_t optlen = 0;
  79158. 80202d8: 2300 movs r3, #0
  79159. 80202da: 75bb strb r3, [r7, #22]
  79160. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen));
  79161. LWIP_ASSERT("tcp_enqueue_flags: need either TCP_SYN or TCP_FIN in flags (programmer violates API)",
  79162. 80202dc: 78fb ldrb r3, [r7, #3]
  79163. 80202de: f003 0303 and.w r3, r3, #3
  79164. 80202e2: 2b00 cmp r3, #0
  79165. 80202e4: d106 bne.n 80202f4 <tcp_enqueue_flags+0x2c>
  79166. 80202e6: 4b67 ldr r3, [pc, #412] @ (8020484 <tcp_enqueue_flags+0x1bc>)
  79167. 80202e8: f240 4211 movw r2, #1041 @ 0x411
  79168. 80202ec: 4966 ldr r1, [pc, #408] @ (8020488 <tcp_enqueue_flags+0x1c0>)
  79169. 80202ee: 4867 ldr r0, [pc, #412] @ (802048c <tcp_enqueue_flags+0x1c4>)
  79170. 80202f0: f009 ff64 bl 802a1bc <iprintf>
  79171. (flags & (TCP_SYN | TCP_FIN)) != 0);
  79172. LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL);
  79173. 80202f4: 687b ldr r3, [r7, #4]
  79174. 80202f6: 2b00 cmp r3, #0
  79175. 80202f8: d106 bne.n 8020308 <tcp_enqueue_flags+0x40>
  79176. 80202fa: 4b62 ldr r3, [pc, #392] @ (8020484 <tcp_enqueue_flags+0x1bc>)
  79177. 80202fc: f240 4213 movw r2, #1043 @ 0x413
  79178. 8020300: 4963 ldr r1, [pc, #396] @ (8020490 <tcp_enqueue_flags+0x1c8>)
  79179. 8020302: 4862 ldr r0, [pc, #392] @ (802048c <tcp_enqueue_flags+0x1c4>)
  79180. 8020304: f009 ff5a bl 802a1bc <iprintf>
  79181. /* No need to check pcb->snd_queuelen if only SYN or FIN are allowed! */
  79182. /* Get options for this segment. This is a special case since this is the
  79183. only place where a SYN can be sent. */
  79184. if (flags & TCP_SYN) {
  79185. 8020308: 78fb ldrb r3, [r7, #3]
  79186. 802030a: f003 0302 and.w r3, r3, #2
  79187. 802030e: 2b00 cmp r3, #0
  79188. 8020310: d001 beq.n 8020316 <tcp_enqueue_flags+0x4e>
  79189. optflags = TF_SEG_OPTS_MSS;
  79190. 8020312: 2301 movs r3, #1
  79191. 8020314: 75fb strb r3, [r7, #23]
  79192. /* Make sure the timestamp option is only included in data segments if we
  79193. agreed about it with the remote host (and in active open SYN segments). */
  79194. optflags |= TF_SEG_OPTS_TS;
  79195. }
  79196. #endif /* LWIP_TCP_TIMESTAMPS */
  79197. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  79198. 8020316: 7dfb ldrb r3, [r7, #23]
  79199. 8020318: 009b lsls r3, r3, #2
  79200. 802031a: b2db uxtb r3, r3
  79201. 802031c: f003 0304 and.w r3, r3, #4
  79202. 8020320: 75bb strb r3, [r7, #22]
  79203. /* Allocate pbuf with room for TCP header + options */
  79204. if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) {
  79205. 8020322: 7dbb ldrb r3, [r7, #22]
  79206. 8020324: b29b uxth r3, r3
  79207. 8020326: f44f 7220 mov.w r2, #640 @ 0x280
  79208. 802032a: 4619 mov r1, r3
  79209. 802032c: 2036 movs r0, #54 @ 0x36
  79210. 802032e: f7fa f9b7 bl 801a6a0 <pbuf_alloc>
  79211. 8020332: 60f8 str r0, [r7, #12]
  79212. 8020334: 68fb ldr r3, [r7, #12]
  79213. 8020336: 2b00 cmp r3, #0
  79214. 8020338: d109 bne.n 802034e <tcp_enqueue_flags+0x86>
  79215. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  79216. 802033a: 687b ldr r3, [r7, #4]
  79217. 802033c: 8b5b ldrh r3, [r3, #26]
  79218. 802033e: f043 0380 orr.w r3, r3, #128 @ 0x80
  79219. 8020342: b29a uxth r2, r3
  79220. 8020344: 687b ldr r3, [r7, #4]
  79221. 8020346: 835a strh r2, [r3, #26]
  79222. TCP_STATS_INC(tcp.memerr);
  79223. return ERR_MEM;
  79224. 8020348: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79225. 802034c: e095 b.n 802047a <tcp_enqueue_flags+0x1b2>
  79226. }
  79227. LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen",
  79228. 802034e: 68fb ldr r3, [r7, #12]
  79229. 8020350: 895a ldrh r2, [r3, #10]
  79230. 8020352: 7dbb ldrb r3, [r7, #22]
  79231. 8020354: b29b uxth r3, r3
  79232. 8020356: 429a cmp r2, r3
  79233. 8020358: d206 bcs.n 8020368 <tcp_enqueue_flags+0xa0>
  79234. 802035a: 4b4a ldr r3, [pc, #296] @ (8020484 <tcp_enqueue_flags+0x1bc>)
  79235. 802035c: f240 4239 movw r2, #1081 @ 0x439
  79236. 8020360: 494c ldr r1, [pc, #304] @ (8020494 <tcp_enqueue_flags+0x1cc>)
  79237. 8020362: 484a ldr r0, [pc, #296] @ (802048c <tcp_enqueue_flags+0x1c4>)
  79238. 8020364: f009 ff2a bl 802a1bc <iprintf>
  79239. (p->len >= optlen));
  79240. /* Allocate memory for tcp_seg, and fill in fields. */
  79241. if ((seg = tcp_create_segment(pcb, p, flags, pcb->snd_lbb, optflags)) == NULL) {
  79242. 8020368: 687b ldr r3, [r7, #4]
  79243. 802036a: 6dd9 ldr r1, [r3, #92] @ 0x5c
  79244. 802036c: 78fa ldrb r2, [r7, #3]
  79245. 802036e: 7dfb ldrb r3, [r7, #23]
  79246. 8020370: 9300 str r3, [sp, #0]
  79247. 8020372: 460b mov r3, r1
  79248. 8020374: 68f9 ldr r1, [r7, #12]
  79249. 8020376: 6878 ldr r0, [r7, #4]
  79250. 8020378: f7ff f8b6 bl 801f4e8 <tcp_create_segment>
  79251. 802037c: 60b8 str r0, [r7, #8]
  79252. 802037e: 68bb ldr r3, [r7, #8]
  79253. 8020380: 2b00 cmp r3, #0
  79254. 8020382: d109 bne.n 8020398 <tcp_enqueue_flags+0xd0>
  79255. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  79256. 8020384: 687b ldr r3, [r7, #4]
  79257. 8020386: 8b5b ldrh r3, [r3, #26]
  79258. 8020388: f043 0380 orr.w r3, r3, #128 @ 0x80
  79259. 802038c: b29a uxth r2, r3
  79260. 802038e: 687b ldr r3, [r7, #4]
  79261. 8020390: 835a strh r2, [r3, #26]
  79262. TCP_STATS_INC(tcp.memerr);
  79263. return ERR_MEM;
  79264. 8020392: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  79265. 8020396: e070 b.n 802047a <tcp_enqueue_flags+0x1b2>
  79266. }
  79267. LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0);
  79268. 8020398: 68bb ldr r3, [r7, #8]
  79269. 802039a: 691b ldr r3, [r3, #16]
  79270. 802039c: f003 0303 and.w r3, r3, #3
  79271. 80203a0: 2b00 cmp r3, #0
  79272. 80203a2: d006 beq.n 80203b2 <tcp_enqueue_flags+0xea>
  79273. 80203a4: 4b37 ldr r3, [pc, #220] @ (8020484 <tcp_enqueue_flags+0x1bc>)
  79274. 80203a6: f240 4242 movw r2, #1090 @ 0x442
  79275. 80203aa: 493b ldr r1, [pc, #236] @ (8020498 <tcp_enqueue_flags+0x1d0>)
  79276. 80203ac: 4837 ldr r0, [pc, #220] @ (802048c <tcp_enqueue_flags+0x1c4>)
  79277. 80203ae: f009 ff05 bl 802a1bc <iprintf>
  79278. LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0);
  79279. 80203b2: 68bb ldr r3, [r7, #8]
  79280. 80203b4: 891b ldrh r3, [r3, #8]
  79281. 80203b6: 2b00 cmp r3, #0
  79282. 80203b8: d006 beq.n 80203c8 <tcp_enqueue_flags+0x100>
  79283. 80203ba: 4b32 ldr r3, [pc, #200] @ (8020484 <tcp_enqueue_flags+0x1bc>)
  79284. 80203bc: f240 4243 movw r2, #1091 @ 0x443
  79285. 80203c0: 4936 ldr r1, [pc, #216] @ (802049c <tcp_enqueue_flags+0x1d4>)
  79286. 80203c2: 4832 ldr r0, [pc, #200] @ (802048c <tcp_enqueue_flags+0x1c4>)
  79287. 80203c4: f009 fefa bl 802a1bc <iprintf>
  79288. lwip_ntohl(seg->tcphdr->seqno),
  79289. lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg),
  79290. (u16_t)flags));
  79291. /* Now append seg to pcb->unsent queue */
  79292. if (pcb->unsent == NULL) {
  79293. 80203c8: 687b ldr r3, [r7, #4]
  79294. 80203ca: 6edb ldr r3, [r3, #108] @ 0x6c
  79295. 80203cc: 2b00 cmp r3, #0
  79296. 80203ce: d103 bne.n 80203d8 <tcp_enqueue_flags+0x110>
  79297. pcb->unsent = seg;
  79298. 80203d0: 687b ldr r3, [r7, #4]
  79299. 80203d2: 68ba ldr r2, [r7, #8]
  79300. 80203d4: 66da str r2, [r3, #108] @ 0x6c
  79301. 80203d6: e00d b.n 80203f4 <tcp_enqueue_flags+0x12c>
  79302. } else {
  79303. struct tcp_seg *useg;
  79304. for (useg = pcb->unsent; useg->next != NULL; useg = useg->next);
  79305. 80203d8: 687b ldr r3, [r7, #4]
  79306. 80203da: 6edb ldr r3, [r3, #108] @ 0x6c
  79307. 80203dc: 613b str r3, [r7, #16]
  79308. 80203de: e002 b.n 80203e6 <tcp_enqueue_flags+0x11e>
  79309. 80203e0: 693b ldr r3, [r7, #16]
  79310. 80203e2: 681b ldr r3, [r3, #0]
  79311. 80203e4: 613b str r3, [r7, #16]
  79312. 80203e6: 693b ldr r3, [r7, #16]
  79313. 80203e8: 681b ldr r3, [r3, #0]
  79314. 80203ea: 2b00 cmp r3, #0
  79315. 80203ec: d1f8 bne.n 80203e0 <tcp_enqueue_flags+0x118>
  79316. useg->next = seg;
  79317. 80203ee: 693b ldr r3, [r7, #16]
  79318. 80203f0: 68ba ldr r2, [r7, #8]
  79319. 80203f2: 601a str r2, [r3, #0]
  79320. }
  79321. #if TCP_OVERSIZE
  79322. /* The new unsent tail has no space */
  79323. pcb->unsent_oversize = 0;
  79324. 80203f4: 687b ldr r3, [r7, #4]
  79325. 80203f6: 2200 movs r2, #0
  79326. 80203f8: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  79327. #endif /* TCP_OVERSIZE */
  79328. /* SYN and FIN bump the sequence number */
  79329. if ((flags & TCP_SYN) || (flags & TCP_FIN)) {
  79330. 80203fc: 78fb ldrb r3, [r7, #3]
  79331. 80203fe: f003 0302 and.w r3, r3, #2
  79332. 8020402: 2b00 cmp r3, #0
  79333. 8020404: d104 bne.n 8020410 <tcp_enqueue_flags+0x148>
  79334. 8020406: 78fb ldrb r3, [r7, #3]
  79335. 8020408: f003 0301 and.w r3, r3, #1
  79336. 802040c: 2b00 cmp r3, #0
  79337. 802040e: d004 beq.n 802041a <tcp_enqueue_flags+0x152>
  79338. pcb->snd_lbb++;
  79339. 8020410: 687b ldr r3, [r7, #4]
  79340. 8020412: 6ddb ldr r3, [r3, #92] @ 0x5c
  79341. 8020414: 1c5a adds r2, r3, #1
  79342. 8020416: 687b ldr r3, [r7, #4]
  79343. 8020418: 65da str r2, [r3, #92] @ 0x5c
  79344. /* optlen does not influence snd_buf */
  79345. }
  79346. if (flags & TCP_FIN) {
  79347. 802041a: 78fb ldrb r3, [r7, #3]
  79348. 802041c: f003 0301 and.w r3, r3, #1
  79349. 8020420: 2b00 cmp r3, #0
  79350. 8020422: d006 beq.n 8020432 <tcp_enqueue_flags+0x16a>
  79351. tcp_set_flags(pcb, TF_FIN);
  79352. 8020424: 687b ldr r3, [r7, #4]
  79353. 8020426: 8b5b ldrh r3, [r3, #26]
  79354. 8020428: f043 0320 orr.w r3, r3, #32
  79355. 802042c: b29a uxth r2, r3
  79356. 802042e: 687b ldr r3, [r7, #4]
  79357. 8020430: 835a strh r2, [r3, #26]
  79358. }
  79359. /* update number of segments on the queues */
  79360. pcb->snd_queuelen += pbuf_clen(seg->p);
  79361. 8020432: 68bb ldr r3, [r7, #8]
  79362. 8020434: 685b ldr r3, [r3, #4]
  79363. 8020436: 4618 mov r0, r3
  79364. 8020438: f7fa fcd6 bl 801ade8 <pbuf_clen>
  79365. 802043c: 4603 mov r3, r0
  79366. 802043e: 461a mov r2, r3
  79367. 8020440: 687b ldr r3, [r7, #4]
  79368. 8020442: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79369. 8020446: 4413 add r3, r2
  79370. 8020448: b29a uxth r2, r3
  79371. 802044a: 687b ldr r3, [r7, #4]
  79372. 802044c: f8a3 2066 strh.w r2, [r3, #102] @ 0x66
  79373. LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen));
  79374. if (pcb->snd_queuelen != 0) {
  79375. 8020450: 687b ldr r3, [r7, #4]
  79376. 8020452: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79377. 8020456: 2b00 cmp r3, #0
  79378. 8020458: d00e beq.n 8020478 <tcp_enqueue_flags+0x1b0>
  79379. LWIP_ASSERT("tcp_enqueue_flags: invalid queue length",
  79380. 802045a: 687b ldr r3, [r7, #4]
  79381. 802045c: 6f1b ldr r3, [r3, #112] @ 0x70
  79382. 802045e: 2b00 cmp r3, #0
  79383. 8020460: d10a bne.n 8020478 <tcp_enqueue_flags+0x1b0>
  79384. 8020462: 687b ldr r3, [r7, #4]
  79385. 8020464: 6edb ldr r3, [r3, #108] @ 0x6c
  79386. 8020466: 2b00 cmp r3, #0
  79387. 8020468: d106 bne.n 8020478 <tcp_enqueue_flags+0x1b0>
  79388. 802046a: 4b06 ldr r3, [pc, #24] @ (8020484 <tcp_enqueue_flags+0x1bc>)
  79389. 802046c: f240 4265 movw r2, #1125 @ 0x465
  79390. 8020470: 490b ldr r1, [pc, #44] @ (80204a0 <tcp_enqueue_flags+0x1d8>)
  79391. 8020472: 4806 ldr r0, [pc, #24] @ (802048c <tcp_enqueue_flags+0x1c4>)
  79392. 8020474: f009 fea2 bl 802a1bc <iprintf>
  79393. pcb->unacked != NULL || pcb->unsent != NULL);
  79394. }
  79395. return ERR_OK;
  79396. 8020478: 2300 movs r3, #0
  79397. }
  79398. 802047a: 4618 mov r0, r3
  79399. 802047c: 3718 adds r7, #24
  79400. 802047e: 46bd mov sp, r7
  79401. 8020480: bd80 pop {r7, pc}
  79402. 8020482: bf00 nop
  79403. 8020484: 0802fa24 .word 0x0802fa24
  79404. 8020488: 0802fea4 .word 0x0802fea4
  79405. 802048c: 0802fa78 .word 0x0802fa78
  79406. 8020490: 0802fefc .word 0x0802fefc
  79407. 8020494: 0802ff1c .word 0x0802ff1c
  79408. 8020498: 0802ff58 .word 0x0802ff58
  79409. 802049c: 0802ff70 .word 0x0802ff70
  79410. 80204a0: 0802ff9c .word 0x0802ff9c
  79411. 080204a4 <tcp_output>:
  79412. * @return ERR_OK if data has been sent or nothing to send
  79413. * another err_t on error
  79414. */
  79415. err_t
  79416. tcp_output(struct tcp_pcb *pcb)
  79417. {
  79418. 80204a4: b5b0 push {r4, r5, r7, lr}
  79419. 80204a6: b08a sub sp, #40 @ 0x28
  79420. 80204a8: af00 add r7, sp, #0
  79421. 80204aa: 6078 str r0, [r7, #4]
  79422. struct netif *netif;
  79423. #if TCP_CWND_DEBUG
  79424. s16_t i = 0;
  79425. #endif /* TCP_CWND_DEBUG */
  79426. LWIP_ASSERT_CORE_LOCKED();
  79427. 80204ac: f7f0 fae6 bl 8010a7c <sys_check_core_locking>
  79428. LWIP_ASSERT("tcp_output: invalid pcb", pcb != NULL);
  79429. 80204b0: 687b ldr r3, [r7, #4]
  79430. 80204b2: 2b00 cmp r3, #0
  79431. 80204b4: d106 bne.n 80204c4 <tcp_output+0x20>
  79432. 80204b6: 4b8a ldr r3, [pc, #552] @ (80206e0 <tcp_output+0x23c>)
  79433. 80204b8: f240 42e1 movw r2, #1249 @ 0x4e1
  79434. 80204bc: 4989 ldr r1, [pc, #548] @ (80206e4 <tcp_output+0x240>)
  79435. 80204be: 488a ldr r0, [pc, #552] @ (80206e8 <tcp_output+0x244>)
  79436. 80204c0: f009 fe7c bl 802a1bc <iprintf>
  79437. /* pcb->state LISTEN not allowed here */
  79438. LWIP_ASSERT("don't call tcp_output for listen-pcbs",
  79439. 80204c4: 687b ldr r3, [r7, #4]
  79440. 80204c6: 7d1b ldrb r3, [r3, #20]
  79441. 80204c8: 2b01 cmp r3, #1
  79442. 80204ca: d106 bne.n 80204da <tcp_output+0x36>
  79443. 80204cc: 4b84 ldr r3, [pc, #528] @ (80206e0 <tcp_output+0x23c>)
  79444. 80204ce: f240 42e3 movw r2, #1251 @ 0x4e3
  79445. 80204d2: 4986 ldr r1, [pc, #536] @ (80206ec <tcp_output+0x248>)
  79446. 80204d4: 4884 ldr r0, [pc, #528] @ (80206e8 <tcp_output+0x244>)
  79447. 80204d6: f009 fe71 bl 802a1bc <iprintf>
  79448. /* First, check if we are invoked by the TCP input processing
  79449. code. If so, we do not output anything. Instead, we rely on the
  79450. input processing code to call us when input processing is done
  79451. with. */
  79452. if (tcp_input_pcb == pcb) {
  79453. 80204da: 4b85 ldr r3, [pc, #532] @ (80206f0 <tcp_output+0x24c>)
  79454. 80204dc: 681b ldr r3, [r3, #0]
  79455. 80204de: 687a ldr r2, [r7, #4]
  79456. 80204e0: 429a cmp r2, r3
  79457. 80204e2: d101 bne.n 80204e8 <tcp_output+0x44>
  79458. return ERR_OK;
  79459. 80204e4: 2300 movs r3, #0
  79460. 80204e6: e1d1 b.n 802088c <tcp_output+0x3e8>
  79461. }
  79462. wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd);
  79463. 80204e8: 687b ldr r3, [r7, #4]
  79464. 80204ea: f8b3 2048 ldrh.w r2, [r3, #72] @ 0x48
  79465. 80204ee: 687b ldr r3, [r7, #4]
  79466. 80204f0: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  79467. 80204f4: 4293 cmp r3, r2
  79468. 80204f6: bf28 it cs
  79469. 80204f8: 4613 movcs r3, r2
  79470. 80204fa: b29b uxth r3, r3
  79471. 80204fc: 61bb str r3, [r7, #24]
  79472. seg = pcb->unsent;
  79473. 80204fe: 687b ldr r3, [r7, #4]
  79474. 8020500: 6edb ldr r3, [r3, #108] @ 0x6c
  79475. 8020502: 627b str r3, [r7, #36] @ 0x24
  79476. if (seg == NULL) {
  79477. 8020504: 6a7b ldr r3, [r7, #36] @ 0x24
  79478. 8020506: 2b00 cmp r3, #0
  79479. 8020508: d10b bne.n 8020522 <tcp_output+0x7e>
  79480. ", seg == NULL, ack %"U32_F"\n",
  79481. pcb->snd_wnd, pcb->cwnd, wnd, pcb->lastack));
  79482. /* If the TF_ACK_NOW flag is set and the ->unsent queue is empty, construct
  79483. * an empty ACK segment and send it. */
  79484. if (pcb->flags & TF_ACK_NOW) {
  79485. 802050a: 687b ldr r3, [r7, #4]
  79486. 802050c: 8b5b ldrh r3, [r3, #26]
  79487. 802050e: f003 0302 and.w r3, r3, #2
  79488. 8020512: 2b00 cmp r3, #0
  79489. 8020514: f000 81ad beq.w 8020872 <tcp_output+0x3ce>
  79490. return tcp_send_empty_ack(pcb);
  79491. 8020518: 6878 ldr r0, [r7, #4]
  79492. 802051a: f000 fdd7 bl 80210cc <tcp_send_empty_ack>
  79493. 802051e: 4603 mov r3, r0
  79494. 8020520: e1b4 b.n 802088c <tcp_output+0x3e8>
  79495. pcb->snd_wnd, pcb->cwnd, wnd,
  79496. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len,
  79497. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack));
  79498. }
  79499. netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip);
  79500. 8020522: 6879 ldr r1, [r7, #4]
  79501. 8020524: 687b ldr r3, [r7, #4]
  79502. 8020526: 3304 adds r3, #4
  79503. 8020528: 461a mov r2, r3
  79504. 802052a: 6878 ldr r0, [r7, #4]
  79505. 802052c: f7fe ffc0 bl 801f4b0 <tcp_route>
  79506. 8020530: 6178 str r0, [r7, #20]
  79507. if (netif == NULL) {
  79508. 8020532: 697b ldr r3, [r7, #20]
  79509. 8020534: 2b00 cmp r3, #0
  79510. 8020536: d102 bne.n 802053e <tcp_output+0x9a>
  79511. return ERR_RTE;
  79512. 8020538: f06f 0303 mvn.w r3, #3
  79513. 802053c: e1a6 b.n 802088c <tcp_output+0x3e8>
  79514. }
  79515. /* If we don't have a local IP address, we get one from netif */
  79516. if (ip_addr_isany(&pcb->local_ip)) {
  79517. 802053e: 687b ldr r3, [r7, #4]
  79518. 8020540: 2b00 cmp r3, #0
  79519. 8020542: d003 beq.n 802054c <tcp_output+0xa8>
  79520. 8020544: 687b ldr r3, [r7, #4]
  79521. 8020546: 681b ldr r3, [r3, #0]
  79522. 8020548: 2b00 cmp r3, #0
  79523. 802054a: d111 bne.n 8020570 <tcp_output+0xcc>
  79524. const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip);
  79525. 802054c: 697b ldr r3, [r7, #20]
  79526. 802054e: 2b00 cmp r3, #0
  79527. 8020550: d002 beq.n 8020558 <tcp_output+0xb4>
  79528. 8020552: 697b ldr r3, [r7, #20]
  79529. 8020554: 3304 adds r3, #4
  79530. 8020556: e000 b.n 802055a <tcp_output+0xb6>
  79531. 8020558: 2300 movs r3, #0
  79532. 802055a: 613b str r3, [r7, #16]
  79533. if (local_ip == NULL) {
  79534. 802055c: 693b ldr r3, [r7, #16]
  79535. 802055e: 2b00 cmp r3, #0
  79536. 8020560: d102 bne.n 8020568 <tcp_output+0xc4>
  79537. return ERR_RTE;
  79538. 8020562: f06f 0303 mvn.w r3, #3
  79539. 8020566: e191 b.n 802088c <tcp_output+0x3e8>
  79540. }
  79541. ip_addr_copy(pcb->local_ip, *local_ip);
  79542. 8020568: 693b ldr r3, [r7, #16]
  79543. 802056a: 681a ldr r2, [r3, #0]
  79544. 802056c: 687b ldr r3, [r7, #4]
  79545. 802056e: 601a str r2, [r3, #0]
  79546. }
  79547. /* Handle the current segment not fitting within the window */
  79548. if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) {
  79549. 8020570: 6a7b ldr r3, [r7, #36] @ 0x24
  79550. 8020572: 691b ldr r3, [r3, #16]
  79551. 8020574: 685b ldr r3, [r3, #4]
  79552. 8020576: 4618 mov r0, r3
  79553. 8020578: f7f8 fedb bl 8019332 <lwip_htonl>
  79554. 802057c: 4602 mov r2, r0
  79555. 802057e: 687b ldr r3, [r7, #4]
  79556. 8020580: 6c5b ldr r3, [r3, #68] @ 0x44
  79557. 8020582: 1ad3 subs r3, r2, r3
  79558. 8020584: 6a7a ldr r2, [r7, #36] @ 0x24
  79559. 8020586: 8912 ldrh r2, [r2, #8]
  79560. 8020588: 4413 add r3, r2
  79561. 802058a: 69ba ldr r2, [r7, #24]
  79562. 802058c: 429a cmp r2, r3
  79563. 802058e: d227 bcs.n 80205e0 <tcp_output+0x13c>
  79564. * within the remaining (could be 0) send window and RTO timer is not running (we
  79565. * have no in-flight data). If window is still too small after persist timer fires,
  79566. * then we split the segment. We don't consider the congestion window since a cwnd
  79567. * smaller than 1 SMSS implies in-flight data
  79568. */
  79569. if (wnd == pcb->snd_wnd && pcb->unacked == NULL && pcb->persist_backoff == 0) {
  79570. 8020590: 687b ldr r3, [r7, #4]
  79571. 8020592: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  79572. 8020596: 461a mov r2, r3
  79573. 8020598: 69bb ldr r3, [r7, #24]
  79574. 802059a: 4293 cmp r3, r2
  79575. 802059c: d114 bne.n 80205c8 <tcp_output+0x124>
  79576. 802059e: 687b ldr r3, [r7, #4]
  79577. 80205a0: 6f1b ldr r3, [r3, #112] @ 0x70
  79578. 80205a2: 2b00 cmp r3, #0
  79579. 80205a4: d110 bne.n 80205c8 <tcp_output+0x124>
  79580. 80205a6: 687b ldr r3, [r7, #4]
  79581. 80205a8: f893 3099 ldrb.w r3, [r3, #153] @ 0x99
  79582. 80205ac: 2b00 cmp r3, #0
  79583. 80205ae: d10b bne.n 80205c8 <tcp_output+0x124>
  79584. pcb->persist_cnt = 0;
  79585. 80205b0: 687b ldr r3, [r7, #4]
  79586. 80205b2: 2200 movs r2, #0
  79587. 80205b4: f883 2098 strb.w r2, [r3, #152] @ 0x98
  79588. pcb->persist_backoff = 1;
  79589. 80205b8: 687b ldr r3, [r7, #4]
  79590. 80205ba: 2201 movs r2, #1
  79591. 80205bc: f883 2099 strb.w r2, [r3, #153] @ 0x99
  79592. pcb->persist_probe = 0;
  79593. 80205c0: 687b ldr r3, [r7, #4]
  79594. 80205c2: 2200 movs r2, #0
  79595. 80205c4: f883 209a strb.w r2, [r3, #154] @ 0x9a
  79596. }
  79597. /* We need an ACK, but can't send data now, so send an empty ACK */
  79598. if (pcb->flags & TF_ACK_NOW) {
  79599. 80205c8: 687b ldr r3, [r7, #4]
  79600. 80205ca: 8b5b ldrh r3, [r3, #26]
  79601. 80205cc: f003 0302 and.w r3, r3, #2
  79602. 80205d0: 2b00 cmp r3, #0
  79603. 80205d2: f000 8150 beq.w 8020876 <tcp_output+0x3d2>
  79604. return tcp_send_empty_ack(pcb);
  79605. 80205d6: 6878 ldr r0, [r7, #4]
  79606. 80205d8: f000 fd78 bl 80210cc <tcp_send_empty_ack>
  79607. 80205dc: 4603 mov r3, r0
  79608. 80205de: e155 b.n 802088c <tcp_output+0x3e8>
  79609. }
  79610. goto output_done;
  79611. }
  79612. /* Stop persist timer, above conditions are not active */
  79613. pcb->persist_backoff = 0;
  79614. 80205e0: 687b ldr r3, [r7, #4]
  79615. 80205e2: 2200 movs r2, #0
  79616. 80205e4: f883 2099 strb.w r2, [r3, #153] @ 0x99
  79617. /* useg should point to last segment on unacked queue */
  79618. useg = pcb->unacked;
  79619. 80205e8: 687b ldr r3, [r7, #4]
  79620. 80205ea: 6f1b ldr r3, [r3, #112] @ 0x70
  79621. 80205ec: 623b str r3, [r7, #32]
  79622. if (useg != NULL) {
  79623. 80205ee: 6a3b ldr r3, [r7, #32]
  79624. 80205f0: 2b00 cmp r3, #0
  79625. 80205f2: f000 811f beq.w 8020834 <tcp_output+0x390>
  79626. for (; useg->next != NULL; useg = useg->next);
  79627. 80205f6: e002 b.n 80205fe <tcp_output+0x15a>
  79628. 80205f8: 6a3b ldr r3, [r7, #32]
  79629. 80205fa: 681b ldr r3, [r3, #0]
  79630. 80205fc: 623b str r3, [r7, #32]
  79631. 80205fe: 6a3b ldr r3, [r7, #32]
  79632. 8020600: 681b ldr r3, [r3, #0]
  79633. 8020602: 2b00 cmp r3, #0
  79634. 8020604: d1f8 bne.n 80205f8 <tcp_output+0x154>
  79635. }
  79636. /* data available and window allows it to be sent? */
  79637. while (seg != NULL &&
  79638. 8020606: e115 b.n 8020834 <tcp_output+0x390>
  79639. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  79640. LWIP_ASSERT("RST not expected here!",
  79641. 8020608: 6a7b ldr r3, [r7, #36] @ 0x24
  79642. 802060a: 691b ldr r3, [r3, #16]
  79643. 802060c: 899b ldrh r3, [r3, #12]
  79644. 802060e: b29b uxth r3, r3
  79645. 8020610: 4618 mov r0, r3
  79646. 8020612: f7f8 fe79 bl 8019308 <lwip_htons>
  79647. 8020616: 4603 mov r3, r0
  79648. 8020618: b2db uxtb r3, r3
  79649. 802061a: f003 0304 and.w r3, r3, #4
  79650. 802061e: 2b00 cmp r3, #0
  79651. 8020620: d006 beq.n 8020630 <tcp_output+0x18c>
  79652. 8020622: 4b2f ldr r3, [pc, #188] @ (80206e0 <tcp_output+0x23c>)
  79653. 8020624: f240 5236 movw r2, #1334 @ 0x536
  79654. 8020628: 4932 ldr r1, [pc, #200] @ (80206f4 <tcp_output+0x250>)
  79655. 802062a: 482f ldr r0, [pc, #188] @ (80206e8 <tcp_output+0x244>)
  79656. 802062c: f009 fdc6 bl 802a1bc <iprintf>
  79657. * - if tcp_write had a memory error before (prevent delayed ACK timeout) or
  79658. * - if FIN was already enqueued for this PCB (SYN is always alone in a segment -
  79659. * either seg->next != NULL or pcb->unacked == NULL;
  79660. * RST is no sent using tcp_write/tcp_output.
  79661. */
  79662. if ((tcp_do_output_nagle(pcb) == 0) &&
  79663. 8020630: 687b ldr r3, [r7, #4]
  79664. 8020632: 6f1b ldr r3, [r3, #112] @ 0x70
  79665. 8020634: 2b00 cmp r3, #0
  79666. 8020636: d01f beq.n 8020678 <tcp_output+0x1d4>
  79667. 8020638: 687b ldr r3, [r7, #4]
  79668. 802063a: 8b5b ldrh r3, [r3, #26]
  79669. 802063c: f003 0344 and.w r3, r3, #68 @ 0x44
  79670. 8020640: 2b00 cmp r3, #0
  79671. 8020642: d119 bne.n 8020678 <tcp_output+0x1d4>
  79672. 8020644: 687b ldr r3, [r7, #4]
  79673. 8020646: 6edb ldr r3, [r3, #108] @ 0x6c
  79674. 8020648: 2b00 cmp r3, #0
  79675. 802064a: d00b beq.n 8020664 <tcp_output+0x1c0>
  79676. 802064c: 687b ldr r3, [r7, #4]
  79677. 802064e: 6edb ldr r3, [r3, #108] @ 0x6c
  79678. 8020650: 681b ldr r3, [r3, #0]
  79679. 8020652: 2b00 cmp r3, #0
  79680. 8020654: d110 bne.n 8020678 <tcp_output+0x1d4>
  79681. 8020656: 687b ldr r3, [r7, #4]
  79682. 8020658: 6edb ldr r3, [r3, #108] @ 0x6c
  79683. 802065a: 891a ldrh r2, [r3, #8]
  79684. 802065c: 687b ldr r3, [r7, #4]
  79685. 802065e: 8e5b ldrh r3, [r3, #50] @ 0x32
  79686. 8020660: 429a cmp r2, r3
  79687. 8020662: d209 bcs.n 8020678 <tcp_output+0x1d4>
  79688. 8020664: 687b ldr r3, [r7, #4]
  79689. 8020666: f8b3 3064 ldrh.w r3, [r3, #100] @ 0x64
  79690. 802066a: 2b00 cmp r3, #0
  79691. 802066c: d004 beq.n 8020678 <tcp_output+0x1d4>
  79692. 802066e: 687b ldr r3, [r7, #4]
  79693. 8020670: f8b3 3066 ldrh.w r3, [r3, #102] @ 0x66
  79694. 8020674: 2b0f cmp r3, #15
  79695. 8020676: d901 bls.n 802067c <tcp_output+0x1d8>
  79696. 8020678: 2301 movs r3, #1
  79697. 802067a: e000 b.n 802067e <tcp_output+0x1da>
  79698. 802067c: 2300 movs r3, #0
  79699. 802067e: 2b00 cmp r3, #0
  79700. 8020680: d106 bne.n 8020690 <tcp_output+0x1ec>
  79701. ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) {
  79702. 8020682: 687b ldr r3, [r7, #4]
  79703. 8020684: 8b5b ldrh r3, [r3, #26]
  79704. 8020686: f003 03a0 and.w r3, r3, #160 @ 0xa0
  79705. if ((tcp_do_output_nagle(pcb) == 0) &&
  79706. 802068a: 2b00 cmp r3, #0
  79707. 802068c: f000 80e7 beq.w 802085e <tcp_output+0x3ba>
  79708. pcb->lastack,
  79709. lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i));
  79710. ++i;
  79711. #endif /* TCP_CWND_DEBUG */
  79712. if (pcb->state != SYN_SENT) {
  79713. 8020690: 687b ldr r3, [r7, #4]
  79714. 8020692: 7d1b ldrb r3, [r3, #20]
  79715. 8020694: 2b02 cmp r3, #2
  79716. 8020696: d00d beq.n 80206b4 <tcp_output+0x210>
  79717. TCPH_SET_FLAG(seg->tcphdr, TCP_ACK);
  79718. 8020698: 6a7b ldr r3, [r7, #36] @ 0x24
  79719. 802069a: 691b ldr r3, [r3, #16]
  79720. 802069c: 899b ldrh r3, [r3, #12]
  79721. 802069e: b29c uxth r4, r3
  79722. 80206a0: 2010 movs r0, #16
  79723. 80206a2: f7f8 fe31 bl 8019308 <lwip_htons>
  79724. 80206a6: 4603 mov r3, r0
  79725. 80206a8: 461a mov r2, r3
  79726. 80206aa: 6a7b ldr r3, [r7, #36] @ 0x24
  79727. 80206ac: 691b ldr r3, [r3, #16]
  79728. 80206ae: 4322 orrs r2, r4
  79729. 80206b0: b292 uxth r2, r2
  79730. 80206b2: 819a strh r2, [r3, #12]
  79731. }
  79732. err = tcp_output_segment(seg, pcb, netif);
  79733. 80206b4: 697a ldr r2, [r7, #20]
  79734. 80206b6: 6879 ldr r1, [r7, #4]
  79735. 80206b8: 6a78 ldr r0, [r7, #36] @ 0x24
  79736. 80206ba: f000 f90b bl 80208d4 <tcp_output_segment>
  79737. 80206be: 4603 mov r3, r0
  79738. 80206c0: 73fb strb r3, [r7, #15]
  79739. if (err != ERR_OK) {
  79740. 80206c2: f997 300f ldrsb.w r3, [r7, #15]
  79741. 80206c6: 2b00 cmp r3, #0
  79742. 80206c8: d016 beq.n 80206f8 <tcp_output+0x254>
  79743. /* segment could not be sent, for whatever reason */
  79744. tcp_set_flags(pcb, TF_NAGLEMEMERR);
  79745. 80206ca: 687b ldr r3, [r7, #4]
  79746. 80206cc: 8b5b ldrh r3, [r3, #26]
  79747. 80206ce: f043 0380 orr.w r3, r3, #128 @ 0x80
  79748. 80206d2: b29a uxth r2, r3
  79749. 80206d4: 687b ldr r3, [r7, #4]
  79750. 80206d6: 835a strh r2, [r3, #26]
  79751. return err;
  79752. 80206d8: f997 300f ldrsb.w r3, [r7, #15]
  79753. 80206dc: e0d6 b.n 802088c <tcp_output+0x3e8>
  79754. 80206de: bf00 nop
  79755. 80206e0: 0802fa24 .word 0x0802fa24
  79756. 80206e4: 0802ffc4 .word 0x0802ffc4
  79757. 80206e8: 0802fa78 .word 0x0802fa78
  79758. 80206ec: 0802ffdc .word 0x0802ffdc
  79759. 80206f0: 2402afa8 .word 0x2402afa8
  79760. 80206f4: 08030004 .word 0x08030004
  79761. }
  79762. #if TCP_OVERSIZE_DBGCHECK
  79763. seg->oversize_left = 0;
  79764. 80206f8: 6a7b ldr r3, [r7, #36] @ 0x24
  79765. 80206fa: 2200 movs r2, #0
  79766. 80206fc: 815a strh r2, [r3, #10]
  79767. #endif /* TCP_OVERSIZE_DBGCHECK */
  79768. pcb->unsent = seg->next;
  79769. 80206fe: 6a7b ldr r3, [r7, #36] @ 0x24
  79770. 8020700: 681a ldr r2, [r3, #0]
  79771. 8020702: 687b ldr r3, [r7, #4]
  79772. 8020704: 66da str r2, [r3, #108] @ 0x6c
  79773. if (pcb->state != SYN_SENT) {
  79774. 8020706: 687b ldr r3, [r7, #4]
  79775. 8020708: 7d1b ldrb r3, [r3, #20]
  79776. 802070a: 2b02 cmp r3, #2
  79777. 802070c: d006 beq.n 802071c <tcp_output+0x278>
  79778. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  79779. 802070e: 687b ldr r3, [r7, #4]
  79780. 8020710: 8b5b ldrh r3, [r3, #26]
  79781. 8020712: f023 0303 bic.w r3, r3, #3
  79782. 8020716: b29a uxth r2, r3
  79783. 8020718: 687b ldr r3, [r7, #4]
  79784. 802071a: 835a strh r2, [r3, #26]
  79785. }
  79786. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  79787. 802071c: 6a7b ldr r3, [r7, #36] @ 0x24
  79788. 802071e: 691b ldr r3, [r3, #16]
  79789. 8020720: 685b ldr r3, [r3, #4]
  79790. 8020722: 4618 mov r0, r3
  79791. 8020724: f7f8 fe05 bl 8019332 <lwip_htonl>
  79792. 8020728: 4604 mov r4, r0
  79793. 802072a: 6a7b ldr r3, [r7, #36] @ 0x24
  79794. 802072c: 891b ldrh r3, [r3, #8]
  79795. 802072e: 461d mov r5, r3
  79796. 8020730: 6a7b ldr r3, [r7, #36] @ 0x24
  79797. 8020732: 691b ldr r3, [r3, #16]
  79798. 8020734: 899b ldrh r3, [r3, #12]
  79799. 8020736: b29b uxth r3, r3
  79800. 8020738: 4618 mov r0, r3
  79801. 802073a: f7f8 fde5 bl 8019308 <lwip_htons>
  79802. 802073e: 4603 mov r3, r0
  79803. 8020740: b2db uxtb r3, r3
  79804. 8020742: f003 0303 and.w r3, r3, #3
  79805. 8020746: 2b00 cmp r3, #0
  79806. 8020748: d001 beq.n 802074e <tcp_output+0x2aa>
  79807. 802074a: 2301 movs r3, #1
  79808. 802074c: e000 b.n 8020750 <tcp_output+0x2ac>
  79809. 802074e: 2300 movs r3, #0
  79810. 8020750: 442b add r3, r5
  79811. 8020752: 4423 add r3, r4
  79812. 8020754: 60bb str r3, [r7, #8]
  79813. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  79814. 8020756: 687b ldr r3, [r7, #4]
  79815. 8020758: 6d1a ldr r2, [r3, #80] @ 0x50
  79816. 802075a: 68bb ldr r3, [r7, #8]
  79817. 802075c: 1ad3 subs r3, r2, r3
  79818. 802075e: 2b00 cmp r3, #0
  79819. 8020760: da02 bge.n 8020768 <tcp_output+0x2c4>
  79820. pcb->snd_nxt = snd_nxt;
  79821. 8020762: 687b ldr r3, [r7, #4]
  79822. 8020764: 68ba ldr r2, [r7, #8]
  79823. 8020766: 651a str r2, [r3, #80] @ 0x50
  79824. }
  79825. /* put segment on unacknowledged list if length > 0 */
  79826. if (TCP_TCPLEN(seg) > 0) {
  79827. 8020768: 6a7b ldr r3, [r7, #36] @ 0x24
  79828. 802076a: 891b ldrh r3, [r3, #8]
  79829. 802076c: 461c mov r4, r3
  79830. 802076e: 6a7b ldr r3, [r7, #36] @ 0x24
  79831. 8020770: 691b ldr r3, [r3, #16]
  79832. 8020772: 899b ldrh r3, [r3, #12]
  79833. 8020774: b29b uxth r3, r3
  79834. 8020776: 4618 mov r0, r3
  79835. 8020778: f7f8 fdc6 bl 8019308 <lwip_htons>
  79836. 802077c: 4603 mov r3, r0
  79837. 802077e: b2db uxtb r3, r3
  79838. 8020780: f003 0303 and.w r3, r3, #3
  79839. 8020784: 2b00 cmp r3, #0
  79840. 8020786: d001 beq.n 802078c <tcp_output+0x2e8>
  79841. 8020788: 2301 movs r3, #1
  79842. 802078a: e000 b.n 802078e <tcp_output+0x2ea>
  79843. 802078c: 2300 movs r3, #0
  79844. 802078e: 4423 add r3, r4
  79845. 8020790: 2b00 cmp r3, #0
  79846. 8020792: d049 beq.n 8020828 <tcp_output+0x384>
  79847. seg->next = NULL;
  79848. 8020794: 6a7b ldr r3, [r7, #36] @ 0x24
  79849. 8020796: 2200 movs r2, #0
  79850. 8020798: 601a str r2, [r3, #0]
  79851. /* unacked list is empty? */
  79852. if (pcb->unacked == NULL) {
  79853. 802079a: 687b ldr r3, [r7, #4]
  79854. 802079c: 6f1b ldr r3, [r3, #112] @ 0x70
  79855. 802079e: 2b00 cmp r3, #0
  79856. 80207a0: d105 bne.n 80207ae <tcp_output+0x30a>
  79857. pcb->unacked = seg;
  79858. 80207a2: 687b ldr r3, [r7, #4]
  79859. 80207a4: 6a7a ldr r2, [r7, #36] @ 0x24
  79860. 80207a6: 671a str r2, [r3, #112] @ 0x70
  79861. useg = seg;
  79862. 80207a8: 6a7b ldr r3, [r7, #36] @ 0x24
  79863. 80207aa: 623b str r3, [r7, #32]
  79864. 80207ac: e03f b.n 802082e <tcp_output+0x38a>
  79865. /* unacked list is not empty? */
  79866. } else {
  79867. /* In the case of fast retransmit, the packet should not go to the tail
  79868. * of the unacked queue, but rather somewhere before it. We need to check for
  79869. * this case. -STJ Jul 27, 2004 */
  79870. if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
  79871. 80207ae: 6a7b ldr r3, [r7, #36] @ 0x24
  79872. 80207b0: 691b ldr r3, [r3, #16]
  79873. 80207b2: 685b ldr r3, [r3, #4]
  79874. 80207b4: 4618 mov r0, r3
  79875. 80207b6: f7f8 fdbc bl 8019332 <lwip_htonl>
  79876. 80207ba: 4604 mov r4, r0
  79877. 80207bc: 6a3b ldr r3, [r7, #32]
  79878. 80207be: 691b ldr r3, [r3, #16]
  79879. 80207c0: 685b ldr r3, [r3, #4]
  79880. 80207c2: 4618 mov r0, r3
  79881. 80207c4: f7f8 fdb5 bl 8019332 <lwip_htonl>
  79882. 80207c8: 4603 mov r3, r0
  79883. 80207ca: 1ae3 subs r3, r4, r3
  79884. 80207cc: 2b00 cmp r3, #0
  79885. 80207ce: da24 bge.n 802081a <tcp_output+0x376>
  79886. /* add segment to before tail of unacked list, keeping the list sorted */
  79887. struct tcp_seg **cur_seg = &(pcb->unacked);
  79888. 80207d0: 687b ldr r3, [r7, #4]
  79889. 80207d2: 3370 adds r3, #112 @ 0x70
  79890. 80207d4: 61fb str r3, [r7, #28]
  79891. while (*cur_seg &&
  79892. 80207d6: e002 b.n 80207de <tcp_output+0x33a>
  79893. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  79894. cur_seg = &((*cur_seg)->next );
  79895. 80207d8: 69fb ldr r3, [r7, #28]
  79896. 80207da: 681b ldr r3, [r3, #0]
  79897. 80207dc: 61fb str r3, [r7, #28]
  79898. while (*cur_seg &&
  79899. 80207de: 69fb ldr r3, [r7, #28]
  79900. 80207e0: 681b ldr r3, [r3, #0]
  79901. 80207e2: 2b00 cmp r3, #0
  79902. 80207e4: d011 beq.n 802080a <tcp_output+0x366>
  79903. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  79904. 80207e6: 69fb ldr r3, [r7, #28]
  79905. 80207e8: 681b ldr r3, [r3, #0]
  79906. 80207ea: 691b ldr r3, [r3, #16]
  79907. 80207ec: 685b ldr r3, [r3, #4]
  79908. 80207ee: 4618 mov r0, r3
  79909. 80207f0: f7f8 fd9f bl 8019332 <lwip_htonl>
  79910. 80207f4: 4604 mov r4, r0
  79911. 80207f6: 6a7b ldr r3, [r7, #36] @ 0x24
  79912. 80207f8: 691b ldr r3, [r3, #16]
  79913. 80207fa: 685b ldr r3, [r3, #4]
  79914. 80207fc: 4618 mov r0, r3
  79915. 80207fe: f7f8 fd98 bl 8019332 <lwip_htonl>
  79916. 8020802: 4603 mov r3, r0
  79917. 8020804: 1ae3 subs r3, r4, r3
  79918. while (*cur_seg &&
  79919. 8020806: 2b00 cmp r3, #0
  79920. 8020808: dbe6 blt.n 80207d8 <tcp_output+0x334>
  79921. }
  79922. seg->next = (*cur_seg);
  79923. 802080a: 69fb ldr r3, [r7, #28]
  79924. 802080c: 681a ldr r2, [r3, #0]
  79925. 802080e: 6a7b ldr r3, [r7, #36] @ 0x24
  79926. 8020810: 601a str r2, [r3, #0]
  79927. (*cur_seg) = seg;
  79928. 8020812: 69fb ldr r3, [r7, #28]
  79929. 8020814: 6a7a ldr r2, [r7, #36] @ 0x24
  79930. 8020816: 601a str r2, [r3, #0]
  79931. 8020818: e009 b.n 802082e <tcp_output+0x38a>
  79932. } else {
  79933. /* add segment to tail of unacked list */
  79934. useg->next = seg;
  79935. 802081a: 6a3b ldr r3, [r7, #32]
  79936. 802081c: 6a7a ldr r2, [r7, #36] @ 0x24
  79937. 802081e: 601a str r2, [r3, #0]
  79938. useg = useg->next;
  79939. 8020820: 6a3b ldr r3, [r7, #32]
  79940. 8020822: 681b ldr r3, [r3, #0]
  79941. 8020824: 623b str r3, [r7, #32]
  79942. 8020826: e002 b.n 802082e <tcp_output+0x38a>
  79943. }
  79944. }
  79945. /* do not queue empty segments on the unacked list */
  79946. } else {
  79947. tcp_seg_free(seg);
  79948. 8020828: 6a78 ldr r0, [r7, #36] @ 0x24
  79949. 802082a: f7fb fea8 bl 801c57e <tcp_seg_free>
  79950. }
  79951. seg = pcb->unsent;
  79952. 802082e: 687b ldr r3, [r7, #4]
  79953. 8020830: 6edb ldr r3, [r3, #108] @ 0x6c
  79954. 8020832: 627b str r3, [r7, #36] @ 0x24
  79955. while (seg != NULL &&
  79956. 8020834: 6a7b ldr r3, [r7, #36] @ 0x24
  79957. 8020836: 2b00 cmp r3, #0
  79958. 8020838: d012 beq.n 8020860 <tcp_output+0x3bc>
  79959. lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
  79960. 802083a: 6a7b ldr r3, [r7, #36] @ 0x24
  79961. 802083c: 691b ldr r3, [r3, #16]
  79962. 802083e: 685b ldr r3, [r3, #4]
  79963. 8020840: 4618 mov r0, r3
  79964. 8020842: f7f8 fd76 bl 8019332 <lwip_htonl>
  79965. 8020846: 4602 mov r2, r0
  79966. 8020848: 687b ldr r3, [r7, #4]
  79967. 802084a: 6c5b ldr r3, [r3, #68] @ 0x44
  79968. 802084c: 1ad3 subs r3, r2, r3
  79969. 802084e: 6a7a ldr r2, [r7, #36] @ 0x24
  79970. 8020850: 8912 ldrh r2, [r2, #8]
  79971. 8020852: 4413 add r3, r2
  79972. while (seg != NULL &&
  79973. 8020854: 69ba ldr r2, [r7, #24]
  79974. 8020856: 429a cmp r2, r3
  79975. 8020858: f4bf aed6 bcs.w 8020608 <tcp_output+0x164>
  79976. 802085c: e000 b.n 8020860 <tcp_output+0x3bc>
  79977. break;
  79978. 802085e: bf00 nop
  79979. }
  79980. #if TCP_OVERSIZE
  79981. if (pcb->unsent == NULL) {
  79982. 8020860: 687b ldr r3, [r7, #4]
  79983. 8020862: 6edb ldr r3, [r3, #108] @ 0x6c
  79984. 8020864: 2b00 cmp r3, #0
  79985. 8020866: d108 bne.n 802087a <tcp_output+0x3d6>
  79986. /* last unsent has been removed, reset unsent_oversize */
  79987. pcb->unsent_oversize = 0;
  79988. 8020868: 687b ldr r3, [r7, #4]
  79989. 802086a: 2200 movs r2, #0
  79990. 802086c: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  79991. 8020870: e004 b.n 802087c <tcp_output+0x3d8>
  79992. goto output_done;
  79993. 8020872: bf00 nop
  79994. 8020874: e002 b.n 802087c <tcp_output+0x3d8>
  79995. goto output_done;
  79996. 8020876: bf00 nop
  79997. 8020878: e000 b.n 802087c <tcp_output+0x3d8>
  79998. }
  79999. #endif /* TCP_OVERSIZE */
  80000. output_done:
  80001. 802087a: bf00 nop
  80002. tcp_clear_flags(pcb, TF_NAGLEMEMERR);
  80003. 802087c: 687b ldr r3, [r7, #4]
  80004. 802087e: 8b5b ldrh r3, [r3, #26]
  80005. 8020880: f023 0380 bic.w r3, r3, #128 @ 0x80
  80006. 8020884: b29a uxth r2, r3
  80007. 8020886: 687b ldr r3, [r7, #4]
  80008. 8020888: 835a strh r2, [r3, #26]
  80009. return ERR_OK;
  80010. 802088a: 2300 movs r3, #0
  80011. }
  80012. 802088c: 4618 mov r0, r3
  80013. 802088e: 3728 adds r7, #40 @ 0x28
  80014. 8020890: 46bd mov sp, r7
  80015. 8020892: bdb0 pop {r4, r5, r7, pc}
  80016. 08020894 <tcp_output_segment_busy>:
  80017. * @arg seg the tcp segment to check
  80018. * @return 1 if ref != 1, 0 if ref == 1
  80019. */
  80020. static int
  80021. tcp_output_segment_busy(const struct tcp_seg *seg)
  80022. {
  80023. 8020894: b580 push {r7, lr}
  80024. 8020896: b082 sub sp, #8
  80025. 8020898: af00 add r7, sp, #0
  80026. 802089a: 6078 str r0, [r7, #4]
  80027. LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL);
  80028. 802089c: 687b ldr r3, [r7, #4]
  80029. 802089e: 2b00 cmp r3, #0
  80030. 80208a0: d106 bne.n 80208b0 <tcp_output_segment_busy+0x1c>
  80031. 80208a2: 4b09 ldr r3, [pc, #36] @ (80208c8 <tcp_output_segment_busy+0x34>)
  80032. 80208a4: f240 529a movw r2, #1434 @ 0x59a
  80033. 80208a8: 4908 ldr r1, [pc, #32] @ (80208cc <tcp_output_segment_busy+0x38>)
  80034. 80208aa: 4809 ldr r0, [pc, #36] @ (80208d0 <tcp_output_segment_busy+0x3c>)
  80035. 80208ac: f009 fc86 bl 802a1bc <iprintf>
  80036. /* We only need to check the first pbuf here:
  80037. If a pbuf is queued for transmission, a driver calls pbuf_ref(),
  80038. which only changes the ref count of the first pbuf */
  80039. if (seg->p->ref != 1) {
  80040. 80208b0: 687b ldr r3, [r7, #4]
  80041. 80208b2: 685b ldr r3, [r3, #4]
  80042. 80208b4: 7b9b ldrb r3, [r3, #14]
  80043. 80208b6: 2b01 cmp r3, #1
  80044. 80208b8: d001 beq.n 80208be <tcp_output_segment_busy+0x2a>
  80045. /* other reference found */
  80046. return 1;
  80047. 80208ba: 2301 movs r3, #1
  80048. 80208bc: e000 b.n 80208c0 <tcp_output_segment_busy+0x2c>
  80049. }
  80050. /* no other references found */
  80051. return 0;
  80052. 80208be: 2300 movs r3, #0
  80053. }
  80054. 80208c0: 4618 mov r0, r3
  80055. 80208c2: 3708 adds r7, #8
  80056. 80208c4: 46bd mov sp, r7
  80057. 80208c6: bd80 pop {r7, pc}
  80058. 80208c8: 0802fa24 .word 0x0802fa24
  80059. 80208cc: 0803001c .word 0x0803001c
  80060. 80208d0: 0802fa78 .word 0x0802fa78
  80061. 080208d4 <tcp_output_segment>:
  80062. * @param pcb the tcp_pcb for the TCP connection used to send the segment
  80063. * @param netif the netif used to send the segment
  80064. */
  80065. static err_t
  80066. tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif)
  80067. {
  80068. 80208d4: b5b0 push {r4, r5, r7, lr}
  80069. 80208d6: b08c sub sp, #48 @ 0x30
  80070. 80208d8: af04 add r7, sp, #16
  80071. 80208da: 60f8 str r0, [r7, #12]
  80072. 80208dc: 60b9 str r1, [r7, #8]
  80073. 80208de: 607a str r2, [r7, #4]
  80074. u32_t *opts;
  80075. #if TCP_CHECKSUM_ON_COPY
  80076. int seg_chksum_was_swapped = 0;
  80077. #endif
  80078. LWIP_ASSERT("tcp_output_segment: invalid seg", seg != NULL);
  80079. 80208e0: 68fb ldr r3, [r7, #12]
  80080. 80208e2: 2b00 cmp r3, #0
  80081. 80208e4: d106 bne.n 80208f4 <tcp_output_segment+0x20>
  80082. 80208e6: 4b64 ldr r3, [pc, #400] @ (8020a78 <tcp_output_segment+0x1a4>)
  80083. 80208e8: f44f 62b7 mov.w r2, #1464 @ 0x5b8
  80084. 80208ec: 4963 ldr r1, [pc, #396] @ (8020a7c <tcp_output_segment+0x1a8>)
  80085. 80208ee: 4864 ldr r0, [pc, #400] @ (8020a80 <tcp_output_segment+0x1ac>)
  80086. 80208f0: f009 fc64 bl 802a1bc <iprintf>
  80087. LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL);
  80088. 80208f4: 68bb ldr r3, [r7, #8]
  80089. 80208f6: 2b00 cmp r3, #0
  80090. 80208f8: d106 bne.n 8020908 <tcp_output_segment+0x34>
  80091. 80208fa: 4b5f ldr r3, [pc, #380] @ (8020a78 <tcp_output_segment+0x1a4>)
  80092. 80208fc: f240 52b9 movw r2, #1465 @ 0x5b9
  80093. 8020900: 4960 ldr r1, [pc, #384] @ (8020a84 <tcp_output_segment+0x1b0>)
  80094. 8020902: 485f ldr r0, [pc, #380] @ (8020a80 <tcp_output_segment+0x1ac>)
  80095. 8020904: f009 fc5a bl 802a1bc <iprintf>
  80096. LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL);
  80097. 8020908: 687b ldr r3, [r7, #4]
  80098. 802090a: 2b00 cmp r3, #0
  80099. 802090c: d106 bne.n 802091c <tcp_output_segment+0x48>
  80100. 802090e: 4b5a ldr r3, [pc, #360] @ (8020a78 <tcp_output_segment+0x1a4>)
  80101. 8020910: f240 52ba movw r2, #1466 @ 0x5ba
  80102. 8020914: 495c ldr r1, [pc, #368] @ (8020a88 <tcp_output_segment+0x1b4>)
  80103. 8020916: 485a ldr r0, [pc, #360] @ (8020a80 <tcp_output_segment+0x1ac>)
  80104. 8020918: f009 fc50 bl 802a1bc <iprintf>
  80105. if (tcp_output_segment_busy(seg)) {
  80106. 802091c: 68f8 ldr r0, [r7, #12]
  80107. 802091e: f7ff ffb9 bl 8020894 <tcp_output_segment_busy>
  80108. 8020922: 4603 mov r3, r0
  80109. 8020924: 2b00 cmp r3, #0
  80110. 8020926: d001 beq.n 802092c <tcp_output_segment+0x58>
  80111. /* This should not happen: rexmit functions should have checked this.
  80112. However, since this function modifies p->len, we must not continue in this case. */
  80113. LWIP_DEBUGF(TCP_RTO_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_output_segment: segment busy\n"));
  80114. return ERR_OK;
  80115. 8020928: 2300 movs r3, #0
  80116. 802092a: e0a1 b.n 8020a70 <tcp_output_segment+0x19c>
  80117. }
  80118. /* The TCP header has already been constructed, but the ackno and
  80119. wnd fields remain. */
  80120. seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt);
  80121. 802092c: 68bb ldr r3, [r7, #8]
  80122. 802092e: 6a5a ldr r2, [r3, #36] @ 0x24
  80123. 8020930: 68fb ldr r3, [r7, #12]
  80124. 8020932: 691c ldr r4, [r3, #16]
  80125. 8020934: 4610 mov r0, r2
  80126. 8020936: f7f8 fcfc bl 8019332 <lwip_htonl>
  80127. 802093a: 4603 mov r3, r0
  80128. 802093c: 60a3 str r3, [r4, #8]
  80129. the window scale option) is never scaled. */
  80130. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(pcb->rcv_ann_wnd));
  80131. } else
  80132. #endif /* LWIP_WND_SCALE */
  80133. {
  80134. seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  80135. 802093e: 68bb ldr r3, [r7, #8]
  80136. 8020940: 8d5a ldrh r2, [r3, #42] @ 0x2a
  80137. 8020942: 68fb ldr r3, [r7, #12]
  80138. 8020944: 691c ldr r4, [r3, #16]
  80139. 8020946: 4610 mov r0, r2
  80140. 8020948: f7f8 fcde bl 8019308 <lwip_htons>
  80141. 802094c: 4603 mov r3, r0
  80142. 802094e: 81e3 strh r3, [r4, #14]
  80143. }
  80144. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  80145. 8020950: 68bb ldr r3, [r7, #8]
  80146. 8020952: 6a5b ldr r3, [r3, #36] @ 0x24
  80147. 8020954: 68ba ldr r2, [r7, #8]
  80148. 8020956: 8d52 ldrh r2, [r2, #42] @ 0x2a
  80149. 8020958: 441a add r2, r3
  80150. 802095a: 68bb ldr r3, [r7, #8]
  80151. 802095c: 62da str r2, [r3, #44] @ 0x2c
  80152. /* Add any requested options. NB MSS option is only set on SYN
  80153. packets, so ignore it here */
  80154. /* cast through void* to get rid of alignment warnings */
  80155. opts = (u32_t *)(void *)(seg->tcphdr + 1);
  80156. 802095e: 68fb ldr r3, [r7, #12]
  80157. 8020960: 691b ldr r3, [r3, #16]
  80158. 8020962: 3314 adds r3, #20
  80159. 8020964: 61fb str r3, [r7, #28]
  80160. if (seg->flags & TF_SEG_OPTS_MSS) {
  80161. 8020966: 68fb ldr r3, [r7, #12]
  80162. 8020968: 7b1b ldrb r3, [r3, #12]
  80163. 802096a: f003 0301 and.w r3, r3, #1
  80164. 802096e: 2b00 cmp r3, #0
  80165. 8020970: d015 beq.n 802099e <tcp_output_segment+0xca>
  80166. u16_t mss;
  80167. #if TCP_CALCULATE_EFF_SEND_MSS
  80168. mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip);
  80169. 8020972: 68bb ldr r3, [r7, #8]
  80170. 8020974: 3304 adds r3, #4
  80171. 8020976: 461a mov r2, r3
  80172. 8020978: 6879 ldr r1, [r7, #4]
  80173. 802097a: f240 50b4 movw r0, #1460 @ 0x5b4
  80174. 802097e: f7fc f9cd bl 801cd1c <tcp_eff_send_mss_netif>
  80175. 8020982: 4603 mov r3, r0
  80176. 8020984: 837b strh r3, [r7, #26]
  80177. #else /* TCP_CALCULATE_EFF_SEND_MSS */
  80178. mss = TCP_MSS;
  80179. #endif /* TCP_CALCULATE_EFF_SEND_MSS */
  80180. *opts = TCP_BUILD_MSS_OPTION(mss);
  80181. 8020986: 8b7b ldrh r3, [r7, #26]
  80182. 8020988: f043 7301 orr.w r3, r3, #33816576 @ 0x2040000
  80183. 802098c: 4618 mov r0, r3
  80184. 802098e: f7f8 fcd0 bl 8019332 <lwip_htonl>
  80185. 8020992: 4602 mov r2, r0
  80186. 8020994: 69fb ldr r3, [r7, #28]
  80187. 8020996: 601a str r2, [r3, #0]
  80188. opts += 1;
  80189. 8020998: 69fb ldr r3, [r7, #28]
  80190. 802099a: 3304 adds r3, #4
  80191. 802099c: 61fb str r3, [r7, #28]
  80192. }
  80193. #endif
  80194. /* Set retransmission timer running if it is not currently enabled
  80195. This must be set before checking the route. */
  80196. if (pcb->rtime < 0) {
  80197. 802099e: 68bb ldr r3, [r7, #8]
  80198. 80209a0: f9b3 3030 ldrsh.w r3, [r3, #48] @ 0x30
  80199. 80209a4: 2b00 cmp r3, #0
  80200. 80209a6: da02 bge.n 80209ae <tcp_output_segment+0xda>
  80201. pcb->rtime = 0;
  80202. 80209a8: 68bb ldr r3, [r7, #8]
  80203. 80209aa: 2200 movs r2, #0
  80204. 80209ac: 861a strh r2, [r3, #48] @ 0x30
  80205. }
  80206. if (pcb->rttest == 0) {
  80207. 80209ae: 68bb ldr r3, [r7, #8]
  80208. 80209b0: 6b5b ldr r3, [r3, #52] @ 0x34
  80209. 80209b2: 2b00 cmp r3, #0
  80210. 80209b4: d10c bne.n 80209d0 <tcp_output_segment+0xfc>
  80211. pcb->rttest = tcp_ticks;
  80212. 80209b6: 4b35 ldr r3, [pc, #212] @ (8020a8c <tcp_output_segment+0x1b8>)
  80213. 80209b8: 681a ldr r2, [r3, #0]
  80214. 80209ba: 68bb ldr r3, [r7, #8]
  80215. 80209bc: 635a str r2, [r3, #52] @ 0x34
  80216. pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno);
  80217. 80209be: 68fb ldr r3, [r7, #12]
  80218. 80209c0: 691b ldr r3, [r3, #16]
  80219. 80209c2: 685b ldr r3, [r3, #4]
  80220. 80209c4: 4618 mov r0, r3
  80221. 80209c6: f7f8 fcb4 bl 8019332 <lwip_htonl>
  80222. 80209ca: 4602 mov r2, r0
  80223. 80209cc: 68bb ldr r3, [r7, #8]
  80224. 80209ce: 639a str r2, [r3, #56] @ 0x38
  80225. }
  80226. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output_segment: %"U32_F":%"U32_F"\n",
  80227. lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) +
  80228. seg->len));
  80229. len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload);
  80230. 80209d0: 68fb ldr r3, [r7, #12]
  80231. 80209d2: 691a ldr r2, [r3, #16]
  80232. 80209d4: 68fb ldr r3, [r7, #12]
  80233. 80209d6: 685b ldr r3, [r3, #4]
  80234. 80209d8: 685b ldr r3, [r3, #4]
  80235. 80209da: 1ad3 subs r3, r2, r3
  80236. 80209dc: 833b strh r3, [r7, #24]
  80237. if (len == 0) {
  80238. /** Exclude retransmitted segments from this count. */
  80239. MIB2_STATS_INC(mib2.tcpoutsegs);
  80240. }
  80241. seg->p->len -= len;
  80242. 80209de: 68fb ldr r3, [r7, #12]
  80243. 80209e0: 685b ldr r3, [r3, #4]
  80244. 80209e2: 8959 ldrh r1, [r3, #10]
  80245. 80209e4: 68fb ldr r3, [r7, #12]
  80246. 80209e6: 685b ldr r3, [r3, #4]
  80247. 80209e8: 8b3a ldrh r2, [r7, #24]
  80248. 80209ea: 1a8a subs r2, r1, r2
  80249. 80209ec: b292 uxth r2, r2
  80250. 80209ee: 815a strh r2, [r3, #10]
  80251. seg->p->tot_len -= len;
  80252. 80209f0: 68fb ldr r3, [r7, #12]
  80253. 80209f2: 685b ldr r3, [r3, #4]
  80254. 80209f4: 8919 ldrh r1, [r3, #8]
  80255. 80209f6: 68fb ldr r3, [r7, #12]
  80256. 80209f8: 685b ldr r3, [r3, #4]
  80257. 80209fa: 8b3a ldrh r2, [r7, #24]
  80258. 80209fc: 1a8a subs r2, r1, r2
  80259. 80209fe: b292 uxth r2, r2
  80260. 8020a00: 811a strh r2, [r3, #8]
  80261. seg->p->payload = seg->tcphdr;
  80262. 8020a02: 68fb ldr r3, [r7, #12]
  80263. 8020a04: 685b ldr r3, [r3, #4]
  80264. 8020a06: 68fa ldr r2, [r7, #12]
  80265. 8020a08: 6912 ldr r2, [r2, #16]
  80266. 8020a0a: 605a str r2, [r3, #4]
  80267. seg->tcphdr->chksum = 0;
  80268. 8020a0c: 68fb ldr r3, [r7, #12]
  80269. 8020a0e: 691b ldr r3, [r3, #16]
  80270. 8020a10: 2200 movs r2, #0
  80271. 8020a12: 741a strb r2, [r3, #16]
  80272. 8020a14: 2200 movs r2, #0
  80273. 8020a16: 745a strb r2, [r3, #17]
  80274. #ifdef LWIP_HOOK_TCP_OUT_ADD_TCPOPTS
  80275. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(seg->p, seg->tcphdr, pcb, opts);
  80276. #endif
  80277. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(seg->tcphdr + 1)) + LWIP_TCP_OPT_LENGTH_SEGMENT(seg->flags, pcb));
  80278. 8020a18: 68fb ldr r3, [r7, #12]
  80279. 8020a1a: 691a ldr r2, [r3, #16]
  80280. 8020a1c: 68fb ldr r3, [r7, #12]
  80281. 8020a1e: 7b1b ldrb r3, [r3, #12]
  80282. 8020a20: f003 0301 and.w r3, r3, #1
  80283. 8020a24: 2b00 cmp r3, #0
  80284. 8020a26: d001 beq.n 8020a2c <tcp_output_segment+0x158>
  80285. 8020a28: 2318 movs r3, #24
  80286. 8020a2a: e000 b.n 8020a2e <tcp_output_segment+0x15a>
  80287. 8020a2c: 2314 movs r3, #20
  80288. 8020a2e: 4413 add r3, r2
  80289. 8020a30: 69fa ldr r2, [r7, #28]
  80290. 8020a32: 429a cmp r2, r3
  80291. 8020a34: d006 beq.n 8020a44 <tcp_output_segment+0x170>
  80292. 8020a36: 4b10 ldr r3, [pc, #64] @ (8020a78 <tcp_output_segment+0x1a4>)
  80293. 8020a38: f240 621c movw r2, #1564 @ 0x61c
  80294. 8020a3c: 4914 ldr r1, [pc, #80] @ (8020a90 <tcp_output_segment+0x1bc>)
  80295. 8020a3e: 4810 ldr r0, [pc, #64] @ (8020a80 <tcp_output_segment+0x1ac>)
  80296. 8020a40: f009 fbbc bl 802a1bc <iprintf>
  80297. }
  80298. #endif /* CHECKSUM_GEN_TCP */
  80299. TCP_STATS_INC(tcp.xmit);
  80300. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  80301. err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl,
  80302. 8020a44: 68fb ldr r3, [r7, #12]
  80303. 8020a46: 6858 ldr r0, [r3, #4]
  80304. 8020a48: 68b9 ldr r1, [r7, #8]
  80305. 8020a4a: 68bb ldr r3, [r7, #8]
  80306. 8020a4c: 1d1c adds r4, r3, #4
  80307. 8020a4e: 68bb ldr r3, [r7, #8]
  80308. 8020a50: 7add ldrb r5, [r3, #11]
  80309. 8020a52: 68bb ldr r3, [r7, #8]
  80310. 8020a54: 7a9b ldrb r3, [r3, #10]
  80311. 8020a56: 687a ldr r2, [r7, #4]
  80312. 8020a58: 9202 str r2, [sp, #8]
  80313. 8020a5a: 2206 movs r2, #6
  80314. 8020a5c: 9201 str r2, [sp, #4]
  80315. 8020a5e: 9300 str r3, [sp, #0]
  80316. 8020a60: 462b mov r3, r5
  80317. 8020a62: 4622 mov r2, r4
  80318. 8020a64: f004 fd7a bl 802555c <ip4_output_if>
  80319. 8020a68: 4603 mov r3, r0
  80320. 8020a6a: 75fb strb r3, [r7, #23]
  80321. seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum);
  80322. seg->chksum_swapped = 1;
  80323. }
  80324. #endif
  80325. return err;
  80326. 8020a6c: f997 3017 ldrsb.w r3, [r7, #23]
  80327. }
  80328. 8020a70: 4618 mov r0, r3
  80329. 8020a72: 3720 adds r7, #32
  80330. 8020a74: 46bd mov sp, r7
  80331. 8020a76: bdb0 pop {r4, r5, r7, pc}
  80332. 8020a78: 0802fa24 .word 0x0802fa24
  80333. 8020a7c: 08030044 .word 0x08030044
  80334. 8020a80: 0802fa78 .word 0x0802fa78
  80335. 8020a84: 08030064 .word 0x08030064
  80336. 8020a88: 08030084 .word 0x08030084
  80337. 8020a8c: 2402af58 .word 0x2402af58
  80338. 8020a90: 080300a8 .word 0x080300a8
  80339. 08020a94 <tcp_rexmit_rto_prepare>:
  80340. *
  80341. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  80342. */
  80343. err_t
  80344. tcp_rexmit_rto_prepare(struct tcp_pcb *pcb)
  80345. {
  80346. 8020a94: b5b0 push {r4, r5, r7, lr}
  80347. 8020a96: b084 sub sp, #16
  80348. 8020a98: af00 add r7, sp, #0
  80349. 8020a9a: 6078 str r0, [r7, #4]
  80350. struct tcp_seg *seg;
  80351. LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL);
  80352. 8020a9c: 687b ldr r3, [r7, #4]
  80353. 8020a9e: 2b00 cmp r3, #0
  80354. 8020aa0: d106 bne.n 8020ab0 <tcp_rexmit_rto_prepare+0x1c>
  80355. 8020aa2: 4b36 ldr r3, [pc, #216] @ (8020b7c <tcp_rexmit_rto_prepare+0xe8>)
  80356. 8020aa4: f240 6263 movw r2, #1635 @ 0x663
  80357. 8020aa8: 4935 ldr r1, [pc, #212] @ (8020b80 <tcp_rexmit_rto_prepare+0xec>)
  80358. 8020aaa: 4836 ldr r0, [pc, #216] @ (8020b84 <tcp_rexmit_rto_prepare+0xf0>)
  80359. 8020aac: f009 fb86 bl 802a1bc <iprintf>
  80360. if (pcb->unacked == NULL) {
  80361. 8020ab0: 687b ldr r3, [r7, #4]
  80362. 8020ab2: 6f1b ldr r3, [r3, #112] @ 0x70
  80363. 8020ab4: 2b00 cmp r3, #0
  80364. 8020ab6: d102 bne.n 8020abe <tcp_rexmit_rto_prepare+0x2a>
  80365. return ERR_VAL;
  80366. 8020ab8: f06f 0305 mvn.w r3, #5
  80367. 8020abc: e059 b.n 8020b72 <tcp_rexmit_rto_prepare+0xde>
  80368. /* Move all unacked segments to the head of the unsent queue.
  80369. However, give up if any of the unsent pbufs are still referenced by the
  80370. netif driver due to deferred transmission. No point loading the link further
  80371. if it is struggling to flush its buffered writes. */
  80372. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  80373. 8020abe: 687b ldr r3, [r7, #4]
  80374. 8020ac0: 6f1b ldr r3, [r3, #112] @ 0x70
  80375. 8020ac2: 60fb str r3, [r7, #12]
  80376. 8020ac4: e00b b.n 8020ade <tcp_rexmit_rto_prepare+0x4a>
  80377. if (tcp_output_segment_busy(seg)) {
  80378. 8020ac6: 68f8 ldr r0, [r7, #12]
  80379. 8020ac8: f7ff fee4 bl 8020894 <tcp_output_segment_busy>
  80380. 8020acc: 4603 mov r3, r0
  80381. 8020ace: 2b00 cmp r3, #0
  80382. 8020ad0: d002 beq.n 8020ad8 <tcp_rexmit_rto_prepare+0x44>
  80383. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  80384. return ERR_VAL;
  80385. 8020ad2: f06f 0305 mvn.w r3, #5
  80386. 8020ad6: e04c b.n 8020b72 <tcp_rexmit_rto_prepare+0xde>
  80387. for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) {
  80388. 8020ad8: 68fb ldr r3, [r7, #12]
  80389. 8020ada: 681b ldr r3, [r3, #0]
  80390. 8020adc: 60fb str r3, [r7, #12]
  80391. 8020ade: 68fb ldr r3, [r7, #12]
  80392. 8020ae0: 681b ldr r3, [r3, #0]
  80393. 8020ae2: 2b00 cmp r3, #0
  80394. 8020ae4: d1ef bne.n 8020ac6 <tcp_rexmit_rto_prepare+0x32>
  80395. }
  80396. }
  80397. if (tcp_output_segment_busy(seg)) {
  80398. 8020ae6: 68f8 ldr r0, [r7, #12]
  80399. 8020ae8: f7ff fed4 bl 8020894 <tcp_output_segment_busy>
  80400. 8020aec: 4603 mov r3, r0
  80401. 8020aee: 2b00 cmp r3, #0
  80402. 8020af0: d002 beq.n 8020af8 <tcp_rexmit_rto_prepare+0x64>
  80403. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n"));
  80404. return ERR_VAL;
  80405. 8020af2: f06f 0305 mvn.w r3, #5
  80406. 8020af6: e03c b.n 8020b72 <tcp_rexmit_rto_prepare+0xde>
  80407. }
  80408. /* concatenate unsent queue after unacked queue */
  80409. seg->next = pcb->unsent;
  80410. 8020af8: 687b ldr r3, [r7, #4]
  80411. 8020afa: 6eda ldr r2, [r3, #108] @ 0x6c
  80412. 8020afc: 68fb ldr r3, [r7, #12]
  80413. 8020afe: 601a str r2, [r3, #0]
  80414. #if TCP_OVERSIZE_DBGCHECK
  80415. /* if last unsent changed, we need to update unsent_oversize */
  80416. if (pcb->unsent == NULL) {
  80417. 8020b00: 687b ldr r3, [r7, #4]
  80418. 8020b02: 6edb ldr r3, [r3, #108] @ 0x6c
  80419. 8020b04: 2b00 cmp r3, #0
  80420. 8020b06: d104 bne.n 8020b12 <tcp_rexmit_rto_prepare+0x7e>
  80421. pcb->unsent_oversize = seg->oversize_left;
  80422. 8020b08: 68fb ldr r3, [r7, #12]
  80423. 8020b0a: 895a ldrh r2, [r3, #10]
  80424. 8020b0c: 687b ldr r3, [r7, #4]
  80425. 8020b0e: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  80426. }
  80427. #endif /* TCP_OVERSIZE_DBGCHECK */
  80428. /* unsent queue is the concatenated queue (of unacked, unsent) */
  80429. pcb->unsent = pcb->unacked;
  80430. 8020b12: 687b ldr r3, [r7, #4]
  80431. 8020b14: 6f1a ldr r2, [r3, #112] @ 0x70
  80432. 8020b16: 687b ldr r3, [r7, #4]
  80433. 8020b18: 66da str r2, [r3, #108] @ 0x6c
  80434. /* unacked queue is now empty */
  80435. pcb->unacked = NULL;
  80436. 8020b1a: 687b ldr r3, [r7, #4]
  80437. 8020b1c: 2200 movs r2, #0
  80438. 8020b1e: 671a str r2, [r3, #112] @ 0x70
  80439. /* Mark RTO in-progress */
  80440. tcp_set_flags(pcb, TF_RTO);
  80441. 8020b20: 687b ldr r3, [r7, #4]
  80442. 8020b22: 8b5b ldrh r3, [r3, #26]
  80443. 8020b24: f443 6300 orr.w r3, r3, #2048 @ 0x800
  80444. 8020b28: b29a uxth r2, r3
  80445. 8020b2a: 687b ldr r3, [r7, #4]
  80446. 8020b2c: 835a strh r2, [r3, #26]
  80447. /* Record the next byte following retransmit */
  80448. pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
  80449. 8020b2e: 68fb ldr r3, [r7, #12]
  80450. 8020b30: 691b ldr r3, [r3, #16]
  80451. 8020b32: 685b ldr r3, [r3, #4]
  80452. 8020b34: 4618 mov r0, r3
  80453. 8020b36: f7f8 fbfc bl 8019332 <lwip_htonl>
  80454. 8020b3a: 4604 mov r4, r0
  80455. 8020b3c: 68fb ldr r3, [r7, #12]
  80456. 8020b3e: 891b ldrh r3, [r3, #8]
  80457. 8020b40: 461d mov r5, r3
  80458. 8020b42: 68fb ldr r3, [r7, #12]
  80459. 8020b44: 691b ldr r3, [r3, #16]
  80460. 8020b46: 899b ldrh r3, [r3, #12]
  80461. 8020b48: b29b uxth r3, r3
  80462. 8020b4a: 4618 mov r0, r3
  80463. 8020b4c: f7f8 fbdc bl 8019308 <lwip_htons>
  80464. 8020b50: 4603 mov r3, r0
  80465. 8020b52: b2db uxtb r3, r3
  80466. 8020b54: f003 0303 and.w r3, r3, #3
  80467. 8020b58: 2b00 cmp r3, #0
  80468. 8020b5a: d001 beq.n 8020b60 <tcp_rexmit_rto_prepare+0xcc>
  80469. 8020b5c: 2301 movs r3, #1
  80470. 8020b5e: e000 b.n 8020b62 <tcp_rexmit_rto_prepare+0xce>
  80471. 8020b60: 2300 movs r3, #0
  80472. 8020b62: 442b add r3, r5
  80473. 8020b64: 18e2 adds r2, r4, r3
  80474. 8020b66: 687b ldr r3, [r7, #4]
  80475. 8020b68: 64da str r2, [r3, #76] @ 0x4c
  80476. /* Don't take any RTT measurements after retransmitting. */
  80477. pcb->rttest = 0;
  80478. 8020b6a: 687b ldr r3, [r7, #4]
  80479. 8020b6c: 2200 movs r2, #0
  80480. 8020b6e: 635a str r2, [r3, #52] @ 0x34
  80481. return ERR_OK;
  80482. 8020b70: 2300 movs r3, #0
  80483. }
  80484. 8020b72: 4618 mov r0, r3
  80485. 8020b74: 3710 adds r7, #16
  80486. 8020b76: 46bd mov sp, r7
  80487. 8020b78: bdb0 pop {r4, r5, r7, pc}
  80488. 8020b7a: bf00 nop
  80489. 8020b7c: 0802fa24 .word 0x0802fa24
  80490. 8020b80: 080300bc .word 0x080300bc
  80491. 8020b84: 0802fa78 .word 0x0802fa78
  80492. 08020b88 <tcp_rexmit_rto_commit>:
  80493. *
  80494. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  80495. */
  80496. void
  80497. tcp_rexmit_rto_commit(struct tcp_pcb *pcb)
  80498. {
  80499. 8020b88: b580 push {r7, lr}
  80500. 8020b8a: b082 sub sp, #8
  80501. 8020b8c: af00 add r7, sp, #0
  80502. 8020b8e: 6078 str r0, [r7, #4]
  80503. LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL);
  80504. 8020b90: 687b ldr r3, [r7, #4]
  80505. 8020b92: 2b00 cmp r3, #0
  80506. 8020b94: d106 bne.n 8020ba4 <tcp_rexmit_rto_commit+0x1c>
  80507. 8020b96: 4b0d ldr r3, [pc, #52] @ (8020bcc <tcp_rexmit_rto_commit+0x44>)
  80508. 8020b98: f44f 62d3 mov.w r2, #1688 @ 0x698
  80509. 8020b9c: 490c ldr r1, [pc, #48] @ (8020bd0 <tcp_rexmit_rto_commit+0x48>)
  80510. 8020b9e: 480d ldr r0, [pc, #52] @ (8020bd4 <tcp_rexmit_rto_commit+0x4c>)
  80511. 8020ba0: f009 fb0c bl 802a1bc <iprintf>
  80512. /* increment number of retransmissions */
  80513. if (pcb->nrtx < 0xFF) {
  80514. 8020ba4: 687b ldr r3, [r7, #4]
  80515. 8020ba6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  80516. 8020baa: 2bff cmp r3, #255 @ 0xff
  80517. 8020bac: d007 beq.n 8020bbe <tcp_rexmit_rto_commit+0x36>
  80518. ++pcb->nrtx;
  80519. 8020bae: 687b ldr r3, [r7, #4]
  80520. 8020bb0: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  80521. 8020bb4: 3301 adds r3, #1
  80522. 8020bb6: b2da uxtb r2, r3
  80523. 8020bb8: 687b ldr r3, [r7, #4]
  80524. 8020bba: f883 2042 strb.w r2, [r3, #66] @ 0x42
  80525. }
  80526. /* Do the actual retransmission */
  80527. tcp_output(pcb);
  80528. 8020bbe: 6878 ldr r0, [r7, #4]
  80529. 8020bc0: f7ff fc70 bl 80204a4 <tcp_output>
  80530. }
  80531. 8020bc4: bf00 nop
  80532. 8020bc6: 3708 adds r7, #8
  80533. 8020bc8: 46bd mov sp, r7
  80534. 8020bca: bd80 pop {r7, pc}
  80535. 8020bcc: 0802fa24 .word 0x0802fa24
  80536. 8020bd0: 080300e0 .word 0x080300e0
  80537. 8020bd4: 0802fa78 .word 0x0802fa78
  80538. 08020bd8 <tcp_rexmit_rto>:
  80539. *
  80540. * @param pcb the tcp_pcb for which to re-enqueue all unacked segments
  80541. */
  80542. void
  80543. tcp_rexmit_rto(struct tcp_pcb *pcb)
  80544. {
  80545. 8020bd8: b580 push {r7, lr}
  80546. 8020bda: b082 sub sp, #8
  80547. 8020bdc: af00 add r7, sp, #0
  80548. 8020bde: 6078 str r0, [r7, #4]
  80549. LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL);
  80550. 8020be0: 687b ldr r3, [r7, #4]
  80551. 8020be2: 2b00 cmp r3, #0
  80552. 8020be4: d106 bne.n 8020bf4 <tcp_rexmit_rto+0x1c>
  80553. 8020be6: 4b0a ldr r3, [pc, #40] @ (8020c10 <tcp_rexmit_rto+0x38>)
  80554. 8020be8: f240 62ad movw r2, #1709 @ 0x6ad
  80555. 8020bec: 4909 ldr r1, [pc, #36] @ (8020c14 <tcp_rexmit_rto+0x3c>)
  80556. 8020bee: 480a ldr r0, [pc, #40] @ (8020c18 <tcp_rexmit_rto+0x40>)
  80557. 8020bf0: f009 fae4 bl 802a1bc <iprintf>
  80558. if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) {
  80559. 8020bf4: 6878 ldr r0, [r7, #4]
  80560. 8020bf6: f7ff ff4d bl 8020a94 <tcp_rexmit_rto_prepare>
  80561. 8020bfa: 4603 mov r3, r0
  80562. 8020bfc: 2b00 cmp r3, #0
  80563. 8020bfe: d102 bne.n 8020c06 <tcp_rexmit_rto+0x2e>
  80564. tcp_rexmit_rto_commit(pcb);
  80565. 8020c00: 6878 ldr r0, [r7, #4]
  80566. 8020c02: f7ff ffc1 bl 8020b88 <tcp_rexmit_rto_commit>
  80567. }
  80568. }
  80569. 8020c06: bf00 nop
  80570. 8020c08: 3708 adds r7, #8
  80571. 8020c0a: 46bd mov sp, r7
  80572. 8020c0c: bd80 pop {r7, pc}
  80573. 8020c0e: bf00 nop
  80574. 8020c10: 0802fa24 .word 0x0802fa24
  80575. 8020c14: 08030104 .word 0x08030104
  80576. 8020c18: 0802fa78 .word 0x0802fa78
  80577. 08020c1c <tcp_rexmit>:
  80578. *
  80579. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  80580. */
  80581. err_t
  80582. tcp_rexmit(struct tcp_pcb *pcb)
  80583. {
  80584. 8020c1c: b590 push {r4, r7, lr}
  80585. 8020c1e: b085 sub sp, #20
  80586. 8020c20: af00 add r7, sp, #0
  80587. 8020c22: 6078 str r0, [r7, #4]
  80588. struct tcp_seg *seg;
  80589. struct tcp_seg **cur_seg;
  80590. LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL);
  80591. 8020c24: 687b ldr r3, [r7, #4]
  80592. 8020c26: 2b00 cmp r3, #0
  80593. 8020c28: d106 bne.n 8020c38 <tcp_rexmit+0x1c>
  80594. 8020c2a: 4b2f ldr r3, [pc, #188] @ (8020ce8 <tcp_rexmit+0xcc>)
  80595. 8020c2c: f240 62c1 movw r2, #1729 @ 0x6c1
  80596. 8020c30: 492e ldr r1, [pc, #184] @ (8020cec <tcp_rexmit+0xd0>)
  80597. 8020c32: 482f ldr r0, [pc, #188] @ (8020cf0 <tcp_rexmit+0xd4>)
  80598. 8020c34: f009 fac2 bl 802a1bc <iprintf>
  80599. if (pcb->unacked == NULL) {
  80600. 8020c38: 687b ldr r3, [r7, #4]
  80601. 8020c3a: 6f1b ldr r3, [r3, #112] @ 0x70
  80602. 8020c3c: 2b00 cmp r3, #0
  80603. 8020c3e: d102 bne.n 8020c46 <tcp_rexmit+0x2a>
  80604. return ERR_VAL;
  80605. 8020c40: f06f 0305 mvn.w r3, #5
  80606. 8020c44: e04c b.n 8020ce0 <tcp_rexmit+0xc4>
  80607. }
  80608. seg = pcb->unacked;
  80609. 8020c46: 687b ldr r3, [r7, #4]
  80610. 8020c48: 6f1b ldr r3, [r3, #112] @ 0x70
  80611. 8020c4a: 60bb str r3, [r7, #8]
  80612. /* Give up if the segment is still referenced by the netif driver
  80613. due to deferred transmission. */
  80614. if (tcp_output_segment_busy(seg)) {
  80615. 8020c4c: 68b8 ldr r0, [r7, #8]
  80616. 8020c4e: f7ff fe21 bl 8020894 <tcp_output_segment_busy>
  80617. 8020c52: 4603 mov r3, r0
  80618. 8020c54: 2b00 cmp r3, #0
  80619. 8020c56: d002 beq.n 8020c5e <tcp_rexmit+0x42>
  80620. LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n"));
  80621. return ERR_VAL;
  80622. 8020c58: f06f 0305 mvn.w r3, #5
  80623. 8020c5c: e040 b.n 8020ce0 <tcp_rexmit+0xc4>
  80624. }
  80625. /* Move the first unacked segment to the unsent queue */
  80626. /* Keep the unsent queue sorted. */
  80627. pcb->unacked = seg->next;
  80628. 8020c5e: 68bb ldr r3, [r7, #8]
  80629. 8020c60: 681a ldr r2, [r3, #0]
  80630. 8020c62: 687b ldr r3, [r7, #4]
  80631. 8020c64: 671a str r2, [r3, #112] @ 0x70
  80632. cur_seg = &(pcb->unsent);
  80633. 8020c66: 687b ldr r3, [r7, #4]
  80634. 8020c68: 336c adds r3, #108 @ 0x6c
  80635. 8020c6a: 60fb str r3, [r7, #12]
  80636. while (*cur_seg &&
  80637. 8020c6c: e002 b.n 8020c74 <tcp_rexmit+0x58>
  80638. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  80639. cur_seg = &((*cur_seg)->next );
  80640. 8020c6e: 68fb ldr r3, [r7, #12]
  80641. 8020c70: 681b ldr r3, [r3, #0]
  80642. 8020c72: 60fb str r3, [r7, #12]
  80643. while (*cur_seg &&
  80644. 8020c74: 68fb ldr r3, [r7, #12]
  80645. 8020c76: 681b ldr r3, [r3, #0]
  80646. 8020c78: 2b00 cmp r3, #0
  80647. 8020c7a: d011 beq.n 8020ca0 <tcp_rexmit+0x84>
  80648. TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
  80649. 8020c7c: 68fb ldr r3, [r7, #12]
  80650. 8020c7e: 681b ldr r3, [r3, #0]
  80651. 8020c80: 691b ldr r3, [r3, #16]
  80652. 8020c82: 685b ldr r3, [r3, #4]
  80653. 8020c84: 4618 mov r0, r3
  80654. 8020c86: f7f8 fb54 bl 8019332 <lwip_htonl>
  80655. 8020c8a: 4604 mov r4, r0
  80656. 8020c8c: 68bb ldr r3, [r7, #8]
  80657. 8020c8e: 691b ldr r3, [r3, #16]
  80658. 8020c90: 685b ldr r3, [r3, #4]
  80659. 8020c92: 4618 mov r0, r3
  80660. 8020c94: f7f8 fb4d bl 8019332 <lwip_htonl>
  80661. 8020c98: 4603 mov r3, r0
  80662. 8020c9a: 1ae3 subs r3, r4, r3
  80663. while (*cur_seg &&
  80664. 8020c9c: 2b00 cmp r3, #0
  80665. 8020c9e: dbe6 blt.n 8020c6e <tcp_rexmit+0x52>
  80666. }
  80667. seg->next = *cur_seg;
  80668. 8020ca0: 68fb ldr r3, [r7, #12]
  80669. 8020ca2: 681a ldr r2, [r3, #0]
  80670. 8020ca4: 68bb ldr r3, [r7, #8]
  80671. 8020ca6: 601a str r2, [r3, #0]
  80672. *cur_seg = seg;
  80673. 8020ca8: 68fb ldr r3, [r7, #12]
  80674. 8020caa: 68ba ldr r2, [r7, #8]
  80675. 8020cac: 601a str r2, [r3, #0]
  80676. #if TCP_OVERSIZE
  80677. if (seg->next == NULL) {
  80678. 8020cae: 68bb ldr r3, [r7, #8]
  80679. 8020cb0: 681b ldr r3, [r3, #0]
  80680. 8020cb2: 2b00 cmp r3, #0
  80681. 8020cb4: d103 bne.n 8020cbe <tcp_rexmit+0xa2>
  80682. /* the retransmitted segment is last in unsent, so reset unsent_oversize */
  80683. pcb->unsent_oversize = 0;
  80684. 8020cb6: 687b ldr r3, [r7, #4]
  80685. 8020cb8: 2200 movs r2, #0
  80686. 8020cba: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  80687. }
  80688. #endif /* TCP_OVERSIZE */
  80689. if (pcb->nrtx < 0xFF) {
  80690. 8020cbe: 687b ldr r3, [r7, #4]
  80691. 8020cc0: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  80692. 8020cc4: 2bff cmp r3, #255 @ 0xff
  80693. 8020cc6: d007 beq.n 8020cd8 <tcp_rexmit+0xbc>
  80694. ++pcb->nrtx;
  80695. 8020cc8: 687b ldr r3, [r7, #4]
  80696. 8020cca: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  80697. 8020cce: 3301 adds r3, #1
  80698. 8020cd0: b2da uxtb r2, r3
  80699. 8020cd2: 687b ldr r3, [r7, #4]
  80700. 8020cd4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  80701. }
  80702. /* Don't take any rtt measurements after retransmitting. */
  80703. pcb->rttest = 0;
  80704. 8020cd8: 687b ldr r3, [r7, #4]
  80705. 8020cda: 2200 movs r2, #0
  80706. 8020cdc: 635a str r2, [r3, #52] @ 0x34
  80707. /* Do the actual retransmission. */
  80708. MIB2_STATS_INC(mib2.tcpretranssegs);
  80709. /* No need to call tcp_output: we are always called from tcp_input()
  80710. and thus tcp_output directly returns. */
  80711. return ERR_OK;
  80712. 8020cde: 2300 movs r3, #0
  80713. }
  80714. 8020ce0: 4618 mov r0, r3
  80715. 8020ce2: 3714 adds r7, #20
  80716. 8020ce4: 46bd mov sp, r7
  80717. 8020ce6: bd90 pop {r4, r7, pc}
  80718. 8020ce8: 0802fa24 .word 0x0802fa24
  80719. 8020cec: 08030120 .word 0x08030120
  80720. 8020cf0: 0802fa78 .word 0x0802fa78
  80721. 08020cf4 <tcp_rexmit_fast>:
  80722. *
  80723. * @param pcb the tcp_pcb for which to retransmit the first unacked segment
  80724. */
  80725. void
  80726. tcp_rexmit_fast(struct tcp_pcb *pcb)
  80727. {
  80728. 8020cf4: b580 push {r7, lr}
  80729. 8020cf6: b082 sub sp, #8
  80730. 8020cf8: af00 add r7, sp, #0
  80731. 8020cfa: 6078 str r0, [r7, #4]
  80732. LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL);
  80733. 8020cfc: 687b ldr r3, [r7, #4]
  80734. 8020cfe: 2b00 cmp r3, #0
  80735. 8020d00: d106 bne.n 8020d10 <tcp_rexmit_fast+0x1c>
  80736. 8020d02: 4b2a ldr r3, [pc, #168] @ (8020dac <tcp_rexmit_fast+0xb8>)
  80737. 8020d04: f240 62f9 movw r2, #1785 @ 0x6f9
  80738. 8020d08: 4929 ldr r1, [pc, #164] @ (8020db0 <tcp_rexmit_fast+0xbc>)
  80739. 8020d0a: 482a ldr r0, [pc, #168] @ (8020db4 <tcp_rexmit_fast+0xc0>)
  80740. 8020d0c: f009 fa56 bl 802a1bc <iprintf>
  80741. if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) {
  80742. 8020d10: 687b ldr r3, [r7, #4]
  80743. 8020d12: 6f1b ldr r3, [r3, #112] @ 0x70
  80744. 8020d14: 2b00 cmp r3, #0
  80745. 8020d16: d045 beq.n 8020da4 <tcp_rexmit_fast+0xb0>
  80746. 8020d18: 687b ldr r3, [r7, #4]
  80747. 8020d1a: 8b5b ldrh r3, [r3, #26]
  80748. 8020d1c: f003 0304 and.w r3, r3, #4
  80749. 8020d20: 2b00 cmp r3, #0
  80750. 8020d22: d13f bne.n 8020da4 <tcp_rexmit_fast+0xb0>
  80751. LWIP_DEBUGF(TCP_FR_DEBUG,
  80752. ("tcp_receive: dupacks %"U16_F" (%"U32_F
  80753. "), fast retransmit %"U32_F"\n",
  80754. (u16_t)pcb->dupacks, pcb->lastack,
  80755. lwip_ntohl(pcb->unacked->tcphdr->seqno)));
  80756. if (tcp_rexmit(pcb) == ERR_OK) {
  80757. 8020d24: 6878 ldr r0, [r7, #4]
  80758. 8020d26: f7ff ff79 bl 8020c1c <tcp_rexmit>
  80759. 8020d2a: 4603 mov r3, r0
  80760. 8020d2c: 2b00 cmp r3, #0
  80761. 8020d2e: d139 bne.n 8020da4 <tcp_rexmit_fast+0xb0>
  80762. /* Set ssthresh to half of the minimum of the current
  80763. * cwnd and the advertised window */
  80764. pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2;
  80765. 8020d30: 687b ldr r3, [r7, #4]
  80766. 8020d32: f8b3 2060 ldrh.w r2, [r3, #96] @ 0x60
  80767. 8020d36: 687b ldr r3, [r7, #4]
  80768. 8020d38: f8b3 3048 ldrh.w r3, [r3, #72] @ 0x48
  80769. 8020d3c: 4293 cmp r3, r2
  80770. 8020d3e: bf28 it cs
  80771. 8020d40: 4613 movcs r3, r2
  80772. 8020d42: b29b uxth r3, r3
  80773. 8020d44: 2b00 cmp r3, #0
  80774. 8020d46: da00 bge.n 8020d4a <tcp_rexmit_fast+0x56>
  80775. 8020d48: 3301 adds r3, #1
  80776. 8020d4a: 105b asrs r3, r3, #1
  80777. 8020d4c: b29a uxth r2, r3
  80778. 8020d4e: 687b ldr r3, [r7, #4]
  80779. 8020d50: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  80780. /* The minimum value for ssthresh should be 2 MSS */
  80781. if (pcb->ssthresh < (2U * pcb->mss)) {
  80782. 8020d54: 687b ldr r3, [r7, #4]
  80783. 8020d56: f8b3 304a ldrh.w r3, [r3, #74] @ 0x4a
  80784. 8020d5a: 461a mov r2, r3
  80785. 8020d5c: 687b ldr r3, [r7, #4]
  80786. 8020d5e: 8e5b ldrh r3, [r3, #50] @ 0x32
  80787. 8020d60: 005b lsls r3, r3, #1
  80788. 8020d62: 429a cmp r2, r3
  80789. 8020d64: d206 bcs.n 8020d74 <tcp_rexmit_fast+0x80>
  80790. LWIP_DEBUGF(TCP_FR_DEBUG,
  80791. ("tcp_receive: The minimum value for ssthresh %"TCPWNDSIZE_F
  80792. " should be min 2 mss %"U16_F"...\n",
  80793. pcb->ssthresh, (u16_t)(2 * pcb->mss)));
  80794. pcb->ssthresh = 2 * pcb->mss;
  80795. 8020d66: 687b ldr r3, [r7, #4]
  80796. 8020d68: 8e5b ldrh r3, [r3, #50] @ 0x32
  80797. 8020d6a: 005b lsls r3, r3, #1
  80798. 8020d6c: b29a uxth r2, r3
  80799. 8020d6e: 687b ldr r3, [r7, #4]
  80800. 8020d70: f8a3 204a strh.w r2, [r3, #74] @ 0x4a
  80801. }
  80802. pcb->cwnd = pcb->ssthresh + 3 * pcb->mss;
  80803. 8020d74: 687b ldr r3, [r7, #4]
  80804. 8020d76: f8b3 204a ldrh.w r2, [r3, #74] @ 0x4a
  80805. 8020d7a: 687b ldr r3, [r7, #4]
  80806. 8020d7c: 8e5b ldrh r3, [r3, #50] @ 0x32
  80807. 8020d7e: 4619 mov r1, r3
  80808. 8020d80: 0049 lsls r1, r1, #1
  80809. 8020d82: 440b add r3, r1
  80810. 8020d84: b29b uxth r3, r3
  80811. 8020d86: 4413 add r3, r2
  80812. 8020d88: b29a uxth r2, r3
  80813. 8020d8a: 687b ldr r3, [r7, #4]
  80814. 8020d8c: f8a3 2048 strh.w r2, [r3, #72] @ 0x48
  80815. tcp_set_flags(pcb, TF_INFR);
  80816. 8020d90: 687b ldr r3, [r7, #4]
  80817. 8020d92: 8b5b ldrh r3, [r3, #26]
  80818. 8020d94: f043 0304 orr.w r3, r3, #4
  80819. 8020d98: b29a uxth r2, r3
  80820. 8020d9a: 687b ldr r3, [r7, #4]
  80821. 8020d9c: 835a strh r2, [r3, #26]
  80822. /* Reset the retransmission timer to prevent immediate rto retransmissions */
  80823. pcb->rtime = 0;
  80824. 8020d9e: 687b ldr r3, [r7, #4]
  80825. 8020da0: 2200 movs r2, #0
  80826. 8020da2: 861a strh r2, [r3, #48] @ 0x30
  80827. }
  80828. }
  80829. }
  80830. 8020da4: bf00 nop
  80831. 8020da6: 3708 adds r7, #8
  80832. 8020da8: 46bd mov sp, r7
  80833. 8020daa: bd80 pop {r7, pc}
  80834. 8020dac: 0802fa24 .word 0x0802fa24
  80835. 8020db0: 08030138 .word 0x08030138
  80836. 8020db4: 0802fa78 .word 0x0802fa78
  80837. 08020db8 <tcp_output_alloc_header_common>:
  80838. static struct pbuf *
  80839. tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen,
  80840. u32_t seqno_be /* already in network byte order */,
  80841. u16_t src_port, u16_t dst_port, u8_t flags, u16_t wnd)
  80842. {
  80843. 8020db8: b580 push {r7, lr}
  80844. 8020dba: b086 sub sp, #24
  80845. 8020dbc: af00 add r7, sp, #0
  80846. 8020dbe: 60f8 str r0, [r7, #12]
  80847. 8020dc0: 607b str r3, [r7, #4]
  80848. 8020dc2: 460b mov r3, r1
  80849. 8020dc4: 817b strh r3, [r7, #10]
  80850. 8020dc6: 4613 mov r3, r2
  80851. 8020dc8: 813b strh r3, [r7, #8]
  80852. struct tcp_hdr *tcphdr;
  80853. struct pbuf *p;
  80854. p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM);
  80855. 8020dca: 897a ldrh r2, [r7, #10]
  80856. 8020dcc: 893b ldrh r3, [r7, #8]
  80857. 8020dce: 4413 add r3, r2
  80858. 8020dd0: b29b uxth r3, r3
  80859. 8020dd2: 3314 adds r3, #20
  80860. 8020dd4: b29b uxth r3, r3
  80861. 8020dd6: f44f 7220 mov.w r2, #640 @ 0x280
  80862. 8020dda: 4619 mov r1, r3
  80863. 8020ddc: 2022 movs r0, #34 @ 0x22
  80864. 8020dde: f7f9 fc5f bl 801a6a0 <pbuf_alloc>
  80865. 8020de2: 6178 str r0, [r7, #20]
  80866. if (p != NULL) {
  80867. 8020de4: 697b ldr r3, [r7, #20]
  80868. 8020de6: 2b00 cmp r3, #0
  80869. 8020de8: d04d beq.n 8020e86 <tcp_output_alloc_header_common+0xce>
  80870. LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr",
  80871. 8020dea: 897b ldrh r3, [r7, #10]
  80872. 8020dec: 3313 adds r3, #19
  80873. 8020dee: 697a ldr r2, [r7, #20]
  80874. 8020df0: 8952 ldrh r2, [r2, #10]
  80875. 8020df2: 4293 cmp r3, r2
  80876. 8020df4: db06 blt.n 8020e04 <tcp_output_alloc_header_common+0x4c>
  80877. 8020df6: 4b26 ldr r3, [pc, #152] @ (8020e90 <tcp_output_alloc_header_common+0xd8>)
  80878. 8020df8: f240 7223 movw r2, #1827 @ 0x723
  80879. 8020dfc: 4925 ldr r1, [pc, #148] @ (8020e94 <tcp_output_alloc_header_common+0xdc>)
  80880. 8020dfe: 4826 ldr r0, [pc, #152] @ (8020e98 <tcp_output_alloc_header_common+0xe0>)
  80881. 8020e00: f009 f9dc bl 802a1bc <iprintf>
  80882. (p->len >= TCP_HLEN + optlen));
  80883. tcphdr = (struct tcp_hdr *)p->payload;
  80884. 8020e04: 697b ldr r3, [r7, #20]
  80885. 8020e06: 685b ldr r3, [r3, #4]
  80886. 8020e08: 613b str r3, [r7, #16]
  80887. tcphdr->src = lwip_htons(src_port);
  80888. 8020e0a: 8c3b ldrh r3, [r7, #32]
  80889. 8020e0c: 4618 mov r0, r3
  80890. 8020e0e: f7f8 fa7b bl 8019308 <lwip_htons>
  80891. 8020e12: 4603 mov r3, r0
  80892. 8020e14: 461a mov r2, r3
  80893. 8020e16: 693b ldr r3, [r7, #16]
  80894. 8020e18: 801a strh r2, [r3, #0]
  80895. tcphdr->dest = lwip_htons(dst_port);
  80896. 8020e1a: 8cbb ldrh r3, [r7, #36] @ 0x24
  80897. 8020e1c: 4618 mov r0, r3
  80898. 8020e1e: f7f8 fa73 bl 8019308 <lwip_htons>
  80899. 8020e22: 4603 mov r3, r0
  80900. 8020e24: 461a mov r2, r3
  80901. 8020e26: 693b ldr r3, [r7, #16]
  80902. 8020e28: 805a strh r2, [r3, #2]
  80903. tcphdr->seqno = seqno_be;
  80904. 8020e2a: 693b ldr r3, [r7, #16]
  80905. 8020e2c: 687a ldr r2, [r7, #4]
  80906. 8020e2e: 605a str r2, [r3, #4]
  80907. tcphdr->ackno = lwip_htonl(ackno);
  80908. 8020e30: 68f8 ldr r0, [r7, #12]
  80909. 8020e32: f7f8 fa7e bl 8019332 <lwip_htonl>
  80910. 8020e36: 4602 mov r2, r0
  80911. 8020e38: 693b ldr r3, [r7, #16]
  80912. 8020e3a: 609a str r2, [r3, #8]
  80913. TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags);
  80914. 8020e3c: 897b ldrh r3, [r7, #10]
  80915. 8020e3e: 089b lsrs r3, r3, #2
  80916. 8020e40: b29b uxth r3, r3
  80917. 8020e42: 3305 adds r3, #5
  80918. 8020e44: b29b uxth r3, r3
  80919. 8020e46: 031b lsls r3, r3, #12
  80920. 8020e48: b29a uxth r2, r3
  80921. 8020e4a: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  80922. 8020e4e: b29b uxth r3, r3
  80923. 8020e50: 4313 orrs r3, r2
  80924. 8020e52: b29b uxth r3, r3
  80925. 8020e54: 4618 mov r0, r3
  80926. 8020e56: f7f8 fa57 bl 8019308 <lwip_htons>
  80927. 8020e5a: 4603 mov r3, r0
  80928. 8020e5c: 461a mov r2, r3
  80929. 8020e5e: 693b ldr r3, [r7, #16]
  80930. 8020e60: 819a strh r2, [r3, #12]
  80931. tcphdr->wnd = lwip_htons(wnd);
  80932. 8020e62: 8dbb ldrh r3, [r7, #44] @ 0x2c
  80933. 8020e64: 4618 mov r0, r3
  80934. 8020e66: f7f8 fa4f bl 8019308 <lwip_htons>
  80935. 8020e6a: 4603 mov r3, r0
  80936. 8020e6c: 461a mov r2, r3
  80937. 8020e6e: 693b ldr r3, [r7, #16]
  80938. 8020e70: 81da strh r2, [r3, #14]
  80939. tcphdr->chksum = 0;
  80940. 8020e72: 693b ldr r3, [r7, #16]
  80941. 8020e74: 2200 movs r2, #0
  80942. 8020e76: 741a strb r2, [r3, #16]
  80943. 8020e78: 2200 movs r2, #0
  80944. 8020e7a: 745a strb r2, [r3, #17]
  80945. tcphdr->urgp = 0;
  80946. 8020e7c: 693b ldr r3, [r7, #16]
  80947. 8020e7e: 2200 movs r2, #0
  80948. 8020e80: 749a strb r2, [r3, #18]
  80949. 8020e82: 2200 movs r2, #0
  80950. 8020e84: 74da strb r2, [r3, #19]
  80951. }
  80952. return p;
  80953. 8020e86: 697b ldr r3, [r7, #20]
  80954. }
  80955. 8020e88: 4618 mov r0, r3
  80956. 8020e8a: 3718 adds r7, #24
  80957. 8020e8c: 46bd mov sp, r7
  80958. 8020e8e: bd80 pop {r7, pc}
  80959. 8020e90: 0802fa24 .word 0x0802fa24
  80960. 8020e94: 08030158 .word 0x08030158
  80961. 8020e98: 0802fa78 .word 0x0802fa78
  80962. 08020e9c <tcp_output_alloc_header>:
  80963. * @return pbuf with p->payload being the tcp_hdr
  80964. */
  80965. static struct pbuf *
  80966. tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen,
  80967. u32_t seqno_be /* already in network byte order */)
  80968. {
  80969. 8020e9c: b5b0 push {r4, r5, r7, lr}
  80970. 8020e9e: b08a sub sp, #40 @ 0x28
  80971. 8020ea0: af04 add r7, sp, #16
  80972. 8020ea2: 60f8 str r0, [r7, #12]
  80973. 8020ea4: 607b str r3, [r7, #4]
  80974. 8020ea6: 460b mov r3, r1
  80975. 8020ea8: 817b strh r3, [r7, #10]
  80976. 8020eaa: 4613 mov r3, r2
  80977. 8020eac: 813b strh r3, [r7, #8]
  80978. struct pbuf *p;
  80979. LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL);
  80980. 8020eae: 68fb ldr r3, [r7, #12]
  80981. 8020eb0: 2b00 cmp r3, #0
  80982. 8020eb2: d106 bne.n 8020ec2 <tcp_output_alloc_header+0x26>
  80983. 8020eb4: 4b15 ldr r3, [pc, #84] @ (8020f0c <tcp_output_alloc_header+0x70>)
  80984. 8020eb6: f240 7242 movw r2, #1858 @ 0x742
  80985. 8020eba: 4915 ldr r1, [pc, #84] @ (8020f10 <tcp_output_alloc_header+0x74>)
  80986. 8020ebc: 4815 ldr r0, [pc, #84] @ (8020f14 <tcp_output_alloc_header+0x78>)
  80987. 8020ebe: f009 f97d bl 802a1bc <iprintf>
  80988. p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen,
  80989. 8020ec2: 68fb ldr r3, [r7, #12]
  80990. 8020ec4: 6a58 ldr r0, [r3, #36] @ 0x24
  80991. 8020ec6: 68fb ldr r3, [r7, #12]
  80992. 8020ec8: 8adb ldrh r3, [r3, #22]
  80993. 8020eca: 68fa ldr r2, [r7, #12]
  80994. 8020ecc: 8b12 ldrh r2, [r2, #24]
  80995. 8020ece: 68f9 ldr r1, [r7, #12]
  80996. 8020ed0: 8d49 ldrh r1, [r1, #42] @ 0x2a
  80997. 8020ed2: 893d ldrh r5, [r7, #8]
  80998. 8020ed4: 897c ldrh r4, [r7, #10]
  80999. 8020ed6: 9103 str r1, [sp, #12]
  81000. 8020ed8: 2110 movs r1, #16
  81001. 8020eda: 9102 str r1, [sp, #8]
  81002. 8020edc: 9201 str r2, [sp, #4]
  81003. 8020ede: 9300 str r3, [sp, #0]
  81004. 8020ee0: 687b ldr r3, [r7, #4]
  81005. 8020ee2: 462a mov r2, r5
  81006. 8020ee4: 4621 mov r1, r4
  81007. 8020ee6: f7ff ff67 bl 8020db8 <tcp_output_alloc_header_common>
  81008. 8020eea: 6178 str r0, [r7, #20]
  81009. seqno_be, pcb->local_port, pcb->remote_port, TCP_ACK,
  81010. TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd)));
  81011. if (p != NULL) {
  81012. 8020eec: 697b ldr r3, [r7, #20]
  81013. 8020eee: 2b00 cmp r3, #0
  81014. 8020ef0: d006 beq.n 8020f00 <tcp_output_alloc_header+0x64>
  81015. /* If we're sending a packet, update the announced right window edge */
  81016. pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd;
  81017. 8020ef2: 68fb ldr r3, [r7, #12]
  81018. 8020ef4: 6a5b ldr r3, [r3, #36] @ 0x24
  81019. 8020ef6: 68fa ldr r2, [r7, #12]
  81020. 8020ef8: 8d52 ldrh r2, [r2, #42] @ 0x2a
  81021. 8020efa: 441a add r2, r3
  81022. 8020efc: 68fb ldr r3, [r7, #12]
  81023. 8020efe: 62da str r2, [r3, #44] @ 0x2c
  81024. }
  81025. return p;
  81026. 8020f00: 697b ldr r3, [r7, #20]
  81027. }
  81028. 8020f02: 4618 mov r0, r3
  81029. 8020f04: 3718 adds r7, #24
  81030. 8020f06: 46bd mov sp, r7
  81031. 8020f08: bdb0 pop {r4, r5, r7, pc}
  81032. 8020f0a: bf00 nop
  81033. 8020f0c: 0802fa24 .word 0x0802fa24
  81034. 8020f10: 08030188 .word 0x08030188
  81035. 8020f14: 0802fa78 .word 0x0802fa78
  81036. 08020f18 <tcp_output_fill_options>:
  81037. /* Fill in options for control segments */
  81038. static void
  81039. tcp_output_fill_options(const struct tcp_pcb *pcb, struct pbuf *p, u8_t optflags, u8_t num_sacks)
  81040. {
  81041. 8020f18: b580 push {r7, lr}
  81042. 8020f1a: b088 sub sp, #32
  81043. 8020f1c: af00 add r7, sp, #0
  81044. 8020f1e: 60f8 str r0, [r7, #12]
  81045. 8020f20: 60b9 str r1, [r7, #8]
  81046. 8020f22: 4611 mov r1, r2
  81047. 8020f24: 461a mov r2, r3
  81048. 8020f26: 460b mov r3, r1
  81049. 8020f28: 71fb strb r3, [r7, #7]
  81050. 8020f2a: 4613 mov r3, r2
  81051. 8020f2c: 71bb strb r3, [r7, #6]
  81052. struct tcp_hdr *tcphdr;
  81053. u32_t *opts;
  81054. u16_t sacks_len = 0;
  81055. 8020f2e: 2300 movs r3, #0
  81056. 8020f30: 83fb strh r3, [r7, #30]
  81057. LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL);
  81058. 8020f32: 68bb ldr r3, [r7, #8]
  81059. 8020f34: 2b00 cmp r3, #0
  81060. 8020f36: d106 bne.n 8020f46 <tcp_output_fill_options+0x2e>
  81061. 8020f38: 4b12 ldr r3, [pc, #72] @ (8020f84 <tcp_output_fill_options+0x6c>)
  81062. 8020f3a: f240 7256 movw r2, #1878 @ 0x756
  81063. 8020f3e: 4912 ldr r1, [pc, #72] @ (8020f88 <tcp_output_fill_options+0x70>)
  81064. 8020f40: 4812 ldr r0, [pc, #72] @ (8020f8c <tcp_output_fill_options+0x74>)
  81065. 8020f42: f009 f93b bl 802a1bc <iprintf>
  81066. tcphdr = (struct tcp_hdr *)p->payload;
  81067. 8020f46: 68bb ldr r3, [r7, #8]
  81068. 8020f48: 685b ldr r3, [r3, #4]
  81069. 8020f4a: 61bb str r3, [r7, #24]
  81070. opts = (u32_t *)(void *)(tcphdr + 1);
  81071. 8020f4c: 69bb ldr r3, [r7, #24]
  81072. 8020f4e: 3314 adds r3, #20
  81073. 8020f50: 617b str r3, [r7, #20]
  81074. opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, tcphdr, pcb, opts);
  81075. #endif
  81076. LWIP_UNUSED_ARG(pcb);
  81077. LWIP_UNUSED_ARG(sacks_len);
  81078. LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(tcphdr + 1)) + sacks_len * 4 + LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb));
  81079. 8020f52: 8bfb ldrh r3, [r7, #30]
  81080. 8020f54: 009b lsls r3, r3, #2
  81081. 8020f56: 461a mov r2, r3
  81082. 8020f58: 79fb ldrb r3, [r7, #7]
  81083. 8020f5a: 009b lsls r3, r3, #2
  81084. 8020f5c: f003 0304 and.w r3, r3, #4
  81085. 8020f60: 4413 add r3, r2
  81086. 8020f62: 3314 adds r3, #20
  81087. 8020f64: 69ba ldr r2, [r7, #24]
  81088. 8020f66: 4413 add r3, r2
  81089. 8020f68: 697a ldr r2, [r7, #20]
  81090. 8020f6a: 429a cmp r2, r3
  81091. 8020f6c: d006 beq.n 8020f7c <tcp_output_fill_options+0x64>
  81092. 8020f6e: 4b05 ldr r3, [pc, #20] @ (8020f84 <tcp_output_fill_options+0x6c>)
  81093. 8020f70: f240 7275 movw r2, #1909 @ 0x775
  81094. 8020f74: 4906 ldr r1, [pc, #24] @ (8020f90 <tcp_output_fill_options+0x78>)
  81095. 8020f76: 4805 ldr r0, [pc, #20] @ (8020f8c <tcp_output_fill_options+0x74>)
  81096. 8020f78: f009 f920 bl 802a1bc <iprintf>
  81097. LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */
  81098. LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */
  81099. }
  81100. 8020f7c: bf00 nop
  81101. 8020f7e: 3720 adds r7, #32
  81102. 8020f80: 46bd mov sp, r7
  81103. 8020f82: bd80 pop {r7, pc}
  81104. 8020f84: 0802fa24 .word 0x0802fa24
  81105. 8020f88: 080301b0 .word 0x080301b0
  81106. 8020f8c: 0802fa78 .word 0x0802fa78
  81107. 8020f90: 080300a8 .word 0x080300a8
  81108. 08020f94 <tcp_output_control_segment>:
  81109. * header checksum and calling ip_output_if while handling netif hints and stats.
  81110. */
  81111. static err_t
  81112. tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p,
  81113. const ip_addr_t *src, const ip_addr_t *dst)
  81114. {
  81115. 8020f94: b580 push {r7, lr}
  81116. 8020f96: b08a sub sp, #40 @ 0x28
  81117. 8020f98: af04 add r7, sp, #16
  81118. 8020f9a: 60f8 str r0, [r7, #12]
  81119. 8020f9c: 60b9 str r1, [r7, #8]
  81120. 8020f9e: 607a str r2, [r7, #4]
  81121. 8020fa0: 603b str r3, [r7, #0]
  81122. err_t err;
  81123. struct netif *netif;
  81124. LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL);
  81125. 8020fa2: 68bb ldr r3, [r7, #8]
  81126. 8020fa4: 2b00 cmp r3, #0
  81127. 8020fa6: d106 bne.n 8020fb6 <tcp_output_control_segment+0x22>
  81128. 8020fa8: 4b1c ldr r3, [pc, #112] @ (802101c <tcp_output_control_segment+0x88>)
  81129. 8020faa: f240 7287 movw r2, #1927 @ 0x787
  81130. 8020fae: 491c ldr r1, [pc, #112] @ (8021020 <tcp_output_control_segment+0x8c>)
  81131. 8020fb0: 481c ldr r0, [pc, #112] @ (8021024 <tcp_output_control_segment+0x90>)
  81132. 8020fb2: f009 f903 bl 802a1bc <iprintf>
  81133. netif = tcp_route(pcb, src, dst);
  81134. 8020fb6: 683a ldr r2, [r7, #0]
  81135. 8020fb8: 6879 ldr r1, [r7, #4]
  81136. 8020fba: 68f8 ldr r0, [r7, #12]
  81137. 8020fbc: f7fe fa78 bl 801f4b0 <tcp_route>
  81138. 8020fc0: 6138 str r0, [r7, #16]
  81139. if (netif == NULL) {
  81140. 8020fc2: 693b ldr r3, [r7, #16]
  81141. 8020fc4: 2b00 cmp r3, #0
  81142. 8020fc6: d102 bne.n 8020fce <tcp_output_control_segment+0x3a>
  81143. err = ERR_RTE;
  81144. 8020fc8: 23fc movs r3, #252 @ 0xfc
  81145. 8020fca: 75fb strb r3, [r7, #23]
  81146. 8020fcc: e01c b.n 8021008 <tcp_output_control_segment+0x74>
  81147. struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload;
  81148. tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
  81149. src, dst);
  81150. }
  81151. #endif
  81152. if (pcb != NULL) {
  81153. 8020fce: 68fb ldr r3, [r7, #12]
  81154. 8020fd0: 2b00 cmp r3, #0
  81155. 8020fd2: d006 beq.n 8020fe2 <tcp_output_control_segment+0x4e>
  81156. NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints)));
  81157. ttl = pcb->ttl;
  81158. 8020fd4: 68fb ldr r3, [r7, #12]
  81159. 8020fd6: 7adb ldrb r3, [r3, #11]
  81160. 8020fd8: 75bb strb r3, [r7, #22]
  81161. tos = pcb->tos;
  81162. 8020fda: 68fb ldr r3, [r7, #12]
  81163. 8020fdc: 7a9b ldrb r3, [r3, #10]
  81164. 8020fde: 757b strb r3, [r7, #21]
  81165. 8020fe0: e003 b.n 8020fea <tcp_output_control_segment+0x56>
  81166. } else {
  81167. /* Send output with hardcoded TTL/HL since we have no access to the pcb */
  81168. ttl = TCP_TTL;
  81169. 8020fe2: 23ff movs r3, #255 @ 0xff
  81170. 8020fe4: 75bb strb r3, [r7, #22]
  81171. tos = 0;
  81172. 8020fe6: 2300 movs r3, #0
  81173. 8020fe8: 757b strb r3, [r7, #21]
  81174. }
  81175. TCP_STATS_INC(tcp.xmit);
  81176. err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif);
  81177. 8020fea: 7dba ldrb r2, [r7, #22]
  81178. 8020fec: 693b ldr r3, [r7, #16]
  81179. 8020fee: 9302 str r3, [sp, #8]
  81180. 8020ff0: 2306 movs r3, #6
  81181. 8020ff2: 9301 str r3, [sp, #4]
  81182. 8020ff4: 7d7b ldrb r3, [r7, #21]
  81183. 8020ff6: 9300 str r3, [sp, #0]
  81184. 8020ff8: 4613 mov r3, r2
  81185. 8020ffa: 683a ldr r2, [r7, #0]
  81186. 8020ffc: 6879 ldr r1, [r7, #4]
  81187. 8020ffe: 68b8 ldr r0, [r7, #8]
  81188. 8021000: f004 faac bl 802555c <ip4_output_if>
  81189. 8021004: 4603 mov r3, r0
  81190. 8021006: 75fb strb r3, [r7, #23]
  81191. NETIF_RESET_HINTS(netif);
  81192. }
  81193. pbuf_free(p);
  81194. 8021008: 68b8 ldr r0, [r7, #8]
  81195. 802100a: f7f9 fe5f bl 801accc <pbuf_free>
  81196. return err;
  81197. 802100e: f997 3017 ldrsb.w r3, [r7, #23]
  81198. }
  81199. 8021012: 4618 mov r0, r3
  81200. 8021014: 3718 adds r7, #24
  81201. 8021016: 46bd mov sp, r7
  81202. 8021018: bd80 pop {r7, pc}
  81203. 802101a: bf00 nop
  81204. 802101c: 0802fa24 .word 0x0802fa24
  81205. 8021020: 080301d8 .word 0x080301d8
  81206. 8021024: 0802fa78 .word 0x0802fa78
  81207. 08021028 <tcp_rst>:
  81208. */
  81209. void
  81210. tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno,
  81211. const ip_addr_t *local_ip, const ip_addr_t *remote_ip,
  81212. u16_t local_port, u16_t remote_port)
  81213. {
  81214. 8021028: b590 push {r4, r7, lr}
  81215. 802102a: b08b sub sp, #44 @ 0x2c
  81216. 802102c: af04 add r7, sp, #16
  81217. 802102e: 60f8 str r0, [r7, #12]
  81218. 8021030: 60b9 str r1, [r7, #8]
  81219. 8021032: 607a str r2, [r7, #4]
  81220. 8021034: 603b str r3, [r7, #0]
  81221. struct pbuf *p;
  81222. u16_t wnd;
  81223. u8_t optlen;
  81224. LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL);
  81225. 8021036: 683b ldr r3, [r7, #0]
  81226. 8021038: 2b00 cmp r3, #0
  81227. 802103a: d106 bne.n 802104a <tcp_rst+0x22>
  81228. 802103c: 4b1f ldr r3, [pc, #124] @ (80210bc <tcp_rst+0x94>)
  81229. 802103e: f240 72c4 movw r2, #1988 @ 0x7c4
  81230. 8021042: 491f ldr r1, [pc, #124] @ (80210c0 <tcp_rst+0x98>)
  81231. 8021044: 481f ldr r0, [pc, #124] @ (80210c4 <tcp_rst+0x9c>)
  81232. 8021046: f009 f8b9 bl 802a1bc <iprintf>
  81233. LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL);
  81234. 802104a: 6abb ldr r3, [r7, #40] @ 0x28
  81235. 802104c: 2b00 cmp r3, #0
  81236. 802104e: d106 bne.n 802105e <tcp_rst+0x36>
  81237. 8021050: 4b1a ldr r3, [pc, #104] @ (80210bc <tcp_rst+0x94>)
  81238. 8021052: f240 72c5 movw r2, #1989 @ 0x7c5
  81239. 8021056: 491c ldr r1, [pc, #112] @ (80210c8 <tcp_rst+0xa0>)
  81240. 8021058: 481a ldr r0, [pc, #104] @ (80210c4 <tcp_rst+0x9c>)
  81241. 802105a: f009 f8af bl 802a1bc <iprintf>
  81242. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  81243. 802105e: 2300 movs r3, #0
  81244. 8021060: 75fb strb r3, [r7, #23]
  81245. #if LWIP_WND_SCALE
  81246. wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF));
  81247. #else
  81248. wnd = PP_HTONS(TCP_WND);
  81249. 8021062: f24d 0316 movw r3, #53270 @ 0xd016
  81250. 8021066: 82bb strh r3, [r7, #20]
  81251. #endif
  81252. p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port,
  81253. 8021068: 7dfb ldrb r3, [r7, #23]
  81254. 802106a: b29c uxth r4, r3
  81255. 802106c: 68b8 ldr r0, [r7, #8]
  81256. 802106e: f7f8 f960 bl 8019332 <lwip_htonl>
  81257. 8021072: 4602 mov r2, r0
  81258. 8021074: 8abb ldrh r3, [r7, #20]
  81259. 8021076: 9303 str r3, [sp, #12]
  81260. 8021078: 2314 movs r3, #20
  81261. 802107a: 9302 str r3, [sp, #8]
  81262. 802107c: 8e3b ldrh r3, [r7, #48] @ 0x30
  81263. 802107e: 9301 str r3, [sp, #4]
  81264. 8021080: 8dbb ldrh r3, [r7, #44] @ 0x2c
  81265. 8021082: 9300 str r3, [sp, #0]
  81266. 8021084: 4613 mov r3, r2
  81267. 8021086: 2200 movs r2, #0
  81268. 8021088: 4621 mov r1, r4
  81269. 802108a: 6878 ldr r0, [r7, #4]
  81270. 802108c: f7ff fe94 bl 8020db8 <tcp_output_alloc_header_common>
  81271. 8021090: 6138 str r0, [r7, #16]
  81272. remote_port, TCP_RST | TCP_ACK, wnd);
  81273. if (p == NULL) {
  81274. 8021092: 693b ldr r3, [r7, #16]
  81275. 8021094: 2b00 cmp r3, #0
  81276. 8021096: d00c beq.n 80210b2 <tcp_rst+0x8a>
  81277. LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n"));
  81278. return;
  81279. }
  81280. tcp_output_fill_options(pcb, p, 0, optlen);
  81281. 8021098: 7dfb ldrb r3, [r7, #23]
  81282. 802109a: 2200 movs r2, #0
  81283. 802109c: 6939 ldr r1, [r7, #16]
  81284. 802109e: 68f8 ldr r0, [r7, #12]
  81285. 80210a0: f7ff ff3a bl 8020f18 <tcp_output_fill_options>
  81286. MIB2_STATS_INC(mib2.tcpoutrsts);
  81287. tcp_output_control_segment(pcb, p, local_ip, remote_ip);
  81288. 80210a4: 6abb ldr r3, [r7, #40] @ 0x28
  81289. 80210a6: 683a ldr r2, [r7, #0]
  81290. 80210a8: 6939 ldr r1, [r7, #16]
  81291. 80210aa: 68f8 ldr r0, [r7, #12]
  81292. 80210ac: f7ff ff72 bl 8020f94 <tcp_output_control_segment>
  81293. 80210b0: e000 b.n 80210b4 <tcp_rst+0x8c>
  81294. return;
  81295. 80210b2: bf00 nop
  81296. LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno));
  81297. }
  81298. 80210b4: 371c adds r7, #28
  81299. 80210b6: 46bd mov sp, r7
  81300. 80210b8: bd90 pop {r4, r7, pc}
  81301. 80210ba: bf00 nop
  81302. 80210bc: 0802fa24 .word 0x0802fa24
  81303. 80210c0: 08030204 .word 0x08030204
  81304. 80210c4: 0802fa78 .word 0x0802fa78
  81305. 80210c8: 08030220 .word 0x08030220
  81306. 080210cc <tcp_send_empty_ack>:
  81307. *
  81308. * @param pcb Protocol control block for the TCP connection to send the ACK
  81309. */
  81310. err_t
  81311. tcp_send_empty_ack(struct tcp_pcb *pcb)
  81312. {
  81313. 80210cc: b590 push {r4, r7, lr}
  81314. 80210ce: b087 sub sp, #28
  81315. 80210d0: af00 add r7, sp, #0
  81316. 80210d2: 6078 str r0, [r7, #4]
  81317. err_t err;
  81318. struct pbuf *p;
  81319. u8_t optlen, optflags = 0;
  81320. 80210d4: 2300 movs r3, #0
  81321. 80210d6: 75fb strb r3, [r7, #23]
  81322. u8_t num_sacks = 0;
  81323. 80210d8: 2300 movs r3, #0
  81324. 80210da: 75bb strb r3, [r7, #22]
  81325. LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL);
  81326. 80210dc: 687b ldr r3, [r7, #4]
  81327. 80210de: 2b00 cmp r3, #0
  81328. 80210e0: d106 bne.n 80210f0 <tcp_send_empty_ack+0x24>
  81329. 80210e2: 4b28 ldr r3, [pc, #160] @ (8021184 <tcp_send_empty_ack+0xb8>)
  81330. 80210e4: f240 72ea movw r2, #2026 @ 0x7ea
  81331. 80210e8: 4927 ldr r1, [pc, #156] @ (8021188 <tcp_send_empty_ack+0xbc>)
  81332. 80210ea: 4828 ldr r0, [pc, #160] @ (802118c <tcp_send_empty_ack+0xc0>)
  81333. 80210ec: f009 f866 bl 802a1bc <iprintf>
  81334. #if LWIP_TCP_TIMESTAMPS
  81335. if (pcb->flags & TF_TIMESTAMP) {
  81336. optflags = TF_SEG_OPTS_TS;
  81337. }
  81338. #endif
  81339. optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb);
  81340. 80210f0: 7dfb ldrb r3, [r7, #23]
  81341. 80210f2: 009b lsls r3, r3, #2
  81342. 80210f4: b2db uxtb r3, r3
  81343. 80210f6: f003 0304 and.w r3, r3, #4
  81344. 80210fa: 757b strb r3, [r7, #21]
  81345. if ((num_sacks = tcp_get_num_sacks(pcb, optlen)) > 0) {
  81346. optlen += 4 + num_sacks * 8; /* 4 bytes for header (including 2*NOP), plus 8B for each SACK */
  81347. }
  81348. #endif
  81349. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt));
  81350. 80210fc: 7d7b ldrb r3, [r7, #21]
  81351. 80210fe: b29c uxth r4, r3
  81352. 8021100: 687b ldr r3, [r7, #4]
  81353. 8021102: 6d1b ldr r3, [r3, #80] @ 0x50
  81354. 8021104: 4618 mov r0, r3
  81355. 8021106: f7f8 f914 bl 8019332 <lwip_htonl>
  81356. 802110a: 4603 mov r3, r0
  81357. 802110c: 2200 movs r2, #0
  81358. 802110e: 4621 mov r1, r4
  81359. 8021110: 6878 ldr r0, [r7, #4]
  81360. 8021112: f7ff fec3 bl 8020e9c <tcp_output_alloc_header>
  81361. 8021116: 6138 str r0, [r7, #16]
  81362. if (p == NULL) {
  81363. 8021118: 693b ldr r3, [r7, #16]
  81364. 802111a: 2b00 cmp r3, #0
  81365. 802111c: d109 bne.n 8021132 <tcp_send_empty_ack+0x66>
  81366. /* let tcp_fasttmr retry sending this ACK */
  81367. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  81368. 802111e: 687b ldr r3, [r7, #4]
  81369. 8021120: 8b5b ldrh r3, [r3, #26]
  81370. 8021122: f043 0303 orr.w r3, r3, #3
  81371. 8021126: b29a uxth r2, r3
  81372. 8021128: 687b ldr r3, [r7, #4]
  81373. 802112a: 835a strh r2, [r3, #26]
  81374. LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n"));
  81375. return ERR_BUF;
  81376. 802112c: f06f 0301 mvn.w r3, #1
  81377. 8021130: e023 b.n 802117a <tcp_send_empty_ack+0xae>
  81378. }
  81379. tcp_output_fill_options(pcb, p, optflags, num_sacks);
  81380. 8021132: 7dbb ldrb r3, [r7, #22]
  81381. 8021134: 7dfa ldrb r2, [r7, #23]
  81382. 8021136: 6939 ldr r1, [r7, #16]
  81383. 8021138: 6878 ldr r0, [r7, #4]
  81384. 802113a: f7ff feed bl 8020f18 <tcp_output_fill_options>
  81385. pcb->ts_lastacksent = pcb->rcv_nxt;
  81386. #endif
  81387. LWIP_DEBUGF(TCP_OUTPUT_DEBUG,
  81388. ("tcp_output: sending ACK for %"U32_F"\n", pcb->rcv_nxt));
  81389. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  81390. 802113e: 687a ldr r2, [r7, #4]
  81391. 8021140: 687b ldr r3, [r7, #4]
  81392. 8021142: 3304 adds r3, #4
  81393. 8021144: 6939 ldr r1, [r7, #16]
  81394. 8021146: 6878 ldr r0, [r7, #4]
  81395. 8021148: f7ff ff24 bl 8020f94 <tcp_output_control_segment>
  81396. 802114c: 4603 mov r3, r0
  81397. 802114e: 73fb strb r3, [r7, #15]
  81398. if (err != ERR_OK) {
  81399. 8021150: f997 300f ldrsb.w r3, [r7, #15]
  81400. 8021154: 2b00 cmp r3, #0
  81401. 8021156: d007 beq.n 8021168 <tcp_send_empty_ack+0x9c>
  81402. /* let tcp_fasttmr retry sending this ACK */
  81403. tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  81404. 8021158: 687b ldr r3, [r7, #4]
  81405. 802115a: 8b5b ldrh r3, [r3, #26]
  81406. 802115c: f043 0303 orr.w r3, r3, #3
  81407. 8021160: b29a uxth r2, r3
  81408. 8021162: 687b ldr r3, [r7, #4]
  81409. 8021164: 835a strh r2, [r3, #26]
  81410. 8021166: e006 b.n 8021176 <tcp_send_empty_ack+0xaa>
  81411. } else {
  81412. /* remove ACK flags from the PCB, as we sent an empty ACK now */
  81413. tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW);
  81414. 8021168: 687b ldr r3, [r7, #4]
  81415. 802116a: 8b5b ldrh r3, [r3, #26]
  81416. 802116c: f023 0303 bic.w r3, r3, #3
  81417. 8021170: b29a uxth r2, r3
  81418. 8021172: 687b ldr r3, [r7, #4]
  81419. 8021174: 835a strh r2, [r3, #26]
  81420. }
  81421. return err;
  81422. 8021176: f997 300f ldrsb.w r3, [r7, #15]
  81423. }
  81424. 802117a: 4618 mov r0, r3
  81425. 802117c: 371c adds r7, #28
  81426. 802117e: 46bd mov sp, r7
  81427. 8021180: bd90 pop {r4, r7, pc}
  81428. 8021182: bf00 nop
  81429. 8021184: 0802fa24 .word 0x0802fa24
  81430. 8021188: 0803023c .word 0x0803023c
  81431. 802118c: 0802fa78 .word 0x0802fa78
  81432. 08021190 <tcp_keepalive>:
  81433. *
  81434. * @param pcb the tcp_pcb for which to send a keepalive packet
  81435. */
  81436. err_t
  81437. tcp_keepalive(struct tcp_pcb *pcb)
  81438. {
  81439. 8021190: b590 push {r4, r7, lr}
  81440. 8021192: b085 sub sp, #20
  81441. 8021194: af00 add r7, sp, #0
  81442. 8021196: 6078 str r0, [r7, #4]
  81443. err_t err;
  81444. struct pbuf *p;
  81445. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  81446. 8021198: 2300 movs r3, #0
  81447. 802119a: 72bb strb r3, [r7, #10]
  81448. LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL);
  81449. 802119c: 687b ldr r3, [r7, #4]
  81450. 802119e: 2b00 cmp r3, #0
  81451. 80211a0: d106 bne.n 80211b0 <tcp_keepalive+0x20>
  81452. 80211a2: 4b18 ldr r3, [pc, #96] @ (8021204 <tcp_keepalive+0x74>)
  81453. 80211a4: f640 0224 movw r2, #2084 @ 0x824
  81454. 80211a8: 4917 ldr r1, [pc, #92] @ (8021208 <tcp_keepalive+0x78>)
  81455. 80211aa: 4818 ldr r0, [pc, #96] @ (802120c <tcp_keepalive+0x7c>)
  81456. 80211ac: f009 f806 bl 802a1bc <iprintf>
  81457. LWIP_DEBUGF(TCP_DEBUG, ("\n"));
  81458. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: tcp_ticks %"U32_F" pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  81459. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  81460. p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt - 1));
  81461. 80211b0: 7abb ldrb r3, [r7, #10]
  81462. 80211b2: b29c uxth r4, r3
  81463. 80211b4: 687b ldr r3, [r7, #4]
  81464. 80211b6: 6d1b ldr r3, [r3, #80] @ 0x50
  81465. 80211b8: 3b01 subs r3, #1
  81466. 80211ba: 4618 mov r0, r3
  81467. 80211bc: f7f8 f8b9 bl 8019332 <lwip_htonl>
  81468. 80211c0: 4603 mov r3, r0
  81469. 80211c2: 2200 movs r2, #0
  81470. 80211c4: 4621 mov r1, r4
  81471. 80211c6: 6878 ldr r0, [r7, #4]
  81472. 80211c8: f7ff fe68 bl 8020e9c <tcp_output_alloc_header>
  81473. 80211cc: 60f8 str r0, [r7, #12]
  81474. if (p == NULL) {
  81475. 80211ce: 68fb ldr r3, [r7, #12]
  81476. 80211d0: 2b00 cmp r3, #0
  81477. 80211d2: d102 bne.n 80211da <tcp_keepalive+0x4a>
  81478. LWIP_DEBUGF(TCP_DEBUG,
  81479. ("tcp_keepalive: could not allocate memory for pbuf\n"));
  81480. return ERR_MEM;
  81481. 80211d4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  81482. 80211d8: e010 b.n 80211fc <tcp_keepalive+0x6c>
  81483. }
  81484. tcp_output_fill_options(pcb, p, 0, optlen);
  81485. 80211da: 7abb ldrb r3, [r7, #10]
  81486. 80211dc: 2200 movs r2, #0
  81487. 80211de: 68f9 ldr r1, [r7, #12]
  81488. 80211e0: 6878 ldr r0, [r7, #4]
  81489. 80211e2: f7ff fe99 bl 8020f18 <tcp_output_fill_options>
  81490. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  81491. 80211e6: 687a ldr r2, [r7, #4]
  81492. 80211e8: 687b ldr r3, [r7, #4]
  81493. 80211ea: 3304 adds r3, #4
  81494. 80211ec: 68f9 ldr r1, [r7, #12]
  81495. 80211ee: 6878 ldr r0, [r7, #4]
  81496. 80211f0: f7ff fed0 bl 8020f94 <tcp_output_control_segment>
  81497. 80211f4: 4603 mov r3, r0
  81498. 80211f6: 72fb strb r3, [r7, #11]
  81499. LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: seqno %"U32_F" ackno %"U32_F" err %d.\n",
  81500. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  81501. return err;
  81502. 80211f8: f997 300b ldrsb.w r3, [r7, #11]
  81503. }
  81504. 80211fc: 4618 mov r0, r3
  81505. 80211fe: 3714 adds r7, #20
  81506. 8021200: 46bd mov sp, r7
  81507. 8021202: bd90 pop {r4, r7, pc}
  81508. 8021204: 0802fa24 .word 0x0802fa24
  81509. 8021208: 0803025c .word 0x0803025c
  81510. 802120c: 0802fa78 .word 0x0802fa78
  81511. 08021210 <tcp_zero_window_probe>:
  81512. *
  81513. * @param pcb the tcp_pcb for which to send a zero-window probe packet
  81514. */
  81515. err_t
  81516. tcp_zero_window_probe(struct tcp_pcb *pcb)
  81517. {
  81518. 8021210: b590 push {r4, r7, lr}
  81519. 8021212: b08b sub sp, #44 @ 0x2c
  81520. 8021214: af00 add r7, sp, #0
  81521. 8021216: 6078 str r0, [r7, #4]
  81522. struct tcp_hdr *tcphdr;
  81523. struct tcp_seg *seg;
  81524. u16_t len;
  81525. u8_t is_fin;
  81526. u32_t snd_nxt;
  81527. u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);
  81528. 8021218: 2300 movs r3, #0
  81529. 802121a: 74fb strb r3, [r7, #19]
  81530. LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL);
  81531. 802121c: 687b ldr r3, [r7, #4]
  81532. 802121e: 2b00 cmp r3, #0
  81533. 8021220: d106 bne.n 8021230 <tcp_zero_window_probe+0x20>
  81534. 8021222: 4b4d ldr r3, [pc, #308] @ (8021358 <tcp_zero_window_probe+0x148>)
  81535. 8021224: f640 024f movw r2, #2127 @ 0x84f
  81536. 8021228: 494c ldr r1, [pc, #304] @ (802135c <tcp_zero_window_probe+0x14c>)
  81537. 802122a: 484d ldr r0, [pc, #308] @ (8021360 <tcp_zero_window_probe+0x150>)
  81538. 802122c: f008 ffc6 bl 802a1bc <iprintf>
  81539. ("tcp_zero_window_probe: tcp_ticks %"U32_F
  81540. " pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n",
  81541. tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent));
  81542. /* Only consider unsent, persist timer should be off when there is data in-flight */
  81543. seg = pcb->unsent;
  81544. 8021230: 687b ldr r3, [r7, #4]
  81545. 8021232: 6edb ldr r3, [r3, #108] @ 0x6c
  81546. 8021234: 627b str r3, [r7, #36] @ 0x24
  81547. if (seg == NULL) {
  81548. 8021236: 6a7b ldr r3, [r7, #36] @ 0x24
  81549. 8021238: 2b00 cmp r3, #0
  81550. 802123a: d101 bne.n 8021240 <tcp_zero_window_probe+0x30>
  81551. /* Not expected, persist timer should be off when the send buffer is empty */
  81552. return ERR_OK;
  81553. 802123c: 2300 movs r3, #0
  81554. 802123e: e087 b.n 8021350 <tcp_zero_window_probe+0x140>
  81555. /* increment probe count. NOTE: we record probe even if it fails
  81556. to actually transmit due to an error. This ensures memory exhaustion/
  81557. routing problem doesn't leave a zero-window pcb as an indefinite zombie.
  81558. RTO mechanism has similar behavior, see pcb->nrtx */
  81559. if (pcb->persist_probe < 0xFF) {
  81560. 8021240: 687b ldr r3, [r7, #4]
  81561. 8021242: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  81562. 8021246: 2bff cmp r3, #255 @ 0xff
  81563. 8021248: d007 beq.n 802125a <tcp_zero_window_probe+0x4a>
  81564. ++pcb->persist_probe;
  81565. 802124a: 687b ldr r3, [r7, #4]
  81566. 802124c: f893 309a ldrb.w r3, [r3, #154] @ 0x9a
  81567. 8021250: 3301 adds r3, #1
  81568. 8021252: b2da uxtb r2, r3
  81569. 8021254: 687b ldr r3, [r7, #4]
  81570. 8021256: f883 209a strb.w r2, [r3, #154] @ 0x9a
  81571. }
  81572. is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0);
  81573. 802125a: 6a7b ldr r3, [r7, #36] @ 0x24
  81574. 802125c: 691b ldr r3, [r3, #16]
  81575. 802125e: 899b ldrh r3, [r3, #12]
  81576. 8021260: b29b uxth r3, r3
  81577. 8021262: 4618 mov r0, r3
  81578. 8021264: f7f8 f850 bl 8019308 <lwip_htons>
  81579. 8021268: 4603 mov r3, r0
  81580. 802126a: b2db uxtb r3, r3
  81581. 802126c: f003 0301 and.w r3, r3, #1
  81582. 8021270: 2b00 cmp r3, #0
  81583. 8021272: d005 beq.n 8021280 <tcp_zero_window_probe+0x70>
  81584. 8021274: 6a7b ldr r3, [r7, #36] @ 0x24
  81585. 8021276: 891b ldrh r3, [r3, #8]
  81586. 8021278: 2b00 cmp r3, #0
  81587. 802127a: d101 bne.n 8021280 <tcp_zero_window_probe+0x70>
  81588. 802127c: 2301 movs r3, #1
  81589. 802127e: e000 b.n 8021282 <tcp_zero_window_probe+0x72>
  81590. 8021280: 2300 movs r3, #0
  81591. 8021282: f887 3023 strb.w r3, [r7, #35] @ 0x23
  81592. /* we want to send one seqno: either FIN or data (no options) */
  81593. len = is_fin ? 0 : 1;
  81594. 8021286: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  81595. 802128a: 2b00 cmp r3, #0
  81596. 802128c: bf0c ite eq
  81597. 802128e: 2301 moveq r3, #1
  81598. 8021290: 2300 movne r3, #0
  81599. 8021292: b2db uxtb r3, r3
  81600. 8021294: 843b strh r3, [r7, #32]
  81601. p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno);
  81602. 8021296: 7cfb ldrb r3, [r7, #19]
  81603. 8021298: b299 uxth r1, r3
  81604. 802129a: 6a7b ldr r3, [r7, #36] @ 0x24
  81605. 802129c: 691b ldr r3, [r3, #16]
  81606. 802129e: 685b ldr r3, [r3, #4]
  81607. 80212a0: 8c3a ldrh r2, [r7, #32]
  81608. 80212a2: 6878 ldr r0, [r7, #4]
  81609. 80212a4: f7ff fdfa bl 8020e9c <tcp_output_alloc_header>
  81610. 80212a8: 61f8 str r0, [r7, #28]
  81611. if (p == NULL) {
  81612. 80212aa: 69fb ldr r3, [r7, #28]
  81613. 80212ac: 2b00 cmp r3, #0
  81614. 80212ae: d102 bne.n 80212b6 <tcp_zero_window_probe+0xa6>
  81615. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n"));
  81616. return ERR_MEM;
  81617. 80212b0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  81618. 80212b4: e04c b.n 8021350 <tcp_zero_window_probe+0x140>
  81619. }
  81620. tcphdr = (struct tcp_hdr *)p->payload;
  81621. 80212b6: 69fb ldr r3, [r7, #28]
  81622. 80212b8: 685b ldr r3, [r3, #4]
  81623. 80212ba: 61bb str r3, [r7, #24]
  81624. if (is_fin) {
  81625. 80212bc: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  81626. 80212c0: 2b00 cmp r3, #0
  81627. 80212c2: d011 beq.n 80212e8 <tcp_zero_window_probe+0xd8>
  81628. /* FIN segment, no data */
  81629. TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN);
  81630. 80212c4: 69bb ldr r3, [r7, #24]
  81631. 80212c6: 899b ldrh r3, [r3, #12]
  81632. 80212c8: b29b uxth r3, r3
  81633. 80212ca: b21b sxth r3, r3
  81634. 80212cc: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  81635. 80212d0: b21c sxth r4, r3
  81636. 80212d2: 2011 movs r0, #17
  81637. 80212d4: f7f8 f818 bl 8019308 <lwip_htons>
  81638. 80212d8: 4603 mov r3, r0
  81639. 80212da: b21b sxth r3, r3
  81640. 80212dc: 4323 orrs r3, r4
  81641. 80212de: b21b sxth r3, r3
  81642. 80212e0: b29a uxth r2, r3
  81643. 80212e2: 69bb ldr r3, [r7, #24]
  81644. 80212e4: 819a strh r2, [r3, #12]
  81645. 80212e6: e010 b.n 802130a <tcp_zero_window_probe+0xfa>
  81646. } else {
  81647. /* Data segment, copy in one byte from the head of the unacked queue */
  81648. char *d = ((char *)p->payload + TCP_HLEN);
  81649. 80212e8: 69fb ldr r3, [r7, #28]
  81650. 80212ea: 685b ldr r3, [r3, #4]
  81651. 80212ec: 3314 adds r3, #20
  81652. 80212ee: 617b str r3, [r7, #20]
  81653. /* Depending on whether the segment has already been sent (unacked) or not
  81654. (unsent), seg->p->payload points to the IP header or TCP header.
  81655. Ensure we copy the first TCP data byte: */
  81656. pbuf_copy_partial(seg->p, d, 1, seg->p->tot_len - seg->len);
  81657. 80212f0: 6a7b ldr r3, [r7, #36] @ 0x24
  81658. 80212f2: 6858 ldr r0, [r3, #4]
  81659. 80212f4: 6a7b ldr r3, [r7, #36] @ 0x24
  81660. 80212f6: 685b ldr r3, [r3, #4]
  81661. 80212f8: 891a ldrh r2, [r3, #8]
  81662. 80212fa: 6a7b ldr r3, [r7, #36] @ 0x24
  81663. 80212fc: 891b ldrh r3, [r3, #8]
  81664. 80212fe: 1ad3 subs r3, r2, r3
  81665. 8021300: b29b uxth r3, r3
  81666. 8021302: 2201 movs r2, #1
  81667. 8021304: 6979 ldr r1, [r7, #20]
  81668. 8021306: f7f9 fee7 bl 801b0d8 <pbuf_copy_partial>
  81669. }
  81670. /* The byte may be acknowledged without the window being opened. */
  81671. snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1;
  81672. 802130a: 6a7b ldr r3, [r7, #36] @ 0x24
  81673. 802130c: 691b ldr r3, [r3, #16]
  81674. 802130e: 685b ldr r3, [r3, #4]
  81675. 8021310: 4618 mov r0, r3
  81676. 8021312: f7f8 f80e bl 8019332 <lwip_htonl>
  81677. 8021316: 4603 mov r3, r0
  81678. 8021318: 3301 adds r3, #1
  81679. 802131a: 60fb str r3, [r7, #12]
  81680. if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) {
  81681. 802131c: 687b ldr r3, [r7, #4]
  81682. 802131e: 6d1a ldr r2, [r3, #80] @ 0x50
  81683. 8021320: 68fb ldr r3, [r7, #12]
  81684. 8021322: 1ad3 subs r3, r2, r3
  81685. 8021324: 2b00 cmp r3, #0
  81686. 8021326: da02 bge.n 802132e <tcp_zero_window_probe+0x11e>
  81687. pcb->snd_nxt = snd_nxt;
  81688. 8021328: 687b ldr r3, [r7, #4]
  81689. 802132a: 68fa ldr r2, [r7, #12]
  81690. 802132c: 651a str r2, [r3, #80] @ 0x50
  81691. }
  81692. tcp_output_fill_options(pcb, p, 0, optlen);
  81693. 802132e: 7cfb ldrb r3, [r7, #19]
  81694. 8021330: 2200 movs r2, #0
  81695. 8021332: 69f9 ldr r1, [r7, #28]
  81696. 8021334: 6878 ldr r0, [r7, #4]
  81697. 8021336: f7ff fdef bl 8020f18 <tcp_output_fill_options>
  81698. err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip);
  81699. 802133a: 687a ldr r2, [r7, #4]
  81700. 802133c: 687b ldr r3, [r7, #4]
  81701. 802133e: 3304 adds r3, #4
  81702. 8021340: 69f9 ldr r1, [r7, #28]
  81703. 8021342: 6878 ldr r0, [r7, #4]
  81704. 8021344: f7ff fe26 bl 8020f94 <tcp_output_control_segment>
  81705. 8021348: 4603 mov r3, r0
  81706. 802134a: 72fb strb r3, [r7, #11]
  81707. LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: seqno %"U32_F
  81708. " ackno %"U32_F" err %d.\n",
  81709. pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err));
  81710. return err;
  81711. 802134c: f997 300b ldrsb.w r3, [r7, #11]
  81712. }
  81713. 8021350: 4618 mov r0, r3
  81714. 8021352: 372c adds r7, #44 @ 0x2c
  81715. 8021354: 46bd mov sp, r7
  81716. 8021356: bd90 pop {r4, r7, pc}
  81717. 8021358: 0802fa24 .word 0x0802fa24
  81718. 802135c: 08030278 .word 0x08030278
  81719. 8021360: 0802fa78 .word 0x0802fa78
  81720. 08021364 <tcpip_tcp_timer>:
  81721. *
  81722. * @param arg unused argument
  81723. */
  81724. static void
  81725. tcpip_tcp_timer(void *arg)
  81726. {
  81727. 8021364: b580 push {r7, lr}
  81728. 8021366: b082 sub sp, #8
  81729. 8021368: af00 add r7, sp, #0
  81730. 802136a: 6078 str r0, [r7, #4]
  81731. LWIP_UNUSED_ARG(arg);
  81732. /* call TCP timer handler */
  81733. tcp_tmr();
  81734. 802136c: f7f9 ffa2 bl 801b2b4 <tcp_tmr>
  81735. /* timer still needed? */
  81736. if (tcp_active_pcbs || tcp_tw_pcbs) {
  81737. 8021370: 4b0a ldr r3, [pc, #40] @ (802139c <tcpip_tcp_timer+0x38>)
  81738. 8021372: 681b ldr r3, [r3, #0]
  81739. 8021374: 2b00 cmp r3, #0
  81740. 8021376: d103 bne.n 8021380 <tcpip_tcp_timer+0x1c>
  81741. 8021378: 4b09 ldr r3, [pc, #36] @ (80213a0 <tcpip_tcp_timer+0x3c>)
  81742. 802137a: 681b ldr r3, [r3, #0]
  81743. 802137c: 2b00 cmp r3, #0
  81744. 802137e: d005 beq.n 802138c <tcpip_tcp_timer+0x28>
  81745. /* restart timer */
  81746. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  81747. 8021380: 2200 movs r2, #0
  81748. 8021382: 4908 ldr r1, [pc, #32] @ (80213a4 <tcpip_tcp_timer+0x40>)
  81749. 8021384: 20fa movs r0, #250 @ 0xfa
  81750. 8021386: f000 f8f5 bl 8021574 <sys_timeout>
  81751. 802138a: e003 b.n 8021394 <tcpip_tcp_timer+0x30>
  81752. } else {
  81753. /* disable timer */
  81754. tcpip_tcp_timer_active = 0;
  81755. 802138c: 4b06 ldr r3, [pc, #24] @ (80213a8 <tcpip_tcp_timer+0x44>)
  81756. 802138e: 2200 movs r2, #0
  81757. 8021390: 601a str r2, [r3, #0]
  81758. }
  81759. }
  81760. 8021392: bf00 nop
  81761. 8021394: bf00 nop
  81762. 8021396: 3708 adds r7, #8
  81763. 8021398: 46bd mov sp, r7
  81764. 802139a: bd80 pop {r7, pc}
  81765. 802139c: 2402af64 .word 0x2402af64
  81766. 80213a0: 2402af68 .word 0x2402af68
  81767. 80213a4: 08021365 .word 0x08021365
  81768. 80213a8: 2402afb4 .word 0x2402afb4
  81769. 080213ac <tcp_timer_needed>:
  81770. * the reason is to have the TCP timer only running when
  81771. * there are active (or time-wait) PCBs.
  81772. */
  81773. void
  81774. tcp_timer_needed(void)
  81775. {
  81776. 80213ac: b580 push {r7, lr}
  81777. 80213ae: af00 add r7, sp, #0
  81778. LWIP_ASSERT_CORE_LOCKED();
  81779. 80213b0: f7ef fb64 bl 8010a7c <sys_check_core_locking>
  81780. /* timer is off but needed again? */
  81781. if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) {
  81782. 80213b4: 4b0a ldr r3, [pc, #40] @ (80213e0 <tcp_timer_needed+0x34>)
  81783. 80213b6: 681b ldr r3, [r3, #0]
  81784. 80213b8: 2b00 cmp r3, #0
  81785. 80213ba: d10f bne.n 80213dc <tcp_timer_needed+0x30>
  81786. 80213bc: 4b09 ldr r3, [pc, #36] @ (80213e4 <tcp_timer_needed+0x38>)
  81787. 80213be: 681b ldr r3, [r3, #0]
  81788. 80213c0: 2b00 cmp r3, #0
  81789. 80213c2: d103 bne.n 80213cc <tcp_timer_needed+0x20>
  81790. 80213c4: 4b08 ldr r3, [pc, #32] @ (80213e8 <tcp_timer_needed+0x3c>)
  81791. 80213c6: 681b ldr r3, [r3, #0]
  81792. 80213c8: 2b00 cmp r3, #0
  81793. 80213ca: d007 beq.n 80213dc <tcp_timer_needed+0x30>
  81794. /* enable and start timer */
  81795. tcpip_tcp_timer_active = 1;
  81796. 80213cc: 4b04 ldr r3, [pc, #16] @ (80213e0 <tcp_timer_needed+0x34>)
  81797. 80213ce: 2201 movs r2, #1
  81798. 80213d0: 601a str r2, [r3, #0]
  81799. sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
  81800. 80213d2: 2200 movs r2, #0
  81801. 80213d4: 4905 ldr r1, [pc, #20] @ (80213ec <tcp_timer_needed+0x40>)
  81802. 80213d6: 20fa movs r0, #250 @ 0xfa
  81803. 80213d8: f000 f8cc bl 8021574 <sys_timeout>
  81804. }
  81805. }
  81806. 80213dc: bf00 nop
  81807. 80213de: bd80 pop {r7, pc}
  81808. 80213e0: 2402afb4 .word 0x2402afb4
  81809. 80213e4: 2402af64 .word 0x2402af64
  81810. 80213e8: 2402af68 .word 0x2402af68
  81811. 80213ec: 08021365 .word 0x08021365
  81812. 080213f0 <sys_timeout_abs>:
  81813. #if LWIP_DEBUG_TIMERNAMES
  81814. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg, const char *handler_name)
  81815. #else /* LWIP_DEBUG_TIMERNAMES */
  81816. sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg)
  81817. #endif
  81818. {
  81819. 80213f0: b580 push {r7, lr}
  81820. 80213f2: b086 sub sp, #24
  81821. 80213f4: af00 add r7, sp, #0
  81822. 80213f6: 60f8 str r0, [r7, #12]
  81823. 80213f8: 60b9 str r1, [r7, #8]
  81824. 80213fa: 607a str r2, [r7, #4]
  81825. struct sys_timeo *timeout, *t;
  81826. timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT);
  81827. 80213fc: 200a movs r0, #10
  81828. 80213fe: f7f8 fd01 bl 8019e04 <memp_malloc>
  81829. 8021402: 6138 str r0, [r7, #16]
  81830. if (timeout == NULL) {
  81831. 8021404: 693b ldr r3, [r7, #16]
  81832. 8021406: 2b00 cmp r3, #0
  81833. 8021408: d109 bne.n 802141e <sys_timeout_abs+0x2e>
  81834. LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL);
  81835. 802140a: 693b ldr r3, [r7, #16]
  81836. 802140c: 2b00 cmp r3, #0
  81837. 802140e: d151 bne.n 80214b4 <sys_timeout_abs+0xc4>
  81838. 8021410: 4b2a ldr r3, [pc, #168] @ (80214bc <sys_timeout_abs+0xcc>)
  81839. 8021412: 22be movs r2, #190 @ 0xbe
  81840. 8021414: 492a ldr r1, [pc, #168] @ (80214c0 <sys_timeout_abs+0xd0>)
  81841. 8021416: 482b ldr r0, [pc, #172] @ (80214c4 <sys_timeout_abs+0xd4>)
  81842. 8021418: f008 fed0 bl 802a1bc <iprintf>
  81843. return;
  81844. 802141c: e04a b.n 80214b4 <sys_timeout_abs+0xc4>
  81845. }
  81846. timeout->next = NULL;
  81847. 802141e: 693b ldr r3, [r7, #16]
  81848. 8021420: 2200 movs r2, #0
  81849. 8021422: 601a str r2, [r3, #0]
  81850. timeout->h = handler;
  81851. 8021424: 693b ldr r3, [r7, #16]
  81852. 8021426: 68ba ldr r2, [r7, #8]
  81853. 8021428: 609a str r2, [r3, #8]
  81854. timeout->arg = arg;
  81855. 802142a: 693b ldr r3, [r7, #16]
  81856. 802142c: 687a ldr r2, [r7, #4]
  81857. 802142e: 60da str r2, [r3, #12]
  81858. timeout->time = abs_time;
  81859. 8021430: 693b ldr r3, [r7, #16]
  81860. 8021432: 68fa ldr r2, [r7, #12]
  81861. 8021434: 605a str r2, [r3, #4]
  81862. timeout->handler_name = handler_name;
  81863. LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p abs_time=%"U32_F" handler=%s arg=%p\n",
  81864. (void *)timeout, abs_time, handler_name, (void *)arg));
  81865. #endif /* LWIP_DEBUG_TIMERNAMES */
  81866. if (next_timeout == NULL) {
  81867. 8021436: 4b24 ldr r3, [pc, #144] @ (80214c8 <sys_timeout_abs+0xd8>)
  81868. 8021438: 681b ldr r3, [r3, #0]
  81869. 802143a: 2b00 cmp r3, #0
  81870. 802143c: d103 bne.n 8021446 <sys_timeout_abs+0x56>
  81871. next_timeout = timeout;
  81872. 802143e: 4a22 ldr r2, [pc, #136] @ (80214c8 <sys_timeout_abs+0xd8>)
  81873. 8021440: 693b ldr r3, [r7, #16]
  81874. 8021442: 6013 str r3, [r2, #0]
  81875. return;
  81876. 8021444: e037 b.n 80214b6 <sys_timeout_abs+0xc6>
  81877. }
  81878. if (TIME_LESS_THAN(timeout->time, next_timeout->time)) {
  81879. 8021446: 693b ldr r3, [r7, #16]
  81880. 8021448: 685a ldr r2, [r3, #4]
  81881. 802144a: 4b1f ldr r3, [pc, #124] @ (80214c8 <sys_timeout_abs+0xd8>)
  81882. 802144c: 681b ldr r3, [r3, #0]
  81883. 802144e: 685b ldr r3, [r3, #4]
  81884. 8021450: 1ad3 subs r3, r2, r3
  81885. 8021452: 0fdb lsrs r3, r3, #31
  81886. 8021454: f003 0301 and.w r3, r3, #1
  81887. 8021458: b2db uxtb r3, r3
  81888. 802145a: 2b00 cmp r3, #0
  81889. 802145c: d007 beq.n 802146e <sys_timeout_abs+0x7e>
  81890. timeout->next = next_timeout;
  81891. 802145e: 4b1a ldr r3, [pc, #104] @ (80214c8 <sys_timeout_abs+0xd8>)
  81892. 8021460: 681a ldr r2, [r3, #0]
  81893. 8021462: 693b ldr r3, [r7, #16]
  81894. 8021464: 601a str r2, [r3, #0]
  81895. next_timeout = timeout;
  81896. 8021466: 4a18 ldr r2, [pc, #96] @ (80214c8 <sys_timeout_abs+0xd8>)
  81897. 8021468: 693b ldr r3, [r7, #16]
  81898. 802146a: 6013 str r3, [r2, #0]
  81899. 802146c: e023 b.n 80214b6 <sys_timeout_abs+0xc6>
  81900. } else {
  81901. for (t = next_timeout; t != NULL; t = t->next) {
  81902. 802146e: 4b16 ldr r3, [pc, #88] @ (80214c8 <sys_timeout_abs+0xd8>)
  81903. 8021470: 681b ldr r3, [r3, #0]
  81904. 8021472: 617b str r3, [r7, #20]
  81905. 8021474: e01a b.n 80214ac <sys_timeout_abs+0xbc>
  81906. if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) {
  81907. 8021476: 697b ldr r3, [r7, #20]
  81908. 8021478: 681b ldr r3, [r3, #0]
  81909. 802147a: 2b00 cmp r3, #0
  81910. 802147c: d00b beq.n 8021496 <sys_timeout_abs+0xa6>
  81911. 802147e: 693b ldr r3, [r7, #16]
  81912. 8021480: 685a ldr r2, [r3, #4]
  81913. 8021482: 697b ldr r3, [r7, #20]
  81914. 8021484: 681b ldr r3, [r3, #0]
  81915. 8021486: 685b ldr r3, [r3, #4]
  81916. 8021488: 1ad3 subs r3, r2, r3
  81917. 802148a: 0fdb lsrs r3, r3, #31
  81918. 802148c: f003 0301 and.w r3, r3, #1
  81919. 8021490: b2db uxtb r3, r3
  81920. 8021492: 2b00 cmp r3, #0
  81921. 8021494: d007 beq.n 80214a6 <sys_timeout_abs+0xb6>
  81922. timeout->next = t->next;
  81923. 8021496: 697b ldr r3, [r7, #20]
  81924. 8021498: 681a ldr r2, [r3, #0]
  81925. 802149a: 693b ldr r3, [r7, #16]
  81926. 802149c: 601a str r2, [r3, #0]
  81927. t->next = timeout;
  81928. 802149e: 697b ldr r3, [r7, #20]
  81929. 80214a0: 693a ldr r2, [r7, #16]
  81930. 80214a2: 601a str r2, [r3, #0]
  81931. break;
  81932. 80214a4: e007 b.n 80214b6 <sys_timeout_abs+0xc6>
  81933. for (t = next_timeout; t != NULL; t = t->next) {
  81934. 80214a6: 697b ldr r3, [r7, #20]
  81935. 80214a8: 681b ldr r3, [r3, #0]
  81936. 80214aa: 617b str r3, [r7, #20]
  81937. 80214ac: 697b ldr r3, [r7, #20]
  81938. 80214ae: 2b00 cmp r3, #0
  81939. 80214b0: d1e1 bne.n 8021476 <sys_timeout_abs+0x86>
  81940. 80214b2: e000 b.n 80214b6 <sys_timeout_abs+0xc6>
  81941. return;
  81942. 80214b4: bf00 nop
  81943. }
  81944. }
  81945. }
  81946. }
  81947. 80214b6: 3718 adds r7, #24
  81948. 80214b8: 46bd mov sp, r7
  81949. 80214ba: bd80 pop {r7, pc}
  81950. 80214bc: 0803029c .word 0x0803029c
  81951. 80214c0: 080302d0 .word 0x080302d0
  81952. 80214c4: 08030310 .word 0x08030310
  81953. 80214c8: 2402afac .word 0x2402afac
  81954. 080214cc <lwip_cyclic_timer>:
  81955. #if !LWIP_TESTMODE
  81956. static
  81957. #endif
  81958. void
  81959. lwip_cyclic_timer(void *arg)
  81960. {
  81961. 80214cc: b580 push {r7, lr}
  81962. 80214ce: b086 sub sp, #24
  81963. 80214d0: af00 add r7, sp, #0
  81964. 80214d2: 6078 str r0, [r7, #4]
  81965. u32_t now;
  81966. u32_t next_timeout_time;
  81967. const struct lwip_cyclic_timer *cyclic = (const struct lwip_cyclic_timer *)arg;
  81968. 80214d4: 687b ldr r3, [r7, #4]
  81969. 80214d6: 617b str r3, [r7, #20]
  81970. #if LWIP_DEBUG_TIMERNAMES
  81971. LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name));
  81972. #endif
  81973. cyclic->handler();
  81974. 80214d8: 697b ldr r3, [r7, #20]
  81975. 80214da: 685b ldr r3, [r3, #4]
  81976. 80214dc: 4798 blx r3
  81977. now = sys_now();
  81978. 80214de: f7ef f831 bl 8010544 <sys_now>
  81979. 80214e2: 6138 str r0, [r7, #16]
  81980. next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */
  81981. 80214e4: 697b ldr r3, [r7, #20]
  81982. 80214e6: 681a ldr r2, [r3, #0]
  81983. 80214e8: 4b0f ldr r3, [pc, #60] @ (8021528 <lwip_cyclic_timer+0x5c>)
  81984. 80214ea: 681b ldr r3, [r3, #0]
  81985. 80214ec: 4413 add r3, r2
  81986. 80214ee: 60fb str r3, [r7, #12]
  81987. if (TIME_LESS_THAN(next_timeout_time, now)) {
  81988. 80214f0: 68fa ldr r2, [r7, #12]
  81989. 80214f2: 693b ldr r3, [r7, #16]
  81990. 80214f4: 1ad3 subs r3, r2, r3
  81991. 80214f6: 0fdb lsrs r3, r3, #31
  81992. 80214f8: f003 0301 and.w r3, r3, #1
  81993. 80214fc: b2db uxtb r3, r3
  81994. 80214fe: 2b00 cmp r3, #0
  81995. 8021500: d009 beq.n 8021516 <lwip_cyclic_timer+0x4a>
  81996. /* timer would immediately expire again -> "overload" -> restart without any correction */
  81997. #if LWIP_DEBUG_TIMERNAMES
  81998. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg, cyclic->handler_name);
  81999. #else
  82000. sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg);
  82001. 8021502: 697b ldr r3, [r7, #20]
  82002. 8021504: 681a ldr r2, [r3, #0]
  82003. 8021506: 693b ldr r3, [r7, #16]
  82004. 8021508: 4413 add r3, r2
  82005. 802150a: 687a ldr r2, [r7, #4]
  82006. 802150c: 4907 ldr r1, [pc, #28] @ (802152c <lwip_cyclic_timer+0x60>)
  82007. 802150e: 4618 mov r0, r3
  82008. 8021510: f7ff ff6e bl 80213f0 <sys_timeout_abs>
  82009. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg, cyclic->handler_name);
  82010. #else
  82011. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  82012. #endif
  82013. }
  82014. }
  82015. 8021514: e004 b.n 8021520 <lwip_cyclic_timer+0x54>
  82016. sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg);
  82017. 8021516: 687a ldr r2, [r7, #4]
  82018. 8021518: 4904 ldr r1, [pc, #16] @ (802152c <lwip_cyclic_timer+0x60>)
  82019. 802151a: 68f8 ldr r0, [r7, #12]
  82020. 802151c: f7ff ff68 bl 80213f0 <sys_timeout_abs>
  82021. }
  82022. 8021520: bf00 nop
  82023. 8021522: 3718 adds r7, #24
  82024. 8021524: 46bd mov sp, r7
  82025. 8021526: bd80 pop {r7, pc}
  82026. 8021528: 2402afb0 .word 0x2402afb0
  82027. 802152c: 080214cd .word 0x080214cd
  82028. 08021530 <sys_timeouts_init>:
  82029. /** Initialize this module */
  82030. void sys_timeouts_init(void)
  82031. {
  82032. 8021530: b580 push {r7, lr}
  82033. 8021532: b082 sub sp, #8
  82034. 8021534: af00 add r7, sp, #0
  82035. size_t i;
  82036. /* tcp_tmr() at index 0 is started on demand */
  82037. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  82038. 8021536: 2301 movs r3, #1
  82039. 8021538: 607b str r3, [r7, #4]
  82040. 802153a: e00e b.n 802155a <sys_timeouts_init+0x2a>
  82041. /* we have to cast via size_t to get rid of const warning
  82042. (this is OK as cyclic_timer() casts back to const* */
  82043. sys_timeout(lwip_cyclic_timers[i].interval_ms, lwip_cyclic_timer, LWIP_CONST_CAST(void *, &lwip_cyclic_timers[i]));
  82044. 802153c: 4a0b ldr r2, [pc, #44] @ (802156c <sys_timeouts_init+0x3c>)
  82045. 802153e: 687b ldr r3, [r7, #4]
  82046. 8021540: f852 0033 ldr.w r0, [r2, r3, lsl #3]
  82047. 8021544: 687b ldr r3, [r7, #4]
  82048. 8021546: 00db lsls r3, r3, #3
  82049. 8021548: 4a08 ldr r2, [pc, #32] @ (802156c <sys_timeouts_init+0x3c>)
  82050. 802154a: 4413 add r3, r2
  82051. 802154c: 461a mov r2, r3
  82052. 802154e: 4908 ldr r1, [pc, #32] @ (8021570 <sys_timeouts_init+0x40>)
  82053. 8021550: f000 f810 bl 8021574 <sys_timeout>
  82054. for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) {
  82055. 8021554: 687b ldr r3, [r7, #4]
  82056. 8021556: 3301 adds r3, #1
  82057. 8021558: 607b str r3, [r7, #4]
  82058. 802155a: 687b ldr r3, [r7, #4]
  82059. 802155c: 2b04 cmp r3, #4
  82060. 802155e: d9ed bls.n 802153c <sys_timeouts_init+0xc>
  82061. }
  82062. }
  82063. 8021560: bf00 nop
  82064. 8021562: bf00 nop
  82065. 8021564: 3708 adds r7, #8
  82066. 8021566: 46bd mov sp, r7
  82067. 8021568: bd80 pop {r7, pc}
  82068. 802156a: bf00 nop
  82069. 802156c: 080314cc .word 0x080314cc
  82070. 8021570: 080214cd .word 0x080214cd
  82071. 08021574 <sys_timeout>:
  82072. sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name)
  82073. #else /* LWIP_DEBUG_TIMERNAMES */
  82074. void
  82075. sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg)
  82076. #endif /* LWIP_DEBUG_TIMERNAMES */
  82077. {
  82078. 8021574: b580 push {r7, lr}
  82079. 8021576: b086 sub sp, #24
  82080. 8021578: af00 add r7, sp, #0
  82081. 802157a: 60f8 str r0, [r7, #12]
  82082. 802157c: 60b9 str r1, [r7, #8]
  82083. 802157e: 607a str r2, [r7, #4]
  82084. u32_t next_timeout_time;
  82085. LWIP_ASSERT_CORE_LOCKED();
  82086. 8021580: f7ef fa7c bl 8010a7c <sys_check_core_locking>
  82087. LWIP_ASSERT("Timeout time too long, max is LWIP_UINT32_MAX/4 msecs", msecs <= (LWIP_UINT32_MAX / 4));
  82088. 8021584: 68fb ldr r3, [r7, #12]
  82089. 8021586: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  82090. 802158a: d306 bcc.n 802159a <sys_timeout+0x26>
  82091. 802158c: 4b0a ldr r3, [pc, #40] @ (80215b8 <sys_timeout+0x44>)
  82092. 802158e: f240 1229 movw r2, #297 @ 0x129
  82093. 8021592: 490a ldr r1, [pc, #40] @ (80215bc <sys_timeout+0x48>)
  82094. 8021594: 480a ldr r0, [pc, #40] @ (80215c0 <sys_timeout+0x4c>)
  82095. 8021596: f008 fe11 bl 802a1bc <iprintf>
  82096. next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */
  82097. 802159a: f7ee ffd3 bl 8010544 <sys_now>
  82098. 802159e: 4602 mov r2, r0
  82099. 80215a0: 68fb ldr r3, [r7, #12]
  82100. 80215a2: 4413 add r3, r2
  82101. 80215a4: 617b str r3, [r7, #20]
  82102. #if LWIP_DEBUG_TIMERNAMES
  82103. sys_timeout_abs(next_timeout_time, handler, arg, handler_name);
  82104. #else
  82105. sys_timeout_abs(next_timeout_time, handler, arg);
  82106. 80215a6: 687a ldr r2, [r7, #4]
  82107. 80215a8: 68b9 ldr r1, [r7, #8]
  82108. 80215aa: 6978 ldr r0, [r7, #20]
  82109. 80215ac: f7ff ff20 bl 80213f0 <sys_timeout_abs>
  82110. #endif
  82111. }
  82112. 80215b0: bf00 nop
  82113. 80215b2: 3718 adds r7, #24
  82114. 80215b4: 46bd mov sp, r7
  82115. 80215b6: bd80 pop {r7, pc}
  82116. 80215b8: 0803029c .word 0x0803029c
  82117. 80215bc: 08030338 .word 0x08030338
  82118. 80215c0: 08030310 .word 0x08030310
  82119. 080215c4 <sys_check_timeouts>:
  82120. *
  82121. * Must be called periodically from your main loop.
  82122. */
  82123. void
  82124. sys_check_timeouts(void)
  82125. {
  82126. 80215c4: b580 push {r7, lr}
  82127. 80215c6: b084 sub sp, #16
  82128. 80215c8: af00 add r7, sp, #0
  82129. u32_t now;
  82130. LWIP_ASSERT_CORE_LOCKED();
  82131. 80215ca: f7ef fa57 bl 8010a7c <sys_check_core_locking>
  82132. /* Process only timers expired at the start of the function. */
  82133. now = sys_now();
  82134. 80215ce: f7ee ffb9 bl 8010544 <sys_now>
  82135. 80215d2: 60f8 str r0, [r7, #12]
  82136. sys_timeout_handler handler;
  82137. void *arg;
  82138. PBUF_CHECK_FREE_OOSEQ();
  82139. tmptimeout = next_timeout;
  82140. 80215d4: 4b17 ldr r3, [pc, #92] @ (8021634 <sys_check_timeouts+0x70>)
  82141. 80215d6: 681b ldr r3, [r3, #0]
  82142. 80215d8: 60bb str r3, [r7, #8]
  82143. if (tmptimeout == NULL) {
  82144. 80215da: 68bb ldr r3, [r7, #8]
  82145. 80215dc: 2b00 cmp r3, #0
  82146. 80215de: d022 beq.n 8021626 <sys_check_timeouts+0x62>
  82147. return;
  82148. }
  82149. if (TIME_LESS_THAN(now, tmptimeout->time)) {
  82150. 80215e0: 68bb ldr r3, [r7, #8]
  82151. 80215e2: 685b ldr r3, [r3, #4]
  82152. 80215e4: 68fa ldr r2, [r7, #12]
  82153. 80215e6: 1ad3 subs r3, r2, r3
  82154. 80215e8: 0fdb lsrs r3, r3, #31
  82155. 80215ea: f003 0301 and.w r3, r3, #1
  82156. 80215ee: b2db uxtb r3, r3
  82157. 80215f0: 2b00 cmp r3, #0
  82158. 80215f2: d11a bne.n 802162a <sys_check_timeouts+0x66>
  82159. return;
  82160. }
  82161. /* Timeout has expired */
  82162. next_timeout = tmptimeout->next;
  82163. 80215f4: 68bb ldr r3, [r7, #8]
  82164. 80215f6: 681b ldr r3, [r3, #0]
  82165. 80215f8: 4a0e ldr r2, [pc, #56] @ (8021634 <sys_check_timeouts+0x70>)
  82166. 80215fa: 6013 str r3, [r2, #0]
  82167. handler = tmptimeout->h;
  82168. 80215fc: 68bb ldr r3, [r7, #8]
  82169. 80215fe: 689b ldr r3, [r3, #8]
  82170. 8021600: 607b str r3, [r7, #4]
  82171. arg = tmptimeout->arg;
  82172. 8021602: 68bb ldr r3, [r7, #8]
  82173. 8021604: 68db ldr r3, [r3, #12]
  82174. 8021606: 603b str r3, [r7, #0]
  82175. current_timeout_due_time = tmptimeout->time;
  82176. 8021608: 68bb ldr r3, [r7, #8]
  82177. 802160a: 685b ldr r3, [r3, #4]
  82178. 802160c: 4a0a ldr r2, [pc, #40] @ (8021638 <sys_check_timeouts+0x74>)
  82179. 802160e: 6013 str r3, [r2, #0]
  82180. if (handler != NULL) {
  82181. LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%s t=%"U32_F" arg=%p\n",
  82182. tmptimeout->handler_name, sys_now() - tmptimeout->time, arg));
  82183. }
  82184. #endif /* LWIP_DEBUG_TIMERNAMES */
  82185. memp_free(MEMP_SYS_TIMEOUT, tmptimeout);
  82186. 8021610: 68b9 ldr r1, [r7, #8]
  82187. 8021612: 200a movs r0, #10
  82188. 8021614: f7f8 fc6c bl 8019ef0 <memp_free>
  82189. if (handler != NULL) {
  82190. 8021618: 687b ldr r3, [r7, #4]
  82191. 802161a: 2b00 cmp r3, #0
  82192. 802161c: d0da beq.n 80215d4 <sys_check_timeouts+0x10>
  82193. handler(arg);
  82194. 802161e: 687b ldr r3, [r7, #4]
  82195. 8021620: 6838 ldr r0, [r7, #0]
  82196. 8021622: 4798 blx r3
  82197. do {
  82198. 8021624: e7d6 b.n 80215d4 <sys_check_timeouts+0x10>
  82199. return;
  82200. 8021626: bf00 nop
  82201. 8021628: e000 b.n 802162c <sys_check_timeouts+0x68>
  82202. return;
  82203. 802162a: bf00 nop
  82204. }
  82205. LWIP_TCPIP_THREAD_ALIVE();
  82206. /* Repeat until all expired timers have been called */
  82207. } while (1);
  82208. }
  82209. 802162c: 3710 adds r7, #16
  82210. 802162e: 46bd mov sp, r7
  82211. 8021630: bd80 pop {r7, pc}
  82212. 8021632: bf00 nop
  82213. 8021634: 2402afac .word 0x2402afac
  82214. 8021638: 2402afb0 .word 0x2402afb0
  82215. 0802163c <sys_timeouts_sleeptime>:
  82216. /** Return the time left before the next timeout is due. If no timeouts are
  82217. * enqueued, returns 0xffffffff
  82218. */
  82219. u32_t
  82220. sys_timeouts_sleeptime(void)
  82221. {
  82222. 802163c: b580 push {r7, lr}
  82223. 802163e: b082 sub sp, #8
  82224. 8021640: af00 add r7, sp, #0
  82225. u32_t now;
  82226. LWIP_ASSERT_CORE_LOCKED();
  82227. 8021642: f7ef fa1b bl 8010a7c <sys_check_core_locking>
  82228. if (next_timeout == NULL) {
  82229. 8021646: 4b16 ldr r3, [pc, #88] @ (80216a0 <sys_timeouts_sleeptime+0x64>)
  82230. 8021648: 681b ldr r3, [r3, #0]
  82231. 802164a: 2b00 cmp r3, #0
  82232. 802164c: d102 bne.n 8021654 <sys_timeouts_sleeptime+0x18>
  82233. return SYS_TIMEOUTS_SLEEPTIME_INFINITE;
  82234. 802164e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  82235. 8021652: e020 b.n 8021696 <sys_timeouts_sleeptime+0x5a>
  82236. }
  82237. now = sys_now();
  82238. 8021654: f7ee ff76 bl 8010544 <sys_now>
  82239. 8021658: 6078 str r0, [r7, #4]
  82240. if (TIME_LESS_THAN(next_timeout->time, now)) {
  82241. 802165a: 4b11 ldr r3, [pc, #68] @ (80216a0 <sys_timeouts_sleeptime+0x64>)
  82242. 802165c: 681b ldr r3, [r3, #0]
  82243. 802165e: 685a ldr r2, [r3, #4]
  82244. 8021660: 687b ldr r3, [r7, #4]
  82245. 8021662: 1ad3 subs r3, r2, r3
  82246. 8021664: 0fdb lsrs r3, r3, #31
  82247. 8021666: f003 0301 and.w r3, r3, #1
  82248. 802166a: b2db uxtb r3, r3
  82249. 802166c: 2b00 cmp r3, #0
  82250. 802166e: d001 beq.n 8021674 <sys_timeouts_sleeptime+0x38>
  82251. return 0;
  82252. 8021670: 2300 movs r3, #0
  82253. 8021672: e010 b.n 8021696 <sys_timeouts_sleeptime+0x5a>
  82254. } else {
  82255. u32_t ret = (u32_t)(next_timeout->time - now);
  82256. 8021674: 4b0a ldr r3, [pc, #40] @ (80216a0 <sys_timeouts_sleeptime+0x64>)
  82257. 8021676: 681b ldr r3, [r3, #0]
  82258. 8021678: 685a ldr r2, [r3, #4]
  82259. 802167a: 687b ldr r3, [r7, #4]
  82260. 802167c: 1ad3 subs r3, r2, r3
  82261. 802167e: 603b str r3, [r7, #0]
  82262. LWIP_ASSERT("invalid sleeptime", ret <= LWIP_MAX_TIMEOUT);
  82263. 8021680: 683b ldr r3, [r7, #0]
  82264. 8021682: 2b00 cmp r3, #0
  82265. 8021684: da06 bge.n 8021694 <sys_timeouts_sleeptime+0x58>
  82266. 8021686: 4b07 ldr r3, [pc, #28] @ (80216a4 <sys_timeouts_sleeptime+0x68>)
  82267. 8021688: f44f 72dc mov.w r2, #440 @ 0x1b8
  82268. 802168c: 4906 ldr r1, [pc, #24] @ (80216a8 <sys_timeouts_sleeptime+0x6c>)
  82269. 802168e: 4807 ldr r0, [pc, #28] @ (80216ac <sys_timeouts_sleeptime+0x70>)
  82270. 8021690: f008 fd94 bl 802a1bc <iprintf>
  82271. return ret;
  82272. 8021694: 683b ldr r3, [r7, #0]
  82273. }
  82274. }
  82275. 8021696: 4618 mov r0, r3
  82276. 8021698: 3708 adds r7, #8
  82277. 802169a: 46bd mov sp, r7
  82278. 802169c: bd80 pop {r7, pc}
  82279. 802169e: bf00 nop
  82280. 80216a0: 2402afac .word 0x2402afac
  82281. 80216a4: 0803029c .word 0x0803029c
  82282. 80216a8: 08030370 .word 0x08030370
  82283. 80216ac: 08030310 .word 0x08030310
  82284. 080216b0 <udp_init>:
  82285. /**
  82286. * Initialize this module.
  82287. */
  82288. void
  82289. udp_init(void)
  82290. {
  82291. 80216b0: b580 push {r7, lr}
  82292. 80216b2: af00 add r7, sp, #0
  82293. #ifdef LWIP_RAND
  82294. udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND());
  82295. 80216b4: f007 fa58 bl 8028b68 <rand>
  82296. 80216b8: 4603 mov r3, r0
  82297. 80216ba: b29b uxth r3, r3
  82298. 80216bc: f3c3 030d ubfx r3, r3, #0, #14
  82299. 80216c0: b29b uxth r3, r3
  82300. 80216c2: f5a3 4380 sub.w r3, r3, #16384 @ 0x4000
  82301. 80216c6: b29a uxth r2, r3
  82302. 80216c8: 4b01 ldr r3, [pc, #4] @ (80216d0 <udp_init+0x20>)
  82303. 80216ca: 801a strh r2, [r3, #0]
  82304. #endif /* LWIP_RAND */
  82305. }
  82306. 80216cc: bf00 nop
  82307. 80216ce: bd80 pop {r7, pc}
  82308. 80216d0: 24000054 .word 0x24000054
  82309. 080216d4 <udp_new_port>:
  82310. *
  82311. * @return a new (free) local UDP port number
  82312. */
  82313. static u16_t
  82314. udp_new_port(void)
  82315. {
  82316. 80216d4: b480 push {r7}
  82317. 80216d6: b083 sub sp, #12
  82318. 80216d8: af00 add r7, sp, #0
  82319. u16_t n = 0;
  82320. 80216da: 2300 movs r3, #0
  82321. 80216dc: 80fb strh r3, [r7, #6]
  82322. struct udp_pcb *pcb;
  82323. again:
  82324. if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) {
  82325. 80216de: 4b17 ldr r3, [pc, #92] @ (802173c <udp_new_port+0x68>)
  82326. 80216e0: 881b ldrh r3, [r3, #0]
  82327. 80216e2: 1c5a adds r2, r3, #1
  82328. 80216e4: b291 uxth r1, r2
  82329. 80216e6: 4a15 ldr r2, [pc, #84] @ (802173c <udp_new_port+0x68>)
  82330. 80216e8: 8011 strh r1, [r2, #0]
  82331. 80216ea: f64f 72ff movw r2, #65535 @ 0xffff
  82332. 80216ee: 4293 cmp r3, r2
  82333. 80216f0: d103 bne.n 80216fa <udp_new_port+0x26>
  82334. udp_port = UDP_LOCAL_PORT_RANGE_START;
  82335. 80216f2: 4b12 ldr r3, [pc, #72] @ (802173c <udp_new_port+0x68>)
  82336. 80216f4: f44f 4240 mov.w r2, #49152 @ 0xc000
  82337. 80216f8: 801a strh r2, [r3, #0]
  82338. }
  82339. /* Check all PCBs. */
  82340. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  82341. 80216fa: 4b11 ldr r3, [pc, #68] @ (8021740 <udp_new_port+0x6c>)
  82342. 80216fc: 681b ldr r3, [r3, #0]
  82343. 80216fe: 603b str r3, [r7, #0]
  82344. 8021700: e011 b.n 8021726 <udp_new_port+0x52>
  82345. if (pcb->local_port == udp_port) {
  82346. 8021702: 683b ldr r3, [r7, #0]
  82347. 8021704: 8a5a ldrh r2, [r3, #18]
  82348. 8021706: 4b0d ldr r3, [pc, #52] @ (802173c <udp_new_port+0x68>)
  82349. 8021708: 881b ldrh r3, [r3, #0]
  82350. 802170a: 429a cmp r2, r3
  82351. 802170c: d108 bne.n 8021720 <udp_new_port+0x4c>
  82352. if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) {
  82353. 802170e: 88fb ldrh r3, [r7, #6]
  82354. 8021710: 3301 adds r3, #1
  82355. 8021712: 80fb strh r3, [r7, #6]
  82356. 8021714: 88fb ldrh r3, [r7, #6]
  82357. 8021716: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  82358. 802171a: d3e0 bcc.n 80216de <udp_new_port+0xa>
  82359. return 0;
  82360. 802171c: 2300 movs r3, #0
  82361. 802171e: e007 b.n 8021730 <udp_new_port+0x5c>
  82362. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  82363. 8021720: 683b ldr r3, [r7, #0]
  82364. 8021722: 68db ldr r3, [r3, #12]
  82365. 8021724: 603b str r3, [r7, #0]
  82366. 8021726: 683b ldr r3, [r7, #0]
  82367. 8021728: 2b00 cmp r3, #0
  82368. 802172a: d1ea bne.n 8021702 <udp_new_port+0x2e>
  82369. }
  82370. goto again;
  82371. }
  82372. }
  82373. return udp_port;
  82374. 802172c: 4b03 ldr r3, [pc, #12] @ (802173c <udp_new_port+0x68>)
  82375. 802172e: 881b ldrh r3, [r3, #0]
  82376. }
  82377. 8021730: 4618 mov r0, r3
  82378. 8021732: 370c adds r7, #12
  82379. 8021734: 46bd mov sp, r7
  82380. 8021736: f85d 7b04 ldr.w r7, [sp], #4
  82381. 802173a: 4770 bx lr
  82382. 802173c: 24000054 .word 0x24000054
  82383. 8021740: 2402afb8 .word 0x2402afb8
  82384. 08021744 <udp_input_local_match>:
  82385. * @param broadcast 1 if his is an IPv4 broadcast (global or subnet-only), 0 otherwise (only used for IPv4)
  82386. * @return 1 on match, 0 otherwise
  82387. */
  82388. static u8_t
  82389. udp_input_local_match(struct udp_pcb *pcb, struct netif *inp, u8_t broadcast)
  82390. {
  82391. 8021744: b580 push {r7, lr}
  82392. 8021746: b084 sub sp, #16
  82393. 8021748: af00 add r7, sp, #0
  82394. 802174a: 60f8 str r0, [r7, #12]
  82395. 802174c: 60b9 str r1, [r7, #8]
  82396. 802174e: 4613 mov r3, r2
  82397. 8021750: 71fb strb r3, [r7, #7]
  82398. LWIP_UNUSED_ARG(inp); /* in IPv6 only case */
  82399. LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */
  82400. LWIP_ASSERT("udp_input_local_match: invalid pcb", pcb != NULL);
  82401. 8021752: 68fb ldr r3, [r7, #12]
  82402. 8021754: 2b00 cmp r3, #0
  82403. 8021756: d105 bne.n 8021764 <udp_input_local_match+0x20>
  82404. 8021758: 4b27 ldr r3, [pc, #156] @ (80217f8 <udp_input_local_match+0xb4>)
  82405. 802175a: 2287 movs r2, #135 @ 0x87
  82406. 802175c: 4927 ldr r1, [pc, #156] @ (80217fc <udp_input_local_match+0xb8>)
  82407. 802175e: 4828 ldr r0, [pc, #160] @ (8021800 <udp_input_local_match+0xbc>)
  82408. 8021760: f008 fd2c bl 802a1bc <iprintf>
  82409. LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL);
  82410. 8021764: 68bb ldr r3, [r7, #8]
  82411. 8021766: 2b00 cmp r3, #0
  82412. 8021768: d105 bne.n 8021776 <udp_input_local_match+0x32>
  82413. 802176a: 4b23 ldr r3, [pc, #140] @ (80217f8 <udp_input_local_match+0xb4>)
  82414. 802176c: 2288 movs r2, #136 @ 0x88
  82415. 802176e: 4925 ldr r1, [pc, #148] @ (8021804 <udp_input_local_match+0xc0>)
  82416. 8021770: 4823 ldr r0, [pc, #140] @ (8021800 <udp_input_local_match+0xbc>)
  82417. 8021772: f008 fd23 bl 802a1bc <iprintf>
  82418. /* check if PCB is bound to specific netif */
  82419. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  82420. 8021776: 68fb ldr r3, [r7, #12]
  82421. 8021778: 7a1b ldrb r3, [r3, #8]
  82422. 802177a: 2b00 cmp r3, #0
  82423. 802177c: d00b beq.n 8021796 <udp_input_local_match+0x52>
  82424. (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) {
  82425. 802177e: 68fb ldr r3, [r7, #12]
  82426. 8021780: 7a1a ldrb r2, [r3, #8]
  82427. 8021782: 4b21 ldr r3, [pc, #132] @ (8021808 <udp_input_local_match+0xc4>)
  82428. 8021784: 685b ldr r3, [r3, #4]
  82429. 8021786: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  82430. 802178a: 3301 adds r3, #1
  82431. 802178c: b2db uxtb r3, r3
  82432. if ((pcb->netif_idx != NETIF_NO_INDEX) &&
  82433. 802178e: 429a cmp r2, r3
  82434. 8021790: d001 beq.n 8021796 <udp_input_local_match+0x52>
  82435. return 0;
  82436. 8021792: 2300 movs r3, #0
  82437. 8021794: e02b b.n 80217ee <udp_input_local_match+0xaa>
  82438. /* Only need to check PCB if incoming IP version matches PCB IP version */
  82439. if (IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) {
  82440. #if LWIP_IPV4
  82441. /* Special case: IPv4 broadcast: all or broadcasts in my subnet
  82442. * Note: broadcast variable can only be 1 if it is an IPv4 broadcast */
  82443. if (broadcast != 0) {
  82444. 8021796: 79fb ldrb r3, [r7, #7]
  82445. 8021798: 2b00 cmp r3, #0
  82446. 802179a: d018 beq.n 80217ce <udp_input_local_match+0x8a>
  82447. #if IP_SOF_BROADCAST_RECV
  82448. if (ip_get_option(pcb, SOF_BROADCAST))
  82449. #endif /* IP_SOF_BROADCAST_RECV */
  82450. {
  82451. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  82452. 802179c: 68fb ldr r3, [r7, #12]
  82453. 802179e: 2b00 cmp r3, #0
  82454. 80217a0: d013 beq.n 80217ca <udp_input_local_match+0x86>
  82455. 80217a2: 68fb ldr r3, [r7, #12]
  82456. 80217a4: 681b ldr r3, [r3, #0]
  82457. 80217a6: 2b00 cmp r3, #0
  82458. 80217a8: d00f beq.n 80217ca <udp_input_local_match+0x86>
  82459. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  82460. 80217aa: 4b17 ldr r3, [pc, #92] @ (8021808 <udp_input_local_match+0xc4>)
  82461. 80217ac: 695b ldr r3, [r3, #20]
  82462. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  82463. 80217ae: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  82464. 80217b2: d00a beq.n 80217ca <udp_input_local_match+0x86>
  82465. ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) {
  82466. 80217b4: 68fb ldr r3, [r7, #12]
  82467. 80217b6: 681a ldr r2, [r3, #0]
  82468. 80217b8: 4b13 ldr r3, [pc, #76] @ (8021808 <udp_input_local_match+0xc4>)
  82469. 80217ba: 695b ldr r3, [r3, #20]
  82470. 80217bc: 405a eors r2, r3
  82471. 80217be: 68bb ldr r3, [r7, #8]
  82472. 80217c0: 3308 adds r3, #8
  82473. 80217c2: 681b ldr r3, [r3, #0]
  82474. 80217c4: 4013 ands r3, r2
  82475. ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) ||
  82476. 80217c6: 2b00 cmp r3, #0
  82477. 80217c8: d110 bne.n 80217ec <udp_input_local_match+0xa8>
  82478. return 1;
  82479. 80217ca: 2301 movs r3, #1
  82480. 80217cc: e00f b.n 80217ee <udp_input_local_match+0xaa>
  82481. }
  82482. }
  82483. } else
  82484. #endif /* LWIP_IPV4 */
  82485. /* Handle IPv4 and IPv6: all or exact match */
  82486. if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
  82487. 80217ce: 68fb ldr r3, [r7, #12]
  82488. 80217d0: 2b00 cmp r3, #0
  82489. 80217d2: d009 beq.n 80217e8 <udp_input_local_match+0xa4>
  82490. 80217d4: 68fb ldr r3, [r7, #12]
  82491. 80217d6: 681b ldr r3, [r3, #0]
  82492. 80217d8: 2b00 cmp r3, #0
  82493. 80217da: d005 beq.n 80217e8 <udp_input_local_match+0xa4>
  82494. 80217dc: 68fb ldr r3, [r7, #12]
  82495. 80217de: 681a ldr r2, [r3, #0]
  82496. 80217e0: 4b09 ldr r3, [pc, #36] @ (8021808 <udp_input_local_match+0xc4>)
  82497. 80217e2: 695b ldr r3, [r3, #20]
  82498. 80217e4: 429a cmp r2, r3
  82499. 80217e6: d101 bne.n 80217ec <udp_input_local_match+0xa8>
  82500. return 1;
  82501. 80217e8: 2301 movs r3, #1
  82502. 80217ea: e000 b.n 80217ee <udp_input_local_match+0xaa>
  82503. }
  82504. }
  82505. return 0;
  82506. 80217ec: 2300 movs r3, #0
  82507. }
  82508. 80217ee: 4618 mov r0, r3
  82509. 80217f0: 3710 adds r7, #16
  82510. 80217f2: 46bd mov sp, r7
  82511. 80217f4: bd80 pop {r7, pc}
  82512. 80217f6: bf00 nop
  82513. 80217f8: 08030384 .word 0x08030384
  82514. 80217fc: 080303b4 .word 0x080303b4
  82515. 8021800: 080303d8 .word 0x080303d8
  82516. 8021804: 08030400 .word 0x08030400
  82517. 8021808: 24024408 .word 0x24024408
  82518. 0802180c <udp_input>:
  82519. * @param inp network interface on which the datagram was received.
  82520. *
  82521. */
  82522. void
  82523. udp_input(struct pbuf *p, struct netif *inp)
  82524. {
  82525. 802180c: b590 push {r4, r7, lr}
  82526. 802180e: b08d sub sp, #52 @ 0x34
  82527. 8021810: af02 add r7, sp, #8
  82528. 8021812: 6078 str r0, [r7, #4]
  82529. 8021814: 6039 str r1, [r7, #0]
  82530. struct udp_hdr *udphdr;
  82531. struct udp_pcb *pcb, *prev;
  82532. struct udp_pcb *uncon_pcb;
  82533. u16_t src, dest;
  82534. u8_t broadcast;
  82535. u8_t for_us = 0;
  82536. 8021816: 2300 movs r3, #0
  82537. 8021818: 77fb strb r3, [r7, #31]
  82538. LWIP_UNUSED_ARG(inp);
  82539. LWIP_ASSERT_CORE_LOCKED();
  82540. 802181a: f7ef f92f bl 8010a7c <sys_check_core_locking>
  82541. LWIP_ASSERT("udp_input: invalid pbuf", p != NULL);
  82542. 802181e: 687b ldr r3, [r7, #4]
  82543. 8021820: 2b00 cmp r3, #0
  82544. 8021822: d105 bne.n 8021830 <udp_input+0x24>
  82545. 8021824: 4b7c ldr r3, [pc, #496] @ (8021a18 <udp_input+0x20c>)
  82546. 8021826: 22cf movs r2, #207 @ 0xcf
  82547. 8021828: 497c ldr r1, [pc, #496] @ (8021a1c <udp_input+0x210>)
  82548. 802182a: 487d ldr r0, [pc, #500] @ (8021a20 <udp_input+0x214>)
  82549. 802182c: f008 fcc6 bl 802a1bc <iprintf>
  82550. LWIP_ASSERT("udp_input: invalid netif", inp != NULL);
  82551. 8021830: 683b ldr r3, [r7, #0]
  82552. 8021832: 2b00 cmp r3, #0
  82553. 8021834: d105 bne.n 8021842 <udp_input+0x36>
  82554. 8021836: 4b78 ldr r3, [pc, #480] @ (8021a18 <udp_input+0x20c>)
  82555. 8021838: 22d0 movs r2, #208 @ 0xd0
  82556. 802183a: 497a ldr r1, [pc, #488] @ (8021a24 <udp_input+0x218>)
  82557. 802183c: 4878 ldr r0, [pc, #480] @ (8021a20 <udp_input+0x214>)
  82558. 802183e: f008 fcbd bl 802a1bc <iprintf>
  82559. PERF_START;
  82560. UDP_STATS_INC(udp.recv);
  82561. /* Check minimum length (UDP header) */
  82562. if (p->len < UDP_HLEN) {
  82563. 8021842: 687b ldr r3, [r7, #4]
  82564. 8021844: 895b ldrh r3, [r3, #10]
  82565. 8021846: 2b07 cmp r3, #7
  82566. 8021848: d803 bhi.n 8021852 <udp_input+0x46>
  82567. LWIP_DEBUGF(UDP_DEBUG,
  82568. ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len));
  82569. UDP_STATS_INC(udp.lenerr);
  82570. UDP_STATS_INC(udp.drop);
  82571. MIB2_STATS_INC(mib2.udpinerrors);
  82572. pbuf_free(p);
  82573. 802184a: 6878 ldr r0, [r7, #4]
  82574. 802184c: f7f9 fa3e bl 801accc <pbuf_free>
  82575. goto end;
  82576. 8021850: e0de b.n 8021a10 <udp_input+0x204>
  82577. }
  82578. udphdr = (struct udp_hdr *)p->payload;
  82579. 8021852: 687b ldr r3, [r7, #4]
  82580. 8021854: 685b ldr r3, [r3, #4]
  82581. 8021856: 617b str r3, [r7, #20]
  82582. /* is broadcast packet ? */
  82583. broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif());
  82584. 8021858: 4b73 ldr r3, [pc, #460] @ (8021a28 <udp_input+0x21c>)
  82585. 802185a: 695b ldr r3, [r3, #20]
  82586. 802185c: 4a72 ldr r2, [pc, #456] @ (8021a28 <udp_input+0x21c>)
  82587. 802185e: 6812 ldr r2, [r2, #0]
  82588. 8021860: 4611 mov r1, r2
  82589. 8021862: 4618 mov r0, r3
  82590. 8021864: f003 ff54 bl 8025710 <ip4_addr_isbroadcast_u32>
  82591. 8021868: 4603 mov r3, r0
  82592. 802186a: 74fb strb r3, [r7, #19]
  82593. LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len));
  82594. /* convert src and dest ports to host byte order */
  82595. src = lwip_ntohs(udphdr->src);
  82596. 802186c: 697b ldr r3, [r7, #20]
  82597. 802186e: 881b ldrh r3, [r3, #0]
  82598. 8021870: b29b uxth r3, r3
  82599. 8021872: 4618 mov r0, r3
  82600. 8021874: f7f7 fd48 bl 8019308 <lwip_htons>
  82601. 8021878: 4603 mov r3, r0
  82602. 802187a: 823b strh r3, [r7, #16]
  82603. dest = lwip_ntohs(udphdr->dest);
  82604. 802187c: 697b ldr r3, [r7, #20]
  82605. 802187e: 885b ldrh r3, [r3, #2]
  82606. 8021880: b29b uxth r3, r3
  82607. 8021882: 4618 mov r0, r3
  82608. 8021884: f7f7 fd40 bl 8019308 <lwip_htons>
  82609. 8021888: 4603 mov r3, r0
  82610. 802188a: 81fb strh r3, [r7, #14]
  82611. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_dest_addr());
  82612. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest)));
  82613. ip_addr_debug_print_val(UDP_DEBUG, *ip_current_src_addr());
  82614. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src)));
  82615. pcb = NULL;
  82616. 802188c: 2300 movs r3, #0
  82617. 802188e: 623b str r3, [r7, #32]
  82618. prev = NULL;
  82619. 8021890: 2300 movs r3, #0
  82620. 8021892: 627b str r3, [r7, #36] @ 0x24
  82621. uncon_pcb = NULL;
  82622. 8021894: 2300 movs r3, #0
  82623. 8021896: 61bb str r3, [r7, #24]
  82624. /* Iterate through the UDP pcb list for a matching pcb.
  82625. * 'Perfect match' pcbs (connected to the remote port & ip address) are
  82626. * preferred. If no perfect match is found, the first unconnected pcb that
  82627. * matches the local port and ip address gets the datagram. */
  82628. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  82629. 8021898: 4b64 ldr r3, [pc, #400] @ (8021a2c <udp_input+0x220>)
  82630. 802189a: 681b ldr r3, [r3, #0]
  82631. 802189c: 623b str r3, [r7, #32]
  82632. 802189e: e054 b.n 802194a <udp_input+0x13e>
  82633. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", pcb->local_port));
  82634. ip_addr_debug_print_val(UDP_DEBUG, pcb->remote_ip);
  82635. LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", pcb->remote_port));
  82636. /* compare PCB local addr+port to UDP destination addr+port */
  82637. if ((pcb->local_port == dest) &&
  82638. 80218a0: 6a3b ldr r3, [r7, #32]
  82639. 80218a2: 8a5b ldrh r3, [r3, #18]
  82640. 80218a4: 89fa ldrh r2, [r7, #14]
  82641. 80218a6: 429a cmp r2, r3
  82642. 80218a8: d14a bne.n 8021940 <udp_input+0x134>
  82643. (udp_input_local_match(pcb, inp, broadcast) != 0)) {
  82644. 80218aa: 7cfb ldrb r3, [r7, #19]
  82645. 80218ac: 461a mov r2, r3
  82646. 80218ae: 6839 ldr r1, [r7, #0]
  82647. 80218b0: 6a38 ldr r0, [r7, #32]
  82648. 80218b2: f7ff ff47 bl 8021744 <udp_input_local_match>
  82649. 80218b6: 4603 mov r3, r0
  82650. if ((pcb->local_port == dest) &&
  82651. 80218b8: 2b00 cmp r3, #0
  82652. 80218ba: d041 beq.n 8021940 <udp_input+0x134>
  82653. if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) {
  82654. 80218bc: 6a3b ldr r3, [r7, #32]
  82655. 80218be: 7c1b ldrb r3, [r3, #16]
  82656. 80218c0: f003 0304 and.w r3, r3, #4
  82657. 80218c4: 2b00 cmp r3, #0
  82658. 80218c6: d11d bne.n 8021904 <udp_input+0xf8>
  82659. if (uncon_pcb == NULL) {
  82660. 80218c8: 69bb ldr r3, [r7, #24]
  82661. 80218ca: 2b00 cmp r3, #0
  82662. 80218cc: d102 bne.n 80218d4 <udp_input+0xc8>
  82663. /* the first unconnected matching PCB */
  82664. uncon_pcb = pcb;
  82665. 80218ce: 6a3b ldr r3, [r7, #32]
  82666. 80218d0: 61bb str r3, [r7, #24]
  82667. 80218d2: e017 b.n 8021904 <udp_input+0xf8>
  82668. #if LWIP_IPV4
  82669. } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) {
  82670. 80218d4: 7cfb ldrb r3, [r7, #19]
  82671. 80218d6: 2b00 cmp r3, #0
  82672. 80218d8: d014 beq.n 8021904 <udp_input+0xf8>
  82673. 80218da: 4b53 ldr r3, [pc, #332] @ (8021a28 <udp_input+0x21c>)
  82674. 80218dc: 695b ldr r3, [r3, #20]
  82675. 80218de: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  82676. 80218e2: d10f bne.n 8021904 <udp_input+0xf8>
  82677. /* global broadcast address (only valid for IPv4; match was checked before) */
  82678. if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_addr(inp))) {
  82679. 80218e4: 69bb ldr r3, [r7, #24]
  82680. 80218e6: 681a ldr r2, [r3, #0]
  82681. 80218e8: 683b ldr r3, [r7, #0]
  82682. 80218ea: 3304 adds r3, #4
  82683. 80218ec: 681b ldr r3, [r3, #0]
  82684. 80218ee: 429a cmp r2, r3
  82685. 80218f0: d008 beq.n 8021904 <udp_input+0xf8>
  82686. /* uncon_pcb does not match the input netif, check this pcb */
  82687. if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) {
  82688. 80218f2: 6a3b ldr r3, [r7, #32]
  82689. 80218f4: 681a ldr r2, [r3, #0]
  82690. 80218f6: 683b ldr r3, [r7, #0]
  82691. 80218f8: 3304 adds r3, #4
  82692. 80218fa: 681b ldr r3, [r3, #0]
  82693. 80218fc: 429a cmp r2, r3
  82694. 80218fe: d101 bne.n 8021904 <udp_input+0xf8>
  82695. /* better match */
  82696. uncon_pcb = pcb;
  82697. 8021900: 6a3b ldr r3, [r7, #32]
  82698. 8021902: 61bb str r3, [r7, #24]
  82699. }
  82700. #endif /* SO_REUSE */
  82701. }
  82702. /* compare PCB remote addr+port to UDP source addr+port */
  82703. if ((pcb->remote_port == src) &&
  82704. 8021904: 6a3b ldr r3, [r7, #32]
  82705. 8021906: 8a9b ldrh r3, [r3, #20]
  82706. 8021908: 8a3a ldrh r2, [r7, #16]
  82707. 802190a: 429a cmp r2, r3
  82708. 802190c: d118 bne.n 8021940 <udp_input+0x134>
  82709. (ip_addr_isany_val(pcb->remote_ip) ||
  82710. 802190e: 6a3b ldr r3, [r7, #32]
  82711. 8021910: 685b ldr r3, [r3, #4]
  82712. if ((pcb->remote_port == src) &&
  82713. 8021912: 2b00 cmp r3, #0
  82714. 8021914: d005 beq.n 8021922 <udp_input+0x116>
  82715. ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) {
  82716. 8021916: 6a3b ldr r3, [r7, #32]
  82717. 8021918: 685a ldr r2, [r3, #4]
  82718. 802191a: 4b43 ldr r3, [pc, #268] @ (8021a28 <udp_input+0x21c>)
  82719. 802191c: 691b ldr r3, [r3, #16]
  82720. (ip_addr_isany_val(pcb->remote_ip) ||
  82721. 802191e: 429a cmp r2, r3
  82722. 8021920: d10e bne.n 8021940 <udp_input+0x134>
  82723. /* the first fully matching PCB */
  82724. if (prev != NULL) {
  82725. 8021922: 6a7b ldr r3, [r7, #36] @ 0x24
  82726. 8021924: 2b00 cmp r3, #0
  82727. 8021926: d014 beq.n 8021952 <udp_input+0x146>
  82728. /* move the pcb to the front of udp_pcbs so that is
  82729. found faster next time */
  82730. prev->next = pcb->next;
  82731. 8021928: 6a3b ldr r3, [r7, #32]
  82732. 802192a: 68da ldr r2, [r3, #12]
  82733. 802192c: 6a7b ldr r3, [r7, #36] @ 0x24
  82734. 802192e: 60da str r2, [r3, #12]
  82735. pcb->next = udp_pcbs;
  82736. 8021930: 4b3e ldr r3, [pc, #248] @ (8021a2c <udp_input+0x220>)
  82737. 8021932: 681a ldr r2, [r3, #0]
  82738. 8021934: 6a3b ldr r3, [r7, #32]
  82739. 8021936: 60da str r2, [r3, #12]
  82740. udp_pcbs = pcb;
  82741. 8021938: 4a3c ldr r2, [pc, #240] @ (8021a2c <udp_input+0x220>)
  82742. 802193a: 6a3b ldr r3, [r7, #32]
  82743. 802193c: 6013 str r3, [r2, #0]
  82744. } else {
  82745. UDP_STATS_INC(udp.cachehit);
  82746. }
  82747. break;
  82748. 802193e: e008 b.n 8021952 <udp_input+0x146>
  82749. }
  82750. }
  82751. prev = pcb;
  82752. 8021940: 6a3b ldr r3, [r7, #32]
  82753. 8021942: 627b str r3, [r7, #36] @ 0x24
  82754. for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) {
  82755. 8021944: 6a3b ldr r3, [r7, #32]
  82756. 8021946: 68db ldr r3, [r3, #12]
  82757. 8021948: 623b str r3, [r7, #32]
  82758. 802194a: 6a3b ldr r3, [r7, #32]
  82759. 802194c: 2b00 cmp r3, #0
  82760. 802194e: d1a7 bne.n 80218a0 <udp_input+0x94>
  82761. 8021950: e000 b.n 8021954 <udp_input+0x148>
  82762. break;
  82763. 8021952: bf00 nop
  82764. }
  82765. /* no fully matching pcb found? then look for an unconnected pcb */
  82766. if (pcb == NULL) {
  82767. 8021954: 6a3b ldr r3, [r7, #32]
  82768. 8021956: 2b00 cmp r3, #0
  82769. 8021958: d101 bne.n 802195e <udp_input+0x152>
  82770. pcb = uncon_pcb;
  82771. 802195a: 69bb ldr r3, [r7, #24]
  82772. 802195c: 623b str r3, [r7, #32]
  82773. }
  82774. /* Check checksum if this is a match or if it was directed at us. */
  82775. if (pcb != NULL) {
  82776. 802195e: 6a3b ldr r3, [r7, #32]
  82777. 8021960: 2b00 cmp r3, #0
  82778. 8021962: d002 beq.n 802196a <udp_input+0x15e>
  82779. for_us = 1;
  82780. 8021964: 2301 movs r3, #1
  82781. 8021966: 77fb strb r3, [r7, #31]
  82782. 8021968: e00a b.n 8021980 <udp_input+0x174>
  82783. for_us = netif_get_ip6_addr_match(inp, ip6_current_dest_addr()) >= 0;
  82784. }
  82785. #endif /* LWIP_IPV6 */
  82786. #if LWIP_IPV4
  82787. if (!ip_current_is_v6()) {
  82788. for_us = ip4_addr_cmp(netif_ip4_addr(inp), ip4_current_dest_addr());
  82789. 802196a: 683b ldr r3, [r7, #0]
  82790. 802196c: 3304 adds r3, #4
  82791. 802196e: 681a ldr r2, [r3, #0]
  82792. 8021970: 4b2d ldr r3, [pc, #180] @ (8021a28 <udp_input+0x21c>)
  82793. 8021972: 695b ldr r3, [r3, #20]
  82794. 8021974: 429a cmp r2, r3
  82795. 8021976: bf0c ite eq
  82796. 8021978: 2301 moveq r3, #1
  82797. 802197a: 2300 movne r3, #0
  82798. 802197c: b2db uxtb r3, r3
  82799. 802197e: 77fb strb r3, [r7, #31]
  82800. }
  82801. #endif /* LWIP_IPV4 */
  82802. }
  82803. if (for_us) {
  82804. 8021980: 7ffb ldrb r3, [r7, #31]
  82805. 8021982: 2b00 cmp r3, #0
  82806. 8021984: d041 beq.n 8021a0a <udp_input+0x1fe>
  82807. }
  82808. }
  82809. }
  82810. }
  82811. #endif /* CHECKSUM_CHECK_UDP */
  82812. if (pbuf_remove_header(p, UDP_HLEN)) {
  82813. 8021986: 2108 movs r1, #8
  82814. 8021988: 6878 ldr r0, [r7, #4]
  82815. 802198a: f7f9 f8e7 bl 801ab5c <pbuf_remove_header>
  82816. 802198e: 4603 mov r3, r0
  82817. 8021990: 2b00 cmp r3, #0
  82818. 8021992: d00a beq.n 80219aa <udp_input+0x19e>
  82819. /* Can we cope with this failing? Just assert for now */
  82820. LWIP_ASSERT("pbuf_remove_header failed\n", 0);
  82821. 8021994: 4b20 ldr r3, [pc, #128] @ (8021a18 <udp_input+0x20c>)
  82822. 8021996: f44f 72b8 mov.w r2, #368 @ 0x170
  82823. 802199a: 4925 ldr r1, [pc, #148] @ (8021a30 <udp_input+0x224>)
  82824. 802199c: 4820 ldr r0, [pc, #128] @ (8021a20 <udp_input+0x214>)
  82825. 802199e: f008 fc0d bl 802a1bc <iprintf>
  82826. UDP_STATS_INC(udp.drop);
  82827. MIB2_STATS_INC(mib2.udpinerrors);
  82828. pbuf_free(p);
  82829. 80219a2: 6878 ldr r0, [r7, #4]
  82830. 80219a4: f7f9 f992 bl 801accc <pbuf_free>
  82831. goto end;
  82832. 80219a8: e032 b.n 8021a10 <udp_input+0x204>
  82833. }
  82834. if (pcb != NULL) {
  82835. 80219aa: 6a3b ldr r3, [r7, #32]
  82836. 80219ac: 2b00 cmp r3, #0
  82837. 80219ae: d012 beq.n 80219d6 <udp_input+0x1ca>
  82838. }
  82839. }
  82840. }
  82841. #endif /* SO_REUSE && SO_REUSE_RXTOALL */
  82842. /* callback */
  82843. if (pcb->recv != NULL) {
  82844. 80219b0: 6a3b ldr r3, [r7, #32]
  82845. 80219b2: 699b ldr r3, [r3, #24]
  82846. 80219b4: 2b00 cmp r3, #0
  82847. 80219b6: d00a beq.n 80219ce <udp_input+0x1c2>
  82848. /* now the recv function is responsible for freeing p */
  82849. pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src);
  82850. 80219b8: 6a3b ldr r3, [r7, #32]
  82851. 80219ba: 699c ldr r4, [r3, #24]
  82852. 80219bc: 6a3b ldr r3, [r7, #32]
  82853. 80219be: 69d8 ldr r0, [r3, #28]
  82854. 80219c0: 8a3b ldrh r3, [r7, #16]
  82855. 80219c2: 9300 str r3, [sp, #0]
  82856. 80219c4: 4b1b ldr r3, [pc, #108] @ (8021a34 <udp_input+0x228>)
  82857. 80219c6: 687a ldr r2, [r7, #4]
  82858. 80219c8: 6a39 ldr r1, [r7, #32]
  82859. 80219ca: 47a0 blx r4
  82860. } else {
  82861. pbuf_free(p);
  82862. }
  82863. end:
  82864. PERF_STOP("udp_input");
  82865. return;
  82866. 80219cc: e021 b.n 8021a12 <udp_input+0x206>
  82867. pbuf_free(p);
  82868. 80219ce: 6878 ldr r0, [r7, #4]
  82869. 80219d0: f7f9 f97c bl 801accc <pbuf_free>
  82870. goto end;
  82871. 80219d4: e01c b.n 8021a10 <udp_input+0x204>
  82872. if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) {
  82873. 80219d6: 7cfb ldrb r3, [r7, #19]
  82874. 80219d8: 2b00 cmp r3, #0
  82875. 80219da: d112 bne.n 8021a02 <udp_input+0x1f6>
  82876. 80219dc: 4b12 ldr r3, [pc, #72] @ (8021a28 <udp_input+0x21c>)
  82877. 80219de: 695b ldr r3, [r3, #20]
  82878. 80219e0: f003 03f0 and.w r3, r3, #240 @ 0xf0
  82879. 80219e4: 2be0 cmp r3, #224 @ 0xe0
  82880. 80219e6: d00c beq.n 8021a02 <udp_input+0x1f6>
  82881. pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN));
  82882. 80219e8: 4b0f ldr r3, [pc, #60] @ (8021a28 <udp_input+0x21c>)
  82883. 80219ea: 899b ldrh r3, [r3, #12]
  82884. 80219ec: 3308 adds r3, #8
  82885. 80219ee: b29b uxth r3, r3
  82886. 80219f0: b21b sxth r3, r3
  82887. 80219f2: 4619 mov r1, r3
  82888. 80219f4: 6878 ldr r0, [r7, #4]
  82889. 80219f6: f7f9 f924 bl 801ac42 <pbuf_header_force>
  82890. icmp_port_unreach(ip_current_is_v6(), p);
  82891. 80219fa: 2103 movs r1, #3
  82892. 80219fc: 6878 ldr r0, [r7, #4]
  82893. 80219fe: f003 fb3b bl 8025078 <icmp_dest_unreach>
  82894. pbuf_free(p);
  82895. 8021a02: 6878 ldr r0, [r7, #4]
  82896. 8021a04: f7f9 f962 bl 801accc <pbuf_free>
  82897. return;
  82898. 8021a08: e003 b.n 8021a12 <udp_input+0x206>
  82899. pbuf_free(p);
  82900. 8021a0a: 6878 ldr r0, [r7, #4]
  82901. 8021a0c: f7f9 f95e bl 801accc <pbuf_free>
  82902. return;
  82903. 8021a10: bf00 nop
  82904. UDP_STATS_INC(udp.drop);
  82905. MIB2_STATS_INC(mib2.udpinerrors);
  82906. pbuf_free(p);
  82907. PERF_STOP("udp_input");
  82908. #endif /* CHECKSUM_CHECK_UDP */
  82909. }
  82910. 8021a12: 372c adds r7, #44 @ 0x2c
  82911. 8021a14: 46bd mov sp, r7
  82912. 8021a16: bd90 pop {r4, r7, pc}
  82913. 8021a18: 08030384 .word 0x08030384
  82914. 8021a1c: 08030428 .word 0x08030428
  82915. 8021a20: 080303d8 .word 0x080303d8
  82916. 8021a24: 08030440 .word 0x08030440
  82917. 8021a28: 24024408 .word 0x24024408
  82918. 8021a2c: 2402afb8 .word 0x2402afb8
  82919. 8021a30: 0803045c .word 0x0803045c
  82920. 8021a34: 24024418 .word 0x24024418
  82921. 08021a38 <udp_send>:
  82922. *
  82923. * @see udp_disconnect() udp_sendto()
  82924. */
  82925. err_t
  82926. udp_send(struct udp_pcb *pcb, struct pbuf *p)
  82927. {
  82928. 8021a38: b580 push {r7, lr}
  82929. 8021a3a: b082 sub sp, #8
  82930. 8021a3c: af00 add r7, sp, #0
  82931. 8021a3e: 6078 str r0, [r7, #4]
  82932. 8021a40: 6039 str r1, [r7, #0]
  82933. LWIP_ERROR("udp_send: invalid pcb", pcb != NULL, return ERR_ARG);
  82934. 8021a42: 687b ldr r3, [r7, #4]
  82935. 8021a44: 2b00 cmp r3, #0
  82936. 8021a46: d109 bne.n 8021a5c <udp_send+0x24>
  82937. 8021a48: 4b11 ldr r3, [pc, #68] @ (8021a90 <udp_send+0x58>)
  82938. 8021a4a: f240 12d5 movw r2, #469 @ 0x1d5
  82939. 8021a4e: 4911 ldr r1, [pc, #68] @ (8021a94 <udp_send+0x5c>)
  82940. 8021a50: 4811 ldr r0, [pc, #68] @ (8021a98 <udp_send+0x60>)
  82941. 8021a52: f008 fbb3 bl 802a1bc <iprintf>
  82942. 8021a56: f06f 030f mvn.w r3, #15
  82943. 8021a5a: e015 b.n 8021a88 <udp_send+0x50>
  82944. LWIP_ERROR("udp_send: invalid pbuf", p != NULL, return ERR_ARG);
  82945. 8021a5c: 683b ldr r3, [r7, #0]
  82946. 8021a5e: 2b00 cmp r3, #0
  82947. 8021a60: d109 bne.n 8021a76 <udp_send+0x3e>
  82948. 8021a62: 4b0b ldr r3, [pc, #44] @ (8021a90 <udp_send+0x58>)
  82949. 8021a64: f44f 72eb mov.w r2, #470 @ 0x1d6
  82950. 8021a68: 490c ldr r1, [pc, #48] @ (8021a9c <udp_send+0x64>)
  82951. 8021a6a: 480b ldr r0, [pc, #44] @ (8021a98 <udp_send+0x60>)
  82952. 8021a6c: f008 fba6 bl 802a1bc <iprintf>
  82953. 8021a70: f06f 030f mvn.w r3, #15
  82954. 8021a74: e008 b.n 8021a88 <udp_send+0x50>
  82955. if (IP_IS_ANY_TYPE_VAL(pcb->remote_ip)) {
  82956. return ERR_VAL;
  82957. }
  82958. /* send to the packet using remote ip and port stored in the pcb */
  82959. return udp_sendto(pcb, p, &pcb->remote_ip, pcb->remote_port);
  82960. 8021a76: 687b ldr r3, [r7, #4]
  82961. 8021a78: 1d1a adds r2, r3, #4
  82962. 8021a7a: 687b ldr r3, [r7, #4]
  82963. 8021a7c: 8a9b ldrh r3, [r3, #20]
  82964. 8021a7e: 6839 ldr r1, [r7, #0]
  82965. 8021a80: 6878 ldr r0, [r7, #4]
  82966. 8021a82: f000 f80d bl 8021aa0 <udp_sendto>
  82967. 8021a86: 4603 mov r3, r0
  82968. }
  82969. 8021a88: 4618 mov r0, r3
  82970. 8021a8a: 3708 adds r7, #8
  82971. 8021a8c: 46bd mov sp, r7
  82972. 8021a8e: bd80 pop {r7, pc}
  82973. 8021a90: 08030384 .word 0x08030384
  82974. 8021a94: 08030478 .word 0x08030478
  82975. 8021a98: 080303d8 .word 0x080303d8
  82976. 8021a9c: 08030490 .word 0x08030490
  82977. 08021aa0 <udp_sendto>:
  82978. * @see udp_disconnect() udp_send()
  82979. */
  82980. err_t
  82981. udp_sendto(struct udp_pcb *pcb, struct pbuf *p,
  82982. const ip_addr_t *dst_ip, u16_t dst_port)
  82983. {
  82984. 8021aa0: b580 push {r7, lr}
  82985. 8021aa2: b088 sub sp, #32
  82986. 8021aa4: af02 add r7, sp, #8
  82987. 8021aa6: 60f8 str r0, [r7, #12]
  82988. 8021aa8: 60b9 str r1, [r7, #8]
  82989. 8021aaa: 607a str r2, [r7, #4]
  82990. 8021aac: 807b strh r3, [r7, #2]
  82991. u16_t dst_port, u8_t have_chksum, u16_t chksum)
  82992. {
  82993. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  82994. struct netif *netif;
  82995. LWIP_ERROR("udp_sendto: invalid pcb", pcb != NULL, return ERR_ARG);
  82996. 8021aae: 68fb ldr r3, [r7, #12]
  82997. 8021ab0: 2b00 cmp r3, #0
  82998. 8021ab2: d109 bne.n 8021ac8 <udp_sendto+0x28>
  82999. 8021ab4: 4b23 ldr r3, [pc, #140] @ (8021b44 <udp_sendto+0xa4>)
  83000. 8021ab6: f44f 7206 mov.w r2, #536 @ 0x218
  83001. 8021aba: 4923 ldr r1, [pc, #140] @ (8021b48 <udp_sendto+0xa8>)
  83002. 8021abc: 4823 ldr r0, [pc, #140] @ (8021b4c <udp_sendto+0xac>)
  83003. 8021abe: f008 fb7d bl 802a1bc <iprintf>
  83004. 8021ac2: f06f 030f mvn.w r3, #15
  83005. 8021ac6: e038 b.n 8021b3a <udp_sendto+0x9a>
  83006. LWIP_ERROR("udp_sendto: invalid pbuf", p != NULL, return ERR_ARG);
  83007. 8021ac8: 68bb ldr r3, [r7, #8]
  83008. 8021aca: 2b00 cmp r3, #0
  83009. 8021acc: d109 bne.n 8021ae2 <udp_sendto+0x42>
  83010. 8021ace: 4b1d ldr r3, [pc, #116] @ (8021b44 <udp_sendto+0xa4>)
  83011. 8021ad0: f240 2219 movw r2, #537 @ 0x219
  83012. 8021ad4: 491e ldr r1, [pc, #120] @ (8021b50 <udp_sendto+0xb0>)
  83013. 8021ad6: 481d ldr r0, [pc, #116] @ (8021b4c <udp_sendto+0xac>)
  83014. 8021ad8: f008 fb70 bl 802a1bc <iprintf>
  83015. 8021adc: f06f 030f mvn.w r3, #15
  83016. 8021ae0: e02b b.n 8021b3a <udp_sendto+0x9a>
  83017. LWIP_ERROR("udp_sendto: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  83018. 8021ae2: 687b ldr r3, [r7, #4]
  83019. 8021ae4: 2b00 cmp r3, #0
  83020. 8021ae6: d109 bne.n 8021afc <udp_sendto+0x5c>
  83021. 8021ae8: 4b16 ldr r3, [pc, #88] @ (8021b44 <udp_sendto+0xa4>)
  83022. 8021aea: f240 221a movw r2, #538 @ 0x21a
  83023. 8021aee: 4919 ldr r1, [pc, #100] @ (8021b54 <udp_sendto+0xb4>)
  83024. 8021af0: 4816 ldr r0, [pc, #88] @ (8021b4c <udp_sendto+0xac>)
  83025. 8021af2: f008 fb63 bl 802a1bc <iprintf>
  83026. 8021af6: f06f 030f mvn.w r3, #15
  83027. 8021afa: e01e b.n 8021b3a <udp_sendto+0x9a>
  83028. return ERR_VAL;
  83029. }
  83030. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send\n"));
  83031. if (pcb->netif_idx != NETIF_NO_INDEX) {
  83032. 8021afc: 68fb ldr r3, [r7, #12]
  83033. 8021afe: 7a1b ldrb r3, [r3, #8]
  83034. 8021b00: 2b00 cmp r3, #0
  83035. 8021b02: d006 beq.n 8021b12 <udp_sendto+0x72>
  83036. netif = netif_get_by_index(pcb->netif_idx);
  83037. 8021b04: 68fb ldr r3, [r7, #12]
  83038. 8021b06: 7a1b ldrb r3, [r3, #8]
  83039. 8021b08: 4618 mov r0, r3
  83040. 8021b0a: f7f8 fd1f bl 801a54c <netif_get_by_index>
  83041. 8021b0e: 6178 str r0, [r7, #20]
  83042. 8021b10: e003 b.n 8021b1a <udp_sendto+0x7a>
  83043. if (netif == NULL)
  83044. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  83045. {
  83046. /* find the outgoing network interface for this packet */
  83047. netif = ip_route(&pcb->local_ip, dst_ip);
  83048. 8021b12: 6878 ldr r0, [r7, #4]
  83049. 8021b14: f003 fb44 bl 80251a0 <ip4_route>
  83050. 8021b18: 6178 str r0, [r7, #20]
  83051. }
  83052. }
  83053. /* no outgoing network interface could be found? */
  83054. if (netif == NULL) {
  83055. 8021b1a: 697b ldr r3, [r7, #20]
  83056. 8021b1c: 2b00 cmp r3, #0
  83057. 8021b1e: d102 bne.n 8021b26 <udp_sendto+0x86>
  83058. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: No route to "));
  83059. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, dst_ip);
  83060. LWIP_DEBUGF(UDP_DEBUG, ("\n"));
  83061. UDP_STATS_INC(udp.rterr);
  83062. return ERR_RTE;
  83063. 8021b20: f06f 0303 mvn.w r3, #3
  83064. 8021b24: e009 b.n 8021b3a <udp_sendto+0x9a>
  83065. }
  83066. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  83067. return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum);
  83068. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83069. return udp_sendto_if(pcb, p, dst_ip, dst_port, netif);
  83070. 8021b26: 887a ldrh r2, [r7, #2]
  83071. 8021b28: 697b ldr r3, [r7, #20]
  83072. 8021b2a: 9300 str r3, [sp, #0]
  83073. 8021b2c: 4613 mov r3, r2
  83074. 8021b2e: 687a ldr r2, [r7, #4]
  83075. 8021b30: 68b9 ldr r1, [r7, #8]
  83076. 8021b32: 68f8 ldr r0, [r7, #12]
  83077. 8021b34: f000 f810 bl 8021b58 <udp_sendto_if>
  83078. 8021b38: 4603 mov r3, r0
  83079. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83080. }
  83081. 8021b3a: 4618 mov r0, r3
  83082. 8021b3c: 3718 adds r7, #24
  83083. 8021b3e: 46bd mov sp, r7
  83084. 8021b40: bd80 pop {r7, pc}
  83085. 8021b42: bf00 nop
  83086. 8021b44: 08030384 .word 0x08030384
  83087. 8021b48: 080304a8 .word 0x080304a8
  83088. 8021b4c: 080303d8 .word 0x080303d8
  83089. 8021b50: 080304c0 .word 0x080304c0
  83090. 8021b54: 080304dc .word 0x080304dc
  83091. 08021b58 <udp_sendto_if>:
  83092. * @see udp_disconnect() udp_send()
  83093. */
  83094. err_t
  83095. udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p,
  83096. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif)
  83097. {
  83098. 8021b58: b580 push {r7, lr}
  83099. 8021b5a: b088 sub sp, #32
  83100. 8021b5c: af02 add r7, sp, #8
  83101. 8021b5e: 60f8 str r0, [r7, #12]
  83102. 8021b60: 60b9 str r1, [r7, #8]
  83103. 8021b62: 607a str r2, [r7, #4]
  83104. 8021b64: 807b strh r3, [r7, #2]
  83105. u16_t chksum)
  83106. {
  83107. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83108. const ip_addr_t *src_ip;
  83109. LWIP_ERROR("udp_sendto_if: invalid pcb", pcb != NULL, return ERR_ARG);
  83110. 8021b66: 68fb ldr r3, [r7, #12]
  83111. 8021b68: 2b00 cmp r3, #0
  83112. 8021b6a: d109 bne.n 8021b80 <udp_sendto_if+0x28>
  83113. 8021b6c: 4b2e ldr r3, [pc, #184] @ (8021c28 <udp_sendto_if+0xd0>)
  83114. 8021b6e: f44f 7220 mov.w r2, #640 @ 0x280
  83115. 8021b72: 492e ldr r1, [pc, #184] @ (8021c2c <udp_sendto_if+0xd4>)
  83116. 8021b74: 482e ldr r0, [pc, #184] @ (8021c30 <udp_sendto_if+0xd8>)
  83117. 8021b76: f008 fb21 bl 802a1bc <iprintf>
  83118. 8021b7a: f06f 030f mvn.w r3, #15
  83119. 8021b7e: e04f b.n 8021c20 <udp_sendto_if+0xc8>
  83120. LWIP_ERROR("udp_sendto_if: invalid pbuf", p != NULL, return ERR_ARG);
  83121. 8021b80: 68bb ldr r3, [r7, #8]
  83122. 8021b82: 2b00 cmp r3, #0
  83123. 8021b84: d109 bne.n 8021b9a <udp_sendto_if+0x42>
  83124. 8021b86: 4b28 ldr r3, [pc, #160] @ (8021c28 <udp_sendto_if+0xd0>)
  83125. 8021b88: f240 2281 movw r2, #641 @ 0x281
  83126. 8021b8c: 4929 ldr r1, [pc, #164] @ (8021c34 <udp_sendto_if+0xdc>)
  83127. 8021b8e: 4828 ldr r0, [pc, #160] @ (8021c30 <udp_sendto_if+0xd8>)
  83128. 8021b90: f008 fb14 bl 802a1bc <iprintf>
  83129. 8021b94: f06f 030f mvn.w r3, #15
  83130. 8021b98: e042 b.n 8021c20 <udp_sendto_if+0xc8>
  83131. LWIP_ERROR("udp_sendto_if: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  83132. 8021b9a: 687b ldr r3, [r7, #4]
  83133. 8021b9c: 2b00 cmp r3, #0
  83134. 8021b9e: d109 bne.n 8021bb4 <udp_sendto_if+0x5c>
  83135. 8021ba0: 4b21 ldr r3, [pc, #132] @ (8021c28 <udp_sendto_if+0xd0>)
  83136. 8021ba2: f240 2282 movw r2, #642 @ 0x282
  83137. 8021ba6: 4924 ldr r1, [pc, #144] @ (8021c38 <udp_sendto_if+0xe0>)
  83138. 8021ba8: 4821 ldr r0, [pc, #132] @ (8021c30 <udp_sendto_if+0xd8>)
  83139. 8021baa: f008 fb07 bl 802a1bc <iprintf>
  83140. 8021bae: f06f 030f mvn.w r3, #15
  83141. 8021bb2: e035 b.n 8021c20 <udp_sendto_if+0xc8>
  83142. LWIP_ERROR("udp_sendto_if: invalid netif", netif != NULL, return ERR_ARG);
  83143. 8021bb4: 6a3b ldr r3, [r7, #32]
  83144. 8021bb6: 2b00 cmp r3, #0
  83145. 8021bb8: d109 bne.n 8021bce <udp_sendto_if+0x76>
  83146. 8021bba: 4b1b ldr r3, [pc, #108] @ (8021c28 <udp_sendto_if+0xd0>)
  83147. 8021bbc: f240 2283 movw r2, #643 @ 0x283
  83148. 8021bc0: 491e ldr r1, [pc, #120] @ (8021c3c <udp_sendto_if+0xe4>)
  83149. 8021bc2: 481b ldr r0, [pc, #108] @ (8021c30 <udp_sendto_if+0xd8>)
  83150. 8021bc4: f008 fafa bl 802a1bc <iprintf>
  83151. 8021bc8: f06f 030f mvn.w r3, #15
  83152. 8021bcc: e028 b.n 8021c20 <udp_sendto_if+0xc8>
  83153. #endif /* LWIP_IPV6 */
  83154. #if LWIP_IPV4 && LWIP_IPV6
  83155. else
  83156. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  83157. #if LWIP_IPV4
  83158. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  83159. 8021bce: 68fb ldr r3, [r7, #12]
  83160. 8021bd0: 2b00 cmp r3, #0
  83161. 8021bd2: d009 beq.n 8021be8 <udp_sendto_if+0x90>
  83162. 8021bd4: 68fb ldr r3, [r7, #12]
  83163. 8021bd6: 681b ldr r3, [r3, #0]
  83164. 8021bd8: 2b00 cmp r3, #0
  83165. 8021bda: d005 beq.n 8021be8 <udp_sendto_if+0x90>
  83166. ip4_addr_ismulticast(ip_2_ip4(&pcb->local_ip))) {
  83167. 8021bdc: 68fb ldr r3, [r7, #12]
  83168. 8021bde: 681b ldr r3, [r3, #0]
  83169. 8021be0: f003 03f0 and.w r3, r3, #240 @ 0xf0
  83170. if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) ||
  83171. 8021be4: 2be0 cmp r3, #224 @ 0xe0
  83172. 8021be6: d103 bne.n 8021bf0 <udp_sendto_if+0x98>
  83173. /* if the local_ip is any or multicast
  83174. * use the outgoing network interface IP address as source address */
  83175. src_ip = netif_ip_addr4(netif);
  83176. 8021be8: 6a3b ldr r3, [r7, #32]
  83177. 8021bea: 3304 adds r3, #4
  83178. 8021bec: 617b str r3, [r7, #20]
  83179. 8021bee: e00b b.n 8021c08 <udp_sendto_if+0xb0>
  83180. } else {
  83181. /* check if UDP PCB local IP address is correct
  83182. * this could be an old address if netif->ip_addr has changed */
  83183. if (!ip4_addr_cmp(ip_2_ip4(&(pcb->local_ip)), netif_ip4_addr(netif))) {
  83184. 8021bf0: 68fb ldr r3, [r7, #12]
  83185. 8021bf2: 681a ldr r2, [r3, #0]
  83186. 8021bf4: 6a3b ldr r3, [r7, #32]
  83187. 8021bf6: 3304 adds r3, #4
  83188. 8021bf8: 681b ldr r3, [r3, #0]
  83189. 8021bfa: 429a cmp r2, r3
  83190. 8021bfc: d002 beq.n 8021c04 <udp_sendto_if+0xac>
  83191. /* local_ip doesn't match, drop the packet */
  83192. return ERR_RTE;
  83193. 8021bfe: f06f 0303 mvn.w r3, #3
  83194. 8021c02: e00d b.n 8021c20 <udp_sendto_if+0xc8>
  83195. }
  83196. /* use UDP PCB local IP address as source address */
  83197. src_ip = &pcb->local_ip;
  83198. 8021c04: 68fb ldr r3, [r7, #12]
  83199. 8021c06: 617b str r3, [r7, #20]
  83200. }
  83201. #endif /* LWIP_IPV4 */
  83202. #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP
  83203. return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip);
  83204. #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83205. return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip);
  83206. 8021c08: 887a ldrh r2, [r7, #2]
  83207. 8021c0a: 697b ldr r3, [r7, #20]
  83208. 8021c0c: 9301 str r3, [sp, #4]
  83209. 8021c0e: 6a3b ldr r3, [r7, #32]
  83210. 8021c10: 9300 str r3, [sp, #0]
  83211. 8021c12: 4613 mov r3, r2
  83212. 8021c14: 687a ldr r2, [r7, #4]
  83213. 8021c16: 68b9 ldr r1, [r7, #8]
  83214. 8021c18: 68f8 ldr r0, [r7, #12]
  83215. 8021c1a: f000 f811 bl 8021c40 <udp_sendto_if_src>
  83216. 8021c1e: 4603 mov r3, r0
  83217. #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */
  83218. }
  83219. 8021c20: 4618 mov r0, r3
  83220. 8021c22: 3718 adds r7, #24
  83221. 8021c24: 46bd mov sp, r7
  83222. 8021c26: bd80 pop {r7, pc}
  83223. 8021c28: 08030384 .word 0x08030384
  83224. 8021c2c: 080304f8 .word 0x080304f8
  83225. 8021c30: 080303d8 .word 0x080303d8
  83226. 8021c34: 08030514 .word 0x08030514
  83227. 8021c38: 08030530 .word 0x08030530
  83228. 8021c3c: 08030550 .word 0x08030550
  83229. 08021c40 <udp_sendto_if_src>:
  83230. /** @ingroup udp_raw
  83231. * Same as @ref udp_sendto_if, but with source address */
  83232. err_t
  83233. udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p,
  83234. const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip)
  83235. {
  83236. 8021c40: b580 push {r7, lr}
  83237. 8021c42: b08c sub sp, #48 @ 0x30
  83238. 8021c44: af04 add r7, sp, #16
  83239. 8021c46: 60f8 str r0, [r7, #12]
  83240. 8021c48: 60b9 str r1, [r7, #8]
  83241. 8021c4a: 607a str r2, [r7, #4]
  83242. 8021c4c: 807b strh r3, [r7, #2]
  83243. err_t err;
  83244. struct pbuf *q; /* q will be sent down the stack */
  83245. u8_t ip_proto;
  83246. u8_t ttl;
  83247. LWIP_ASSERT_CORE_LOCKED();
  83248. 8021c4e: f7ee ff15 bl 8010a7c <sys_check_core_locking>
  83249. LWIP_ERROR("udp_sendto_if_src: invalid pcb", pcb != NULL, return ERR_ARG);
  83250. 8021c52: 68fb ldr r3, [r7, #12]
  83251. 8021c54: 2b00 cmp r3, #0
  83252. 8021c56: d109 bne.n 8021c6c <udp_sendto_if_src+0x2c>
  83253. 8021c58: 4b65 ldr r3, [pc, #404] @ (8021df0 <udp_sendto_if_src+0x1b0>)
  83254. 8021c5a: f240 22d1 movw r2, #721 @ 0x2d1
  83255. 8021c5e: 4965 ldr r1, [pc, #404] @ (8021df4 <udp_sendto_if_src+0x1b4>)
  83256. 8021c60: 4865 ldr r0, [pc, #404] @ (8021df8 <udp_sendto_if_src+0x1b8>)
  83257. 8021c62: f008 faab bl 802a1bc <iprintf>
  83258. 8021c66: f06f 030f mvn.w r3, #15
  83259. 8021c6a: e0bc b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83260. LWIP_ERROR("udp_sendto_if_src: invalid pbuf", p != NULL, return ERR_ARG);
  83261. 8021c6c: 68bb ldr r3, [r7, #8]
  83262. 8021c6e: 2b00 cmp r3, #0
  83263. 8021c70: d109 bne.n 8021c86 <udp_sendto_if_src+0x46>
  83264. 8021c72: 4b5f ldr r3, [pc, #380] @ (8021df0 <udp_sendto_if_src+0x1b0>)
  83265. 8021c74: f240 22d2 movw r2, #722 @ 0x2d2
  83266. 8021c78: 4960 ldr r1, [pc, #384] @ (8021dfc <udp_sendto_if_src+0x1bc>)
  83267. 8021c7a: 485f ldr r0, [pc, #380] @ (8021df8 <udp_sendto_if_src+0x1b8>)
  83268. 8021c7c: f008 fa9e bl 802a1bc <iprintf>
  83269. 8021c80: f06f 030f mvn.w r3, #15
  83270. 8021c84: e0af b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83271. LWIP_ERROR("udp_sendto_if_src: invalid dst_ip", dst_ip != NULL, return ERR_ARG);
  83272. 8021c86: 687b ldr r3, [r7, #4]
  83273. 8021c88: 2b00 cmp r3, #0
  83274. 8021c8a: d109 bne.n 8021ca0 <udp_sendto_if_src+0x60>
  83275. 8021c8c: 4b58 ldr r3, [pc, #352] @ (8021df0 <udp_sendto_if_src+0x1b0>)
  83276. 8021c8e: f240 22d3 movw r2, #723 @ 0x2d3
  83277. 8021c92: 495b ldr r1, [pc, #364] @ (8021e00 <udp_sendto_if_src+0x1c0>)
  83278. 8021c94: 4858 ldr r0, [pc, #352] @ (8021df8 <udp_sendto_if_src+0x1b8>)
  83279. 8021c96: f008 fa91 bl 802a1bc <iprintf>
  83280. 8021c9a: f06f 030f mvn.w r3, #15
  83281. 8021c9e: e0a2 b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83282. LWIP_ERROR("udp_sendto_if_src: invalid src_ip", src_ip != NULL, return ERR_ARG);
  83283. 8021ca0: 6afb ldr r3, [r7, #44] @ 0x2c
  83284. 8021ca2: 2b00 cmp r3, #0
  83285. 8021ca4: d109 bne.n 8021cba <udp_sendto_if_src+0x7a>
  83286. 8021ca6: 4b52 ldr r3, [pc, #328] @ (8021df0 <udp_sendto_if_src+0x1b0>)
  83287. 8021ca8: f44f 7235 mov.w r2, #724 @ 0x2d4
  83288. 8021cac: 4955 ldr r1, [pc, #340] @ (8021e04 <udp_sendto_if_src+0x1c4>)
  83289. 8021cae: 4852 ldr r0, [pc, #328] @ (8021df8 <udp_sendto_if_src+0x1b8>)
  83290. 8021cb0: f008 fa84 bl 802a1bc <iprintf>
  83291. 8021cb4: f06f 030f mvn.w r3, #15
  83292. 8021cb8: e095 b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83293. LWIP_ERROR("udp_sendto_if_src: invalid netif", netif != NULL, return ERR_ARG);
  83294. 8021cba: 6abb ldr r3, [r7, #40] @ 0x28
  83295. 8021cbc: 2b00 cmp r3, #0
  83296. 8021cbe: d109 bne.n 8021cd4 <udp_sendto_if_src+0x94>
  83297. 8021cc0: 4b4b ldr r3, [pc, #300] @ (8021df0 <udp_sendto_if_src+0x1b0>)
  83298. 8021cc2: f240 22d5 movw r2, #725 @ 0x2d5
  83299. 8021cc6: 4950 ldr r1, [pc, #320] @ (8021e08 <udp_sendto_if_src+0x1c8>)
  83300. 8021cc8: 484b ldr r0, [pc, #300] @ (8021df8 <udp_sendto_if_src+0x1b8>)
  83301. 8021cca: f008 fa77 bl 802a1bc <iprintf>
  83302. 8021cce: f06f 030f mvn.w r3, #15
  83303. 8021cd2: e088 b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83304. return ERR_VAL;
  83305. }
  83306. #endif /* LWIP_IPV4 && IP_SOF_BROADCAST */
  83307. /* if the PCB is not yet bound to a port, bind it here */
  83308. if (pcb->local_port == 0) {
  83309. 8021cd4: 68fb ldr r3, [r7, #12]
  83310. 8021cd6: 8a5b ldrh r3, [r3, #18]
  83311. 8021cd8: 2b00 cmp r3, #0
  83312. 8021cda: d10f bne.n 8021cfc <udp_sendto_if_src+0xbc>
  83313. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send: not yet bound to a port, binding now\n"));
  83314. err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  83315. 8021cdc: 68f9 ldr r1, [r7, #12]
  83316. 8021cde: 68fb ldr r3, [r7, #12]
  83317. 8021ce0: 8a5b ldrh r3, [r3, #18]
  83318. 8021ce2: 461a mov r2, r3
  83319. 8021ce4: 68f8 ldr r0, [r7, #12]
  83320. 8021ce6: f000 f893 bl 8021e10 <udp_bind>
  83321. 8021cea: 4603 mov r3, r0
  83322. 8021cec: 76fb strb r3, [r7, #27]
  83323. if (err != ERR_OK) {
  83324. 8021cee: f997 301b ldrsb.w r3, [r7, #27]
  83325. 8021cf2: 2b00 cmp r3, #0
  83326. 8021cf4: d002 beq.n 8021cfc <udp_sendto_if_src+0xbc>
  83327. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n"));
  83328. return err;
  83329. 8021cf6: f997 301b ldrsb.w r3, [r7, #27]
  83330. 8021cfa: e074 b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83331. }
  83332. }
  83333. /* packet too large to add a UDP header without causing an overflow? */
  83334. if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) {
  83335. 8021cfc: 68bb ldr r3, [r7, #8]
  83336. 8021cfe: 891b ldrh r3, [r3, #8]
  83337. 8021d00: f64f 72f7 movw r2, #65527 @ 0xfff7
  83338. 8021d04: 4293 cmp r3, r2
  83339. 8021d06: d902 bls.n 8021d0e <udp_sendto_if_src+0xce>
  83340. return ERR_MEM;
  83341. 8021d08: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83342. 8021d0c: e06b b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83343. }
  83344. /* not enough space to add an UDP header to first pbuf in given p chain? */
  83345. if (pbuf_add_header(p, UDP_HLEN)) {
  83346. 8021d0e: 2108 movs r1, #8
  83347. 8021d10: 68b8 ldr r0, [r7, #8]
  83348. 8021d12: f7f8 ff13 bl 801ab3c <pbuf_add_header>
  83349. 8021d16: 4603 mov r3, r0
  83350. 8021d18: 2b00 cmp r3, #0
  83351. 8021d1a: d015 beq.n 8021d48 <udp_sendto_if_src+0x108>
  83352. /* allocate header in a separate new pbuf */
  83353. q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM);
  83354. 8021d1c: f44f 7220 mov.w r2, #640 @ 0x280
  83355. 8021d20: 2108 movs r1, #8
  83356. 8021d22: 2022 movs r0, #34 @ 0x22
  83357. 8021d24: f7f8 fcbc bl 801a6a0 <pbuf_alloc>
  83358. 8021d28: 61f8 str r0, [r7, #28]
  83359. /* new header pbuf could not be allocated? */
  83360. if (q == NULL) {
  83361. 8021d2a: 69fb ldr r3, [r7, #28]
  83362. 8021d2c: 2b00 cmp r3, #0
  83363. 8021d2e: d102 bne.n 8021d36 <udp_sendto_if_src+0xf6>
  83364. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: could not allocate header\n"));
  83365. return ERR_MEM;
  83366. 8021d30: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  83367. 8021d34: e057 b.n 8021de6 <udp_sendto_if_src+0x1a6>
  83368. }
  83369. if (p->tot_len != 0) {
  83370. 8021d36: 68bb ldr r3, [r7, #8]
  83371. 8021d38: 891b ldrh r3, [r3, #8]
  83372. 8021d3a: 2b00 cmp r3, #0
  83373. 8021d3c: d006 beq.n 8021d4c <udp_sendto_if_src+0x10c>
  83374. /* chain header q in front of given pbuf p (only if p contains data) */
  83375. pbuf_chain(q, p);
  83376. 8021d3e: 68b9 ldr r1, [r7, #8]
  83377. 8021d40: 69f8 ldr r0, [r7, #28]
  83378. 8021d42: f7f9 f8e7 bl 801af14 <pbuf_chain>
  83379. 8021d46: e001 b.n 8021d4c <udp_sendto_if_src+0x10c>
  83380. LWIP_DEBUGF(UDP_DEBUG,
  83381. ("udp_send: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p));
  83382. } else {
  83383. /* adding space for header within p succeeded */
  83384. /* first pbuf q equals given pbuf */
  83385. q = p;
  83386. 8021d48: 68bb ldr r3, [r7, #8]
  83387. 8021d4a: 61fb str r3, [r7, #28]
  83388. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header in given pbuf %p\n", (void *)p));
  83389. }
  83390. LWIP_ASSERT("check that first pbuf can hold struct udp_hdr",
  83391. 8021d4c: 69fb ldr r3, [r7, #28]
  83392. 8021d4e: 895b ldrh r3, [r3, #10]
  83393. 8021d50: 2b07 cmp r3, #7
  83394. 8021d52: d806 bhi.n 8021d62 <udp_sendto_if_src+0x122>
  83395. 8021d54: 4b26 ldr r3, [pc, #152] @ (8021df0 <udp_sendto_if_src+0x1b0>)
  83396. 8021d56: f240 320d movw r2, #781 @ 0x30d
  83397. 8021d5a: 492c ldr r1, [pc, #176] @ (8021e0c <udp_sendto_if_src+0x1cc>)
  83398. 8021d5c: 4826 ldr r0, [pc, #152] @ (8021df8 <udp_sendto_if_src+0x1b8>)
  83399. 8021d5e: f008 fa2d bl 802a1bc <iprintf>
  83400. (q->len >= sizeof(struct udp_hdr)));
  83401. /* q now represents the packet to be sent */
  83402. udphdr = (struct udp_hdr *)q->payload;
  83403. 8021d62: 69fb ldr r3, [r7, #28]
  83404. 8021d64: 685b ldr r3, [r3, #4]
  83405. 8021d66: 617b str r3, [r7, #20]
  83406. udphdr->src = lwip_htons(pcb->local_port);
  83407. 8021d68: 68fb ldr r3, [r7, #12]
  83408. 8021d6a: 8a5b ldrh r3, [r3, #18]
  83409. 8021d6c: 4618 mov r0, r3
  83410. 8021d6e: f7f7 facb bl 8019308 <lwip_htons>
  83411. 8021d72: 4603 mov r3, r0
  83412. 8021d74: 461a mov r2, r3
  83413. 8021d76: 697b ldr r3, [r7, #20]
  83414. 8021d78: 801a strh r2, [r3, #0]
  83415. udphdr->dest = lwip_htons(dst_port);
  83416. 8021d7a: 887b ldrh r3, [r7, #2]
  83417. 8021d7c: 4618 mov r0, r3
  83418. 8021d7e: f7f7 fac3 bl 8019308 <lwip_htons>
  83419. 8021d82: 4603 mov r3, r0
  83420. 8021d84: 461a mov r2, r3
  83421. 8021d86: 697b ldr r3, [r7, #20]
  83422. 8021d88: 805a strh r2, [r3, #2]
  83423. /* in UDP, 0 checksum means 'no checksum' */
  83424. udphdr->chksum = 0x0000;
  83425. 8021d8a: 697b ldr r3, [r7, #20]
  83426. 8021d8c: 2200 movs r2, #0
  83427. 8021d8e: 719a strb r2, [r3, #6]
  83428. 8021d90: 2200 movs r2, #0
  83429. 8021d92: 71da strb r2, [r3, #7]
  83430. ip_proto = IP_PROTO_UDPLITE;
  83431. } else
  83432. #endif /* LWIP_UDPLITE */
  83433. { /* UDP */
  83434. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len));
  83435. udphdr->len = lwip_htons(q->tot_len);
  83436. 8021d94: 69fb ldr r3, [r7, #28]
  83437. 8021d96: 891b ldrh r3, [r3, #8]
  83438. 8021d98: 4618 mov r0, r3
  83439. 8021d9a: f7f7 fab5 bl 8019308 <lwip_htons>
  83440. 8021d9e: 4603 mov r3, r0
  83441. 8021da0: 461a mov r2, r3
  83442. 8021da2: 697b ldr r3, [r7, #20]
  83443. 8021da4: 809a strh r2, [r3, #4]
  83444. }
  83445. udphdr->chksum = udpchksum;
  83446. }
  83447. }
  83448. #endif /* CHECKSUM_GEN_UDP */
  83449. ip_proto = IP_PROTO_UDP;
  83450. 8021da6: 2311 movs r3, #17
  83451. 8021da8: 74fb strb r3, [r7, #19]
  83452. /* Determine TTL to use */
  83453. #if LWIP_MULTICAST_TX_OPTIONS
  83454. ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl);
  83455. #else /* LWIP_MULTICAST_TX_OPTIONS */
  83456. ttl = pcb->ttl;
  83457. 8021daa: 68fb ldr r3, [r7, #12]
  83458. 8021dac: 7adb ldrb r3, [r3, #11]
  83459. 8021dae: 74bb strb r3, [r7, #18]
  83460. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP checksum 0x%04"X16_F"\n", udphdr->chksum));
  83461. LWIP_DEBUGF(UDP_DEBUG, ("udp_send: ip_output_if (,,,,0x%02"X16_F",)\n", (u16_t)ip_proto));
  83462. /* output to IP */
  83463. NETIF_SET_HINTS(netif, &(pcb->netif_hints));
  83464. err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif);
  83465. 8021db0: 68fb ldr r3, [r7, #12]
  83466. 8021db2: 7a9b ldrb r3, [r3, #10]
  83467. 8021db4: 7cb9 ldrb r1, [r7, #18]
  83468. 8021db6: 6aba ldr r2, [r7, #40] @ 0x28
  83469. 8021db8: 9202 str r2, [sp, #8]
  83470. 8021dba: 7cfa ldrb r2, [r7, #19]
  83471. 8021dbc: 9201 str r2, [sp, #4]
  83472. 8021dbe: 9300 str r3, [sp, #0]
  83473. 8021dc0: 460b mov r3, r1
  83474. 8021dc2: 687a ldr r2, [r7, #4]
  83475. 8021dc4: 6af9 ldr r1, [r7, #44] @ 0x2c
  83476. 8021dc6: 69f8 ldr r0, [r7, #28]
  83477. 8021dc8: f003 fbf2 bl 80255b0 <ip4_output_if_src>
  83478. 8021dcc: 4603 mov r3, r0
  83479. 8021dce: 76fb strb r3, [r7, #27]
  83480. /* @todo: must this be increased even if error occurred? */
  83481. MIB2_STATS_INC(mib2.udpoutdatagrams);
  83482. /* did we chain a separate header pbuf earlier? */
  83483. if (q != p) {
  83484. 8021dd0: 69fa ldr r2, [r7, #28]
  83485. 8021dd2: 68bb ldr r3, [r7, #8]
  83486. 8021dd4: 429a cmp r2, r3
  83487. 8021dd6: d004 beq.n 8021de2 <udp_sendto_if_src+0x1a2>
  83488. /* free the header pbuf */
  83489. pbuf_free(q);
  83490. 8021dd8: 69f8 ldr r0, [r7, #28]
  83491. 8021dda: f7f8 ff77 bl 801accc <pbuf_free>
  83492. q = NULL;
  83493. 8021dde: 2300 movs r3, #0
  83494. 8021de0: 61fb str r3, [r7, #28]
  83495. /* p is still referenced by the caller, and will live on */
  83496. }
  83497. UDP_STATS_INC(udp.xmit);
  83498. return err;
  83499. 8021de2: f997 301b ldrsb.w r3, [r7, #27]
  83500. }
  83501. 8021de6: 4618 mov r0, r3
  83502. 8021de8: 3720 adds r7, #32
  83503. 8021dea: 46bd mov sp, r7
  83504. 8021dec: bd80 pop {r7, pc}
  83505. 8021dee: bf00 nop
  83506. 8021df0: 08030384 .word 0x08030384
  83507. 8021df4: 08030570 .word 0x08030570
  83508. 8021df8: 080303d8 .word 0x080303d8
  83509. 8021dfc: 08030590 .word 0x08030590
  83510. 8021e00: 080305b0 .word 0x080305b0
  83511. 8021e04: 080305d4 .word 0x080305d4
  83512. 8021e08: 080305f8 .word 0x080305f8
  83513. 8021e0c: 0803061c .word 0x0803061c
  83514. 08021e10 <udp_bind>:
  83515. *
  83516. * @see udp_disconnect()
  83517. */
  83518. err_t
  83519. udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  83520. {
  83521. 8021e10: b580 push {r7, lr}
  83522. 8021e12: b086 sub sp, #24
  83523. 8021e14: af00 add r7, sp, #0
  83524. 8021e16: 60f8 str r0, [r7, #12]
  83525. 8021e18: 60b9 str r1, [r7, #8]
  83526. 8021e1a: 4613 mov r3, r2
  83527. 8021e1c: 80fb strh r3, [r7, #6]
  83528. u8_t rebind;
  83529. #if LWIP_IPV6 && LWIP_IPV6_SCOPES
  83530. ip_addr_t zoned_ipaddr;
  83531. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  83532. LWIP_ASSERT_CORE_LOCKED();
  83533. 8021e1e: f7ee fe2d bl 8010a7c <sys_check_core_locking>
  83534. #if LWIP_IPV4
  83535. /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */
  83536. if (ipaddr == NULL) {
  83537. 8021e22: 68bb ldr r3, [r7, #8]
  83538. 8021e24: 2b00 cmp r3, #0
  83539. 8021e26: d101 bne.n 8021e2c <udp_bind+0x1c>
  83540. ipaddr = IP4_ADDR_ANY;
  83541. 8021e28: 4b39 ldr r3, [pc, #228] @ (8021f10 <udp_bind+0x100>)
  83542. 8021e2a: 60bb str r3, [r7, #8]
  83543. }
  83544. #else /* LWIP_IPV4 */
  83545. LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  83546. #endif /* LWIP_IPV4 */
  83547. LWIP_ERROR("udp_bind: invalid pcb", pcb != NULL, return ERR_ARG);
  83548. 8021e2c: 68fb ldr r3, [r7, #12]
  83549. 8021e2e: 2b00 cmp r3, #0
  83550. 8021e30: d109 bne.n 8021e46 <udp_bind+0x36>
  83551. 8021e32: 4b38 ldr r3, [pc, #224] @ (8021f14 <udp_bind+0x104>)
  83552. 8021e34: f240 32b7 movw r2, #951 @ 0x3b7
  83553. 8021e38: 4937 ldr r1, [pc, #220] @ (8021f18 <udp_bind+0x108>)
  83554. 8021e3a: 4838 ldr r0, [pc, #224] @ (8021f1c <udp_bind+0x10c>)
  83555. 8021e3c: f008 f9be bl 802a1bc <iprintf>
  83556. 8021e40: f06f 030f mvn.w r3, #15
  83557. 8021e44: e060 b.n 8021f08 <udp_bind+0xf8>
  83558. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr = "));
  83559. ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr);
  83560. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port));
  83561. rebind = 0;
  83562. 8021e46: 2300 movs r3, #0
  83563. 8021e48: 74fb strb r3, [r7, #19]
  83564. /* Check for double bind and rebind of the same pcb */
  83565. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  83566. 8021e4a: 4b35 ldr r3, [pc, #212] @ (8021f20 <udp_bind+0x110>)
  83567. 8021e4c: 681b ldr r3, [r3, #0]
  83568. 8021e4e: 617b str r3, [r7, #20]
  83569. 8021e50: e009 b.n 8021e66 <udp_bind+0x56>
  83570. /* is this UDP PCB already on active list? */
  83571. if (pcb == ipcb) {
  83572. 8021e52: 68fa ldr r2, [r7, #12]
  83573. 8021e54: 697b ldr r3, [r7, #20]
  83574. 8021e56: 429a cmp r2, r3
  83575. 8021e58: d102 bne.n 8021e60 <udp_bind+0x50>
  83576. rebind = 1;
  83577. 8021e5a: 2301 movs r3, #1
  83578. 8021e5c: 74fb strb r3, [r7, #19]
  83579. break;
  83580. 8021e5e: e005 b.n 8021e6c <udp_bind+0x5c>
  83581. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  83582. 8021e60: 697b ldr r3, [r7, #20]
  83583. 8021e62: 68db ldr r3, [r3, #12]
  83584. 8021e64: 617b str r3, [r7, #20]
  83585. 8021e66: 697b ldr r3, [r7, #20]
  83586. 8021e68: 2b00 cmp r3, #0
  83587. 8021e6a: d1f2 bne.n 8021e52 <udp_bind+0x42>
  83588. ipaddr = &zoned_ipaddr;
  83589. }
  83590. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  83591. /* no port specified? */
  83592. if (port == 0) {
  83593. 8021e6c: 88fb ldrh r3, [r7, #6]
  83594. 8021e6e: 2b00 cmp r3, #0
  83595. 8021e70: d109 bne.n 8021e86 <udp_bind+0x76>
  83596. port = udp_new_port();
  83597. 8021e72: f7ff fc2f bl 80216d4 <udp_new_port>
  83598. 8021e76: 4603 mov r3, r0
  83599. 8021e78: 80fb strh r3, [r7, #6]
  83600. if (port == 0) {
  83601. 8021e7a: 88fb ldrh r3, [r7, #6]
  83602. 8021e7c: 2b00 cmp r3, #0
  83603. 8021e7e: d12c bne.n 8021eda <udp_bind+0xca>
  83604. /* no more ports available in local range */
  83605. LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n"));
  83606. return ERR_USE;
  83607. 8021e80: f06f 0307 mvn.w r3, #7
  83608. 8021e84: e040 b.n 8021f08 <udp_bind+0xf8>
  83609. }
  83610. } else {
  83611. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  83612. 8021e86: 4b26 ldr r3, [pc, #152] @ (8021f20 <udp_bind+0x110>)
  83613. 8021e88: 681b ldr r3, [r3, #0]
  83614. 8021e8a: 617b str r3, [r7, #20]
  83615. 8021e8c: e022 b.n 8021ed4 <udp_bind+0xc4>
  83616. if (pcb != ipcb) {
  83617. 8021e8e: 68fa ldr r2, [r7, #12]
  83618. 8021e90: 697b ldr r3, [r7, #20]
  83619. 8021e92: 429a cmp r2, r3
  83620. 8021e94: d01b beq.n 8021ece <udp_bind+0xbe>
  83621. if (!ip_get_option(pcb, SOF_REUSEADDR) ||
  83622. !ip_get_option(ipcb, SOF_REUSEADDR))
  83623. #endif /* SO_REUSE */
  83624. {
  83625. /* port matches that of PCB in list and REUSEADDR not set -> reject */
  83626. if ((ipcb->local_port == port) &&
  83627. 8021e96: 697b ldr r3, [r7, #20]
  83628. 8021e98: 8a5b ldrh r3, [r3, #18]
  83629. 8021e9a: 88fa ldrh r2, [r7, #6]
  83630. 8021e9c: 429a cmp r2, r3
  83631. 8021e9e: d116 bne.n 8021ece <udp_bind+0xbe>
  83632. /* IP address matches or any IP used? */
  83633. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  83634. 8021ea0: 697b ldr r3, [r7, #20]
  83635. 8021ea2: 681a ldr r2, [r3, #0]
  83636. 8021ea4: 68bb ldr r3, [r7, #8]
  83637. 8021ea6: 681b ldr r3, [r3, #0]
  83638. if ((ipcb->local_port == port) &&
  83639. 8021ea8: 429a cmp r2, r3
  83640. 8021eaa: d00d beq.n 8021ec8 <udp_bind+0xb8>
  83641. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  83642. 8021eac: 68bb ldr r3, [r7, #8]
  83643. 8021eae: 2b00 cmp r3, #0
  83644. 8021eb0: d00a beq.n 8021ec8 <udp_bind+0xb8>
  83645. 8021eb2: 68bb ldr r3, [r7, #8]
  83646. 8021eb4: 681b ldr r3, [r3, #0]
  83647. 8021eb6: 2b00 cmp r3, #0
  83648. 8021eb8: d006 beq.n 8021ec8 <udp_bind+0xb8>
  83649. ip_addr_isany(&ipcb->local_ip))) {
  83650. 8021eba: 697b ldr r3, [r7, #20]
  83651. (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) ||
  83652. 8021ebc: 2b00 cmp r3, #0
  83653. 8021ebe: d003 beq.n 8021ec8 <udp_bind+0xb8>
  83654. ip_addr_isany(&ipcb->local_ip))) {
  83655. 8021ec0: 697b ldr r3, [r7, #20]
  83656. 8021ec2: 681b ldr r3, [r3, #0]
  83657. 8021ec4: 2b00 cmp r3, #0
  83658. 8021ec6: d102 bne.n 8021ece <udp_bind+0xbe>
  83659. /* other PCB already binds to this local IP and port */
  83660. LWIP_DEBUGF(UDP_DEBUG,
  83661. ("udp_bind: local port %"U16_F" already bound by another pcb\n", port));
  83662. return ERR_USE;
  83663. 8021ec8: f06f 0307 mvn.w r3, #7
  83664. 8021ecc: e01c b.n 8021f08 <udp_bind+0xf8>
  83665. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  83666. 8021ece: 697b ldr r3, [r7, #20]
  83667. 8021ed0: 68db ldr r3, [r3, #12]
  83668. 8021ed2: 617b str r3, [r7, #20]
  83669. 8021ed4: 697b ldr r3, [r7, #20]
  83670. 8021ed6: 2b00 cmp r3, #0
  83671. 8021ed8: d1d9 bne.n 8021e8e <udp_bind+0x7e>
  83672. }
  83673. }
  83674. }
  83675. }
  83676. ip_addr_set_ipaddr(&pcb->local_ip, ipaddr);
  83677. 8021eda: 68bb ldr r3, [r7, #8]
  83678. 8021edc: 2b00 cmp r3, #0
  83679. 8021ede: d002 beq.n 8021ee6 <udp_bind+0xd6>
  83680. 8021ee0: 68bb ldr r3, [r7, #8]
  83681. 8021ee2: 681b ldr r3, [r3, #0]
  83682. 8021ee4: e000 b.n 8021ee8 <udp_bind+0xd8>
  83683. 8021ee6: 2300 movs r3, #0
  83684. 8021ee8: 68fa ldr r2, [r7, #12]
  83685. 8021eea: 6013 str r3, [r2, #0]
  83686. pcb->local_port = port;
  83687. 8021eec: 68fb ldr r3, [r7, #12]
  83688. 8021eee: 88fa ldrh r2, [r7, #6]
  83689. 8021ef0: 825a strh r2, [r3, #18]
  83690. mib2_udp_bind(pcb);
  83691. /* pcb not active yet? */
  83692. if (rebind == 0) {
  83693. 8021ef2: 7cfb ldrb r3, [r7, #19]
  83694. 8021ef4: 2b00 cmp r3, #0
  83695. 8021ef6: d106 bne.n 8021f06 <udp_bind+0xf6>
  83696. /* place the PCB on the active list if not already there */
  83697. pcb->next = udp_pcbs;
  83698. 8021ef8: 4b09 ldr r3, [pc, #36] @ (8021f20 <udp_bind+0x110>)
  83699. 8021efa: 681a ldr r2, [r3, #0]
  83700. 8021efc: 68fb ldr r3, [r7, #12]
  83701. 8021efe: 60da str r2, [r3, #12]
  83702. udp_pcbs = pcb;
  83703. 8021f00: 4a07 ldr r2, [pc, #28] @ (8021f20 <udp_bind+0x110>)
  83704. 8021f02: 68fb ldr r3, [r7, #12]
  83705. 8021f04: 6013 str r3, [r2, #0]
  83706. }
  83707. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("udp_bind: bound to "));
  83708. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->local_ip);
  83709. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->local_port));
  83710. return ERR_OK;
  83711. 8021f06: 2300 movs r3, #0
  83712. }
  83713. 8021f08: 4618 mov r0, r3
  83714. 8021f0a: 3718 adds r7, #24
  83715. 8021f0c: 46bd mov sp, r7
  83716. 8021f0e: bd80 pop {r7, pc}
  83717. 8021f10: 080314f4 .word 0x080314f4
  83718. 8021f14: 08030384 .word 0x08030384
  83719. 8021f18: 0803064c .word 0x0803064c
  83720. 8021f1c: 080303d8 .word 0x080303d8
  83721. 8021f20: 2402afb8 .word 0x2402afb8
  83722. 08021f24 <udp_connect>:
  83723. *
  83724. * @see udp_disconnect()
  83725. */
  83726. err_t
  83727. udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
  83728. {
  83729. 8021f24: b580 push {r7, lr}
  83730. 8021f26: b086 sub sp, #24
  83731. 8021f28: af00 add r7, sp, #0
  83732. 8021f2a: 60f8 str r0, [r7, #12]
  83733. 8021f2c: 60b9 str r1, [r7, #8]
  83734. 8021f2e: 4613 mov r3, r2
  83735. 8021f30: 80fb strh r3, [r7, #6]
  83736. struct udp_pcb *ipcb;
  83737. LWIP_ASSERT_CORE_LOCKED();
  83738. 8021f32: f7ee fda3 bl 8010a7c <sys_check_core_locking>
  83739. LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG);
  83740. 8021f36: 68fb ldr r3, [r7, #12]
  83741. 8021f38: 2b00 cmp r3, #0
  83742. 8021f3a: d109 bne.n 8021f50 <udp_connect+0x2c>
  83743. 8021f3c: 4b2c ldr r3, [pc, #176] @ (8021ff0 <udp_connect+0xcc>)
  83744. 8021f3e: f240 4235 movw r2, #1077 @ 0x435
  83745. 8021f42: 492c ldr r1, [pc, #176] @ (8021ff4 <udp_connect+0xd0>)
  83746. 8021f44: 482c ldr r0, [pc, #176] @ (8021ff8 <udp_connect+0xd4>)
  83747. 8021f46: f008 f939 bl 802a1bc <iprintf>
  83748. 8021f4a: f06f 030f mvn.w r3, #15
  83749. 8021f4e: e04b b.n 8021fe8 <udp_connect+0xc4>
  83750. LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG);
  83751. 8021f50: 68bb ldr r3, [r7, #8]
  83752. 8021f52: 2b00 cmp r3, #0
  83753. 8021f54: d109 bne.n 8021f6a <udp_connect+0x46>
  83754. 8021f56: 4b26 ldr r3, [pc, #152] @ (8021ff0 <udp_connect+0xcc>)
  83755. 8021f58: f240 4236 movw r2, #1078 @ 0x436
  83756. 8021f5c: 4927 ldr r1, [pc, #156] @ (8021ffc <udp_connect+0xd8>)
  83757. 8021f5e: 4826 ldr r0, [pc, #152] @ (8021ff8 <udp_connect+0xd4>)
  83758. 8021f60: f008 f92c bl 802a1bc <iprintf>
  83759. 8021f64: f06f 030f mvn.w r3, #15
  83760. 8021f68: e03e b.n 8021fe8 <udp_connect+0xc4>
  83761. if (pcb->local_port == 0) {
  83762. 8021f6a: 68fb ldr r3, [r7, #12]
  83763. 8021f6c: 8a5b ldrh r3, [r3, #18]
  83764. 8021f6e: 2b00 cmp r3, #0
  83765. 8021f70: d10f bne.n 8021f92 <udp_connect+0x6e>
  83766. err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port);
  83767. 8021f72: 68f9 ldr r1, [r7, #12]
  83768. 8021f74: 68fb ldr r3, [r7, #12]
  83769. 8021f76: 8a5b ldrh r3, [r3, #18]
  83770. 8021f78: 461a mov r2, r3
  83771. 8021f7a: 68f8 ldr r0, [r7, #12]
  83772. 8021f7c: f7ff ff48 bl 8021e10 <udp_bind>
  83773. 8021f80: 4603 mov r3, r0
  83774. 8021f82: 75fb strb r3, [r7, #23]
  83775. if (err != ERR_OK) {
  83776. 8021f84: f997 3017 ldrsb.w r3, [r7, #23]
  83777. 8021f88: 2b00 cmp r3, #0
  83778. 8021f8a: d002 beq.n 8021f92 <udp_connect+0x6e>
  83779. return err;
  83780. 8021f8c: f997 3017 ldrsb.w r3, [r7, #23]
  83781. 8021f90: e02a b.n 8021fe8 <udp_connect+0xc4>
  83782. }
  83783. }
  83784. ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr);
  83785. 8021f92: 68bb ldr r3, [r7, #8]
  83786. 8021f94: 2b00 cmp r3, #0
  83787. 8021f96: d002 beq.n 8021f9e <udp_connect+0x7a>
  83788. 8021f98: 68bb ldr r3, [r7, #8]
  83789. 8021f9a: 681b ldr r3, [r3, #0]
  83790. 8021f9c: e000 b.n 8021fa0 <udp_connect+0x7c>
  83791. 8021f9e: 2300 movs r3, #0
  83792. 8021fa0: 68fa ldr r2, [r7, #12]
  83793. 8021fa2: 6053 str r3, [r2, #4]
  83794. ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) {
  83795. ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip));
  83796. }
  83797. #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */
  83798. pcb->remote_port = port;
  83799. 8021fa4: 68fb ldr r3, [r7, #12]
  83800. 8021fa6: 88fa ldrh r2, [r7, #6]
  83801. 8021fa8: 829a strh r2, [r3, #20]
  83802. pcb->flags |= UDP_FLAGS_CONNECTED;
  83803. 8021faa: 68fb ldr r3, [r7, #12]
  83804. 8021fac: 7c1b ldrb r3, [r3, #16]
  83805. 8021fae: f043 0304 orr.w r3, r3, #4
  83806. 8021fb2: b2da uxtb r2, r3
  83807. 8021fb4: 68fb ldr r3, [r7, #12]
  83808. 8021fb6: 741a strb r2, [r3, #16]
  83809. ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  83810. pcb->remote_ip);
  83811. LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->remote_port));
  83812. /* Insert UDP PCB into the list of active UDP PCBs. */
  83813. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  83814. 8021fb8: 4b11 ldr r3, [pc, #68] @ (8022000 <udp_connect+0xdc>)
  83815. 8021fba: 681b ldr r3, [r3, #0]
  83816. 8021fbc: 613b str r3, [r7, #16]
  83817. 8021fbe: e008 b.n 8021fd2 <udp_connect+0xae>
  83818. if (pcb == ipcb) {
  83819. 8021fc0: 68fa ldr r2, [r7, #12]
  83820. 8021fc2: 693b ldr r3, [r7, #16]
  83821. 8021fc4: 429a cmp r2, r3
  83822. 8021fc6: d101 bne.n 8021fcc <udp_connect+0xa8>
  83823. /* already on the list, just return */
  83824. return ERR_OK;
  83825. 8021fc8: 2300 movs r3, #0
  83826. 8021fca: e00d b.n 8021fe8 <udp_connect+0xc4>
  83827. for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) {
  83828. 8021fcc: 693b ldr r3, [r7, #16]
  83829. 8021fce: 68db ldr r3, [r3, #12]
  83830. 8021fd0: 613b str r3, [r7, #16]
  83831. 8021fd2: 693b ldr r3, [r7, #16]
  83832. 8021fd4: 2b00 cmp r3, #0
  83833. 8021fd6: d1f3 bne.n 8021fc0 <udp_connect+0x9c>
  83834. }
  83835. }
  83836. /* PCB not yet on the list, add PCB now */
  83837. pcb->next = udp_pcbs;
  83838. 8021fd8: 4b09 ldr r3, [pc, #36] @ (8022000 <udp_connect+0xdc>)
  83839. 8021fda: 681a ldr r2, [r3, #0]
  83840. 8021fdc: 68fb ldr r3, [r7, #12]
  83841. 8021fde: 60da str r2, [r3, #12]
  83842. udp_pcbs = pcb;
  83843. 8021fe0: 4a07 ldr r2, [pc, #28] @ (8022000 <udp_connect+0xdc>)
  83844. 8021fe2: 68fb ldr r3, [r7, #12]
  83845. 8021fe4: 6013 str r3, [r2, #0]
  83846. return ERR_OK;
  83847. 8021fe6: 2300 movs r3, #0
  83848. }
  83849. 8021fe8: 4618 mov r0, r3
  83850. 8021fea: 3718 adds r7, #24
  83851. 8021fec: 46bd mov sp, r7
  83852. 8021fee: bd80 pop {r7, pc}
  83853. 8021ff0: 08030384 .word 0x08030384
  83854. 8021ff4: 08030664 .word 0x08030664
  83855. 8021ff8: 080303d8 .word 0x080303d8
  83856. 8021ffc: 08030680 .word 0x08030680
  83857. 8022000: 2402afb8 .word 0x2402afb8
  83858. 08022004 <udp_disconnect>:
  83859. *
  83860. * @param pcb the udp pcb to disconnect.
  83861. */
  83862. void
  83863. udp_disconnect(struct udp_pcb *pcb)
  83864. {
  83865. 8022004: b580 push {r7, lr}
  83866. 8022006: b082 sub sp, #8
  83867. 8022008: af00 add r7, sp, #0
  83868. 802200a: 6078 str r0, [r7, #4]
  83869. LWIP_ASSERT_CORE_LOCKED();
  83870. 802200c: f7ee fd36 bl 8010a7c <sys_check_core_locking>
  83871. LWIP_ERROR("udp_disconnect: invalid pcb", pcb != NULL, return);
  83872. 8022010: 687b ldr r3, [r7, #4]
  83873. 8022012: 2b00 cmp r3, #0
  83874. 8022014: d107 bne.n 8022026 <udp_disconnect+0x22>
  83875. 8022016: 4b0d ldr r3, [pc, #52] @ (802204c <udp_disconnect+0x48>)
  83876. 8022018: f240 426a movw r2, #1130 @ 0x46a
  83877. 802201c: 490c ldr r1, [pc, #48] @ (8022050 <udp_disconnect+0x4c>)
  83878. 802201e: 480d ldr r0, [pc, #52] @ (8022054 <udp_disconnect+0x50>)
  83879. 8022020: f008 f8cc bl 802a1bc <iprintf>
  83880. 8022024: e00f b.n 8022046 <udp_disconnect+0x42>
  83881. #if LWIP_IPV4 && LWIP_IPV6
  83882. if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) {
  83883. ip_addr_copy(pcb->remote_ip, *IP_ANY_TYPE);
  83884. } else {
  83885. #endif
  83886. ip_addr_set_any(IP_IS_V6_VAL(pcb->remote_ip), &pcb->remote_ip);
  83887. 8022026: 687b ldr r3, [r7, #4]
  83888. 8022028: 2200 movs r2, #0
  83889. 802202a: 605a str r2, [r3, #4]
  83890. #if LWIP_IPV4 && LWIP_IPV6
  83891. }
  83892. #endif
  83893. pcb->remote_port = 0;
  83894. 802202c: 687b ldr r3, [r7, #4]
  83895. 802202e: 2200 movs r2, #0
  83896. 8022030: 829a strh r2, [r3, #20]
  83897. pcb->netif_idx = NETIF_NO_INDEX;
  83898. 8022032: 687b ldr r3, [r7, #4]
  83899. 8022034: 2200 movs r2, #0
  83900. 8022036: 721a strb r2, [r3, #8]
  83901. /* mark PCB as unconnected */
  83902. udp_clear_flags(pcb, UDP_FLAGS_CONNECTED);
  83903. 8022038: 687b ldr r3, [r7, #4]
  83904. 802203a: 7c1b ldrb r3, [r3, #16]
  83905. 802203c: f023 0304 bic.w r3, r3, #4
  83906. 8022040: b2da uxtb r2, r3
  83907. 8022042: 687b ldr r3, [r7, #4]
  83908. 8022044: 741a strb r2, [r3, #16]
  83909. }
  83910. 8022046: 3708 adds r7, #8
  83911. 8022048: 46bd mov sp, r7
  83912. 802204a: bd80 pop {r7, pc}
  83913. 802204c: 08030384 .word 0x08030384
  83914. 8022050: 0803069c .word 0x0803069c
  83915. 8022054: 080303d8 .word 0x080303d8
  83916. 08022058 <udp_recv>:
  83917. * @param recv function pointer of the callback function
  83918. * @param recv_arg additional argument to pass to the callback function
  83919. */
  83920. void
  83921. udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg)
  83922. {
  83923. 8022058: b580 push {r7, lr}
  83924. 802205a: b084 sub sp, #16
  83925. 802205c: af00 add r7, sp, #0
  83926. 802205e: 60f8 str r0, [r7, #12]
  83927. 8022060: 60b9 str r1, [r7, #8]
  83928. 8022062: 607a str r2, [r7, #4]
  83929. LWIP_ASSERT_CORE_LOCKED();
  83930. 8022064: f7ee fd0a bl 8010a7c <sys_check_core_locking>
  83931. LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return);
  83932. 8022068: 68fb ldr r3, [r7, #12]
  83933. 802206a: 2b00 cmp r3, #0
  83934. 802206c: d107 bne.n 802207e <udp_recv+0x26>
  83935. 802206e: 4b08 ldr r3, [pc, #32] @ (8022090 <udp_recv+0x38>)
  83936. 8022070: f240 428a movw r2, #1162 @ 0x48a
  83937. 8022074: 4907 ldr r1, [pc, #28] @ (8022094 <udp_recv+0x3c>)
  83938. 8022076: 4808 ldr r0, [pc, #32] @ (8022098 <udp_recv+0x40>)
  83939. 8022078: f008 f8a0 bl 802a1bc <iprintf>
  83940. 802207c: e005 b.n 802208a <udp_recv+0x32>
  83941. /* remember recv() callback and user data */
  83942. pcb->recv = recv;
  83943. 802207e: 68fb ldr r3, [r7, #12]
  83944. 8022080: 68ba ldr r2, [r7, #8]
  83945. 8022082: 619a str r2, [r3, #24]
  83946. pcb->recv_arg = recv_arg;
  83947. 8022084: 68fb ldr r3, [r7, #12]
  83948. 8022086: 687a ldr r2, [r7, #4]
  83949. 8022088: 61da str r2, [r3, #28]
  83950. }
  83951. 802208a: 3710 adds r7, #16
  83952. 802208c: 46bd mov sp, r7
  83953. 802208e: bd80 pop {r7, pc}
  83954. 8022090: 08030384 .word 0x08030384
  83955. 8022094: 080306b8 .word 0x080306b8
  83956. 8022098: 080303d8 .word 0x080303d8
  83957. 0802209c <udp_remove>:
  83958. *
  83959. * @see udp_new()
  83960. */
  83961. void
  83962. udp_remove(struct udp_pcb *pcb)
  83963. {
  83964. 802209c: b580 push {r7, lr}
  83965. 802209e: b084 sub sp, #16
  83966. 80220a0: af00 add r7, sp, #0
  83967. 80220a2: 6078 str r0, [r7, #4]
  83968. struct udp_pcb *pcb2;
  83969. LWIP_ASSERT_CORE_LOCKED();
  83970. 80220a4: f7ee fcea bl 8010a7c <sys_check_core_locking>
  83971. LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return);
  83972. 80220a8: 687b ldr r3, [r7, #4]
  83973. 80220aa: 2b00 cmp r3, #0
  83974. 80220ac: d107 bne.n 80220be <udp_remove+0x22>
  83975. 80220ae: 4b19 ldr r3, [pc, #100] @ (8022114 <udp_remove+0x78>)
  83976. 80220b0: f240 42a1 movw r2, #1185 @ 0x4a1
  83977. 80220b4: 4918 ldr r1, [pc, #96] @ (8022118 <udp_remove+0x7c>)
  83978. 80220b6: 4819 ldr r0, [pc, #100] @ (802211c <udp_remove+0x80>)
  83979. 80220b8: f008 f880 bl 802a1bc <iprintf>
  83980. 80220bc: e026 b.n 802210c <udp_remove+0x70>
  83981. mib2_udp_unbind(pcb);
  83982. /* pcb to be removed is first in list? */
  83983. if (udp_pcbs == pcb) {
  83984. 80220be: 4b18 ldr r3, [pc, #96] @ (8022120 <udp_remove+0x84>)
  83985. 80220c0: 681b ldr r3, [r3, #0]
  83986. 80220c2: 687a ldr r2, [r7, #4]
  83987. 80220c4: 429a cmp r2, r3
  83988. 80220c6: d105 bne.n 80220d4 <udp_remove+0x38>
  83989. /* make list start at 2nd pcb */
  83990. udp_pcbs = udp_pcbs->next;
  83991. 80220c8: 4b15 ldr r3, [pc, #84] @ (8022120 <udp_remove+0x84>)
  83992. 80220ca: 681b ldr r3, [r3, #0]
  83993. 80220cc: 68db ldr r3, [r3, #12]
  83994. 80220ce: 4a14 ldr r2, [pc, #80] @ (8022120 <udp_remove+0x84>)
  83995. 80220d0: 6013 str r3, [r2, #0]
  83996. 80220d2: e017 b.n 8022104 <udp_remove+0x68>
  83997. /* pcb not 1st in list */
  83998. } else {
  83999. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  84000. 80220d4: 4b12 ldr r3, [pc, #72] @ (8022120 <udp_remove+0x84>)
  84001. 80220d6: 681b ldr r3, [r3, #0]
  84002. 80220d8: 60fb str r3, [r7, #12]
  84003. 80220da: e010 b.n 80220fe <udp_remove+0x62>
  84004. /* find pcb in udp_pcbs list */
  84005. if (pcb2->next != NULL && pcb2->next == pcb) {
  84006. 80220dc: 68fb ldr r3, [r7, #12]
  84007. 80220de: 68db ldr r3, [r3, #12]
  84008. 80220e0: 2b00 cmp r3, #0
  84009. 80220e2: d009 beq.n 80220f8 <udp_remove+0x5c>
  84010. 80220e4: 68fb ldr r3, [r7, #12]
  84011. 80220e6: 68db ldr r3, [r3, #12]
  84012. 80220e8: 687a ldr r2, [r7, #4]
  84013. 80220ea: 429a cmp r2, r3
  84014. 80220ec: d104 bne.n 80220f8 <udp_remove+0x5c>
  84015. /* remove pcb from list */
  84016. pcb2->next = pcb->next;
  84017. 80220ee: 687b ldr r3, [r7, #4]
  84018. 80220f0: 68da ldr r2, [r3, #12]
  84019. 80220f2: 68fb ldr r3, [r7, #12]
  84020. 80220f4: 60da str r2, [r3, #12]
  84021. break;
  84022. 80220f6: e005 b.n 8022104 <udp_remove+0x68>
  84023. for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) {
  84024. 80220f8: 68fb ldr r3, [r7, #12]
  84025. 80220fa: 68db ldr r3, [r3, #12]
  84026. 80220fc: 60fb str r3, [r7, #12]
  84027. 80220fe: 68fb ldr r3, [r7, #12]
  84028. 8022100: 2b00 cmp r3, #0
  84029. 8022102: d1eb bne.n 80220dc <udp_remove+0x40>
  84030. }
  84031. }
  84032. }
  84033. memp_free(MEMP_UDP_PCB, pcb);
  84034. 8022104: 6879 ldr r1, [r7, #4]
  84035. 8022106: 2000 movs r0, #0
  84036. 8022108: f7f7 fef2 bl 8019ef0 <memp_free>
  84037. }
  84038. 802210c: 3710 adds r7, #16
  84039. 802210e: 46bd mov sp, r7
  84040. 8022110: bd80 pop {r7, pc}
  84041. 8022112: bf00 nop
  84042. 8022114: 08030384 .word 0x08030384
  84043. 8022118: 080306d0 .word 0x080306d0
  84044. 802211c: 080303d8 .word 0x080303d8
  84045. 8022120: 2402afb8 .word 0x2402afb8
  84046. 08022124 <udp_new>:
  84047. *
  84048. * @see udp_remove()
  84049. */
  84050. struct udp_pcb *
  84051. udp_new(void)
  84052. {
  84053. 8022124: b580 push {r7, lr}
  84054. 8022126: b082 sub sp, #8
  84055. 8022128: af00 add r7, sp, #0
  84056. struct udp_pcb *pcb;
  84057. LWIP_ASSERT_CORE_LOCKED();
  84058. 802212a: f7ee fca7 bl 8010a7c <sys_check_core_locking>
  84059. pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB);
  84060. 802212e: 2000 movs r0, #0
  84061. 8022130: f7f7 fe68 bl 8019e04 <memp_malloc>
  84062. 8022134: 6078 str r0, [r7, #4]
  84063. /* could allocate UDP PCB? */
  84064. if (pcb != NULL) {
  84065. 8022136: 687b ldr r3, [r7, #4]
  84066. 8022138: 2b00 cmp r3, #0
  84067. 802213a: d007 beq.n 802214c <udp_new+0x28>
  84068. /* UDP Lite: by initializing to all zeroes, chksum_len is set to 0
  84069. * which means checksum is generated over the whole datagram per default
  84070. * (recommended as default by RFC 3828). */
  84071. /* initialize PCB to all zeroes */
  84072. memset(pcb, 0, sizeof(struct udp_pcb));
  84073. 802213c: 2220 movs r2, #32
  84074. 802213e: 2100 movs r1, #0
  84075. 8022140: 6878 ldr r0, [r7, #4]
  84076. 8022142: f008 f9cd bl 802a4e0 <memset>
  84077. pcb->ttl = UDP_TTL;
  84078. 8022146: 687b ldr r3, [r7, #4]
  84079. 8022148: 22ff movs r2, #255 @ 0xff
  84080. 802214a: 72da strb r2, [r3, #11]
  84081. #if LWIP_MULTICAST_TX_OPTIONS
  84082. udp_set_multicast_ttl(pcb, UDP_TTL);
  84083. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  84084. }
  84085. return pcb;
  84086. 802214c: 687b ldr r3, [r7, #4]
  84087. }
  84088. 802214e: 4618 mov r0, r3
  84089. 8022150: 3708 adds r7, #8
  84090. 8022152: 46bd mov sp, r7
  84091. 8022154: bd80 pop {r7, pc}
  84092. 08022156 <udp_new_ip_type>:
  84093. *
  84094. * @see udp_remove()
  84095. */
  84096. struct udp_pcb *
  84097. udp_new_ip_type(u8_t type)
  84098. {
  84099. 8022156: b580 push {r7, lr}
  84100. 8022158: b084 sub sp, #16
  84101. 802215a: af00 add r7, sp, #0
  84102. 802215c: 4603 mov r3, r0
  84103. 802215e: 71fb strb r3, [r7, #7]
  84104. struct udp_pcb *pcb;
  84105. LWIP_ASSERT_CORE_LOCKED();
  84106. 8022160: f7ee fc8c bl 8010a7c <sys_check_core_locking>
  84107. pcb = udp_new();
  84108. 8022164: f7ff ffde bl 8022124 <udp_new>
  84109. 8022168: 60f8 str r0, [r7, #12]
  84110. IP_SET_TYPE_VAL(pcb->remote_ip, type);
  84111. }
  84112. #else
  84113. LWIP_UNUSED_ARG(type);
  84114. #endif /* LWIP_IPV4 && LWIP_IPV6 */
  84115. return pcb;
  84116. 802216a: 68fb ldr r3, [r7, #12]
  84117. }
  84118. 802216c: 4618 mov r0, r3
  84119. 802216e: 3710 adds r7, #16
  84120. 8022170: 46bd mov sp, r7
  84121. 8022172: bd80 pop {r7, pc}
  84122. 08022174 <udp_netif_ip_addr_changed>:
  84123. *
  84124. * @param old_addr IP address of the netif before change
  84125. * @param new_addr IP address of the netif after change
  84126. */
  84127. void udp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
  84128. {
  84129. 8022174: b480 push {r7}
  84130. 8022176: b085 sub sp, #20
  84131. 8022178: af00 add r7, sp, #0
  84132. 802217a: 6078 str r0, [r7, #4]
  84133. 802217c: 6039 str r1, [r7, #0]
  84134. struct udp_pcb *upcb;
  84135. if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) {
  84136. 802217e: 687b ldr r3, [r7, #4]
  84137. 8022180: 2b00 cmp r3, #0
  84138. 8022182: d01e beq.n 80221c2 <udp_netif_ip_addr_changed+0x4e>
  84139. 8022184: 687b ldr r3, [r7, #4]
  84140. 8022186: 681b ldr r3, [r3, #0]
  84141. 8022188: 2b00 cmp r3, #0
  84142. 802218a: d01a beq.n 80221c2 <udp_netif_ip_addr_changed+0x4e>
  84143. 802218c: 683b ldr r3, [r7, #0]
  84144. 802218e: 2b00 cmp r3, #0
  84145. 8022190: d017 beq.n 80221c2 <udp_netif_ip_addr_changed+0x4e>
  84146. 8022192: 683b ldr r3, [r7, #0]
  84147. 8022194: 681b ldr r3, [r3, #0]
  84148. 8022196: 2b00 cmp r3, #0
  84149. 8022198: d013 beq.n 80221c2 <udp_netif_ip_addr_changed+0x4e>
  84150. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  84151. 802219a: 4b0d ldr r3, [pc, #52] @ (80221d0 <udp_netif_ip_addr_changed+0x5c>)
  84152. 802219c: 681b ldr r3, [r3, #0]
  84153. 802219e: 60fb str r3, [r7, #12]
  84154. 80221a0: e00c b.n 80221bc <udp_netif_ip_addr_changed+0x48>
  84155. /* PCB bound to current local interface address? */
  84156. if (ip_addr_cmp(&upcb->local_ip, old_addr)) {
  84157. 80221a2: 68fb ldr r3, [r7, #12]
  84158. 80221a4: 681a ldr r2, [r3, #0]
  84159. 80221a6: 687b ldr r3, [r7, #4]
  84160. 80221a8: 681b ldr r3, [r3, #0]
  84161. 80221aa: 429a cmp r2, r3
  84162. 80221ac: d103 bne.n 80221b6 <udp_netif_ip_addr_changed+0x42>
  84163. /* The PCB is bound to the old ipaddr and
  84164. * is set to bound to the new one instead */
  84165. ip_addr_copy(upcb->local_ip, *new_addr);
  84166. 80221ae: 683b ldr r3, [r7, #0]
  84167. 80221b0: 681a ldr r2, [r3, #0]
  84168. 80221b2: 68fb ldr r3, [r7, #12]
  84169. 80221b4: 601a str r2, [r3, #0]
  84170. for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) {
  84171. 80221b6: 68fb ldr r3, [r7, #12]
  84172. 80221b8: 68db ldr r3, [r3, #12]
  84173. 80221ba: 60fb str r3, [r7, #12]
  84174. 80221bc: 68fb ldr r3, [r7, #12]
  84175. 80221be: 2b00 cmp r3, #0
  84176. 80221c0: d1ef bne.n 80221a2 <udp_netif_ip_addr_changed+0x2e>
  84177. }
  84178. }
  84179. }
  84180. }
  84181. 80221c2: bf00 nop
  84182. 80221c4: 3714 adds r7, #20
  84183. 80221c6: 46bd mov sp, r7
  84184. 80221c8: f85d 7b04 ldr.w r7, [sp], #4
  84185. 80221cc: 4770 bx lr
  84186. 80221ce: bf00 nop
  84187. 80221d0: 2402afb8 .word 0x2402afb8
  84188. 080221d4 <dhcp_inc_pcb_refcount>:
  84189. static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out);
  84190. /** Ensure DHCP PCB is allocated and bound */
  84191. static err_t
  84192. dhcp_inc_pcb_refcount(void)
  84193. {
  84194. 80221d4: b580 push {r7, lr}
  84195. 80221d6: af00 add r7, sp, #0
  84196. if (dhcp_pcb_refcount == 0) {
  84197. 80221d8: 4b20 ldr r3, [pc, #128] @ (802225c <dhcp_inc_pcb_refcount+0x88>)
  84198. 80221da: 781b ldrb r3, [r3, #0]
  84199. 80221dc: 2b00 cmp r3, #0
  84200. 80221de: d133 bne.n 8022248 <dhcp_inc_pcb_refcount+0x74>
  84201. LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL);
  84202. 80221e0: 4b1f ldr r3, [pc, #124] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84203. 80221e2: 681b ldr r3, [r3, #0]
  84204. 80221e4: 2b00 cmp r3, #0
  84205. 80221e6: d005 beq.n 80221f4 <dhcp_inc_pcb_refcount+0x20>
  84206. 80221e8: 4b1e ldr r3, [pc, #120] @ (8022264 <dhcp_inc_pcb_refcount+0x90>)
  84207. 80221ea: 22e5 movs r2, #229 @ 0xe5
  84208. 80221ec: 491e ldr r1, [pc, #120] @ (8022268 <dhcp_inc_pcb_refcount+0x94>)
  84209. 80221ee: 481f ldr r0, [pc, #124] @ (802226c <dhcp_inc_pcb_refcount+0x98>)
  84210. 80221f0: f007 ffe4 bl 802a1bc <iprintf>
  84211. /* allocate UDP PCB */
  84212. dhcp_pcb = udp_new();
  84213. 80221f4: f7ff ff96 bl 8022124 <udp_new>
  84214. 80221f8: 4603 mov r3, r0
  84215. 80221fa: 4a19 ldr r2, [pc, #100] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84216. 80221fc: 6013 str r3, [r2, #0]
  84217. if (dhcp_pcb == NULL) {
  84218. 80221fe: 4b18 ldr r3, [pc, #96] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84219. 8022200: 681b ldr r3, [r3, #0]
  84220. 8022202: 2b00 cmp r3, #0
  84221. 8022204: d102 bne.n 802220c <dhcp_inc_pcb_refcount+0x38>
  84222. return ERR_MEM;
  84223. 8022206: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  84224. 802220a: e024 b.n 8022256 <dhcp_inc_pcb_refcount+0x82>
  84225. }
  84226. ip_set_option(dhcp_pcb, SOF_BROADCAST);
  84227. 802220c: 4b14 ldr r3, [pc, #80] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84228. 802220e: 681b ldr r3, [r3, #0]
  84229. 8022210: 7a5a ldrb r2, [r3, #9]
  84230. 8022212: 4b13 ldr r3, [pc, #76] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84231. 8022214: 681b ldr r3, [r3, #0]
  84232. 8022216: f042 0220 orr.w r2, r2, #32
  84233. 802221a: b2d2 uxtb r2, r2
  84234. 802221c: 725a strb r2, [r3, #9]
  84235. /* set up local and remote port for the pcb -> listen on all interfaces on all src/dest IPs */
  84236. udp_bind(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_CLIENT);
  84237. 802221e: 4b10 ldr r3, [pc, #64] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84238. 8022220: 681b ldr r3, [r3, #0]
  84239. 8022222: 2244 movs r2, #68 @ 0x44
  84240. 8022224: 4912 ldr r1, [pc, #72] @ (8022270 <dhcp_inc_pcb_refcount+0x9c>)
  84241. 8022226: 4618 mov r0, r3
  84242. 8022228: f7ff fdf2 bl 8021e10 <udp_bind>
  84243. udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER);
  84244. 802222c: 4b0c ldr r3, [pc, #48] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84245. 802222e: 681b ldr r3, [r3, #0]
  84246. 8022230: 2243 movs r2, #67 @ 0x43
  84247. 8022232: 490f ldr r1, [pc, #60] @ (8022270 <dhcp_inc_pcb_refcount+0x9c>)
  84248. 8022234: 4618 mov r0, r3
  84249. 8022236: f7ff fe75 bl 8021f24 <udp_connect>
  84250. udp_recv(dhcp_pcb, dhcp_recv, NULL);
  84251. 802223a: 4b09 ldr r3, [pc, #36] @ (8022260 <dhcp_inc_pcb_refcount+0x8c>)
  84252. 802223c: 681b ldr r3, [r3, #0]
  84253. 802223e: 2200 movs r2, #0
  84254. 8022240: 490c ldr r1, [pc, #48] @ (8022274 <dhcp_inc_pcb_refcount+0xa0>)
  84255. 8022242: 4618 mov r0, r3
  84256. 8022244: f7ff ff08 bl 8022058 <udp_recv>
  84257. }
  84258. dhcp_pcb_refcount++;
  84259. 8022248: 4b04 ldr r3, [pc, #16] @ (802225c <dhcp_inc_pcb_refcount+0x88>)
  84260. 802224a: 781b ldrb r3, [r3, #0]
  84261. 802224c: 3301 adds r3, #1
  84262. 802224e: b2da uxtb r2, r3
  84263. 8022250: 4b02 ldr r3, [pc, #8] @ (802225c <dhcp_inc_pcb_refcount+0x88>)
  84264. 8022252: 701a strb r2, [r3, #0]
  84265. return ERR_OK;
  84266. 8022254: 2300 movs r3, #0
  84267. }
  84268. 8022256: 4618 mov r0, r3
  84269. 8022258: bd80 pop {r7, pc}
  84270. 802225a: bf00 nop
  84271. 802225c: 2402afe8 .word 0x2402afe8
  84272. 8022260: 2402afe4 .word 0x2402afe4
  84273. 8022264: 080306e8 .word 0x080306e8
  84274. 8022268: 08030720 .word 0x08030720
  84275. 802226c: 08030748 .word 0x08030748
  84276. 8022270: 080314f4 .word 0x080314f4
  84277. 8022274: 08023b45 .word 0x08023b45
  84278. 08022278 <dhcp_dec_pcb_refcount>:
  84279. /** Free DHCP PCB if the last netif stops using it */
  84280. static void
  84281. dhcp_dec_pcb_refcount(void)
  84282. {
  84283. 8022278: b580 push {r7, lr}
  84284. 802227a: af00 add r7, sp, #0
  84285. LWIP_ASSERT("dhcp_pcb_refcount(): refcount error", (dhcp_pcb_refcount > 0));
  84286. 802227c: 4b0e ldr r3, [pc, #56] @ (80222b8 <dhcp_dec_pcb_refcount+0x40>)
  84287. 802227e: 781b ldrb r3, [r3, #0]
  84288. 8022280: 2b00 cmp r3, #0
  84289. 8022282: d105 bne.n 8022290 <dhcp_dec_pcb_refcount+0x18>
  84290. 8022284: 4b0d ldr r3, [pc, #52] @ (80222bc <dhcp_dec_pcb_refcount+0x44>)
  84291. 8022286: 22ff movs r2, #255 @ 0xff
  84292. 8022288: 490d ldr r1, [pc, #52] @ (80222c0 <dhcp_dec_pcb_refcount+0x48>)
  84293. 802228a: 480e ldr r0, [pc, #56] @ (80222c4 <dhcp_dec_pcb_refcount+0x4c>)
  84294. 802228c: f007 ff96 bl 802a1bc <iprintf>
  84295. dhcp_pcb_refcount--;
  84296. 8022290: 4b09 ldr r3, [pc, #36] @ (80222b8 <dhcp_dec_pcb_refcount+0x40>)
  84297. 8022292: 781b ldrb r3, [r3, #0]
  84298. 8022294: 3b01 subs r3, #1
  84299. 8022296: b2da uxtb r2, r3
  84300. 8022298: 4b07 ldr r3, [pc, #28] @ (80222b8 <dhcp_dec_pcb_refcount+0x40>)
  84301. 802229a: 701a strb r2, [r3, #0]
  84302. if (dhcp_pcb_refcount == 0) {
  84303. 802229c: 4b06 ldr r3, [pc, #24] @ (80222b8 <dhcp_dec_pcb_refcount+0x40>)
  84304. 802229e: 781b ldrb r3, [r3, #0]
  84305. 80222a0: 2b00 cmp r3, #0
  84306. 80222a2: d107 bne.n 80222b4 <dhcp_dec_pcb_refcount+0x3c>
  84307. udp_remove(dhcp_pcb);
  84308. 80222a4: 4b08 ldr r3, [pc, #32] @ (80222c8 <dhcp_dec_pcb_refcount+0x50>)
  84309. 80222a6: 681b ldr r3, [r3, #0]
  84310. 80222a8: 4618 mov r0, r3
  84311. 80222aa: f7ff fef7 bl 802209c <udp_remove>
  84312. dhcp_pcb = NULL;
  84313. 80222ae: 4b06 ldr r3, [pc, #24] @ (80222c8 <dhcp_dec_pcb_refcount+0x50>)
  84314. 80222b0: 2200 movs r2, #0
  84315. 80222b2: 601a str r2, [r3, #0]
  84316. }
  84317. }
  84318. 80222b4: bf00 nop
  84319. 80222b6: bd80 pop {r7, pc}
  84320. 80222b8: 2402afe8 .word 0x2402afe8
  84321. 80222bc: 080306e8 .word 0x080306e8
  84322. 80222c0: 08030770 .word 0x08030770
  84323. 80222c4: 08030748 .word 0x08030748
  84324. 80222c8: 2402afe4 .word 0x2402afe4
  84325. 080222cc <dhcp_handle_nak>:
  84326. *
  84327. * @param netif the netif under DHCP control
  84328. */
  84329. static void
  84330. dhcp_handle_nak(struct netif *netif)
  84331. {
  84332. 80222cc: b580 push {r7, lr}
  84333. 80222ce: b084 sub sp, #16
  84334. 80222d0: af00 add r7, sp, #0
  84335. 80222d2: 6078 str r0, [r7, #4]
  84336. struct dhcp *dhcp = netif_dhcp_data(netif);
  84337. 80222d4: 687b ldr r3, [r7, #4]
  84338. 80222d6: 6a5b ldr r3, [r3, #36] @ 0x24
  84339. 80222d8: 60fb str r3, [r7, #12]
  84340. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_nak(netif=%p) %c%c%"U16_F"\n",
  84341. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  84342. /* Change to a defined state - set this before assigning the address
  84343. to ensure the callback can use dhcp_supplied_address() */
  84344. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  84345. 80222da: 210c movs r1, #12
  84346. 80222dc: 68f8 ldr r0, [r7, #12]
  84347. 80222de: f001 f862 bl 80233a6 <dhcp_set_state>
  84348. /* remove IP address from interface (must no longer be used, as per RFC2131) */
  84349. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  84350. 80222e2: 4b06 ldr r3, [pc, #24] @ (80222fc <dhcp_handle_nak+0x30>)
  84351. 80222e4: 4a05 ldr r2, [pc, #20] @ (80222fc <dhcp_handle_nak+0x30>)
  84352. 80222e6: 4905 ldr r1, [pc, #20] @ (80222fc <dhcp_handle_nak+0x30>)
  84353. 80222e8: 6878 ldr r0, [r7, #4]
  84354. 80222ea: f7f7 ffa5 bl 801a238 <netif_set_addr>
  84355. /* We can immediately restart discovery */
  84356. dhcp_discover(netif);
  84357. 80222ee: 6878 ldr r0, [r7, #4]
  84358. 80222f0: f000 fc4c bl 8022b8c <dhcp_discover>
  84359. }
  84360. 80222f4: bf00 nop
  84361. 80222f6: 3710 adds r7, #16
  84362. 80222f8: 46bd mov sp, r7
  84363. 80222fa: bd80 pop {r7, pc}
  84364. 80222fc: 080314f4 .word 0x080314f4
  84365. 08022300 <dhcp_check>:
  84366. *
  84367. * @param netif the netif under DHCP control
  84368. */
  84369. static void
  84370. dhcp_check(struct netif *netif)
  84371. {
  84372. 8022300: b580 push {r7, lr}
  84373. 8022302: b084 sub sp, #16
  84374. 8022304: af00 add r7, sp, #0
  84375. 8022306: 6078 str r0, [r7, #4]
  84376. struct dhcp *dhcp = netif_dhcp_data(netif);
  84377. 8022308: 687b ldr r3, [r7, #4]
  84378. 802230a: 6a5b ldr r3, [r3, #36] @ 0x24
  84379. 802230c: 60fb str r3, [r7, #12]
  84380. err_t result;
  84381. u16_t msecs;
  84382. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_check(netif=%p) %c%c\n", (void *)netif, (s16_t)netif->name[0],
  84383. (s16_t)netif->name[1]));
  84384. dhcp_set_state(dhcp, DHCP_STATE_CHECKING);
  84385. 802230e: 2108 movs r1, #8
  84386. 8022310: 68f8 ldr r0, [r7, #12]
  84387. 8022312: f001 f848 bl 80233a6 <dhcp_set_state>
  84388. /* create an ARP query for the offered IP address, expecting that no host
  84389. responds, as the IP address should not be in use. */
  84390. result = etharp_query(netif, &dhcp->offered_ip_addr, NULL);
  84391. 8022316: 68fb ldr r3, [r7, #12]
  84392. 8022318: 331c adds r3, #28
  84393. 802231a: 2200 movs r2, #0
  84394. 802231c: 4619 mov r1, r3
  84395. 802231e: 6878 ldr r0, [r7, #4]
  84396. 8022320: f002 fb88 bl 8024a34 <etharp_query>
  84397. 8022324: 4603 mov r3, r0
  84398. 8022326: 72fb strb r3, [r7, #11]
  84399. if (result != ERR_OK) {
  84400. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_check: could not perform ARP query\n"));
  84401. }
  84402. if (dhcp->tries < 255) {
  84403. 8022328: 68fb ldr r3, [r7, #12]
  84404. 802232a: 799b ldrb r3, [r3, #6]
  84405. 802232c: 2bff cmp r3, #255 @ 0xff
  84406. 802232e: d005 beq.n 802233c <dhcp_check+0x3c>
  84407. dhcp->tries++;
  84408. 8022330: 68fb ldr r3, [r7, #12]
  84409. 8022332: 799b ldrb r3, [r3, #6]
  84410. 8022334: 3301 adds r3, #1
  84411. 8022336: b2da uxtb r2, r3
  84412. 8022338: 68fb ldr r3, [r7, #12]
  84413. 802233a: 719a strb r2, [r3, #6]
  84414. }
  84415. msecs = 500;
  84416. 802233c: f44f 73fa mov.w r3, #500 @ 0x1f4
  84417. 8022340: 813b strh r3, [r7, #8]
  84418. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  84419. 8022342: 893b ldrh r3, [r7, #8]
  84420. 8022344: f203 13f3 addw r3, r3, #499 @ 0x1f3
  84421. 8022348: 4a06 ldr r2, [pc, #24] @ (8022364 <dhcp_check+0x64>)
  84422. 802234a: fb82 1203 smull r1, r2, r2, r3
  84423. 802234e: 1152 asrs r2, r2, #5
  84424. 8022350: 17db asrs r3, r3, #31
  84425. 8022352: 1ad3 subs r3, r2, r3
  84426. 8022354: b29a uxth r2, r3
  84427. 8022356: 68fb ldr r3, [r7, #12]
  84428. 8022358: 811a strh r2, [r3, #8]
  84429. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs));
  84430. }
  84431. 802235a: bf00 nop
  84432. 802235c: 3710 adds r7, #16
  84433. 802235e: 46bd mov sp, r7
  84434. 8022360: bd80 pop {r7, pc}
  84435. 8022362: bf00 nop
  84436. 8022364: 10624dd3 .word 0x10624dd3
  84437. 08022368 <dhcp_handle_offer>:
  84438. *
  84439. * @param netif the netif under DHCP control
  84440. */
  84441. static void
  84442. dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in)
  84443. {
  84444. 8022368: b580 push {r7, lr}
  84445. 802236a: b084 sub sp, #16
  84446. 802236c: af00 add r7, sp, #0
  84447. 802236e: 6078 str r0, [r7, #4]
  84448. 8022370: 6039 str r1, [r7, #0]
  84449. struct dhcp *dhcp = netif_dhcp_data(netif);
  84450. 8022372: 687b ldr r3, [r7, #4]
  84451. 8022374: 6a5b ldr r3, [r3, #36] @ 0x24
  84452. 8022376: 60fb str r3, [r7, #12]
  84453. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_offer(netif=%p) %c%c%"U16_F"\n",
  84454. (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num));
  84455. /* obtain the server address */
  84456. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SERVER_ID)) {
  84457. 8022378: 4b0c ldr r3, [pc, #48] @ (80223ac <dhcp_handle_offer+0x44>)
  84458. 802237a: 789b ldrb r3, [r3, #2]
  84459. 802237c: 2b00 cmp r3, #0
  84460. 802237e: d011 beq.n 80223a4 <dhcp_handle_offer+0x3c>
  84461. dhcp->request_timeout = 0; /* stop timer */
  84462. 8022380: 68fb ldr r3, [r7, #12]
  84463. 8022382: 2200 movs r2, #0
  84464. 8022384: 811a strh r2, [r3, #8]
  84465. ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SERVER_ID)));
  84466. 8022386: 4b0a ldr r3, [pc, #40] @ (80223b0 <dhcp_handle_offer+0x48>)
  84467. 8022388: 689b ldr r3, [r3, #8]
  84468. 802238a: 4618 mov r0, r3
  84469. 802238c: f7f6 ffd1 bl 8019332 <lwip_htonl>
  84470. 8022390: 4602 mov r2, r0
  84471. 8022392: 68fb ldr r3, [r7, #12]
  84472. 8022394: 619a str r2, [r3, #24]
  84473. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): server 0x%08"X32_F"\n",
  84474. ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr))));
  84475. /* remember offered address */
  84476. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  84477. 8022396: 683b ldr r3, [r7, #0]
  84478. 8022398: 691a ldr r2, [r3, #16]
  84479. 802239a: 68fb ldr r3, [r7, #12]
  84480. 802239c: 61da str r2, [r3, #28]
  84481. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): offer for 0x%08"X32_F"\n",
  84482. ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  84483. dhcp_select(netif);
  84484. 802239e: 6878 ldr r0, [r7, #4]
  84485. 80223a0: f000 f808 bl 80223b4 <dhcp_select>
  84486. } else {
  84487. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  84488. ("dhcp_handle_offer(netif=%p) did not get server ID!\n", (void *)netif));
  84489. }
  84490. }
  84491. 80223a4: bf00 nop
  84492. 80223a6: 3710 adds r7, #16
  84493. 80223a8: 46bd mov sp, r7
  84494. 80223aa: bd80 pop {r7, pc}
  84495. 80223ac: 2402afdc .word 0x2402afdc
  84496. 80223b0: 2402afbc .word 0x2402afbc
  84497. 080223b4 <dhcp_select>:
  84498. * @param netif the netif under DHCP control
  84499. * @return lwIP specific error (see error.h)
  84500. */
  84501. static err_t
  84502. dhcp_select(struct netif *netif)
  84503. {
  84504. 80223b4: b5b0 push {r4, r5, r7, lr}
  84505. 80223b6: b08a sub sp, #40 @ 0x28
  84506. 80223b8: af02 add r7, sp, #8
  84507. 80223ba: 6078 str r0, [r7, #4]
  84508. u16_t msecs;
  84509. u8_t i;
  84510. struct pbuf *p_out;
  84511. u16_t options_out_len;
  84512. LWIP_ERROR("dhcp_select: netif != NULL", (netif != NULL), return ERR_ARG;);
  84513. 80223bc: 687b ldr r3, [r7, #4]
  84514. 80223be: 2b00 cmp r3, #0
  84515. 80223c0: d109 bne.n 80223d6 <dhcp_select+0x22>
  84516. 80223c2: 4b71 ldr r3, [pc, #452] @ (8022588 <dhcp_select+0x1d4>)
  84517. 80223c4: f240 1277 movw r2, #375 @ 0x177
  84518. 80223c8: 4970 ldr r1, [pc, #448] @ (802258c <dhcp_select+0x1d8>)
  84519. 80223ca: 4871 ldr r0, [pc, #452] @ (8022590 <dhcp_select+0x1dc>)
  84520. 80223cc: f007 fef6 bl 802a1bc <iprintf>
  84521. 80223d0: f06f 030f mvn.w r3, #15
  84522. 80223d4: e0d3 b.n 802257e <dhcp_select+0x1ca>
  84523. dhcp = netif_dhcp_data(netif);
  84524. 80223d6: 687b ldr r3, [r7, #4]
  84525. 80223d8: 6a5b ldr r3, [r3, #36] @ 0x24
  84526. 80223da: 61bb str r3, [r7, #24]
  84527. LWIP_ERROR("dhcp_select: dhcp != NULL", (dhcp != NULL), return ERR_VAL;);
  84528. 80223dc: 69bb ldr r3, [r7, #24]
  84529. 80223de: 2b00 cmp r3, #0
  84530. 80223e0: d109 bne.n 80223f6 <dhcp_select+0x42>
  84531. 80223e2: 4b69 ldr r3, [pc, #420] @ (8022588 <dhcp_select+0x1d4>)
  84532. 80223e4: f240 1279 movw r2, #377 @ 0x179
  84533. 80223e8: 496a ldr r1, [pc, #424] @ (8022594 <dhcp_select+0x1e0>)
  84534. 80223ea: 4869 ldr r0, [pc, #420] @ (8022590 <dhcp_select+0x1dc>)
  84535. 80223ec: f007 fee6 bl 802a1bc <iprintf>
  84536. 80223f0: f06f 0305 mvn.w r3, #5
  84537. 80223f4: e0c3 b.n 802257e <dhcp_select+0x1ca>
  84538. 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));
  84539. dhcp_set_state(dhcp, DHCP_STATE_REQUESTING);
  84540. 80223f6: 2101 movs r1, #1
  84541. 80223f8: 69b8 ldr r0, [r7, #24]
  84542. 80223fa: f000 ffd4 bl 80233a6 <dhcp_set_state>
  84543. /* create and initialize the DHCP message header */
  84544. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  84545. 80223fe: f107 030c add.w r3, r7, #12
  84546. 8022402: 2203 movs r2, #3
  84547. 8022404: 69b9 ldr r1, [r7, #24]
  84548. 8022406: 6878 ldr r0, [r7, #4]
  84549. 8022408: f001 fc66 bl 8023cd8 <dhcp_create_msg>
  84550. 802240c: 6178 str r0, [r7, #20]
  84551. if (p_out != NULL) {
  84552. 802240e: 697b ldr r3, [r7, #20]
  84553. 8022410: 2b00 cmp r3, #0
  84554. 8022412: f000 8085 beq.w 8022520 <dhcp_select+0x16c>
  84555. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  84556. 8022416: 697b ldr r3, [r7, #20]
  84557. 8022418: 685b ldr r3, [r3, #4]
  84558. 802241a: 613b str r3, [r7, #16]
  84559. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  84560. 802241c: 89b8 ldrh r0, [r7, #12]
  84561. 802241e: 693b ldr r3, [r7, #16]
  84562. 8022420: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84563. 8022424: 2302 movs r3, #2
  84564. 8022426: 2239 movs r2, #57 @ 0x39
  84565. 8022428: f000 ffd8 bl 80233dc <dhcp_option>
  84566. 802242c: 4603 mov r3, r0
  84567. 802242e: 81bb strh r3, [r7, #12]
  84568. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  84569. 8022430: 89b8 ldrh r0, [r7, #12]
  84570. 8022432: 693b ldr r3, [r7, #16]
  84571. 8022434: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84572. 8022438: 687b ldr r3, [r7, #4]
  84573. 802243a: 8d1b ldrh r3, [r3, #40] @ 0x28
  84574. 802243c: 461a mov r2, r3
  84575. 802243e: f001 f827 bl 8023490 <dhcp_option_short>
  84576. 8022442: 4603 mov r3, r0
  84577. 8022444: 81bb strh r3, [r7, #12]
  84578. /* MUST request the offered IP address */
  84579. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  84580. 8022446: 89b8 ldrh r0, [r7, #12]
  84581. 8022448: 693b ldr r3, [r7, #16]
  84582. 802244a: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84583. 802244e: 2304 movs r3, #4
  84584. 8022450: 2232 movs r2, #50 @ 0x32
  84585. 8022452: f000 ffc3 bl 80233dc <dhcp_option>
  84586. 8022456: 4603 mov r3, r0
  84587. 8022458: 81bb strh r3, [r7, #12]
  84588. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  84589. 802245a: 89bc ldrh r4, [r7, #12]
  84590. 802245c: 693b ldr r3, [r7, #16]
  84591. 802245e: f103 05f0 add.w r5, r3, #240 @ 0xf0
  84592. 8022462: 69bb ldr r3, [r7, #24]
  84593. 8022464: 69db ldr r3, [r3, #28]
  84594. 8022466: 4618 mov r0, r3
  84595. 8022468: f7f6 ff63 bl 8019332 <lwip_htonl>
  84596. 802246c: 4603 mov r3, r0
  84597. 802246e: 461a mov r2, r3
  84598. 8022470: 4629 mov r1, r5
  84599. 8022472: 4620 mov r0, r4
  84600. 8022474: f001 f83e bl 80234f4 <dhcp_option_long>
  84601. 8022478: 4603 mov r3, r0
  84602. 802247a: 81bb strh r3, [r7, #12]
  84603. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  84604. 802247c: 89b8 ldrh r0, [r7, #12]
  84605. 802247e: 693b ldr r3, [r7, #16]
  84606. 8022480: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84607. 8022484: 2304 movs r3, #4
  84608. 8022486: 2236 movs r2, #54 @ 0x36
  84609. 8022488: f000 ffa8 bl 80233dc <dhcp_option>
  84610. 802248c: 4603 mov r3, r0
  84611. 802248e: 81bb strh r3, [r7, #12]
  84612. 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))));
  84613. 8022490: 89bc ldrh r4, [r7, #12]
  84614. 8022492: 693b ldr r3, [r7, #16]
  84615. 8022494: f103 05f0 add.w r5, r3, #240 @ 0xf0
  84616. 8022498: 69bb ldr r3, [r7, #24]
  84617. 802249a: 699b ldr r3, [r3, #24]
  84618. 802249c: 4618 mov r0, r3
  84619. 802249e: f7f6 ff48 bl 8019332 <lwip_htonl>
  84620. 80224a2: 4603 mov r3, r0
  84621. 80224a4: 461a mov r2, r3
  84622. 80224a6: 4629 mov r1, r5
  84623. 80224a8: 4620 mov r0, r4
  84624. 80224aa: f001 f823 bl 80234f4 <dhcp_option_long>
  84625. 80224ae: 4603 mov r3, r0
  84626. 80224b0: 81bb strh r3, [r7, #12]
  84627. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  84628. 80224b2: 89b8 ldrh r0, [r7, #12]
  84629. 80224b4: 693b ldr r3, [r7, #16]
  84630. 80224b6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84631. 80224ba: 2303 movs r3, #3
  84632. 80224bc: 2237 movs r2, #55 @ 0x37
  84633. 80224be: f000 ff8d bl 80233dc <dhcp_option>
  84634. 80224c2: 4603 mov r3, r0
  84635. 80224c4: 81bb strh r3, [r7, #12]
  84636. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84637. 80224c6: 2300 movs r3, #0
  84638. 80224c8: 77fb strb r3, [r7, #31]
  84639. 80224ca: e00e b.n 80224ea <dhcp_select+0x136>
  84640. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  84641. 80224cc: 89b8 ldrh r0, [r7, #12]
  84642. 80224ce: 693b ldr r3, [r7, #16]
  84643. 80224d0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  84644. 80224d4: 7ffb ldrb r3, [r7, #31]
  84645. 80224d6: 4a30 ldr r2, [pc, #192] @ (8022598 <dhcp_select+0x1e4>)
  84646. 80224d8: 5cd3 ldrb r3, [r2, r3]
  84647. 80224da: 461a mov r2, r3
  84648. 80224dc: f000 ffb2 bl 8023444 <dhcp_option_byte>
  84649. 80224e0: 4603 mov r3, r0
  84650. 80224e2: 81bb strh r3, [r7, #12]
  84651. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  84652. 80224e4: 7ffb ldrb r3, [r7, #31]
  84653. 80224e6: 3301 adds r3, #1
  84654. 80224e8: 77fb strb r3, [r7, #31]
  84655. 80224ea: 7ffb ldrb r3, [r7, #31]
  84656. 80224ec: 2b02 cmp r3, #2
  84657. 80224ee: d9ed bls.n 80224cc <dhcp_select+0x118>
  84658. #if LWIP_NETIF_HOSTNAME
  84659. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  84660. #endif /* LWIP_NETIF_HOSTNAME */
  84661. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REQUESTING, msg_out, DHCP_REQUEST, &options_out_len);
  84662. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  84663. 80224f0: 89b8 ldrh r0, [r7, #12]
  84664. 80224f2: 693b ldr r3, [r7, #16]
  84665. 80224f4: 33f0 adds r3, #240 @ 0xf0
  84666. 80224f6: 697a ldr r2, [r7, #20]
  84667. 80224f8: 4619 mov r1, r3
  84668. 80224fa: f001 fcc3 bl 8023e84 <dhcp_option_trailer>
  84669. /* send broadcast to any DHCP server */
  84670. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  84671. 80224fe: 4b27 ldr r3, [pc, #156] @ (802259c <dhcp_select+0x1e8>)
  84672. 8022500: 6818 ldr r0, [r3, #0]
  84673. 8022502: 4b27 ldr r3, [pc, #156] @ (80225a0 <dhcp_select+0x1ec>)
  84674. 8022504: 9301 str r3, [sp, #4]
  84675. 8022506: 687b ldr r3, [r7, #4]
  84676. 8022508: 9300 str r3, [sp, #0]
  84677. 802250a: 2343 movs r3, #67 @ 0x43
  84678. 802250c: 4a25 ldr r2, [pc, #148] @ (80225a4 <dhcp_select+0x1f0>)
  84679. 802250e: 6979 ldr r1, [r7, #20]
  84680. 8022510: f7ff fb96 bl 8021c40 <udp_sendto_if_src>
  84681. 8022514: 4603 mov r3, r0
  84682. 8022516: 77bb strb r3, [r7, #30]
  84683. pbuf_free(p_out);
  84684. 8022518: 6978 ldr r0, [r7, #20]
  84685. 802251a: f7f8 fbd7 bl 801accc <pbuf_free>
  84686. 802251e: e001 b.n 8022524 <dhcp_select+0x170>
  84687. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_select: REQUESTING\n"));
  84688. } else {
  84689. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_select: could not allocate DHCP request\n"));
  84690. result = ERR_MEM;
  84691. 8022520: 23ff movs r3, #255 @ 0xff
  84692. 8022522: 77bb strb r3, [r7, #30]
  84693. }
  84694. if (dhcp->tries < 255) {
  84695. 8022524: 69bb ldr r3, [r7, #24]
  84696. 8022526: 799b ldrb r3, [r3, #6]
  84697. 8022528: 2bff cmp r3, #255 @ 0xff
  84698. 802252a: d005 beq.n 8022538 <dhcp_select+0x184>
  84699. dhcp->tries++;
  84700. 802252c: 69bb ldr r3, [r7, #24]
  84701. 802252e: 799b ldrb r3, [r3, #6]
  84702. 8022530: 3301 adds r3, #1
  84703. 8022532: b2da uxtb r2, r3
  84704. 8022534: 69bb ldr r3, [r7, #24]
  84705. 8022536: 719a strb r2, [r3, #6]
  84706. }
  84707. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  84708. 8022538: 69bb ldr r3, [r7, #24]
  84709. 802253a: 799b ldrb r3, [r3, #6]
  84710. 802253c: 2b05 cmp r3, #5
  84711. 802253e: d80d bhi.n 802255c <dhcp_select+0x1a8>
  84712. 8022540: 69bb ldr r3, [r7, #24]
  84713. 8022542: 799b ldrb r3, [r3, #6]
  84714. 8022544: 461a mov r2, r3
  84715. 8022546: 2301 movs r3, #1
  84716. 8022548: 4093 lsls r3, r2
  84717. 802254a: b29b uxth r3, r3
  84718. 802254c: 461a mov r2, r3
  84719. 802254e: 0152 lsls r2, r2, #5
  84720. 8022550: 1ad2 subs r2, r2, r3
  84721. 8022552: 0092 lsls r2, r2, #2
  84722. 8022554: 4413 add r3, r2
  84723. 8022556: 00db lsls r3, r3, #3
  84724. 8022558: b29b uxth r3, r3
  84725. 802255a: e001 b.n 8022560 <dhcp_select+0x1ac>
  84726. 802255c: f64e 2360 movw r3, #60000 @ 0xea60
  84727. 8022560: 81fb strh r3, [r7, #14]
  84728. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  84729. 8022562: 89fb ldrh r3, [r7, #14]
  84730. 8022564: f203 13f3 addw r3, r3, #499 @ 0x1f3
  84731. 8022568: 4a0f ldr r2, [pc, #60] @ (80225a8 <dhcp_select+0x1f4>)
  84732. 802256a: fb82 1203 smull r1, r2, r2, r3
  84733. 802256e: 1152 asrs r2, r2, #5
  84734. 8022570: 17db asrs r3, r3, #31
  84735. 8022572: 1ad3 subs r3, r2, r3
  84736. 8022574: b29a uxth r2, r3
  84737. 8022576: 69bb ldr r3, [r7, #24]
  84738. 8022578: 811a strh r2, [r3, #8]
  84739. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs));
  84740. return result;
  84741. 802257a: f997 301e ldrsb.w r3, [r7, #30]
  84742. }
  84743. 802257e: 4618 mov r0, r3
  84744. 8022580: 3720 adds r7, #32
  84745. 8022582: 46bd mov sp, r7
  84746. 8022584: bdb0 pop {r4, r5, r7, pc}
  84747. 8022586: bf00 nop
  84748. 8022588: 080306e8 .word 0x080306e8
  84749. 802258c: 08030794 .word 0x08030794
  84750. 8022590: 08030748 .word 0x08030748
  84751. 8022594: 080307b0 .word 0x080307b0
  84752. 8022598: 24000058 .word 0x24000058
  84753. 802259c: 2402afe4 .word 0x2402afe4
  84754. 80225a0: 080314f4 .word 0x080314f4
  84755. 80225a4: 080314f8 .word 0x080314f8
  84756. 80225a8: 10624dd3 .word 0x10624dd3
  84757. 080225ac <dhcp_coarse_tmr>:
  84758. * The DHCP timer that checks for lease renewal/rebind timeouts.
  84759. * Must be called once a minute (see @ref DHCP_COARSE_TIMER_SECS).
  84760. */
  84761. void
  84762. dhcp_coarse_tmr(void)
  84763. {
  84764. 80225ac: b580 push {r7, lr}
  84765. 80225ae: b082 sub sp, #8
  84766. 80225b0: af00 add r7, sp, #0
  84767. struct netif *netif;
  84768. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_coarse_tmr()\n"));
  84769. /* iterate through all network interfaces */
  84770. NETIF_FOREACH(netif) {
  84771. 80225b2: 4b27 ldr r3, [pc, #156] @ (8022650 <dhcp_coarse_tmr+0xa4>)
  84772. 80225b4: 681b ldr r3, [r3, #0]
  84773. 80225b6: 607b str r3, [r7, #4]
  84774. 80225b8: e042 b.n 8022640 <dhcp_coarse_tmr+0x94>
  84775. /* only act on DHCP configured interfaces */
  84776. struct dhcp *dhcp = netif_dhcp_data(netif);
  84777. 80225ba: 687b ldr r3, [r7, #4]
  84778. 80225bc: 6a5b ldr r3, [r3, #36] @ 0x24
  84779. 80225be: 603b str r3, [r7, #0]
  84780. if ((dhcp != NULL) && (dhcp->state != DHCP_STATE_OFF)) {
  84781. 80225c0: 683b ldr r3, [r7, #0]
  84782. 80225c2: 2b00 cmp r3, #0
  84783. 80225c4: d039 beq.n 802263a <dhcp_coarse_tmr+0x8e>
  84784. 80225c6: 683b ldr r3, [r7, #0]
  84785. 80225c8: 795b ldrb r3, [r3, #5]
  84786. 80225ca: 2b00 cmp r3, #0
  84787. 80225cc: d035 beq.n 802263a <dhcp_coarse_tmr+0x8e>
  84788. /* compare lease time to expire timeout */
  84789. if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) {
  84790. 80225ce: 683b ldr r3, [r7, #0]
  84791. 80225d0: 8a9b ldrh r3, [r3, #20]
  84792. 80225d2: 2b00 cmp r3, #0
  84793. 80225d4: d012 beq.n 80225fc <dhcp_coarse_tmr+0x50>
  84794. 80225d6: 683b ldr r3, [r7, #0]
  84795. 80225d8: 8a5b ldrh r3, [r3, #18]
  84796. 80225da: 3301 adds r3, #1
  84797. 80225dc: b29a uxth r2, r3
  84798. 80225de: 683b ldr r3, [r7, #0]
  84799. 80225e0: 825a strh r2, [r3, #18]
  84800. 80225e2: 683b ldr r3, [r7, #0]
  84801. 80225e4: 8a5a ldrh r2, [r3, #18]
  84802. 80225e6: 683b ldr r3, [r7, #0]
  84803. 80225e8: 8a9b ldrh r3, [r3, #20]
  84804. 80225ea: 429a cmp r2, r3
  84805. 80225ec: d106 bne.n 80225fc <dhcp_coarse_tmr+0x50>
  84806. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t0 timeout\n"));
  84807. /* this clients' lease time has expired */
  84808. dhcp_release_and_stop(netif);
  84809. 80225ee: 6878 ldr r0, [r7, #4]
  84810. 80225f0: f000 fe32 bl 8023258 <dhcp_release_and_stop>
  84811. dhcp_start(netif);
  84812. 80225f4: 6878 ldr r0, [r7, #4]
  84813. 80225f6: f000 f96b bl 80228d0 <dhcp_start>
  84814. 80225fa: e01e b.n 802263a <dhcp_coarse_tmr+0x8e>
  84815. /* timer is active (non zero), and triggers (zeroes) now? */
  84816. } else if (dhcp->t2_rebind_time && (dhcp->t2_rebind_time-- == 1)) {
  84817. 80225fc: 683b ldr r3, [r7, #0]
  84818. 80225fe: 8a1b ldrh r3, [r3, #16]
  84819. 8022600: 2b00 cmp r3, #0
  84820. 8022602: d00b beq.n 802261c <dhcp_coarse_tmr+0x70>
  84821. 8022604: 683b ldr r3, [r7, #0]
  84822. 8022606: 8a1b ldrh r3, [r3, #16]
  84823. 8022608: 1e5a subs r2, r3, #1
  84824. 802260a: b291 uxth r1, r2
  84825. 802260c: 683a ldr r2, [r7, #0]
  84826. 802260e: 8211 strh r1, [r2, #16]
  84827. 8022610: 2b01 cmp r3, #1
  84828. 8022612: d103 bne.n 802261c <dhcp_coarse_tmr+0x70>
  84829. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t2 timeout\n"));
  84830. /* this clients' rebind timeout triggered */
  84831. dhcp_t2_timeout(netif);
  84832. 8022614: 6878 ldr r0, [r7, #4]
  84833. 8022616: f000 f8c7 bl 80227a8 <dhcp_t2_timeout>
  84834. 802261a: e00e b.n 802263a <dhcp_coarse_tmr+0x8e>
  84835. /* timer is active (non zero), and triggers (zeroes) now */
  84836. } else if (dhcp->t1_renew_time && (dhcp->t1_renew_time-- == 1)) {
  84837. 802261c: 683b ldr r3, [r7, #0]
  84838. 802261e: 89db ldrh r3, [r3, #14]
  84839. 8022620: 2b00 cmp r3, #0
  84840. 8022622: d00a beq.n 802263a <dhcp_coarse_tmr+0x8e>
  84841. 8022624: 683b ldr r3, [r7, #0]
  84842. 8022626: 89db ldrh r3, [r3, #14]
  84843. 8022628: 1e5a subs r2, r3, #1
  84844. 802262a: b291 uxth r1, r2
  84845. 802262c: 683a ldr r2, [r7, #0]
  84846. 802262e: 81d1 strh r1, [r2, #14]
  84847. 8022630: 2b01 cmp r3, #1
  84848. 8022632: d102 bne.n 802263a <dhcp_coarse_tmr+0x8e>
  84849. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t1 timeout\n"));
  84850. /* this clients' renewal timeout triggered */
  84851. dhcp_t1_timeout(netif);
  84852. 8022634: 6878 ldr r0, [r7, #4]
  84853. 8022636: f000 f888 bl 802274a <dhcp_t1_timeout>
  84854. NETIF_FOREACH(netif) {
  84855. 802263a: 687b ldr r3, [r7, #4]
  84856. 802263c: 681b ldr r3, [r3, #0]
  84857. 802263e: 607b str r3, [r7, #4]
  84858. 8022640: 687b ldr r3, [r7, #4]
  84859. 8022642: 2b00 cmp r3, #0
  84860. 8022644: d1b9 bne.n 80225ba <dhcp_coarse_tmr+0xe>
  84861. }
  84862. }
  84863. }
  84864. }
  84865. 8022646: bf00 nop
  84866. 8022648: bf00 nop
  84867. 802264a: 3708 adds r7, #8
  84868. 802264c: 46bd mov sp, r7
  84869. 802264e: bd80 pop {r7, pc}
  84870. 8022650: 2402af4c .word 0x2402af4c
  84871. 08022654 <dhcp_fine_tmr>:
  84872. * A DHCP server is expected to respond within a short period of time.
  84873. * This timer checks whether an outstanding DHCP request is timed out.
  84874. */
  84875. void
  84876. dhcp_fine_tmr(void)
  84877. {
  84878. 8022654: b580 push {r7, lr}
  84879. 8022656: b082 sub sp, #8
  84880. 8022658: af00 add r7, sp, #0
  84881. struct netif *netif;
  84882. /* loop through netif's */
  84883. NETIF_FOREACH(netif) {
  84884. 802265a: 4b16 ldr r3, [pc, #88] @ (80226b4 <dhcp_fine_tmr+0x60>)
  84885. 802265c: 681b ldr r3, [r3, #0]
  84886. 802265e: 607b str r3, [r7, #4]
  84887. 8022660: e020 b.n 80226a4 <dhcp_fine_tmr+0x50>
  84888. struct dhcp *dhcp = netif_dhcp_data(netif);
  84889. 8022662: 687b ldr r3, [r7, #4]
  84890. 8022664: 6a5b ldr r3, [r3, #36] @ 0x24
  84891. 8022666: 603b str r3, [r7, #0]
  84892. /* only act on DHCP configured interfaces */
  84893. if (dhcp != NULL) {
  84894. 8022668: 683b ldr r3, [r7, #0]
  84895. 802266a: 2b00 cmp r3, #0
  84896. 802266c: d017 beq.n 802269e <dhcp_fine_tmr+0x4a>
  84897. /* timer is active (non zero), and is about to trigger now */
  84898. if (dhcp->request_timeout > 1) {
  84899. 802266e: 683b ldr r3, [r7, #0]
  84900. 8022670: 891b ldrh r3, [r3, #8]
  84901. 8022672: 2b01 cmp r3, #1
  84902. 8022674: d906 bls.n 8022684 <dhcp_fine_tmr+0x30>
  84903. dhcp->request_timeout--;
  84904. 8022676: 683b ldr r3, [r7, #0]
  84905. 8022678: 891b ldrh r3, [r3, #8]
  84906. 802267a: 3b01 subs r3, #1
  84907. 802267c: b29a uxth r2, r3
  84908. 802267e: 683b ldr r3, [r7, #0]
  84909. 8022680: 811a strh r2, [r3, #8]
  84910. 8022682: e00c b.n 802269e <dhcp_fine_tmr+0x4a>
  84911. } else if (dhcp->request_timeout == 1) {
  84912. 8022684: 683b ldr r3, [r7, #0]
  84913. 8022686: 891b ldrh r3, [r3, #8]
  84914. 8022688: 2b01 cmp r3, #1
  84915. 802268a: d108 bne.n 802269e <dhcp_fine_tmr+0x4a>
  84916. dhcp->request_timeout--;
  84917. 802268c: 683b ldr r3, [r7, #0]
  84918. 802268e: 891b ldrh r3, [r3, #8]
  84919. 8022690: 3b01 subs r3, #1
  84920. 8022692: b29a uxth r2, r3
  84921. 8022694: 683b ldr r3, [r7, #0]
  84922. 8022696: 811a strh r2, [r3, #8]
  84923. /* { dhcp->request_timeout == 0 } */
  84924. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_fine_tmr(): request timeout\n"));
  84925. /* this client's request timeout triggered */
  84926. dhcp_timeout(netif);
  84927. 8022698: 6878 ldr r0, [r7, #4]
  84928. 802269a: f000 f80d bl 80226b8 <dhcp_timeout>
  84929. NETIF_FOREACH(netif) {
  84930. 802269e: 687b ldr r3, [r7, #4]
  84931. 80226a0: 681b ldr r3, [r3, #0]
  84932. 80226a2: 607b str r3, [r7, #4]
  84933. 80226a4: 687b ldr r3, [r7, #4]
  84934. 80226a6: 2b00 cmp r3, #0
  84935. 80226a8: d1db bne.n 8022662 <dhcp_fine_tmr+0xe>
  84936. }
  84937. }
  84938. }
  84939. }
  84940. 80226aa: bf00 nop
  84941. 80226ac: bf00 nop
  84942. 80226ae: 3708 adds r7, #8
  84943. 80226b0: 46bd mov sp, r7
  84944. 80226b2: bd80 pop {r7, pc}
  84945. 80226b4: 2402af4c .word 0x2402af4c
  84946. 080226b8 <dhcp_timeout>:
  84947. *
  84948. * @param netif the netif under DHCP control
  84949. */
  84950. static void
  84951. dhcp_timeout(struct netif *netif)
  84952. {
  84953. 80226b8: b580 push {r7, lr}
  84954. 80226ba: b084 sub sp, #16
  84955. 80226bc: af00 add r7, sp, #0
  84956. 80226be: 6078 str r0, [r7, #4]
  84957. struct dhcp *dhcp = netif_dhcp_data(netif);
  84958. 80226c0: 687b ldr r3, [r7, #4]
  84959. 80226c2: 6a5b ldr r3, [r3, #36] @ 0x24
  84960. 80226c4: 60fb str r3, [r7, #12]
  84961. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout()\n"));
  84962. /* back-off period has passed, or server selection timed out */
  84963. if ((dhcp->state == DHCP_STATE_BACKING_OFF) || (dhcp->state == DHCP_STATE_SELECTING)) {
  84964. 80226c6: 68fb ldr r3, [r7, #12]
  84965. 80226c8: 795b ldrb r3, [r3, #5]
  84966. 80226ca: 2b0c cmp r3, #12
  84967. 80226cc: d003 beq.n 80226d6 <dhcp_timeout+0x1e>
  84968. 80226ce: 68fb ldr r3, [r7, #12]
  84969. 80226d0: 795b ldrb r3, [r3, #5]
  84970. 80226d2: 2b06 cmp r3, #6
  84971. 80226d4: d103 bne.n 80226de <dhcp_timeout+0x26>
  84972. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout(): restarting discovery\n"));
  84973. dhcp_discover(netif);
  84974. 80226d6: 6878 ldr r0, [r7, #4]
  84975. 80226d8: f000 fa58 bl 8022b8c <dhcp_discover>
  84976. dhcp_reboot(netif);
  84977. } else {
  84978. dhcp_discover(netif);
  84979. }
  84980. }
  84981. }
  84982. 80226dc: e031 b.n 8022742 <dhcp_timeout+0x8a>
  84983. } else if (dhcp->state == DHCP_STATE_REQUESTING) {
  84984. 80226de: 68fb ldr r3, [r7, #12]
  84985. 80226e0: 795b ldrb r3, [r3, #5]
  84986. 80226e2: 2b01 cmp r3, #1
  84987. 80226e4: d10e bne.n 8022704 <dhcp_timeout+0x4c>
  84988. if (dhcp->tries <= 5) {
  84989. 80226e6: 68fb ldr r3, [r7, #12]
  84990. 80226e8: 799b ldrb r3, [r3, #6]
  84991. 80226ea: 2b05 cmp r3, #5
  84992. 80226ec: d803 bhi.n 80226f6 <dhcp_timeout+0x3e>
  84993. dhcp_select(netif);
  84994. 80226ee: 6878 ldr r0, [r7, #4]
  84995. 80226f0: f7ff fe60 bl 80223b4 <dhcp_select>
  84996. }
  84997. 80226f4: e025 b.n 8022742 <dhcp_timeout+0x8a>
  84998. dhcp_release_and_stop(netif);
  84999. 80226f6: 6878 ldr r0, [r7, #4]
  85000. 80226f8: f000 fdae bl 8023258 <dhcp_release_and_stop>
  85001. dhcp_start(netif);
  85002. 80226fc: 6878 ldr r0, [r7, #4]
  85003. 80226fe: f000 f8e7 bl 80228d0 <dhcp_start>
  85004. }
  85005. 8022702: e01e b.n 8022742 <dhcp_timeout+0x8a>
  85006. } else if (dhcp->state == DHCP_STATE_CHECKING) {
  85007. 8022704: 68fb ldr r3, [r7, #12]
  85008. 8022706: 795b ldrb r3, [r3, #5]
  85009. 8022708: 2b08 cmp r3, #8
  85010. 802270a: d10b bne.n 8022724 <dhcp_timeout+0x6c>
  85011. if (dhcp->tries <= 1) {
  85012. 802270c: 68fb ldr r3, [r7, #12]
  85013. 802270e: 799b ldrb r3, [r3, #6]
  85014. 8022710: 2b01 cmp r3, #1
  85015. 8022712: d803 bhi.n 802271c <dhcp_timeout+0x64>
  85016. dhcp_check(netif);
  85017. 8022714: 6878 ldr r0, [r7, #4]
  85018. 8022716: f7ff fdf3 bl 8022300 <dhcp_check>
  85019. }
  85020. 802271a: e012 b.n 8022742 <dhcp_timeout+0x8a>
  85021. dhcp_bind(netif);
  85022. 802271c: 6878 ldr r0, [r7, #4]
  85023. 802271e: f000 fad7 bl 8022cd0 <dhcp_bind>
  85024. }
  85025. 8022722: e00e b.n 8022742 <dhcp_timeout+0x8a>
  85026. } else if (dhcp->state == DHCP_STATE_REBOOTING) {
  85027. 8022724: 68fb ldr r3, [r7, #12]
  85028. 8022726: 795b ldrb r3, [r3, #5]
  85029. 8022728: 2b03 cmp r3, #3
  85030. 802272a: d10a bne.n 8022742 <dhcp_timeout+0x8a>
  85031. if (dhcp->tries < REBOOT_TRIES) {
  85032. 802272c: 68fb ldr r3, [r7, #12]
  85033. 802272e: 799b ldrb r3, [r3, #6]
  85034. 8022730: 2b01 cmp r3, #1
  85035. 8022732: d803 bhi.n 802273c <dhcp_timeout+0x84>
  85036. dhcp_reboot(netif);
  85037. 8022734: 6878 ldr r0, [r7, #4]
  85038. 8022736: f000 fcdb bl 80230f0 <dhcp_reboot>
  85039. }
  85040. 802273a: e002 b.n 8022742 <dhcp_timeout+0x8a>
  85041. dhcp_discover(netif);
  85042. 802273c: 6878 ldr r0, [r7, #4]
  85043. 802273e: f000 fa25 bl 8022b8c <dhcp_discover>
  85044. }
  85045. 8022742: bf00 nop
  85046. 8022744: 3710 adds r7, #16
  85047. 8022746: 46bd mov sp, r7
  85048. 8022748: bd80 pop {r7, pc}
  85049. 0802274a <dhcp_t1_timeout>:
  85050. *
  85051. * @param netif the netif under DHCP control
  85052. */
  85053. static void
  85054. dhcp_t1_timeout(struct netif *netif)
  85055. {
  85056. 802274a: b580 push {r7, lr}
  85057. 802274c: b084 sub sp, #16
  85058. 802274e: af00 add r7, sp, #0
  85059. 8022750: 6078 str r0, [r7, #4]
  85060. struct dhcp *dhcp = netif_dhcp_data(netif);
  85061. 8022752: 687b ldr r3, [r7, #4]
  85062. 8022754: 6a5b ldr r3, [r3, #36] @ 0x24
  85063. 8022756: 60fb str r3, [r7, #12]
  85064. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_t1_timeout()\n"));
  85065. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85066. 8022758: 68fb ldr r3, [r7, #12]
  85067. 802275a: 795b ldrb r3, [r3, #5]
  85068. 802275c: 2b01 cmp r3, #1
  85069. 802275e: d007 beq.n 8022770 <dhcp_t1_timeout+0x26>
  85070. 8022760: 68fb ldr r3, [r7, #12]
  85071. 8022762: 795b ldrb r3, [r3, #5]
  85072. 8022764: 2b0a cmp r3, #10
  85073. 8022766: d003 beq.n 8022770 <dhcp_t1_timeout+0x26>
  85074. (dhcp->state == DHCP_STATE_RENEWING)) {
  85075. 8022768: 68fb ldr r3, [r7, #12]
  85076. 802276a: 795b ldrb r3, [r3, #5]
  85077. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85078. 802276c: 2b05 cmp r3, #5
  85079. 802276e: d117 bne.n 80227a0 <dhcp_t1_timeout+0x56>
  85080. * eventually time-out if renew tries fail. */
  85081. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  85082. ("dhcp_t1_timeout(): must renew\n"));
  85083. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  85084. DHCP_STATE_RENEWING, not DHCP_STATE_BOUND */
  85085. dhcp_renew(netif);
  85086. 8022770: 6878 ldr r0, [r7, #4]
  85087. 8022772: f000 fb87 bl 8022e84 <dhcp_renew>
  85088. /* Calculate next timeout */
  85089. if (((dhcp->t2_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  85090. 8022776: 68fb ldr r3, [r7, #12]
  85091. 8022778: 899b ldrh r3, [r3, #12]
  85092. 802277a: 461a mov r2, r3
  85093. 802277c: 68fb ldr r3, [r7, #12]
  85094. 802277e: 8a5b ldrh r3, [r3, #18]
  85095. 8022780: 1ad3 subs r3, r2, r3
  85096. 8022782: 2b01 cmp r3, #1
  85097. 8022784: dd0c ble.n 80227a0 <dhcp_t1_timeout+0x56>
  85098. dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2);
  85099. 8022786: 68fb ldr r3, [r7, #12]
  85100. 8022788: 899b ldrh r3, [r3, #12]
  85101. 802278a: 461a mov r2, r3
  85102. 802278c: 68fb ldr r3, [r7, #12]
  85103. 802278e: 8a5b ldrh r3, [r3, #18]
  85104. 8022790: 1ad3 subs r3, r2, r3
  85105. 8022792: 2b00 cmp r3, #0
  85106. 8022794: da00 bge.n 8022798 <dhcp_t1_timeout+0x4e>
  85107. 8022796: 3301 adds r3, #1
  85108. 8022798: 105b asrs r3, r3, #1
  85109. 802279a: b29a uxth r2, r3
  85110. 802279c: 68fb ldr r3, [r7, #12]
  85111. 802279e: 81da strh r2, [r3, #14]
  85112. }
  85113. }
  85114. }
  85115. 80227a0: bf00 nop
  85116. 80227a2: 3710 adds r7, #16
  85117. 80227a4: 46bd mov sp, r7
  85118. 80227a6: bd80 pop {r7, pc}
  85119. 080227a8 <dhcp_t2_timeout>:
  85120. *
  85121. * @param netif the netif under DHCP control
  85122. */
  85123. static void
  85124. dhcp_t2_timeout(struct netif *netif)
  85125. {
  85126. 80227a8: b580 push {r7, lr}
  85127. 80227aa: b084 sub sp, #16
  85128. 80227ac: af00 add r7, sp, #0
  85129. 80227ae: 6078 str r0, [r7, #4]
  85130. struct dhcp *dhcp = netif_dhcp_data(netif);
  85131. 80227b0: 687b ldr r3, [r7, #4]
  85132. 80227b2: 6a5b ldr r3, [r3, #36] @ 0x24
  85133. 80227b4: 60fb str r3, [r7, #12]
  85134. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout()\n"));
  85135. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85136. 80227b6: 68fb ldr r3, [r7, #12]
  85137. 80227b8: 795b ldrb r3, [r3, #5]
  85138. 80227ba: 2b01 cmp r3, #1
  85139. 80227bc: d00b beq.n 80227d6 <dhcp_t2_timeout+0x2e>
  85140. 80227be: 68fb ldr r3, [r7, #12]
  85141. 80227c0: 795b ldrb r3, [r3, #5]
  85142. 80227c2: 2b0a cmp r3, #10
  85143. 80227c4: d007 beq.n 80227d6 <dhcp_t2_timeout+0x2e>
  85144. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  85145. 80227c6: 68fb ldr r3, [r7, #12]
  85146. 80227c8: 795b ldrb r3, [r3, #5]
  85147. if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) ||
  85148. 80227ca: 2b05 cmp r3, #5
  85149. 80227cc: d003 beq.n 80227d6 <dhcp_t2_timeout+0x2e>
  85150. (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) {
  85151. 80227ce: 68fb ldr r3, [r7, #12]
  85152. 80227d0: 795b ldrb r3, [r3, #5]
  85153. 80227d2: 2b04 cmp r3, #4
  85154. 80227d4: d117 bne.n 8022806 <dhcp_t2_timeout+0x5e>
  85155. /* just retry to rebind */
  85156. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE,
  85157. ("dhcp_t2_timeout(): must rebind\n"));
  85158. /* This slightly different to RFC2131: DHCPREQUEST will be sent from state
  85159. DHCP_STATE_REBINDING, not DHCP_STATE_BOUND */
  85160. dhcp_rebind(netif);
  85161. 80227d6: 6878 ldr r0, [r7, #4]
  85162. 80227d8: f000 fbf0 bl 8022fbc <dhcp_rebind>
  85163. /* Calculate next timeout */
  85164. if (((dhcp->t0_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) {
  85165. 80227dc: 68fb ldr r3, [r7, #12]
  85166. 80227de: 8a9b ldrh r3, [r3, #20]
  85167. 80227e0: 461a mov r2, r3
  85168. 80227e2: 68fb ldr r3, [r7, #12]
  85169. 80227e4: 8a5b ldrh r3, [r3, #18]
  85170. 80227e6: 1ad3 subs r3, r2, r3
  85171. 80227e8: 2b01 cmp r3, #1
  85172. 80227ea: dd0c ble.n 8022806 <dhcp_t2_timeout+0x5e>
  85173. dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2);
  85174. 80227ec: 68fb ldr r3, [r7, #12]
  85175. 80227ee: 8a9b ldrh r3, [r3, #20]
  85176. 80227f0: 461a mov r2, r3
  85177. 80227f2: 68fb ldr r3, [r7, #12]
  85178. 80227f4: 8a5b ldrh r3, [r3, #18]
  85179. 80227f6: 1ad3 subs r3, r2, r3
  85180. 80227f8: 2b00 cmp r3, #0
  85181. 80227fa: da00 bge.n 80227fe <dhcp_t2_timeout+0x56>
  85182. 80227fc: 3301 adds r3, #1
  85183. 80227fe: 105b asrs r3, r3, #1
  85184. 8022800: b29a uxth r2, r3
  85185. 8022802: 68fb ldr r3, [r7, #12]
  85186. 8022804: 821a strh r2, [r3, #16]
  85187. }
  85188. }
  85189. }
  85190. 8022806: bf00 nop
  85191. 8022808: 3710 adds r7, #16
  85192. 802280a: 46bd mov sp, r7
  85193. 802280c: bd80 pop {r7, pc}
  85194. ...
  85195. 08022810 <dhcp_handle_ack>:
  85196. *
  85197. * @param netif the netif under DHCP control
  85198. */
  85199. static void
  85200. dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in)
  85201. {
  85202. 8022810: b580 push {r7, lr}
  85203. 8022812: b084 sub sp, #16
  85204. 8022814: af00 add r7, sp, #0
  85205. 8022816: 6078 str r0, [r7, #4]
  85206. 8022818: 6039 str r1, [r7, #0]
  85207. struct dhcp *dhcp = netif_dhcp_data(netif);
  85208. 802281a: 687b ldr r3, [r7, #4]
  85209. 802281c: 6a5b ldr r3, [r3, #36] @ 0x24
  85210. 802281e: 60fb str r3, [r7, #12]
  85211. #if LWIP_DHCP_GET_NTP_SRV
  85212. ip4_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS];
  85213. #endif
  85214. /* clear options we might not get from the ACK */
  85215. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  85216. 8022820: 68fb ldr r3, [r7, #12]
  85217. 8022822: 2200 movs r2, #0
  85218. 8022824: 621a str r2, [r3, #32]
  85219. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  85220. 8022826: 68fb ldr r3, [r7, #12]
  85221. 8022828: 2200 movs r2, #0
  85222. 802282a: 625a str r2, [r3, #36] @ 0x24
  85223. #if LWIP_DHCP_BOOTP_FILE
  85224. ip4_addr_set_zero(&dhcp->offered_si_addr);
  85225. #endif /* LWIP_DHCP_BOOTP_FILE */
  85226. /* lease time given? */
  85227. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_LEASE_TIME)) {
  85228. 802282c: 4b26 ldr r3, [pc, #152] @ (80228c8 <dhcp_handle_ack+0xb8>)
  85229. 802282e: 78db ldrb r3, [r3, #3]
  85230. 8022830: 2b00 cmp r3, #0
  85231. 8022832: d003 beq.n 802283c <dhcp_handle_ack+0x2c>
  85232. /* remember offered lease time */
  85233. dhcp->offered_t0_lease = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_LEASE_TIME);
  85234. 8022834: 4b25 ldr r3, [pc, #148] @ (80228cc <dhcp_handle_ack+0xbc>)
  85235. 8022836: 68da ldr r2, [r3, #12]
  85236. 8022838: 68fb ldr r3, [r7, #12]
  85237. 802283a: 629a str r2, [r3, #40] @ 0x28
  85238. }
  85239. /* renewal period given? */
  85240. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T1)) {
  85241. 802283c: 4b22 ldr r3, [pc, #136] @ (80228c8 <dhcp_handle_ack+0xb8>)
  85242. 802283e: 791b ldrb r3, [r3, #4]
  85243. 8022840: 2b00 cmp r3, #0
  85244. 8022842: d004 beq.n 802284e <dhcp_handle_ack+0x3e>
  85245. /* remember given renewal period */
  85246. dhcp->offered_t1_renew = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T1);
  85247. 8022844: 4b21 ldr r3, [pc, #132] @ (80228cc <dhcp_handle_ack+0xbc>)
  85248. 8022846: 691a ldr r2, [r3, #16]
  85249. 8022848: 68fb ldr r3, [r7, #12]
  85250. 802284a: 62da str r2, [r3, #44] @ 0x2c
  85251. 802284c: e004 b.n 8022858 <dhcp_handle_ack+0x48>
  85252. } else {
  85253. /* calculate safe periods for renewal */
  85254. dhcp->offered_t1_renew = dhcp->offered_t0_lease / 2;
  85255. 802284e: 68fb ldr r3, [r7, #12]
  85256. 8022850: 6a9b ldr r3, [r3, #40] @ 0x28
  85257. 8022852: 085a lsrs r2, r3, #1
  85258. 8022854: 68fb ldr r3, [r7, #12]
  85259. 8022856: 62da str r2, [r3, #44] @ 0x2c
  85260. }
  85261. /* renewal period given? */
  85262. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T2)) {
  85263. 8022858: 4b1b ldr r3, [pc, #108] @ (80228c8 <dhcp_handle_ack+0xb8>)
  85264. 802285a: 795b ldrb r3, [r3, #5]
  85265. 802285c: 2b00 cmp r3, #0
  85266. 802285e: d004 beq.n 802286a <dhcp_handle_ack+0x5a>
  85267. /* remember given rebind period */
  85268. dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2);
  85269. 8022860: 4b1a ldr r3, [pc, #104] @ (80228cc <dhcp_handle_ack+0xbc>)
  85270. 8022862: 695a ldr r2, [r3, #20]
  85271. 8022864: 68fb ldr r3, [r7, #12]
  85272. 8022866: 631a str r2, [r3, #48] @ 0x30
  85273. 8022868: e007 b.n 802287a <dhcp_handle_ack+0x6a>
  85274. } else {
  85275. /* calculate safe periods for rebinding (offered_t0_lease * 0.875 -> 87.5%)*/
  85276. dhcp->offered_t2_rebind = (dhcp->offered_t0_lease * 7U) / 8U;
  85277. 802286a: 68fb ldr r3, [r7, #12]
  85278. 802286c: 6a9a ldr r2, [r3, #40] @ 0x28
  85279. 802286e: 4613 mov r3, r2
  85280. 8022870: 00db lsls r3, r3, #3
  85281. 8022872: 1a9b subs r3, r3, r2
  85282. 8022874: 08da lsrs r2, r3, #3
  85283. 8022876: 68fb ldr r3, [r7, #12]
  85284. 8022878: 631a str r2, [r3, #48] @ 0x30
  85285. }
  85286. /* (y)our internet address */
  85287. ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr);
  85288. 802287a: 683b ldr r3, [r7, #0]
  85289. 802287c: 691a ldr r2, [r3, #16]
  85290. 802287e: 68fb ldr r3, [r7, #12]
  85291. 8022880: 61da str r2, [r3, #28]
  85292. boot file name copied in dhcp_parse_reply if not overloaded */
  85293. ip4_addr_copy(dhcp->offered_si_addr, msg_in->siaddr);
  85294. #endif /* LWIP_DHCP_BOOTP_FILE */
  85295. /* subnet mask given? */
  85296. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)) {
  85297. 8022882: 4b11 ldr r3, [pc, #68] @ (80228c8 <dhcp_handle_ack+0xb8>)
  85298. 8022884: 799b ldrb r3, [r3, #6]
  85299. 8022886: 2b00 cmp r3, #0
  85300. 8022888: d00b beq.n 80228a2 <dhcp_handle_ack+0x92>
  85301. /* remember given subnet mask */
  85302. ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)));
  85303. 802288a: 4b10 ldr r3, [pc, #64] @ (80228cc <dhcp_handle_ack+0xbc>)
  85304. 802288c: 699b ldr r3, [r3, #24]
  85305. 802288e: 4618 mov r0, r3
  85306. 8022890: f7f6 fd4f bl 8019332 <lwip_htonl>
  85307. 8022894: 4602 mov r2, r0
  85308. 8022896: 68fb ldr r3, [r7, #12]
  85309. 8022898: 621a str r2, [r3, #32]
  85310. dhcp->subnet_mask_given = 1;
  85311. 802289a: 68fb ldr r3, [r7, #12]
  85312. 802289c: 2201 movs r2, #1
  85313. 802289e: 71da strb r2, [r3, #7]
  85314. 80228a0: e002 b.n 80228a8 <dhcp_handle_ack+0x98>
  85315. } else {
  85316. dhcp->subnet_mask_given = 0;
  85317. 80228a2: 68fb ldr r3, [r7, #12]
  85318. 80228a4: 2200 movs r2, #0
  85319. 80228a6: 71da strb r2, [r3, #7]
  85320. }
  85321. /* gateway router */
  85322. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_ROUTER)) {
  85323. 80228a8: 4b07 ldr r3, [pc, #28] @ (80228c8 <dhcp_handle_ack+0xb8>)
  85324. 80228aa: 79db ldrb r3, [r3, #7]
  85325. 80228ac: 2b00 cmp r3, #0
  85326. 80228ae: d007 beq.n 80228c0 <dhcp_handle_ack+0xb0>
  85327. ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_ROUTER)));
  85328. 80228b0: 4b06 ldr r3, [pc, #24] @ (80228cc <dhcp_handle_ack+0xbc>)
  85329. 80228b2: 69db ldr r3, [r3, #28]
  85330. 80228b4: 4618 mov r0, r3
  85331. 80228b6: f7f6 fd3c bl 8019332 <lwip_htonl>
  85332. 80228ba: 4602 mov r2, r0
  85333. 80228bc: 68fb ldr r3, [r7, #12]
  85334. 80228be: 625a str r2, [r3, #36] @ 0x24
  85335. ip_addr_t dns_addr;
  85336. ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n)));
  85337. dns_setserver(n, &dns_addr);
  85338. }
  85339. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  85340. }
  85341. 80228c0: bf00 nop
  85342. 80228c2: 3710 adds r7, #16
  85343. 80228c4: 46bd mov sp, r7
  85344. 80228c6: bd80 pop {r7, pc}
  85345. 80228c8: 2402afdc .word 0x2402afdc
  85346. 80228cc: 2402afbc .word 0x2402afbc
  85347. 080228d0 <dhcp_start>:
  85348. * - ERR_OK - No error
  85349. * - ERR_MEM - Out of memory
  85350. */
  85351. err_t
  85352. dhcp_start(struct netif *netif)
  85353. {
  85354. 80228d0: b580 push {r7, lr}
  85355. 80228d2: b084 sub sp, #16
  85356. 80228d4: af00 add r7, sp, #0
  85357. 80228d6: 6078 str r0, [r7, #4]
  85358. struct dhcp *dhcp;
  85359. err_t result;
  85360. LWIP_ASSERT_CORE_LOCKED();
  85361. 80228d8: f7ee f8d0 bl 8010a7c <sys_check_core_locking>
  85362. LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG;);
  85363. 80228dc: 687b ldr r3, [r7, #4]
  85364. 80228de: 2b00 cmp r3, #0
  85365. 80228e0: d109 bne.n 80228f6 <dhcp_start+0x26>
  85366. 80228e2: 4b37 ldr r3, [pc, #220] @ (80229c0 <dhcp_start+0xf0>)
  85367. 80228e4: f240 22e7 movw r2, #743 @ 0x2e7
  85368. 80228e8: 4936 ldr r1, [pc, #216] @ (80229c4 <dhcp_start+0xf4>)
  85369. 80228ea: 4837 ldr r0, [pc, #220] @ (80229c8 <dhcp_start+0xf8>)
  85370. 80228ec: f007 fc66 bl 802a1bc <iprintf>
  85371. 80228f0: f06f 030f mvn.w r3, #15
  85372. 80228f4: e060 b.n 80229b8 <dhcp_start+0xe8>
  85373. LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;);
  85374. 80228f6: 687b ldr r3, [r7, #4]
  85375. 80228f8: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  85376. 80228fc: f003 0301 and.w r3, r3, #1
  85377. 8022900: 2b00 cmp r3, #0
  85378. 8022902: d109 bne.n 8022918 <dhcp_start+0x48>
  85379. 8022904: 4b2e ldr r3, [pc, #184] @ (80229c0 <dhcp_start+0xf0>)
  85380. 8022906: f44f 723a mov.w r2, #744 @ 0x2e8
  85381. 802290a: 4930 ldr r1, [pc, #192] @ (80229cc <dhcp_start+0xfc>)
  85382. 802290c: 482e ldr r0, [pc, #184] @ (80229c8 <dhcp_start+0xf8>)
  85383. 802290e: f007 fc55 bl 802a1bc <iprintf>
  85384. 8022912: f06f 030f mvn.w r3, #15
  85385. 8022916: e04f b.n 80229b8 <dhcp_start+0xe8>
  85386. dhcp = netif_dhcp_data(netif);
  85387. 8022918: 687b ldr r3, [r7, #4]
  85388. 802291a: 6a5b ldr r3, [r3, #36] @ 0x24
  85389. 802291c: 60fb str r3, [r7, #12]
  85390. 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));
  85391. /* check MTU of the netif */
  85392. if (netif->mtu < DHCP_MAX_MSG_LEN_MIN_REQUIRED) {
  85393. 802291e: 687b ldr r3, [r7, #4]
  85394. 8022920: 8d1b ldrh r3, [r3, #40] @ 0x28
  85395. 8022922: f5b3 7f10 cmp.w r3, #576 @ 0x240
  85396. 8022926: d202 bcs.n 802292e <dhcp_start+0x5e>
  85397. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): Cannot use this netif with DHCP: MTU is too small\n"));
  85398. return ERR_MEM;
  85399. 8022928: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  85400. 802292c: e044 b.n 80229b8 <dhcp_start+0xe8>
  85401. }
  85402. /* no DHCP client attached yet? */
  85403. if (dhcp == NULL) {
  85404. 802292e: 68fb ldr r3, [r7, #12]
  85405. 8022930: 2b00 cmp r3, #0
  85406. 8022932: d10d bne.n 8022950 <dhcp_start+0x80>
  85407. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): mallocing new DHCP client\n"));
  85408. dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp));
  85409. 8022934: 2034 movs r0, #52 @ 0x34
  85410. 8022936: f7f7 f8c9 bl 8019acc <mem_malloc>
  85411. 802293a: 60f8 str r0, [r7, #12]
  85412. if (dhcp == NULL) {
  85413. 802293c: 68fb ldr r3, [r7, #12]
  85414. 802293e: 2b00 cmp r3, #0
  85415. 8022940: d102 bne.n 8022948 <dhcp_start+0x78>
  85416. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): could not allocate dhcp\n"));
  85417. return ERR_MEM;
  85418. 8022942: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  85419. 8022946: e037 b.n 80229b8 <dhcp_start+0xe8>
  85420. }
  85421. /* store this dhcp client in the netif */
  85422. netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp);
  85423. 8022948: 687b ldr r3, [r7, #4]
  85424. 802294a: 68fa ldr r2, [r7, #12]
  85425. 802294c: 625a str r2, [r3, #36] @ 0x24
  85426. 802294e: e005 b.n 802295c <dhcp_start+0x8c>
  85427. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp"));
  85428. /* already has DHCP client attached */
  85429. } else {
  85430. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(): restarting DHCP configuration\n"));
  85431. if (dhcp->pcb_allocated != 0) {
  85432. 8022950: 68fb ldr r3, [r7, #12]
  85433. 8022952: 791b ldrb r3, [r3, #4]
  85434. 8022954: 2b00 cmp r3, #0
  85435. 8022956: d001 beq.n 802295c <dhcp_start+0x8c>
  85436. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  85437. 8022958: f7ff fc8e bl 8022278 <dhcp_dec_pcb_refcount>
  85438. }
  85439. /* dhcp is cleared below, no need to reset flag*/
  85440. }
  85441. /* clear data structure */
  85442. memset(dhcp, 0, sizeof(struct dhcp));
  85443. 802295c: 2234 movs r2, #52 @ 0x34
  85444. 802295e: 2100 movs r1, #0
  85445. 8022960: 68f8 ldr r0, [r7, #12]
  85446. 8022962: f007 fdbd bl 802a4e0 <memset>
  85447. /* dhcp_set_state(&dhcp, DHCP_STATE_OFF); */
  85448. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): starting DHCP configuration\n"));
  85449. if (dhcp_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP PCB is allocated */
  85450. 8022966: f7ff fc35 bl 80221d4 <dhcp_inc_pcb_refcount>
  85451. 802296a: 4603 mov r3, r0
  85452. 802296c: 2b00 cmp r3, #0
  85453. 802296e: d002 beq.n 8022976 <dhcp_start+0xa6>
  85454. return ERR_MEM;
  85455. 8022970: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  85456. 8022974: e020 b.n 80229b8 <dhcp_start+0xe8>
  85457. }
  85458. dhcp->pcb_allocated = 1;
  85459. 8022976: 68fb ldr r3, [r7, #12]
  85460. 8022978: 2201 movs r2, #1
  85461. 802297a: 711a strb r2, [r3, #4]
  85462. if (!netif_is_link_up(netif)) {
  85463. 802297c: 687b ldr r3, [r7, #4]
  85464. 802297e: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  85465. 8022982: f003 0304 and.w r3, r3, #4
  85466. 8022986: 2b00 cmp r3, #0
  85467. 8022988: d105 bne.n 8022996 <dhcp_start+0xc6>
  85468. /* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */
  85469. dhcp_set_state(dhcp, DHCP_STATE_INIT);
  85470. 802298a: 2102 movs r1, #2
  85471. 802298c: 68f8 ldr r0, [r7, #12]
  85472. 802298e: f000 fd0a bl 80233a6 <dhcp_set_state>
  85473. return ERR_OK;
  85474. 8022992: 2300 movs r3, #0
  85475. 8022994: e010 b.n 80229b8 <dhcp_start+0xe8>
  85476. }
  85477. /* (re)start the DHCP negotiation */
  85478. result = dhcp_discover(netif);
  85479. 8022996: 6878 ldr r0, [r7, #4]
  85480. 8022998: f000 f8f8 bl 8022b8c <dhcp_discover>
  85481. 802299c: 4603 mov r3, r0
  85482. 802299e: 72fb strb r3, [r7, #11]
  85483. if (result != ERR_OK) {
  85484. 80229a0: f997 300b ldrsb.w r3, [r7, #11]
  85485. 80229a4: 2b00 cmp r3, #0
  85486. 80229a6: d005 beq.n 80229b4 <dhcp_start+0xe4>
  85487. /* free resources allocated above */
  85488. dhcp_release_and_stop(netif);
  85489. 80229a8: 6878 ldr r0, [r7, #4]
  85490. 80229aa: f000 fc55 bl 8023258 <dhcp_release_and_stop>
  85491. return ERR_MEM;
  85492. 80229ae: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  85493. 80229b2: e001 b.n 80229b8 <dhcp_start+0xe8>
  85494. }
  85495. return result;
  85496. 80229b4: f997 300b ldrsb.w r3, [r7, #11]
  85497. }
  85498. 80229b8: 4618 mov r0, r3
  85499. 80229ba: 3710 adds r7, #16
  85500. 80229bc: 46bd mov sp, r7
  85501. 80229be: bd80 pop {r7, pc}
  85502. 80229c0: 080306e8 .word 0x080306e8
  85503. 80229c4: 080307cc .word 0x080307cc
  85504. 80229c8: 08030748 .word 0x08030748
  85505. 80229cc: 08030810 .word 0x08030810
  85506. 080229d0 <dhcp_network_changed>:
  85507. * This enters the REBOOTING state to verify that the currently bound
  85508. * address is still valid.
  85509. */
  85510. void
  85511. dhcp_network_changed(struct netif *netif)
  85512. {
  85513. 80229d0: b580 push {r7, lr}
  85514. 80229d2: b084 sub sp, #16
  85515. 80229d4: af00 add r7, sp, #0
  85516. 80229d6: 6078 str r0, [r7, #4]
  85517. struct dhcp *dhcp = netif_dhcp_data(netif);
  85518. 80229d8: 687b ldr r3, [r7, #4]
  85519. 80229da: 6a5b ldr r3, [r3, #36] @ 0x24
  85520. 80229dc: 60fb str r3, [r7, #12]
  85521. if (!dhcp) {
  85522. 80229de: 68fb ldr r3, [r7, #12]
  85523. 80229e0: 2b00 cmp r3, #0
  85524. 80229e2: d025 beq.n 8022a30 <dhcp_network_changed+0x60>
  85525. return;
  85526. }
  85527. switch (dhcp->state) {
  85528. 80229e4: 68fb ldr r3, [r7, #12]
  85529. 80229e6: 795b ldrb r3, [r3, #5]
  85530. 80229e8: 2b0a cmp r3, #10
  85531. 80229ea: d008 beq.n 80229fe <dhcp_network_changed+0x2e>
  85532. 80229ec: 2b0a cmp r3, #10
  85533. 80229ee: dc0d bgt.n 8022a0c <dhcp_network_changed+0x3c>
  85534. 80229f0: 2b00 cmp r3, #0
  85535. 80229f2: d01f beq.n 8022a34 <dhcp_network_changed+0x64>
  85536. 80229f4: 2b00 cmp r3, #0
  85537. 80229f6: db09 blt.n 8022a0c <dhcp_network_changed+0x3c>
  85538. 80229f8: 3b03 subs r3, #3
  85539. 80229fa: 2b02 cmp r3, #2
  85540. 80229fc: d806 bhi.n 8022a0c <dhcp_network_changed+0x3c>
  85541. case DHCP_STATE_REBINDING:
  85542. case DHCP_STATE_RENEWING:
  85543. case DHCP_STATE_BOUND:
  85544. case DHCP_STATE_REBOOTING:
  85545. dhcp->tries = 0;
  85546. 80229fe: 68fb ldr r3, [r7, #12]
  85547. 8022a00: 2200 movs r2, #0
  85548. 8022a02: 719a strb r2, [r3, #6]
  85549. dhcp_reboot(netif);
  85550. 8022a04: 6878 ldr r0, [r7, #4]
  85551. 8022a06: f000 fb73 bl 80230f0 <dhcp_reboot>
  85552. break;
  85553. 8022a0a: e014 b.n 8022a36 <dhcp_network_changed+0x66>
  85554. case DHCP_STATE_OFF:
  85555. /* stay off */
  85556. break;
  85557. default:
  85558. LWIP_ASSERT("invalid dhcp->state", dhcp->state <= DHCP_STATE_BACKING_OFF);
  85559. 8022a0c: 68fb ldr r3, [r7, #12]
  85560. 8022a0e: 795b ldrb r3, [r3, #5]
  85561. 8022a10: 2b0c cmp r3, #12
  85562. 8022a12: d906 bls.n 8022a22 <dhcp_network_changed+0x52>
  85563. 8022a14: 4b09 ldr r3, [pc, #36] @ (8022a3c <dhcp_network_changed+0x6c>)
  85564. 8022a16: f240 326d movw r2, #877 @ 0x36d
  85565. 8022a1a: 4909 ldr r1, [pc, #36] @ (8022a40 <dhcp_network_changed+0x70>)
  85566. 8022a1c: 4809 ldr r0, [pc, #36] @ (8022a44 <dhcp_network_changed+0x74>)
  85567. 8022a1e: f007 fbcd bl 802a1bc <iprintf>
  85568. autoip_stop(netif);
  85569. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  85570. }
  85571. #endif /* LWIP_DHCP_AUTOIP_COOP */
  85572. /* ensure we start with short timeouts, even if already discovering */
  85573. dhcp->tries = 0;
  85574. 8022a22: 68fb ldr r3, [r7, #12]
  85575. 8022a24: 2200 movs r2, #0
  85576. 8022a26: 719a strb r2, [r3, #6]
  85577. dhcp_discover(netif);
  85578. 8022a28: 6878 ldr r0, [r7, #4]
  85579. 8022a2a: f000 f8af bl 8022b8c <dhcp_discover>
  85580. break;
  85581. 8022a2e: e002 b.n 8022a36 <dhcp_network_changed+0x66>
  85582. return;
  85583. 8022a30: bf00 nop
  85584. 8022a32: e000 b.n 8022a36 <dhcp_network_changed+0x66>
  85585. break;
  85586. 8022a34: bf00 nop
  85587. }
  85588. }
  85589. 8022a36: 3710 adds r7, #16
  85590. 8022a38: 46bd mov sp, r7
  85591. 8022a3a: bd80 pop {r7, pc}
  85592. 8022a3c: 080306e8 .word 0x080306e8
  85593. 8022a40: 08030834 .word 0x08030834
  85594. 8022a44: 08030748 .word 0x08030748
  85595. 08022a48 <dhcp_arp_reply>:
  85596. * @param netif the network interface on which the reply was received
  85597. * @param addr The IP address we received a reply from
  85598. */
  85599. void
  85600. dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr)
  85601. {
  85602. 8022a48: b580 push {r7, lr}
  85603. 8022a4a: b084 sub sp, #16
  85604. 8022a4c: af00 add r7, sp, #0
  85605. 8022a4e: 6078 str r0, [r7, #4]
  85606. 8022a50: 6039 str r1, [r7, #0]
  85607. struct dhcp *dhcp;
  85608. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  85609. 8022a52: 687b ldr r3, [r7, #4]
  85610. 8022a54: 2b00 cmp r3, #0
  85611. 8022a56: d107 bne.n 8022a68 <dhcp_arp_reply+0x20>
  85612. 8022a58: 4b0e ldr r3, [pc, #56] @ (8022a94 <dhcp_arp_reply+0x4c>)
  85613. 8022a5a: f240 328b movw r2, #907 @ 0x38b
  85614. 8022a5e: 490e ldr r1, [pc, #56] @ (8022a98 <dhcp_arp_reply+0x50>)
  85615. 8022a60: 480e ldr r0, [pc, #56] @ (8022a9c <dhcp_arp_reply+0x54>)
  85616. 8022a62: f007 fbab bl 802a1bc <iprintf>
  85617. 8022a66: e012 b.n 8022a8e <dhcp_arp_reply+0x46>
  85618. dhcp = netif_dhcp_data(netif);
  85619. 8022a68: 687b ldr r3, [r7, #4]
  85620. 8022a6a: 6a5b ldr r3, [r3, #36] @ 0x24
  85621. 8022a6c: 60fb str r3, [r7, #12]
  85622. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_arp_reply()\n"));
  85623. /* is a DHCP client doing an ARP check? */
  85624. if ((dhcp != NULL) && (dhcp->state == DHCP_STATE_CHECKING)) {
  85625. 8022a6e: 68fb ldr r3, [r7, #12]
  85626. 8022a70: 2b00 cmp r3, #0
  85627. 8022a72: d00c beq.n 8022a8e <dhcp_arp_reply+0x46>
  85628. 8022a74: 68fb ldr r3, [r7, #12]
  85629. 8022a76: 795b ldrb r3, [r3, #5]
  85630. 8022a78: 2b08 cmp r3, #8
  85631. 8022a7a: d108 bne.n 8022a8e <dhcp_arp_reply+0x46>
  85632. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_arp_reply(): CHECKING, arp reply for 0x%08"X32_F"\n",
  85633. ip4_addr_get_u32(addr)));
  85634. /* did a host respond with the address we
  85635. were offered by the DHCP server? */
  85636. if (ip4_addr_cmp(addr, &dhcp->offered_ip_addr)) {
  85637. 8022a7c: 683b ldr r3, [r7, #0]
  85638. 8022a7e: 681a ldr r2, [r3, #0]
  85639. 8022a80: 68fb ldr r3, [r7, #12]
  85640. 8022a82: 69db ldr r3, [r3, #28]
  85641. 8022a84: 429a cmp r2, r3
  85642. 8022a86: d102 bne.n 8022a8e <dhcp_arp_reply+0x46>
  85643. /* we will not accept the offered address */
  85644. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING,
  85645. ("dhcp_arp_reply(): arp reply matched with offered address, declining\n"));
  85646. dhcp_decline(netif);
  85647. 8022a88: 6878 ldr r0, [r7, #4]
  85648. 8022a8a: f000 f809 bl 8022aa0 <dhcp_decline>
  85649. }
  85650. }
  85651. }
  85652. 8022a8e: 3710 adds r7, #16
  85653. 8022a90: 46bd mov sp, r7
  85654. 8022a92: bd80 pop {r7, pc}
  85655. 8022a94: 080306e8 .word 0x080306e8
  85656. 8022a98: 080307cc .word 0x080307cc
  85657. 8022a9c: 08030748 .word 0x08030748
  85658. 08022aa0 <dhcp_decline>:
  85659. *
  85660. * @param netif the netif under DHCP control
  85661. */
  85662. static err_t
  85663. dhcp_decline(struct netif *netif)
  85664. {
  85665. 8022aa0: b5b0 push {r4, r5, r7, lr}
  85666. 8022aa2: b08a sub sp, #40 @ 0x28
  85667. 8022aa4: af02 add r7, sp, #8
  85668. 8022aa6: 6078 str r0, [r7, #4]
  85669. struct dhcp *dhcp = netif_dhcp_data(netif);
  85670. 8022aa8: 687b ldr r3, [r7, #4]
  85671. 8022aaa: 6a5b ldr r3, [r3, #36] @ 0x24
  85672. 8022aac: 61bb str r3, [r7, #24]
  85673. u16_t msecs;
  85674. struct pbuf *p_out;
  85675. u16_t options_out_len;
  85676. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline()\n"));
  85677. dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF);
  85678. 8022aae: 210c movs r1, #12
  85679. 8022ab0: 69b8 ldr r0, [r7, #24]
  85680. 8022ab2: f000 fc78 bl 80233a6 <dhcp_set_state>
  85681. /* create and initialize the DHCP message header */
  85682. p_out = dhcp_create_msg(netif, dhcp, DHCP_DECLINE, &options_out_len);
  85683. 8022ab6: f107 030c add.w r3, r7, #12
  85684. 8022aba: 2204 movs r2, #4
  85685. 8022abc: 69b9 ldr r1, [r7, #24]
  85686. 8022abe: 6878 ldr r0, [r7, #4]
  85687. 8022ac0: f001 f90a bl 8023cd8 <dhcp_create_msg>
  85688. 8022ac4: 6178 str r0, [r7, #20]
  85689. if (p_out != NULL) {
  85690. 8022ac6: 697b ldr r3, [r7, #20]
  85691. 8022ac8: 2b00 cmp r3, #0
  85692. 8022aca: d035 beq.n 8022b38 <dhcp_decline+0x98>
  85693. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  85694. 8022acc: 697b ldr r3, [r7, #20]
  85695. 8022ace: 685b ldr r3, [r3, #4]
  85696. 8022ad0: 613b str r3, [r7, #16]
  85697. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  85698. 8022ad2: 89b8 ldrh r0, [r7, #12]
  85699. 8022ad4: 693b ldr r3, [r7, #16]
  85700. 8022ad6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85701. 8022ada: 2304 movs r3, #4
  85702. 8022adc: 2232 movs r2, #50 @ 0x32
  85703. 8022ade: f000 fc7d bl 80233dc <dhcp_option>
  85704. 8022ae2: 4603 mov r3, r0
  85705. 8022ae4: 81bb strh r3, [r7, #12]
  85706. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  85707. 8022ae6: 89bc ldrh r4, [r7, #12]
  85708. 8022ae8: 693b ldr r3, [r7, #16]
  85709. 8022aea: f103 05f0 add.w r5, r3, #240 @ 0xf0
  85710. 8022aee: 69bb ldr r3, [r7, #24]
  85711. 8022af0: 69db ldr r3, [r3, #28]
  85712. 8022af2: 4618 mov r0, r3
  85713. 8022af4: f7f6 fc1d bl 8019332 <lwip_htonl>
  85714. 8022af8: 4603 mov r3, r0
  85715. 8022afa: 461a mov r2, r3
  85716. 8022afc: 4629 mov r1, r5
  85717. 8022afe: 4620 mov r0, r4
  85718. 8022b00: f000 fcf8 bl 80234f4 <dhcp_option_long>
  85719. 8022b04: 4603 mov r3, r0
  85720. 8022b06: 81bb strh r3, [r7, #12]
  85721. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_BACKING_OFF, msg_out, DHCP_DECLINE, &options_out_len);
  85722. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  85723. 8022b08: 89b8 ldrh r0, [r7, #12]
  85724. 8022b0a: 693b ldr r3, [r7, #16]
  85725. 8022b0c: 33f0 adds r3, #240 @ 0xf0
  85726. 8022b0e: 697a ldr r2, [r7, #20]
  85727. 8022b10: 4619 mov r1, r3
  85728. 8022b12: f001 f9b7 bl 8023e84 <dhcp_option_trailer>
  85729. /* per section 4.4.4, broadcast DECLINE messages */
  85730. result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  85731. 8022b16: 4b19 ldr r3, [pc, #100] @ (8022b7c <dhcp_decline+0xdc>)
  85732. 8022b18: 6818 ldr r0, [r3, #0]
  85733. 8022b1a: 4b19 ldr r3, [pc, #100] @ (8022b80 <dhcp_decline+0xe0>)
  85734. 8022b1c: 9301 str r3, [sp, #4]
  85735. 8022b1e: 687b ldr r3, [r7, #4]
  85736. 8022b20: 9300 str r3, [sp, #0]
  85737. 8022b22: 2343 movs r3, #67 @ 0x43
  85738. 8022b24: 4a17 ldr r2, [pc, #92] @ (8022b84 <dhcp_decline+0xe4>)
  85739. 8022b26: 6979 ldr r1, [r7, #20]
  85740. 8022b28: f7ff f88a bl 8021c40 <udp_sendto_if_src>
  85741. 8022b2c: 4603 mov r3, r0
  85742. 8022b2e: 77fb strb r3, [r7, #31]
  85743. pbuf_free(p_out);
  85744. 8022b30: 6978 ldr r0, [r7, #20]
  85745. 8022b32: f7f8 f8cb bl 801accc <pbuf_free>
  85746. 8022b36: e001 b.n 8022b3c <dhcp_decline+0x9c>
  85747. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_decline: BACKING OFF\n"));
  85748. } else {
  85749. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  85750. ("dhcp_decline: could not allocate DHCP request\n"));
  85751. result = ERR_MEM;
  85752. 8022b38: 23ff movs r3, #255 @ 0xff
  85753. 8022b3a: 77fb strb r3, [r7, #31]
  85754. }
  85755. if (dhcp->tries < 255) {
  85756. 8022b3c: 69bb ldr r3, [r7, #24]
  85757. 8022b3e: 799b ldrb r3, [r3, #6]
  85758. 8022b40: 2bff cmp r3, #255 @ 0xff
  85759. 8022b42: d005 beq.n 8022b50 <dhcp_decline+0xb0>
  85760. dhcp->tries++;
  85761. 8022b44: 69bb ldr r3, [r7, #24]
  85762. 8022b46: 799b ldrb r3, [r3, #6]
  85763. 8022b48: 3301 adds r3, #1
  85764. 8022b4a: b2da uxtb r2, r3
  85765. 8022b4c: 69bb ldr r3, [r7, #24]
  85766. 8022b4e: 719a strb r2, [r3, #6]
  85767. }
  85768. msecs = 10 * 1000;
  85769. 8022b50: f242 7310 movw r3, #10000 @ 0x2710
  85770. 8022b54: 81fb strh r3, [r7, #14]
  85771. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  85772. 8022b56: 89fb ldrh r3, [r7, #14]
  85773. 8022b58: f203 13f3 addw r3, r3, #499 @ 0x1f3
  85774. 8022b5c: 4a0a ldr r2, [pc, #40] @ (8022b88 <dhcp_decline+0xe8>)
  85775. 8022b5e: fb82 1203 smull r1, r2, r2, r3
  85776. 8022b62: 1152 asrs r2, r2, #5
  85777. 8022b64: 17db asrs r3, r3, #31
  85778. 8022b66: 1ad3 subs r3, r2, r3
  85779. 8022b68: b29a uxth r2, r3
  85780. 8022b6a: 69bb ldr r3, [r7, #24]
  85781. 8022b6c: 811a strh r2, [r3, #8]
  85782. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline(): set request timeout %"U16_F" msecs\n", msecs));
  85783. return result;
  85784. 8022b6e: f997 301f ldrsb.w r3, [r7, #31]
  85785. }
  85786. 8022b72: 4618 mov r0, r3
  85787. 8022b74: 3720 adds r7, #32
  85788. 8022b76: 46bd mov sp, r7
  85789. 8022b78: bdb0 pop {r4, r5, r7, pc}
  85790. 8022b7a: bf00 nop
  85791. 8022b7c: 2402afe4 .word 0x2402afe4
  85792. 8022b80: 080314f4 .word 0x080314f4
  85793. 8022b84: 080314f8 .word 0x080314f8
  85794. 8022b88: 10624dd3 .word 0x10624dd3
  85795. 08022b8c <dhcp_discover>:
  85796. *
  85797. * @param netif the netif under DHCP control
  85798. */
  85799. static err_t
  85800. dhcp_discover(struct netif *netif)
  85801. {
  85802. 8022b8c: b580 push {r7, lr}
  85803. 8022b8e: b08a sub sp, #40 @ 0x28
  85804. 8022b90: af02 add r7, sp, #8
  85805. 8022b92: 6078 str r0, [r7, #4]
  85806. struct dhcp *dhcp = netif_dhcp_data(netif);
  85807. 8022b94: 687b ldr r3, [r7, #4]
  85808. 8022b96: 6a5b ldr r3, [r3, #36] @ 0x24
  85809. 8022b98: 61bb str r3, [r7, #24]
  85810. err_t result = ERR_OK;
  85811. 8022b9a: 2300 movs r3, #0
  85812. 8022b9c: 75fb strb r3, [r7, #23]
  85813. struct pbuf *p_out;
  85814. u16_t options_out_len;
  85815. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover()\n"));
  85816. ip4_addr_set_any(&dhcp->offered_ip_addr);
  85817. 8022b9e: 69bb ldr r3, [r7, #24]
  85818. 8022ba0: 2200 movs r2, #0
  85819. 8022ba2: 61da str r2, [r3, #28]
  85820. dhcp_set_state(dhcp, DHCP_STATE_SELECTING);
  85821. 8022ba4: 2106 movs r1, #6
  85822. 8022ba6: 69b8 ldr r0, [r7, #24]
  85823. 8022ba8: f000 fbfd bl 80233a6 <dhcp_set_state>
  85824. /* create and initialize the DHCP message header */
  85825. p_out = dhcp_create_msg(netif, dhcp, DHCP_DISCOVER, &options_out_len);
  85826. 8022bac: f107 0308 add.w r3, r7, #8
  85827. 8022bb0: 2201 movs r2, #1
  85828. 8022bb2: 69b9 ldr r1, [r7, #24]
  85829. 8022bb4: 6878 ldr r0, [r7, #4]
  85830. 8022bb6: f001 f88f bl 8023cd8 <dhcp_create_msg>
  85831. 8022bba: 6138 str r0, [r7, #16]
  85832. if (p_out != NULL) {
  85833. 8022bbc: 693b ldr r3, [r7, #16]
  85834. 8022bbe: 2b00 cmp r3, #0
  85835. 8022bc0: d04b beq.n 8022c5a <dhcp_discover+0xce>
  85836. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  85837. 8022bc2: 693b ldr r3, [r7, #16]
  85838. 8022bc4: 685b ldr r3, [r3, #4]
  85839. 8022bc6: 60fb str r3, [r7, #12]
  85840. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: making request\n"));
  85841. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  85842. 8022bc8: 8938 ldrh r0, [r7, #8]
  85843. 8022bca: 68fb ldr r3, [r7, #12]
  85844. 8022bcc: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85845. 8022bd0: 2302 movs r3, #2
  85846. 8022bd2: 2239 movs r2, #57 @ 0x39
  85847. 8022bd4: f000 fc02 bl 80233dc <dhcp_option>
  85848. 8022bd8: 4603 mov r3, r0
  85849. 8022bda: 813b strh r3, [r7, #8]
  85850. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  85851. 8022bdc: 8938 ldrh r0, [r7, #8]
  85852. 8022bde: 68fb ldr r3, [r7, #12]
  85853. 8022be0: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85854. 8022be4: 687b ldr r3, [r7, #4]
  85855. 8022be6: 8d1b ldrh r3, [r3, #40] @ 0x28
  85856. 8022be8: 461a mov r2, r3
  85857. 8022bea: f000 fc51 bl 8023490 <dhcp_option_short>
  85858. 8022bee: 4603 mov r3, r0
  85859. 8022bf0: 813b strh r3, [r7, #8]
  85860. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  85861. 8022bf2: 8938 ldrh r0, [r7, #8]
  85862. 8022bf4: 68fb ldr r3, [r7, #12]
  85863. 8022bf6: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85864. 8022bfa: 2303 movs r3, #3
  85865. 8022bfc: 2237 movs r2, #55 @ 0x37
  85866. 8022bfe: f000 fbed bl 80233dc <dhcp_option>
  85867. 8022c02: 4603 mov r3, r0
  85868. 8022c04: 813b strh r3, [r7, #8]
  85869. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85870. 8022c06: 2300 movs r3, #0
  85871. 8022c08: 77fb strb r3, [r7, #31]
  85872. 8022c0a: e00e b.n 8022c2a <dhcp_discover+0x9e>
  85873. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  85874. 8022c0c: 8938 ldrh r0, [r7, #8]
  85875. 8022c0e: 68fb ldr r3, [r7, #12]
  85876. 8022c10: f103 01f0 add.w r1, r3, #240 @ 0xf0
  85877. 8022c14: 7ffb ldrb r3, [r7, #31]
  85878. 8022c16: 4a29 ldr r2, [pc, #164] @ (8022cbc <dhcp_discover+0x130>)
  85879. 8022c18: 5cd3 ldrb r3, [r2, r3]
  85880. 8022c1a: 461a mov r2, r3
  85881. 8022c1c: f000 fc12 bl 8023444 <dhcp_option_byte>
  85882. 8022c20: 4603 mov r3, r0
  85883. 8022c22: 813b strh r3, [r7, #8]
  85884. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  85885. 8022c24: 7ffb ldrb r3, [r7, #31]
  85886. 8022c26: 3301 adds r3, #1
  85887. 8022c28: 77fb strb r3, [r7, #31]
  85888. 8022c2a: 7ffb ldrb r3, [r7, #31]
  85889. 8022c2c: 2b02 cmp r3, #2
  85890. 8022c2e: d9ed bls.n 8022c0c <dhcp_discover+0x80>
  85891. }
  85892. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_SELECTING, msg_out, DHCP_DISCOVER, &options_out_len);
  85893. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  85894. 8022c30: 8938 ldrh r0, [r7, #8]
  85895. 8022c32: 68fb ldr r3, [r7, #12]
  85896. 8022c34: 33f0 adds r3, #240 @ 0xf0
  85897. 8022c36: 693a ldr r2, [r7, #16]
  85898. 8022c38: 4619 mov r1, r3
  85899. 8022c3a: f001 f923 bl 8023e84 <dhcp_option_trailer>
  85900. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)\n"));
  85901. udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY);
  85902. 8022c3e: 4b20 ldr r3, [pc, #128] @ (8022cc0 <dhcp_discover+0x134>)
  85903. 8022c40: 6818 ldr r0, [r3, #0]
  85904. 8022c42: 4b20 ldr r3, [pc, #128] @ (8022cc4 <dhcp_discover+0x138>)
  85905. 8022c44: 9301 str r3, [sp, #4]
  85906. 8022c46: 687b ldr r3, [r7, #4]
  85907. 8022c48: 9300 str r3, [sp, #0]
  85908. 8022c4a: 2343 movs r3, #67 @ 0x43
  85909. 8022c4c: 4a1e ldr r2, [pc, #120] @ (8022cc8 <dhcp_discover+0x13c>)
  85910. 8022c4e: 6939 ldr r1, [r7, #16]
  85911. 8022c50: f7fe fff6 bl 8021c40 <udp_sendto_if_src>
  85912. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: deleting()ing\n"));
  85913. pbuf_free(p_out);
  85914. 8022c54: 6938 ldr r0, [r7, #16]
  85915. 8022c56: f7f8 f839 bl 801accc <pbuf_free>
  85916. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover: SELECTING\n"));
  85917. } else {
  85918. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_discover: could not allocate DHCP request\n"));
  85919. }
  85920. if (dhcp->tries < 255) {
  85921. 8022c5a: 69bb ldr r3, [r7, #24]
  85922. 8022c5c: 799b ldrb r3, [r3, #6]
  85923. 8022c5e: 2bff cmp r3, #255 @ 0xff
  85924. 8022c60: d005 beq.n 8022c6e <dhcp_discover+0xe2>
  85925. dhcp->tries++;
  85926. 8022c62: 69bb ldr r3, [r7, #24]
  85927. 8022c64: 799b ldrb r3, [r3, #6]
  85928. 8022c66: 3301 adds r3, #1
  85929. 8022c68: b2da uxtb r2, r3
  85930. 8022c6a: 69bb ldr r3, [r7, #24]
  85931. 8022c6c: 719a strb r2, [r3, #6]
  85932. if (dhcp->tries >= LWIP_DHCP_AUTOIP_COOP_TRIES && dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_OFF) {
  85933. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_ON;
  85934. autoip_start(netif);
  85935. }
  85936. #endif /* LWIP_DHCP_AUTOIP_COOP */
  85937. msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
  85938. 8022c6e: 69bb ldr r3, [r7, #24]
  85939. 8022c70: 799b ldrb r3, [r3, #6]
  85940. 8022c72: 2b05 cmp r3, #5
  85941. 8022c74: d80d bhi.n 8022c92 <dhcp_discover+0x106>
  85942. 8022c76: 69bb ldr r3, [r7, #24]
  85943. 8022c78: 799b ldrb r3, [r3, #6]
  85944. 8022c7a: 461a mov r2, r3
  85945. 8022c7c: 2301 movs r3, #1
  85946. 8022c7e: 4093 lsls r3, r2
  85947. 8022c80: b29b uxth r3, r3
  85948. 8022c82: 461a mov r2, r3
  85949. 8022c84: 0152 lsls r2, r2, #5
  85950. 8022c86: 1ad2 subs r2, r2, r3
  85951. 8022c88: 0092 lsls r2, r2, #2
  85952. 8022c8a: 4413 add r3, r2
  85953. 8022c8c: 00db lsls r3, r3, #3
  85954. 8022c8e: b29b uxth r3, r3
  85955. 8022c90: e001 b.n 8022c96 <dhcp_discover+0x10a>
  85956. 8022c92: f64e 2360 movw r3, #60000 @ 0xea60
  85957. 8022c96: 817b strh r3, [r7, #10]
  85958. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  85959. 8022c98: 897b ldrh r3, [r7, #10]
  85960. 8022c9a: f203 13f3 addw r3, r3, #499 @ 0x1f3
  85961. 8022c9e: 4a0b ldr r2, [pc, #44] @ (8022ccc <dhcp_discover+0x140>)
  85962. 8022ca0: fb82 1203 smull r1, r2, r2, r3
  85963. 8022ca4: 1152 asrs r2, r2, #5
  85964. 8022ca6: 17db asrs r3, r3, #31
  85965. 8022ca8: 1ad3 subs r3, r2, r3
  85966. 8022caa: b29a uxth r2, r3
  85967. 8022cac: 69bb ldr r3, [r7, #24]
  85968. 8022cae: 811a strh r2, [r3, #8]
  85969. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs));
  85970. return result;
  85971. 8022cb0: f997 3017 ldrsb.w r3, [r7, #23]
  85972. }
  85973. 8022cb4: 4618 mov r0, r3
  85974. 8022cb6: 3720 adds r7, #32
  85975. 8022cb8: 46bd mov sp, r7
  85976. 8022cba: bd80 pop {r7, pc}
  85977. 8022cbc: 24000058 .word 0x24000058
  85978. 8022cc0: 2402afe4 .word 0x2402afe4
  85979. 8022cc4: 080314f4 .word 0x080314f4
  85980. 8022cc8: 080314f8 .word 0x080314f8
  85981. 8022ccc: 10624dd3 .word 0x10624dd3
  85982. 08022cd0 <dhcp_bind>:
  85983. *
  85984. * @param netif network interface to bind to the offered address
  85985. */
  85986. static void
  85987. dhcp_bind(struct netif *netif)
  85988. {
  85989. 8022cd0: b580 push {r7, lr}
  85990. 8022cd2: b088 sub sp, #32
  85991. 8022cd4: af00 add r7, sp, #0
  85992. 8022cd6: 6078 str r0, [r7, #4]
  85993. u32_t timeout;
  85994. struct dhcp *dhcp;
  85995. ip4_addr_t sn_mask, gw_addr;
  85996. LWIP_ERROR("dhcp_bind: netif != NULL", (netif != NULL), return;);
  85997. 8022cd8: 687b ldr r3, [r7, #4]
  85998. 8022cda: 2b00 cmp r3, #0
  85999. 8022cdc: d107 bne.n 8022cee <dhcp_bind+0x1e>
  86000. 8022cde: 4b64 ldr r3, [pc, #400] @ (8022e70 <dhcp_bind+0x1a0>)
  86001. 8022ce0: f240 4215 movw r2, #1045 @ 0x415
  86002. 8022ce4: 4963 ldr r1, [pc, #396] @ (8022e74 <dhcp_bind+0x1a4>)
  86003. 8022ce6: 4864 ldr r0, [pc, #400] @ (8022e78 <dhcp_bind+0x1a8>)
  86004. 8022ce8: f007 fa68 bl 802a1bc <iprintf>
  86005. 8022cec: e0bc b.n 8022e68 <dhcp_bind+0x198>
  86006. dhcp = netif_dhcp_data(netif);
  86007. 8022cee: 687b ldr r3, [r7, #4]
  86008. 8022cf0: 6a5b ldr r3, [r3, #36] @ 0x24
  86009. 8022cf2: 61fb str r3, [r7, #28]
  86010. LWIP_ERROR("dhcp_bind: dhcp != NULL", (dhcp != NULL), return;);
  86011. 8022cf4: 69fb ldr r3, [r7, #28]
  86012. 8022cf6: 2b00 cmp r3, #0
  86013. 8022cf8: d107 bne.n 8022d0a <dhcp_bind+0x3a>
  86014. 8022cfa: 4b5d ldr r3, [pc, #372] @ (8022e70 <dhcp_bind+0x1a0>)
  86015. 8022cfc: f240 4217 movw r2, #1047 @ 0x417
  86016. 8022d00: 495e ldr r1, [pc, #376] @ (8022e7c <dhcp_bind+0x1ac>)
  86017. 8022d02: 485d ldr r0, [pc, #372] @ (8022e78 <dhcp_bind+0x1a8>)
  86018. 8022d04: f007 fa5a bl 802a1bc <iprintf>
  86019. 8022d08: e0ae b.n 8022e68 <dhcp_bind+0x198>
  86020. 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));
  86021. /* reset time used of lease */
  86022. dhcp->lease_used = 0;
  86023. 8022d0a: 69fb ldr r3, [r7, #28]
  86024. 8022d0c: 2200 movs r2, #0
  86025. 8022d0e: 825a strh r2, [r3, #18]
  86026. if (dhcp->offered_t0_lease != 0xffffffffUL) {
  86027. 8022d10: 69fb ldr r3, [r7, #28]
  86028. 8022d12: 6a9b ldr r3, [r3, #40] @ 0x28
  86029. 8022d14: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  86030. 8022d18: d019 beq.n 8022d4e <dhcp_bind+0x7e>
  86031. /* set renewal period timer */
  86032. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t0 renewal timer %"U32_F" secs\n", dhcp->offered_t0_lease));
  86033. timeout = (dhcp->offered_t0_lease + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  86034. 8022d1a: 69fb ldr r3, [r7, #28]
  86035. 8022d1c: 6a9b ldr r3, [r3, #40] @ 0x28
  86036. 8022d1e: 331e adds r3, #30
  86037. 8022d20: 4a57 ldr r2, [pc, #348] @ (8022e80 <dhcp_bind+0x1b0>)
  86038. 8022d22: fba2 2303 umull r2, r3, r2, r3
  86039. 8022d26: 095b lsrs r3, r3, #5
  86040. 8022d28: 61bb str r3, [r7, #24]
  86041. if (timeout > 0xffff) {
  86042. 8022d2a: 69bb ldr r3, [r7, #24]
  86043. 8022d2c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  86044. 8022d30: d302 bcc.n 8022d38 <dhcp_bind+0x68>
  86045. timeout = 0xffff;
  86046. 8022d32: f64f 73ff movw r3, #65535 @ 0xffff
  86047. 8022d36: 61bb str r3, [r7, #24]
  86048. }
  86049. dhcp->t0_timeout = (u16_t)timeout;
  86050. 8022d38: 69bb ldr r3, [r7, #24]
  86051. 8022d3a: b29a uxth r2, r3
  86052. 8022d3c: 69fb ldr r3, [r7, #28]
  86053. 8022d3e: 829a strh r2, [r3, #20]
  86054. if (dhcp->t0_timeout == 0) {
  86055. 8022d40: 69fb ldr r3, [r7, #28]
  86056. 8022d42: 8a9b ldrh r3, [r3, #20]
  86057. 8022d44: 2b00 cmp r3, #0
  86058. 8022d46: d102 bne.n 8022d4e <dhcp_bind+0x7e>
  86059. dhcp->t0_timeout = 1;
  86060. 8022d48: 69fb ldr r3, [r7, #28]
  86061. 8022d4a: 2201 movs r2, #1
  86062. 8022d4c: 829a strh r2, [r3, #20]
  86063. }
  86064. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t0_lease * 1000));
  86065. }
  86066. /* temporary DHCP lease? */
  86067. if (dhcp->offered_t1_renew != 0xffffffffUL) {
  86068. 8022d4e: 69fb ldr r3, [r7, #28]
  86069. 8022d50: 6adb ldr r3, [r3, #44] @ 0x2c
  86070. 8022d52: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  86071. 8022d56: d01d beq.n 8022d94 <dhcp_bind+0xc4>
  86072. /* set renewal period timer */
  86073. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t1 renewal timer %"U32_F" secs\n", dhcp->offered_t1_renew));
  86074. timeout = (dhcp->offered_t1_renew + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  86075. 8022d58: 69fb ldr r3, [r7, #28]
  86076. 8022d5a: 6adb ldr r3, [r3, #44] @ 0x2c
  86077. 8022d5c: 331e adds r3, #30
  86078. 8022d5e: 4a48 ldr r2, [pc, #288] @ (8022e80 <dhcp_bind+0x1b0>)
  86079. 8022d60: fba2 2303 umull r2, r3, r2, r3
  86080. 8022d64: 095b lsrs r3, r3, #5
  86081. 8022d66: 61bb str r3, [r7, #24]
  86082. if (timeout > 0xffff) {
  86083. 8022d68: 69bb ldr r3, [r7, #24]
  86084. 8022d6a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  86085. 8022d6e: d302 bcc.n 8022d76 <dhcp_bind+0xa6>
  86086. timeout = 0xffff;
  86087. 8022d70: f64f 73ff movw r3, #65535 @ 0xffff
  86088. 8022d74: 61bb str r3, [r7, #24]
  86089. }
  86090. dhcp->t1_timeout = (u16_t)timeout;
  86091. 8022d76: 69bb ldr r3, [r7, #24]
  86092. 8022d78: b29a uxth r2, r3
  86093. 8022d7a: 69fb ldr r3, [r7, #28]
  86094. 8022d7c: 815a strh r2, [r3, #10]
  86095. if (dhcp->t1_timeout == 0) {
  86096. 8022d7e: 69fb ldr r3, [r7, #28]
  86097. 8022d80: 895b ldrh r3, [r3, #10]
  86098. 8022d82: 2b00 cmp r3, #0
  86099. 8022d84: d102 bne.n 8022d8c <dhcp_bind+0xbc>
  86100. dhcp->t1_timeout = 1;
  86101. 8022d86: 69fb ldr r3, [r7, #28]
  86102. 8022d88: 2201 movs r2, #1
  86103. 8022d8a: 815a strh r2, [r3, #10]
  86104. }
  86105. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t1_renew * 1000));
  86106. dhcp->t1_renew_time = dhcp->t1_timeout;
  86107. 8022d8c: 69fb ldr r3, [r7, #28]
  86108. 8022d8e: 895a ldrh r2, [r3, #10]
  86109. 8022d90: 69fb ldr r3, [r7, #28]
  86110. 8022d92: 81da strh r2, [r3, #14]
  86111. }
  86112. /* set renewal period timer */
  86113. if (dhcp->offered_t2_rebind != 0xffffffffUL) {
  86114. 8022d94: 69fb ldr r3, [r7, #28]
  86115. 8022d96: 6b1b ldr r3, [r3, #48] @ 0x30
  86116. 8022d98: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  86117. 8022d9c: d01d beq.n 8022dda <dhcp_bind+0x10a>
  86118. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t2 rebind timer %"U32_F" secs\n", dhcp->offered_t2_rebind));
  86119. timeout = (dhcp->offered_t2_rebind + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS;
  86120. 8022d9e: 69fb ldr r3, [r7, #28]
  86121. 8022da0: 6b1b ldr r3, [r3, #48] @ 0x30
  86122. 8022da2: 331e adds r3, #30
  86123. 8022da4: 4a36 ldr r2, [pc, #216] @ (8022e80 <dhcp_bind+0x1b0>)
  86124. 8022da6: fba2 2303 umull r2, r3, r2, r3
  86125. 8022daa: 095b lsrs r3, r3, #5
  86126. 8022dac: 61bb str r3, [r7, #24]
  86127. if (timeout > 0xffff) {
  86128. 8022dae: 69bb ldr r3, [r7, #24]
  86129. 8022db0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  86130. 8022db4: d302 bcc.n 8022dbc <dhcp_bind+0xec>
  86131. timeout = 0xffff;
  86132. 8022db6: f64f 73ff movw r3, #65535 @ 0xffff
  86133. 8022dba: 61bb str r3, [r7, #24]
  86134. }
  86135. dhcp->t2_timeout = (u16_t)timeout;
  86136. 8022dbc: 69bb ldr r3, [r7, #24]
  86137. 8022dbe: b29a uxth r2, r3
  86138. 8022dc0: 69fb ldr r3, [r7, #28]
  86139. 8022dc2: 819a strh r2, [r3, #12]
  86140. if (dhcp->t2_timeout == 0) {
  86141. 8022dc4: 69fb ldr r3, [r7, #28]
  86142. 8022dc6: 899b ldrh r3, [r3, #12]
  86143. 8022dc8: 2b00 cmp r3, #0
  86144. 8022dca: d102 bne.n 8022dd2 <dhcp_bind+0x102>
  86145. dhcp->t2_timeout = 1;
  86146. 8022dcc: 69fb ldr r3, [r7, #28]
  86147. 8022dce: 2201 movs r2, #1
  86148. 8022dd0: 819a strh r2, [r3, #12]
  86149. }
  86150. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t2_rebind * 1000));
  86151. dhcp->t2_rebind_time = dhcp->t2_timeout;
  86152. 8022dd2: 69fb ldr r3, [r7, #28]
  86153. 8022dd4: 899a ldrh r2, [r3, #12]
  86154. 8022dd6: 69fb ldr r3, [r7, #28]
  86155. 8022dd8: 821a strh r2, [r3, #16]
  86156. }
  86157. /* If we have sub 1 minute lease, t2 and t1 will kick in at the same time. */
  86158. if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) {
  86159. 8022dda: 69fb ldr r3, [r7, #28]
  86160. 8022ddc: 895a ldrh r2, [r3, #10]
  86161. 8022dde: 69fb ldr r3, [r7, #28]
  86162. 8022de0: 899b ldrh r3, [r3, #12]
  86163. 8022de2: 429a cmp r2, r3
  86164. 8022de4: d306 bcc.n 8022df4 <dhcp_bind+0x124>
  86165. 8022de6: 69fb ldr r3, [r7, #28]
  86166. 8022de8: 899b ldrh r3, [r3, #12]
  86167. 8022dea: 2b00 cmp r3, #0
  86168. 8022dec: d002 beq.n 8022df4 <dhcp_bind+0x124>
  86169. dhcp->t1_timeout = 0;
  86170. 8022dee: 69fb ldr r3, [r7, #28]
  86171. 8022df0: 2200 movs r2, #0
  86172. 8022df2: 815a strh r2, [r3, #10]
  86173. }
  86174. if (dhcp->subnet_mask_given) {
  86175. 8022df4: 69fb ldr r3, [r7, #28]
  86176. 8022df6: 79db ldrb r3, [r3, #7]
  86177. 8022df8: 2b00 cmp r3, #0
  86178. 8022dfa: d003 beq.n 8022e04 <dhcp_bind+0x134>
  86179. /* copy offered network mask */
  86180. ip4_addr_copy(sn_mask, dhcp->offered_sn_mask);
  86181. 8022dfc: 69fb ldr r3, [r7, #28]
  86182. 8022dfe: 6a1b ldr r3, [r3, #32]
  86183. 8022e00: 613b str r3, [r7, #16]
  86184. 8022e02: e014 b.n 8022e2e <dhcp_bind+0x15e>
  86185. } else {
  86186. /* subnet mask not given, choose a safe subnet mask given the network class */
  86187. u8_t first_octet = ip4_addr1(&dhcp->offered_ip_addr);
  86188. 8022e04: 69fb ldr r3, [r7, #28]
  86189. 8022e06: 331c adds r3, #28
  86190. 8022e08: 781b ldrb r3, [r3, #0]
  86191. 8022e0a: 75fb strb r3, [r7, #23]
  86192. if (first_octet <= 127) {
  86193. 8022e0c: f997 3017 ldrsb.w r3, [r7, #23]
  86194. 8022e10: 2b00 cmp r3, #0
  86195. 8022e12: db02 blt.n 8022e1a <dhcp_bind+0x14a>
  86196. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL));
  86197. 8022e14: 23ff movs r3, #255 @ 0xff
  86198. 8022e16: 613b str r3, [r7, #16]
  86199. 8022e18: e009 b.n 8022e2e <dhcp_bind+0x15e>
  86200. } else if (first_octet >= 192) {
  86201. 8022e1a: 7dfb ldrb r3, [r7, #23]
  86202. 8022e1c: 2bbf cmp r3, #191 @ 0xbf
  86203. 8022e1e: d903 bls.n 8022e28 <dhcp_bind+0x158>
  86204. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL));
  86205. 8022e20: f06f 437f mvn.w r3, #4278190080 @ 0xff000000
  86206. 8022e24: 613b str r3, [r7, #16]
  86207. 8022e26: e002 b.n 8022e2e <dhcp_bind+0x15e>
  86208. } else {
  86209. ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL));
  86210. 8022e28: f64f 73ff movw r3, #65535 @ 0xffff
  86211. 8022e2c: 613b str r3, [r7, #16]
  86212. }
  86213. }
  86214. ip4_addr_copy(gw_addr, dhcp->offered_gw_addr);
  86215. 8022e2e: 69fb ldr r3, [r7, #28]
  86216. 8022e30: 6a5b ldr r3, [r3, #36] @ 0x24
  86217. 8022e32: 60fb str r3, [r7, #12]
  86218. /* gateway address not given? */
  86219. if (ip4_addr_isany_val(gw_addr)) {
  86220. 8022e34: 68fb ldr r3, [r7, #12]
  86221. 8022e36: 2b00 cmp r3, #0
  86222. 8022e38: d108 bne.n 8022e4c <dhcp_bind+0x17c>
  86223. /* copy network address */
  86224. ip4_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask);
  86225. 8022e3a: 69fb ldr r3, [r7, #28]
  86226. 8022e3c: 69da ldr r2, [r3, #28]
  86227. 8022e3e: 693b ldr r3, [r7, #16]
  86228. 8022e40: 4013 ands r3, r2
  86229. 8022e42: 60fb str r3, [r7, #12]
  86230. /* use first host address on network as gateway */
  86231. ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL));
  86232. 8022e44: 68fb ldr r3, [r7, #12]
  86233. 8022e46: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  86234. 8022e4a: 60fb str r3, [r7, #12]
  86235. 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",
  86236. ip4_addr_get_u32(&dhcp->offered_ip_addr), ip4_addr_get_u32(&sn_mask), ip4_addr_get_u32(&gw_addr)));
  86237. /* netif is now bound to DHCP leased address - set this before assigning the address
  86238. to ensure the callback can use dhcp_supplied_address() */
  86239. dhcp_set_state(dhcp, DHCP_STATE_BOUND);
  86240. 8022e4c: 210a movs r1, #10
  86241. 8022e4e: 69f8 ldr r0, [r7, #28]
  86242. 8022e50: f000 faa9 bl 80233a6 <dhcp_set_state>
  86243. netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr);
  86244. 8022e54: 69fb ldr r3, [r7, #28]
  86245. 8022e56: f103 011c add.w r1, r3, #28
  86246. 8022e5a: f107 030c add.w r3, r7, #12
  86247. 8022e5e: f107 0210 add.w r2, r7, #16
  86248. 8022e62: 6878 ldr r0, [r7, #4]
  86249. 8022e64: f7f7 f9e8 bl 801a238 <netif_set_addr>
  86250. /* interface is used by routing now that an address is set */
  86251. }
  86252. 8022e68: 3720 adds r7, #32
  86253. 8022e6a: 46bd mov sp, r7
  86254. 8022e6c: bd80 pop {r7, pc}
  86255. 8022e6e: bf00 nop
  86256. 8022e70: 080306e8 .word 0x080306e8
  86257. 8022e74: 08030848 .word 0x08030848
  86258. 8022e78: 08030748 .word 0x08030748
  86259. 8022e7c: 08030864 .word 0x08030864
  86260. 8022e80: 88888889 .word 0x88888889
  86261. 08022e84 <dhcp_renew>:
  86262. *
  86263. * @param netif network interface which must renew its lease
  86264. */
  86265. err_t
  86266. dhcp_renew(struct netif *netif)
  86267. {
  86268. 8022e84: b580 push {r7, lr}
  86269. 8022e86: b08a sub sp, #40 @ 0x28
  86270. 8022e88: af02 add r7, sp, #8
  86271. 8022e8a: 6078 str r0, [r7, #4]
  86272. struct dhcp *dhcp = netif_dhcp_data(netif);
  86273. 8022e8c: 687b ldr r3, [r7, #4]
  86274. 8022e8e: 6a5b ldr r3, [r3, #36] @ 0x24
  86275. 8022e90: 61bb str r3, [r7, #24]
  86276. u16_t msecs;
  86277. u8_t i;
  86278. struct pbuf *p_out;
  86279. u16_t options_out_len;
  86280. LWIP_ASSERT_CORE_LOCKED();
  86281. 8022e92: f7ed fdf3 bl 8010a7c <sys_check_core_locking>
  86282. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_renew()\n"));
  86283. dhcp_set_state(dhcp, DHCP_STATE_RENEWING);
  86284. 8022e96: 2105 movs r1, #5
  86285. 8022e98: 69b8 ldr r0, [r7, #24]
  86286. 8022e9a: f000 fa84 bl 80233a6 <dhcp_set_state>
  86287. /* create and initialize the DHCP message header */
  86288. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  86289. 8022e9e: f107 030c add.w r3, r7, #12
  86290. 8022ea2: 2203 movs r2, #3
  86291. 8022ea4: 69b9 ldr r1, [r7, #24]
  86292. 8022ea6: 6878 ldr r0, [r7, #4]
  86293. 8022ea8: f000 ff16 bl 8023cd8 <dhcp_create_msg>
  86294. 8022eac: 6178 str r0, [r7, #20]
  86295. if (p_out != NULL) {
  86296. 8022eae: 697b ldr r3, [r7, #20]
  86297. 8022eb0: 2b00 cmp r3, #0
  86298. 8022eb2: d04e beq.n 8022f52 <dhcp_renew+0xce>
  86299. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  86300. 8022eb4: 697b ldr r3, [r7, #20]
  86301. 8022eb6: 685b ldr r3, [r3, #4]
  86302. 8022eb8: 613b str r3, [r7, #16]
  86303. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  86304. 8022eba: 89b8 ldrh r0, [r7, #12]
  86305. 8022ebc: 693b ldr r3, [r7, #16]
  86306. 8022ebe: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86307. 8022ec2: 2302 movs r3, #2
  86308. 8022ec4: 2239 movs r2, #57 @ 0x39
  86309. 8022ec6: f000 fa89 bl 80233dc <dhcp_option>
  86310. 8022eca: 4603 mov r3, r0
  86311. 8022ecc: 81bb strh r3, [r7, #12]
  86312. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  86313. 8022ece: 89b8 ldrh r0, [r7, #12]
  86314. 8022ed0: 693b ldr r3, [r7, #16]
  86315. 8022ed2: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86316. 8022ed6: 687b ldr r3, [r7, #4]
  86317. 8022ed8: 8d1b ldrh r3, [r3, #40] @ 0x28
  86318. 8022eda: 461a mov r2, r3
  86319. 8022edc: f000 fad8 bl 8023490 <dhcp_option_short>
  86320. 8022ee0: 4603 mov r3, r0
  86321. 8022ee2: 81bb strh r3, [r7, #12]
  86322. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  86323. 8022ee4: 89b8 ldrh r0, [r7, #12]
  86324. 8022ee6: 693b ldr r3, [r7, #16]
  86325. 8022ee8: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86326. 8022eec: 2303 movs r3, #3
  86327. 8022eee: 2237 movs r2, #55 @ 0x37
  86328. 8022ef0: f000 fa74 bl 80233dc <dhcp_option>
  86329. 8022ef4: 4603 mov r3, r0
  86330. 8022ef6: 81bb strh r3, [r7, #12]
  86331. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86332. 8022ef8: 2300 movs r3, #0
  86333. 8022efa: 77bb strb r3, [r7, #30]
  86334. 8022efc: e00e b.n 8022f1c <dhcp_renew+0x98>
  86335. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  86336. 8022efe: 89b8 ldrh r0, [r7, #12]
  86337. 8022f00: 693b ldr r3, [r7, #16]
  86338. 8022f02: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86339. 8022f06: 7fbb ldrb r3, [r7, #30]
  86340. 8022f08: 4a29 ldr r2, [pc, #164] @ (8022fb0 <dhcp_renew+0x12c>)
  86341. 8022f0a: 5cd3 ldrb r3, [r2, r3]
  86342. 8022f0c: 461a mov r2, r3
  86343. 8022f0e: f000 fa99 bl 8023444 <dhcp_option_byte>
  86344. 8022f12: 4603 mov r3, r0
  86345. 8022f14: 81bb strh r3, [r7, #12]
  86346. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86347. 8022f16: 7fbb ldrb r3, [r7, #30]
  86348. 8022f18: 3301 adds r3, #1
  86349. 8022f1a: 77bb strb r3, [r7, #30]
  86350. 8022f1c: 7fbb ldrb r3, [r7, #30]
  86351. 8022f1e: 2b02 cmp r3, #2
  86352. 8022f20: d9ed bls.n 8022efe <dhcp_renew+0x7a>
  86353. #if LWIP_NETIF_HOSTNAME
  86354. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  86355. #endif /* LWIP_NETIF_HOSTNAME */
  86356. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_RENEWING, msg_out, DHCP_REQUEST, &options_out_len);
  86357. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  86358. 8022f22: 89b8 ldrh r0, [r7, #12]
  86359. 8022f24: 693b ldr r3, [r7, #16]
  86360. 8022f26: 33f0 adds r3, #240 @ 0xf0
  86361. 8022f28: 697a ldr r2, [r7, #20]
  86362. 8022f2a: 4619 mov r1, r3
  86363. 8022f2c: f000 ffaa bl 8023e84 <dhcp_option_trailer>
  86364. result = udp_sendto_if(dhcp_pcb, p_out, &dhcp->server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  86365. 8022f30: 4b20 ldr r3, [pc, #128] @ (8022fb4 <dhcp_renew+0x130>)
  86366. 8022f32: 6818 ldr r0, [r3, #0]
  86367. 8022f34: 69bb ldr r3, [r7, #24]
  86368. 8022f36: f103 0218 add.w r2, r3, #24
  86369. 8022f3a: 687b ldr r3, [r7, #4]
  86370. 8022f3c: 9300 str r3, [sp, #0]
  86371. 8022f3e: 2343 movs r3, #67 @ 0x43
  86372. 8022f40: 6979 ldr r1, [r7, #20]
  86373. 8022f42: f7fe fe09 bl 8021b58 <udp_sendto_if>
  86374. 8022f46: 4603 mov r3, r0
  86375. 8022f48: 77fb strb r3, [r7, #31]
  86376. pbuf_free(p_out);
  86377. 8022f4a: 6978 ldr r0, [r7, #20]
  86378. 8022f4c: f7f7 febe bl 801accc <pbuf_free>
  86379. 8022f50: e001 b.n 8022f56 <dhcp_renew+0xd2>
  86380. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew: RENEWING\n"));
  86381. } else {
  86382. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_renew: could not allocate DHCP request\n"));
  86383. result = ERR_MEM;
  86384. 8022f52: 23ff movs r3, #255 @ 0xff
  86385. 8022f54: 77fb strb r3, [r7, #31]
  86386. }
  86387. if (dhcp->tries < 255) {
  86388. 8022f56: 69bb ldr r3, [r7, #24]
  86389. 8022f58: 799b ldrb r3, [r3, #6]
  86390. 8022f5a: 2bff cmp r3, #255 @ 0xff
  86391. 8022f5c: d005 beq.n 8022f6a <dhcp_renew+0xe6>
  86392. dhcp->tries++;
  86393. 8022f5e: 69bb ldr r3, [r7, #24]
  86394. 8022f60: 799b ldrb r3, [r3, #6]
  86395. 8022f62: 3301 adds r3, #1
  86396. 8022f64: b2da uxtb r2, r3
  86397. 8022f66: 69bb ldr r3, [r7, #24]
  86398. 8022f68: 719a strb r2, [r3, #6]
  86399. }
  86400. /* back-off on retries, but to a maximum of 20 seconds */
  86401. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 2000 : 20 * 1000);
  86402. 8022f6a: 69bb ldr r3, [r7, #24]
  86403. 8022f6c: 799b ldrb r3, [r3, #6]
  86404. 8022f6e: 2b09 cmp r3, #9
  86405. 8022f70: d809 bhi.n 8022f86 <dhcp_renew+0x102>
  86406. 8022f72: 69bb ldr r3, [r7, #24]
  86407. 8022f74: 799b ldrb r3, [r3, #6]
  86408. 8022f76: 461a mov r2, r3
  86409. 8022f78: 0152 lsls r2, r2, #5
  86410. 8022f7a: 1ad2 subs r2, r2, r3
  86411. 8022f7c: 0092 lsls r2, r2, #2
  86412. 8022f7e: 4413 add r3, r2
  86413. 8022f80: 011b lsls r3, r3, #4
  86414. 8022f82: b29b uxth r3, r3
  86415. 8022f84: e001 b.n 8022f8a <dhcp_renew+0x106>
  86416. 8022f86: f644 6320 movw r3, #20000 @ 0x4e20
  86417. 8022f8a: 81fb strh r3, [r7, #14]
  86418. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  86419. 8022f8c: 89fb ldrh r3, [r7, #14]
  86420. 8022f8e: f203 13f3 addw r3, r3, #499 @ 0x1f3
  86421. 8022f92: 4a09 ldr r2, [pc, #36] @ (8022fb8 <dhcp_renew+0x134>)
  86422. 8022f94: fb82 1203 smull r1, r2, r2, r3
  86423. 8022f98: 1152 asrs r2, r2, #5
  86424. 8022f9a: 17db asrs r3, r3, #31
  86425. 8022f9c: 1ad3 subs r3, r2, r3
  86426. 8022f9e: b29a uxth r2, r3
  86427. 8022fa0: 69bb ldr r3, [r7, #24]
  86428. 8022fa2: 811a strh r2, [r3, #8]
  86429. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew(): set request timeout %"U16_F" msecs\n", msecs));
  86430. return result;
  86431. 8022fa4: f997 301f ldrsb.w r3, [r7, #31]
  86432. }
  86433. 8022fa8: 4618 mov r0, r3
  86434. 8022faa: 3720 adds r7, #32
  86435. 8022fac: 46bd mov sp, r7
  86436. 8022fae: bd80 pop {r7, pc}
  86437. 8022fb0: 24000058 .word 0x24000058
  86438. 8022fb4: 2402afe4 .word 0x2402afe4
  86439. 8022fb8: 10624dd3 .word 0x10624dd3
  86440. 08022fbc <dhcp_rebind>:
  86441. *
  86442. * @param netif network interface which must rebind with a DHCP server
  86443. */
  86444. static err_t
  86445. dhcp_rebind(struct netif *netif)
  86446. {
  86447. 8022fbc: b580 push {r7, lr}
  86448. 8022fbe: b08a sub sp, #40 @ 0x28
  86449. 8022fc0: af02 add r7, sp, #8
  86450. 8022fc2: 6078 str r0, [r7, #4]
  86451. struct dhcp *dhcp = netif_dhcp_data(netif);
  86452. 8022fc4: 687b ldr r3, [r7, #4]
  86453. 8022fc6: 6a5b ldr r3, [r3, #36] @ 0x24
  86454. 8022fc8: 61bb str r3, [r7, #24]
  86455. u8_t i;
  86456. struct pbuf *p_out;
  86457. u16_t options_out_len;
  86458. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind()\n"));
  86459. dhcp_set_state(dhcp, DHCP_STATE_REBINDING);
  86460. 8022fca: 2104 movs r1, #4
  86461. 8022fcc: 69b8 ldr r0, [r7, #24]
  86462. 8022fce: f000 f9ea bl 80233a6 <dhcp_set_state>
  86463. /* create and initialize the DHCP message header */
  86464. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  86465. 8022fd2: f107 030c add.w r3, r7, #12
  86466. 8022fd6: 2203 movs r2, #3
  86467. 8022fd8: 69b9 ldr r1, [r7, #24]
  86468. 8022fda: 6878 ldr r0, [r7, #4]
  86469. 8022fdc: f000 fe7c bl 8023cd8 <dhcp_create_msg>
  86470. 8022fe0: 6178 str r0, [r7, #20]
  86471. if (p_out != NULL) {
  86472. 8022fe2: 697b ldr r3, [r7, #20]
  86473. 8022fe4: 2b00 cmp r3, #0
  86474. 8022fe6: d04c beq.n 8023082 <dhcp_rebind+0xc6>
  86475. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  86476. 8022fe8: 697b ldr r3, [r7, #20]
  86477. 8022fea: 685b ldr r3, [r3, #4]
  86478. 8022fec: 613b str r3, [r7, #16]
  86479. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  86480. 8022fee: 89b8 ldrh r0, [r7, #12]
  86481. 8022ff0: 693b ldr r3, [r7, #16]
  86482. 8022ff2: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86483. 8022ff6: 2302 movs r3, #2
  86484. 8022ff8: 2239 movs r2, #57 @ 0x39
  86485. 8022ffa: f000 f9ef bl 80233dc <dhcp_option>
  86486. 8022ffe: 4603 mov r3, r0
  86487. 8023000: 81bb strh r3, [r7, #12]
  86488. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif));
  86489. 8023002: 89b8 ldrh r0, [r7, #12]
  86490. 8023004: 693b ldr r3, [r7, #16]
  86491. 8023006: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86492. 802300a: 687b ldr r3, [r7, #4]
  86493. 802300c: 8d1b ldrh r3, [r3, #40] @ 0x28
  86494. 802300e: 461a mov r2, r3
  86495. 8023010: f000 fa3e bl 8023490 <dhcp_option_short>
  86496. 8023014: 4603 mov r3, r0
  86497. 8023016: 81bb strh r3, [r7, #12]
  86498. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  86499. 8023018: 89b8 ldrh r0, [r7, #12]
  86500. 802301a: 693b ldr r3, [r7, #16]
  86501. 802301c: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86502. 8023020: 2303 movs r3, #3
  86503. 8023022: 2237 movs r2, #55 @ 0x37
  86504. 8023024: f000 f9da bl 80233dc <dhcp_option>
  86505. 8023028: 4603 mov r3, r0
  86506. 802302a: 81bb strh r3, [r7, #12]
  86507. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86508. 802302c: 2300 movs r3, #0
  86509. 802302e: 77bb strb r3, [r7, #30]
  86510. 8023030: e00e b.n 8023050 <dhcp_rebind+0x94>
  86511. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  86512. 8023032: 89b8 ldrh r0, [r7, #12]
  86513. 8023034: 693b ldr r3, [r7, #16]
  86514. 8023036: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86515. 802303a: 7fbb ldrb r3, [r7, #30]
  86516. 802303c: 4a28 ldr r2, [pc, #160] @ (80230e0 <dhcp_rebind+0x124>)
  86517. 802303e: 5cd3 ldrb r3, [r2, r3]
  86518. 8023040: 461a mov r2, r3
  86519. 8023042: f000 f9ff bl 8023444 <dhcp_option_byte>
  86520. 8023046: 4603 mov r3, r0
  86521. 8023048: 81bb strh r3, [r7, #12]
  86522. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86523. 802304a: 7fbb ldrb r3, [r7, #30]
  86524. 802304c: 3301 adds r3, #1
  86525. 802304e: 77bb strb r3, [r7, #30]
  86526. 8023050: 7fbb ldrb r3, [r7, #30]
  86527. 8023052: 2b02 cmp r3, #2
  86528. 8023054: d9ed bls.n 8023032 <dhcp_rebind+0x76>
  86529. #if LWIP_NETIF_HOSTNAME
  86530. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  86531. #endif /* LWIP_NETIF_HOSTNAME */
  86532. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBINDING, msg_out, DHCP_DISCOVER, &options_out_len);
  86533. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  86534. 8023056: 89b8 ldrh r0, [r7, #12]
  86535. 8023058: 693b ldr r3, [r7, #16]
  86536. 802305a: 33f0 adds r3, #240 @ 0xf0
  86537. 802305c: 697a ldr r2, [r7, #20]
  86538. 802305e: 4619 mov r1, r3
  86539. 8023060: f000 ff10 bl 8023e84 <dhcp_option_trailer>
  86540. /* broadcast to server */
  86541. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  86542. 8023064: 4b1f ldr r3, [pc, #124] @ (80230e4 <dhcp_rebind+0x128>)
  86543. 8023066: 6818 ldr r0, [r3, #0]
  86544. 8023068: 687b ldr r3, [r7, #4]
  86545. 802306a: 9300 str r3, [sp, #0]
  86546. 802306c: 2343 movs r3, #67 @ 0x43
  86547. 802306e: 4a1e ldr r2, [pc, #120] @ (80230e8 <dhcp_rebind+0x12c>)
  86548. 8023070: 6979 ldr r1, [r7, #20]
  86549. 8023072: f7fe fd71 bl 8021b58 <udp_sendto_if>
  86550. 8023076: 4603 mov r3, r0
  86551. 8023078: 77fb strb r3, [r7, #31]
  86552. pbuf_free(p_out);
  86553. 802307a: 6978 ldr r0, [r7, #20]
  86554. 802307c: f7f7 fe26 bl 801accc <pbuf_free>
  86555. 8023080: e001 b.n 8023086 <dhcp_rebind+0xca>
  86556. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind: REBINDING\n"));
  86557. } else {
  86558. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_rebind: could not allocate DHCP request\n"));
  86559. result = ERR_MEM;
  86560. 8023082: 23ff movs r3, #255 @ 0xff
  86561. 8023084: 77fb strb r3, [r7, #31]
  86562. }
  86563. if (dhcp->tries < 255) {
  86564. 8023086: 69bb ldr r3, [r7, #24]
  86565. 8023088: 799b ldrb r3, [r3, #6]
  86566. 802308a: 2bff cmp r3, #255 @ 0xff
  86567. 802308c: d005 beq.n 802309a <dhcp_rebind+0xde>
  86568. dhcp->tries++;
  86569. 802308e: 69bb ldr r3, [r7, #24]
  86570. 8023090: 799b ldrb r3, [r3, #6]
  86571. 8023092: 3301 adds r3, #1
  86572. 8023094: b2da uxtb r2, r3
  86573. 8023096: 69bb ldr r3, [r7, #24]
  86574. 8023098: 719a strb r2, [r3, #6]
  86575. }
  86576. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  86577. 802309a: 69bb ldr r3, [r7, #24]
  86578. 802309c: 799b ldrb r3, [r3, #6]
  86579. 802309e: 2b09 cmp r3, #9
  86580. 80230a0: d809 bhi.n 80230b6 <dhcp_rebind+0xfa>
  86581. 80230a2: 69bb ldr r3, [r7, #24]
  86582. 80230a4: 799b ldrb r3, [r3, #6]
  86583. 80230a6: 461a mov r2, r3
  86584. 80230a8: 0152 lsls r2, r2, #5
  86585. 80230aa: 1ad2 subs r2, r2, r3
  86586. 80230ac: 0092 lsls r2, r2, #2
  86587. 80230ae: 4413 add r3, r2
  86588. 80230b0: 00db lsls r3, r3, #3
  86589. 80230b2: b29b uxth r3, r3
  86590. 80230b4: e001 b.n 80230ba <dhcp_rebind+0xfe>
  86591. 80230b6: f242 7310 movw r3, #10000 @ 0x2710
  86592. 80230ba: 81fb strh r3, [r7, #14]
  86593. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  86594. 80230bc: 89fb ldrh r3, [r7, #14]
  86595. 80230be: f203 13f3 addw r3, r3, #499 @ 0x1f3
  86596. 80230c2: 4a0a ldr r2, [pc, #40] @ (80230ec <dhcp_rebind+0x130>)
  86597. 80230c4: fb82 1203 smull r1, r2, r2, r3
  86598. 80230c8: 1152 asrs r2, r2, #5
  86599. 80230ca: 17db asrs r3, r3, #31
  86600. 80230cc: 1ad3 subs r3, r2, r3
  86601. 80230ce: b29a uxth r2, r3
  86602. 80230d0: 69bb ldr r3, [r7, #24]
  86603. 80230d2: 811a strh r2, [r3, #8]
  86604. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind(): set request timeout %"U16_F" msecs\n", msecs));
  86605. return result;
  86606. 80230d4: f997 301f ldrsb.w r3, [r7, #31]
  86607. }
  86608. 80230d8: 4618 mov r0, r3
  86609. 80230da: 3720 adds r7, #32
  86610. 80230dc: 46bd mov sp, r7
  86611. 80230de: bd80 pop {r7, pc}
  86612. 80230e0: 24000058 .word 0x24000058
  86613. 80230e4: 2402afe4 .word 0x2402afe4
  86614. 80230e8: 080314f8 .word 0x080314f8
  86615. 80230ec: 10624dd3 .word 0x10624dd3
  86616. 080230f0 <dhcp_reboot>:
  86617. *
  86618. * @param netif network interface which must reboot
  86619. */
  86620. static err_t
  86621. dhcp_reboot(struct netif *netif)
  86622. {
  86623. 80230f0: b5b0 push {r4, r5, r7, lr}
  86624. 80230f2: b08a sub sp, #40 @ 0x28
  86625. 80230f4: af02 add r7, sp, #8
  86626. 80230f6: 6078 str r0, [r7, #4]
  86627. struct dhcp *dhcp = netif_dhcp_data(netif);
  86628. 80230f8: 687b ldr r3, [r7, #4]
  86629. 80230fa: 6a5b ldr r3, [r3, #36] @ 0x24
  86630. 80230fc: 61bb str r3, [r7, #24]
  86631. u8_t i;
  86632. struct pbuf *p_out;
  86633. u16_t options_out_len;
  86634. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot()\n"));
  86635. dhcp_set_state(dhcp, DHCP_STATE_REBOOTING);
  86636. 80230fe: 2103 movs r1, #3
  86637. 8023100: 69b8 ldr r0, [r7, #24]
  86638. 8023102: f000 f950 bl 80233a6 <dhcp_set_state>
  86639. /* create and initialize the DHCP message header */
  86640. p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len);
  86641. 8023106: f107 030c add.w r3, r7, #12
  86642. 802310a: 2203 movs r2, #3
  86643. 802310c: 69b9 ldr r1, [r7, #24]
  86644. 802310e: 6878 ldr r0, [r7, #4]
  86645. 8023110: f000 fde2 bl 8023cd8 <dhcp_create_msg>
  86646. 8023114: 6178 str r0, [r7, #20]
  86647. if (p_out != NULL) {
  86648. 8023116: 697b ldr r3, [r7, #20]
  86649. 8023118: 2b00 cmp r3, #0
  86650. 802311a: d066 beq.n 80231ea <dhcp_reboot+0xfa>
  86651. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  86652. 802311c: 697b ldr r3, [r7, #20]
  86653. 802311e: 685b ldr r3, [r3, #4]
  86654. 8023120: 613b str r3, [r7, #16]
  86655. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN);
  86656. 8023122: 89b8 ldrh r0, [r7, #12]
  86657. 8023124: 693b ldr r3, [r7, #16]
  86658. 8023126: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86659. 802312a: 2302 movs r3, #2
  86660. 802312c: 2239 movs r2, #57 @ 0x39
  86661. 802312e: f000 f955 bl 80233dc <dhcp_option>
  86662. 8023132: 4603 mov r3, r0
  86663. 8023134: 81bb strh r3, [r7, #12]
  86664. options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN_MIN_REQUIRED);
  86665. 8023136: 89b8 ldrh r0, [r7, #12]
  86666. 8023138: 693b ldr r3, [r7, #16]
  86667. 802313a: 33f0 adds r3, #240 @ 0xf0
  86668. 802313c: f44f 7210 mov.w r2, #576 @ 0x240
  86669. 8023140: 4619 mov r1, r3
  86670. 8023142: f000 f9a5 bl 8023490 <dhcp_option_short>
  86671. 8023146: 4603 mov r3, r0
  86672. 8023148: 81bb strh r3, [r7, #12]
  86673. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4);
  86674. 802314a: 89b8 ldrh r0, [r7, #12]
  86675. 802314c: 693b ldr r3, [r7, #16]
  86676. 802314e: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86677. 8023152: 2304 movs r3, #4
  86678. 8023154: 2232 movs r2, #50 @ 0x32
  86679. 8023156: f000 f941 bl 80233dc <dhcp_option>
  86680. 802315a: 4603 mov r3, r0
  86681. 802315c: 81bb strh r3, [r7, #12]
  86682. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr)));
  86683. 802315e: 89bc ldrh r4, [r7, #12]
  86684. 8023160: 693b ldr r3, [r7, #16]
  86685. 8023162: f103 05f0 add.w r5, r3, #240 @ 0xf0
  86686. 8023166: 69bb ldr r3, [r7, #24]
  86687. 8023168: 69db ldr r3, [r3, #28]
  86688. 802316a: 4618 mov r0, r3
  86689. 802316c: f7f6 f8e1 bl 8019332 <lwip_htonl>
  86690. 8023170: 4603 mov r3, r0
  86691. 8023172: 461a mov r2, r3
  86692. 8023174: 4629 mov r1, r5
  86693. 8023176: 4620 mov r0, r4
  86694. 8023178: f000 f9bc bl 80234f4 <dhcp_option_long>
  86695. 802317c: 4603 mov r3, r0
  86696. 802317e: 81bb strh r3, [r7, #12]
  86697. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options));
  86698. 8023180: 89b8 ldrh r0, [r7, #12]
  86699. 8023182: 693b ldr r3, [r7, #16]
  86700. 8023184: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86701. 8023188: 2303 movs r3, #3
  86702. 802318a: 2237 movs r2, #55 @ 0x37
  86703. 802318c: f000 f926 bl 80233dc <dhcp_option>
  86704. 8023190: 4603 mov r3, r0
  86705. 8023192: 81bb strh r3, [r7, #12]
  86706. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86707. 8023194: 2300 movs r3, #0
  86708. 8023196: 77bb strb r3, [r7, #30]
  86709. 8023198: e00e b.n 80231b8 <dhcp_reboot+0xc8>
  86710. options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]);
  86711. 802319a: 89b8 ldrh r0, [r7, #12]
  86712. 802319c: 693b ldr r3, [r7, #16]
  86713. 802319e: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86714. 80231a2: 7fbb ldrb r3, [r7, #30]
  86715. 80231a4: 4a28 ldr r2, [pc, #160] @ (8023248 <dhcp_reboot+0x158>)
  86716. 80231a6: 5cd3 ldrb r3, [r2, r3]
  86717. 80231a8: 461a mov r2, r3
  86718. 80231aa: f000 f94b bl 8023444 <dhcp_option_byte>
  86719. 80231ae: 4603 mov r3, r0
  86720. 80231b0: 81bb strh r3, [r7, #12]
  86721. for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) {
  86722. 80231b2: 7fbb ldrb r3, [r7, #30]
  86723. 80231b4: 3301 adds r3, #1
  86724. 80231b6: 77bb strb r3, [r7, #30]
  86725. 80231b8: 7fbb ldrb r3, [r7, #30]
  86726. 80231ba: 2b02 cmp r3, #2
  86727. 80231bc: d9ed bls.n 802319a <dhcp_reboot+0xaa>
  86728. #if LWIP_NETIF_HOSTNAME
  86729. options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif);
  86730. #endif /* LWIP_NETIF_HOSTNAME */
  86731. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBOOTING, msg_out, DHCP_REQUEST, &options_out_len);
  86732. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  86733. 80231be: 89b8 ldrh r0, [r7, #12]
  86734. 80231c0: 693b ldr r3, [r7, #16]
  86735. 80231c2: 33f0 adds r3, #240 @ 0xf0
  86736. 80231c4: 697a ldr r2, [r7, #20]
  86737. 80231c6: 4619 mov r1, r3
  86738. 80231c8: f000 fe5c bl 8023e84 <dhcp_option_trailer>
  86739. /* broadcast to server */
  86740. result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif);
  86741. 80231cc: 4b1f ldr r3, [pc, #124] @ (802324c <dhcp_reboot+0x15c>)
  86742. 80231ce: 6818 ldr r0, [r3, #0]
  86743. 80231d0: 687b ldr r3, [r7, #4]
  86744. 80231d2: 9300 str r3, [sp, #0]
  86745. 80231d4: 2343 movs r3, #67 @ 0x43
  86746. 80231d6: 4a1e ldr r2, [pc, #120] @ (8023250 <dhcp_reboot+0x160>)
  86747. 80231d8: 6979 ldr r1, [r7, #20]
  86748. 80231da: f7fe fcbd bl 8021b58 <udp_sendto_if>
  86749. 80231de: 4603 mov r3, r0
  86750. 80231e0: 77fb strb r3, [r7, #31]
  86751. pbuf_free(p_out);
  86752. 80231e2: 6978 ldr r0, [r7, #20]
  86753. 80231e4: f7f7 fd72 bl 801accc <pbuf_free>
  86754. 80231e8: e001 b.n 80231ee <dhcp_reboot+0xfe>
  86755. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot: REBOOTING\n"));
  86756. } else {
  86757. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_reboot: could not allocate DHCP request\n"));
  86758. result = ERR_MEM;
  86759. 80231ea: 23ff movs r3, #255 @ 0xff
  86760. 80231ec: 77fb strb r3, [r7, #31]
  86761. }
  86762. if (dhcp->tries < 255) {
  86763. 80231ee: 69bb ldr r3, [r7, #24]
  86764. 80231f0: 799b ldrb r3, [r3, #6]
  86765. 80231f2: 2bff cmp r3, #255 @ 0xff
  86766. 80231f4: d005 beq.n 8023202 <dhcp_reboot+0x112>
  86767. dhcp->tries++;
  86768. 80231f6: 69bb ldr r3, [r7, #24]
  86769. 80231f8: 799b ldrb r3, [r3, #6]
  86770. 80231fa: 3301 adds r3, #1
  86771. 80231fc: b2da uxtb r2, r3
  86772. 80231fe: 69bb ldr r3, [r7, #24]
  86773. 8023200: 719a strb r2, [r3, #6]
  86774. }
  86775. msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000);
  86776. 8023202: 69bb ldr r3, [r7, #24]
  86777. 8023204: 799b ldrb r3, [r3, #6]
  86778. 8023206: 2b09 cmp r3, #9
  86779. 8023208: d809 bhi.n 802321e <dhcp_reboot+0x12e>
  86780. 802320a: 69bb ldr r3, [r7, #24]
  86781. 802320c: 799b ldrb r3, [r3, #6]
  86782. 802320e: 461a mov r2, r3
  86783. 8023210: 0152 lsls r2, r2, #5
  86784. 8023212: 1ad2 subs r2, r2, r3
  86785. 8023214: 0092 lsls r2, r2, #2
  86786. 8023216: 4413 add r3, r2
  86787. 8023218: 00db lsls r3, r3, #3
  86788. 802321a: b29b uxth r3, r3
  86789. 802321c: e001 b.n 8023222 <dhcp_reboot+0x132>
  86790. 802321e: f242 7310 movw r3, #10000 @ 0x2710
  86791. 8023222: 81fb strh r3, [r7, #14]
  86792. dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS);
  86793. 8023224: 89fb ldrh r3, [r7, #14]
  86794. 8023226: f203 13f3 addw r3, r3, #499 @ 0x1f3
  86795. 802322a: 4a0a ldr r2, [pc, #40] @ (8023254 <dhcp_reboot+0x164>)
  86796. 802322c: fb82 1203 smull r1, r2, r2, r3
  86797. 8023230: 1152 asrs r2, r2, #5
  86798. 8023232: 17db asrs r3, r3, #31
  86799. 8023234: 1ad3 subs r3, r2, r3
  86800. 8023236: b29a uxth r2, r3
  86801. 8023238: 69bb ldr r3, [r7, #24]
  86802. 802323a: 811a strh r2, [r3, #8]
  86803. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot(): set request timeout %"U16_F" msecs\n", msecs));
  86804. return result;
  86805. 802323c: f997 301f ldrsb.w r3, [r7, #31]
  86806. }
  86807. 8023240: 4618 mov r0, r3
  86808. 8023242: 3720 adds r7, #32
  86809. 8023244: 46bd mov sp, r7
  86810. 8023246: bdb0 pop {r4, r5, r7, pc}
  86811. 8023248: 24000058 .word 0x24000058
  86812. 802324c: 2402afe4 .word 0x2402afe4
  86813. 8023250: 080314f8 .word 0x080314f8
  86814. 8023254: 10624dd3 .word 0x10624dd3
  86815. 08023258 <dhcp_release_and_stop>:
  86816. *
  86817. * @param netif network interface
  86818. */
  86819. void
  86820. dhcp_release_and_stop(struct netif *netif)
  86821. {
  86822. 8023258: b5b0 push {r4, r5, r7, lr}
  86823. 802325a: b08a sub sp, #40 @ 0x28
  86824. 802325c: af02 add r7, sp, #8
  86825. 802325e: 6078 str r0, [r7, #4]
  86826. struct dhcp *dhcp = netif_dhcp_data(netif);
  86827. 8023260: 687b ldr r3, [r7, #4]
  86828. 8023262: 6a5b ldr r3, [r3, #36] @ 0x24
  86829. 8023264: 61fb str r3, [r7, #28]
  86830. ip_addr_t server_ip_addr;
  86831. LWIP_ASSERT_CORE_LOCKED();
  86832. 8023266: f7ed fc09 bl 8010a7c <sys_check_core_locking>
  86833. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_release_and_stop()\n"));
  86834. if (dhcp == NULL) {
  86835. 802326a: 69fb ldr r3, [r7, #28]
  86836. 802326c: 2b00 cmp r3, #0
  86837. 802326e: f000 8084 beq.w 802337a <dhcp_release_and_stop+0x122>
  86838. return;
  86839. }
  86840. /* already off? -> nothing to do */
  86841. if (dhcp->state == DHCP_STATE_OFF) {
  86842. 8023272: 69fb ldr r3, [r7, #28]
  86843. 8023274: 795b ldrb r3, [r3, #5]
  86844. 8023276: 2b00 cmp r3, #0
  86845. 8023278: f000 8081 beq.w 802337e <dhcp_release_and_stop+0x126>
  86846. return;
  86847. }
  86848. ip_addr_copy(server_ip_addr, dhcp->server_ip_addr);
  86849. 802327c: 69fb ldr r3, [r7, #28]
  86850. 802327e: 699b ldr r3, [r3, #24]
  86851. 8023280: 613b str r3, [r7, #16]
  86852. /* clean old DHCP offer */
  86853. ip_addr_set_zero_ip4(&dhcp->server_ip_addr);
  86854. 8023282: 69fb ldr r3, [r7, #28]
  86855. 8023284: 2200 movs r2, #0
  86856. 8023286: 619a str r2, [r3, #24]
  86857. ip4_addr_set_zero(&dhcp->offered_ip_addr);
  86858. 8023288: 69fb ldr r3, [r7, #28]
  86859. 802328a: 2200 movs r2, #0
  86860. 802328c: 61da str r2, [r3, #28]
  86861. ip4_addr_set_zero(&dhcp->offered_sn_mask);
  86862. 802328e: 69fb ldr r3, [r7, #28]
  86863. 8023290: 2200 movs r2, #0
  86864. 8023292: 621a str r2, [r3, #32]
  86865. ip4_addr_set_zero(&dhcp->offered_gw_addr);
  86866. 8023294: 69fb ldr r3, [r7, #28]
  86867. 8023296: 2200 movs r2, #0
  86868. 8023298: 625a str r2, [r3, #36] @ 0x24
  86869. #if LWIP_DHCP_BOOTP_FILE
  86870. ip4_addr_set_zero(&dhcp->offered_si_addr);
  86871. #endif /* LWIP_DHCP_BOOTP_FILE */
  86872. dhcp->offered_t0_lease = dhcp->offered_t1_renew = dhcp->offered_t2_rebind = 0;
  86873. 802329a: 69fb ldr r3, [r7, #28]
  86874. 802329c: 2200 movs r2, #0
  86875. 802329e: 631a str r2, [r3, #48] @ 0x30
  86876. 80232a0: 69fb ldr r3, [r7, #28]
  86877. 80232a2: 6b1a ldr r2, [r3, #48] @ 0x30
  86878. 80232a4: 69fb ldr r3, [r7, #28]
  86879. 80232a6: 62da str r2, [r3, #44] @ 0x2c
  86880. 80232a8: 69fb ldr r3, [r7, #28]
  86881. 80232aa: 6ada ldr r2, [r3, #44] @ 0x2c
  86882. 80232ac: 69fb ldr r3, [r7, #28]
  86883. 80232ae: 629a str r2, [r3, #40] @ 0x28
  86884. dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0;
  86885. 80232b0: 69fb ldr r3, [r7, #28]
  86886. 80232b2: 2200 movs r2, #0
  86887. 80232b4: 829a strh r2, [r3, #20]
  86888. 80232b6: 69fb ldr r3, [r7, #28]
  86889. 80232b8: 8a9a ldrh r2, [r3, #20]
  86890. 80232ba: 69fb ldr r3, [r7, #28]
  86891. 80232bc: 825a strh r2, [r3, #18]
  86892. 80232be: 69fb ldr r3, [r7, #28]
  86893. 80232c0: 8a5a ldrh r2, [r3, #18]
  86894. 80232c2: 69fb ldr r3, [r7, #28]
  86895. 80232c4: 821a strh r2, [r3, #16]
  86896. 80232c6: 69fb ldr r3, [r7, #28]
  86897. 80232c8: 8a1a ldrh r2, [r3, #16]
  86898. 80232ca: 69fb ldr r3, [r7, #28]
  86899. 80232cc: 81da strh r2, [r3, #14]
  86900. /* send release message when current IP was assigned via DHCP */
  86901. if (dhcp_supplied_address(netif)) {
  86902. 80232ce: 6878 ldr r0, [r7, #4]
  86903. 80232d0: f000 fe06 bl 8023ee0 <dhcp_supplied_address>
  86904. 80232d4: 4603 mov r3, r0
  86905. 80232d6: 2b00 cmp r3, #0
  86906. 80232d8: d03b beq.n 8023352 <dhcp_release_and_stop+0xfa>
  86907. /* create and initialize the DHCP message header */
  86908. struct pbuf *p_out;
  86909. u16_t options_out_len;
  86910. p_out = dhcp_create_msg(netif, dhcp, DHCP_RELEASE, &options_out_len);
  86911. 80232da: f107 030e add.w r3, r7, #14
  86912. 80232de: 2207 movs r2, #7
  86913. 80232e0: 69f9 ldr r1, [r7, #28]
  86914. 80232e2: 6878 ldr r0, [r7, #4]
  86915. 80232e4: f000 fcf8 bl 8023cd8 <dhcp_create_msg>
  86916. 80232e8: 61b8 str r0, [r7, #24]
  86917. if (p_out != NULL) {
  86918. 80232ea: 69bb ldr r3, [r7, #24]
  86919. 80232ec: 2b00 cmp r3, #0
  86920. 80232ee: d030 beq.n 8023352 <dhcp_release_and_stop+0xfa>
  86921. struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
  86922. 80232f0: 69bb ldr r3, [r7, #24]
  86923. 80232f2: 685b ldr r3, [r3, #4]
  86924. 80232f4: 617b str r3, [r7, #20]
  86925. options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4);
  86926. 80232f6: 89f8 ldrh r0, [r7, #14]
  86927. 80232f8: 697b ldr r3, [r7, #20]
  86928. 80232fa: f103 01f0 add.w r1, r3, #240 @ 0xf0
  86929. 80232fe: 2304 movs r3, #4
  86930. 8023300: 2236 movs r2, #54 @ 0x36
  86931. 8023302: f000 f86b bl 80233dc <dhcp_option>
  86932. 8023306: 4603 mov r3, r0
  86933. 8023308: 81fb strh r3, [r7, #14]
  86934. options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&server_ip_addr))));
  86935. 802330a: 89fc ldrh r4, [r7, #14]
  86936. 802330c: 697b ldr r3, [r7, #20]
  86937. 802330e: f103 05f0 add.w r5, r3, #240 @ 0xf0
  86938. 8023312: 693b ldr r3, [r7, #16]
  86939. 8023314: 4618 mov r0, r3
  86940. 8023316: f7f6 f80c bl 8019332 <lwip_htonl>
  86941. 802331a: 4603 mov r3, r0
  86942. 802331c: 461a mov r2, r3
  86943. 802331e: 4629 mov r1, r5
  86944. 8023320: 4620 mov r0, r4
  86945. 8023322: f000 f8e7 bl 80234f4 <dhcp_option_long>
  86946. 8023326: 4603 mov r3, r0
  86947. 8023328: 81fb strh r3, [r7, #14]
  86948. LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, dhcp->state, msg_out, DHCP_RELEASE, &options_out_len);
  86949. dhcp_option_trailer(options_out_len, msg_out->options, p_out);
  86950. 802332a: 89f8 ldrh r0, [r7, #14]
  86951. 802332c: 697b ldr r3, [r7, #20]
  86952. 802332e: 33f0 adds r3, #240 @ 0xf0
  86953. 8023330: 69ba ldr r2, [r7, #24]
  86954. 8023332: 4619 mov r1, r3
  86955. 8023334: f000 fda6 bl 8023e84 <dhcp_option_trailer>
  86956. udp_sendto_if(dhcp_pcb, p_out, &server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif);
  86957. 8023338: 4b13 ldr r3, [pc, #76] @ (8023388 <dhcp_release_and_stop+0x130>)
  86958. 802333a: 6818 ldr r0, [r3, #0]
  86959. 802333c: f107 0210 add.w r2, r7, #16
  86960. 8023340: 687b ldr r3, [r7, #4]
  86961. 8023342: 9300 str r3, [sp, #0]
  86962. 8023344: 2343 movs r3, #67 @ 0x43
  86963. 8023346: 69b9 ldr r1, [r7, #24]
  86964. 8023348: f7fe fc06 bl 8021b58 <udp_sendto_if>
  86965. pbuf_free(p_out);
  86966. 802334c: 69b8 ldr r0, [r7, #24]
  86967. 802334e: f7f7 fcbd bl 801accc <pbuf_free>
  86968. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n"));
  86969. }
  86970. }
  86971. /* remove IP address from interface (prevents routing from selecting this interface) */
  86972. netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4);
  86973. 8023352: 4b0e ldr r3, [pc, #56] @ (802338c <dhcp_release_and_stop+0x134>)
  86974. 8023354: 4a0d ldr r2, [pc, #52] @ (802338c <dhcp_release_and_stop+0x134>)
  86975. 8023356: 490d ldr r1, [pc, #52] @ (802338c <dhcp_release_and_stop+0x134>)
  86976. 8023358: 6878 ldr r0, [r7, #4]
  86977. 802335a: f7f6 ff6d bl 801a238 <netif_set_addr>
  86978. autoip_stop(netif);
  86979. dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF;
  86980. }
  86981. #endif /* LWIP_DHCP_AUTOIP_COOP */
  86982. dhcp_set_state(dhcp, DHCP_STATE_OFF);
  86983. 802335e: 2100 movs r1, #0
  86984. 8023360: 69f8 ldr r0, [r7, #28]
  86985. 8023362: f000 f820 bl 80233a6 <dhcp_set_state>
  86986. if (dhcp->pcb_allocated != 0) {
  86987. 8023366: 69fb ldr r3, [r7, #28]
  86988. 8023368: 791b ldrb r3, [r3, #4]
  86989. 802336a: 2b00 cmp r3, #0
  86990. 802336c: d008 beq.n 8023380 <dhcp_release_and_stop+0x128>
  86991. dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */
  86992. 802336e: f7fe ff83 bl 8022278 <dhcp_dec_pcb_refcount>
  86993. dhcp->pcb_allocated = 0;
  86994. 8023372: 69fb ldr r3, [r7, #28]
  86995. 8023374: 2200 movs r2, #0
  86996. 8023376: 711a strb r2, [r3, #4]
  86997. 8023378: e002 b.n 8023380 <dhcp_release_and_stop+0x128>
  86998. return;
  86999. 802337a: bf00 nop
  87000. 802337c: e000 b.n 8023380 <dhcp_release_and_stop+0x128>
  87001. return;
  87002. 802337e: bf00 nop
  87003. }
  87004. }
  87005. 8023380: 3720 adds r7, #32
  87006. 8023382: 46bd mov sp, r7
  87007. 8023384: bdb0 pop {r4, r5, r7, pc}
  87008. 8023386: bf00 nop
  87009. 8023388: 2402afe4 .word 0x2402afe4
  87010. 802338c: 080314f4 .word 0x080314f4
  87011. 08023390 <dhcp_stop>:
  87012. * This function calls dhcp_release_and_stop() internally.
  87013. * @deprecated Use dhcp_release_and_stop() instead.
  87014. */
  87015. void
  87016. dhcp_stop(struct netif *netif)
  87017. {
  87018. 8023390: b580 push {r7, lr}
  87019. 8023392: b082 sub sp, #8
  87020. 8023394: af00 add r7, sp, #0
  87021. 8023396: 6078 str r0, [r7, #4]
  87022. dhcp_release_and_stop(netif);
  87023. 8023398: 6878 ldr r0, [r7, #4]
  87024. 802339a: f7ff ff5d bl 8023258 <dhcp_release_and_stop>
  87025. }
  87026. 802339e: bf00 nop
  87027. 80233a0: 3708 adds r7, #8
  87028. 80233a2: 46bd mov sp, r7
  87029. 80233a4: bd80 pop {r7, pc}
  87030. 080233a6 <dhcp_set_state>:
  87031. *
  87032. * If the state changed, reset the number of tries.
  87033. */
  87034. static void
  87035. dhcp_set_state(struct dhcp *dhcp, u8_t new_state)
  87036. {
  87037. 80233a6: b480 push {r7}
  87038. 80233a8: b083 sub sp, #12
  87039. 80233aa: af00 add r7, sp, #0
  87040. 80233ac: 6078 str r0, [r7, #4]
  87041. 80233ae: 460b mov r3, r1
  87042. 80233b0: 70fb strb r3, [r7, #3]
  87043. if (new_state != dhcp->state) {
  87044. 80233b2: 687b ldr r3, [r7, #4]
  87045. 80233b4: 795b ldrb r3, [r3, #5]
  87046. 80233b6: 78fa ldrb r2, [r7, #3]
  87047. 80233b8: 429a cmp r2, r3
  87048. 80233ba: d008 beq.n 80233ce <dhcp_set_state+0x28>
  87049. dhcp->state = new_state;
  87050. 80233bc: 687b ldr r3, [r7, #4]
  87051. 80233be: 78fa ldrb r2, [r7, #3]
  87052. 80233c0: 715a strb r2, [r3, #5]
  87053. dhcp->tries = 0;
  87054. 80233c2: 687b ldr r3, [r7, #4]
  87055. 80233c4: 2200 movs r2, #0
  87056. 80233c6: 719a strb r2, [r3, #6]
  87057. dhcp->request_timeout = 0;
  87058. 80233c8: 687b ldr r3, [r7, #4]
  87059. 80233ca: 2200 movs r2, #0
  87060. 80233cc: 811a strh r2, [r3, #8]
  87061. }
  87062. }
  87063. 80233ce: bf00 nop
  87064. 80233d0: 370c adds r7, #12
  87065. 80233d2: 46bd mov sp, r7
  87066. 80233d4: f85d 7b04 ldr.w r7, [sp], #4
  87067. 80233d8: 4770 bx lr
  87068. ...
  87069. 080233dc <dhcp_option>:
  87070. * DHCP message.
  87071. *
  87072. */
  87073. static u16_t
  87074. dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len)
  87075. {
  87076. 80233dc: b580 push {r7, lr}
  87077. 80233de: b082 sub sp, #8
  87078. 80233e0: af00 add r7, sp, #0
  87079. 80233e2: 6039 str r1, [r7, #0]
  87080. 80233e4: 4611 mov r1, r2
  87081. 80233e6: 461a mov r2, r3
  87082. 80233e8: 4603 mov r3, r0
  87083. 80233ea: 80fb strh r3, [r7, #6]
  87084. 80233ec: 460b mov r3, r1
  87085. 80233ee: 717b strb r3, [r7, #5]
  87086. 80233f0: 4613 mov r3, r2
  87087. 80233f2: 713b strb r3, [r7, #4]
  87088. LWIP_ASSERT("dhcp_option: options_out_len + 2 + option_len <= DHCP_OPTIONS_LEN", options_out_len + 2U + option_len <= DHCP_OPTIONS_LEN);
  87089. 80233f4: 88fa ldrh r2, [r7, #6]
  87090. 80233f6: 793b ldrb r3, [r7, #4]
  87091. 80233f8: 4413 add r3, r2
  87092. 80233fa: 3302 adds r3, #2
  87093. 80233fc: 2b44 cmp r3, #68 @ 0x44
  87094. 80233fe: d906 bls.n 802340e <dhcp_option+0x32>
  87095. 8023400: 4b0d ldr r3, [pc, #52] @ (8023438 <dhcp_option+0x5c>)
  87096. 8023402: f240 529a movw r2, #1434 @ 0x59a
  87097. 8023406: 490d ldr r1, [pc, #52] @ (802343c <dhcp_option+0x60>)
  87098. 8023408: 480d ldr r0, [pc, #52] @ (8023440 <dhcp_option+0x64>)
  87099. 802340a: f006 fed7 bl 802a1bc <iprintf>
  87100. options[options_out_len++] = option_type;
  87101. 802340e: 88fb ldrh r3, [r7, #6]
  87102. 8023410: 1c5a adds r2, r3, #1
  87103. 8023412: 80fa strh r2, [r7, #6]
  87104. 8023414: 461a mov r2, r3
  87105. 8023416: 683b ldr r3, [r7, #0]
  87106. 8023418: 4413 add r3, r2
  87107. 802341a: 797a ldrb r2, [r7, #5]
  87108. 802341c: 701a strb r2, [r3, #0]
  87109. options[options_out_len++] = option_len;
  87110. 802341e: 88fb ldrh r3, [r7, #6]
  87111. 8023420: 1c5a adds r2, r3, #1
  87112. 8023422: 80fa strh r2, [r7, #6]
  87113. 8023424: 461a mov r2, r3
  87114. 8023426: 683b ldr r3, [r7, #0]
  87115. 8023428: 4413 add r3, r2
  87116. 802342a: 793a ldrb r2, [r7, #4]
  87117. 802342c: 701a strb r2, [r3, #0]
  87118. return options_out_len;
  87119. 802342e: 88fb ldrh r3, [r7, #6]
  87120. }
  87121. 8023430: 4618 mov r0, r3
  87122. 8023432: 3708 adds r7, #8
  87123. 8023434: 46bd mov sp, r7
  87124. 8023436: bd80 pop {r7, pc}
  87125. 8023438: 080306e8 .word 0x080306e8
  87126. 802343c: 0803087c .word 0x0803087c
  87127. 8023440: 08030748 .word 0x08030748
  87128. 08023444 <dhcp_option_byte>:
  87129. * Concatenate a single byte to the outgoing DHCP message.
  87130. *
  87131. */
  87132. static u16_t
  87133. dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value)
  87134. {
  87135. 8023444: b580 push {r7, lr}
  87136. 8023446: b082 sub sp, #8
  87137. 8023448: af00 add r7, sp, #0
  87138. 802344a: 4603 mov r3, r0
  87139. 802344c: 6039 str r1, [r7, #0]
  87140. 802344e: 80fb strh r3, [r7, #6]
  87141. 8023450: 4613 mov r3, r2
  87142. 8023452: 717b strb r3, [r7, #5]
  87143. LWIP_ASSERT("dhcp_option_byte: options_out_len < DHCP_OPTIONS_LEN", options_out_len < DHCP_OPTIONS_LEN);
  87144. 8023454: 88fb ldrh r3, [r7, #6]
  87145. 8023456: 2b43 cmp r3, #67 @ 0x43
  87146. 8023458: d906 bls.n 8023468 <dhcp_option_byte+0x24>
  87147. 802345a: 4b0a ldr r3, [pc, #40] @ (8023484 <dhcp_option_byte+0x40>)
  87148. 802345c: f240 52a6 movw r2, #1446 @ 0x5a6
  87149. 8023460: 4909 ldr r1, [pc, #36] @ (8023488 <dhcp_option_byte+0x44>)
  87150. 8023462: 480a ldr r0, [pc, #40] @ (802348c <dhcp_option_byte+0x48>)
  87151. 8023464: f006 feaa bl 802a1bc <iprintf>
  87152. options[options_out_len++] = value;
  87153. 8023468: 88fb ldrh r3, [r7, #6]
  87154. 802346a: 1c5a adds r2, r3, #1
  87155. 802346c: 80fa strh r2, [r7, #6]
  87156. 802346e: 461a mov r2, r3
  87157. 8023470: 683b ldr r3, [r7, #0]
  87158. 8023472: 4413 add r3, r2
  87159. 8023474: 797a ldrb r2, [r7, #5]
  87160. 8023476: 701a strb r2, [r3, #0]
  87161. return options_out_len;
  87162. 8023478: 88fb ldrh r3, [r7, #6]
  87163. }
  87164. 802347a: 4618 mov r0, r3
  87165. 802347c: 3708 adds r7, #8
  87166. 802347e: 46bd mov sp, r7
  87167. 8023480: bd80 pop {r7, pc}
  87168. 8023482: bf00 nop
  87169. 8023484: 080306e8 .word 0x080306e8
  87170. 8023488: 080308c0 .word 0x080308c0
  87171. 802348c: 08030748 .word 0x08030748
  87172. 08023490 <dhcp_option_short>:
  87173. static u16_t
  87174. dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value)
  87175. {
  87176. 8023490: b580 push {r7, lr}
  87177. 8023492: b082 sub sp, #8
  87178. 8023494: af00 add r7, sp, #0
  87179. 8023496: 4603 mov r3, r0
  87180. 8023498: 6039 str r1, [r7, #0]
  87181. 802349a: 80fb strh r3, [r7, #6]
  87182. 802349c: 4613 mov r3, r2
  87183. 802349e: 80bb strh r3, [r7, #4]
  87184. LWIP_ASSERT("dhcp_option_short: options_out_len + 2 <= DHCP_OPTIONS_LEN", options_out_len + 2U <= DHCP_OPTIONS_LEN);
  87185. 80234a0: 88fb ldrh r3, [r7, #6]
  87186. 80234a2: 3302 adds r3, #2
  87187. 80234a4: 2b44 cmp r3, #68 @ 0x44
  87188. 80234a6: d906 bls.n 80234b6 <dhcp_option_short+0x26>
  87189. 80234a8: 4b0f ldr r3, [pc, #60] @ (80234e8 <dhcp_option_short+0x58>)
  87190. 80234aa: f240 52ae movw r2, #1454 @ 0x5ae
  87191. 80234ae: 490f ldr r1, [pc, #60] @ (80234ec <dhcp_option_short+0x5c>)
  87192. 80234b0: 480f ldr r0, [pc, #60] @ (80234f0 <dhcp_option_short+0x60>)
  87193. 80234b2: f006 fe83 bl 802a1bc <iprintf>
  87194. options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8);
  87195. 80234b6: 88bb ldrh r3, [r7, #4]
  87196. 80234b8: 0a1b lsrs r3, r3, #8
  87197. 80234ba: b29a uxth r2, r3
  87198. 80234bc: 88fb ldrh r3, [r7, #6]
  87199. 80234be: 1c59 adds r1, r3, #1
  87200. 80234c0: 80f9 strh r1, [r7, #6]
  87201. 80234c2: 4619 mov r1, r3
  87202. 80234c4: 683b ldr r3, [r7, #0]
  87203. 80234c6: 440b add r3, r1
  87204. 80234c8: b2d2 uxtb r2, r2
  87205. 80234ca: 701a strb r2, [r3, #0]
  87206. options[options_out_len++] = (u8_t) (value & 0x00ffU);
  87207. 80234cc: 88fb ldrh r3, [r7, #6]
  87208. 80234ce: 1c5a adds r2, r3, #1
  87209. 80234d0: 80fa strh r2, [r7, #6]
  87210. 80234d2: 461a mov r2, r3
  87211. 80234d4: 683b ldr r3, [r7, #0]
  87212. 80234d6: 4413 add r3, r2
  87213. 80234d8: 88ba ldrh r2, [r7, #4]
  87214. 80234da: b2d2 uxtb r2, r2
  87215. 80234dc: 701a strb r2, [r3, #0]
  87216. return options_out_len;
  87217. 80234de: 88fb ldrh r3, [r7, #6]
  87218. }
  87219. 80234e0: 4618 mov r0, r3
  87220. 80234e2: 3708 adds r7, #8
  87221. 80234e4: 46bd mov sp, r7
  87222. 80234e6: bd80 pop {r7, pc}
  87223. 80234e8: 080306e8 .word 0x080306e8
  87224. 80234ec: 080308f8 .word 0x080308f8
  87225. 80234f0: 08030748 .word 0x08030748
  87226. 080234f4 <dhcp_option_long>:
  87227. static u16_t
  87228. dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value)
  87229. {
  87230. 80234f4: b580 push {r7, lr}
  87231. 80234f6: b084 sub sp, #16
  87232. 80234f8: af00 add r7, sp, #0
  87233. 80234fa: 4603 mov r3, r0
  87234. 80234fc: 60b9 str r1, [r7, #8]
  87235. 80234fe: 607a str r2, [r7, #4]
  87236. 8023500: 81fb strh r3, [r7, #14]
  87237. LWIP_ASSERT("dhcp_option_long: options_out_len + 4 <= DHCP_OPTIONS_LEN", options_out_len + 4U <= DHCP_OPTIONS_LEN);
  87238. 8023502: 89fb ldrh r3, [r7, #14]
  87239. 8023504: 3304 adds r3, #4
  87240. 8023506: 2b44 cmp r3, #68 @ 0x44
  87241. 8023508: d906 bls.n 8023518 <dhcp_option_long+0x24>
  87242. 802350a: 4b19 ldr r3, [pc, #100] @ (8023570 <dhcp_option_long+0x7c>)
  87243. 802350c: f240 52b7 movw r2, #1463 @ 0x5b7
  87244. 8023510: 4918 ldr r1, [pc, #96] @ (8023574 <dhcp_option_long+0x80>)
  87245. 8023512: 4819 ldr r0, [pc, #100] @ (8023578 <dhcp_option_long+0x84>)
  87246. 8023514: f006 fe52 bl 802a1bc <iprintf>
  87247. options[options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24);
  87248. 8023518: 687b ldr r3, [r7, #4]
  87249. 802351a: 0e1a lsrs r2, r3, #24
  87250. 802351c: 89fb ldrh r3, [r7, #14]
  87251. 802351e: 1c59 adds r1, r3, #1
  87252. 8023520: 81f9 strh r1, [r7, #14]
  87253. 8023522: 4619 mov r1, r3
  87254. 8023524: 68bb ldr r3, [r7, #8]
  87255. 8023526: 440b add r3, r1
  87256. 8023528: b2d2 uxtb r2, r2
  87257. 802352a: 701a strb r2, [r3, #0]
  87258. options[options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16);
  87259. 802352c: 687b ldr r3, [r7, #4]
  87260. 802352e: 0c1a lsrs r2, r3, #16
  87261. 8023530: 89fb ldrh r3, [r7, #14]
  87262. 8023532: 1c59 adds r1, r3, #1
  87263. 8023534: 81f9 strh r1, [r7, #14]
  87264. 8023536: 4619 mov r1, r3
  87265. 8023538: 68bb ldr r3, [r7, #8]
  87266. 802353a: 440b add r3, r1
  87267. 802353c: b2d2 uxtb r2, r2
  87268. 802353e: 701a strb r2, [r3, #0]
  87269. options[options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8);
  87270. 8023540: 687b ldr r3, [r7, #4]
  87271. 8023542: 0a1a lsrs r2, r3, #8
  87272. 8023544: 89fb ldrh r3, [r7, #14]
  87273. 8023546: 1c59 adds r1, r3, #1
  87274. 8023548: 81f9 strh r1, [r7, #14]
  87275. 802354a: 4619 mov r1, r3
  87276. 802354c: 68bb ldr r3, [r7, #8]
  87277. 802354e: 440b add r3, r1
  87278. 8023550: b2d2 uxtb r2, r2
  87279. 8023552: 701a strb r2, [r3, #0]
  87280. options[options_out_len++] = (u8_t)((value & 0x000000ffUL));
  87281. 8023554: 89fb ldrh r3, [r7, #14]
  87282. 8023556: 1c5a adds r2, r3, #1
  87283. 8023558: 81fa strh r2, [r7, #14]
  87284. 802355a: 461a mov r2, r3
  87285. 802355c: 68bb ldr r3, [r7, #8]
  87286. 802355e: 4413 add r3, r2
  87287. 8023560: 687a ldr r2, [r7, #4]
  87288. 8023562: b2d2 uxtb r2, r2
  87289. 8023564: 701a strb r2, [r3, #0]
  87290. return options_out_len;
  87291. 8023566: 89fb ldrh r3, [r7, #14]
  87292. }
  87293. 8023568: 4618 mov r0, r3
  87294. 802356a: 3710 adds r7, #16
  87295. 802356c: 46bd mov sp, r7
  87296. 802356e: bd80 pop {r7, pc}
  87297. 8023570: 080306e8 .word 0x080306e8
  87298. 8023574: 08030934 .word 0x08030934
  87299. 8023578: 08030748 .word 0x08030748
  87300. 0802357c <dhcp_parse_reply>:
  87301. * use that further on.
  87302. *
  87303. */
  87304. static err_t
  87305. dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp)
  87306. {
  87307. 802357c: b580 push {r7, lr}
  87308. 802357e: b092 sub sp, #72 @ 0x48
  87309. 8023580: af00 add r7, sp, #0
  87310. 8023582: 6078 str r0, [r7, #4]
  87311. 8023584: 6039 str r1, [r7, #0]
  87312. u16_t offset;
  87313. u16_t offset_max;
  87314. u16_t options_idx;
  87315. u16_t options_idx_max;
  87316. struct pbuf *q;
  87317. int parse_file_as_options = 0;
  87318. 8023586: 2300 movs r3, #0
  87319. 8023588: 633b str r3, [r7, #48] @ 0x30
  87320. int parse_sname_as_options = 0;
  87321. 802358a: 2300 movs r3, #0
  87322. 802358c: 62fb str r3, [r7, #44] @ 0x2c
  87323. #endif
  87324. LWIP_UNUSED_ARG(dhcp);
  87325. /* clear received options */
  87326. dhcp_clear_all_options(dhcp);
  87327. 802358e: 2208 movs r2, #8
  87328. 8023590: 2100 movs r1, #0
  87329. 8023592: 48b8 ldr r0, [pc, #736] @ (8023874 <dhcp_parse_reply+0x2f8>)
  87330. 8023594: f006 ffa4 bl 802a4e0 <memset>
  87331. /* check that beginning of dhcp_msg (up to and including chaddr) is in first pbuf */
  87332. if (p->len < DHCP_SNAME_OFS) {
  87333. 8023598: 687b ldr r3, [r7, #4]
  87334. 802359a: 895b ldrh r3, [r3, #10]
  87335. 802359c: 2b2b cmp r3, #43 @ 0x2b
  87336. 802359e: d802 bhi.n 80235a6 <dhcp_parse_reply+0x2a>
  87337. return ERR_BUF;
  87338. 80235a0: f06f 0301 mvn.w r3, #1
  87339. 80235a4: e2b8 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87340. }
  87341. msg_in = (struct dhcp_msg *)p->payload;
  87342. 80235a6: 687b ldr r3, [r7, #4]
  87343. 80235a8: 685b ldr r3, [r3, #4]
  87344. 80235aa: 61fb str r3, [r7, #28]
  87345. #endif /* LWIP_DHCP_BOOTP_FILE */
  87346. /* parse options */
  87347. /* start with options field */
  87348. options_idx = DHCP_OPTIONS_OFS;
  87349. 80235ac: 23f0 movs r3, #240 @ 0xf0
  87350. 80235ae: 87bb strh r3, [r7, #60] @ 0x3c
  87351. /* parse options to the end of the received packet */
  87352. options_idx_max = p->tot_len;
  87353. 80235b0: 687b ldr r3, [r7, #4]
  87354. 80235b2: 891b ldrh r3, [r3, #8]
  87355. 80235b4: 877b strh r3, [r7, #58] @ 0x3a
  87356. again:
  87357. q = p;
  87358. 80235b6: 687b ldr r3, [r7, #4]
  87359. 80235b8: 637b str r3, [r7, #52] @ 0x34
  87360. while ((q != NULL) && (options_idx >= q->len)) {
  87361. 80235ba: e00c b.n 80235d6 <dhcp_parse_reply+0x5a>
  87362. options_idx = (u16_t)(options_idx - q->len);
  87363. 80235bc: 6b7b ldr r3, [r7, #52] @ 0x34
  87364. 80235be: 895b ldrh r3, [r3, #10]
  87365. 80235c0: 8fba ldrh r2, [r7, #60] @ 0x3c
  87366. 80235c2: 1ad3 subs r3, r2, r3
  87367. 80235c4: 87bb strh r3, [r7, #60] @ 0x3c
  87368. options_idx_max = (u16_t)(options_idx_max - q->len);
  87369. 80235c6: 6b7b ldr r3, [r7, #52] @ 0x34
  87370. 80235c8: 895b ldrh r3, [r3, #10]
  87371. 80235ca: 8f7a ldrh r2, [r7, #58] @ 0x3a
  87372. 80235cc: 1ad3 subs r3, r2, r3
  87373. 80235ce: 877b strh r3, [r7, #58] @ 0x3a
  87374. q = q->next;
  87375. 80235d0: 6b7b ldr r3, [r7, #52] @ 0x34
  87376. 80235d2: 681b ldr r3, [r3, #0]
  87377. 80235d4: 637b str r3, [r7, #52] @ 0x34
  87378. while ((q != NULL) && (options_idx >= q->len)) {
  87379. 80235d6: 6b7b ldr r3, [r7, #52] @ 0x34
  87380. 80235d8: 2b00 cmp r3, #0
  87381. 80235da: d004 beq.n 80235e6 <dhcp_parse_reply+0x6a>
  87382. 80235dc: 6b7b ldr r3, [r7, #52] @ 0x34
  87383. 80235de: 895b ldrh r3, [r3, #10]
  87384. 80235e0: 8fba ldrh r2, [r7, #60] @ 0x3c
  87385. 80235e2: 429a cmp r2, r3
  87386. 80235e4: d2ea bcs.n 80235bc <dhcp_parse_reply+0x40>
  87387. }
  87388. if (q == NULL) {
  87389. 80235e6: 6b7b ldr r3, [r7, #52] @ 0x34
  87390. 80235e8: 2b00 cmp r3, #0
  87391. 80235ea: d102 bne.n 80235f2 <dhcp_parse_reply+0x76>
  87392. return ERR_BUF;
  87393. 80235ec: f06f 0301 mvn.w r3, #1
  87394. 80235f0: e292 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87395. }
  87396. offset = options_idx;
  87397. 80235f2: 8fbb ldrh r3, [r7, #60] @ 0x3c
  87398. 80235f4: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  87399. offset_max = options_idx_max;
  87400. 80235f8: 8f7b ldrh r3, [r7, #58] @ 0x3a
  87401. 80235fa: 87fb strh r3, [r7, #62] @ 0x3e
  87402. options = (u8_t *)q->payload;
  87403. 80235fc: 6b7b ldr r3, [r7, #52] @ 0x34
  87404. 80235fe: 685b ldr r3, [r3, #4]
  87405. 8023600: 643b str r3, [r7, #64] @ 0x40
  87406. /* at least 1 byte to read and no end marker, then at least 3 bytes to read? */
  87407. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  87408. 8023602: e247 b.n 8023a94 <dhcp_parse_reply+0x518>
  87409. u8_t op = options[offset];
  87410. 8023604: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87411. 8023608: 6c3a ldr r2, [r7, #64] @ 0x40
  87412. 802360a: 4413 add r3, r2
  87413. 802360c: 781b ldrb r3, [r3, #0]
  87414. 802360e: 76fb strb r3, [r7, #27]
  87415. u8_t len;
  87416. u8_t decode_len = 0;
  87417. 8023610: 2300 movs r3, #0
  87418. 8023612: f887 302a strb.w r3, [r7, #42] @ 0x2a
  87419. int decode_idx = -1;
  87420. 8023616: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  87421. 802361a: 627b str r3, [r7, #36] @ 0x24
  87422. u16_t val_offset = (u16_t)(offset + 2);
  87423. 802361c: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87424. 8023620: 3302 adds r3, #2
  87425. 8023622: 847b strh r3, [r7, #34] @ 0x22
  87426. if (val_offset < offset) {
  87427. 8023624: 8c7a ldrh r2, [r7, #34] @ 0x22
  87428. 8023626: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87429. 802362a: 429a cmp r2, r3
  87430. 802362c: d202 bcs.n 8023634 <dhcp_parse_reply+0xb8>
  87431. /* overflow */
  87432. return ERR_BUF;
  87433. 802362e: f06f 0301 mvn.w r3, #1
  87434. 8023632: e271 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87435. }
  87436. /* len byte might be in the next pbuf */
  87437. if ((offset + 1) < q->len) {
  87438. 8023634: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87439. 8023638: 3301 adds r3, #1
  87440. 802363a: 6b7a ldr r2, [r7, #52] @ 0x34
  87441. 802363c: 8952 ldrh r2, [r2, #10]
  87442. 802363e: 4293 cmp r3, r2
  87443. 8023640: da08 bge.n 8023654 <dhcp_parse_reply+0xd8>
  87444. len = options[offset + 1];
  87445. 8023642: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87446. 8023646: 3301 adds r3, #1
  87447. 8023648: 6c3a ldr r2, [r7, #64] @ 0x40
  87448. 802364a: 4413 add r3, r2
  87449. 802364c: 781b ldrb r3, [r3, #0]
  87450. 802364e: f887 302b strb.w r3, [r7, #43] @ 0x2b
  87451. 8023652: e00b b.n 802366c <dhcp_parse_reply+0xf0>
  87452. } else {
  87453. len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0);
  87454. 8023654: 6b7b ldr r3, [r7, #52] @ 0x34
  87455. 8023656: 681b ldr r3, [r3, #0]
  87456. 8023658: 2b00 cmp r3, #0
  87457. 802365a: d004 beq.n 8023666 <dhcp_parse_reply+0xea>
  87458. 802365c: 6b7b ldr r3, [r7, #52] @ 0x34
  87459. 802365e: 681b ldr r3, [r3, #0]
  87460. 8023660: 685b ldr r3, [r3, #4]
  87461. 8023662: 781b ldrb r3, [r3, #0]
  87462. 8023664: e000 b.n 8023668 <dhcp_parse_reply+0xec>
  87463. 8023666: 2300 movs r3, #0
  87464. 8023668: f887 302b strb.w r3, [r7, #43] @ 0x2b
  87465. }
  87466. /* LWIP_DEBUGF(DHCP_DEBUG, ("msg_offset=%"U16_F", q->len=%"U16_F, msg_offset, q->len)); */
  87467. decode_len = len;
  87468. 802366c: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87469. 8023670: f887 302a strb.w r3, [r7, #42] @ 0x2a
  87470. switch (op) {
  87471. 8023674: 7efb ldrb r3, [r7, #27]
  87472. 8023676: 2b3b cmp r3, #59 @ 0x3b
  87473. 8023678: f200 812c bhi.w 80238d4 <dhcp_parse_reply+0x358>
  87474. 802367c: a201 add r2, pc, #4 @ (adr r2, 8023684 <dhcp_parse_reply+0x108>)
  87475. 802367e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  87476. 8023682: bf00 nop
  87477. 8023684: 08023775 .word 0x08023775
  87478. 8023688: 08023785 .word 0x08023785
  87479. 802368c: 080238d5 .word 0x080238d5
  87480. 8023690: 080237a7 .word 0x080237a7
  87481. 8023694: 080238d5 .word 0x080238d5
  87482. 8023698: 080238d5 .word 0x080238d5
  87483. 802369c: 080238d5 .word 0x080238d5
  87484. 80236a0: 080238d5 .word 0x080238d5
  87485. 80236a4: 080238d5 .word 0x080238d5
  87486. 80236a8: 080238d5 .word 0x080238d5
  87487. 80236ac: 080238d5 .word 0x080238d5
  87488. 80236b0: 080238d5 .word 0x080238d5
  87489. 80236b4: 080238d5 .word 0x080238d5
  87490. 80236b8: 080238d5 .word 0x080238d5
  87491. 80236bc: 080238d5 .word 0x080238d5
  87492. 80236c0: 080238d5 .word 0x080238d5
  87493. 80236c4: 080238d5 .word 0x080238d5
  87494. 80236c8: 080238d5 .word 0x080238d5
  87495. 80236cc: 080238d5 .word 0x080238d5
  87496. 80236d0: 080238d5 .word 0x080238d5
  87497. 80236d4: 080238d5 .word 0x080238d5
  87498. 80236d8: 080238d5 .word 0x080238d5
  87499. 80236dc: 080238d5 .word 0x080238d5
  87500. 80236e0: 080238d5 .word 0x080238d5
  87501. 80236e4: 080238d5 .word 0x080238d5
  87502. 80236e8: 080238d5 .word 0x080238d5
  87503. 80236ec: 080238d5 .word 0x080238d5
  87504. 80236f0: 080238d5 .word 0x080238d5
  87505. 80236f4: 080238d5 .word 0x080238d5
  87506. 80236f8: 080238d5 .word 0x080238d5
  87507. 80236fc: 080238d5 .word 0x080238d5
  87508. 8023700: 080238d5 .word 0x080238d5
  87509. 8023704: 080238d5 .word 0x080238d5
  87510. 8023708: 080238d5 .word 0x080238d5
  87511. 802370c: 080238d5 .word 0x080238d5
  87512. 8023710: 080238d5 .word 0x080238d5
  87513. 8023714: 080238d5 .word 0x080238d5
  87514. 8023718: 080238d5 .word 0x080238d5
  87515. 802371c: 080238d5 .word 0x080238d5
  87516. 8023720: 080238d5 .word 0x080238d5
  87517. 8023724: 080238d5 .word 0x080238d5
  87518. 8023728: 080238d5 .word 0x080238d5
  87519. 802372c: 080238d5 .word 0x080238d5
  87520. 8023730: 080238d5 .word 0x080238d5
  87521. 8023734: 080238d5 .word 0x080238d5
  87522. 8023738: 080238d5 .word 0x080238d5
  87523. 802373c: 080238d5 .word 0x080238d5
  87524. 8023740: 080238d5 .word 0x080238d5
  87525. 8023744: 080238d5 .word 0x080238d5
  87526. 8023748: 080238d5 .word 0x080238d5
  87527. 802374c: 080238d5 .word 0x080238d5
  87528. 8023750: 080237d3 .word 0x080237d3
  87529. 8023754: 080237f5 .word 0x080237f5
  87530. 8023758: 08023831 .word 0x08023831
  87531. 802375c: 08023853 .word 0x08023853
  87532. 8023760: 080238d5 .word 0x080238d5
  87533. 8023764: 080238d5 .word 0x080238d5
  87534. 8023768: 080238d5 .word 0x080238d5
  87535. 802376c: 08023891 .word 0x08023891
  87536. 8023770: 080238b3 .word 0x080238b3
  87537. /* case(DHCP_OPTION_END): handled above */
  87538. case (DHCP_OPTION_PAD):
  87539. /* special option: no len encoded */
  87540. decode_len = len = 0;
  87541. 8023774: 2300 movs r3, #0
  87542. 8023776: f887 302b strb.w r3, [r7, #43] @ 0x2b
  87543. 802377a: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87544. 802377e: f887 302a strb.w r3, [r7, #42] @ 0x2a
  87545. /* will be increased below */
  87546. break;
  87547. 8023782: e0ab b.n 80238dc <dhcp_parse_reply+0x360>
  87548. case (DHCP_OPTION_SUBNET_MASK):
  87549. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  87550. 8023784: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87551. 8023788: 2b04 cmp r3, #4
  87552. 802378a: d009 beq.n 80237a0 <dhcp_parse_reply+0x224>
  87553. 802378c: 4b3a ldr r3, [pc, #232] @ (8023878 <dhcp_parse_reply+0x2fc>)
  87554. 802378e: f240 622e movw r2, #1582 @ 0x62e
  87555. 8023792: 493a ldr r1, [pc, #232] @ (802387c <dhcp_parse_reply+0x300>)
  87556. 8023794: 483a ldr r0, [pc, #232] @ (8023880 <dhcp_parse_reply+0x304>)
  87557. 8023796: f006 fd11 bl 802a1bc <iprintf>
  87558. 802379a: f06f 0305 mvn.w r3, #5
  87559. 802379e: e1bb b.n 8023b18 <dhcp_parse_reply+0x59c>
  87560. decode_idx = DHCP_OPTION_IDX_SUBNET_MASK;
  87561. 80237a0: 2306 movs r3, #6
  87562. 80237a2: 627b str r3, [r7, #36] @ 0x24
  87563. break;
  87564. 80237a4: e09a b.n 80238dc <dhcp_parse_reply+0x360>
  87565. case (DHCP_OPTION_ROUTER):
  87566. decode_len = 4; /* only copy the first given router */
  87567. 80237a6: 2304 movs r3, #4
  87568. 80237a8: f887 302a strb.w r3, [r7, #42] @ 0x2a
  87569. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  87570. 80237ac: f897 202b ldrb.w r2, [r7, #43] @ 0x2b
  87571. 80237b0: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87572. 80237b4: 429a cmp r2, r3
  87573. 80237b6: d209 bcs.n 80237cc <dhcp_parse_reply+0x250>
  87574. 80237b8: 4b2f ldr r3, [pc, #188] @ (8023878 <dhcp_parse_reply+0x2fc>)
  87575. 80237ba: f240 6233 movw r2, #1587 @ 0x633
  87576. 80237be: 4931 ldr r1, [pc, #196] @ (8023884 <dhcp_parse_reply+0x308>)
  87577. 80237c0: 482f ldr r0, [pc, #188] @ (8023880 <dhcp_parse_reply+0x304>)
  87578. 80237c2: f006 fcfb bl 802a1bc <iprintf>
  87579. 80237c6: f06f 0305 mvn.w r3, #5
  87580. 80237ca: e1a5 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87581. decode_idx = DHCP_OPTION_IDX_ROUTER;
  87582. 80237cc: 2307 movs r3, #7
  87583. 80237ce: 627b str r3, [r7, #36] @ 0x24
  87584. break;
  87585. 80237d0: e084 b.n 80238dc <dhcp_parse_reply+0x360>
  87586. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  87587. decode_idx = DHCP_OPTION_IDX_DNS_SERVER;
  87588. break;
  87589. #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */
  87590. case (DHCP_OPTION_LEASE_TIME):
  87591. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  87592. 80237d2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87593. 80237d6: 2b04 cmp r3, #4
  87594. 80237d8: d009 beq.n 80237ee <dhcp_parse_reply+0x272>
  87595. 80237da: 4b27 ldr r3, [pc, #156] @ (8023878 <dhcp_parse_reply+0x2fc>)
  87596. 80237dc: f240 6241 movw r2, #1601 @ 0x641
  87597. 80237e0: 4926 ldr r1, [pc, #152] @ (802387c <dhcp_parse_reply+0x300>)
  87598. 80237e2: 4827 ldr r0, [pc, #156] @ (8023880 <dhcp_parse_reply+0x304>)
  87599. 80237e4: f006 fcea bl 802a1bc <iprintf>
  87600. 80237e8: f06f 0305 mvn.w r3, #5
  87601. 80237ec: e194 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87602. decode_idx = DHCP_OPTION_IDX_LEASE_TIME;
  87603. 80237ee: 2303 movs r3, #3
  87604. 80237f0: 627b str r3, [r7, #36] @ 0x24
  87605. break;
  87606. 80237f2: e073 b.n 80238dc <dhcp_parse_reply+0x360>
  87607. LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;);
  87608. decode_idx = DHCP_OPTION_IDX_NTP_SERVER;
  87609. break;
  87610. #endif /* LWIP_DHCP_GET_NTP_SRV*/
  87611. case (DHCP_OPTION_OVERLOAD):
  87612. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  87613. 80237f4: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87614. 80237f8: 2b01 cmp r3, #1
  87615. 80237fa: d009 beq.n 8023810 <dhcp_parse_reply+0x294>
  87616. 80237fc: 4b1e ldr r3, [pc, #120] @ (8023878 <dhcp_parse_reply+0x2fc>)
  87617. 80237fe: f240 624f movw r2, #1615 @ 0x64f
  87618. 8023802: 4921 ldr r1, [pc, #132] @ (8023888 <dhcp_parse_reply+0x30c>)
  87619. 8023804: 481e ldr r0, [pc, #120] @ (8023880 <dhcp_parse_reply+0x304>)
  87620. 8023806: f006 fcd9 bl 802a1bc <iprintf>
  87621. 802380a: f06f 0305 mvn.w r3, #5
  87622. 802380e: e183 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87623. /* decode overload only in options, not in file/sname: invalid packet */
  87624. LWIP_ERROR("overload in file/sname", options_idx == DHCP_OPTIONS_OFS, return ERR_VAL;);
  87625. 8023810: 8fbb ldrh r3, [r7, #60] @ 0x3c
  87626. 8023812: 2bf0 cmp r3, #240 @ 0xf0
  87627. 8023814: d009 beq.n 802382a <dhcp_parse_reply+0x2ae>
  87628. 8023816: 4b18 ldr r3, [pc, #96] @ (8023878 <dhcp_parse_reply+0x2fc>)
  87629. 8023818: f240 6251 movw r2, #1617 @ 0x651
  87630. 802381c: 491b ldr r1, [pc, #108] @ (802388c <dhcp_parse_reply+0x310>)
  87631. 802381e: 4818 ldr r0, [pc, #96] @ (8023880 <dhcp_parse_reply+0x304>)
  87632. 8023820: f006 fccc bl 802a1bc <iprintf>
  87633. 8023824: f06f 0305 mvn.w r3, #5
  87634. 8023828: e176 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87635. decode_idx = DHCP_OPTION_IDX_OVERLOAD;
  87636. 802382a: 2300 movs r3, #0
  87637. 802382c: 627b str r3, [r7, #36] @ 0x24
  87638. break;
  87639. 802382e: e055 b.n 80238dc <dhcp_parse_reply+0x360>
  87640. case (DHCP_OPTION_MESSAGE_TYPE):
  87641. LWIP_ERROR("len == 1", len == 1, return ERR_VAL;);
  87642. 8023830: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87643. 8023834: 2b01 cmp r3, #1
  87644. 8023836: d009 beq.n 802384c <dhcp_parse_reply+0x2d0>
  87645. 8023838: 4b0f ldr r3, [pc, #60] @ (8023878 <dhcp_parse_reply+0x2fc>)
  87646. 802383a: f240 6255 movw r2, #1621 @ 0x655
  87647. 802383e: 4912 ldr r1, [pc, #72] @ (8023888 <dhcp_parse_reply+0x30c>)
  87648. 8023840: 480f ldr r0, [pc, #60] @ (8023880 <dhcp_parse_reply+0x304>)
  87649. 8023842: f006 fcbb bl 802a1bc <iprintf>
  87650. 8023846: f06f 0305 mvn.w r3, #5
  87651. 802384a: e165 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87652. decode_idx = DHCP_OPTION_IDX_MSG_TYPE;
  87653. 802384c: 2301 movs r3, #1
  87654. 802384e: 627b str r3, [r7, #36] @ 0x24
  87655. break;
  87656. 8023850: e044 b.n 80238dc <dhcp_parse_reply+0x360>
  87657. case (DHCP_OPTION_SERVER_ID):
  87658. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  87659. 8023852: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87660. 8023856: 2b04 cmp r3, #4
  87661. 8023858: d009 beq.n 802386e <dhcp_parse_reply+0x2f2>
  87662. 802385a: 4b07 ldr r3, [pc, #28] @ (8023878 <dhcp_parse_reply+0x2fc>)
  87663. 802385c: f240 6259 movw r2, #1625 @ 0x659
  87664. 8023860: 4906 ldr r1, [pc, #24] @ (802387c <dhcp_parse_reply+0x300>)
  87665. 8023862: 4807 ldr r0, [pc, #28] @ (8023880 <dhcp_parse_reply+0x304>)
  87666. 8023864: f006 fcaa bl 802a1bc <iprintf>
  87667. 8023868: f06f 0305 mvn.w r3, #5
  87668. 802386c: e154 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87669. decode_idx = DHCP_OPTION_IDX_SERVER_ID;
  87670. 802386e: 2302 movs r3, #2
  87671. 8023870: 627b str r3, [r7, #36] @ 0x24
  87672. break;
  87673. 8023872: e033 b.n 80238dc <dhcp_parse_reply+0x360>
  87674. 8023874: 2402afdc .word 0x2402afdc
  87675. 8023878: 080306e8 .word 0x080306e8
  87676. 802387c: 08030970 .word 0x08030970
  87677. 8023880: 08030748 .word 0x08030748
  87678. 8023884: 0803097c .word 0x0803097c
  87679. 8023888: 08030990 .word 0x08030990
  87680. 802388c: 0803099c .word 0x0803099c
  87681. case (DHCP_OPTION_T1):
  87682. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  87683. 8023890: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87684. 8023894: 2b04 cmp r3, #4
  87685. 8023896: d009 beq.n 80238ac <dhcp_parse_reply+0x330>
  87686. 8023898: 4ba1 ldr r3, [pc, #644] @ (8023b20 <dhcp_parse_reply+0x5a4>)
  87687. 802389a: f240 625d movw r2, #1629 @ 0x65d
  87688. 802389e: 49a1 ldr r1, [pc, #644] @ (8023b24 <dhcp_parse_reply+0x5a8>)
  87689. 80238a0: 48a1 ldr r0, [pc, #644] @ (8023b28 <dhcp_parse_reply+0x5ac>)
  87690. 80238a2: f006 fc8b bl 802a1bc <iprintf>
  87691. 80238a6: f06f 0305 mvn.w r3, #5
  87692. 80238aa: e135 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87693. decode_idx = DHCP_OPTION_IDX_T1;
  87694. 80238ac: 2304 movs r3, #4
  87695. 80238ae: 627b str r3, [r7, #36] @ 0x24
  87696. break;
  87697. 80238b0: e014 b.n 80238dc <dhcp_parse_reply+0x360>
  87698. case (DHCP_OPTION_T2):
  87699. LWIP_ERROR("len == 4", len == 4, return ERR_VAL;);
  87700. 80238b2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87701. 80238b6: 2b04 cmp r3, #4
  87702. 80238b8: d009 beq.n 80238ce <dhcp_parse_reply+0x352>
  87703. 80238ba: 4b99 ldr r3, [pc, #612] @ (8023b20 <dhcp_parse_reply+0x5a4>)
  87704. 80238bc: f240 6261 movw r2, #1633 @ 0x661
  87705. 80238c0: 4998 ldr r1, [pc, #608] @ (8023b24 <dhcp_parse_reply+0x5a8>)
  87706. 80238c2: 4899 ldr r0, [pc, #612] @ (8023b28 <dhcp_parse_reply+0x5ac>)
  87707. 80238c4: f006 fc7a bl 802a1bc <iprintf>
  87708. 80238c8: f06f 0305 mvn.w r3, #5
  87709. 80238cc: e124 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87710. decode_idx = DHCP_OPTION_IDX_T2;
  87711. 80238ce: 2305 movs r3, #5
  87712. 80238d0: 627b str r3, [r7, #36] @ 0x24
  87713. break;
  87714. 80238d2: e003 b.n 80238dc <dhcp_parse_reply+0x360>
  87715. default:
  87716. decode_len = 0;
  87717. 80238d4: 2300 movs r3, #0
  87718. 80238d6: f887 302a strb.w r3, [r7, #42] @ 0x2a
  87719. LWIP_DEBUGF(DHCP_DEBUG, ("skipping option %"U16_F" in options\n", (u16_t)op));
  87720. LWIP_HOOK_DHCP_PARSE_OPTION(ip_current_netif(), dhcp, dhcp->state, msg_in,
  87721. dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE) ? (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE) : 0,
  87722. op, len, q, val_offset);
  87723. break;
  87724. 80238da: bf00 nop
  87725. }
  87726. if (op == DHCP_OPTION_PAD) {
  87727. 80238dc: 7efb ldrb r3, [r7, #27]
  87728. 80238de: 2b00 cmp r3, #0
  87729. 80238e0: d105 bne.n 80238ee <dhcp_parse_reply+0x372>
  87730. offset++;
  87731. 80238e2: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87732. 80238e6: 3301 adds r3, #1
  87733. 80238e8: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  87734. 80238ec: e0a4 b.n 8023a38 <dhcp_parse_reply+0x4bc>
  87735. } else {
  87736. if (offset + len + 2 > 0xFFFF) {
  87737. 80238ee: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  87738. 80238f2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87739. 80238f6: 4413 add r3, r2
  87740. 80238f8: f64f 72fd movw r2, #65533 @ 0xfffd
  87741. 80238fc: 4293 cmp r3, r2
  87742. 80238fe: dd02 ble.n 8023906 <dhcp_parse_reply+0x38a>
  87743. /* overflow */
  87744. return ERR_BUF;
  87745. 8023900: f06f 0301 mvn.w r3, #1
  87746. 8023904: e108 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87747. }
  87748. offset = (u16_t)(offset + len + 2);
  87749. 8023906: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  87750. 802390a: b29a uxth r2, r3
  87751. 802390c: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87752. 8023910: 4413 add r3, r2
  87753. 8023912: b29b uxth r3, r3
  87754. 8023914: 3302 adds r3, #2
  87755. 8023916: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  87756. if (decode_len > 0) {
  87757. 802391a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87758. 802391e: 2b00 cmp r3, #0
  87759. 8023920: f000 808a beq.w 8023a38 <dhcp_parse_reply+0x4bc>
  87760. u32_t value = 0;
  87761. 8023924: 2300 movs r3, #0
  87762. 8023926: 60fb str r3, [r7, #12]
  87763. u16_t copy_len;
  87764. decode_next:
  87765. LWIP_ASSERT("check decode_idx", decode_idx >= 0 && decode_idx < DHCP_OPTION_IDX_MAX);
  87766. 8023928: 6a7b ldr r3, [r7, #36] @ 0x24
  87767. 802392a: 2b00 cmp r3, #0
  87768. 802392c: db02 blt.n 8023934 <dhcp_parse_reply+0x3b8>
  87769. 802392e: 6a7b ldr r3, [r7, #36] @ 0x24
  87770. 8023930: 2b07 cmp r3, #7
  87771. 8023932: dd06 ble.n 8023942 <dhcp_parse_reply+0x3c6>
  87772. 8023934: 4b7a ldr r3, [pc, #488] @ (8023b20 <dhcp_parse_reply+0x5a4>)
  87773. 8023936: f44f 62cf mov.w r2, #1656 @ 0x678
  87774. 802393a: 497c ldr r1, [pc, #496] @ (8023b2c <dhcp_parse_reply+0x5b0>)
  87775. 802393c: 487a ldr r0, [pc, #488] @ (8023b28 <dhcp_parse_reply+0x5ac>)
  87776. 802393e: f006 fc3d bl 802a1bc <iprintf>
  87777. if (!dhcp_option_given(dhcp, decode_idx)) {
  87778. 8023942: 4a7b ldr r2, [pc, #492] @ (8023b30 <dhcp_parse_reply+0x5b4>)
  87779. 8023944: 6a7b ldr r3, [r7, #36] @ 0x24
  87780. 8023946: 4413 add r3, r2
  87781. 8023948: 781b ldrb r3, [r3, #0]
  87782. 802394a: 2b00 cmp r3, #0
  87783. 802394c: d174 bne.n 8023a38 <dhcp_parse_reply+0x4bc>
  87784. copy_len = LWIP_MIN(decode_len, 4);
  87785. 802394e: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87786. 8023952: 2b04 cmp r3, #4
  87787. 8023954: bf28 it cs
  87788. 8023956: 2304 movcs r3, #4
  87789. 8023958: b2db uxtb r3, r3
  87790. 802395a: 833b strh r3, [r7, #24]
  87791. if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) {
  87792. 802395c: 8c7b ldrh r3, [r7, #34] @ 0x22
  87793. 802395e: 8b3a ldrh r2, [r7, #24]
  87794. 8023960: f107 010c add.w r1, r7, #12
  87795. 8023964: 6b78 ldr r0, [r7, #52] @ 0x34
  87796. 8023966: f7f7 fbb7 bl 801b0d8 <pbuf_copy_partial>
  87797. 802396a: 4603 mov r3, r0
  87798. 802396c: 461a mov r2, r3
  87799. 802396e: 8b3b ldrh r3, [r7, #24]
  87800. 8023970: 4293 cmp r3, r2
  87801. 8023972: d002 beq.n 802397a <dhcp_parse_reply+0x3fe>
  87802. return ERR_BUF;
  87803. 8023974: f06f 0301 mvn.w r3, #1
  87804. 8023978: e0ce b.n 8023b18 <dhcp_parse_reply+0x59c>
  87805. }
  87806. if (decode_len > 4) {
  87807. 802397a: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87808. 802397e: 2b04 cmp r3, #4
  87809. 8023980: d933 bls.n 80239ea <dhcp_parse_reply+0x46e>
  87810. /* decode more than one u32_t */
  87811. u16_t next_val_offset;
  87812. LWIP_ERROR("decode_len %% 4 == 0", decode_len % 4 == 0, return ERR_VAL;);
  87813. 8023982: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87814. 8023986: f003 0303 and.w r3, r3, #3
  87815. 802398a: b2db uxtb r3, r3
  87816. 802398c: 2b00 cmp r3, #0
  87817. 802398e: d009 beq.n 80239a4 <dhcp_parse_reply+0x428>
  87818. 8023990: 4b63 ldr r3, [pc, #396] @ (8023b20 <dhcp_parse_reply+0x5a4>)
  87819. 8023992: f240 6281 movw r2, #1665 @ 0x681
  87820. 8023996: 4967 ldr r1, [pc, #412] @ (8023b34 <dhcp_parse_reply+0x5b8>)
  87821. 8023998: 4863 ldr r0, [pc, #396] @ (8023b28 <dhcp_parse_reply+0x5ac>)
  87822. 802399a: f006 fc0f bl 802a1bc <iprintf>
  87823. 802399e: f06f 0305 mvn.w r3, #5
  87824. 80239a2: e0b9 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87825. dhcp_got_option(dhcp, decode_idx);
  87826. 80239a4: 4a62 ldr r2, [pc, #392] @ (8023b30 <dhcp_parse_reply+0x5b4>)
  87827. 80239a6: 6a7b ldr r3, [r7, #36] @ 0x24
  87828. 80239a8: 4413 add r3, r2
  87829. 80239aa: 2201 movs r2, #1
  87830. 80239ac: 701a strb r2, [r3, #0]
  87831. dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value));
  87832. 80239ae: 68fb ldr r3, [r7, #12]
  87833. 80239b0: 4618 mov r0, r3
  87834. 80239b2: f7f5 fcbe bl 8019332 <lwip_htonl>
  87835. 80239b6: 4602 mov r2, r0
  87836. 80239b8: 495f ldr r1, [pc, #380] @ (8023b38 <dhcp_parse_reply+0x5bc>)
  87837. 80239ba: 6a7b ldr r3, [r7, #36] @ 0x24
  87838. 80239bc: f841 2023 str.w r2, [r1, r3, lsl #2]
  87839. decode_len = (u8_t)(decode_len - 4);
  87840. 80239c0: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87841. 80239c4: 3b04 subs r3, #4
  87842. 80239c6: f887 302a strb.w r3, [r7, #42] @ 0x2a
  87843. next_val_offset = (u16_t)(val_offset + 4);
  87844. 80239ca: 8c7b ldrh r3, [r7, #34] @ 0x22
  87845. 80239cc: 3304 adds r3, #4
  87846. 80239ce: 82fb strh r3, [r7, #22]
  87847. if (next_val_offset < val_offset) {
  87848. 80239d0: 8afa ldrh r2, [r7, #22]
  87849. 80239d2: 8c7b ldrh r3, [r7, #34] @ 0x22
  87850. 80239d4: 429a cmp r2, r3
  87851. 80239d6: d202 bcs.n 80239de <dhcp_parse_reply+0x462>
  87852. /* overflow */
  87853. return ERR_BUF;
  87854. 80239d8: f06f 0301 mvn.w r3, #1
  87855. 80239dc: e09c b.n 8023b18 <dhcp_parse_reply+0x59c>
  87856. }
  87857. val_offset = next_val_offset;
  87858. 80239de: 8afb ldrh r3, [r7, #22]
  87859. 80239e0: 847b strh r3, [r7, #34] @ 0x22
  87860. decode_idx++;
  87861. 80239e2: 6a7b ldr r3, [r7, #36] @ 0x24
  87862. 80239e4: 3301 adds r3, #1
  87863. 80239e6: 627b str r3, [r7, #36] @ 0x24
  87864. goto decode_next;
  87865. 80239e8: e79e b.n 8023928 <dhcp_parse_reply+0x3ac>
  87866. } else if (decode_len == 4) {
  87867. 80239ea: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87868. 80239ee: 2b04 cmp r3, #4
  87869. 80239f0: d106 bne.n 8023a00 <dhcp_parse_reply+0x484>
  87870. value = lwip_ntohl(value);
  87871. 80239f2: 68fb ldr r3, [r7, #12]
  87872. 80239f4: 4618 mov r0, r3
  87873. 80239f6: f7f5 fc9c bl 8019332 <lwip_htonl>
  87874. 80239fa: 4603 mov r3, r0
  87875. 80239fc: 60fb str r3, [r7, #12]
  87876. 80239fe: e011 b.n 8023a24 <dhcp_parse_reply+0x4a8>
  87877. } else {
  87878. LWIP_ERROR("invalid decode_len", decode_len == 1, return ERR_VAL;);
  87879. 8023a00: f897 302a ldrb.w r3, [r7, #42] @ 0x2a
  87880. 8023a04: 2b01 cmp r3, #1
  87881. 8023a06: d009 beq.n 8023a1c <dhcp_parse_reply+0x4a0>
  87882. 8023a08: 4b45 ldr r3, [pc, #276] @ (8023b20 <dhcp_parse_reply+0x5a4>)
  87883. 8023a0a: f44f 62d2 mov.w r2, #1680 @ 0x690
  87884. 8023a0e: 494b ldr r1, [pc, #300] @ (8023b3c <dhcp_parse_reply+0x5c0>)
  87885. 8023a10: 4845 ldr r0, [pc, #276] @ (8023b28 <dhcp_parse_reply+0x5ac>)
  87886. 8023a12: f006 fbd3 bl 802a1bc <iprintf>
  87887. 8023a16: f06f 0305 mvn.w r3, #5
  87888. 8023a1a: e07d b.n 8023b18 <dhcp_parse_reply+0x59c>
  87889. value = ((u8_t *)&value)[0];
  87890. 8023a1c: f107 030c add.w r3, r7, #12
  87891. 8023a20: 781b ldrb r3, [r3, #0]
  87892. 8023a22: 60fb str r3, [r7, #12]
  87893. }
  87894. dhcp_got_option(dhcp, decode_idx);
  87895. 8023a24: 4a42 ldr r2, [pc, #264] @ (8023b30 <dhcp_parse_reply+0x5b4>)
  87896. 8023a26: 6a7b ldr r3, [r7, #36] @ 0x24
  87897. 8023a28: 4413 add r3, r2
  87898. 8023a2a: 2201 movs r2, #1
  87899. 8023a2c: 701a strb r2, [r3, #0]
  87900. dhcp_set_option_value(dhcp, decode_idx, value);
  87901. 8023a2e: 68fa ldr r2, [r7, #12]
  87902. 8023a30: 4941 ldr r1, [pc, #260] @ (8023b38 <dhcp_parse_reply+0x5bc>)
  87903. 8023a32: 6a7b ldr r3, [r7, #36] @ 0x24
  87904. 8023a34: f841 2023 str.w r2, [r1, r3, lsl #2]
  87905. }
  87906. }
  87907. }
  87908. if (offset >= q->len) {
  87909. 8023a38: 6b7b ldr r3, [r7, #52] @ 0x34
  87910. 8023a3a: 895b ldrh r3, [r3, #10]
  87911. 8023a3c: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  87912. 8023a40: 429a cmp r2, r3
  87913. 8023a42: d327 bcc.n 8023a94 <dhcp_parse_reply+0x518>
  87914. offset = (u16_t)(offset - q->len);
  87915. 8023a44: 6b7b ldr r3, [r7, #52] @ 0x34
  87916. 8023a46: 895b ldrh r3, [r3, #10]
  87917. 8023a48: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  87918. 8023a4c: 1ad3 subs r3, r2, r3
  87919. 8023a4e: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  87920. offset_max = (u16_t)(offset_max - q->len);
  87921. 8023a52: 6b7b ldr r3, [r7, #52] @ 0x34
  87922. 8023a54: 895b ldrh r3, [r3, #10]
  87923. 8023a56: 8ffa ldrh r2, [r7, #62] @ 0x3e
  87924. 8023a58: 1ad3 subs r3, r2, r3
  87925. 8023a5a: 87fb strh r3, [r7, #62] @ 0x3e
  87926. if (offset < offset_max) {
  87927. 8023a5c: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  87928. 8023a60: 8ffb ldrh r3, [r7, #62] @ 0x3e
  87929. 8023a62: 429a cmp r2, r3
  87930. 8023a64: d213 bcs.n 8023a8e <dhcp_parse_reply+0x512>
  87931. q = q->next;
  87932. 8023a66: 6b7b ldr r3, [r7, #52] @ 0x34
  87933. 8023a68: 681b ldr r3, [r3, #0]
  87934. 8023a6a: 637b str r3, [r7, #52] @ 0x34
  87935. LWIP_ERROR("next pbuf was null", q != NULL, return ERR_VAL;);
  87936. 8023a6c: 6b7b ldr r3, [r7, #52] @ 0x34
  87937. 8023a6e: 2b00 cmp r3, #0
  87938. 8023a70: d109 bne.n 8023a86 <dhcp_parse_reply+0x50a>
  87939. 8023a72: 4b2b ldr r3, [pc, #172] @ (8023b20 <dhcp_parse_reply+0x5a4>)
  87940. 8023a74: f240 629d movw r2, #1693 @ 0x69d
  87941. 8023a78: 4931 ldr r1, [pc, #196] @ (8023b40 <dhcp_parse_reply+0x5c4>)
  87942. 8023a7a: 482b ldr r0, [pc, #172] @ (8023b28 <dhcp_parse_reply+0x5ac>)
  87943. 8023a7c: f006 fb9e bl 802a1bc <iprintf>
  87944. 8023a80: f06f 0305 mvn.w r3, #5
  87945. 8023a84: e048 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87946. options = (u8_t *)q->payload;
  87947. 8023a86: 6b7b ldr r3, [r7, #52] @ 0x34
  87948. 8023a88: 685b ldr r3, [r3, #4]
  87949. 8023a8a: 643b str r3, [r7, #64] @ 0x40
  87950. 8023a8c: e002 b.n 8023a94 <dhcp_parse_reply+0x518>
  87951. } else {
  87952. /* We've run out of bytes, probably no end marker. Don't proceed. */
  87953. return ERR_BUF;
  87954. 8023a8e: f06f 0301 mvn.w r3, #1
  87955. 8023a92: e041 b.n 8023b18 <dhcp_parse_reply+0x59c>
  87956. while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
  87957. 8023a94: 6b7b ldr r3, [r7, #52] @ 0x34
  87958. 8023a96: 2b00 cmp r3, #0
  87959. 8023a98: d00c beq.n 8023ab4 <dhcp_parse_reply+0x538>
  87960. 8023a9a: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  87961. 8023a9e: 8ffb ldrh r3, [r7, #62] @ 0x3e
  87962. 8023aa0: 429a cmp r2, r3
  87963. 8023aa2: d207 bcs.n 8023ab4 <dhcp_parse_reply+0x538>
  87964. 8023aa4: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  87965. 8023aa8: 6c3a ldr r2, [r7, #64] @ 0x40
  87966. 8023aaa: 4413 add r3, r2
  87967. 8023aac: 781b ldrb r3, [r3, #0]
  87968. 8023aae: 2bff cmp r3, #255 @ 0xff
  87969. 8023ab0: f47f ada8 bne.w 8023604 <dhcp_parse_reply+0x88>
  87970. }
  87971. }
  87972. }
  87973. /* is this an overloaded message? */
  87974. if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_OVERLOAD)) {
  87975. 8023ab4: 4b1e ldr r3, [pc, #120] @ (8023b30 <dhcp_parse_reply+0x5b4>)
  87976. 8023ab6: 781b ldrb r3, [r3, #0]
  87977. 8023ab8: 2b00 cmp r3, #0
  87978. 8023aba: d018 beq.n 8023aee <dhcp_parse_reply+0x572>
  87979. u32_t overload = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  87980. 8023abc: 4b1e ldr r3, [pc, #120] @ (8023b38 <dhcp_parse_reply+0x5bc>)
  87981. 8023abe: 681b ldr r3, [r3, #0]
  87982. 8023ac0: 613b str r3, [r7, #16]
  87983. dhcp_clear_option(dhcp, DHCP_OPTION_IDX_OVERLOAD);
  87984. 8023ac2: 4b1b ldr r3, [pc, #108] @ (8023b30 <dhcp_parse_reply+0x5b4>)
  87985. 8023ac4: 2200 movs r2, #0
  87986. 8023ac6: 701a strb r2, [r3, #0]
  87987. if (overload == DHCP_OVERLOAD_FILE) {
  87988. 8023ac8: 693b ldr r3, [r7, #16]
  87989. 8023aca: 2b01 cmp r3, #1
  87990. 8023acc: d102 bne.n 8023ad4 <dhcp_parse_reply+0x558>
  87991. parse_file_as_options = 1;
  87992. 8023ace: 2301 movs r3, #1
  87993. 8023ad0: 633b str r3, [r7, #48] @ 0x30
  87994. 8023ad2: e00c b.n 8023aee <dhcp_parse_reply+0x572>
  87995. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded file field\n"));
  87996. } else if (overload == DHCP_OVERLOAD_SNAME) {
  87997. 8023ad4: 693b ldr r3, [r7, #16]
  87998. 8023ad6: 2b02 cmp r3, #2
  87999. 8023ad8: d102 bne.n 8023ae0 <dhcp_parse_reply+0x564>
  88000. parse_sname_as_options = 1;
  88001. 8023ada: 2301 movs r3, #1
  88002. 8023adc: 62fb str r3, [r7, #44] @ 0x2c
  88003. 8023ade: e006 b.n 8023aee <dhcp_parse_reply+0x572>
  88004. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname field\n"));
  88005. } else if (overload == DHCP_OVERLOAD_SNAME_FILE) {
  88006. 8023ae0: 693b ldr r3, [r7, #16]
  88007. 8023ae2: 2b03 cmp r3, #3
  88008. 8023ae4: d103 bne.n 8023aee <dhcp_parse_reply+0x572>
  88009. parse_sname_as_options = 1;
  88010. 8023ae6: 2301 movs r3, #1
  88011. 8023ae8: 62fb str r3, [r7, #44] @ 0x2c
  88012. parse_file_as_options = 1;
  88013. 8023aea: 2301 movs r3, #1
  88014. 8023aec: 633b str r3, [r7, #48] @ 0x30
  88015. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname and file field\n"));
  88016. } else {
  88017. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("invalid overload option: %d\n", (int)overload));
  88018. }
  88019. }
  88020. if (parse_file_as_options) {
  88021. 8023aee: 6b3b ldr r3, [r7, #48] @ 0x30
  88022. 8023af0: 2b00 cmp r3, #0
  88023. 8023af2: d006 beq.n 8023b02 <dhcp_parse_reply+0x586>
  88024. /* if both are overloaded, parse file first and then sname (RFC 2131 ch. 4.1) */
  88025. parse_file_as_options = 0;
  88026. 8023af4: 2300 movs r3, #0
  88027. 8023af6: 633b str r3, [r7, #48] @ 0x30
  88028. options_idx = DHCP_FILE_OFS;
  88029. 8023af8: 236c movs r3, #108 @ 0x6c
  88030. 8023afa: 87bb strh r3, [r7, #60] @ 0x3c
  88031. options_idx_max = DHCP_FILE_OFS + DHCP_FILE_LEN;
  88032. 8023afc: 23ec movs r3, #236 @ 0xec
  88033. 8023afe: 877b strh r3, [r7, #58] @ 0x3a
  88034. #if LWIP_DHCP_BOOTP_FILE
  88035. file_overloaded = 1;
  88036. #endif
  88037. goto again;
  88038. 8023b00: e559 b.n 80235b6 <dhcp_parse_reply+0x3a>
  88039. } else if (parse_sname_as_options) {
  88040. 8023b02: 6afb ldr r3, [r7, #44] @ 0x2c
  88041. 8023b04: 2b00 cmp r3, #0
  88042. 8023b06: d006 beq.n 8023b16 <dhcp_parse_reply+0x59a>
  88043. parse_sname_as_options = 0;
  88044. 8023b08: 2300 movs r3, #0
  88045. 8023b0a: 62fb str r3, [r7, #44] @ 0x2c
  88046. options_idx = DHCP_SNAME_OFS;
  88047. 8023b0c: 232c movs r3, #44 @ 0x2c
  88048. 8023b0e: 87bb strh r3, [r7, #60] @ 0x3c
  88049. options_idx_max = DHCP_SNAME_OFS + DHCP_SNAME_LEN;
  88050. 8023b10: 236c movs r3, #108 @ 0x6c
  88051. 8023b12: 877b strh r3, [r7, #58] @ 0x3a
  88052. goto again;
  88053. 8023b14: e54f b.n 80235b6 <dhcp_parse_reply+0x3a>
  88054. }
  88055. /* make sure the string is really NULL-terminated */
  88056. dhcp->boot_file_name[DHCP_FILE_LEN-1] = 0;
  88057. }
  88058. #endif /* LWIP_DHCP_BOOTP_FILE */
  88059. return ERR_OK;
  88060. 8023b16: 2300 movs r3, #0
  88061. }
  88062. 8023b18: 4618 mov r0, r3
  88063. 8023b1a: 3748 adds r7, #72 @ 0x48
  88064. 8023b1c: 46bd mov sp, r7
  88065. 8023b1e: bd80 pop {r7, pc}
  88066. 8023b20: 080306e8 .word 0x080306e8
  88067. 8023b24: 08030970 .word 0x08030970
  88068. 8023b28: 08030748 .word 0x08030748
  88069. 8023b2c: 080309b4 .word 0x080309b4
  88070. 8023b30: 2402afdc .word 0x2402afdc
  88071. 8023b34: 080309c8 .word 0x080309c8
  88072. 8023b38: 2402afbc .word 0x2402afbc
  88073. 8023b3c: 080309e0 .word 0x080309e0
  88074. 8023b40: 080309f4 .word 0x080309f4
  88075. 08023b44 <dhcp_recv>:
  88076. /**
  88077. * If an incoming DHCP message is in response to us, then trigger the state machine
  88078. */
  88079. static void
  88080. dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
  88081. {
  88082. 8023b44: b580 push {r7, lr}
  88083. 8023b46: b08a sub sp, #40 @ 0x28
  88084. 8023b48: af00 add r7, sp, #0
  88085. 8023b4a: 60f8 str r0, [r7, #12]
  88086. 8023b4c: 60b9 str r1, [r7, #8]
  88087. 8023b4e: 607a str r2, [r7, #4]
  88088. 8023b50: 603b str r3, [r7, #0]
  88089. struct netif *netif = ip_current_input_netif();
  88090. 8023b52: 4b5e ldr r3, [pc, #376] @ (8023ccc <dhcp_recv+0x188>)
  88091. 8023b54: 685b ldr r3, [r3, #4]
  88092. 8023b56: 61fb str r3, [r7, #28]
  88093. struct dhcp *dhcp = netif_dhcp_data(netif);
  88094. 8023b58: 69fb ldr r3, [r7, #28]
  88095. 8023b5a: 6a5b ldr r3, [r3, #36] @ 0x24
  88096. 8023b5c: 61bb str r3, [r7, #24]
  88097. struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload;
  88098. 8023b5e: 687b ldr r3, [r7, #4]
  88099. 8023b60: 685b ldr r3, [r3, #4]
  88100. 8023b62: 617b str r3, [r7, #20]
  88101. struct dhcp_msg *msg_in;
  88102. LWIP_UNUSED_ARG(arg);
  88103. /* Caught DHCP message from netif that does not have DHCP enabled? -> not interested */
  88104. if ((dhcp == NULL) || (dhcp->pcb_allocated == 0)) {
  88105. 8023b64: 69bb ldr r3, [r7, #24]
  88106. 8023b66: 2b00 cmp r3, #0
  88107. 8023b68: f000 809a beq.w 8023ca0 <dhcp_recv+0x15c>
  88108. 8023b6c: 69bb ldr r3, [r7, #24]
  88109. 8023b6e: 791b ldrb r3, [r3, #4]
  88110. 8023b70: 2b00 cmp r3, #0
  88111. 8023b72: f000 8095 beq.w 8023ca0 <dhcp_recv+0x15c>
  88112. /* prevent warnings about unused arguments */
  88113. LWIP_UNUSED_ARG(pcb);
  88114. LWIP_UNUSED_ARG(addr);
  88115. LWIP_UNUSED_ARG(port);
  88116. if (p->len < DHCP_MIN_REPLY_LEN) {
  88117. 8023b76: 687b ldr r3, [r7, #4]
  88118. 8023b78: 895b ldrh r3, [r3, #10]
  88119. 8023b7a: 2b2b cmp r3, #43 @ 0x2b
  88120. 8023b7c: f240 8092 bls.w 8023ca4 <dhcp_recv+0x160>
  88121. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP reply message or pbuf too short\n"));
  88122. goto free_pbuf_and_return;
  88123. }
  88124. if (reply_msg->op != DHCP_BOOTREPLY) {
  88125. 8023b80: 697b ldr r3, [r7, #20]
  88126. 8023b82: 781b ldrb r3, [r3, #0]
  88127. 8023b84: 2b02 cmp r3, #2
  88128. 8023b86: f040 808f bne.w 8023ca8 <dhcp_recv+0x164>
  88129. 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));
  88130. goto free_pbuf_and_return;
  88131. }
  88132. /* iterate through hardware address and match against DHCP message */
  88133. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  88134. 8023b8a: 2300 movs r3, #0
  88135. 8023b8c: 74fb strb r3, [r7, #19]
  88136. 8023b8e: e00e b.n 8023bae <dhcp_recv+0x6a>
  88137. if (netif->hwaddr[i] != reply_msg->chaddr[i]) {
  88138. 8023b90: 7cfb ldrb r3, [r7, #19]
  88139. 8023b92: 69fa ldr r2, [r7, #28]
  88140. 8023b94: 4413 add r3, r2
  88141. 8023b96: f893 202a ldrb.w r2, [r3, #42] @ 0x2a
  88142. 8023b9a: 7cfb ldrb r3, [r7, #19]
  88143. 8023b9c: 6979 ldr r1, [r7, #20]
  88144. 8023b9e: 440b add r3, r1
  88145. 8023ba0: 7f1b ldrb r3, [r3, #28]
  88146. 8023ba2: 429a cmp r2, r3
  88147. 8023ba4: f040 8082 bne.w 8023cac <dhcp_recv+0x168>
  88148. for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  88149. 8023ba8: 7cfb ldrb r3, [r7, #19]
  88150. 8023baa: 3301 adds r3, #1
  88151. 8023bac: 74fb strb r3, [r7, #19]
  88152. 8023bae: 69fb ldr r3, [r7, #28]
  88153. 8023bb0: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  88154. 8023bb4: 7cfa ldrb r2, [r7, #19]
  88155. 8023bb6: 429a cmp r2, r3
  88156. 8023bb8: d202 bcs.n 8023bc0 <dhcp_recv+0x7c>
  88157. 8023bba: 7cfb ldrb r3, [r7, #19]
  88158. 8023bbc: 2b05 cmp r3, #5
  88159. 8023bbe: d9e7 bls.n 8023b90 <dhcp_recv+0x4c>
  88160. (u16_t)i, (u16_t)netif->hwaddr[i], (u16_t)i, (u16_t)reply_msg->chaddr[i]));
  88161. goto free_pbuf_and_return;
  88162. }
  88163. }
  88164. /* match transaction ID against what we expected */
  88165. if (lwip_ntohl(reply_msg->xid) != dhcp->xid) {
  88166. 8023bc0: 697b ldr r3, [r7, #20]
  88167. 8023bc2: 685b ldr r3, [r3, #4]
  88168. 8023bc4: 4618 mov r0, r3
  88169. 8023bc6: f7f5 fbb4 bl 8019332 <lwip_htonl>
  88170. 8023bca: 4602 mov r2, r0
  88171. 8023bcc: 69bb ldr r3, [r7, #24]
  88172. 8023bce: 681b ldr r3, [r3, #0]
  88173. 8023bd0: 429a cmp r2, r3
  88174. 8023bd2: d16d bne.n 8023cb0 <dhcp_recv+0x16c>
  88175. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  88176. ("transaction id mismatch reply_msg->xid(%"X32_F")!=dhcp->xid(%"X32_F")\n", lwip_ntohl(reply_msg->xid), dhcp->xid));
  88177. goto free_pbuf_and_return;
  88178. }
  88179. /* option fields could be unfold? */
  88180. if (dhcp_parse_reply(p, dhcp) != ERR_OK) {
  88181. 8023bd4: 69b9 ldr r1, [r7, #24]
  88182. 8023bd6: 6878 ldr r0, [r7, #4]
  88183. 8023bd8: f7ff fcd0 bl 802357c <dhcp_parse_reply>
  88184. 8023bdc: 4603 mov r3, r0
  88185. 8023bde: 2b00 cmp r3, #0
  88186. 8023be0: d168 bne.n 8023cb4 <dhcp_recv+0x170>
  88187. goto free_pbuf_and_return;
  88188. }
  88189. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("searching DHCP_OPTION_MESSAGE_TYPE\n"));
  88190. /* obtain pointer to DHCP message type */
  88191. if (!dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE)) {
  88192. 8023be2: 4b3b ldr r3, [pc, #236] @ (8023cd0 <dhcp_recv+0x18c>)
  88193. 8023be4: 785b ldrb r3, [r3, #1]
  88194. 8023be6: 2b00 cmp r3, #0
  88195. 8023be8: d066 beq.n 8023cb8 <dhcp_recv+0x174>
  88196. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP_OPTION_MESSAGE_TYPE option not found\n"));
  88197. goto free_pbuf_and_return;
  88198. }
  88199. msg_in = (struct dhcp_msg *)p->payload;
  88200. 8023bea: 687b ldr r3, [r7, #4]
  88201. 8023bec: 685b ldr r3, [r3, #4]
  88202. 8023bee: 627b str r3, [r7, #36] @ 0x24
  88203. /* read DHCP message type */
  88204. msg_type = (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE);
  88205. 8023bf0: 4b38 ldr r3, [pc, #224] @ (8023cd4 <dhcp_recv+0x190>)
  88206. 8023bf2: 685b ldr r3, [r3, #4]
  88207. 8023bf4: f887 3023 strb.w r3, [r7, #35] @ 0x23
  88208. /* message type is DHCP ACK? */
  88209. if (msg_type == DHCP_ACK) {
  88210. 8023bf8: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  88211. 8023bfc: 2b05 cmp r3, #5
  88212. 8023bfe: d12a bne.n 8023c56 <dhcp_recv+0x112>
  88213. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_ACK received\n"));
  88214. /* in requesting state? */
  88215. if (dhcp->state == DHCP_STATE_REQUESTING) {
  88216. 8023c00: 69bb ldr r3, [r7, #24]
  88217. 8023c02: 795b ldrb r3, [r3, #5]
  88218. 8023c04: 2b01 cmp r3, #1
  88219. 8023c06: d112 bne.n 8023c2e <dhcp_recv+0xea>
  88220. dhcp_handle_ack(netif, msg_in);
  88221. 8023c08: 6a79 ldr r1, [r7, #36] @ 0x24
  88222. 8023c0a: 69f8 ldr r0, [r7, #28]
  88223. 8023c0c: f7fe fe00 bl 8022810 <dhcp_handle_ack>
  88224. #if DHCP_DOES_ARP_CHECK
  88225. if ((netif->flags & NETIF_FLAG_ETHARP) != 0) {
  88226. 8023c10: 69fb ldr r3, [r7, #28]
  88227. 8023c12: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  88228. 8023c16: f003 0308 and.w r3, r3, #8
  88229. 8023c1a: 2b00 cmp r3, #0
  88230. 8023c1c: d003 beq.n 8023c26 <dhcp_recv+0xe2>
  88231. /* check if the acknowledged lease address is already in use */
  88232. dhcp_check(netif);
  88233. 8023c1e: 69f8 ldr r0, [r7, #28]
  88234. 8023c20: f7fe fb6e bl 8022300 <dhcp_check>
  88235. 8023c24: e04b b.n 8023cbe <dhcp_recv+0x17a>
  88236. } else {
  88237. /* bind interface to the acknowledged lease address */
  88238. dhcp_bind(netif);
  88239. 8023c26: 69f8 ldr r0, [r7, #28]
  88240. 8023c28: f7ff f852 bl 8022cd0 <dhcp_bind>
  88241. 8023c2c: e047 b.n 8023cbe <dhcp_recv+0x17a>
  88242. /* bind interface to the acknowledged lease address */
  88243. dhcp_bind(netif);
  88244. #endif
  88245. }
  88246. /* already bound to the given lease address? */
  88247. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  88248. 8023c2e: 69bb ldr r3, [r7, #24]
  88249. 8023c30: 795b ldrb r3, [r3, #5]
  88250. 8023c32: 2b03 cmp r3, #3
  88251. 8023c34: d007 beq.n 8023c46 <dhcp_recv+0x102>
  88252. 8023c36: 69bb ldr r3, [r7, #24]
  88253. 8023c38: 795b ldrb r3, [r3, #5]
  88254. 8023c3a: 2b04 cmp r3, #4
  88255. 8023c3c: d003 beq.n 8023c46 <dhcp_recv+0x102>
  88256. (dhcp->state == DHCP_STATE_RENEWING)) {
  88257. 8023c3e: 69bb ldr r3, [r7, #24]
  88258. 8023c40: 795b ldrb r3, [r3, #5]
  88259. else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) ||
  88260. 8023c42: 2b05 cmp r3, #5
  88261. 8023c44: d13b bne.n 8023cbe <dhcp_recv+0x17a>
  88262. dhcp_handle_ack(netif, msg_in);
  88263. 8023c46: 6a79 ldr r1, [r7, #36] @ 0x24
  88264. 8023c48: 69f8 ldr r0, [r7, #28]
  88265. 8023c4a: f7fe fde1 bl 8022810 <dhcp_handle_ack>
  88266. dhcp_bind(netif);
  88267. 8023c4e: 69f8 ldr r0, [r7, #28]
  88268. 8023c50: f7ff f83e bl 8022cd0 <dhcp_bind>
  88269. 8023c54: e033 b.n 8023cbe <dhcp_recv+0x17a>
  88270. }
  88271. }
  88272. /* received a DHCP_NAK in appropriate state? */
  88273. else if ((msg_type == DHCP_NAK) &&
  88274. 8023c56: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  88275. 8023c5a: 2b06 cmp r3, #6
  88276. 8023c5c: d113 bne.n 8023c86 <dhcp_recv+0x142>
  88277. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  88278. 8023c5e: 69bb ldr r3, [r7, #24]
  88279. 8023c60: 795b ldrb r3, [r3, #5]
  88280. else if ((msg_type == DHCP_NAK) &&
  88281. 8023c62: 2b03 cmp r3, #3
  88282. 8023c64: d00b beq.n 8023c7e <dhcp_recv+0x13a>
  88283. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  88284. 8023c66: 69bb ldr r3, [r7, #24]
  88285. 8023c68: 795b ldrb r3, [r3, #5]
  88286. 8023c6a: 2b01 cmp r3, #1
  88287. 8023c6c: d007 beq.n 8023c7e <dhcp_recv+0x13a>
  88288. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  88289. 8023c6e: 69bb ldr r3, [r7, #24]
  88290. 8023c70: 795b ldrb r3, [r3, #5]
  88291. ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) ||
  88292. 8023c72: 2b04 cmp r3, #4
  88293. 8023c74: d003 beq.n 8023c7e <dhcp_recv+0x13a>
  88294. (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) {
  88295. 8023c76: 69bb ldr r3, [r7, #24]
  88296. 8023c78: 795b ldrb r3, [r3, #5]
  88297. 8023c7a: 2b05 cmp r3, #5
  88298. 8023c7c: d103 bne.n 8023c86 <dhcp_recv+0x142>
  88299. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_NAK received\n"));
  88300. dhcp_handle_nak(netif);
  88301. 8023c7e: 69f8 ldr r0, [r7, #28]
  88302. 8023c80: f7fe fb24 bl 80222cc <dhcp_handle_nak>
  88303. 8023c84: e01b b.n 8023cbe <dhcp_recv+0x17a>
  88304. }
  88305. /* received a DHCP_OFFER in DHCP_STATE_SELECTING state? */
  88306. else if ((msg_type == DHCP_OFFER) && (dhcp->state == DHCP_STATE_SELECTING)) {
  88307. 8023c86: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  88308. 8023c8a: 2b02 cmp r3, #2
  88309. 8023c8c: d116 bne.n 8023cbc <dhcp_recv+0x178>
  88310. 8023c8e: 69bb ldr r3, [r7, #24]
  88311. 8023c90: 795b ldrb r3, [r3, #5]
  88312. 8023c92: 2b06 cmp r3, #6
  88313. 8023c94: d112 bne.n 8023cbc <dhcp_recv+0x178>
  88314. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_OFFER received in DHCP_STATE_SELECTING state\n"));
  88315. /* remember offered lease */
  88316. dhcp_handle_offer(netif, msg_in);
  88317. 8023c96: 6a79 ldr r1, [r7, #36] @ 0x24
  88318. 8023c98: 69f8 ldr r0, [r7, #28]
  88319. 8023c9a: f7fe fb65 bl 8022368 <dhcp_handle_offer>
  88320. 8023c9e: e00e b.n 8023cbe <dhcp_recv+0x17a>
  88321. goto free_pbuf_and_return;
  88322. 8023ca0: bf00 nop
  88323. 8023ca2: e00c b.n 8023cbe <dhcp_recv+0x17a>
  88324. goto free_pbuf_and_return;
  88325. 8023ca4: bf00 nop
  88326. 8023ca6: e00a b.n 8023cbe <dhcp_recv+0x17a>
  88327. goto free_pbuf_and_return;
  88328. 8023ca8: bf00 nop
  88329. 8023caa: e008 b.n 8023cbe <dhcp_recv+0x17a>
  88330. goto free_pbuf_and_return;
  88331. 8023cac: bf00 nop
  88332. 8023cae: e006 b.n 8023cbe <dhcp_recv+0x17a>
  88333. goto free_pbuf_and_return;
  88334. 8023cb0: bf00 nop
  88335. 8023cb2: e004 b.n 8023cbe <dhcp_recv+0x17a>
  88336. goto free_pbuf_and_return;
  88337. 8023cb4: bf00 nop
  88338. 8023cb6: e002 b.n 8023cbe <dhcp_recv+0x17a>
  88339. goto free_pbuf_and_return;
  88340. 8023cb8: bf00 nop
  88341. 8023cba: e000 b.n 8023cbe <dhcp_recv+0x17a>
  88342. }
  88343. free_pbuf_and_return:
  88344. 8023cbc: bf00 nop
  88345. pbuf_free(p);
  88346. 8023cbe: 6878 ldr r0, [r7, #4]
  88347. 8023cc0: f7f7 f804 bl 801accc <pbuf_free>
  88348. }
  88349. 8023cc4: bf00 nop
  88350. 8023cc6: 3728 adds r7, #40 @ 0x28
  88351. 8023cc8: 46bd mov sp, r7
  88352. 8023cca: bd80 pop {r7, pc}
  88353. 8023ccc: 24024408 .word 0x24024408
  88354. 8023cd0: 2402afdc .word 0x2402afdc
  88355. 8023cd4: 2402afbc .word 0x2402afbc
  88356. 08023cd8 <dhcp_create_msg>:
  88357. * @param dhcp dhcp control struct
  88358. * @param message_type message type of the request
  88359. */
  88360. static struct pbuf *
  88361. dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len)
  88362. {
  88363. 8023cd8: b580 push {r7, lr}
  88364. 8023cda: b088 sub sp, #32
  88365. 8023cdc: af00 add r7, sp, #0
  88366. 8023cde: 60f8 str r0, [r7, #12]
  88367. 8023ce0: 60b9 str r1, [r7, #8]
  88368. 8023ce2: 603b str r3, [r7, #0]
  88369. 8023ce4: 4613 mov r3, r2
  88370. 8023ce6: 71fb strb r3, [r7, #7]
  88371. if (!xid_initialised) {
  88372. xid = DHCP_GLOBAL_XID;
  88373. xid_initialised = !xid_initialised;
  88374. }
  88375. #endif
  88376. LWIP_ERROR("dhcp_create_msg: netif != NULL", (netif != NULL), return NULL;);
  88377. 8023ce8: 68fb ldr r3, [r7, #12]
  88378. 8023cea: 2b00 cmp r3, #0
  88379. 8023cec: d108 bne.n 8023d00 <dhcp_create_msg+0x28>
  88380. 8023cee: 4b5f ldr r3, [pc, #380] @ (8023e6c <dhcp_create_msg+0x194>)
  88381. 8023cf0: f240 7269 movw r2, #1897 @ 0x769
  88382. 8023cf4: 495e ldr r1, [pc, #376] @ (8023e70 <dhcp_create_msg+0x198>)
  88383. 8023cf6: 485f ldr r0, [pc, #380] @ (8023e74 <dhcp_create_msg+0x19c>)
  88384. 8023cf8: f006 fa60 bl 802a1bc <iprintf>
  88385. 8023cfc: 2300 movs r3, #0
  88386. 8023cfe: e0b1 b.n 8023e64 <dhcp_create_msg+0x18c>
  88387. LWIP_ERROR("dhcp_create_msg: dhcp != NULL", (dhcp != NULL), return NULL;);
  88388. 8023d00: 68bb ldr r3, [r7, #8]
  88389. 8023d02: 2b00 cmp r3, #0
  88390. 8023d04: d108 bne.n 8023d18 <dhcp_create_msg+0x40>
  88391. 8023d06: 4b59 ldr r3, [pc, #356] @ (8023e6c <dhcp_create_msg+0x194>)
  88392. 8023d08: f240 726a movw r2, #1898 @ 0x76a
  88393. 8023d0c: 495a ldr r1, [pc, #360] @ (8023e78 <dhcp_create_msg+0x1a0>)
  88394. 8023d0e: 4859 ldr r0, [pc, #356] @ (8023e74 <dhcp_create_msg+0x19c>)
  88395. 8023d10: f006 fa54 bl 802a1bc <iprintf>
  88396. 8023d14: 2300 movs r3, #0
  88397. 8023d16: e0a5 b.n 8023e64 <dhcp_create_msg+0x18c>
  88398. p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp_msg), PBUF_RAM);
  88399. 8023d18: f44f 7220 mov.w r2, #640 @ 0x280
  88400. 8023d1c: f44f 719a mov.w r1, #308 @ 0x134
  88401. 8023d20: 2036 movs r0, #54 @ 0x36
  88402. 8023d22: f7f6 fcbd bl 801a6a0 <pbuf_alloc>
  88403. 8023d26: 61b8 str r0, [r7, #24]
  88404. if (p_out == NULL) {
  88405. 8023d28: 69bb ldr r3, [r7, #24]
  88406. 8023d2a: 2b00 cmp r3, #0
  88407. 8023d2c: d101 bne.n 8023d32 <dhcp_create_msg+0x5a>
  88408. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  88409. ("dhcp_create_msg(): could not allocate pbuf\n"));
  88410. return NULL;
  88411. 8023d2e: 2300 movs r3, #0
  88412. 8023d30: e098 b.n 8023e64 <dhcp_create_msg+0x18c>
  88413. }
  88414. LWIP_ASSERT("dhcp_create_msg: check that first pbuf can hold struct dhcp_msg",
  88415. 8023d32: 69bb ldr r3, [r7, #24]
  88416. 8023d34: 895b ldrh r3, [r3, #10]
  88417. 8023d36: f5b3 7f9a cmp.w r3, #308 @ 0x134
  88418. 8023d3a: d206 bcs.n 8023d4a <dhcp_create_msg+0x72>
  88419. 8023d3c: 4b4b ldr r3, [pc, #300] @ (8023e6c <dhcp_create_msg+0x194>)
  88420. 8023d3e: f240 7271 movw r2, #1905 @ 0x771
  88421. 8023d42: 494e ldr r1, [pc, #312] @ (8023e7c <dhcp_create_msg+0x1a4>)
  88422. 8023d44: 484b ldr r0, [pc, #300] @ (8023e74 <dhcp_create_msg+0x19c>)
  88423. 8023d46: f006 fa39 bl 802a1bc <iprintf>
  88424. (p_out->len >= sizeof(struct dhcp_msg)));
  88425. /* DHCP_REQUEST should reuse 'xid' from DHCPOFFER */
  88426. if ((message_type != DHCP_REQUEST) || (dhcp->state == DHCP_STATE_REBOOTING)) {
  88427. 8023d4a: 79fb ldrb r3, [r7, #7]
  88428. 8023d4c: 2b03 cmp r3, #3
  88429. 8023d4e: d103 bne.n 8023d58 <dhcp_create_msg+0x80>
  88430. 8023d50: 68bb ldr r3, [r7, #8]
  88431. 8023d52: 795b ldrb r3, [r3, #5]
  88432. 8023d54: 2b03 cmp r3, #3
  88433. 8023d56: d10d bne.n 8023d74 <dhcp_create_msg+0x9c>
  88434. /* reuse transaction identifier in retransmissions */
  88435. if (dhcp->tries == 0) {
  88436. 8023d58: 68bb ldr r3, [r7, #8]
  88437. 8023d5a: 799b ldrb r3, [r3, #6]
  88438. 8023d5c: 2b00 cmp r3, #0
  88439. 8023d5e: d105 bne.n 8023d6c <dhcp_create_msg+0x94>
  88440. #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND)
  88441. xid = LWIP_RAND();
  88442. 8023d60: f004 ff02 bl 8028b68 <rand>
  88443. 8023d64: 4603 mov r3, r0
  88444. 8023d66: 461a mov r2, r3
  88445. 8023d68: 4b45 ldr r3, [pc, #276] @ (8023e80 <dhcp_create_msg+0x1a8>)
  88446. 8023d6a: 601a str r2, [r3, #0]
  88447. #else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  88448. xid++;
  88449. #endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */
  88450. }
  88451. dhcp->xid = xid;
  88452. 8023d6c: 4b44 ldr r3, [pc, #272] @ (8023e80 <dhcp_create_msg+0x1a8>)
  88453. 8023d6e: 681a ldr r2, [r3, #0]
  88454. 8023d70: 68bb ldr r3, [r7, #8]
  88455. 8023d72: 601a str r2, [r3, #0]
  88456. }
  88457. LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE,
  88458. ("transaction id xid(%"X32_F")\n", xid));
  88459. msg_out = (struct dhcp_msg *)p_out->payload;
  88460. 8023d74: 69bb ldr r3, [r7, #24]
  88461. 8023d76: 685b ldr r3, [r3, #4]
  88462. 8023d78: 617b str r3, [r7, #20]
  88463. memset(msg_out, 0, sizeof(struct dhcp_msg));
  88464. 8023d7a: f44f 729a mov.w r2, #308 @ 0x134
  88465. 8023d7e: 2100 movs r1, #0
  88466. 8023d80: 6978 ldr r0, [r7, #20]
  88467. 8023d82: f006 fbad bl 802a4e0 <memset>
  88468. msg_out->op = DHCP_BOOTREQUEST;
  88469. 8023d86: 697b ldr r3, [r7, #20]
  88470. 8023d88: 2201 movs r2, #1
  88471. 8023d8a: 701a strb r2, [r3, #0]
  88472. /* @todo: make link layer independent */
  88473. msg_out->htype = LWIP_IANA_HWTYPE_ETHERNET;
  88474. 8023d8c: 697b ldr r3, [r7, #20]
  88475. 8023d8e: 2201 movs r2, #1
  88476. 8023d90: 705a strb r2, [r3, #1]
  88477. msg_out->hlen = netif->hwaddr_len;
  88478. 8023d92: 68fb ldr r3, [r7, #12]
  88479. 8023d94: f893 2030 ldrb.w r2, [r3, #48] @ 0x30
  88480. 8023d98: 697b ldr r3, [r7, #20]
  88481. 8023d9a: 709a strb r2, [r3, #2]
  88482. msg_out->xid = lwip_htonl(dhcp->xid);
  88483. 8023d9c: 68bb ldr r3, [r7, #8]
  88484. 8023d9e: 681b ldr r3, [r3, #0]
  88485. 8023da0: 4618 mov r0, r3
  88486. 8023da2: f7f5 fac6 bl 8019332 <lwip_htonl>
  88487. 8023da6: 4602 mov r2, r0
  88488. 8023da8: 697b ldr r3, [r7, #20]
  88489. 8023daa: 605a str r2, [r3, #4]
  88490. /* we don't need the broadcast flag since we can receive unicast traffic
  88491. before being fully configured! */
  88492. /* set ciaddr to netif->ip_addr based on message_type and state */
  88493. if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) ||
  88494. 8023dac: 79fb ldrb r3, [r7, #7]
  88495. 8023dae: 2b08 cmp r3, #8
  88496. 8023db0: d010 beq.n 8023dd4 <dhcp_create_msg+0xfc>
  88497. 8023db2: 79fb ldrb r3, [r7, #7]
  88498. 8023db4: 2b04 cmp r3, #4
  88499. 8023db6: d00d beq.n 8023dd4 <dhcp_create_msg+0xfc>
  88500. 8023db8: 79fb ldrb r3, [r7, #7]
  88501. 8023dba: 2b07 cmp r3, #7
  88502. 8023dbc: d00a beq.n 8023dd4 <dhcp_create_msg+0xfc>
  88503. 8023dbe: 79fb ldrb r3, [r7, #7]
  88504. 8023dc0: 2b03 cmp r3, #3
  88505. 8023dc2: d10c bne.n 8023dde <dhcp_create_msg+0x106>
  88506. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  88507. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  88508. 8023dc4: 68bb ldr r3, [r7, #8]
  88509. 8023dc6: 795b ldrb r3, [r3, #5]
  88510. ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */
  88511. 8023dc8: 2b05 cmp r3, #5
  88512. 8023dca: d003 beq.n 8023dd4 <dhcp_create_msg+0xfc>
  88513. ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) {
  88514. 8023dcc: 68bb ldr r3, [r7, #8]
  88515. 8023dce: 795b ldrb r3, [r3, #5]
  88516. 8023dd0: 2b04 cmp r3, #4
  88517. 8023dd2: d104 bne.n 8023dde <dhcp_create_msg+0x106>
  88518. ip4_addr_copy(msg_out->ciaddr, *netif_ip4_addr(netif));
  88519. 8023dd4: 68fb ldr r3, [r7, #12]
  88520. 8023dd6: 3304 adds r3, #4
  88521. 8023dd8: 681a ldr r2, [r3, #0]
  88522. 8023dda: 697b ldr r3, [r7, #20]
  88523. 8023ddc: 60da str r2, [r3, #12]
  88524. }
  88525. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  88526. 8023dde: 2300 movs r3, #0
  88527. 8023de0: 83fb strh r3, [r7, #30]
  88528. 8023de2: e00c b.n 8023dfe <dhcp_create_msg+0x126>
  88529. /* copy netif hardware address (padded with zeroes through memset already) */
  88530. msg_out->chaddr[i] = netif->hwaddr[i];
  88531. 8023de4: 8bfa ldrh r2, [r7, #30]
  88532. 8023de6: 8bfb ldrh r3, [r7, #30]
  88533. 8023de8: 68f9 ldr r1, [r7, #12]
  88534. 8023dea: 440a add r2, r1
  88535. 8023dec: f892 102a ldrb.w r1, [r2, #42] @ 0x2a
  88536. 8023df0: 697a ldr r2, [r7, #20]
  88537. 8023df2: 4413 add r3, r2
  88538. 8023df4: 460a mov r2, r1
  88539. 8023df6: 771a strb r2, [r3, #28]
  88540. for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) {
  88541. 8023df8: 8bfb ldrh r3, [r7, #30]
  88542. 8023dfa: 3301 adds r3, #1
  88543. 8023dfc: 83fb strh r3, [r7, #30]
  88544. 8023dfe: 8bfb ldrh r3, [r7, #30]
  88545. 8023e00: 2b05 cmp r3, #5
  88546. 8023e02: d9ef bls.n 8023de4 <dhcp_create_msg+0x10c>
  88547. }
  88548. msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE);
  88549. 8023e04: 697b ldr r3, [r7, #20]
  88550. 8023e06: 2200 movs r2, #0
  88551. 8023e08: f042 0263 orr.w r2, r2, #99 @ 0x63
  88552. 8023e0c: f883 20ec strb.w r2, [r3, #236] @ 0xec
  88553. 8023e10: 2200 movs r2, #0
  88554. 8023e12: f062 027d orn r2, r2, #125 @ 0x7d
  88555. 8023e16: f883 20ed strb.w r2, [r3, #237] @ 0xed
  88556. 8023e1a: 2200 movs r2, #0
  88557. 8023e1c: f042 0253 orr.w r2, r2, #83 @ 0x53
  88558. 8023e20: f883 20ee strb.w r2, [r3, #238] @ 0xee
  88559. 8023e24: 2200 movs r2, #0
  88560. 8023e26: f042 0263 orr.w r2, r2, #99 @ 0x63
  88561. 8023e2a: f883 20ef strb.w r2, [r3, #239] @ 0xef
  88562. /* Add option MESSAGE_TYPE */
  88563. options_out_len_loc = dhcp_option(0, msg_out->options, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN);
  88564. 8023e2e: 697b ldr r3, [r7, #20]
  88565. 8023e30: f103 01f0 add.w r1, r3, #240 @ 0xf0
  88566. 8023e34: 2301 movs r3, #1
  88567. 8023e36: 2235 movs r2, #53 @ 0x35
  88568. 8023e38: 2000 movs r0, #0
  88569. 8023e3a: f7ff facf bl 80233dc <dhcp_option>
  88570. 8023e3e: 4603 mov r3, r0
  88571. 8023e40: 827b strh r3, [r7, #18]
  88572. options_out_len_loc = dhcp_option_byte(options_out_len_loc, msg_out->options, message_type);
  88573. 8023e42: 697b ldr r3, [r7, #20]
  88574. 8023e44: f103 01f0 add.w r1, r3, #240 @ 0xf0
  88575. 8023e48: 79fa ldrb r2, [r7, #7]
  88576. 8023e4a: 8a7b ldrh r3, [r7, #18]
  88577. 8023e4c: 4618 mov r0, r3
  88578. 8023e4e: f7ff faf9 bl 8023444 <dhcp_option_byte>
  88579. 8023e52: 4603 mov r3, r0
  88580. 8023e54: 827b strh r3, [r7, #18]
  88581. if (options_out_len) {
  88582. 8023e56: 683b ldr r3, [r7, #0]
  88583. 8023e58: 2b00 cmp r3, #0
  88584. 8023e5a: d002 beq.n 8023e62 <dhcp_create_msg+0x18a>
  88585. *options_out_len = options_out_len_loc;
  88586. 8023e5c: 683b ldr r3, [r7, #0]
  88587. 8023e5e: 8a7a ldrh r2, [r7, #18]
  88588. 8023e60: 801a strh r2, [r3, #0]
  88589. }
  88590. return p_out;
  88591. 8023e62: 69bb ldr r3, [r7, #24]
  88592. }
  88593. 8023e64: 4618 mov r0, r3
  88594. 8023e66: 3720 adds r7, #32
  88595. 8023e68: 46bd mov sp, r7
  88596. 8023e6a: bd80 pop {r7, pc}
  88597. 8023e6c: 080306e8 .word 0x080306e8
  88598. 8023e70: 08030a08 .word 0x08030a08
  88599. 8023e74: 08030748 .word 0x08030748
  88600. 8023e78: 08030a28 .word 0x08030a28
  88601. 8023e7c: 08030a48 .word 0x08030a48
  88602. 8023e80: 2402afec .word 0x2402afec
  88603. 08023e84 <dhcp_option_trailer>:
  88604. * Adds the END option to the DHCP message, and if
  88605. * necessary, up to three padding bytes.
  88606. */
  88607. static void
  88608. dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out)
  88609. {
  88610. 8023e84: b580 push {r7, lr}
  88611. 8023e86: b084 sub sp, #16
  88612. 8023e88: af00 add r7, sp, #0
  88613. 8023e8a: 4603 mov r3, r0
  88614. 8023e8c: 60b9 str r1, [r7, #8]
  88615. 8023e8e: 607a str r2, [r7, #4]
  88616. 8023e90: 81fb strh r3, [r7, #14]
  88617. options[options_out_len++] = DHCP_OPTION_END;
  88618. 8023e92: 89fb ldrh r3, [r7, #14]
  88619. 8023e94: 1c5a adds r2, r3, #1
  88620. 8023e96: 81fa strh r2, [r7, #14]
  88621. 8023e98: 461a mov r2, r3
  88622. 8023e9a: 68bb ldr r3, [r7, #8]
  88623. 8023e9c: 4413 add r3, r2
  88624. 8023e9e: 22ff movs r2, #255 @ 0xff
  88625. 8023ea0: 701a strb r2, [r3, #0]
  88626. /* packet is too small, or not 4 byte aligned? */
  88627. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  88628. 8023ea2: e007 b.n 8023eb4 <dhcp_option_trailer+0x30>
  88629. (options_out_len < DHCP_OPTIONS_LEN)) {
  88630. /* add a fill/padding byte */
  88631. options[options_out_len++] = 0;
  88632. 8023ea4: 89fb ldrh r3, [r7, #14]
  88633. 8023ea6: 1c5a adds r2, r3, #1
  88634. 8023ea8: 81fa strh r2, [r7, #14]
  88635. 8023eaa: 461a mov r2, r3
  88636. 8023eac: 68bb ldr r3, [r7, #8]
  88637. 8023eae: 4413 add r3, r2
  88638. 8023eb0: 2200 movs r2, #0
  88639. 8023eb2: 701a strb r2, [r3, #0]
  88640. while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) &&
  88641. 8023eb4: 89fb ldrh r3, [r7, #14]
  88642. 8023eb6: 2b43 cmp r3, #67 @ 0x43
  88643. 8023eb8: d904 bls.n 8023ec4 <dhcp_option_trailer+0x40>
  88644. 8023eba: 89fb ldrh r3, [r7, #14]
  88645. 8023ebc: f003 0303 and.w r3, r3, #3
  88646. 8023ec0: 2b00 cmp r3, #0
  88647. 8023ec2: d002 beq.n 8023eca <dhcp_option_trailer+0x46>
  88648. 8023ec4: 89fb ldrh r3, [r7, #14]
  88649. 8023ec6: 2b43 cmp r3, #67 @ 0x43
  88650. 8023ec8: d9ec bls.n 8023ea4 <dhcp_option_trailer+0x20>
  88651. }
  88652. /* shrink the pbuf to the actual content length */
  88653. pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + options_out_len));
  88654. 8023eca: 89fb ldrh r3, [r7, #14]
  88655. 8023ecc: 33f0 adds r3, #240 @ 0xf0
  88656. 8023ece: b29b uxth r3, r3
  88657. 8023ed0: 4619 mov r1, r3
  88658. 8023ed2: 6878 ldr r0, [r7, #4]
  88659. 8023ed4: f7f6 fd44 bl 801a960 <pbuf_realloc>
  88660. }
  88661. 8023ed8: bf00 nop
  88662. 8023eda: 3710 adds r7, #16
  88663. 8023edc: 46bd mov sp, r7
  88664. 8023ede: bd80 pop {r7, pc}
  88665. 08023ee0 <dhcp_supplied_address>:
  88666. * @return 1 if DHCP supplied netif->ip_addr (states BOUND or RENEWING),
  88667. * 0 otherwise
  88668. */
  88669. u8_t
  88670. dhcp_supplied_address(const struct netif *netif)
  88671. {
  88672. 8023ee0: b480 push {r7}
  88673. 8023ee2: b085 sub sp, #20
  88674. 8023ee4: af00 add r7, sp, #0
  88675. 8023ee6: 6078 str r0, [r7, #4]
  88676. if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) {
  88677. 8023ee8: 687b ldr r3, [r7, #4]
  88678. 8023eea: 2b00 cmp r3, #0
  88679. 8023eec: d017 beq.n 8023f1e <dhcp_supplied_address+0x3e>
  88680. 8023eee: 687b ldr r3, [r7, #4]
  88681. 8023ef0: 6a5b ldr r3, [r3, #36] @ 0x24
  88682. 8023ef2: 2b00 cmp r3, #0
  88683. 8023ef4: d013 beq.n 8023f1e <dhcp_supplied_address+0x3e>
  88684. struct dhcp *dhcp = netif_dhcp_data(netif);
  88685. 8023ef6: 687b ldr r3, [r7, #4]
  88686. 8023ef8: 6a5b ldr r3, [r3, #36] @ 0x24
  88687. 8023efa: 60fb str r3, [r7, #12]
  88688. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  88689. 8023efc: 68fb ldr r3, [r7, #12]
  88690. 8023efe: 795b ldrb r3, [r3, #5]
  88691. 8023f00: 2b0a cmp r3, #10
  88692. 8023f02: d007 beq.n 8023f14 <dhcp_supplied_address+0x34>
  88693. 8023f04: 68fb ldr r3, [r7, #12]
  88694. 8023f06: 795b ldrb r3, [r3, #5]
  88695. 8023f08: 2b05 cmp r3, #5
  88696. 8023f0a: d003 beq.n 8023f14 <dhcp_supplied_address+0x34>
  88697. (dhcp->state == DHCP_STATE_REBINDING);
  88698. 8023f0c: 68fb ldr r3, [r7, #12]
  88699. 8023f0e: 795b ldrb r3, [r3, #5]
  88700. return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) ||
  88701. 8023f10: 2b04 cmp r3, #4
  88702. 8023f12: d101 bne.n 8023f18 <dhcp_supplied_address+0x38>
  88703. 8023f14: 2301 movs r3, #1
  88704. 8023f16: e000 b.n 8023f1a <dhcp_supplied_address+0x3a>
  88705. 8023f18: 2300 movs r3, #0
  88706. 8023f1a: b2db uxtb r3, r3
  88707. 8023f1c: e000 b.n 8023f20 <dhcp_supplied_address+0x40>
  88708. }
  88709. return 0;
  88710. 8023f1e: 2300 movs r3, #0
  88711. }
  88712. 8023f20: 4618 mov r0, r3
  88713. 8023f22: 3714 adds r7, #20
  88714. 8023f24: 46bd mov sp, r7
  88715. 8023f26: f85d 7b04 ldr.w r7, [sp], #4
  88716. 8023f2a: 4770 bx lr
  88717. 08023f2c <etharp_free_entry>:
  88718. #endif /* ARP_QUEUEING */
  88719. /** Clean up ARP table entries */
  88720. static void
  88721. etharp_free_entry(int i)
  88722. {
  88723. 8023f2c: b580 push {r7, lr}
  88724. 8023f2e: b082 sub sp, #8
  88725. 8023f30: af00 add r7, sp, #0
  88726. 8023f32: 6078 str r0, [r7, #4]
  88727. /* remove from SNMP ARP index tree */
  88728. mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr);
  88729. /* and empty packet queue */
  88730. if (arp_table[i].q != NULL) {
  88731. 8023f34: 492b ldr r1, [pc, #172] @ (8023fe4 <etharp_free_entry+0xb8>)
  88732. 8023f36: 687a ldr r2, [r7, #4]
  88733. 8023f38: 4613 mov r3, r2
  88734. 8023f3a: 005b lsls r3, r3, #1
  88735. 8023f3c: 4413 add r3, r2
  88736. 8023f3e: 00db lsls r3, r3, #3
  88737. 8023f40: 440b add r3, r1
  88738. 8023f42: 681b ldr r3, [r3, #0]
  88739. 8023f44: 2b00 cmp r3, #0
  88740. 8023f46: d013 beq.n 8023f70 <etharp_free_entry+0x44>
  88741. /* remove all queued packets */
  88742. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t)i, (void *)(arp_table[i].q)));
  88743. free_etharp_q(arp_table[i].q);
  88744. 8023f48: 4926 ldr r1, [pc, #152] @ (8023fe4 <etharp_free_entry+0xb8>)
  88745. 8023f4a: 687a ldr r2, [r7, #4]
  88746. 8023f4c: 4613 mov r3, r2
  88747. 8023f4e: 005b lsls r3, r3, #1
  88748. 8023f50: 4413 add r3, r2
  88749. 8023f52: 00db lsls r3, r3, #3
  88750. 8023f54: 440b add r3, r1
  88751. 8023f56: 681b ldr r3, [r3, #0]
  88752. 8023f58: 4618 mov r0, r3
  88753. 8023f5a: f7f6 feb7 bl 801accc <pbuf_free>
  88754. arp_table[i].q = NULL;
  88755. 8023f5e: 4921 ldr r1, [pc, #132] @ (8023fe4 <etharp_free_entry+0xb8>)
  88756. 8023f60: 687a ldr r2, [r7, #4]
  88757. 8023f62: 4613 mov r3, r2
  88758. 8023f64: 005b lsls r3, r3, #1
  88759. 8023f66: 4413 add r3, r2
  88760. 8023f68: 00db lsls r3, r3, #3
  88761. 8023f6a: 440b add r3, r1
  88762. 8023f6c: 2200 movs r2, #0
  88763. 8023f6e: 601a str r2, [r3, #0]
  88764. }
  88765. /* recycle entry for re-use */
  88766. arp_table[i].state = ETHARP_STATE_EMPTY;
  88767. 8023f70: 491c ldr r1, [pc, #112] @ (8023fe4 <etharp_free_entry+0xb8>)
  88768. 8023f72: 687a ldr r2, [r7, #4]
  88769. 8023f74: 4613 mov r3, r2
  88770. 8023f76: 005b lsls r3, r3, #1
  88771. 8023f78: 4413 add r3, r2
  88772. 8023f7a: 00db lsls r3, r3, #3
  88773. 8023f7c: 440b add r3, r1
  88774. 8023f7e: 3314 adds r3, #20
  88775. 8023f80: 2200 movs r2, #0
  88776. 8023f82: 701a strb r2, [r3, #0]
  88777. #ifdef LWIP_DEBUG
  88778. /* for debugging, clean out the complete entry */
  88779. arp_table[i].ctime = 0;
  88780. 8023f84: 4917 ldr r1, [pc, #92] @ (8023fe4 <etharp_free_entry+0xb8>)
  88781. 8023f86: 687a ldr r2, [r7, #4]
  88782. 8023f88: 4613 mov r3, r2
  88783. 8023f8a: 005b lsls r3, r3, #1
  88784. 8023f8c: 4413 add r3, r2
  88785. 8023f8e: 00db lsls r3, r3, #3
  88786. 8023f90: 440b add r3, r1
  88787. 8023f92: 3312 adds r3, #18
  88788. 8023f94: 2200 movs r2, #0
  88789. 8023f96: 801a strh r2, [r3, #0]
  88790. arp_table[i].netif = NULL;
  88791. 8023f98: 4912 ldr r1, [pc, #72] @ (8023fe4 <etharp_free_entry+0xb8>)
  88792. 8023f9a: 687a ldr r2, [r7, #4]
  88793. 8023f9c: 4613 mov r3, r2
  88794. 8023f9e: 005b lsls r3, r3, #1
  88795. 8023fa0: 4413 add r3, r2
  88796. 8023fa2: 00db lsls r3, r3, #3
  88797. 8023fa4: 440b add r3, r1
  88798. 8023fa6: 3308 adds r3, #8
  88799. 8023fa8: 2200 movs r2, #0
  88800. 8023faa: 601a str r2, [r3, #0]
  88801. ip4_addr_set_zero(&arp_table[i].ipaddr);
  88802. 8023fac: 490d ldr r1, [pc, #52] @ (8023fe4 <etharp_free_entry+0xb8>)
  88803. 8023fae: 687a ldr r2, [r7, #4]
  88804. 8023fb0: 4613 mov r3, r2
  88805. 8023fb2: 005b lsls r3, r3, #1
  88806. 8023fb4: 4413 add r3, r2
  88807. 8023fb6: 00db lsls r3, r3, #3
  88808. 8023fb8: 440b add r3, r1
  88809. 8023fba: 3304 adds r3, #4
  88810. 8023fbc: 2200 movs r2, #0
  88811. 8023fbe: 601a str r2, [r3, #0]
  88812. arp_table[i].ethaddr = ethzero;
  88813. 8023fc0: 4908 ldr r1, [pc, #32] @ (8023fe4 <etharp_free_entry+0xb8>)
  88814. 8023fc2: 687a ldr r2, [r7, #4]
  88815. 8023fc4: 4613 mov r3, r2
  88816. 8023fc6: 005b lsls r3, r3, #1
  88817. 8023fc8: 4413 add r3, r2
  88818. 8023fca: 00db lsls r3, r3, #3
  88819. 8023fcc: 440b add r3, r1
  88820. 8023fce: 3308 adds r3, #8
  88821. 8023fd0: 4a05 ldr r2, [pc, #20] @ (8023fe8 <etharp_free_entry+0xbc>)
  88822. 8023fd2: 3304 adds r3, #4
  88823. 8023fd4: 6810 ldr r0, [r2, #0]
  88824. 8023fd6: 6018 str r0, [r3, #0]
  88825. 8023fd8: 8892 ldrh r2, [r2, #4]
  88826. 8023fda: 809a strh r2, [r3, #4]
  88827. #endif /* LWIP_DEBUG */
  88828. }
  88829. 8023fdc: bf00 nop
  88830. 8023fde: 3708 adds r7, #8
  88831. 8023fe0: 46bd mov sp, r7
  88832. 8023fe2: bd80 pop {r7, pc}
  88833. 8023fe4: 2402aff0 .word 0x2402aff0
  88834. 8023fe8: 08031504 .word 0x08031504
  88835. 08023fec <etharp_tmr>:
  88836. * This function should be called every ARP_TMR_INTERVAL milliseconds (1 second),
  88837. * in order to expire entries in the ARP table.
  88838. */
  88839. void
  88840. etharp_tmr(void)
  88841. {
  88842. 8023fec: b580 push {r7, lr}
  88843. 8023fee: b082 sub sp, #8
  88844. 8023ff0: af00 add r7, sp, #0
  88845. int i;
  88846. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer\n"));
  88847. /* remove expired entries from the ARP table */
  88848. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  88849. 8023ff2: 2300 movs r3, #0
  88850. 8023ff4: 607b str r3, [r7, #4]
  88851. 8023ff6: e096 b.n 8024126 <etharp_tmr+0x13a>
  88852. u8_t state = arp_table[i].state;
  88853. 8023ff8: 494f ldr r1, [pc, #316] @ (8024138 <etharp_tmr+0x14c>)
  88854. 8023ffa: 687a ldr r2, [r7, #4]
  88855. 8023ffc: 4613 mov r3, r2
  88856. 8023ffe: 005b lsls r3, r3, #1
  88857. 8024000: 4413 add r3, r2
  88858. 8024002: 00db lsls r3, r3, #3
  88859. 8024004: 440b add r3, r1
  88860. 8024006: 3314 adds r3, #20
  88861. 8024008: 781b ldrb r3, [r3, #0]
  88862. 802400a: 70fb strb r3, [r7, #3]
  88863. if (state != ETHARP_STATE_EMPTY
  88864. 802400c: 78fb ldrb r3, [r7, #3]
  88865. 802400e: 2b00 cmp r3, #0
  88866. 8024010: f000 8086 beq.w 8024120 <etharp_tmr+0x134>
  88867. #if ETHARP_SUPPORT_STATIC_ENTRIES
  88868. && (state != ETHARP_STATE_STATIC)
  88869. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  88870. ) {
  88871. arp_table[i].ctime++;
  88872. 8024014: 4948 ldr r1, [pc, #288] @ (8024138 <etharp_tmr+0x14c>)
  88873. 8024016: 687a ldr r2, [r7, #4]
  88874. 8024018: 4613 mov r3, r2
  88875. 802401a: 005b lsls r3, r3, #1
  88876. 802401c: 4413 add r3, r2
  88877. 802401e: 00db lsls r3, r3, #3
  88878. 8024020: 440b add r3, r1
  88879. 8024022: 3312 adds r3, #18
  88880. 8024024: 881b ldrh r3, [r3, #0]
  88881. 8024026: 3301 adds r3, #1
  88882. 8024028: b298 uxth r0, r3
  88883. 802402a: 4943 ldr r1, [pc, #268] @ (8024138 <etharp_tmr+0x14c>)
  88884. 802402c: 687a ldr r2, [r7, #4]
  88885. 802402e: 4613 mov r3, r2
  88886. 8024030: 005b lsls r3, r3, #1
  88887. 8024032: 4413 add r3, r2
  88888. 8024034: 00db lsls r3, r3, #3
  88889. 8024036: 440b add r3, r1
  88890. 8024038: 3312 adds r3, #18
  88891. 802403a: 4602 mov r2, r0
  88892. 802403c: 801a strh r2, [r3, #0]
  88893. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  88894. 802403e: 493e ldr r1, [pc, #248] @ (8024138 <etharp_tmr+0x14c>)
  88895. 8024040: 687a ldr r2, [r7, #4]
  88896. 8024042: 4613 mov r3, r2
  88897. 8024044: 005b lsls r3, r3, #1
  88898. 8024046: 4413 add r3, r2
  88899. 8024048: 00db lsls r3, r3, #3
  88900. 802404a: 440b add r3, r1
  88901. 802404c: 3312 adds r3, #18
  88902. 802404e: 881b ldrh r3, [r3, #0]
  88903. 8024050: f5b3 7f96 cmp.w r3, #300 @ 0x12c
  88904. 8024054: d215 bcs.n 8024082 <etharp_tmr+0x96>
  88905. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  88906. 8024056: 4938 ldr r1, [pc, #224] @ (8024138 <etharp_tmr+0x14c>)
  88907. 8024058: 687a ldr r2, [r7, #4]
  88908. 802405a: 4613 mov r3, r2
  88909. 802405c: 005b lsls r3, r3, #1
  88910. 802405e: 4413 add r3, r2
  88911. 8024060: 00db lsls r3, r3, #3
  88912. 8024062: 440b add r3, r1
  88913. 8024064: 3314 adds r3, #20
  88914. 8024066: 781b ldrb r3, [r3, #0]
  88915. if ((arp_table[i].ctime >= ARP_MAXAGE) ||
  88916. 8024068: 2b01 cmp r3, #1
  88917. 802406a: d10e bne.n 802408a <etharp_tmr+0x9e>
  88918. (arp_table[i].ctime >= ARP_MAXPENDING))) {
  88919. 802406c: 4932 ldr r1, [pc, #200] @ (8024138 <etharp_tmr+0x14c>)
  88920. 802406e: 687a ldr r2, [r7, #4]
  88921. 8024070: 4613 mov r3, r2
  88922. 8024072: 005b lsls r3, r3, #1
  88923. 8024074: 4413 add r3, r2
  88924. 8024076: 00db lsls r3, r3, #3
  88925. 8024078: 440b add r3, r1
  88926. 802407a: 3312 adds r3, #18
  88927. 802407c: 881b ldrh r3, [r3, #0]
  88928. ((arp_table[i].state == ETHARP_STATE_PENDING) &&
  88929. 802407e: 2b04 cmp r3, #4
  88930. 8024080: d903 bls.n 802408a <etharp_tmr+0x9e>
  88931. /* pending or stable entry has become old! */
  88932. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired %s entry %d.\n",
  88933. arp_table[i].state >= ETHARP_STATE_STABLE ? "stable" : "pending", i));
  88934. /* clean up entries that have just been expired */
  88935. etharp_free_entry(i);
  88936. 8024082: 6878 ldr r0, [r7, #4]
  88937. 8024084: f7ff ff52 bl 8023f2c <etharp_free_entry>
  88938. 8024088: e04a b.n 8024120 <etharp_tmr+0x134>
  88939. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) {
  88940. 802408a: 492b ldr r1, [pc, #172] @ (8024138 <etharp_tmr+0x14c>)
  88941. 802408c: 687a ldr r2, [r7, #4]
  88942. 802408e: 4613 mov r3, r2
  88943. 8024090: 005b lsls r3, r3, #1
  88944. 8024092: 4413 add r3, r2
  88945. 8024094: 00db lsls r3, r3, #3
  88946. 8024096: 440b add r3, r1
  88947. 8024098: 3314 adds r3, #20
  88948. 802409a: 781b ldrb r3, [r3, #0]
  88949. 802409c: 2b03 cmp r3, #3
  88950. 802409e: d10a bne.n 80240b6 <etharp_tmr+0xca>
  88951. /* Don't send more than one request every 2 seconds. */
  88952. arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2;
  88953. 80240a0: 4925 ldr r1, [pc, #148] @ (8024138 <etharp_tmr+0x14c>)
  88954. 80240a2: 687a ldr r2, [r7, #4]
  88955. 80240a4: 4613 mov r3, r2
  88956. 80240a6: 005b lsls r3, r3, #1
  88957. 80240a8: 4413 add r3, r2
  88958. 80240aa: 00db lsls r3, r3, #3
  88959. 80240ac: 440b add r3, r1
  88960. 80240ae: 3314 adds r3, #20
  88961. 80240b0: 2204 movs r2, #4
  88962. 80240b2: 701a strb r2, [r3, #0]
  88963. 80240b4: e034 b.n 8024120 <etharp_tmr+0x134>
  88964. } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) {
  88965. 80240b6: 4920 ldr r1, [pc, #128] @ (8024138 <etharp_tmr+0x14c>)
  88966. 80240b8: 687a ldr r2, [r7, #4]
  88967. 80240ba: 4613 mov r3, r2
  88968. 80240bc: 005b lsls r3, r3, #1
  88969. 80240be: 4413 add r3, r2
  88970. 80240c0: 00db lsls r3, r3, #3
  88971. 80240c2: 440b add r3, r1
  88972. 80240c4: 3314 adds r3, #20
  88973. 80240c6: 781b ldrb r3, [r3, #0]
  88974. 80240c8: 2b04 cmp r3, #4
  88975. 80240ca: d10a bne.n 80240e2 <etharp_tmr+0xf6>
  88976. /* Reset state to stable, so that the next transmitted packet will
  88977. re-send an ARP request. */
  88978. arp_table[i].state = ETHARP_STATE_STABLE;
  88979. 80240cc: 491a ldr r1, [pc, #104] @ (8024138 <etharp_tmr+0x14c>)
  88980. 80240ce: 687a ldr r2, [r7, #4]
  88981. 80240d0: 4613 mov r3, r2
  88982. 80240d2: 005b lsls r3, r3, #1
  88983. 80240d4: 4413 add r3, r2
  88984. 80240d6: 00db lsls r3, r3, #3
  88985. 80240d8: 440b add r3, r1
  88986. 80240da: 3314 adds r3, #20
  88987. 80240dc: 2202 movs r2, #2
  88988. 80240de: 701a strb r2, [r3, #0]
  88989. 80240e0: e01e b.n 8024120 <etharp_tmr+0x134>
  88990. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  88991. 80240e2: 4915 ldr r1, [pc, #84] @ (8024138 <etharp_tmr+0x14c>)
  88992. 80240e4: 687a ldr r2, [r7, #4]
  88993. 80240e6: 4613 mov r3, r2
  88994. 80240e8: 005b lsls r3, r3, #1
  88995. 80240ea: 4413 add r3, r2
  88996. 80240ec: 00db lsls r3, r3, #3
  88997. 80240ee: 440b add r3, r1
  88998. 80240f0: 3314 adds r3, #20
  88999. 80240f2: 781b ldrb r3, [r3, #0]
  89000. 80240f4: 2b01 cmp r3, #1
  89001. 80240f6: d113 bne.n 8024120 <etharp_tmr+0x134>
  89002. /* still pending, resend an ARP query */
  89003. etharp_request(arp_table[i].netif, &arp_table[i].ipaddr);
  89004. 80240f8: 490f ldr r1, [pc, #60] @ (8024138 <etharp_tmr+0x14c>)
  89005. 80240fa: 687a ldr r2, [r7, #4]
  89006. 80240fc: 4613 mov r3, r2
  89007. 80240fe: 005b lsls r3, r3, #1
  89008. 8024100: 4413 add r3, r2
  89009. 8024102: 00db lsls r3, r3, #3
  89010. 8024104: 440b add r3, r1
  89011. 8024106: 3308 adds r3, #8
  89012. 8024108: 6818 ldr r0, [r3, #0]
  89013. 802410a: 687a ldr r2, [r7, #4]
  89014. 802410c: 4613 mov r3, r2
  89015. 802410e: 005b lsls r3, r3, #1
  89016. 8024110: 4413 add r3, r2
  89017. 8024112: 00db lsls r3, r3, #3
  89018. 8024114: 4a08 ldr r2, [pc, #32] @ (8024138 <etharp_tmr+0x14c>)
  89019. 8024116: 4413 add r3, r2
  89020. 8024118: 3304 adds r3, #4
  89021. 802411a: 4619 mov r1, r3
  89022. 802411c: f000 fe76 bl 8024e0c <etharp_request>
  89023. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89024. 8024120: 687b ldr r3, [r7, #4]
  89025. 8024122: 3301 adds r3, #1
  89026. 8024124: 607b str r3, [r7, #4]
  89027. 8024126: 687b ldr r3, [r7, #4]
  89028. 8024128: 2b09 cmp r3, #9
  89029. 802412a: f77f af65 ble.w 8023ff8 <etharp_tmr+0xc>
  89030. }
  89031. }
  89032. }
  89033. }
  89034. 802412e: bf00 nop
  89035. 8024130: bf00 nop
  89036. 8024132: 3708 adds r7, #8
  89037. 8024134: 46bd mov sp, r7
  89038. 8024136: bd80 pop {r7, pc}
  89039. 8024138: 2402aff0 .word 0x2402aff0
  89040. 0802413c <etharp_find_entry>:
  89041. * @return The ARP entry index that matched or is created, ERR_MEM if no
  89042. * entry is found or could be recycled.
  89043. */
  89044. static s16_t
  89045. etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif)
  89046. {
  89047. 802413c: b580 push {r7, lr}
  89048. 802413e: b08a sub sp, #40 @ 0x28
  89049. 8024140: af00 add r7, sp, #0
  89050. 8024142: 60f8 str r0, [r7, #12]
  89051. 8024144: 460b mov r3, r1
  89052. 8024146: 607a str r2, [r7, #4]
  89053. 8024148: 72fb strb r3, [r7, #11]
  89054. s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE;
  89055. 802414a: 230a movs r3, #10
  89056. 802414c: 843b strh r3, [r7, #32]
  89057. 802414e: 230a movs r3, #10
  89058. 8024150: 847b strh r3, [r7, #34] @ 0x22
  89059. s16_t empty = ARP_TABLE_SIZE;
  89060. 8024152: 230a movs r3, #10
  89061. 8024154: 84bb strh r3, [r7, #36] @ 0x24
  89062. s16_t i = 0;
  89063. 8024156: 2300 movs r3, #0
  89064. 8024158: 84fb strh r3, [r7, #38] @ 0x26
  89065. /* oldest entry with packets on queue */
  89066. s16_t old_queue = ARP_TABLE_SIZE;
  89067. 802415a: 230a movs r3, #10
  89068. 802415c: 83fb strh r3, [r7, #30]
  89069. /* its age */
  89070. u16_t age_queue = 0, age_pending = 0, age_stable = 0;
  89071. 802415e: 2300 movs r3, #0
  89072. 8024160: 83bb strh r3, [r7, #28]
  89073. 8024162: 2300 movs r3, #0
  89074. 8024164: 837b strh r3, [r7, #26]
  89075. 8024166: 2300 movs r3, #0
  89076. 8024168: 833b strh r3, [r7, #24]
  89077. * 4) remember the oldest pending entry with queued packets (if any)
  89078. * 5) search for a matching IP entry, either pending or stable
  89079. * until 5 matches, or all entries are searched for.
  89080. */
  89081. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89082. 802416a: 2300 movs r3, #0
  89083. 802416c: 84fb strh r3, [r7, #38] @ 0x26
  89084. 802416e: e0ae b.n 80242ce <etharp_find_entry+0x192>
  89085. u8_t state = arp_table[i].state;
  89086. 8024170: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89087. 8024174: 49a6 ldr r1, [pc, #664] @ (8024410 <etharp_find_entry+0x2d4>)
  89088. 8024176: 4613 mov r3, r2
  89089. 8024178: 005b lsls r3, r3, #1
  89090. 802417a: 4413 add r3, r2
  89091. 802417c: 00db lsls r3, r3, #3
  89092. 802417e: 440b add r3, r1
  89093. 8024180: 3314 adds r3, #20
  89094. 8024182: 781b ldrb r3, [r3, #0]
  89095. 8024184: 75fb strb r3, [r7, #23]
  89096. /* no empty entry found yet and now we do find one? */
  89097. if ((empty == ARP_TABLE_SIZE) && (state == ETHARP_STATE_EMPTY)) {
  89098. 8024186: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  89099. 802418a: 2b0a cmp r3, #10
  89100. 802418c: d105 bne.n 802419a <etharp_find_entry+0x5e>
  89101. 802418e: 7dfb ldrb r3, [r7, #23]
  89102. 8024190: 2b00 cmp r3, #0
  89103. 8024192: d102 bne.n 802419a <etharp_find_entry+0x5e>
  89104. LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i));
  89105. /* remember first empty entry */
  89106. empty = i;
  89107. 8024194: 8cfb ldrh r3, [r7, #38] @ 0x26
  89108. 8024196: 84bb strh r3, [r7, #36] @ 0x24
  89109. 8024198: e095 b.n 80242c6 <etharp_find_entry+0x18a>
  89110. } else if (state != ETHARP_STATE_EMPTY) {
  89111. 802419a: 7dfb ldrb r3, [r7, #23]
  89112. 802419c: 2b00 cmp r3, #0
  89113. 802419e: f000 8092 beq.w 80242c6 <etharp_find_entry+0x18a>
  89114. LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE",
  89115. 80241a2: 7dfb ldrb r3, [r7, #23]
  89116. 80241a4: 2b01 cmp r3, #1
  89117. 80241a6: d009 beq.n 80241bc <etharp_find_entry+0x80>
  89118. 80241a8: 7dfb ldrb r3, [r7, #23]
  89119. 80241aa: 2b01 cmp r3, #1
  89120. 80241ac: d806 bhi.n 80241bc <etharp_find_entry+0x80>
  89121. 80241ae: 4b99 ldr r3, [pc, #612] @ (8024414 <etharp_find_entry+0x2d8>)
  89122. 80241b0: f240 1223 movw r2, #291 @ 0x123
  89123. 80241b4: 4998 ldr r1, [pc, #608] @ (8024418 <etharp_find_entry+0x2dc>)
  89124. 80241b6: 4899 ldr r0, [pc, #612] @ (802441c <etharp_find_entry+0x2e0>)
  89125. 80241b8: f006 f800 bl 802a1bc <iprintf>
  89126. state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE);
  89127. /* if given, does IP address match IP address in ARP entry? */
  89128. if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr)
  89129. 80241bc: 68fb ldr r3, [r7, #12]
  89130. 80241be: 2b00 cmp r3, #0
  89131. 80241c0: d020 beq.n 8024204 <etharp_find_entry+0xc8>
  89132. 80241c2: 68fb ldr r3, [r7, #12]
  89133. 80241c4: 6819 ldr r1, [r3, #0]
  89134. 80241c6: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89135. 80241ca: 4891 ldr r0, [pc, #580] @ (8024410 <etharp_find_entry+0x2d4>)
  89136. 80241cc: 4613 mov r3, r2
  89137. 80241ce: 005b lsls r3, r3, #1
  89138. 80241d0: 4413 add r3, r2
  89139. 80241d2: 00db lsls r3, r3, #3
  89140. 80241d4: 4403 add r3, r0
  89141. 80241d6: 3304 adds r3, #4
  89142. 80241d8: 681b ldr r3, [r3, #0]
  89143. 80241da: 4299 cmp r1, r3
  89144. 80241dc: d112 bne.n 8024204 <etharp_find_entry+0xc8>
  89145. #if ETHARP_TABLE_MATCH_NETIF
  89146. && ((netif == NULL) || (netif == arp_table[i].netif))
  89147. 80241de: 687b ldr r3, [r7, #4]
  89148. 80241e0: 2b00 cmp r3, #0
  89149. 80241e2: d00c beq.n 80241fe <etharp_find_entry+0xc2>
  89150. 80241e4: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89151. 80241e8: 4989 ldr r1, [pc, #548] @ (8024410 <etharp_find_entry+0x2d4>)
  89152. 80241ea: 4613 mov r3, r2
  89153. 80241ec: 005b lsls r3, r3, #1
  89154. 80241ee: 4413 add r3, r2
  89155. 80241f0: 00db lsls r3, r3, #3
  89156. 80241f2: 440b add r3, r1
  89157. 80241f4: 3308 adds r3, #8
  89158. 80241f6: 681b ldr r3, [r3, #0]
  89159. 80241f8: 687a ldr r2, [r7, #4]
  89160. 80241fa: 429a cmp r2, r3
  89161. 80241fc: d102 bne.n 8024204 <etharp_find_entry+0xc8>
  89162. #endif /* ETHARP_TABLE_MATCH_NETIF */
  89163. ) {
  89164. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: found matching entry %d\n", (int)i));
  89165. /* found exact IP address match, simply bail out */
  89166. return i;
  89167. 80241fe: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  89168. 8024202: e100 b.n 8024406 <etharp_find_entry+0x2ca>
  89169. }
  89170. /* pending entry? */
  89171. if (state == ETHARP_STATE_PENDING) {
  89172. 8024204: 7dfb ldrb r3, [r7, #23]
  89173. 8024206: 2b01 cmp r3, #1
  89174. 8024208: d140 bne.n 802428c <etharp_find_entry+0x150>
  89175. /* pending with queued packets? */
  89176. if (arp_table[i].q != NULL) {
  89177. 802420a: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89178. 802420e: 4980 ldr r1, [pc, #512] @ (8024410 <etharp_find_entry+0x2d4>)
  89179. 8024210: 4613 mov r3, r2
  89180. 8024212: 005b lsls r3, r3, #1
  89181. 8024214: 4413 add r3, r2
  89182. 8024216: 00db lsls r3, r3, #3
  89183. 8024218: 440b add r3, r1
  89184. 802421a: 681b ldr r3, [r3, #0]
  89185. 802421c: 2b00 cmp r3, #0
  89186. 802421e: d01a beq.n 8024256 <etharp_find_entry+0x11a>
  89187. if (arp_table[i].ctime >= age_queue) {
  89188. 8024220: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89189. 8024224: 497a ldr r1, [pc, #488] @ (8024410 <etharp_find_entry+0x2d4>)
  89190. 8024226: 4613 mov r3, r2
  89191. 8024228: 005b lsls r3, r3, #1
  89192. 802422a: 4413 add r3, r2
  89193. 802422c: 00db lsls r3, r3, #3
  89194. 802422e: 440b add r3, r1
  89195. 8024230: 3312 adds r3, #18
  89196. 8024232: 881b ldrh r3, [r3, #0]
  89197. 8024234: 8bba ldrh r2, [r7, #28]
  89198. 8024236: 429a cmp r2, r3
  89199. 8024238: d845 bhi.n 80242c6 <etharp_find_entry+0x18a>
  89200. old_queue = i;
  89201. 802423a: 8cfb ldrh r3, [r7, #38] @ 0x26
  89202. 802423c: 83fb strh r3, [r7, #30]
  89203. age_queue = arp_table[i].ctime;
  89204. 802423e: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89205. 8024242: 4973 ldr r1, [pc, #460] @ (8024410 <etharp_find_entry+0x2d4>)
  89206. 8024244: 4613 mov r3, r2
  89207. 8024246: 005b lsls r3, r3, #1
  89208. 8024248: 4413 add r3, r2
  89209. 802424a: 00db lsls r3, r3, #3
  89210. 802424c: 440b add r3, r1
  89211. 802424e: 3312 adds r3, #18
  89212. 8024250: 881b ldrh r3, [r3, #0]
  89213. 8024252: 83bb strh r3, [r7, #28]
  89214. 8024254: e037 b.n 80242c6 <etharp_find_entry+0x18a>
  89215. }
  89216. } else
  89217. /* pending without queued packets? */
  89218. {
  89219. if (arp_table[i].ctime >= age_pending) {
  89220. 8024256: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89221. 802425a: 496d ldr r1, [pc, #436] @ (8024410 <etharp_find_entry+0x2d4>)
  89222. 802425c: 4613 mov r3, r2
  89223. 802425e: 005b lsls r3, r3, #1
  89224. 8024260: 4413 add r3, r2
  89225. 8024262: 00db lsls r3, r3, #3
  89226. 8024264: 440b add r3, r1
  89227. 8024266: 3312 adds r3, #18
  89228. 8024268: 881b ldrh r3, [r3, #0]
  89229. 802426a: 8b7a ldrh r2, [r7, #26]
  89230. 802426c: 429a cmp r2, r3
  89231. 802426e: d82a bhi.n 80242c6 <etharp_find_entry+0x18a>
  89232. old_pending = i;
  89233. 8024270: 8cfb ldrh r3, [r7, #38] @ 0x26
  89234. 8024272: 843b strh r3, [r7, #32]
  89235. age_pending = arp_table[i].ctime;
  89236. 8024274: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89237. 8024278: 4965 ldr r1, [pc, #404] @ (8024410 <etharp_find_entry+0x2d4>)
  89238. 802427a: 4613 mov r3, r2
  89239. 802427c: 005b lsls r3, r3, #1
  89240. 802427e: 4413 add r3, r2
  89241. 8024280: 00db lsls r3, r3, #3
  89242. 8024282: 440b add r3, r1
  89243. 8024284: 3312 adds r3, #18
  89244. 8024286: 881b ldrh r3, [r3, #0]
  89245. 8024288: 837b strh r3, [r7, #26]
  89246. 802428a: e01c b.n 80242c6 <etharp_find_entry+0x18a>
  89247. }
  89248. }
  89249. /* stable entry? */
  89250. } else if (state >= ETHARP_STATE_STABLE) {
  89251. 802428c: 7dfb ldrb r3, [r7, #23]
  89252. 802428e: 2b01 cmp r3, #1
  89253. 8024290: d919 bls.n 80242c6 <etharp_find_entry+0x18a>
  89254. /* don't record old_stable for static entries since they never expire */
  89255. if (state < ETHARP_STATE_STATIC)
  89256. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  89257. {
  89258. /* remember entry with oldest stable entry in oldest, its age in maxtime */
  89259. if (arp_table[i].ctime >= age_stable) {
  89260. 8024292: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89261. 8024296: 495e ldr r1, [pc, #376] @ (8024410 <etharp_find_entry+0x2d4>)
  89262. 8024298: 4613 mov r3, r2
  89263. 802429a: 005b lsls r3, r3, #1
  89264. 802429c: 4413 add r3, r2
  89265. 802429e: 00db lsls r3, r3, #3
  89266. 80242a0: 440b add r3, r1
  89267. 80242a2: 3312 adds r3, #18
  89268. 80242a4: 881b ldrh r3, [r3, #0]
  89269. 80242a6: 8b3a ldrh r2, [r7, #24]
  89270. 80242a8: 429a cmp r2, r3
  89271. 80242aa: d80c bhi.n 80242c6 <etharp_find_entry+0x18a>
  89272. old_stable = i;
  89273. 80242ac: 8cfb ldrh r3, [r7, #38] @ 0x26
  89274. 80242ae: 847b strh r3, [r7, #34] @ 0x22
  89275. age_stable = arp_table[i].ctime;
  89276. 80242b0: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89277. 80242b4: 4956 ldr r1, [pc, #344] @ (8024410 <etharp_find_entry+0x2d4>)
  89278. 80242b6: 4613 mov r3, r2
  89279. 80242b8: 005b lsls r3, r3, #1
  89280. 80242ba: 4413 add r3, r2
  89281. 80242bc: 00db lsls r3, r3, #3
  89282. 80242be: 440b add r3, r1
  89283. 80242c0: 3312 adds r3, #18
  89284. 80242c2: 881b ldrh r3, [r3, #0]
  89285. 80242c4: 833b strh r3, [r7, #24]
  89286. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89287. 80242c6: 8cfb ldrh r3, [r7, #38] @ 0x26
  89288. 80242c8: 3301 adds r3, #1
  89289. 80242ca: b29b uxth r3, r3
  89290. 80242cc: 84fb strh r3, [r7, #38] @ 0x26
  89291. 80242ce: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  89292. 80242d2: 2b09 cmp r3, #9
  89293. 80242d4: f77f af4c ble.w 8024170 <etharp_find_entry+0x34>
  89294. }
  89295. }
  89296. /* { we have no match } => try to create a new entry */
  89297. /* don't create new entry, only search? */
  89298. if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) ||
  89299. 80242d8: 7afb ldrb r3, [r7, #11]
  89300. 80242da: f003 0302 and.w r3, r3, #2
  89301. 80242de: 2b00 cmp r3, #0
  89302. 80242e0: d108 bne.n 80242f4 <etharp_find_entry+0x1b8>
  89303. 80242e2: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  89304. 80242e6: 2b0a cmp r3, #10
  89305. 80242e8: d107 bne.n 80242fa <etharp_find_entry+0x1be>
  89306. /* or no empty entry found and not allowed to recycle? */
  89307. ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) {
  89308. 80242ea: 7afb ldrb r3, [r7, #11]
  89309. 80242ec: f003 0301 and.w r3, r3, #1
  89310. 80242f0: 2b00 cmp r3, #0
  89311. 80242f2: d102 bne.n 80242fa <etharp_find_entry+0x1be>
  89312. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty entry found and not allowed to recycle\n"));
  89313. return (s16_t)ERR_MEM;
  89314. 80242f4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  89315. 80242f8: e085 b.n 8024406 <etharp_find_entry+0x2ca>
  89316. *
  89317. * { ETHARP_FLAG_TRY_HARD is set at this point }
  89318. */
  89319. /* 1) empty entry available? */
  89320. if (empty < ARP_TABLE_SIZE) {
  89321. 80242fa: f9b7 3024 ldrsh.w r3, [r7, #36] @ 0x24
  89322. 80242fe: 2b09 cmp r3, #9
  89323. 8024300: dc02 bgt.n 8024308 <etharp_find_entry+0x1cc>
  89324. i = empty;
  89325. 8024302: 8cbb ldrh r3, [r7, #36] @ 0x24
  89326. 8024304: 84fb strh r3, [r7, #38] @ 0x26
  89327. 8024306: e039 b.n 802437c <etharp_find_entry+0x240>
  89328. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %d\n", (int)i));
  89329. } else {
  89330. /* 2) found recyclable stable entry? */
  89331. if (old_stable < ARP_TABLE_SIZE) {
  89332. 8024308: f9b7 3022 ldrsh.w r3, [r7, #34] @ 0x22
  89333. 802430c: 2b09 cmp r3, #9
  89334. 802430e: dc14 bgt.n 802433a <etharp_find_entry+0x1fe>
  89335. /* recycle oldest stable*/
  89336. i = old_stable;
  89337. 8024310: 8c7b ldrh r3, [r7, #34] @ 0x22
  89338. 8024312: 84fb strh r3, [r7, #38] @ 0x26
  89339. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %d\n", (int)i));
  89340. /* no queued packets should exist on stable entries */
  89341. LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL);
  89342. 8024314: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89343. 8024318: 493d ldr r1, [pc, #244] @ (8024410 <etharp_find_entry+0x2d4>)
  89344. 802431a: 4613 mov r3, r2
  89345. 802431c: 005b lsls r3, r3, #1
  89346. 802431e: 4413 add r3, r2
  89347. 8024320: 00db lsls r3, r3, #3
  89348. 8024322: 440b add r3, r1
  89349. 8024324: 681b ldr r3, [r3, #0]
  89350. 8024326: 2b00 cmp r3, #0
  89351. 8024328: d018 beq.n 802435c <etharp_find_entry+0x220>
  89352. 802432a: 4b3a ldr r3, [pc, #232] @ (8024414 <etharp_find_entry+0x2d8>)
  89353. 802432c: f240 126d movw r2, #365 @ 0x16d
  89354. 8024330: 493b ldr r1, [pc, #236] @ (8024420 <etharp_find_entry+0x2e4>)
  89355. 8024332: 483a ldr r0, [pc, #232] @ (802441c <etharp_find_entry+0x2e0>)
  89356. 8024334: f005 ff42 bl 802a1bc <iprintf>
  89357. 8024338: e010 b.n 802435c <etharp_find_entry+0x220>
  89358. /* 3) found recyclable pending entry without queued packets? */
  89359. } else if (old_pending < ARP_TABLE_SIZE) {
  89360. 802433a: f9b7 3020 ldrsh.w r3, [r7, #32]
  89361. 802433e: 2b09 cmp r3, #9
  89362. 8024340: dc02 bgt.n 8024348 <etharp_find_entry+0x20c>
  89363. /* recycle oldest pending */
  89364. i = old_pending;
  89365. 8024342: 8c3b ldrh r3, [r7, #32]
  89366. 8024344: 84fb strh r3, [r7, #38] @ 0x26
  89367. 8024346: e009 b.n 802435c <etharp_find_entry+0x220>
  89368. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d (without queue)\n", (int)i));
  89369. /* 4) found recyclable pending entry with queued packets? */
  89370. } else if (old_queue < ARP_TABLE_SIZE) {
  89371. 8024348: f9b7 301e ldrsh.w r3, [r7, #30]
  89372. 802434c: 2b09 cmp r3, #9
  89373. 802434e: dc02 bgt.n 8024356 <etharp_find_entry+0x21a>
  89374. /* recycle oldest pending (queued packets are free in etharp_free_entry) */
  89375. i = old_queue;
  89376. 8024350: 8bfb ldrh r3, [r7, #30]
  89377. 8024352: 84fb strh r3, [r7, #38] @ 0x26
  89378. 8024354: e002 b.n 802435c <etharp_find_entry+0x220>
  89379. 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)));
  89380. /* no empty or recyclable entries found */
  89381. } else {
  89382. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty or recyclable entries found\n"));
  89383. return (s16_t)ERR_MEM;
  89384. 8024356: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  89385. 802435a: e054 b.n 8024406 <etharp_find_entry+0x2ca>
  89386. }
  89387. /* { empty or recyclable entry found } */
  89388. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  89389. 802435c: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  89390. 8024360: 2b09 cmp r3, #9
  89391. 8024362: dd06 ble.n 8024372 <etharp_find_entry+0x236>
  89392. 8024364: 4b2b ldr r3, [pc, #172] @ (8024414 <etharp_find_entry+0x2d8>)
  89393. 8024366: f240 127f movw r2, #383 @ 0x17f
  89394. 802436a: 492e ldr r1, [pc, #184] @ (8024424 <etharp_find_entry+0x2e8>)
  89395. 802436c: 482b ldr r0, [pc, #172] @ (802441c <etharp_find_entry+0x2e0>)
  89396. 802436e: f005 ff25 bl 802a1bc <iprintf>
  89397. etharp_free_entry(i);
  89398. 8024372: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  89399. 8024376: 4618 mov r0, r3
  89400. 8024378: f7ff fdd8 bl 8023f2c <etharp_free_entry>
  89401. }
  89402. LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE);
  89403. 802437c: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  89404. 8024380: 2b09 cmp r3, #9
  89405. 8024382: dd06 ble.n 8024392 <etharp_find_entry+0x256>
  89406. 8024384: 4b23 ldr r3, [pc, #140] @ (8024414 <etharp_find_entry+0x2d8>)
  89407. 8024386: f240 1283 movw r2, #387 @ 0x183
  89408. 802438a: 4926 ldr r1, [pc, #152] @ (8024424 <etharp_find_entry+0x2e8>)
  89409. 802438c: 4823 ldr r0, [pc, #140] @ (802441c <etharp_find_entry+0x2e0>)
  89410. 802438e: f005 ff15 bl 802a1bc <iprintf>
  89411. LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY",
  89412. 8024392: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89413. 8024396: 491e ldr r1, [pc, #120] @ (8024410 <etharp_find_entry+0x2d4>)
  89414. 8024398: 4613 mov r3, r2
  89415. 802439a: 005b lsls r3, r3, #1
  89416. 802439c: 4413 add r3, r2
  89417. 802439e: 00db lsls r3, r3, #3
  89418. 80243a0: 440b add r3, r1
  89419. 80243a2: 3314 adds r3, #20
  89420. 80243a4: 781b ldrb r3, [r3, #0]
  89421. 80243a6: 2b00 cmp r3, #0
  89422. 80243a8: d006 beq.n 80243b8 <etharp_find_entry+0x27c>
  89423. 80243aa: 4b1a ldr r3, [pc, #104] @ (8024414 <etharp_find_entry+0x2d8>)
  89424. 80243ac: f44f 72c2 mov.w r2, #388 @ 0x184
  89425. 80243b0: 491d ldr r1, [pc, #116] @ (8024428 <etharp_find_entry+0x2ec>)
  89426. 80243b2: 481a ldr r0, [pc, #104] @ (802441c <etharp_find_entry+0x2e0>)
  89427. 80243b4: f005 ff02 bl 802a1bc <iprintf>
  89428. arp_table[i].state == ETHARP_STATE_EMPTY);
  89429. /* IP address given? */
  89430. if (ipaddr != NULL) {
  89431. 80243b8: 68fb ldr r3, [r7, #12]
  89432. 80243ba: 2b00 cmp r3, #0
  89433. 80243bc: d00b beq.n 80243d6 <etharp_find_entry+0x29a>
  89434. /* set IP address */
  89435. ip4_addr_copy(arp_table[i].ipaddr, *ipaddr);
  89436. 80243be: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89437. 80243c2: 68fb ldr r3, [r7, #12]
  89438. 80243c4: 6819 ldr r1, [r3, #0]
  89439. 80243c6: 4812 ldr r0, [pc, #72] @ (8024410 <etharp_find_entry+0x2d4>)
  89440. 80243c8: 4613 mov r3, r2
  89441. 80243ca: 005b lsls r3, r3, #1
  89442. 80243cc: 4413 add r3, r2
  89443. 80243ce: 00db lsls r3, r3, #3
  89444. 80243d0: 4403 add r3, r0
  89445. 80243d2: 3304 adds r3, #4
  89446. 80243d4: 6019 str r1, [r3, #0]
  89447. }
  89448. arp_table[i].ctime = 0;
  89449. 80243d6: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89450. 80243da: 490d ldr r1, [pc, #52] @ (8024410 <etharp_find_entry+0x2d4>)
  89451. 80243dc: 4613 mov r3, r2
  89452. 80243de: 005b lsls r3, r3, #1
  89453. 80243e0: 4413 add r3, r2
  89454. 80243e2: 00db lsls r3, r3, #3
  89455. 80243e4: 440b add r3, r1
  89456. 80243e6: 3312 adds r3, #18
  89457. 80243e8: 2200 movs r2, #0
  89458. 80243ea: 801a strh r2, [r3, #0]
  89459. #if ETHARP_TABLE_MATCH_NETIF
  89460. arp_table[i].netif = netif;
  89461. 80243ec: f9b7 2026 ldrsh.w r2, [r7, #38] @ 0x26
  89462. 80243f0: 4907 ldr r1, [pc, #28] @ (8024410 <etharp_find_entry+0x2d4>)
  89463. 80243f2: 4613 mov r3, r2
  89464. 80243f4: 005b lsls r3, r3, #1
  89465. 80243f6: 4413 add r3, r2
  89466. 80243f8: 00db lsls r3, r3, #3
  89467. 80243fa: 440b add r3, r1
  89468. 80243fc: 3308 adds r3, #8
  89469. 80243fe: 687a ldr r2, [r7, #4]
  89470. 8024400: 601a str r2, [r3, #0]
  89471. #endif /* ETHARP_TABLE_MATCH_NETIF */
  89472. return (s16_t)i;
  89473. 8024402: f9b7 3026 ldrsh.w r3, [r7, #38] @ 0x26
  89474. }
  89475. 8024406: 4618 mov r0, r3
  89476. 8024408: 3728 adds r7, #40 @ 0x28
  89477. 802440a: 46bd mov sp, r7
  89478. 802440c: bd80 pop {r7, pc}
  89479. 802440e: bf00 nop
  89480. 8024410: 2402aff0 .word 0x2402aff0
  89481. 8024414: 08030a88 .word 0x08030a88
  89482. 8024418: 08030ac0 .word 0x08030ac0
  89483. 802441c: 08030b00 .word 0x08030b00
  89484. 8024420: 08030b28 .word 0x08030b28
  89485. 8024424: 08030b40 .word 0x08030b40
  89486. 8024428: 08030b54 .word 0x08030b54
  89487. 0802442c <etharp_update_arp_entry>:
  89488. *
  89489. * @see pbuf_free()
  89490. */
  89491. static err_t
  89492. etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags)
  89493. {
  89494. 802442c: b580 push {r7, lr}
  89495. 802442e: b088 sub sp, #32
  89496. 8024430: af02 add r7, sp, #8
  89497. 8024432: 60f8 str r0, [r7, #12]
  89498. 8024434: 60b9 str r1, [r7, #8]
  89499. 8024436: 607a str r2, [r7, #4]
  89500. 8024438: 70fb strb r3, [r7, #3]
  89501. s16_t i;
  89502. LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN);
  89503. 802443a: 68fb ldr r3, [r7, #12]
  89504. 802443c: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  89505. 8024440: 2b06 cmp r3, #6
  89506. 8024442: d006 beq.n 8024452 <etharp_update_arp_entry+0x26>
  89507. 8024444: 4b48 ldr r3, [pc, #288] @ (8024568 <etharp_update_arp_entry+0x13c>)
  89508. 8024446: f240 12a9 movw r2, #425 @ 0x1a9
  89509. 802444a: 4948 ldr r1, [pc, #288] @ (802456c <etharp_update_arp_entry+0x140>)
  89510. 802444c: 4848 ldr r0, [pc, #288] @ (8024570 <etharp_update_arp_entry+0x144>)
  89511. 802444e: f005 feb5 bl 802a1bc <iprintf>
  89512. 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",
  89513. ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr),
  89514. (u16_t)ethaddr->addr[0], (u16_t)ethaddr->addr[1], (u16_t)ethaddr->addr[2],
  89515. (u16_t)ethaddr->addr[3], (u16_t)ethaddr->addr[4], (u16_t)ethaddr->addr[5]));
  89516. /* non-unicast address? */
  89517. if (ip4_addr_isany(ipaddr) ||
  89518. 8024452: 68bb ldr r3, [r7, #8]
  89519. 8024454: 2b00 cmp r3, #0
  89520. 8024456: d012 beq.n 802447e <etharp_update_arp_entry+0x52>
  89521. 8024458: 68bb ldr r3, [r7, #8]
  89522. 802445a: 681b ldr r3, [r3, #0]
  89523. 802445c: 2b00 cmp r3, #0
  89524. 802445e: d00e beq.n 802447e <etharp_update_arp_entry+0x52>
  89525. ip4_addr_isbroadcast(ipaddr, netif) ||
  89526. 8024460: 68bb ldr r3, [r7, #8]
  89527. 8024462: 681b ldr r3, [r3, #0]
  89528. 8024464: 68f9 ldr r1, [r7, #12]
  89529. 8024466: 4618 mov r0, r3
  89530. 8024468: f001 f952 bl 8025710 <ip4_addr_isbroadcast_u32>
  89531. 802446c: 4603 mov r3, r0
  89532. if (ip4_addr_isany(ipaddr) ||
  89533. 802446e: 2b00 cmp r3, #0
  89534. 8024470: d105 bne.n 802447e <etharp_update_arp_entry+0x52>
  89535. ip4_addr_ismulticast(ipaddr)) {
  89536. 8024472: 68bb ldr r3, [r7, #8]
  89537. 8024474: 681b ldr r3, [r3, #0]
  89538. 8024476: f003 03f0 and.w r3, r3, #240 @ 0xf0
  89539. ip4_addr_isbroadcast(ipaddr, netif) ||
  89540. 802447a: 2be0 cmp r3, #224 @ 0xe0
  89541. 802447c: d102 bne.n 8024484 <etharp_update_arp_entry+0x58>
  89542. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: will not add non-unicast IP address to ARP cache\n"));
  89543. return ERR_ARG;
  89544. 802447e: f06f 030f mvn.w r3, #15
  89545. 8024482: e06c b.n 802455e <etharp_update_arp_entry+0x132>
  89546. }
  89547. /* find or create ARP entry */
  89548. i = etharp_find_entry(ipaddr, flags, netif);
  89549. 8024484: 78fb ldrb r3, [r7, #3]
  89550. 8024486: 68fa ldr r2, [r7, #12]
  89551. 8024488: 4619 mov r1, r3
  89552. 802448a: 68b8 ldr r0, [r7, #8]
  89553. 802448c: f7ff fe56 bl 802413c <etharp_find_entry>
  89554. 8024490: 4603 mov r3, r0
  89555. 8024492: 82fb strh r3, [r7, #22]
  89556. /* bail out if no entry could be found */
  89557. if (i < 0) {
  89558. 8024494: f9b7 3016 ldrsh.w r3, [r7, #22]
  89559. 8024498: 2b00 cmp r3, #0
  89560. 802449a: da02 bge.n 80244a2 <etharp_update_arp_entry+0x76>
  89561. return (err_t)i;
  89562. 802449c: 8afb ldrh r3, [r7, #22]
  89563. 802449e: b25b sxtb r3, r3
  89564. 80244a0: e05d b.n 802455e <etharp_update_arp_entry+0x132>
  89565. return ERR_VAL;
  89566. } else
  89567. #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
  89568. {
  89569. /* mark it stable */
  89570. arp_table[i].state = ETHARP_STATE_STABLE;
  89571. 80244a2: f9b7 2016 ldrsh.w r2, [r7, #22]
  89572. 80244a6: 4933 ldr r1, [pc, #204] @ (8024574 <etharp_update_arp_entry+0x148>)
  89573. 80244a8: 4613 mov r3, r2
  89574. 80244aa: 005b lsls r3, r3, #1
  89575. 80244ac: 4413 add r3, r2
  89576. 80244ae: 00db lsls r3, r3, #3
  89577. 80244b0: 440b add r3, r1
  89578. 80244b2: 3314 adds r3, #20
  89579. 80244b4: 2202 movs r2, #2
  89580. 80244b6: 701a strb r2, [r3, #0]
  89581. }
  89582. /* record network interface */
  89583. arp_table[i].netif = netif;
  89584. 80244b8: f9b7 2016 ldrsh.w r2, [r7, #22]
  89585. 80244bc: 492d ldr r1, [pc, #180] @ (8024574 <etharp_update_arp_entry+0x148>)
  89586. 80244be: 4613 mov r3, r2
  89587. 80244c0: 005b lsls r3, r3, #1
  89588. 80244c2: 4413 add r3, r2
  89589. 80244c4: 00db lsls r3, r3, #3
  89590. 80244c6: 440b add r3, r1
  89591. 80244c8: 3308 adds r3, #8
  89592. 80244ca: 68fa ldr r2, [r7, #12]
  89593. 80244cc: 601a str r2, [r3, #0]
  89594. /* insert in SNMP ARP index tree */
  89595. mib2_add_arp_entry(netif, &arp_table[i].ipaddr);
  89596. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: updating stable entry %"S16_F"\n", i));
  89597. /* update address */
  89598. SMEMCPY(&arp_table[i].ethaddr, ethaddr, ETH_HWADDR_LEN);
  89599. 80244ce: f9b7 2016 ldrsh.w r2, [r7, #22]
  89600. 80244d2: 4613 mov r3, r2
  89601. 80244d4: 005b lsls r3, r3, #1
  89602. 80244d6: 4413 add r3, r2
  89603. 80244d8: 00db lsls r3, r3, #3
  89604. 80244da: 3308 adds r3, #8
  89605. 80244dc: 4a25 ldr r2, [pc, #148] @ (8024574 <etharp_update_arp_entry+0x148>)
  89606. 80244de: 4413 add r3, r2
  89607. 80244e0: 3304 adds r3, #4
  89608. 80244e2: 2206 movs r2, #6
  89609. 80244e4: 6879 ldr r1, [r7, #4]
  89610. 80244e6: 4618 mov r0, r3
  89611. 80244e8: f006 f8f1 bl 802a6ce <memcpy>
  89612. /* reset time stamp */
  89613. arp_table[i].ctime = 0;
  89614. 80244ec: f9b7 2016 ldrsh.w r2, [r7, #22]
  89615. 80244f0: 4920 ldr r1, [pc, #128] @ (8024574 <etharp_update_arp_entry+0x148>)
  89616. 80244f2: 4613 mov r3, r2
  89617. 80244f4: 005b lsls r3, r3, #1
  89618. 80244f6: 4413 add r3, r2
  89619. 80244f8: 00db lsls r3, r3, #3
  89620. 80244fa: 440b add r3, r1
  89621. 80244fc: 3312 adds r3, #18
  89622. 80244fe: 2200 movs r2, #0
  89623. 8024500: 801a strh r2, [r3, #0]
  89624. /* get the packet pointer */
  89625. p = q->p;
  89626. /* now queue entry can be freed */
  89627. memp_free(MEMP_ARP_QUEUE, q);
  89628. #else /* ARP_QUEUEING */
  89629. if (arp_table[i].q != NULL) {
  89630. 8024502: f9b7 2016 ldrsh.w r2, [r7, #22]
  89631. 8024506: 491b ldr r1, [pc, #108] @ (8024574 <etharp_update_arp_entry+0x148>)
  89632. 8024508: 4613 mov r3, r2
  89633. 802450a: 005b lsls r3, r3, #1
  89634. 802450c: 4413 add r3, r2
  89635. 802450e: 00db lsls r3, r3, #3
  89636. 8024510: 440b add r3, r1
  89637. 8024512: 681b ldr r3, [r3, #0]
  89638. 8024514: 2b00 cmp r3, #0
  89639. 8024516: d021 beq.n 802455c <etharp_update_arp_entry+0x130>
  89640. struct pbuf *p = arp_table[i].q;
  89641. 8024518: f9b7 2016 ldrsh.w r2, [r7, #22]
  89642. 802451c: 4915 ldr r1, [pc, #84] @ (8024574 <etharp_update_arp_entry+0x148>)
  89643. 802451e: 4613 mov r3, r2
  89644. 8024520: 005b lsls r3, r3, #1
  89645. 8024522: 4413 add r3, r2
  89646. 8024524: 00db lsls r3, r3, #3
  89647. 8024526: 440b add r3, r1
  89648. 8024528: 681b ldr r3, [r3, #0]
  89649. 802452a: 613b str r3, [r7, #16]
  89650. arp_table[i].q = NULL;
  89651. 802452c: f9b7 2016 ldrsh.w r2, [r7, #22]
  89652. 8024530: 4910 ldr r1, [pc, #64] @ (8024574 <etharp_update_arp_entry+0x148>)
  89653. 8024532: 4613 mov r3, r2
  89654. 8024534: 005b lsls r3, r3, #1
  89655. 8024536: 4413 add r3, r2
  89656. 8024538: 00db lsls r3, r3, #3
  89657. 802453a: 440b add r3, r1
  89658. 802453c: 2200 movs r2, #0
  89659. 802453e: 601a str r2, [r3, #0]
  89660. #endif /* ARP_QUEUEING */
  89661. /* send the queued IP packet */
  89662. ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP);
  89663. 8024540: 68fb ldr r3, [r7, #12]
  89664. 8024542: f103 022a add.w r2, r3, #42 @ 0x2a
  89665. 8024546: f44f 6300 mov.w r3, #2048 @ 0x800
  89666. 802454a: 9300 str r3, [sp, #0]
  89667. 802454c: 687b ldr r3, [r7, #4]
  89668. 802454e: 6939 ldr r1, [r7, #16]
  89669. 8024550: 68f8 ldr r0, [r7, #12]
  89670. 8024552: f002 f9bb bl 80268cc <ethernet_output>
  89671. /* free the queued IP packet */
  89672. pbuf_free(p);
  89673. 8024556: 6938 ldr r0, [r7, #16]
  89674. 8024558: f7f6 fbb8 bl 801accc <pbuf_free>
  89675. }
  89676. return ERR_OK;
  89677. 802455c: 2300 movs r3, #0
  89678. }
  89679. 802455e: 4618 mov r0, r3
  89680. 8024560: 3718 adds r7, #24
  89681. 8024562: 46bd mov sp, r7
  89682. 8024564: bd80 pop {r7, pc}
  89683. 8024566: bf00 nop
  89684. 8024568: 08030a88 .word 0x08030a88
  89685. 802456c: 08030b80 .word 0x08030b80
  89686. 8024570: 08030b00 .word 0x08030b00
  89687. 8024574: 2402aff0 .word 0x2402aff0
  89688. 08024578 <etharp_cleanup_netif>:
  89689. *
  89690. * @param netif points to a network interface
  89691. */
  89692. void
  89693. etharp_cleanup_netif(struct netif *netif)
  89694. {
  89695. 8024578: b580 push {r7, lr}
  89696. 802457a: b084 sub sp, #16
  89697. 802457c: af00 add r7, sp, #0
  89698. 802457e: 6078 str r0, [r7, #4]
  89699. int i;
  89700. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89701. 8024580: 2300 movs r3, #0
  89702. 8024582: 60fb str r3, [r7, #12]
  89703. 8024584: e01e b.n 80245c4 <etharp_cleanup_netif+0x4c>
  89704. u8_t state = arp_table[i].state;
  89705. 8024586: 4913 ldr r1, [pc, #76] @ (80245d4 <etharp_cleanup_netif+0x5c>)
  89706. 8024588: 68fa ldr r2, [r7, #12]
  89707. 802458a: 4613 mov r3, r2
  89708. 802458c: 005b lsls r3, r3, #1
  89709. 802458e: 4413 add r3, r2
  89710. 8024590: 00db lsls r3, r3, #3
  89711. 8024592: 440b add r3, r1
  89712. 8024594: 3314 adds r3, #20
  89713. 8024596: 781b ldrb r3, [r3, #0]
  89714. 8024598: 72fb strb r3, [r7, #11]
  89715. if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) {
  89716. 802459a: 7afb ldrb r3, [r7, #11]
  89717. 802459c: 2b00 cmp r3, #0
  89718. 802459e: d00e beq.n 80245be <etharp_cleanup_netif+0x46>
  89719. 80245a0: 490c ldr r1, [pc, #48] @ (80245d4 <etharp_cleanup_netif+0x5c>)
  89720. 80245a2: 68fa ldr r2, [r7, #12]
  89721. 80245a4: 4613 mov r3, r2
  89722. 80245a6: 005b lsls r3, r3, #1
  89723. 80245a8: 4413 add r3, r2
  89724. 80245aa: 00db lsls r3, r3, #3
  89725. 80245ac: 440b add r3, r1
  89726. 80245ae: 3308 adds r3, #8
  89727. 80245b0: 681b ldr r3, [r3, #0]
  89728. 80245b2: 687a ldr r2, [r7, #4]
  89729. 80245b4: 429a cmp r2, r3
  89730. 80245b6: d102 bne.n 80245be <etharp_cleanup_netif+0x46>
  89731. etharp_free_entry(i);
  89732. 80245b8: 68f8 ldr r0, [r7, #12]
  89733. 80245ba: f7ff fcb7 bl 8023f2c <etharp_free_entry>
  89734. for (i = 0; i < ARP_TABLE_SIZE; ++i) {
  89735. 80245be: 68fb ldr r3, [r7, #12]
  89736. 80245c0: 3301 adds r3, #1
  89737. 80245c2: 60fb str r3, [r7, #12]
  89738. 80245c4: 68fb ldr r3, [r7, #12]
  89739. 80245c6: 2b09 cmp r3, #9
  89740. 80245c8: dddd ble.n 8024586 <etharp_cleanup_netif+0xe>
  89741. }
  89742. }
  89743. }
  89744. 80245ca: bf00 nop
  89745. 80245cc: bf00 nop
  89746. 80245ce: 3710 adds r7, #16
  89747. 80245d0: 46bd mov sp, r7
  89748. 80245d2: bd80 pop {r7, pc}
  89749. 80245d4: 2402aff0 .word 0x2402aff0
  89750. 080245d8 <etharp_input>:
  89751. *
  89752. * @see pbuf_free()
  89753. */
  89754. void
  89755. etharp_input(struct pbuf *p, struct netif *netif)
  89756. {
  89757. 80245d8: b5b0 push {r4, r5, r7, lr}
  89758. 80245da: b08a sub sp, #40 @ 0x28
  89759. 80245dc: af04 add r7, sp, #16
  89760. 80245de: 6078 str r0, [r7, #4]
  89761. 80245e0: 6039 str r1, [r7, #0]
  89762. struct etharp_hdr *hdr;
  89763. /* these are aligned properly, whereas the ARP header fields might not be */
  89764. ip4_addr_t sipaddr, dipaddr;
  89765. u8_t for_us;
  89766. LWIP_ASSERT_CORE_LOCKED();
  89767. 80245e2: f7ec fa4b bl 8010a7c <sys_check_core_locking>
  89768. LWIP_ERROR("netif != NULL", (netif != NULL), return;);
  89769. 80245e6: 683b ldr r3, [r7, #0]
  89770. 80245e8: 2b00 cmp r3, #0
  89771. 80245ea: d107 bne.n 80245fc <etharp_input+0x24>
  89772. 80245ec: 4b3f ldr r3, [pc, #252] @ (80246ec <etharp_input+0x114>)
  89773. 80245ee: f240 228a movw r2, #650 @ 0x28a
  89774. 80245f2: 493f ldr r1, [pc, #252] @ (80246f0 <etharp_input+0x118>)
  89775. 80245f4: 483f ldr r0, [pc, #252] @ (80246f4 <etharp_input+0x11c>)
  89776. 80245f6: f005 fde1 bl 802a1bc <iprintf>
  89777. 80245fa: e074 b.n 80246e6 <etharp_input+0x10e>
  89778. hdr = (struct etharp_hdr *)p->payload;
  89779. 80245fc: 687b ldr r3, [r7, #4]
  89780. 80245fe: 685b ldr r3, [r3, #4]
  89781. 8024600: 617b str r3, [r7, #20]
  89782. /* RFC 826 "Packet Reception": */
  89783. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  89784. 8024602: 697b ldr r3, [r7, #20]
  89785. 8024604: 881b ldrh r3, [r3, #0]
  89786. 8024606: b29b uxth r3, r3
  89787. 8024608: f5b3 7f80 cmp.w r3, #256 @ 0x100
  89788. 802460c: d10c bne.n 8024628 <etharp_input+0x50>
  89789. (hdr->hwlen != ETH_HWADDR_LEN) ||
  89790. 802460e: 697b ldr r3, [r7, #20]
  89791. 8024610: 791b ldrb r3, [r3, #4]
  89792. if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) ||
  89793. 8024612: 2b06 cmp r3, #6
  89794. 8024614: d108 bne.n 8024628 <etharp_input+0x50>
  89795. (hdr->protolen != sizeof(ip4_addr_t)) ||
  89796. 8024616: 697b ldr r3, [r7, #20]
  89797. 8024618: 795b ldrb r3, [r3, #5]
  89798. (hdr->hwlen != ETH_HWADDR_LEN) ||
  89799. 802461a: 2b04 cmp r3, #4
  89800. 802461c: d104 bne.n 8024628 <etharp_input+0x50>
  89801. (hdr->proto != PP_HTONS(ETHTYPE_IP))) {
  89802. 802461e: 697b ldr r3, [r7, #20]
  89803. 8024620: 885b ldrh r3, [r3, #2]
  89804. 8024622: b29b uxth r3, r3
  89805. (hdr->protolen != sizeof(ip4_addr_t)) ||
  89806. 8024624: 2b08 cmp r3, #8
  89807. 8024626: d003 beq.n 8024630 <etharp_input+0x58>
  89808. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING,
  89809. ("etharp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n",
  89810. hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen));
  89811. ETHARP_STATS_INC(etharp.proterr);
  89812. ETHARP_STATS_INC(etharp.drop);
  89813. pbuf_free(p);
  89814. 8024628: 6878 ldr r0, [r7, #4]
  89815. 802462a: f7f6 fb4f bl 801accc <pbuf_free>
  89816. return;
  89817. 802462e: e05a b.n 80246e6 <etharp_input+0x10e>
  89818. autoip_arp_reply(netif, hdr);
  89819. #endif /* LWIP_AUTOIP */
  89820. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  89821. * structure packing (not using structure copy which breaks strict-aliasing rules). */
  89822. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&sipaddr, &hdr->sipaddr);
  89823. 8024630: 697b ldr r3, [r7, #20]
  89824. 8024632: 330e adds r3, #14
  89825. 8024634: 681b ldr r3, [r3, #0]
  89826. 8024636: 60fb str r3, [r7, #12]
  89827. IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr);
  89828. 8024638: 697b ldr r3, [r7, #20]
  89829. 802463a: 3318 adds r3, #24
  89830. 802463c: 681b ldr r3, [r3, #0]
  89831. 802463e: 60bb str r3, [r7, #8]
  89832. /* this interface is not configured? */
  89833. if (ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  89834. 8024640: 683b ldr r3, [r7, #0]
  89835. 8024642: 3304 adds r3, #4
  89836. 8024644: 681b ldr r3, [r3, #0]
  89837. 8024646: 2b00 cmp r3, #0
  89838. 8024648: d102 bne.n 8024650 <etharp_input+0x78>
  89839. for_us = 0;
  89840. 802464a: 2300 movs r3, #0
  89841. 802464c: 74fb strb r3, [r7, #19]
  89842. 802464e: e009 b.n 8024664 <etharp_input+0x8c>
  89843. } else {
  89844. /* ARP packet directed to us? */
  89845. for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif));
  89846. 8024650: 68ba ldr r2, [r7, #8]
  89847. 8024652: 683b ldr r3, [r7, #0]
  89848. 8024654: 3304 adds r3, #4
  89849. 8024656: 681b ldr r3, [r3, #0]
  89850. 8024658: 429a cmp r2, r3
  89851. 802465a: bf0c ite eq
  89852. 802465c: 2301 moveq r3, #1
  89853. 802465e: 2300 movne r3, #0
  89854. 8024660: b2db uxtb r3, r3
  89855. 8024662: 74fb strb r3, [r7, #19]
  89856. /* ARP message directed to us?
  89857. -> add IP address in ARP cache; assume requester wants to talk to us,
  89858. can result in directly sending the queued packets for this host.
  89859. ARP message not directed to us?
  89860. -> update the source IP address in the cache, if present */
  89861. etharp_update_arp_entry(netif, &sipaddr, &(hdr->shwaddr),
  89862. 8024664: 697b ldr r3, [r7, #20]
  89863. 8024666: f103 0208 add.w r2, r3, #8
  89864. 802466a: 7cfb ldrb r3, [r7, #19]
  89865. 802466c: 2b00 cmp r3, #0
  89866. 802466e: d001 beq.n 8024674 <etharp_input+0x9c>
  89867. 8024670: 2301 movs r3, #1
  89868. 8024672: e000 b.n 8024676 <etharp_input+0x9e>
  89869. 8024674: 2302 movs r3, #2
  89870. 8024676: f107 010c add.w r1, r7, #12
  89871. 802467a: 6838 ldr r0, [r7, #0]
  89872. 802467c: f7ff fed6 bl 802442c <etharp_update_arp_entry>
  89873. for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY);
  89874. /* now act on the message itself */
  89875. switch (hdr->opcode) {
  89876. 8024680: 697b ldr r3, [r7, #20]
  89877. 8024682: 88db ldrh r3, [r3, #6]
  89878. 8024684: b29b uxth r3, r3
  89879. 8024686: f5b3 7f80 cmp.w r3, #256 @ 0x100
  89880. 802468a: d003 beq.n 8024694 <etharp_input+0xbc>
  89881. 802468c: f5b3 7f00 cmp.w r3, #512 @ 0x200
  89882. 8024690: d01e beq.n 80246d0 <etharp_input+0xf8>
  89883. #endif /* (LWIP_DHCP && DHCP_DOES_ARP_CHECK) */
  89884. break;
  89885. default:
  89886. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: ARP unknown opcode type %"S16_F"\n", lwip_htons(hdr->opcode)));
  89887. ETHARP_STATS_INC(etharp.err);
  89888. break;
  89889. 8024692: e025 b.n 80246e0 <etharp_input+0x108>
  89890. if (for_us) {
  89891. 8024694: 7cfb ldrb r3, [r7, #19]
  89892. 8024696: 2b00 cmp r3, #0
  89893. 8024698: d021 beq.n 80246de <etharp_input+0x106>
  89894. (struct eth_addr *)netif->hwaddr, &hdr->shwaddr,
  89895. 802469a: 683b ldr r3, [r7, #0]
  89896. 802469c: f103 002a add.w r0, r3, #42 @ 0x2a
  89897. 80246a0: 697b ldr r3, [r7, #20]
  89898. 80246a2: f103 0408 add.w r4, r3, #8
  89899. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif),
  89900. 80246a6: 683b ldr r3, [r7, #0]
  89901. 80246a8: f103 052a add.w r5, r3, #42 @ 0x2a
  89902. 80246ac: 683b ldr r3, [r7, #0]
  89903. 80246ae: 3304 adds r3, #4
  89904. &hdr->shwaddr, &sipaddr,
  89905. 80246b0: 697a ldr r2, [r7, #20]
  89906. 80246b2: 3208 adds r2, #8
  89907. etharp_raw(netif,
  89908. 80246b4: 2102 movs r1, #2
  89909. 80246b6: 9103 str r1, [sp, #12]
  89910. 80246b8: f107 010c add.w r1, r7, #12
  89911. 80246bc: 9102 str r1, [sp, #8]
  89912. 80246be: 9201 str r2, [sp, #4]
  89913. 80246c0: 9300 str r3, [sp, #0]
  89914. 80246c2: 462b mov r3, r5
  89915. 80246c4: 4622 mov r2, r4
  89916. 80246c6: 4601 mov r1, r0
  89917. 80246c8: 6838 ldr r0, [r7, #0]
  89918. 80246ca: f000 faf1 bl 8024cb0 <etharp_raw>
  89919. break;
  89920. 80246ce: e006 b.n 80246de <etharp_input+0x106>
  89921. dhcp_arp_reply(netif, &sipaddr);
  89922. 80246d0: f107 030c add.w r3, r7, #12
  89923. 80246d4: 4619 mov r1, r3
  89924. 80246d6: 6838 ldr r0, [r7, #0]
  89925. 80246d8: f7fe f9b6 bl 8022a48 <dhcp_arp_reply>
  89926. break;
  89927. 80246dc: e000 b.n 80246e0 <etharp_input+0x108>
  89928. break;
  89929. 80246de: bf00 nop
  89930. }
  89931. /* free ARP packet */
  89932. pbuf_free(p);
  89933. 80246e0: 6878 ldr r0, [r7, #4]
  89934. 80246e2: f7f6 faf3 bl 801accc <pbuf_free>
  89935. }
  89936. 80246e6: 3718 adds r7, #24
  89937. 80246e8: 46bd mov sp, r7
  89938. 80246ea: bdb0 pop {r4, r5, r7, pc}
  89939. 80246ec: 08030a88 .word 0x08030a88
  89940. 80246f0: 08030bd8 .word 0x08030bd8
  89941. 80246f4: 08030b00 .word 0x08030b00
  89942. 080246f8 <etharp_output_to_arp_index>:
  89943. /** Just a small helper function that sends a pbuf to an ethernet address
  89944. * in the arp_table specified by the index 'arp_idx'.
  89945. */
  89946. static err_t
  89947. etharp_output_to_arp_index(struct netif *netif, struct pbuf *q, netif_addr_idx_t arp_idx)
  89948. {
  89949. 80246f8: b580 push {r7, lr}
  89950. 80246fa: b086 sub sp, #24
  89951. 80246fc: af02 add r7, sp, #8
  89952. 80246fe: 60f8 str r0, [r7, #12]
  89953. 8024700: 60b9 str r1, [r7, #8]
  89954. 8024702: 4613 mov r3, r2
  89955. 8024704: 71fb strb r3, [r7, #7]
  89956. LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE",
  89957. 8024706: 79fa ldrb r2, [r7, #7]
  89958. 8024708: 4944 ldr r1, [pc, #272] @ (802481c <etharp_output_to_arp_index+0x124>)
  89959. 802470a: 4613 mov r3, r2
  89960. 802470c: 005b lsls r3, r3, #1
  89961. 802470e: 4413 add r3, r2
  89962. 8024710: 00db lsls r3, r3, #3
  89963. 8024712: 440b add r3, r1
  89964. 8024714: 3314 adds r3, #20
  89965. 8024716: 781b ldrb r3, [r3, #0]
  89966. 8024718: 2b01 cmp r3, #1
  89967. 802471a: d806 bhi.n 802472a <etharp_output_to_arp_index+0x32>
  89968. 802471c: 4b40 ldr r3, [pc, #256] @ (8024820 <etharp_output_to_arp_index+0x128>)
  89969. 802471e: f240 22ee movw r2, #750 @ 0x2ee
  89970. 8024722: 4940 ldr r1, [pc, #256] @ (8024824 <etharp_output_to_arp_index+0x12c>)
  89971. 8024724: 4840 ldr r0, [pc, #256] @ (8024828 <etharp_output_to_arp_index+0x130>)
  89972. 8024726: f005 fd49 bl 802a1bc <iprintf>
  89973. arp_table[arp_idx].state >= ETHARP_STATE_STABLE);
  89974. /* if arp table entry is about to expire: re-request it,
  89975. but only if its state is ETHARP_STATE_STABLE to prevent flooding the
  89976. network with ARP requests if this address is used frequently. */
  89977. if (arp_table[arp_idx].state == ETHARP_STATE_STABLE) {
  89978. 802472a: 79fa ldrb r2, [r7, #7]
  89979. 802472c: 493b ldr r1, [pc, #236] @ (802481c <etharp_output_to_arp_index+0x124>)
  89980. 802472e: 4613 mov r3, r2
  89981. 8024730: 005b lsls r3, r3, #1
  89982. 8024732: 4413 add r3, r2
  89983. 8024734: 00db lsls r3, r3, #3
  89984. 8024736: 440b add r3, r1
  89985. 8024738: 3314 adds r3, #20
  89986. 802473a: 781b ldrb r3, [r3, #0]
  89987. 802473c: 2b02 cmp r3, #2
  89988. 802473e: d153 bne.n 80247e8 <etharp_output_to_arp_index+0xf0>
  89989. if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) {
  89990. 8024740: 79fa ldrb r2, [r7, #7]
  89991. 8024742: 4936 ldr r1, [pc, #216] @ (802481c <etharp_output_to_arp_index+0x124>)
  89992. 8024744: 4613 mov r3, r2
  89993. 8024746: 005b lsls r3, r3, #1
  89994. 8024748: 4413 add r3, r2
  89995. 802474a: 00db lsls r3, r3, #3
  89996. 802474c: 440b add r3, r1
  89997. 802474e: 3312 adds r3, #18
  89998. 8024750: 881b ldrh r3, [r3, #0]
  89999. 8024752: f5b3 7f8e cmp.w r3, #284 @ 0x11c
  90000. 8024756: d919 bls.n 802478c <etharp_output_to_arp_index+0x94>
  90001. /* issue a standard request using broadcast */
  90002. if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) {
  90003. 8024758: 79fa ldrb r2, [r7, #7]
  90004. 802475a: 4613 mov r3, r2
  90005. 802475c: 005b lsls r3, r3, #1
  90006. 802475e: 4413 add r3, r2
  90007. 8024760: 00db lsls r3, r3, #3
  90008. 8024762: 4a2e ldr r2, [pc, #184] @ (802481c <etharp_output_to_arp_index+0x124>)
  90009. 8024764: 4413 add r3, r2
  90010. 8024766: 3304 adds r3, #4
  90011. 8024768: 4619 mov r1, r3
  90012. 802476a: 68f8 ldr r0, [r7, #12]
  90013. 802476c: f000 fb4e bl 8024e0c <etharp_request>
  90014. 8024770: 4603 mov r3, r0
  90015. 8024772: 2b00 cmp r3, #0
  90016. 8024774: d138 bne.n 80247e8 <etharp_output_to_arp_index+0xf0>
  90017. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  90018. 8024776: 79fa ldrb r2, [r7, #7]
  90019. 8024778: 4928 ldr r1, [pc, #160] @ (802481c <etharp_output_to_arp_index+0x124>)
  90020. 802477a: 4613 mov r3, r2
  90021. 802477c: 005b lsls r3, r3, #1
  90022. 802477e: 4413 add r3, r2
  90023. 8024780: 00db lsls r3, r3, #3
  90024. 8024782: 440b add r3, r1
  90025. 8024784: 3314 adds r3, #20
  90026. 8024786: 2203 movs r2, #3
  90027. 8024788: 701a strb r2, [r3, #0]
  90028. 802478a: e02d b.n 80247e8 <etharp_output_to_arp_index+0xf0>
  90029. }
  90030. } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) {
  90031. 802478c: 79fa ldrb r2, [r7, #7]
  90032. 802478e: 4923 ldr r1, [pc, #140] @ (802481c <etharp_output_to_arp_index+0x124>)
  90033. 8024790: 4613 mov r3, r2
  90034. 8024792: 005b lsls r3, r3, #1
  90035. 8024794: 4413 add r3, r2
  90036. 8024796: 00db lsls r3, r3, #3
  90037. 8024798: 440b add r3, r1
  90038. 802479a: 3312 adds r3, #18
  90039. 802479c: 881b ldrh r3, [r3, #0]
  90040. 802479e: f5b3 7f87 cmp.w r3, #270 @ 0x10e
  90041. 80247a2: d321 bcc.n 80247e8 <etharp_output_to_arp_index+0xf0>
  90042. /* issue a unicast request (for 15 seconds) to prevent unnecessary broadcast */
  90043. if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) {
  90044. 80247a4: 79fa ldrb r2, [r7, #7]
  90045. 80247a6: 4613 mov r3, r2
  90046. 80247a8: 005b lsls r3, r3, #1
  90047. 80247aa: 4413 add r3, r2
  90048. 80247ac: 00db lsls r3, r3, #3
  90049. 80247ae: 4a1b ldr r2, [pc, #108] @ (802481c <etharp_output_to_arp_index+0x124>)
  90050. 80247b0: 4413 add r3, r2
  90051. 80247b2: 1d19 adds r1, r3, #4
  90052. 80247b4: 79fa ldrb r2, [r7, #7]
  90053. 80247b6: 4613 mov r3, r2
  90054. 80247b8: 005b lsls r3, r3, #1
  90055. 80247ba: 4413 add r3, r2
  90056. 80247bc: 00db lsls r3, r3, #3
  90057. 80247be: 3308 adds r3, #8
  90058. 80247c0: 4a16 ldr r2, [pc, #88] @ (802481c <etharp_output_to_arp_index+0x124>)
  90059. 80247c2: 4413 add r3, r2
  90060. 80247c4: 3304 adds r3, #4
  90061. 80247c6: 461a mov r2, r3
  90062. 80247c8: 68f8 ldr r0, [r7, #12]
  90063. 80247ca: f000 fafd bl 8024dc8 <etharp_request_dst>
  90064. 80247ce: 4603 mov r3, r0
  90065. 80247d0: 2b00 cmp r3, #0
  90066. 80247d2: d109 bne.n 80247e8 <etharp_output_to_arp_index+0xf0>
  90067. arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1;
  90068. 80247d4: 79fa ldrb r2, [r7, #7]
  90069. 80247d6: 4911 ldr r1, [pc, #68] @ (802481c <etharp_output_to_arp_index+0x124>)
  90070. 80247d8: 4613 mov r3, r2
  90071. 80247da: 005b lsls r3, r3, #1
  90072. 80247dc: 4413 add r3, r2
  90073. 80247de: 00db lsls r3, r3, #3
  90074. 80247e0: 440b add r3, r1
  90075. 80247e2: 3314 adds r3, #20
  90076. 80247e4: 2203 movs r2, #3
  90077. 80247e6: 701a strb r2, [r3, #0]
  90078. }
  90079. }
  90080. }
  90081. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP);
  90082. 80247e8: 68fb ldr r3, [r7, #12]
  90083. 80247ea: f103 012a add.w r1, r3, #42 @ 0x2a
  90084. 80247ee: 79fa ldrb r2, [r7, #7]
  90085. 80247f0: 4613 mov r3, r2
  90086. 80247f2: 005b lsls r3, r3, #1
  90087. 80247f4: 4413 add r3, r2
  90088. 80247f6: 00db lsls r3, r3, #3
  90089. 80247f8: 3308 adds r3, #8
  90090. 80247fa: 4a08 ldr r2, [pc, #32] @ (802481c <etharp_output_to_arp_index+0x124>)
  90091. 80247fc: 4413 add r3, r2
  90092. 80247fe: 3304 adds r3, #4
  90093. 8024800: f44f 6200 mov.w r2, #2048 @ 0x800
  90094. 8024804: 9200 str r2, [sp, #0]
  90095. 8024806: 460a mov r2, r1
  90096. 8024808: 68b9 ldr r1, [r7, #8]
  90097. 802480a: 68f8 ldr r0, [r7, #12]
  90098. 802480c: f002 f85e bl 80268cc <ethernet_output>
  90099. 8024810: 4603 mov r3, r0
  90100. }
  90101. 8024812: 4618 mov r0, r3
  90102. 8024814: 3710 adds r7, #16
  90103. 8024816: 46bd mov sp, r7
  90104. 8024818: bd80 pop {r7, pc}
  90105. 802481a: bf00 nop
  90106. 802481c: 2402aff0 .word 0x2402aff0
  90107. 8024820: 08030a88 .word 0x08030a88
  90108. 8024824: 08030bf8 .word 0x08030bf8
  90109. 8024828: 08030b00 .word 0x08030b00
  90110. 0802482c <etharp_output>:
  90111. * - ERR_RTE No route to destination (no gateway to external networks),
  90112. * or the return type of either etharp_query() or ethernet_output().
  90113. */
  90114. err_t
  90115. etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
  90116. {
  90117. 802482c: b580 push {r7, lr}
  90118. 802482e: b08a sub sp, #40 @ 0x28
  90119. 8024830: af02 add r7, sp, #8
  90120. 8024832: 60f8 str r0, [r7, #12]
  90121. 8024834: 60b9 str r1, [r7, #8]
  90122. 8024836: 607a str r2, [r7, #4]
  90123. const struct eth_addr *dest;
  90124. struct eth_addr mcastaddr;
  90125. const ip4_addr_t *dst_addr = ipaddr;
  90126. 8024838: 687b ldr r3, [r7, #4]
  90127. 802483a: 61bb str r3, [r7, #24]
  90128. LWIP_ASSERT_CORE_LOCKED();
  90129. 802483c: f7ec f91e bl 8010a7c <sys_check_core_locking>
  90130. LWIP_ASSERT("netif != NULL", netif != NULL);
  90131. 8024840: 68fb ldr r3, [r7, #12]
  90132. 8024842: 2b00 cmp r3, #0
  90133. 8024844: d106 bne.n 8024854 <etharp_output+0x28>
  90134. 8024846: 4b73 ldr r3, [pc, #460] @ (8024a14 <etharp_output+0x1e8>)
  90135. 8024848: f240 321e movw r2, #798 @ 0x31e
  90136. 802484c: 4972 ldr r1, [pc, #456] @ (8024a18 <etharp_output+0x1ec>)
  90137. 802484e: 4873 ldr r0, [pc, #460] @ (8024a1c <etharp_output+0x1f0>)
  90138. 8024850: f005 fcb4 bl 802a1bc <iprintf>
  90139. LWIP_ASSERT("q != NULL", q != NULL);
  90140. 8024854: 68bb ldr r3, [r7, #8]
  90141. 8024856: 2b00 cmp r3, #0
  90142. 8024858: d106 bne.n 8024868 <etharp_output+0x3c>
  90143. 802485a: 4b6e ldr r3, [pc, #440] @ (8024a14 <etharp_output+0x1e8>)
  90144. 802485c: f240 321f movw r2, #799 @ 0x31f
  90145. 8024860: 496f ldr r1, [pc, #444] @ (8024a20 <etharp_output+0x1f4>)
  90146. 8024862: 486e ldr r0, [pc, #440] @ (8024a1c <etharp_output+0x1f0>)
  90147. 8024864: f005 fcaa bl 802a1bc <iprintf>
  90148. LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL);
  90149. 8024868: 687b ldr r3, [r7, #4]
  90150. 802486a: 2b00 cmp r3, #0
  90151. 802486c: d106 bne.n 802487c <etharp_output+0x50>
  90152. 802486e: 4b69 ldr r3, [pc, #420] @ (8024a14 <etharp_output+0x1e8>)
  90153. 8024870: f44f 7248 mov.w r2, #800 @ 0x320
  90154. 8024874: 496b ldr r1, [pc, #428] @ (8024a24 <etharp_output+0x1f8>)
  90155. 8024876: 4869 ldr r0, [pc, #420] @ (8024a1c <etharp_output+0x1f0>)
  90156. 8024878: f005 fca0 bl 802a1bc <iprintf>
  90157. /* Determine on destination hardware address. Broadcasts and multicasts
  90158. * are special, other IP addresses are looked up in the ARP table. */
  90159. /* broadcast destination IP address? */
  90160. if (ip4_addr_isbroadcast(ipaddr, netif)) {
  90161. 802487c: 687b ldr r3, [r7, #4]
  90162. 802487e: 681b ldr r3, [r3, #0]
  90163. 8024880: 68f9 ldr r1, [r7, #12]
  90164. 8024882: 4618 mov r0, r3
  90165. 8024884: f000 ff44 bl 8025710 <ip4_addr_isbroadcast_u32>
  90166. 8024888: 4603 mov r3, r0
  90167. 802488a: 2b00 cmp r3, #0
  90168. 802488c: d002 beq.n 8024894 <etharp_output+0x68>
  90169. /* broadcast on Ethernet also */
  90170. dest = (const struct eth_addr *)&ethbroadcast;
  90171. 802488e: 4b66 ldr r3, [pc, #408] @ (8024a28 <etharp_output+0x1fc>)
  90172. 8024890: 61fb str r3, [r7, #28]
  90173. 8024892: e0af b.n 80249f4 <etharp_output+0x1c8>
  90174. /* multicast destination IP address? */
  90175. } else if (ip4_addr_ismulticast(ipaddr)) {
  90176. 8024894: 687b ldr r3, [r7, #4]
  90177. 8024896: 681b ldr r3, [r3, #0]
  90178. 8024898: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90179. 802489c: 2be0 cmp r3, #224 @ 0xe0
  90180. 802489e: d118 bne.n 80248d2 <etharp_output+0xa6>
  90181. /* Hash IP multicast address to MAC address.*/
  90182. mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0;
  90183. 80248a0: 2301 movs r3, #1
  90184. 80248a2: 743b strb r3, [r7, #16]
  90185. mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1;
  90186. 80248a4: 2300 movs r3, #0
  90187. 80248a6: 747b strb r3, [r7, #17]
  90188. mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2;
  90189. 80248a8: 235e movs r3, #94 @ 0x5e
  90190. 80248aa: 74bb strb r3, [r7, #18]
  90191. mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f;
  90192. 80248ac: 687b ldr r3, [r7, #4]
  90193. 80248ae: 3301 adds r3, #1
  90194. 80248b0: 781b ldrb r3, [r3, #0]
  90195. 80248b2: f003 037f and.w r3, r3, #127 @ 0x7f
  90196. 80248b6: b2db uxtb r3, r3
  90197. 80248b8: 74fb strb r3, [r7, #19]
  90198. mcastaddr.addr[4] = ip4_addr3(ipaddr);
  90199. 80248ba: 687b ldr r3, [r7, #4]
  90200. 80248bc: 3302 adds r3, #2
  90201. 80248be: 781b ldrb r3, [r3, #0]
  90202. 80248c0: 753b strb r3, [r7, #20]
  90203. mcastaddr.addr[5] = ip4_addr4(ipaddr);
  90204. 80248c2: 687b ldr r3, [r7, #4]
  90205. 80248c4: 3303 adds r3, #3
  90206. 80248c6: 781b ldrb r3, [r3, #0]
  90207. 80248c8: 757b strb r3, [r7, #21]
  90208. /* destination Ethernet address is multicast */
  90209. dest = &mcastaddr;
  90210. 80248ca: f107 0310 add.w r3, r7, #16
  90211. 80248ce: 61fb str r3, [r7, #28]
  90212. 80248d0: e090 b.n 80249f4 <etharp_output+0x1c8>
  90213. /* unicast destination IP address? */
  90214. } else {
  90215. netif_addr_idx_t i;
  90216. /* outside local network? if so, this can neither be a global broadcast nor
  90217. a subnet broadcast. */
  90218. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  90219. 80248d2: 687b ldr r3, [r7, #4]
  90220. 80248d4: 681a ldr r2, [r3, #0]
  90221. 80248d6: 68fb ldr r3, [r7, #12]
  90222. 80248d8: 3304 adds r3, #4
  90223. 80248da: 681b ldr r3, [r3, #0]
  90224. 80248dc: 405a eors r2, r3
  90225. 80248de: 68fb ldr r3, [r7, #12]
  90226. 80248e0: 3308 adds r3, #8
  90227. 80248e2: 681b ldr r3, [r3, #0]
  90228. 80248e4: 4013 ands r3, r2
  90229. 80248e6: 2b00 cmp r3, #0
  90230. 80248e8: d012 beq.n 8024910 <etharp_output+0xe4>
  90231. !ip4_addr_islinklocal(ipaddr)) {
  90232. 80248ea: 687b ldr r3, [r7, #4]
  90233. 80248ec: 681b ldr r3, [r3, #0]
  90234. 80248ee: b29b uxth r3, r3
  90235. if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
  90236. 80248f0: f64f 62a9 movw r2, #65193 @ 0xfea9
  90237. 80248f4: 4293 cmp r3, r2
  90238. 80248f6: d00b beq.n 8024910 <etharp_output+0xe4>
  90239. dst_addr = LWIP_HOOK_ETHARP_GET_GW(netif, ipaddr);
  90240. if (dst_addr == NULL)
  90241. #endif /* LWIP_HOOK_ETHARP_GET_GW */
  90242. {
  90243. /* interface has default gateway? */
  90244. if (!ip4_addr_isany_val(*netif_ip4_gw(netif))) {
  90245. 80248f8: 68fb ldr r3, [r7, #12]
  90246. 80248fa: 330c adds r3, #12
  90247. 80248fc: 681b ldr r3, [r3, #0]
  90248. 80248fe: 2b00 cmp r3, #0
  90249. 8024900: d003 beq.n 802490a <etharp_output+0xde>
  90250. /* send to hardware address of default gateway IP address */
  90251. dst_addr = netif_ip4_gw(netif);
  90252. 8024902: 68fb ldr r3, [r7, #12]
  90253. 8024904: 330c adds r3, #12
  90254. 8024906: 61bb str r3, [r7, #24]
  90255. 8024908: e002 b.n 8024910 <etharp_output+0xe4>
  90256. /* no default gateway available */
  90257. } else {
  90258. /* no route to destination error (default gateway missing) */
  90259. return ERR_RTE;
  90260. 802490a: f06f 0303 mvn.w r3, #3
  90261. 802490e: e07d b.n 8024a0c <etharp_output+0x1e0>
  90262. if (netif->hints != NULL) {
  90263. /* per-pcb cached entry was given */
  90264. netif_addr_idx_t etharp_cached_entry = netif->hints->addr_hint;
  90265. if (etharp_cached_entry < ARP_TABLE_SIZE) {
  90266. #endif /* LWIP_NETIF_HWADDRHINT */
  90267. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  90268. 8024910: 4b46 ldr r3, [pc, #280] @ (8024a2c <etharp_output+0x200>)
  90269. 8024912: 781b ldrb r3, [r3, #0]
  90270. 8024914: 4619 mov r1, r3
  90271. 8024916: 4a46 ldr r2, [pc, #280] @ (8024a30 <etharp_output+0x204>)
  90272. 8024918: 460b mov r3, r1
  90273. 802491a: 005b lsls r3, r3, #1
  90274. 802491c: 440b add r3, r1
  90275. 802491e: 00db lsls r3, r3, #3
  90276. 8024920: 4413 add r3, r2
  90277. 8024922: 3314 adds r3, #20
  90278. 8024924: 781b ldrb r3, [r3, #0]
  90279. 8024926: 2b01 cmp r3, #1
  90280. 8024928: d925 bls.n 8024976 <etharp_output+0x14a>
  90281. #if ETHARP_TABLE_MATCH_NETIF
  90282. (arp_table[etharp_cached_entry].netif == netif) &&
  90283. 802492a: 4b40 ldr r3, [pc, #256] @ (8024a2c <etharp_output+0x200>)
  90284. 802492c: 781b ldrb r3, [r3, #0]
  90285. 802492e: 4619 mov r1, r3
  90286. 8024930: 4a3f ldr r2, [pc, #252] @ (8024a30 <etharp_output+0x204>)
  90287. 8024932: 460b mov r3, r1
  90288. 8024934: 005b lsls r3, r3, #1
  90289. 8024936: 440b add r3, r1
  90290. 8024938: 00db lsls r3, r3, #3
  90291. 802493a: 4413 add r3, r2
  90292. 802493c: 3308 adds r3, #8
  90293. 802493e: 681b ldr r3, [r3, #0]
  90294. if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) &&
  90295. 8024940: 68fa ldr r2, [r7, #12]
  90296. 8024942: 429a cmp r2, r3
  90297. 8024944: d117 bne.n 8024976 <etharp_output+0x14a>
  90298. #endif
  90299. (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) {
  90300. 8024946: 69bb ldr r3, [r7, #24]
  90301. 8024948: 681a ldr r2, [r3, #0]
  90302. 802494a: 4b38 ldr r3, [pc, #224] @ (8024a2c <etharp_output+0x200>)
  90303. 802494c: 781b ldrb r3, [r3, #0]
  90304. 802494e: 4618 mov r0, r3
  90305. 8024950: 4937 ldr r1, [pc, #220] @ (8024a30 <etharp_output+0x204>)
  90306. 8024952: 4603 mov r3, r0
  90307. 8024954: 005b lsls r3, r3, #1
  90308. 8024956: 4403 add r3, r0
  90309. 8024958: 00db lsls r3, r3, #3
  90310. 802495a: 440b add r3, r1
  90311. 802495c: 3304 adds r3, #4
  90312. 802495e: 681b ldr r3, [r3, #0]
  90313. (arp_table[etharp_cached_entry].netif == netif) &&
  90314. 8024960: 429a cmp r2, r3
  90315. 8024962: d108 bne.n 8024976 <etharp_output+0x14a>
  90316. /* the per-pcb-cached entry is stable and the right one! */
  90317. ETHARP_STATS_INC(etharp.cachehit);
  90318. return etharp_output_to_arp_index(netif, q, etharp_cached_entry);
  90319. 8024964: 4b31 ldr r3, [pc, #196] @ (8024a2c <etharp_output+0x200>)
  90320. 8024966: 781b ldrb r3, [r3, #0]
  90321. 8024968: 461a mov r2, r3
  90322. 802496a: 68b9 ldr r1, [r7, #8]
  90323. 802496c: 68f8 ldr r0, [r7, #12]
  90324. 802496e: f7ff fec3 bl 80246f8 <etharp_output_to_arp_index>
  90325. 8024972: 4603 mov r3, r0
  90326. 8024974: e04a b.n 8024a0c <etharp_output+0x1e0>
  90327. }
  90328. #endif /* LWIP_NETIF_HWADDRHINT */
  90329. /* find stable entry: do this here since this is a critical path for
  90330. throughput and etharp_find_entry() is kind of slow */
  90331. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  90332. 8024976: 2300 movs r3, #0
  90333. 8024978: 75fb strb r3, [r7, #23]
  90334. 802497a: e031 b.n 80249e0 <etharp_output+0x1b4>
  90335. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  90336. 802497c: 7dfa ldrb r2, [r7, #23]
  90337. 802497e: 492c ldr r1, [pc, #176] @ (8024a30 <etharp_output+0x204>)
  90338. 8024980: 4613 mov r3, r2
  90339. 8024982: 005b lsls r3, r3, #1
  90340. 8024984: 4413 add r3, r2
  90341. 8024986: 00db lsls r3, r3, #3
  90342. 8024988: 440b add r3, r1
  90343. 802498a: 3314 adds r3, #20
  90344. 802498c: 781b ldrb r3, [r3, #0]
  90345. 802498e: 2b01 cmp r3, #1
  90346. 8024990: d923 bls.n 80249da <etharp_output+0x1ae>
  90347. #if ETHARP_TABLE_MATCH_NETIF
  90348. (arp_table[i].netif == netif) &&
  90349. 8024992: 7dfa ldrb r2, [r7, #23]
  90350. 8024994: 4926 ldr r1, [pc, #152] @ (8024a30 <etharp_output+0x204>)
  90351. 8024996: 4613 mov r3, r2
  90352. 8024998: 005b lsls r3, r3, #1
  90353. 802499a: 4413 add r3, r2
  90354. 802499c: 00db lsls r3, r3, #3
  90355. 802499e: 440b add r3, r1
  90356. 80249a0: 3308 adds r3, #8
  90357. 80249a2: 681b ldr r3, [r3, #0]
  90358. if ((arp_table[i].state >= ETHARP_STATE_STABLE) &&
  90359. 80249a4: 68fa ldr r2, [r7, #12]
  90360. 80249a6: 429a cmp r2, r3
  90361. 80249a8: d117 bne.n 80249da <etharp_output+0x1ae>
  90362. #endif
  90363. (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) {
  90364. 80249aa: 69bb ldr r3, [r7, #24]
  90365. 80249ac: 6819 ldr r1, [r3, #0]
  90366. 80249ae: 7dfa ldrb r2, [r7, #23]
  90367. 80249b0: 481f ldr r0, [pc, #124] @ (8024a30 <etharp_output+0x204>)
  90368. 80249b2: 4613 mov r3, r2
  90369. 80249b4: 005b lsls r3, r3, #1
  90370. 80249b6: 4413 add r3, r2
  90371. 80249b8: 00db lsls r3, r3, #3
  90372. 80249ba: 4403 add r3, r0
  90373. 80249bc: 3304 adds r3, #4
  90374. 80249be: 681b ldr r3, [r3, #0]
  90375. (arp_table[i].netif == netif) &&
  90376. 80249c0: 4299 cmp r1, r3
  90377. 80249c2: d10a bne.n 80249da <etharp_output+0x1ae>
  90378. /* found an existing, stable entry */
  90379. ETHARP_SET_ADDRHINT(netif, i);
  90380. 80249c4: 4a19 ldr r2, [pc, #100] @ (8024a2c <etharp_output+0x200>)
  90381. 80249c6: 7dfb ldrb r3, [r7, #23]
  90382. 80249c8: 7013 strb r3, [r2, #0]
  90383. return etharp_output_to_arp_index(netif, q, i);
  90384. 80249ca: 7dfb ldrb r3, [r7, #23]
  90385. 80249cc: 461a mov r2, r3
  90386. 80249ce: 68b9 ldr r1, [r7, #8]
  90387. 80249d0: 68f8 ldr r0, [r7, #12]
  90388. 80249d2: f7ff fe91 bl 80246f8 <etharp_output_to_arp_index>
  90389. 80249d6: 4603 mov r3, r0
  90390. 80249d8: e018 b.n 8024a0c <etharp_output+0x1e0>
  90391. for (i = 0; i < ARP_TABLE_SIZE; i++) {
  90392. 80249da: 7dfb ldrb r3, [r7, #23]
  90393. 80249dc: 3301 adds r3, #1
  90394. 80249de: 75fb strb r3, [r7, #23]
  90395. 80249e0: 7dfb ldrb r3, [r7, #23]
  90396. 80249e2: 2b09 cmp r3, #9
  90397. 80249e4: d9ca bls.n 802497c <etharp_output+0x150>
  90398. }
  90399. }
  90400. /* no stable entry found, use the (slower) query function:
  90401. queue on destination Ethernet address belonging to ipaddr */
  90402. return etharp_query(netif, dst_addr, q);
  90403. 80249e6: 68ba ldr r2, [r7, #8]
  90404. 80249e8: 69b9 ldr r1, [r7, #24]
  90405. 80249ea: 68f8 ldr r0, [r7, #12]
  90406. 80249ec: f000 f822 bl 8024a34 <etharp_query>
  90407. 80249f0: 4603 mov r3, r0
  90408. 80249f2: e00b b.n 8024a0c <etharp_output+0x1e0>
  90409. }
  90410. /* continuation for multicast/broadcast destinations */
  90411. /* obtain source Ethernet address of the given interface */
  90412. /* send packet directly on the link */
  90413. return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP);
  90414. 80249f4: 68fb ldr r3, [r7, #12]
  90415. 80249f6: f103 022a add.w r2, r3, #42 @ 0x2a
  90416. 80249fa: f44f 6300 mov.w r3, #2048 @ 0x800
  90417. 80249fe: 9300 str r3, [sp, #0]
  90418. 8024a00: 69fb ldr r3, [r7, #28]
  90419. 8024a02: 68b9 ldr r1, [r7, #8]
  90420. 8024a04: 68f8 ldr r0, [r7, #12]
  90421. 8024a06: f001 ff61 bl 80268cc <ethernet_output>
  90422. 8024a0a: 4603 mov r3, r0
  90423. }
  90424. 8024a0c: 4618 mov r0, r3
  90425. 8024a0e: 3720 adds r7, #32
  90426. 8024a10: 46bd mov sp, r7
  90427. 8024a12: bd80 pop {r7, pc}
  90428. 8024a14: 08030a88 .word 0x08030a88
  90429. 8024a18: 08030bd8 .word 0x08030bd8
  90430. 8024a1c: 08030b00 .word 0x08030b00
  90431. 8024a20: 08030c28 .word 0x08030c28
  90432. 8024a24: 08030bc8 .word 0x08030bc8
  90433. 8024a28: 080314fc .word 0x080314fc
  90434. 8024a2c: 2402b0e0 .word 0x2402b0e0
  90435. 8024a30: 2402aff0 .word 0x2402aff0
  90436. 08024a34 <etharp_query>:
  90437. * - ERR_ARG Non-unicast address given, those will not appear in ARP cache.
  90438. *
  90439. */
  90440. err_t
  90441. etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q)
  90442. {
  90443. 8024a34: b580 push {r7, lr}
  90444. 8024a36: b08c sub sp, #48 @ 0x30
  90445. 8024a38: af02 add r7, sp, #8
  90446. 8024a3a: 60f8 str r0, [r7, #12]
  90447. 8024a3c: 60b9 str r1, [r7, #8]
  90448. 8024a3e: 607a str r2, [r7, #4]
  90449. struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr;
  90450. 8024a40: 68fb ldr r3, [r7, #12]
  90451. 8024a42: 332a adds r3, #42 @ 0x2a
  90452. 8024a44: 617b str r3, [r7, #20]
  90453. err_t result = ERR_MEM;
  90454. 8024a46: 23ff movs r3, #255 @ 0xff
  90455. 8024a48: f887 3027 strb.w r3, [r7, #39] @ 0x27
  90456. int is_new_entry = 0;
  90457. 8024a4c: 2300 movs r3, #0
  90458. 8024a4e: 623b str r3, [r7, #32]
  90459. s16_t i_err;
  90460. netif_addr_idx_t i;
  90461. /* non-unicast address? */
  90462. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  90463. 8024a50: 68bb ldr r3, [r7, #8]
  90464. 8024a52: 681b ldr r3, [r3, #0]
  90465. 8024a54: 68f9 ldr r1, [r7, #12]
  90466. 8024a56: 4618 mov r0, r3
  90467. 8024a58: f000 fe5a bl 8025710 <ip4_addr_isbroadcast_u32>
  90468. 8024a5c: 4603 mov r3, r0
  90469. 8024a5e: 2b00 cmp r3, #0
  90470. 8024a60: d10c bne.n 8024a7c <etharp_query+0x48>
  90471. ip4_addr_ismulticast(ipaddr) ||
  90472. 8024a62: 68bb ldr r3, [r7, #8]
  90473. 8024a64: 681b ldr r3, [r3, #0]
  90474. 8024a66: f003 03f0 and.w r3, r3, #240 @ 0xf0
  90475. if (ip4_addr_isbroadcast(ipaddr, netif) ||
  90476. 8024a6a: 2be0 cmp r3, #224 @ 0xe0
  90477. 8024a6c: d006 beq.n 8024a7c <etharp_query+0x48>
  90478. ip4_addr_ismulticast(ipaddr) ||
  90479. 8024a6e: 68bb ldr r3, [r7, #8]
  90480. 8024a70: 2b00 cmp r3, #0
  90481. 8024a72: d003 beq.n 8024a7c <etharp_query+0x48>
  90482. ip4_addr_isany(ipaddr)) {
  90483. 8024a74: 68bb ldr r3, [r7, #8]
  90484. 8024a76: 681b ldr r3, [r3, #0]
  90485. 8024a78: 2b00 cmp r3, #0
  90486. 8024a7a: d102 bne.n 8024a82 <etharp_query+0x4e>
  90487. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n"));
  90488. return ERR_ARG;
  90489. 8024a7c: f06f 030f mvn.w r3, #15
  90490. 8024a80: e101 b.n 8024c86 <etharp_query+0x252>
  90491. }
  90492. /* find entry in ARP cache, ask to create entry if queueing packet */
  90493. i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif);
  90494. 8024a82: 68fa ldr r2, [r7, #12]
  90495. 8024a84: 2101 movs r1, #1
  90496. 8024a86: 68b8 ldr r0, [r7, #8]
  90497. 8024a88: f7ff fb58 bl 802413c <etharp_find_entry>
  90498. 8024a8c: 4603 mov r3, r0
  90499. 8024a8e: 827b strh r3, [r7, #18]
  90500. /* could not find or create entry? */
  90501. if (i_err < 0) {
  90502. 8024a90: f9b7 3012 ldrsh.w r3, [r7, #18]
  90503. 8024a94: 2b00 cmp r3, #0
  90504. 8024a96: da02 bge.n 8024a9e <etharp_query+0x6a>
  90505. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not create ARP entry\n"));
  90506. if (q) {
  90507. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: packet dropped\n"));
  90508. ETHARP_STATS_INC(etharp.memerr);
  90509. }
  90510. return (err_t)i_err;
  90511. 8024a98: 8a7b ldrh r3, [r7, #18]
  90512. 8024a9a: b25b sxtb r3, r3
  90513. 8024a9c: e0f3 b.n 8024c86 <etharp_query+0x252>
  90514. }
  90515. LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX);
  90516. 8024a9e: 8a7b ldrh r3, [r7, #18]
  90517. 8024aa0: 2b7e cmp r3, #126 @ 0x7e
  90518. 8024aa2: d906 bls.n 8024ab2 <etharp_query+0x7e>
  90519. 8024aa4: 4b7a ldr r3, [pc, #488] @ (8024c90 <etharp_query+0x25c>)
  90520. 8024aa6: f240 32c1 movw r2, #961 @ 0x3c1
  90521. 8024aaa: 497a ldr r1, [pc, #488] @ (8024c94 <etharp_query+0x260>)
  90522. 8024aac: 487a ldr r0, [pc, #488] @ (8024c98 <etharp_query+0x264>)
  90523. 8024aae: f005 fb85 bl 802a1bc <iprintf>
  90524. i = (netif_addr_idx_t)i_err;
  90525. 8024ab2: 8a7b ldrh r3, [r7, #18]
  90526. 8024ab4: 747b strb r3, [r7, #17]
  90527. /* mark a fresh entry as pending (we just sent a request) */
  90528. if (arp_table[i].state == ETHARP_STATE_EMPTY) {
  90529. 8024ab6: 7c7a ldrb r2, [r7, #17]
  90530. 8024ab8: 4978 ldr r1, [pc, #480] @ (8024c9c <etharp_query+0x268>)
  90531. 8024aba: 4613 mov r3, r2
  90532. 8024abc: 005b lsls r3, r3, #1
  90533. 8024abe: 4413 add r3, r2
  90534. 8024ac0: 00db lsls r3, r3, #3
  90535. 8024ac2: 440b add r3, r1
  90536. 8024ac4: 3314 adds r3, #20
  90537. 8024ac6: 781b ldrb r3, [r3, #0]
  90538. 8024ac8: 2b00 cmp r3, #0
  90539. 8024aca: d115 bne.n 8024af8 <etharp_query+0xc4>
  90540. is_new_entry = 1;
  90541. 8024acc: 2301 movs r3, #1
  90542. 8024ace: 623b str r3, [r7, #32]
  90543. arp_table[i].state = ETHARP_STATE_PENDING;
  90544. 8024ad0: 7c7a ldrb r2, [r7, #17]
  90545. 8024ad2: 4972 ldr r1, [pc, #456] @ (8024c9c <etharp_query+0x268>)
  90546. 8024ad4: 4613 mov r3, r2
  90547. 8024ad6: 005b lsls r3, r3, #1
  90548. 8024ad8: 4413 add r3, r2
  90549. 8024ada: 00db lsls r3, r3, #3
  90550. 8024adc: 440b add r3, r1
  90551. 8024ade: 3314 adds r3, #20
  90552. 8024ae0: 2201 movs r2, #1
  90553. 8024ae2: 701a strb r2, [r3, #0]
  90554. /* record network interface for re-sending arp request in etharp_tmr */
  90555. arp_table[i].netif = netif;
  90556. 8024ae4: 7c7a ldrb r2, [r7, #17]
  90557. 8024ae6: 496d ldr r1, [pc, #436] @ (8024c9c <etharp_query+0x268>)
  90558. 8024ae8: 4613 mov r3, r2
  90559. 8024aea: 005b lsls r3, r3, #1
  90560. 8024aec: 4413 add r3, r2
  90561. 8024aee: 00db lsls r3, r3, #3
  90562. 8024af0: 440b add r3, r1
  90563. 8024af2: 3308 adds r3, #8
  90564. 8024af4: 68fa ldr r2, [r7, #12]
  90565. 8024af6: 601a str r2, [r3, #0]
  90566. }
  90567. /* { i is either a STABLE or (new or existing) PENDING entry } */
  90568. LWIP_ASSERT("arp_table[i].state == PENDING or STABLE",
  90569. 8024af8: 7c7a ldrb r2, [r7, #17]
  90570. 8024afa: 4968 ldr r1, [pc, #416] @ (8024c9c <etharp_query+0x268>)
  90571. 8024afc: 4613 mov r3, r2
  90572. 8024afe: 005b lsls r3, r3, #1
  90573. 8024b00: 4413 add r3, r2
  90574. 8024b02: 00db lsls r3, r3, #3
  90575. 8024b04: 440b add r3, r1
  90576. 8024b06: 3314 adds r3, #20
  90577. 8024b08: 781b ldrb r3, [r3, #0]
  90578. 8024b0a: 2b01 cmp r3, #1
  90579. 8024b0c: d011 beq.n 8024b32 <etharp_query+0xfe>
  90580. 8024b0e: 7c7a ldrb r2, [r7, #17]
  90581. 8024b10: 4962 ldr r1, [pc, #392] @ (8024c9c <etharp_query+0x268>)
  90582. 8024b12: 4613 mov r3, r2
  90583. 8024b14: 005b lsls r3, r3, #1
  90584. 8024b16: 4413 add r3, r2
  90585. 8024b18: 00db lsls r3, r3, #3
  90586. 8024b1a: 440b add r3, r1
  90587. 8024b1c: 3314 adds r3, #20
  90588. 8024b1e: 781b ldrb r3, [r3, #0]
  90589. 8024b20: 2b01 cmp r3, #1
  90590. 8024b22: d806 bhi.n 8024b32 <etharp_query+0xfe>
  90591. 8024b24: 4b5a ldr r3, [pc, #360] @ (8024c90 <etharp_query+0x25c>)
  90592. 8024b26: f240 32cd movw r2, #973 @ 0x3cd
  90593. 8024b2a: 495d ldr r1, [pc, #372] @ (8024ca0 <etharp_query+0x26c>)
  90594. 8024b2c: 485a ldr r0, [pc, #360] @ (8024c98 <etharp_query+0x264>)
  90595. 8024b2e: f005 fb45 bl 802a1bc <iprintf>
  90596. ((arp_table[i].state == ETHARP_STATE_PENDING) ||
  90597. (arp_table[i].state >= ETHARP_STATE_STABLE)));
  90598. /* do we have a new entry? or an implicit query request? */
  90599. if (is_new_entry || (q == NULL)) {
  90600. 8024b32: 6a3b ldr r3, [r7, #32]
  90601. 8024b34: 2b00 cmp r3, #0
  90602. 8024b36: d102 bne.n 8024b3e <etharp_query+0x10a>
  90603. 8024b38: 687b ldr r3, [r7, #4]
  90604. 8024b3a: 2b00 cmp r3, #0
  90605. 8024b3c: d10c bne.n 8024b58 <etharp_query+0x124>
  90606. /* try to resolve it; send out ARP request */
  90607. result = etharp_request(netif, ipaddr);
  90608. 8024b3e: 68b9 ldr r1, [r7, #8]
  90609. 8024b40: 68f8 ldr r0, [r7, #12]
  90610. 8024b42: f000 f963 bl 8024e0c <etharp_request>
  90611. 8024b46: 4603 mov r3, r0
  90612. 8024b48: f887 3027 strb.w r3, [r7, #39] @ 0x27
  90613. /* ARP request couldn't be sent */
  90614. /* We don't re-send arp request in etharp_tmr, but we still queue packets,
  90615. since this failure could be temporary, and the next packet calling
  90616. etharp_query again could lead to sending the queued packets. */
  90617. }
  90618. if (q == NULL) {
  90619. 8024b4c: 687b ldr r3, [r7, #4]
  90620. 8024b4e: 2b00 cmp r3, #0
  90621. 8024b50: d102 bne.n 8024b58 <etharp_query+0x124>
  90622. return result;
  90623. 8024b52: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  90624. 8024b56: e096 b.n 8024c86 <etharp_query+0x252>
  90625. }
  90626. }
  90627. /* packet given? */
  90628. LWIP_ASSERT("q != NULL", q != NULL);
  90629. 8024b58: 687b ldr r3, [r7, #4]
  90630. 8024b5a: 2b00 cmp r3, #0
  90631. 8024b5c: d106 bne.n 8024b6c <etharp_query+0x138>
  90632. 8024b5e: 4b4c ldr r3, [pc, #304] @ (8024c90 <etharp_query+0x25c>)
  90633. 8024b60: f240 32e1 movw r2, #993 @ 0x3e1
  90634. 8024b64: 494f ldr r1, [pc, #316] @ (8024ca4 <etharp_query+0x270>)
  90635. 8024b66: 484c ldr r0, [pc, #304] @ (8024c98 <etharp_query+0x264>)
  90636. 8024b68: f005 fb28 bl 802a1bc <iprintf>
  90637. /* stable entry? */
  90638. if (arp_table[i].state >= ETHARP_STATE_STABLE) {
  90639. 8024b6c: 7c7a ldrb r2, [r7, #17]
  90640. 8024b6e: 494b ldr r1, [pc, #300] @ (8024c9c <etharp_query+0x268>)
  90641. 8024b70: 4613 mov r3, r2
  90642. 8024b72: 005b lsls r3, r3, #1
  90643. 8024b74: 4413 add r3, r2
  90644. 8024b76: 00db lsls r3, r3, #3
  90645. 8024b78: 440b add r3, r1
  90646. 8024b7a: 3314 adds r3, #20
  90647. 8024b7c: 781b ldrb r3, [r3, #0]
  90648. 8024b7e: 2b01 cmp r3, #1
  90649. 8024b80: d917 bls.n 8024bb2 <etharp_query+0x17e>
  90650. /* we have a valid IP->Ethernet address mapping */
  90651. ETHARP_SET_ADDRHINT(netif, i);
  90652. 8024b82: 4a49 ldr r2, [pc, #292] @ (8024ca8 <etharp_query+0x274>)
  90653. 8024b84: 7c7b ldrb r3, [r7, #17]
  90654. 8024b86: 7013 strb r3, [r2, #0]
  90655. /* send the packet */
  90656. result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP);
  90657. 8024b88: 7c7a ldrb r2, [r7, #17]
  90658. 8024b8a: 4613 mov r3, r2
  90659. 8024b8c: 005b lsls r3, r3, #1
  90660. 8024b8e: 4413 add r3, r2
  90661. 8024b90: 00db lsls r3, r3, #3
  90662. 8024b92: 3308 adds r3, #8
  90663. 8024b94: 4a41 ldr r2, [pc, #260] @ (8024c9c <etharp_query+0x268>)
  90664. 8024b96: 4413 add r3, r2
  90665. 8024b98: 3304 adds r3, #4
  90666. 8024b9a: f44f 6200 mov.w r2, #2048 @ 0x800
  90667. 8024b9e: 9200 str r2, [sp, #0]
  90668. 8024ba0: 697a ldr r2, [r7, #20]
  90669. 8024ba2: 6879 ldr r1, [r7, #4]
  90670. 8024ba4: 68f8 ldr r0, [r7, #12]
  90671. 8024ba6: f001 fe91 bl 80268cc <ethernet_output>
  90672. 8024baa: 4603 mov r3, r0
  90673. 8024bac: f887 3027 strb.w r3, [r7, #39] @ 0x27
  90674. 8024bb0: e067 b.n 8024c82 <etharp_query+0x24e>
  90675. /* pending entry? (either just created or already pending */
  90676. } else if (arp_table[i].state == ETHARP_STATE_PENDING) {
  90677. 8024bb2: 7c7a ldrb r2, [r7, #17]
  90678. 8024bb4: 4939 ldr r1, [pc, #228] @ (8024c9c <etharp_query+0x268>)
  90679. 8024bb6: 4613 mov r3, r2
  90680. 8024bb8: 005b lsls r3, r3, #1
  90681. 8024bba: 4413 add r3, r2
  90682. 8024bbc: 00db lsls r3, r3, #3
  90683. 8024bbe: 440b add r3, r1
  90684. 8024bc0: 3314 adds r3, #20
  90685. 8024bc2: 781b ldrb r3, [r3, #0]
  90686. 8024bc4: 2b01 cmp r3, #1
  90687. 8024bc6: d15c bne.n 8024c82 <etharp_query+0x24e>
  90688. /* entry is still pending, queue the given packet 'q' */
  90689. struct pbuf *p;
  90690. int copy_needed = 0;
  90691. 8024bc8: 2300 movs r3, #0
  90692. 8024bca: 61bb str r3, [r7, #24]
  90693. /* IF q includes a pbuf that must be copied, copy the whole chain into a
  90694. * new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */
  90695. p = q;
  90696. 8024bcc: 687b ldr r3, [r7, #4]
  90697. 8024bce: 61fb str r3, [r7, #28]
  90698. while (p) {
  90699. 8024bd0: e01c b.n 8024c0c <etharp_query+0x1d8>
  90700. LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0));
  90701. 8024bd2: 69fb ldr r3, [r7, #28]
  90702. 8024bd4: 895a ldrh r2, [r3, #10]
  90703. 8024bd6: 69fb ldr r3, [r7, #28]
  90704. 8024bd8: 891b ldrh r3, [r3, #8]
  90705. 8024bda: 429a cmp r2, r3
  90706. 8024bdc: d10a bne.n 8024bf4 <etharp_query+0x1c0>
  90707. 8024bde: 69fb ldr r3, [r7, #28]
  90708. 8024be0: 681b ldr r3, [r3, #0]
  90709. 8024be2: 2b00 cmp r3, #0
  90710. 8024be4: d006 beq.n 8024bf4 <etharp_query+0x1c0>
  90711. 8024be6: 4b2a ldr r3, [pc, #168] @ (8024c90 <etharp_query+0x25c>)
  90712. 8024be8: f240 32f1 movw r2, #1009 @ 0x3f1
  90713. 8024bec: 492f ldr r1, [pc, #188] @ (8024cac <etharp_query+0x278>)
  90714. 8024bee: 482a ldr r0, [pc, #168] @ (8024c98 <etharp_query+0x264>)
  90715. 8024bf0: f005 fae4 bl 802a1bc <iprintf>
  90716. if (PBUF_NEEDS_COPY(p)) {
  90717. 8024bf4: 69fb ldr r3, [r7, #28]
  90718. 8024bf6: 7b1b ldrb r3, [r3, #12]
  90719. 8024bf8: f003 0340 and.w r3, r3, #64 @ 0x40
  90720. 8024bfc: 2b00 cmp r3, #0
  90721. 8024bfe: d002 beq.n 8024c06 <etharp_query+0x1d2>
  90722. copy_needed = 1;
  90723. 8024c00: 2301 movs r3, #1
  90724. 8024c02: 61bb str r3, [r7, #24]
  90725. break;
  90726. 8024c04: e005 b.n 8024c12 <etharp_query+0x1de>
  90727. }
  90728. p = p->next;
  90729. 8024c06: 69fb ldr r3, [r7, #28]
  90730. 8024c08: 681b ldr r3, [r3, #0]
  90731. 8024c0a: 61fb str r3, [r7, #28]
  90732. while (p) {
  90733. 8024c0c: 69fb ldr r3, [r7, #28]
  90734. 8024c0e: 2b00 cmp r3, #0
  90735. 8024c10: d1df bne.n 8024bd2 <etharp_query+0x19e>
  90736. }
  90737. if (copy_needed) {
  90738. 8024c12: 69bb ldr r3, [r7, #24]
  90739. 8024c14: 2b00 cmp r3, #0
  90740. 8024c16: d007 beq.n 8024c28 <etharp_query+0x1f4>
  90741. /* copy the whole packet into new pbufs */
  90742. p = pbuf_clone(PBUF_LINK, PBUF_RAM, q);
  90743. 8024c18: 687a ldr r2, [r7, #4]
  90744. 8024c1a: f44f 7120 mov.w r1, #640 @ 0x280
  90745. 8024c1e: 200e movs r0, #14
  90746. 8024c20: f7f6 facc bl 801b1bc <pbuf_clone>
  90747. 8024c24: 61f8 str r0, [r7, #28]
  90748. 8024c26: e004 b.n 8024c32 <etharp_query+0x1fe>
  90749. } else {
  90750. /* referencing the old pbuf is enough */
  90751. p = q;
  90752. 8024c28: 687b ldr r3, [r7, #4]
  90753. 8024c2a: 61fb str r3, [r7, #28]
  90754. pbuf_ref(p);
  90755. 8024c2c: 69f8 ldr r0, [r7, #28]
  90756. 8024c2e: f7f6 f8f3 bl 801ae18 <pbuf_ref>
  90757. }
  90758. /* packet could be taken over? */
  90759. if (p != NULL) {
  90760. 8024c32: 69fb ldr r3, [r7, #28]
  90761. 8024c34: 2b00 cmp r3, #0
  90762. 8024c36: d021 beq.n 8024c7c <etharp_query+0x248>
  90763. 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));
  90764. result = ERR_MEM;
  90765. }
  90766. #else /* ARP_QUEUEING */
  90767. /* always queue one packet per ARP request only, freeing a previously queued packet */
  90768. if (arp_table[i].q != NULL) {
  90769. 8024c38: 7c7a ldrb r2, [r7, #17]
  90770. 8024c3a: 4918 ldr r1, [pc, #96] @ (8024c9c <etharp_query+0x268>)
  90771. 8024c3c: 4613 mov r3, r2
  90772. 8024c3e: 005b lsls r3, r3, #1
  90773. 8024c40: 4413 add r3, r2
  90774. 8024c42: 00db lsls r3, r3, #3
  90775. 8024c44: 440b add r3, r1
  90776. 8024c46: 681b ldr r3, [r3, #0]
  90777. 8024c48: 2b00 cmp r3, #0
  90778. 8024c4a: d00a beq.n 8024c62 <etharp_query+0x22e>
  90779. 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));
  90780. pbuf_free(arp_table[i].q);
  90781. 8024c4c: 7c7a ldrb r2, [r7, #17]
  90782. 8024c4e: 4913 ldr r1, [pc, #76] @ (8024c9c <etharp_query+0x268>)
  90783. 8024c50: 4613 mov r3, r2
  90784. 8024c52: 005b lsls r3, r3, #1
  90785. 8024c54: 4413 add r3, r2
  90786. 8024c56: 00db lsls r3, r3, #3
  90787. 8024c58: 440b add r3, r1
  90788. 8024c5a: 681b ldr r3, [r3, #0]
  90789. 8024c5c: 4618 mov r0, r3
  90790. 8024c5e: f7f6 f835 bl 801accc <pbuf_free>
  90791. }
  90792. arp_table[i].q = p;
  90793. 8024c62: 7c7a ldrb r2, [r7, #17]
  90794. 8024c64: 490d ldr r1, [pc, #52] @ (8024c9c <etharp_query+0x268>)
  90795. 8024c66: 4613 mov r3, r2
  90796. 8024c68: 005b lsls r3, r3, #1
  90797. 8024c6a: 4413 add r3, r2
  90798. 8024c6c: 00db lsls r3, r3, #3
  90799. 8024c6e: 440b add r3, r1
  90800. 8024c70: 69fa ldr r2, [r7, #28]
  90801. 8024c72: 601a str r2, [r3, #0]
  90802. result = ERR_OK;
  90803. 8024c74: 2300 movs r3, #0
  90804. 8024c76: f887 3027 strb.w r3, [r7, #39] @ 0x27
  90805. 8024c7a: e002 b.n 8024c82 <etharp_query+0x24e>
  90806. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"U16_F"\n", (void *)q, (u16_t)i));
  90807. #endif /* ARP_QUEUEING */
  90808. } else {
  90809. ETHARP_STATS_INC(etharp.memerr);
  90810. 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));
  90811. result = ERR_MEM;
  90812. 8024c7c: 23ff movs r3, #255 @ 0xff
  90813. 8024c7e: f887 3027 strb.w r3, [r7, #39] @ 0x27
  90814. }
  90815. }
  90816. return result;
  90817. 8024c82: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  90818. }
  90819. 8024c86: 4618 mov r0, r3
  90820. 8024c88: 3728 adds r7, #40 @ 0x28
  90821. 8024c8a: 46bd mov sp, r7
  90822. 8024c8c: bd80 pop {r7, pc}
  90823. 8024c8e: bf00 nop
  90824. 8024c90: 08030a88 .word 0x08030a88
  90825. 8024c94: 08030c34 .word 0x08030c34
  90826. 8024c98: 08030b00 .word 0x08030b00
  90827. 8024c9c: 2402aff0 .word 0x2402aff0
  90828. 8024ca0: 08030c44 .word 0x08030c44
  90829. 8024ca4: 08030c28 .word 0x08030c28
  90830. 8024ca8: 2402b0e0 .word 0x2402b0e0
  90831. 8024cac: 08030c6c .word 0x08030c6c
  90832. 08024cb0 <etharp_raw>:
  90833. etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr,
  90834. const struct eth_addr *ethdst_addr,
  90835. const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr,
  90836. const struct eth_addr *hwdst_addr, const ip4_addr_t *ipdst_addr,
  90837. const u16_t opcode)
  90838. {
  90839. 8024cb0: b580 push {r7, lr}
  90840. 8024cb2: b08a sub sp, #40 @ 0x28
  90841. 8024cb4: af02 add r7, sp, #8
  90842. 8024cb6: 60f8 str r0, [r7, #12]
  90843. 8024cb8: 60b9 str r1, [r7, #8]
  90844. 8024cba: 607a str r2, [r7, #4]
  90845. 8024cbc: 603b str r3, [r7, #0]
  90846. struct pbuf *p;
  90847. err_t result = ERR_OK;
  90848. 8024cbe: 2300 movs r3, #0
  90849. 8024cc0: 77fb strb r3, [r7, #31]
  90850. struct etharp_hdr *hdr;
  90851. LWIP_ASSERT("netif != NULL", netif != NULL);
  90852. 8024cc2: 68fb ldr r3, [r7, #12]
  90853. 8024cc4: 2b00 cmp r3, #0
  90854. 8024cc6: d106 bne.n 8024cd6 <etharp_raw+0x26>
  90855. 8024cc8: 4b3a ldr r3, [pc, #232] @ (8024db4 <etharp_raw+0x104>)
  90856. 8024cca: f240 4257 movw r2, #1111 @ 0x457
  90857. 8024cce: 493a ldr r1, [pc, #232] @ (8024db8 <etharp_raw+0x108>)
  90858. 8024cd0: 483a ldr r0, [pc, #232] @ (8024dbc <etharp_raw+0x10c>)
  90859. 8024cd2: f005 fa73 bl 802a1bc <iprintf>
  90860. /* allocate a pbuf for the outgoing ARP request packet */
  90861. p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM);
  90862. 8024cd6: f44f 7220 mov.w r2, #640 @ 0x280
  90863. 8024cda: 211c movs r1, #28
  90864. 8024cdc: 200e movs r0, #14
  90865. 8024cde: f7f5 fcdf bl 801a6a0 <pbuf_alloc>
  90866. 8024ce2: 61b8 str r0, [r7, #24]
  90867. /* could allocate a pbuf for an ARP request? */
  90868. if (p == NULL) {
  90869. 8024ce4: 69bb ldr r3, [r7, #24]
  90870. 8024ce6: 2b00 cmp r3, #0
  90871. 8024ce8: d102 bne.n 8024cf0 <etharp_raw+0x40>
  90872. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  90873. ("etharp_raw: could not allocate pbuf for ARP request.\n"));
  90874. ETHARP_STATS_INC(etharp.memerr);
  90875. return ERR_MEM;
  90876. 8024cea: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  90877. 8024cee: e05d b.n 8024dac <etharp_raw+0xfc>
  90878. }
  90879. LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr",
  90880. 8024cf0: 69bb ldr r3, [r7, #24]
  90881. 8024cf2: 895b ldrh r3, [r3, #10]
  90882. 8024cf4: 2b1b cmp r3, #27
  90883. 8024cf6: d806 bhi.n 8024d06 <etharp_raw+0x56>
  90884. 8024cf8: 4b2e ldr r3, [pc, #184] @ (8024db4 <etharp_raw+0x104>)
  90885. 8024cfa: f240 4262 movw r2, #1122 @ 0x462
  90886. 8024cfe: 4930 ldr r1, [pc, #192] @ (8024dc0 <etharp_raw+0x110>)
  90887. 8024d00: 482e ldr r0, [pc, #184] @ (8024dbc <etharp_raw+0x10c>)
  90888. 8024d02: f005 fa5b bl 802a1bc <iprintf>
  90889. (p->len >= SIZEOF_ETHARP_HDR));
  90890. hdr = (struct etharp_hdr *)p->payload;
  90891. 8024d06: 69bb ldr r3, [r7, #24]
  90892. 8024d08: 685b ldr r3, [r3, #4]
  90893. 8024d0a: 617b str r3, [r7, #20]
  90894. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n"));
  90895. hdr->opcode = lwip_htons(opcode);
  90896. 8024d0c: 8ebb ldrh r3, [r7, #52] @ 0x34
  90897. 8024d0e: 4618 mov r0, r3
  90898. 8024d10: f7f4 fafa bl 8019308 <lwip_htons>
  90899. 8024d14: 4603 mov r3, r0
  90900. 8024d16: 461a mov r2, r3
  90901. 8024d18: 697b ldr r3, [r7, #20]
  90902. 8024d1a: 80da strh r2, [r3, #6]
  90903. LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!",
  90904. 8024d1c: 68fb ldr r3, [r7, #12]
  90905. 8024d1e: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  90906. 8024d22: 2b06 cmp r3, #6
  90907. 8024d24: d006 beq.n 8024d34 <etharp_raw+0x84>
  90908. 8024d26: 4b23 ldr r3, [pc, #140] @ (8024db4 <etharp_raw+0x104>)
  90909. 8024d28: f240 4269 movw r2, #1129 @ 0x469
  90910. 8024d2c: 4925 ldr r1, [pc, #148] @ (8024dc4 <etharp_raw+0x114>)
  90911. 8024d2e: 4823 ldr r0, [pc, #140] @ (8024dbc <etharp_raw+0x10c>)
  90912. 8024d30: f005 fa44 bl 802a1bc <iprintf>
  90913. (netif->hwaddr_len == ETH_HWADDR_LEN));
  90914. /* Write the ARP MAC-Addresses */
  90915. SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN);
  90916. 8024d34: 697b ldr r3, [r7, #20]
  90917. 8024d36: 3308 adds r3, #8
  90918. 8024d38: 2206 movs r2, #6
  90919. 8024d3a: 6839 ldr r1, [r7, #0]
  90920. 8024d3c: 4618 mov r0, r3
  90921. 8024d3e: f005 fcc6 bl 802a6ce <memcpy>
  90922. SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN);
  90923. 8024d42: 697b ldr r3, [r7, #20]
  90924. 8024d44: 3312 adds r3, #18
  90925. 8024d46: 2206 movs r2, #6
  90926. 8024d48: 6af9 ldr r1, [r7, #44] @ 0x2c
  90927. 8024d4a: 4618 mov r0, r3
  90928. 8024d4c: f005 fcbf bl 802a6ce <memcpy>
  90929. /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without
  90930. * structure packing. */
  90931. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->sipaddr, ipsrc_addr);
  90932. 8024d50: 697b ldr r3, [r7, #20]
  90933. 8024d52: 330e adds r3, #14
  90934. 8024d54: 6aba ldr r2, [r7, #40] @ 0x28
  90935. 8024d56: 6812 ldr r2, [r2, #0]
  90936. 8024d58: 601a str r2, [r3, #0]
  90937. IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr);
  90938. 8024d5a: 697b ldr r3, [r7, #20]
  90939. 8024d5c: 3318 adds r3, #24
  90940. 8024d5e: 6b3a ldr r2, [r7, #48] @ 0x30
  90941. 8024d60: 6812 ldr r2, [r2, #0]
  90942. 8024d62: 601a str r2, [r3, #0]
  90943. hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET);
  90944. 8024d64: 697b ldr r3, [r7, #20]
  90945. 8024d66: 2200 movs r2, #0
  90946. 8024d68: 701a strb r2, [r3, #0]
  90947. 8024d6a: 2200 movs r2, #0
  90948. 8024d6c: f042 0201 orr.w r2, r2, #1
  90949. 8024d70: 705a strb r2, [r3, #1]
  90950. hdr->proto = PP_HTONS(ETHTYPE_IP);
  90951. 8024d72: 697b ldr r3, [r7, #20]
  90952. 8024d74: 2200 movs r2, #0
  90953. 8024d76: f042 0208 orr.w r2, r2, #8
  90954. 8024d7a: 709a strb r2, [r3, #2]
  90955. 8024d7c: 2200 movs r2, #0
  90956. 8024d7e: 70da strb r2, [r3, #3]
  90957. /* set hwlen and protolen */
  90958. hdr->hwlen = ETH_HWADDR_LEN;
  90959. 8024d80: 697b ldr r3, [r7, #20]
  90960. 8024d82: 2206 movs r2, #6
  90961. 8024d84: 711a strb r2, [r3, #4]
  90962. hdr->protolen = sizeof(ip4_addr_t);
  90963. 8024d86: 697b ldr r3, [r7, #20]
  90964. 8024d88: 2204 movs r2, #4
  90965. 8024d8a: 715a strb r2, [r3, #5]
  90966. if (ip4_addr_islinklocal(ipsrc_addr)) {
  90967. ethernet_output(netif, p, ethsrc_addr, &ethbroadcast, ETHTYPE_ARP);
  90968. } else
  90969. #endif /* LWIP_AUTOIP */
  90970. {
  90971. ethernet_output(netif, p, ethsrc_addr, ethdst_addr, ETHTYPE_ARP);
  90972. 8024d8c: f640 0306 movw r3, #2054 @ 0x806
  90973. 8024d90: 9300 str r3, [sp, #0]
  90974. 8024d92: 687b ldr r3, [r7, #4]
  90975. 8024d94: 68ba ldr r2, [r7, #8]
  90976. 8024d96: 69b9 ldr r1, [r7, #24]
  90977. 8024d98: 68f8 ldr r0, [r7, #12]
  90978. 8024d9a: f001 fd97 bl 80268cc <ethernet_output>
  90979. }
  90980. ETHARP_STATS_INC(etharp.xmit);
  90981. /* free ARP query packet */
  90982. pbuf_free(p);
  90983. 8024d9e: 69b8 ldr r0, [r7, #24]
  90984. 8024da0: f7f5 ff94 bl 801accc <pbuf_free>
  90985. p = NULL;
  90986. 8024da4: 2300 movs r3, #0
  90987. 8024da6: 61bb str r3, [r7, #24]
  90988. /* could not allocate pbuf for ARP request */
  90989. return result;
  90990. 8024da8: f997 301f ldrsb.w r3, [r7, #31]
  90991. }
  90992. 8024dac: 4618 mov r0, r3
  90993. 8024dae: 3720 adds r7, #32
  90994. 8024db0: 46bd mov sp, r7
  90995. 8024db2: bd80 pop {r7, pc}
  90996. 8024db4: 08030a88 .word 0x08030a88
  90997. 8024db8: 08030bd8 .word 0x08030bd8
  90998. 8024dbc: 08030b00 .word 0x08030b00
  90999. 8024dc0: 08030c88 .word 0x08030c88
  91000. 8024dc4: 08030cbc .word 0x08030cbc
  91001. 08024dc8 <etharp_request_dst>:
  91002. * ERR_MEM if the ARP packet couldn't be allocated
  91003. * any other err_t on failure
  91004. */
  91005. static err_t
  91006. etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr)
  91007. {
  91008. 8024dc8: b580 push {r7, lr}
  91009. 8024dca: b088 sub sp, #32
  91010. 8024dcc: af04 add r7, sp, #16
  91011. 8024dce: 60f8 str r0, [r7, #12]
  91012. 8024dd0: 60b9 str r1, [r7, #8]
  91013. 8024dd2: 607a str r2, [r7, #4]
  91014. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  91015. 8024dd4: 68fb ldr r3, [r7, #12]
  91016. 8024dd6: f103 012a add.w r1, r3, #42 @ 0x2a
  91017. (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), &ethzero,
  91018. 8024dda: 68fb ldr r3, [r7, #12]
  91019. 8024ddc: f103 002a add.w r0, r3, #42 @ 0x2a
  91020. 8024de0: 68fb ldr r3, [r7, #12]
  91021. 8024de2: 3304 adds r3, #4
  91022. return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr,
  91023. 8024de4: 2201 movs r2, #1
  91024. 8024de6: 9203 str r2, [sp, #12]
  91025. 8024de8: 68ba ldr r2, [r7, #8]
  91026. 8024dea: 9202 str r2, [sp, #8]
  91027. 8024dec: 4a06 ldr r2, [pc, #24] @ (8024e08 <etharp_request_dst+0x40>)
  91028. 8024dee: 9201 str r2, [sp, #4]
  91029. 8024df0: 9300 str r3, [sp, #0]
  91030. 8024df2: 4603 mov r3, r0
  91031. 8024df4: 687a ldr r2, [r7, #4]
  91032. 8024df6: 68f8 ldr r0, [r7, #12]
  91033. 8024df8: f7ff ff5a bl 8024cb0 <etharp_raw>
  91034. 8024dfc: 4603 mov r3, r0
  91035. ipaddr, ARP_REQUEST);
  91036. }
  91037. 8024dfe: 4618 mov r0, r3
  91038. 8024e00: 3710 adds r7, #16
  91039. 8024e02: 46bd mov sp, r7
  91040. 8024e04: bd80 pop {r7, pc}
  91041. 8024e06: bf00 nop
  91042. 8024e08: 08031504 .word 0x08031504
  91043. 08024e0c <etharp_request>:
  91044. * ERR_MEM if the ARP packet couldn't be allocated
  91045. * any other err_t on failure
  91046. */
  91047. err_t
  91048. etharp_request(struct netif *netif, const ip4_addr_t *ipaddr)
  91049. {
  91050. 8024e0c: b580 push {r7, lr}
  91051. 8024e0e: b082 sub sp, #8
  91052. 8024e10: af00 add r7, sp, #0
  91053. 8024e12: 6078 str r0, [r7, #4]
  91054. 8024e14: 6039 str r1, [r7, #0]
  91055. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_request: sending ARP request.\n"));
  91056. return etharp_request_dst(netif, ipaddr, &ethbroadcast);
  91057. 8024e16: 4a05 ldr r2, [pc, #20] @ (8024e2c <etharp_request+0x20>)
  91058. 8024e18: 6839 ldr r1, [r7, #0]
  91059. 8024e1a: 6878 ldr r0, [r7, #4]
  91060. 8024e1c: f7ff ffd4 bl 8024dc8 <etharp_request_dst>
  91061. 8024e20: 4603 mov r3, r0
  91062. }
  91063. 8024e22: 4618 mov r0, r3
  91064. 8024e24: 3708 adds r7, #8
  91065. 8024e26: 46bd mov sp, r7
  91066. 8024e28: bd80 pop {r7, pc}
  91067. 8024e2a: bf00 nop
  91068. 8024e2c: 080314fc .word 0x080314fc
  91069. 08024e30 <icmp_input>:
  91070. * @param p the icmp echo request packet, p->payload pointing to the icmp header
  91071. * @param inp the netif on which this packet was received
  91072. */
  91073. void
  91074. icmp_input(struct pbuf *p, struct netif *inp)
  91075. {
  91076. 8024e30: b580 push {r7, lr}
  91077. 8024e32: b08e sub sp, #56 @ 0x38
  91078. 8024e34: af04 add r7, sp, #16
  91079. 8024e36: 6078 str r0, [r7, #4]
  91080. 8024e38: 6039 str r1, [r7, #0]
  91081. const ip4_addr_t *src;
  91082. ICMP_STATS_INC(icmp.recv);
  91083. MIB2_STATS_INC(mib2.icmpinmsgs);
  91084. iphdr_in = ip4_current_header();
  91085. 8024e3a: 4b89 ldr r3, [pc, #548] @ (8025060 <icmp_input+0x230>)
  91086. 8024e3c: 689b ldr r3, [r3, #8]
  91087. 8024e3e: 627b str r3, [r7, #36] @ 0x24
  91088. hlen = IPH_HL_BYTES(iphdr_in);
  91089. 8024e40: 6a7b ldr r3, [r7, #36] @ 0x24
  91090. 8024e42: 781b ldrb r3, [r3, #0]
  91091. 8024e44: f003 030f and.w r3, r3, #15
  91092. 8024e48: b2db uxtb r3, r3
  91093. 8024e4a: 009b lsls r3, r3, #2
  91094. 8024e4c: b2db uxtb r3, r3
  91095. 8024e4e: 847b strh r3, [r7, #34] @ 0x22
  91096. if (hlen < IP_HLEN) {
  91097. 8024e50: 8c7b ldrh r3, [r7, #34] @ 0x22
  91098. 8024e52: 2b13 cmp r3, #19
  91099. 8024e54: f240 80ed bls.w 8025032 <icmp_input+0x202>
  91100. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen));
  91101. goto lenerr;
  91102. }
  91103. if (p->len < sizeof(u16_t) * 2) {
  91104. 8024e58: 687b ldr r3, [r7, #4]
  91105. 8024e5a: 895b ldrh r3, [r3, #10]
  91106. 8024e5c: 2b03 cmp r3, #3
  91107. 8024e5e: f240 80ea bls.w 8025036 <icmp_input+0x206>
  91108. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len));
  91109. goto lenerr;
  91110. }
  91111. type = *((u8_t *)p->payload);
  91112. 8024e62: 687b ldr r3, [r7, #4]
  91113. 8024e64: 685b ldr r3, [r3, #4]
  91114. 8024e66: 781b ldrb r3, [r3, #0]
  91115. 8024e68: f887 3021 strb.w r3, [r7, #33] @ 0x21
  91116. #ifdef LWIP_DEBUG
  91117. code = *(((u8_t *)p->payload) + 1);
  91118. 8024e6c: 687b ldr r3, [r7, #4]
  91119. 8024e6e: 685b ldr r3, [r3, #4]
  91120. 8024e70: 785b ldrb r3, [r3, #1]
  91121. 8024e72: f887 3020 strb.w r3, [r7, #32]
  91122. /* if debug is enabled but debug statement below is somehow disabled: */
  91123. LWIP_UNUSED_ARG(code);
  91124. #endif /* LWIP_DEBUG */
  91125. switch (type) {
  91126. 8024e76: f897 3021 ldrb.w r3, [r7, #33] @ 0x21
  91127. 8024e7a: 2b00 cmp r3, #0
  91128. 8024e7c: f000 80d2 beq.w 8025024 <icmp_input+0x1f4>
  91129. 8024e80: 2b08 cmp r3, #8
  91130. 8024e82: f040 80d2 bne.w 802502a <icmp_input+0x1fa>
  91131. (as obviously, an echo request has been sent, too). */
  91132. MIB2_STATS_INC(mib2.icmpinechoreps);
  91133. break;
  91134. case ICMP_ECHO:
  91135. MIB2_STATS_INC(mib2.icmpinechos);
  91136. src = ip4_current_dest_addr();
  91137. 8024e86: 4b77 ldr r3, [pc, #476] @ (8025064 <icmp_input+0x234>)
  91138. 8024e88: 61fb str r3, [r7, #28]
  91139. /* multicast destination address? */
  91140. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  91141. 8024e8a: 4b75 ldr r3, [pc, #468] @ (8025060 <icmp_input+0x230>)
  91142. 8024e8c: 695b ldr r3, [r3, #20]
  91143. 8024e8e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  91144. 8024e92: 2be0 cmp r3, #224 @ 0xe0
  91145. 8024e94: f000 80d6 beq.w 8025044 <icmp_input+0x214>
  91146. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast pings\n"));
  91147. goto icmperr;
  91148. #endif /* LWIP_MULTICAST_PING */
  91149. }
  91150. /* broadcast destination address? */
  91151. if (ip4_addr_isbroadcast(ip4_current_dest_addr(), ip_current_netif())) {
  91152. 8024e98: 4b71 ldr r3, [pc, #452] @ (8025060 <icmp_input+0x230>)
  91153. 8024e9a: 695b ldr r3, [r3, #20]
  91154. 8024e9c: 4a70 ldr r2, [pc, #448] @ (8025060 <icmp_input+0x230>)
  91155. 8024e9e: 6812 ldr r2, [r2, #0]
  91156. 8024ea0: 4611 mov r1, r2
  91157. 8024ea2: 4618 mov r0, r3
  91158. 8024ea4: f000 fc34 bl 8025710 <ip4_addr_isbroadcast_u32>
  91159. 8024ea8: 4603 mov r3, r0
  91160. 8024eaa: 2b00 cmp r3, #0
  91161. 8024eac: f040 80cc bne.w 8025048 <icmp_input+0x218>
  91162. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to broadcast pings\n"));
  91163. goto icmperr;
  91164. #endif /* LWIP_BROADCAST_PING */
  91165. }
  91166. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ping\n"));
  91167. if (p->tot_len < sizeof(struct icmp_echo_hdr)) {
  91168. 8024eb0: 687b ldr r3, [r7, #4]
  91169. 8024eb2: 891b ldrh r3, [r3, #8]
  91170. 8024eb4: 2b07 cmp r3, #7
  91171. 8024eb6: f240 80c0 bls.w 802503a <icmp_input+0x20a>
  91172. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: bad ICMP echo received\n"));
  91173. goto lenerr;
  91174. }
  91175. #if CHECKSUM_CHECK_ICMP
  91176. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_CHECK_ICMP) {
  91177. if (inet_chksum_pbuf(p) != 0) {
  91178. 8024eba: 6878 ldr r0, [r7, #4]
  91179. 8024ebc: f7f4 fac1 bl 8019442 <inet_chksum_pbuf>
  91180. 8024ec0: 4603 mov r3, r0
  91181. 8024ec2: 2b00 cmp r3, #0
  91182. 8024ec4: d003 beq.n 8024ece <icmp_input+0x9e>
  91183. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo\n"));
  91184. pbuf_free(p);
  91185. 8024ec6: 6878 ldr r0, [r7, #4]
  91186. 8024ec8: f7f5 ff00 bl 801accc <pbuf_free>
  91187. ICMP_STATS_INC(icmp.chkerr);
  91188. MIB2_STATS_INC(mib2.icmpinerrors);
  91189. return;
  91190. 8024ecc: e0c5 b.n 802505a <icmp_input+0x22a>
  91191. }
  91192. }
  91193. #endif
  91194. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
  91195. if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  91196. 8024ece: 8c7b ldrh r3, [r7, #34] @ 0x22
  91197. 8024ed0: 330e adds r3, #14
  91198. 8024ed2: 4619 mov r1, r3
  91199. 8024ed4: 6878 ldr r0, [r7, #4]
  91200. 8024ed6: f7f5 fe31 bl 801ab3c <pbuf_add_header>
  91201. 8024eda: 4603 mov r3, r0
  91202. 8024edc: 2b00 cmp r3, #0
  91203. 8024ede: d04b beq.n 8024f78 <icmp_input+0x148>
  91204. /* p is not big enough to contain link headers
  91205. * allocate a new one and copy p into it
  91206. */
  91207. struct pbuf *r;
  91208. u16_t alloc_len = (u16_t)(p->tot_len + hlen);
  91209. 8024ee0: 687b ldr r3, [r7, #4]
  91210. 8024ee2: 891a ldrh r2, [r3, #8]
  91211. 8024ee4: 8c7b ldrh r3, [r7, #34] @ 0x22
  91212. 8024ee6: 4413 add r3, r2
  91213. 8024ee8: 837b strh r3, [r7, #26]
  91214. if (alloc_len < p->tot_len) {
  91215. 8024eea: 687b ldr r3, [r7, #4]
  91216. 8024eec: 891b ldrh r3, [r3, #8]
  91217. 8024eee: 8b7a ldrh r2, [r7, #26]
  91218. 8024ef0: 429a cmp r2, r3
  91219. 8024ef2: f0c0 80ab bcc.w 802504c <icmp_input+0x21c>
  91220. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed (tot_len overflow)\n"));
  91221. goto icmperr;
  91222. }
  91223. /* allocate new packet buffer with space for link headers */
  91224. r = pbuf_alloc(PBUF_LINK, alloc_len, PBUF_RAM);
  91225. 8024ef6: 8b7b ldrh r3, [r7, #26]
  91226. 8024ef8: f44f 7220 mov.w r2, #640 @ 0x280
  91227. 8024efc: 4619 mov r1, r3
  91228. 8024efe: 200e movs r0, #14
  91229. 8024f00: f7f5 fbce bl 801a6a0 <pbuf_alloc>
  91230. 8024f04: 6178 str r0, [r7, #20]
  91231. if (r == NULL) {
  91232. 8024f06: 697b ldr r3, [r7, #20]
  91233. 8024f08: 2b00 cmp r3, #0
  91234. 8024f0a: f000 80a1 beq.w 8025050 <icmp_input+0x220>
  91235. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n"));
  91236. goto icmperr;
  91237. }
  91238. if (r->len < hlen + sizeof(struct icmp_echo_hdr)) {
  91239. 8024f0e: 697b ldr r3, [r7, #20]
  91240. 8024f10: 895b ldrh r3, [r3, #10]
  91241. 8024f12: 461a mov r2, r3
  91242. 8024f14: 8c7b ldrh r3, [r7, #34] @ 0x22
  91243. 8024f16: 3308 adds r3, #8
  91244. 8024f18: 429a cmp r2, r3
  91245. 8024f1a: d203 bcs.n 8024f24 <icmp_input+0xf4>
  91246. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header"));
  91247. pbuf_free(r);
  91248. 8024f1c: 6978 ldr r0, [r7, #20]
  91249. 8024f1e: f7f5 fed5 bl 801accc <pbuf_free>
  91250. goto icmperr;
  91251. 8024f22: e096 b.n 8025052 <icmp_input+0x222>
  91252. }
  91253. /* copy the ip header */
  91254. MEMCPY(r->payload, iphdr_in, hlen);
  91255. 8024f24: 697b ldr r3, [r7, #20]
  91256. 8024f26: 685b ldr r3, [r3, #4]
  91257. 8024f28: 8c7a ldrh r2, [r7, #34] @ 0x22
  91258. 8024f2a: 6a79 ldr r1, [r7, #36] @ 0x24
  91259. 8024f2c: 4618 mov r0, r3
  91260. 8024f2e: f005 fbce bl 802a6ce <memcpy>
  91261. /* switch r->payload back to icmp header (cannot fail) */
  91262. if (pbuf_remove_header(r, hlen)) {
  91263. 8024f32: 8c7b ldrh r3, [r7, #34] @ 0x22
  91264. 8024f34: 4619 mov r1, r3
  91265. 8024f36: 6978 ldr r0, [r7, #20]
  91266. 8024f38: f7f5 fe10 bl 801ab5c <pbuf_remove_header>
  91267. 8024f3c: 4603 mov r3, r0
  91268. 8024f3e: 2b00 cmp r3, #0
  91269. 8024f40: d009 beq.n 8024f56 <icmp_input+0x126>
  91270. LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0);
  91271. 8024f42: 4b49 ldr r3, [pc, #292] @ (8025068 <icmp_input+0x238>)
  91272. 8024f44: 22b6 movs r2, #182 @ 0xb6
  91273. 8024f46: 4949 ldr r1, [pc, #292] @ (802506c <icmp_input+0x23c>)
  91274. 8024f48: 4849 ldr r0, [pc, #292] @ (8025070 <icmp_input+0x240>)
  91275. 8024f4a: f005 f937 bl 802a1bc <iprintf>
  91276. pbuf_free(r);
  91277. 8024f4e: 6978 ldr r0, [r7, #20]
  91278. 8024f50: f7f5 febc bl 801accc <pbuf_free>
  91279. goto icmperr;
  91280. 8024f54: e07d b.n 8025052 <icmp_input+0x222>
  91281. }
  91282. /* copy the rest of the packet without ip header */
  91283. if (pbuf_copy(r, p) != ERR_OK) {
  91284. 8024f56: 6879 ldr r1, [r7, #4]
  91285. 8024f58: 6978 ldr r0, [r7, #20]
  91286. 8024f5a: f7f5 ffeb bl 801af34 <pbuf_copy>
  91287. 8024f5e: 4603 mov r3, r0
  91288. 8024f60: 2b00 cmp r3, #0
  91289. 8024f62: d003 beq.n 8024f6c <icmp_input+0x13c>
  91290. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed"));
  91291. pbuf_free(r);
  91292. 8024f64: 6978 ldr r0, [r7, #20]
  91293. 8024f66: f7f5 feb1 bl 801accc <pbuf_free>
  91294. goto icmperr;
  91295. 8024f6a: e072 b.n 8025052 <icmp_input+0x222>
  91296. }
  91297. /* free the original p */
  91298. pbuf_free(p);
  91299. 8024f6c: 6878 ldr r0, [r7, #4]
  91300. 8024f6e: f7f5 fead bl 801accc <pbuf_free>
  91301. /* we now have an identical copy of p that has room for link headers */
  91302. p = r;
  91303. 8024f72: 697b ldr r3, [r7, #20]
  91304. 8024f74: 607b str r3, [r7, #4]
  91305. 8024f76: e00f b.n 8024f98 <icmp_input+0x168>
  91306. } else {
  91307. /* restore p->payload to point to icmp header (cannot fail) */
  91308. if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) {
  91309. 8024f78: 8c7b ldrh r3, [r7, #34] @ 0x22
  91310. 8024f7a: 330e adds r3, #14
  91311. 8024f7c: 4619 mov r1, r3
  91312. 8024f7e: 6878 ldr r0, [r7, #4]
  91313. 8024f80: f7f5 fdec bl 801ab5c <pbuf_remove_header>
  91314. 8024f84: 4603 mov r3, r0
  91315. 8024f86: 2b00 cmp r3, #0
  91316. 8024f88: d006 beq.n 8024f98 <icmp_input+0x168>
  91317. LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0);
  91318. 8024f8a: 4b37 ldr r3, [pc, #220] @ (8025068 <icmp_input+0x238>)
  91319. 8024f8c: 22c7 movs r2, #199 @ 0xc7
  91320. 8024f8e: 4939 ldr r1, [pc, #228] @ (8025074 <icmp_input+0x244>)
  91321. 8024f90: 4837 ldr r0, [pc, #220] @ (8025070 <icmp_input+0x240>)
  91322. 8024f92: f005 f913 bl 802a1bc <iprintf>
  91323. goto icmperr;
  91324. 8024f96: e05c b.n 8025052 <icmp_input+0x222>
  91325. }
  91326. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN */
  91327. /* At this point, all checks are OK. */
  91328. /* We generate an answer by switching the dest and src ip addresses,
  91329. * setting the icmp type to ECHO_RESPONSE and updating the checksum. */
  91330. iecho = (struct icmp_echo_hdr *)p->payload;
  91331. 8024f98: 687b ldr r3, [r7, #4]
  91332. 8024f9a: 685b ldr r3, [r3, #4]
  91333. 8024f9c: 613b str r3, [r7, #16]
  91334. if (pbuf_add_header(p, hlen)) {
  91335. 8024f9e: 8c7b ldrh r3, [r7, #34] @ 0x22
  91336. 8024fa0: 4619 mov r1, r3
  91337. 8024fa2: 6878 ldr r0, [r7, #4]
  91338. 8024fa4: f7f5 fdca bl 801ab3c <pbuf_add_header>
  91339. 8024fa8: 4603 mov r3, r0
  91340. 8024faa: 2b00 cmp r3, #0
  91341. 8024fac: d13c bne.n 8025028 <icmp_input+0x1f8>
  91342. LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet"));
  91343. } else {
  91344. err_t ret;
  91345. struct ip_hdr *iphdr = (struct ip_hdr *)p->payload;
  91346. 8024fae: 687b ldr r3, [r7, #4]
  91347. 8024fb0: 685b ldr r3, [r3, #4]
  91348. 8024fb2: 60fb str r3, [r7, #12]
  91349. ip4_addr_copy(iphdr->src, *src);
  91350. 8024fb4: 69fb ldr r3, [r7, #28]
  91351. 8024fb6: 681a ldr r2, [r3, #0]
  91352. 8024fb8: 68fb ldr r3, [r7, #12]
  91353. 8024fba: 60da str r2, [r3, #12]
  91354. ip4_addr_copy(iphdr->dest, *ip4_current_src_addr());
  91355. 8024fbc: 4b28 ldr r3, [pc, #160] @ (8025060 <icmp_input+0x230>)
  91356. 8024fbe: 691a ldr r2, [r3, #16]
  91357. 8024fc0: 68fb ldr r3, [r7, #12]
  91358. 8024fc2: 611a str r2, [r3, #16]
  91359. ICMPH_TYPE_SET(iecho, ICMP_ER);
  91360. 8024fc4: 693b ldr r3, [r7, #16]
  91361. 8024fc6: 2200 movs r2, #0
  91362. 8024fc8: 701a strb r2, [r3, #0]
  91363. #if CHECKSUM_GEN_ICMP
  91364. IF__NETIF_CHECKSUM_ENABLED(inp, NETIF_CHECKSUM_GEN_ICMP) {
  91365. /* adjust the checksum */
  91366. if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) {
  91367. 8024fca: 693b ldr r3, [r7, #16]
  91368. 8024fcc: 885b ldrh r3, [r3, #2]
  91369. 8024fce: b29b uxth r3, r3
  91370. 8024fd0: f64f 72f7 movw r2, #65527 @ 0xfff7
  91371. 8024fd4: 4293 cmp r3, r2
  91372. 8024fd6: d907 bls.n 8024fe8 <icmp_input+0x1b8>
  91373. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1);
  91374. 8024fd8: 693b ldr r3, [r7, #16]
  91375. 8024fda: 885b ldrh r3, [r3, #2]
  91376. 8024fdc: b29b uxth r3, r3
  91377. 8024fde: 3309 adds r3, #9
  91378. 8024fe0: b29a uxth r2, r3
  91379. 8024fe2: 693b ldr r3, [r7, #16]
  91380. 8024fe4: 805a strh r2, [r3, #2]
  91381. 8024fe6: e006 b.n 8024ff6 <icmp_input+0x1c6>
  91382. } else {
  91383. iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8));
  91384. 8024fe8: 693b ldr r3, [r7, #16]
  91385. 8024fea: 885b ldrh r3, [r3, #2]
  91386. 8024fec: b29b uxth r3, r3
  91387. 8024fee: 3308 adds r3, #8
  91388. 8024ff0: b29a uxth r2, r3
  91389. 8024ff2: 693b ldr r3, [r7, #16]
  91390. 8024ff4: 805a strh r2, [r3, #2]
  91391. #else /* CHECKSUM_GEN_ICMP */
  91392. iecho->chksum = 0;
  91393. #endif /* CHECKSUM_GEN_ICMP */
  91394. /* Set the correct TTL and recalculate the header checksum. */
  91395. IPH_TTL_SET(iphdr, ICMP_TTL);
  91396. 8024ff6: 68fb ldr r3, [r7, #12]
  91397. 8024ff8: 22ff movs r2, #255 @ 0xff
  91398. 8024ffa: 721a strb r2, [r3, #8]
  91399. IPH_CHKSUM_SET(iphdr, 0);
  91400. 8024ffc: 68fb ldr r3, [r7, #12]
  91401. 8024ffe: 2200 movs r2, #0
  91402. 8025000: 729a strb r2, [r3, #10]
  91403. 8025002: 2200 movs r2, #0
  91404. 8025004: 72da strb r2, [r3, #11]
  91405. MIB2_STATS_INC(mib2.icmpoutmsgs);
  91406. /* increase number of echo replies attempted to send */
  91407. MIB2_STATS_INC(mib2.icmpoutechoreps);
  91408. /* send an ICMP packet */
  91409. ret = ip4_output_if(p, src, LWIP_IP_HDRINCL,
  91410. 8025006: 683b ldr r3, [r7, #0]
  91411. 8025008: 9302 str r3, [sp, #8]
  91412. 802500a: 2301 movs r3, #1
  91413. 802500c: 9301 str r3, [sp, #4]
  91414. 802500e: 2300 movs r3, #0
  91415. 8025010: 9300 str r3, [sp, #0]
  91416. 8025012: 23ff movs r3, #255 @ 0xff
  91417. 8025014: 2200 movs r2, #0
  91418. 8025016: 69f9 ldr r1, [r7, #28]
  91419. 8025018: 6878 ldr r0, [r7, #4]
  91420. 802501a: f000 fa9f bl 802555c <ip4_output_if>
  91421. 802501e: 4603 mov r3, r0
  91422. 8025020: 72fb strb r3, [r7, #11]
  91423. ICMP_TTL, 0, IP_PROTO_ICMP, inp);
  91424. if (ret != ERR_OK) {
  91425. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ip_output_if returned an error: %s\n", lwip_strerr(ret)));
  91426. }
  91427. }
  91428. break;
  91429. 8025022: e001 b.n 8025028 <icmp_input+0x1f8>
  91430. break;
  91431. 8025024: bf00 nop
  91432. 8025026: e000 b.n 802502a <icmp_input+0x1fa>
  91433. break;
  91434. 8025028: bf00 nop
  91435. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %"S16_F" code %"S16_F" not supported.\n",
  91436. (s16_t)type, (s16_t)code));
  91437. ICMP_STATS_INC(icmp.proterr);
  91438. ICMP_STATS_INC(icmp.drop);
  91439. }
  91440. pbuf_free(p);
  91441. 802502a: 6878 ldr r0, [r7, #4]
  91442. 802502c: f7f5 fe4e bl 801accc <pbuf_free>
  91443. return;
  91444. 8025030: e013 b.n 802505a <icmp_input+0x22a>
  91445. goto lenerr;
  91446. 8025032: bf00 nop
  91447. 8025034: e002 b.n 802503c <icmp_input+0x20c>
  91448. goto lenerr;
  91449. 8025036: bf00 nop
  91450. 8025038: e000 b.n 802503c <icmp_input+0x20c>
  91451. goto lenerr;
  91452. 802503a: bf00 nop
  91453. lenerr:
  91454. pbuf_free(p);
  91455. 802503c: 6878 ldr r0, [r7, #4]
  91456. 802503e: f7f5 fe45 bl 801accc <pbuf_free>
  91457. ICMP_STATS_INC(icmp.lenerr);
  91458. MIB2_STATS_INC(mib2.icmpinerrors);
  91459. return;
  91460. 8025042: e00a b.n 802505a <icmp_input+0x22a>
  91461. goto icmperr;
  91462. 8025044: bf00 nop
  91463. 8025046: e004 b.n 8025052 <icmp_input+0x222>
  91464. goto icmperr;
  91465. 8025048: bf00 nop
  91466. 802504a: e002 b.n 8025052 <icmp_input+0x222>
  91467. goto icmperr;
  91468. 802504c: bf00 nop
  91469. 802504e: e000 b.n 8025052 <icmp_input+0x222>
  91470. goto icmperr;
  91471. 8025050: bf00 nop
  91472. #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING
  91473. icmperr:
  91474. pbuf_free(p);
  91475. 8025052: 6878 ldr r0, [r7, #4]
  91476. 8025054: f7f5 fe3a bl 801accc <pbuf_free>
  91477. ICMP_STATS_INC(icmp.err);
  91478. MIB2_STATS_INC(mib2.icmpinerrors);
  91479. return;
  91480. 8025058: bf00 nop
  91481. #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */
  91482. }
  91483. 802505a: 3728 adds r7, #40 @ 0x28
  91484. 802505c: 46bd mov sp, r7
  91485. 802505e: bd80 pop {r7, pc}
  91486. 8025060: 24024408 .word 0x24024408
  91487. 8025064: 2402441c .word 0x2402441c
  91488. 8025068: 08030d00 .word 0x08030d00
  91489. 802506c: 08030d38 .word 0x08030d38
  91490. 8025070: 08030d70 .word 0x08030d70
  91491. 8025074: 08030d98 .word 0x08030d98
  91492. 08025078 <icmp_dest_unreach>:
  91493. * p->payload pointing to the IP header
  91494. * @param t type of the 'unreachable' packet
  91495. */
  91496. void
  91497. icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t)
  91498. {
  91499. 8025078: b580 push {r7, lr}
  91500. 802507a: b082 sub sp, #8
  91501. 802507c: af00 add r7, sp, #0
  91502. 802507e: 6078 str r0, [r7, #4]
  91503. 8025080: 460b mov r3, r1
  91504. 8025082: 70fb strb r3, [r7, #3]
  91505. MIB2_STATS_INC(mib2.icmpoutdestunreachs);
  91506. icmp_send_response(p, ICMP_DUR, t);
  91507. 8025084: 78fb ldrb r3, [r7, #3]
  91508. 8025086: 461a mov r2, r3
  91509. 8025088: 2103 movs r1, #3
  91510. 802508a: 6878 ldr r0, [r7, #4]
  91511. 802508c: f000 f814 bl 80250b8 <icmp_send_response>
  91512. }
  91513. 8025090: bf00 nop
  91514. 8025092: 3708 adds r7, #8
  91515. 8025094: 46bd mov sp, r7
  91516. 8025096: bd80 pop {r7, pc}
  91517. 08025098 <icmp_time_exceeded>:
  91518. * p->payload pointing to the IP header
  91519. * @param t type of the 'time exceeded' packet
  91520. */
  91521. void
  91522. icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t)
  91523. {
  91524. 8025098: b580 push {r7, lr}
  91525. 802509a: b082 sub sp, #8
  91526. 802509c: af00 add r7, sp, #0
  91527. 802509e: 6078 str r0, [r7, #4]
  91528. 80250a0: 460b mov r3, r1
  91529. 80250a2: 70fb strb r3, [r7, #3]
  91530. MIB2_STATS_INC(mib2.icmpouttimeexcds);
  91531. icmp_send_response(p, ICMP_TE, t);
  91532. 80250a4: 78fb ldrb r3, [r7, #3]
  91533. 80250a6: 461a mov r2, r3
  91534. 80250a8: 210b movs r1, #11
  91535. 80250aa: 6878 ldr r0, [r7, #4]
  91536. 80250ac: f000 f804 bl 80250b8 <icmp_send_response>
  91537. }
  91538. 80250b0: bf00 nop
  91539. 80250b2: 3708 adds r7, #8
  91540. 80250b4: 46bd mov sp, r7
  91541. 80250b6: bd80 pop {r7, pc}
  91542. 080250b8 <icmp_send_response>:
  91543. * @param type Type of the ICMP header
  91544. * @param code Code of the ICMP header
  91545. */
  91546. static void
  91547. icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
  91548. {
  91549. 80250b8: b580 push {r7, lr}
  91550. 80250ba: b08c sub sp, #48 @ 0x30
  91551. 80250bc: af04 add r7, sp, #16
  91552. 80250be: 6078 str r0, [r7, #4]
  91553. 80250c0: 460b mov r3, r1
  91554. 80250c2: 70fb strb r3, [r7, #3]
  91555. 80250c4: 4613 mov r3, r2
  91556. 80250c6: 70bb strb r3, [r7, #2]
  91557. /* increase number of messages attempted to send */
  91558. MIB2_STATS_INC(mib2.icmpoutmsgs);
  91559. /* ICMP header + IP header + 8 bytes of data */
  91560. q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE,
  91561. 80250c8: f44f 7220 mov.w r2, #640 @ 0x280
  91562. 80250cc: 2124 movs r1, #36 @ 0x24
  91563. 80250ce: 2022 movs r0, #34 @ 0x22
  91564. 80250d0: f7f5 fae6 bl 801a6a0 <pbuf_alloc>
  91565. 80250d4: 61b8 str r0, [r7, #24]
  91566. PBUF_RAM);
  91567. if (q == NULL) {
  91568. 80250d6: 69bb ldr r3, [r7, #24]
  91569. 80250d8: 2b00 cmp r3, #0
  91570. 80250da: d056 beq.n 802518a <icmp_send_response+0xd2>
  91571. LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded: failed to allocate pbuf for ICMP packet.\n"));
  91572. MIB2_STATS_INC(mib2.icmpouterrors);
  91573. return;
  91574. }
  91575. LWIP_ASSERT("check that first pbuf can hold icmp message",
  91576. 80250dc: 69bb ldr r3, [r7, #24]
  91577. 80250de: 895b ldrh r3, [r3, #10]
  91578. 80250e0: 2b23 cmp r3, #35 @ 0x23
  91579. 80250e2: d806 bhi.n 80250f2 <icmp_send_response+0x3a>
  91580. 80250e4: 4b2b ldr r3, [pc, #172] @ (8025194 <icmp_send_response+0xdc>)
  91581. 80250e6: f44f 72b4 mov.w r2, #360 @ 0x168
  91582. 80250ea: 492b ldr r1, [pc, #172] @ (8025198 <icmp_send_response+0xe0>)
  91583. 80250ec: 482b ldr r0, [pc, #172] @ (802519c <icmp_send_response+0xe4>)
  91584. 80250ee: f005 f865 bl 802a1bc <iprintf>
  91585. (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE)));
  91586. iphdr = (struct ip_hdr *)p->payload;
  91587. 80250f2: 687b ldr r3, [r7, #4]
  91588. 80250f4: 685b ldr r3, [r3, #4]
  91589. 80250f6: 617b str r3, [r7, #20]
  91590. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src);
  91591. LWIP_DEBUGF(ICMP_DEBUG, (" to "));
  91592. ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest);
  91593. LWIP_DEBUGF(ICMP_DEBUG, ("\n"));
  91594. icmphdr = (struct icmp_echo_hdr *)q->payload;
  91595. 80250f8: 69bb ldr r3, [r7, #24]
  91596. 80250fa: 685b ldr r3, [r3, #4]
  91597. 80250fc: 613b str r3, [r7, #16]
  91598. icmphdr->type = type;
  91599. 80250fe: 693b ldr r3, [r7, #16]
  91600. 8025100: 78fa ldrb r2, [r7, #3]
  91601. 8025102: 701a strb r2, [r3, #0]
  91602. icmphdr->code = code;
  91603. 8025104: 693b ldr r3, [r7, #16]
  91604. 8025106: 78ba ldrb r2, [r7, #2]
  91605. 8025108: 705a strb r2, [r3, #1]
  91606. icmphdr->id = 0;
  91607. 802510a: 693b ldr r3, [r7, #16]
  91608. 802510c: 2200 movs r2, #0
  91609. 802510e: 711a strb r2, [r3, #4]
  91610. 8025110: 2200 movs r2, #0
  91611. 8025112: 715a strb r2, [r3, #5]
  91612. icmphdr->seqno = 0;
  91613. 8025114: 693b ldr r3, [r7, #16]
  91614. 8025116: 2200 movs r2, #0
  91615. 8025118: 719a strb r2, [r3, #6]
  91616. 802511a: 2200 movs r2, #0
  91617. 802511c: 71da strb r2, [r3, #7]
  91618. /* copy fields from original packet */
  91619. SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload,
  91620. 802511e: 69bb ldr r3, [r7, #24]
  91621. 8025120: 685b ldr r3, [r3, #4]
  91622. 8025122: f103 0008 add.w r0, r3, #8
  91623. 8025126: 687b ldr r3, [r7, #4]
  91624. 8025128: 685b ldr r3, [r3, #4]
  91625. 802512a: 221c movs r2, #28
  91626. 802512c: 4619 mov r1, r3
  91627. 802512e: f005 face bl 802a6ce <memcpy>
  91628. IP_HLEN + ICMP_DEST_UNREACH_DATASIZE);
  91629. ip4_addr_copy(iphdr_src, iphdr->src);
  91630. 8025132: 697b ldr r3, [r7, #20]
  91631. 8025134: 68db ldr r3, [r3, #12]
  91632. 8025136: 60fb str r3, [r7, #12]
  91633. ip4_addr_t iphdr_dst;
  91634. ip4_addr_copy(iphdr_dst, iphdr->dest);
  91635. netif = ip4_route_src(&iphdr_dst, &iphdr_src);
  91636. }
  91637. #else
  91638. netif = ip4_route(&iphdr_src);
  91639. 8025138: f107 030c add.w r3, r7, #12
  91640. 802513c: 4618 mov r0, r3
  91641. 802513e: f000 f82f bl 80251a0 <ip4_route>
  91642. 8025142: 61f8 str r0, [r7, #28]
  91643. #endif
  91644. if (netif != NULL) {
  91645. 8025144: 69fb ldr r3, [r7, #28]
  91646. 8025146: 2b00 cmp r3, #0
  91647. 8025148: d01b beq.n 8025182 <icmp_send_response+0xca>
  91648. /* calculate checksum */
  91649. icmphdr->chksum = 0;
  91650. 802514a: 693b ldr r3, [r7, #16]
  91651. 802514c: 2200 movs r2, #0
  91652. 802514e: 709a strb r2, [r3, #2]
  91653. 8025150: 2200 movs r2, #0
  91654. 8025152: 70da strb r2, [r3, #3]
  91655. #if CHECKSUM_GEN_ICMP
  91656. IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP) {
  91657. icmphdr->chksum = inet_chksum(icmphdr, q->len);
  91658. 8025154: 69bb ldr r3, [r7, #24]
  91659. 8025156: 895b ldrh r3, [r3, #10]
  91660. 8025158: 4619 mov r1, r3
  91661. 802515a: 6938 ldr r0, [r7, #16]
  91662. 802515c: f7f4 f95f bl 801941e <inet_chksum>
  91663. 8025160: 4603 mov r3, r0
  91664. 8025162: 461a mov r2, r3
  91665. 8025164: 693b ldr r3, [r7, #16]
  91666. 8025166: 805a strh r2, [r3, #2]
  91667. }
  91668. #endif
  91669. ICMP_STATS_INC(icmp.xmit);
  91670. ip4_output_if(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP, netif);
  91671. 8025168: f107 020c add.w r2, r7, #12
  91672. 802516c: 69fb ldr r3, [r7, #28]
  91673. 802516e: 9302 str r3, [sp, #8]
  91674. 8025170: 2301 movs r3, #1
  91675. 8025172: 9301 str r3, [sp, #4]
  91676. 8025174: 2300 movs r3, #0
  91677. 8025176: 9300 str r3, [sp, #0]
  91678. 8025178: 23ff movs r3, #255 @ 0xff
  91679. 802517a: 2100 movs r1, #0
  91680. 802517c: 69b8 ldr r0, [r7, #24]
  91681. 802517e: f000 f9ed bl 802555c <ip4_output_if>
  91682. }
  91683. pbuf_free(q);
  91684. 8025182: 69b8 ldr r0, [r7, #24]
  91685. 8025184: f7f5 fda2 bl 801accc <pbuf_free>
  91686. 8025188: e000 b.n 802518c <icmp_send_response+0xd4>
  91687. return;
  91688. 802518a: bf00 nop
  91689. }
  91690. 802518c: 3720 adds r7, #32
  91691. 802518e: 46bd mov sp, r7
  91692. 8025190: bd80 pop {r7, pc}
  91693. 8025192: bf00 nop
  91694. 8025194: 08030d00 .word 0x08030d00
  91695. 8025198: 08030dcc .word 0x08030dcc
  91696. 802519c: 08030d70 .word 0x08030d70
  91697. 080251a0 <ip4_route>:
  91698. * @param dest the destination IP address for which to find the route
  91699. * @return the netif on which to send to reach dest
  91700. */
  91701. struct netif *
  91702. ip4_route(const ip4_addr_t *dest)
  91703. {
  91704. 80251a0: b580 push {r7, lr}
  91705. 80251a2: b084 sub sp, #16
  91706. 80251a4: af00 add r7, sp, #0
  91707. 80251a6: 6078 str r0, [r7, #4]
  91708. #if !LWIP_SINGLE_NETIF
  91709. struct netif *netif;
  91710. LWIP_ASSERT_CORE_LOCKED();
  91711. 80251a8: f7eb fc68 bl 8010a7c <sys_check_core_locking>
  91712. /* bug #54569: in case LWIP_SINGLE_NETIF=1 and LWIP_DEBUGF() disabled, the following loop is optimized away */
  91713. LWIP_UNUSED_ARG(dest);
  91714. /* iterate through netifs */
  91715. NETIF_FOREACH(netif) {
  91716. 80251ac: 4b32 ldr r3, [pc, #200] @ (8025278 <ip4_route+0xd8>)
  91717. 80251ae: 681b ldr r3, [r3, #0]
  91718. 80251b0: 60fb str r3, [r7, #12]
  91719. 80251b2: e036 b.n 8025222 <ip4_route+0x82>
  91720. /* is the netif up, does it have a link and a valid address? */
  91721. if (netif_is_up(netif) && netif_is_link_up(netif) && !ip4_addr_isany_val(*netif_ip4_addr(netif))) {
  91722. 80251b4: 68fb ldr r3, [r7, #12]
  91723. 80251b6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  91724. 80251ba: f003 0301 and.w r3, r3, #1
  91725. 80251be: b2db uxtb r3, r3
  91726. 80251c0: 2b00 cmp r3, #0
  91727. 80251c2: d02b beq.n 802521c <ip4_route+0x7c>
  91728. 80251c4: 68fb ldr r3, [r7, #12]
  91729. 80251c6: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  91730. 80251ca: 089b lsrs r3, r3, #2
  91731. 80251cc: f003 0301 and.w r3, r3, #1
  91732. 80251d0: b2db uxtb r3, r3
  91733. 80251d2: 2b00 cmp r3, #0
  91734. 80251d4: d022 beq.n 802521c <ip4_route+0x7c>
  91735. 80251d6: 68fb ldr r3, [r7, #12]
  91736. 80251d8: 3304 adds r3, #4
  91737. 80251da: 681b ldr r3, [r3, #0]
  91738. 80251dc: 2b00 cmp r3, #0
  91739. 80251de: d01d beq.n 802521c <ip4_route+0x7c>
  91740. /* network mask matches? */
  91741. if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) {
  91742. 80251e0: 687b ldr r3, [r7, #4]
  91743. 80251e2: 681a ldr r2, [r3, #0]
  91744. 80251e4: 68fb ldr r3, [r7, #12]
  91745. 80251e6: 3304 adds r3, #4
  91746. 80251e8: 681b ldr r3, [r3, #0]
  91747. 80251ea: 405a eors r2, r3
  91748. 80251ec: 68fb ldr r3, [r7, #12]
  91749. 80251ee: 3308 adds r3, #8
  91750. 80251f0: 681b ldr r3, [r3, #0]
  91751. 80251f2: 4013 ands r3, r2
  91752. 80251f4: 2b00 cmp r3, #0
  91753. 80251f6: d101 bne.n 80251fc <ip4_route+0x5c>
  91754. /* return netif on which to forward IP packet */
  91755. return netif;
  91756. 80251f8: 68fb ldr r3, [r7, #12]
  91757. 80251fa: e038 b.n 802526e <ip4_route+0xce>
  91758. }
  91759. /* gateway matches on a non broadcast interface? (i.e. peer in a point to point interface) */
  91760. if (((netif->flags & NETIF_FLAG_BROADCAST) == 0) && ip4_addr_cmp(dest, netif_ip4_gw(netif))) {
  91761. 80251fc: 68fb ldr r3, [r7, #12]
  91762. 80251fe: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  91763. 8025202: f003 0302 and.w r3, r3, #2
  91764. 8025206: 2b00 cmp r3, #0
  91765. 8025208: d108 bne.n 802521c <ip4_route+0x7c>
  91766. 802520a: 687b ldr r3, [r7, #4]
  91767. 802520c: 681a ldr r2, [r3, #0]
  91768. 802520e: 68fb ldr r3, [r7, #12]
  91769. 8025210: 330c adds r3, #12
  91770. 8025212: 681b ldr r3, [r3, #0]
  91771. 8025214: 429a cmp r2, r3
  91772. 8025216: d101 bne.n 802521c <ip4_route+0x7c>
  91773. /* return netif on which to forward IP packet */
  91774. return netif;
  91775. 8025218: 68fb ldr r3, [r7, #12]
  91776. 802521a: e028 b.n 802526e <ip4_route+0xce>
  91777. NETIF_FOREACH(netif) {
  91778. 802521c: 68fb ldr r3, [r7, #12]
  91779. 802521e: 681b ldr r3, [r3, #0]
  91780. 8025220: 60fb str r3, [r7, #12]
  91781. 8025222: 68fb ldr r3, [r7, #12]
  91782. 8025224: 2b00 cmp r3, #0
  91783. 8025226: d1c5 bne.n 80251b4 <ip4_route+0x14>
  91784. return netif;
  91785. }
  91786. #endif
  91787. #endif /* !LWIP_SINGLE_NETIF */
  91788. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  91789. 8025228: 4b14 ldr r3, [pc, #80] @ (802527c <ip4_route+0xdc>)
  91790. 802522a: 681b ldr r3, [r3, #0]
  91791. 802522c: 2b00 cmp r3, #0
  91792. 802522e: d01a beq.n 8025266 <ip4_route+0xc6>
  91793. 8025230: 4b12 ldr r3, [pc, #72] @ (802527c <ip4_route+0xdc>)
  91794. 8025232: 681b ldr r3, [r3, #0]
  91795. 8025234: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  91796. 8025238: f003 0301 and.w r3, r3, #1
  91797. 802523c: 2b00 cmp r3, #0
  91798. 802523e: d012 beq.n 8025266 <ip4_route+0xc6>
  91799. 8025240: 4b0e ldr r3, [pc, #56] @ (802527c <ip4_route+0xdc>)
  91800. 8025242: 681b ldr r3, [r3, #0]
  91801. 8025244: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  91802. 8025248: f003 0304 and.w r3, r3, #4
  91803. 802524c: 2b00 cmp r3, #0
  91804. 802524e: d00a beq.n 8025266 <ip4_route+0xc6>
  91805. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  91806. 8025250: 4b0a ldr r3, [pc, #40] @ (802527c <ip4_route+0xdc>)
  91807. 8025252: 681b ldr r3, [r3, #0]
  91808. 8025254: 3304 adds r3, #4
  91809. 8025256: 681b ldr r3, [r3, #0]
  91810. if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) ||
  91811. 8025258: 2b00 cmp r3, #0
  91812. 802525a: d004 beq.n 8025266 <ip4_route+0xc6>
  91813. ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) {
  91814. 802525c: 687b ldr r3, [r7, #4]
  91815. 802525e: 681b ldr r3, [r3, #0]
  91816. 8025260: b2db uxtb r3, r3
  91817. 8025262: 2b7f cmp r3, #127 @ 0x7f
  91818. 8025264: d101 bne.n 802526a <ip4_route+0xca>
  91819. If this is not good enough for you, use LWIP_HOOK_IP4_ROUTE() */
  91820. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_route: No route to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n",
  91821. ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
  91822. IP_STATS_INC(ip.rterr);
  91823. MIB2_STATS_INC(mib2.ipoutnoroutes);
  91824. return NULL;
  91825. 8025266: 2300 movs r3, #0
  91826. 8025268: e001 b.n 802526e <ip4_route+0xce>
  91827. }
  91828. return netif_default;
  91829. 802526a: 4b04 ldr r3, [pc, #16] @ (802527c <ip4_route+0xdc>)
  91830. 802526c: 681b ldr r3, [r3, #0]
  91831. }
  91832. 802526e: 4618 mov r0, r3
  91833. 8025270: 3710 adds r7, #16
  91834. 8025272: 46bd mov sp, r7
  91835. 8025274: bd80 pop {r7, pc}
  91836. 8025276: bf00 nop
  91837. 8025278: 2402af4c .word 0x2402af4c
  91838. 802527c: 2402af50 .word 0x2402af50
  91839. 08025280 <ip4_input_accept>:
  91840. #endif /* IP_FORWARD */
  91841. /** Return true if the current input packet should be accepted on this netif */
  91842. static int
  91843. ip4_input_accept(struct netif *netif)
  91844. {
  91845. 8025280: b580 push {r7, lr}
  91846. 8025282: b082 sub sp, #8
  91847. 8025284: af00 add r7, sp, #0
  91848. 8025286: 6078 str r0, [r7, #4]
  91849. ip4_addr_get_u32(ip4_current_dest_addr()) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  91850. ip4_addr_get_u32(netif_ip4_addr(netif)) & ip4_addr_get_u32(netif_ip4_netmask(netif)),
  91851. ip4_addr_get_u32(ip4_current_dest_addr()) & ~ip4_addr_get_u32(netif_ip4_netmask(netif))));
  91852. /* interface is up and configured? */
  91853. if ((netif_is_up(netif)) && (!ip4_addr_isany_val(*netif_ip4_addr(netif)))) {
  91854. 8025288: 687b ldr r3, [r7, #4]
  91855. 802528a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  91856. 802528e: f003 0301 and.w r3, r3, #1
  91857. 8025292: b2db uxtb r3, r3
  91858. 8025294: 2b00 cmp r3, #0
  91859. 8025296: d016 beq.n 80252c6 <ip4_input_accept+0x46>
  91860. 8025298: 687b ldr r3, [r7, #4]
  91861. 802529a: 3304 adds r3, #4
  91862. 802529c: 681b ldr r3, [r3, #0]
  91863. 802529e: 2b00 cmp r3, #0
  91864. 80252a0: d011 beq.n 80252c6 <ip4_input_accept+0x46>
  91865. /* unicast to this interface address? */
  91866. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  91867. 80252a2: 4b0b ldr r3, [pc, #44] @ (80252d0 <ip4_input_accept+0x50>)
  91868. 80252a4: 695a ldr r2, [r3, #20]
  91869. 80252a6: 687b ldr r3, [r7, #4]
  91870. 80252a8: 3304 adds r3, #4
  91871. 80252aa: 681b ldr r3, [r3, #0]
  91872. 80252ac: 429a cmp r2, r3
  91873. 80252ae: d008 beq.n 80252c2 <ip4_input_accept+0x42>
  91874. /* or broadcast on this interface network address? */
  91875. ip4_addr_isbroadcast(ip4_current_dest_addr(), netif)
  91876. 80252b0: 4b07 ldr r3, [pc, #28] @ (80252d0 <ip4_input_accept+0x50>)
  91877. 80252b2: 695b ldr r3, [r3, #20]
  91878. 80252b4: 6879 ldr r1, [r7, #4]
  91879. 80252b6: 4618 mov r0, r3
  91880. 80252b8: f000 fa2a bl 8025710 <ip4_addr_isbroadcast_u32>
  91881. 80252bc: 4603 mov r3, r0
  91882. if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) ||
  91883. 80252be: 2b00 cmp r3, #0
  91884. 80252c0: d001 beq.n 80252c6 <ip4_input_accept+0x46>
  91885. #endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */
  91886. ) {
  91887. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: packet accepted on interface %c%c\n",
  91888. netif->name[0], netif->name[1]));
  91889. /* accept on this netif */
  91890. return 1;
  91891. 80252c2: 2301 movs r3, #1
  91892. 80252c4: e000 b.n 80252c8 <ip4_input_accept+0x48>
  91893. /* accept on this netif */
  91894. return 1;
  91895. }
  91896. #endif /* LWIP_AUTOIP */
  91897. }
  91898. return 0;
  91899. 80252c6: 2300 movs r3, #0
  91900. }
  91901. 80252c8: 4618 mov r0, r3
  91902. 80252ca: 3708 adds r7, #8
  91903. 80252cc: 46bd mov sp, r7
  91904. 80252ce: bd80 pop {r7, pc}
  91905. 80252d0: 24024408 .word 0x24024408
  91906. 080252d4 <ip4_input>:
  91907. * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't
  91908. * processed, but currently always returns ERR_OK)
  91909. */
  91910. err_t
  91911. ip4_input(struct pbuf *p, struct netif *inp)
  91912. {
  91913. 80252d4: b580 push {r7, lr}
  91914. 80252d6: b088 sub sp, #32
  91915. 80252d8: af00 add r7, sp, #0
  91916. 80252da: 6078 str r0, [r7, #4]
  91917. 80252dc: 6039 str r1, [r7, #0]
  91918. const struct ip_hdr *iphdr;
  91919. struct netif *netif;
  91920. u16_t iphdr_hlen;
  91921. u16_t iphdr_len;
  91922. #if IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP
  91923. int check_ip_src = 1;
  91924. 80252de: 2301 movs r3, #1
  91925. 80252e0: 617b str r3, [r7, #20]
  91926. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP */
  91927. #if LWIP_RAW
  91928. raw_input_state_t raw_status;
  91929. #endif /* LWIP_RAW */
  91930. LWIP_ASSERT_CORE_LOCKED();
  91931. 80252e2: f7eb fbcb bl 8010a7c <sys_check_core_locking>
  91932. IP_STATS_INC(ip.recv);
  91933. MIB2_STATS_INC(mib2.ipinreceives);
  91934. /* identify the IP header */
  91935. iphdr = (struct ip_hdr *)p->payload;
  91936. 80252e6: 687b ldr r3, [r7, #4]
  91937. 80252e8: 685b ldr r3, [r3, #4]
  91938. 80252ea: 613b str r3, [r7, #16]
  91939. if (IPH_V(iphdr) != 4) {
  91940. 80252ec: 693b ldr r3, [r7, #16]
  91941. 80252ee: 781b ldrb r3, [r3, #0]
  91942. 80252f0: 091b lsrs r3, r3, #4
  91943. 80252f2: b2db uxtb r3, r3
  91944. 80252f4: 2b04 cmp r3, #4
  91945. 80252f6: d004 beq.n 8025302 <ip4_input+0x2e>
  91946. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_WARNING, ("IP packet dropped due to bad version number %"U16_F"\n", (u16_t)IPH_V(iphdr)));
  91947. ip4_debug_print(p);
  91948. pbuf_free(p);
  91949. 80252f8: 6878 ldr r0, [r7, #4]
  91950. 80252fa: f7f5 fce7 bl 801accc <pbuf_free>
  91951. IP_STATS_INC(ip.err);
  91952. IP_STATS_INC(ip.drop);
  91953. MIB2_STATS_INC(mib2.ipinhdrerrors);
  91954. return ERR_OK;
  91955. 80252fe: 2300 movs r3, #0
  91956. 8025300: e123 b.n 802554a <ip4_input+0x276>
  91957. return ERR_OK;
  91958. }
  91959. #endif
  91960. /* obtain IP header length in bytes */
  91961. iphdr_hlen = IPH_HL_BYTES(iphdr);
  91962. 8025302: 693b ldr r3, [r7, #16]
  91963. 8025304: 781b ldrb r3, [r3, #0]
  91964. 8025306: f003 030f and.w r3, r3, #15
  91965. 802530a: b2db uxtb r3, r3
  91966. 802530c: 009b lsls r3, r3, #2
  91967. 802530e: b2db uxtb r3, r3
  91968. 8025310: 81fb strh r3, [r7, #14]
  91969. /* obtain ip length in bytes */
  91970. iphdr_len = lwip_ntohs(IPH_LEN(iphdr));
  91971. 8025312: 693b ldr r3, [r7, #16]
  91972. 8025314: 885b ldrh r3, [r3, #2]
  91973. 8025316: b29b uxth r3, r3
  91974. 8025318: 4618 mov r0, r3
  91975. 802531a: f7f3 fff5 bl 8019308 <lwip_htons>
  91976. 802531e: 4603 mov r3, r0
  91977. 8025320: 837b strh r3, [r7, #26]
  91978. /* Trim pbuf. This is especially required for packets < 60 bytes. */
  91979. if (iphdr_len < p->tot_len) {
  91980. 8025322: 687b ldr r3, [r7, #4]
  91981. 8025324: 891b ldrh r3, [r3, #8]
  91982. 8025326: 8b7a ldrh r2, [r7, #26]
  91983. 8025328: 429a cmp r2, r3
  91984. 802532a: d204 bcs.n 8025336 <ip4_input+0x62>
  91985. pbuf_realloc(p, iphdr_len);
  91986. 802532c: 8b7b ldrh r3, [r7, #26]
  91987. 802532e: 4619 mov r1, r3
  91988. 8025330: 6878 ldr r0, [r7, #4]
  91989. 8025332: f7f5 fb15 bl 801a960 <pbuf_realloc>
  91990. }
  91991. /* header length exceeds first pbuf length, or ip length exceeds total pbuf length? */
  91992. if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
  91993. 8025336: 687b ldr r3, [r7, #4]
  91994. 8025338: 895b ldrh r3, [r3, #10]
  91995. 802533a: 89fa ldrh r2, [r7, #14]
  91996. 802533c: 429a cmp r2, r3
  91997. 802533e: d807 bhi.n 8025350 <ip4_input+0x7c>
  91998. 8025340: 687b ldr r3, [r7, #4]
  91999. 8025342: 891b ldrh r3, [r3, #8]
  92000. 8025344: 8b7a ldrh r2, [r7, #26]
  92001. 8025346: 429a cmp r2, r3
  92002. 8025348: d802 bhi.n 8025350 <ip4_input+0x7c>
  92003. 802534a: 89fb ldrh r3, [r7, #14]
  92004. 802534c: 2b13 cmp r3, #19
  92005. 802534e: d804 bhi.n 802535a <ip4_input+0x86>
  92006. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
  92007. ("IP (len %"U16_F") is longer than pbuf (len %"U16_F"), IP packet dropped.\n",
  92008. iphdr_len, p->tot_len));
  92009. }
  92010. /* free (drop) packet pbufs */
  92011. pbuf_free(p);
  92012. 8025350: 6878 ldr r0, [r7, #4]
  92013. 8025352: f7f5 fcbb bl 801accc <pbuf_free>
  92014. IP_STATS_INC(ip.lenerr);
  92015. IP_STATS_INC(ip.drop);
  92016. MIB2_STATS_INC(mib2.ipindiscards);
  92017. return ERR_OK;
  92018. 8025356: 2300 movs r3, #0
  92019. 8025358: e0f7 b.n 802554a <ip4_input+0x276>
  92020. }
  92021. }
  92022. #endif
  92023. /* copy IP addresses to aligned ip_addr_t */
  92024. ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest);
  92025. 802535a: 693b ldr r3, [r7, #16]
  92026. 802535c: 691b ldr r3, [r3, #16]
  92027. 802535e: 4a7d ldr r2, [pc, #500] @ (8025554 <ip4_input+0x280>)
  92028. 8025360: 6153 str r3, [r2, #20]
  92029. ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src);
  92030. 8025362: 693b ldr r3, [r7, #16]
  92031. 8025364: 68db ldr r3, [r3, #12]
  92032. 8025366: 4a7b ldr r2, [pc, #492] @ (8025554 <ip4_input+0x280>)
  92033. 8025368: 6113 str r3, [r2, #16]
  92034. /* match packet against an interface, i.e. is this packet for us? */
  92035. if (ip4_addr_ismulticast(ip4_current_dest_addr())) {
  92036. 802536a: 4b7a ldr r3, [pc, #488] @ (8025554 <ip4_input+0x280>)
  92037. 802536c: 695b ldr r3, [r3, #20]
  92038. 802536e: f003 03f0 and.w r3, r3, #240 @ 0xf0
  92039. 8025372: 2be0 cmp r3, #224 @ 0xe0
  92040. 8025374: d112 bne.n 802539c <ip4_input+0xc8>
  92041. netif = inp;
  92042. } else {
  92043. netif = NULL;
  92044. }
  92045. #else /* LWIP_IGMP */
  92046. if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) {
  92047. 8025376: 683b ldr r3, [r7, #0]
  92048. 8025378: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92049. 802537c: f003 0301 and.w r3, r3, #1
  92050. 8025380: b2db uxtb r3, r3
  92051. 8025382: 2b00 cmp r3, #0
  92052. 8025384: d007 beq.n 8025396 <ip4_input+0xc2>
  92053. 8025386: 683b ldr r3, [r7, #0]
  92054. 8025388: 3304 adds r3, #4
  92055. 802538a: 681b ldr r3, [r3, #0]
  92056. 802538c: 2b00 cmp r3, #0
  92057. 802538e: d002 beq.n 8025396 <ip4_input+0xc2>
  92058. netif = inp;
  92059. 8025390: 683b ldr r3, [r7, #0]
  92060. 8025392: 61fb str r3, [r7, #28]
  92061. 8025394: e02a b.n 80253ec <ip4_input+0x118>
  92062. } else {
  92063. netif = NULL;
  92064. 8025396: 2300 movs r3, #0
  92065. 8025398: 61fb str r3, [r7, #28]
  92066. 802539a: e027 b.n 80253ec <ip4_input+0x118>
  92067. }
  92068. #endif /* LWIP_IGMP */
  92069. } else {
  92070. /* start trying with inp. if that's not acceptable, start walking the
  92071. list of configured netifs. */
  92072. if (ip4_input_accept(inp)) {
  92073. 802539c: 6838 ldr r0, [r7, #0]
  92074. 802539e: f7ff ff6f bl 8025280 <ip4_input_accept>
  92075. 80253a2: 4603 mov r3, r0
  92076. 80253a4: 2b00 cmp r3, #0
  92077. 80253a6: d002 beq.n 80253ae <ip4_input+0xda>
  92078. netif = inp;
  92079. 80253a8: 683b ldr r3, [r7, #0]
  92080. 80253aa: 61fb str r3, [r7, #28]
  92081. 80253ac: e01e b.n 80253ec <ip4_input+0x118>
  92082. } else {
  92083. netif = NULL;
  92084. 80253ae: 2300 movs r3, #0
  92085. 80253b0: 61fb str r3, [r7, #28]
  92086. #if !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF
  92087. /* Packets sent to the loopback address must not be accepted on an
  92088. * interface that does not have the loopback address assigned to it,
  92089. * unless a non-loopback interface is used for loopback traffic. */
  92090. if (!ip4_addr_isloopback(ip4_current_dest_addr()))
  92091. 80253b2: 4b68 ldr r3, [pc, #416] @ (8025554 <ip4_input+0x280>)
  92092. 80253b4: 695b ldr r3, [r3, #20]
  92093. 80253b6: b2db uxtb r3, r3
  92094. 80253b8: 2b7f cmp r3, #127 @ 0x7f
  92095. 80253ba: d017 beq.n 80253ec <ip4_input+0x118>
  92096. #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
  92097. {
  92098. #if !LWIP_SINGLE_NETIF
  92099. NETIF_FOREACH(netif) {
  92100. 80253bc: 4b66 ldr r3, [pc, #408] @ (8025558 <ip4_input+0x284>)
  92101. 80253be: 681b ldr r3, [r3, #0]
  92102. 80253c0: 61fb str r3, [r7, #28]
  92103. 80253c2: e00e b.n 80253e2 <ip4_input+0x10e>
  92104. if (netif == inp) {
  92105. 80253c4: 69fa ldr r2, [r7, #28]
  92106. 80253c6: 683b ldr r3, [r7, #0]
  92107. 80253c8: 429a cmp r2, r3
  92108. 80253ca: d006 beq.n 80253da <ip4_input+0x106>
  92109. /* we checked that before already */
  92110. continue;
  92111. }
  92112. if (ip4_input_accept(netif)) {
  92113. 80253cc: 69f8 ldr r0, [r7, #28]
  92114. 80253ce: f7ff ff57 bl 8025280 <ip4_input_accept>
  92115. 80253d2: 4603 mov r3, r0
  92116. 80253d4: 2b00 cmp r3, #0
  92117. 80253d6: d108 bne.n 80253ea <ip4_input+0x116>
  92118. 80253d8: e000 b.n 80253dc <ip4_input+0x108>
  92119. continue;
  92120. 80253da: bf00 nop
  92121. NETIF_FOREACH(netif) {
  92122. 80253dc: 69fb ldr r3, [r7, #28]
  92123. 80253de: 681b ldr r3, [r3, #0]
  92124. 80253e0: 61fb str r3, [r7, #28]
  92125. 80253e2: 69fb ldr r3, [r7, #28]
  92126. 80253e4: 2b00 cmp r3, #0
  92127. 80253e6: d1ed bne.n 80253c4 <ip4_input+0xf0>
  92128. 80253e8: e000 b.n 80253ec <ip4_input+0x118>
  92129. break;
  92130. 80253ea: bf00 nop
  92131. * If you want to accept private broadcast communication while a netif is down,
  92132. * define LWIP_IP_ACCEPT_UDP_PORT(dst_port), e.g.:
  92133. *
  92134. * #define LWIP_IP_ACCEPT_UDP_PORT(dst_port) ((dst_port) == PP_NTOHS(12345))
  92135. */
  92136. if (netif == NULL) {
  92137. 80253ec: 69fb ldr r3, [r7, #28]
  92138. 80253ee: 2b00 cmp r3, #0
  92139. 80253f0: d111 bne.n 8025416 <ip4_input+0x142>
  92140. /* remote port is DHCP server? */
  92141. if (IPH_PROTO(iphdr) == IP_PROTO_UDP) {
  92142. 80253f2: 693b ldr r3, [r7, #16]
  92143. 80253f4: 7a5b ldrb r3, [r3, #9]
  92144. 80253f6: 2b11 cmp r3, #17
  92145. 80253f8: d10d bne.n 8025416 <ip4_input+0x142>
  92146. const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen);
  92147. 80253fa: 89fb ldrh r3, [r7, #14]
  92148. 80253fc: 693a ldr r2, [r7, #16]
  92149. 80253fe: 4413 add r3, r2
  92150. 8025400: 60bb str r3, [r7, #8]
  92151. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: UDP packet to DHCP client port %"U16_F"\n",
  92152. lwip_ntohs(udphdr->dest)));
  92153. if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
  92154. 8025402: 68bb ldr r3, [r7, #8]
  92155. 8025404: 885b ldrh r3, [r3, #2]
  92156. 8025406: b29b uxth r3, r3
  92157. 8025408: f5b3 4f88 cmp.w r3, #17408 @ 0x4400
  92158. 802540c: d103 bne.n 8025416 <ip4_input+0x142>
  92159. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: DHCP packet accepted.\n"));
  92160. netif = inp;
  92161. 802540e: 683b ldr r3, [r7, #0]
  92162. 8025410: 61fb str r3, [r7, #28]
  92163. check_ip_src = 0;
  92164. 8025412: 2300 movs r3, #0
  92165. 8025414: 617b str r3, [r7, #20]
  92166. }
  92167. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  92168. /* broadcast or multicast packet source address? Compliant with RFC 1122: 3.2.1.3 */
  92169. #if LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING
  92170. if (check_ip_src
  92171. 8025416: 697b ldr r3, [r7, #20]
  92172. 8025418: 2b00 cmp r3, #0
  92173. 802541a: d017 beq.n 802544c <ip4_input+0x178>
  92174. #if IP_ACCEPT_LINK_LAYER_ADDRESSING
  92175. /* DHCP servers need 0.0.0.0 to be allowed as source address (RFC 1.1.2.2: 3.2.1.3/a) */
  92176. && !ip4_addr_isany_val(*ip4_current_src_addr())
  92177. 802541c: 4b4d ldr r3, [pc, #308] @ (8025554 <ip4_input+0x280>)
  92178. 802541e: 691b ldr r3, [r3, #16]
  92179. 8025420: 2b00 cmp r3, #0
  92180. 8025422: d013 beq.n 802544c <ip4_input+0x178>
  92181. #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */
  92182. )
  92183. #endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */
  92184. {
  92185. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  92186. 8025424: 4b4b ldr r3, [pc, #300] @ (8025554 <ip4_input+0x280>)
  92187. 8025426: 691b ldr r3, [r3, #16]
  92188. 8025428: 6839 ldr r1, [r7, #0]
  92189. 802542a: 4618 mov r0, r3
  92190. 802542c: f000 f970 bl 8025710 <ip4_addr_isbroadcast_u32>
  92191. 8025430: 4603 mov r3, r0
  92192. 8025432: 2b00 cmp r3, #0
  92193. 8025434: d105 bne.n 8025442 <ip4_input+0x16e>
  92194. (ip4_addr_ismulticast(ip4_current_src_addr()))) {
  92195. 8025436: 4b47 ldr r3, [pc, #284] @ (8025554 <ip4_input+0x280>)
  92196. 8025438: 691b ldr r3, [r3, #16]
  92197. 802543a: f003 03f0 and.w r3, r3, #240 @ 0xf0
  92198. if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) ||
  92199. 802543e: 2be0 cmp r3, #224 @ 0xe0
  92200. 8025440: d104 bne.n 802544c <ip4_input+0x178>
  92201. /* packet source is not valid */
  92202. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("ip4_input: packet source is not valid.\n"));
  92203. /* free (drop) packet pbufs */
  92204. pbuf_free(p);
  92205. 8025442: 6878 ldr r0, [r7, #4]
  92206. 8025444: f7f5 fc42 bl 801accc <pbuf_free>
  92207. IP_STATS_INC(ip.drop);
  92208. MIB2_STATS_INC(mib2.ipinaddrerrors);
  92209. MIB2_STATS_INC(mib2.ipindiscards);
  92210. return ERR_OK;
  92211. 8025448: 2300 movs r3, #0
  92212. 802544a: e07e b.n 802554a <ip4_input+0x276>
  92213. }
  92214. }
  92215. /* packet not for us? */
  92216. if (netif == NULL) {
  92217. 802544c: 69fb ldr r3, [r7, #28]
  92218. 802544e: 2b00 cmp r3, #0
  92219. 8025450: d104 bne.n 802545c <ip4_input+0x188>
  92220. {
  92221. IP_STATS_INC(ip.drop);
  92222. MIB2_STATS_INC(mib2.ipinaddrerrors);
  92223. MIB2_STATS_INC(mib2.ipindiscards);
  92224. }
  92225. pbuf_free(p);
  92226. 8025452: 6878 ldr r0, [r7, #4]
  92227. 8025454: f7f5 fc3a bl 801accc <pbuf_free>
  92228. return ERR_OK;
  92229. 8025458: 2300 movs r3, #0
  92230. 802545a: e076 b.n 802554a <ip4_input+0x276>
  92231. }
  92232. /* packet consists of multiple fragments? */
  92233. if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) {
  92234. 802545c: 693b ldr r3, [r7, #16]
  92235. 802545e: 88db ldrh r3, [r3, #6]
  92236. 8025460: b29b uxth r3, r3
  92237. 8025462: 461a mov r2, r3
  92238. 8025464: f64f 733f movw r3, #65343 @ 0xff3f
  92239. 8025468: 4013 ands r3, r2
  92240. 802546a: 2b00 cmp r3, #0
  92241. 802546c: d00b beq.n 8025486 <ip4_input+0x1b2>
  92242. #if IP_REASSEMBLY /* packet fragment reassembly code present? */
  92243. 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",
  92244. 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)));
  92245. /* reassemble the packet*/
  92246. p = ip4_reass(p);
  92247. 802546e: 6878 ldr r0, [r7, #4]
  92248. 8025470: f000 fe62 bl 8026138 <ip4_reass>
  92249. 8025474: 6078 str r0, [r7, #4]
  92250. /* packet not fully reassembled yet? */
  92251. if (p == NULL) {
  92252. 8025476: 687b ldr r3, [r7, #4]
  92253. 8025478: 2b00 cmp r3, #0
  92254. 802547a: d101 bne.n 8025480 <ip4_input+0x1ac>
  92255. return ERR_OK;
  92256. 802547c: 2300 movs r3, #0
  92257. 802547e: e064 b.n 802554a <ip4_input+0x276>
  92258. }
  92259. iphdr = (const struct ip_hdr *)p->payload;
  92260. 8025480: 687b ldr r3, [r7, #4]
  92261. 8025482: 685b ldr r3, [r3, #4]
  92262. 8025484: 613b str r3, [r7, #16]
  92263. /* send to upper layers */
  92264. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: \n"));
  92265. ip4_debug_print(p);
  92266. LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len));
  92267. ip_data.current_netif = netif;
  92268. 8025486: 4a33 ldr r2, [pc, #204] @ (8025554 <ip4_input+0x280>)
  92269. 8025488: 69fb ldr r3, [r7, #28]
  92270. 802548a: 6013 str r3, [r2, #0]
  92271. ip_data.current_input_netif = inp;
  92272. 802548c: 4a31 ldr r2, [pc, #196] @ (8025554 <ip4_input+0x280>)
  92273. 802548e: 683b ldr r3, [r7, #0]
  92274. 8025490: 6053 str r3, [r2, #4]
  92275. ip_data.current_ip4_header = iphdr;
  92276. 8025492: 4a30 ldr r2, [pc, #192] @ (8025554 <ip4_input+0x280>)
  92277. 8025494: 693b ldr r3, [r7, #16]
  92278. 8025496: 6093 str r3, [r2, #8]
  92279. ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr);
  92280. 8025498: 693b ldr r3, [r7, #16]
  92281. 802549a: 781b ldrb r3, [r3, #0]
  92282. 802549c: f003 030f and.w r3, r3, #15
  92283. 80254a0: b2db uxtb r3, r3
  92284. 80254a2: 009b lsls r3, r3, #2
  92285. 80254a4: b2db uxtb r3, r3
  92286. 80254a6: 461a mov r2, r3
  92287. 80254a8: 4b2a ldr r3, [pc, #168] @ (8025554 <ip4_input+0x280>)
  92288. 80254aa: 819a strh r2, [r3, #12]
  92289. /* raw input did not eat the packet? */
  92290. raw_status = raw_input(p, inp);
  92291. if (raw_status != RAW_INPUT_EATEN)
  92292. #endif /* LWIP_RAW */
  92293. {
  92294. pbuf_remove_header(p, iphdr_hlen); /* Move to payload, no check necessary. */
  92295. 80254ac: 89fb ldrh r3, [r7, #14]
  92296. 80254ae: 4619 mov r1, r3
  92297. 80254b0: 6878 ldr r0, [r7, #4]
  92298. 80254b2: f7f5 fb53 bl 801ab5c <pbuf_remove_header>
  92299. switch (IPH_PROTO(iphdr)) {
  92300. 80254b6: 693b ldr r3, [r7, #16]
  92301. 80254b8: 7a5b ldrb r3, [r3, #9]
  92302. 80254ba: 2b11 cmp r3, #17
  92303. 80254bc: d006 beq.n 80254cc <ip4_input+0x1f8>
  92304. 80254be: 2b11 cmp r3, #17
  92305. 80254c0: dc13 bgt.n 80254ea <ip4_input+0x216>
  92306. 80254c2: 2b01 cmp r3, #1
  92307. 80254c4: d00c beq.n 80254e0 <ip4_input+0x20c>
  92308. 80254c6: 2b06 cmp r3, #6
  92309. 80254c8: d005 beq.n 80254d6 <ip4_input+0x202>
  92310. 80254ca: e00e b.n 80254ea <ip4_input+0x216>
  92311. case IP_PROTO_UDP:
  92312. #if LWIP_UDPLITE
  92313. case IP_PROTO_UDPLITE:
  92314. #endif /* LWIP_UDPLITE */
  92315. MIB2_STATS_INC(mib2.ipindelivers);
  92316. udp_input(p, inp);
  92317. 80254cc: 6839 ldr r1, [r7, #0]
  92318. 80254ce: 6878 ldr r0, [r7, #4]
  92319. 80254d0: f7fc f99c bl 802180c <udp_input>
  92320. break;
  92321. 80254d4: e026 b.n 8025524 <ip4_input+0x250>
  92322. #endif /* LWIP_UDP */
  92323. #if LWIP_TCP
  92324. case IP_PROTO_TCP:
  92325. MIB2_STATS_INC(mib2.ipindelivers);
  92326. tcp_input(p, inp);
  92327. 80254d6: 6839 ldr r1, [r7, #0]
  92328. 80254d8: 6878 ldr r0, [r7, #4]
  92329. 80254da: f7f7 fcdd bl 801ce98 <tcp_input>
  92330. break;
  92331. 80254de: e021 b.n 8025524 <ip4_input+0x250>
  92332. #endif /* LWIP_TCP */
  92333. #if LWIP_ICMP
  92334. case IP_PROTO_ICMP:
  92335. MIB2_STATS_INC(mib2.ipindelivers);
  92336. icmp_input(p, inp);
  92337. 80254e0: 6839 ldr r1, [r7, #0]
  92338. 80254e2: 6878 ldr r0, [r7, #4]
  92339. 80254e4: f7ff fca4 bl 8024e30 <icmp_input>
  92340. break;
  92341. 80254e8: e01c b.n 8025524 <ip4_input+0x250>
  92342. } else
  92343. #endif /* LWIP_RAW */
  92344. {
  92345. #if LWIP_ICMP
  92346. /* send ICMP destination protocol unreachable unless is was a broadcast */
  92347. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  92348. 80254ea: 4b1a ldr r3, [pc, #104] @ (8025554 <ip4_input+0x280>)
  92349. 80254ec: 695b ldr r3, [r3, #20]
  92350. 80254ee: 69f9 ldr r1, [r7, #28]
  92351. 80254f0: 4618 mov r0, r3
  92352. 80254f2: f000 f90d bl 8025710 <ip4_addr_isbroadcast_u32>
  92353. 80254f6: 4603 mov r3, r0
  92354. 80254f8: 2b00 cmp r3, #0
  92355. 80254fa: d10f bne.n 802551c <ip4_input+0x248>
  92356. !ip4_addr_ismulticast(ip4_current_dest_addr())) {
  92357. 80254fc: 4b15 ldr r3, [pc, #84] @ (8025554 <ip4_input+0x280>)
  92358. 80254fe: 695b ldr r3, [r3, #20]
  92359. 8025500: f003 03f0 and.w r3, r3, #240 @ 0xf0
  92360. if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) &&
  92361. 8025504: 2be0 cmp r3, #224 @ 0xe0
  92362. 8025506: d009 beq.n 802551c <ip4_input+0x248>
  92363. pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */
  92364. 8025508: f9b7 300e ldrsh.w r3, [r7, #14]
  92365. 802550c: 4619 mov r1, r3
  92366. 802550e: 6878 ldr r0, [r7, #4]
  92367. 8025510: f7f5 fb97 bl 801ac42 <pbuf_header_force>
  92368. icmp_dest_unreach(p, ICMP_DUR_PROTO);
  92369. 8025514: 2102 movs r1, #2
  92370. 8025516: 6878 ldr r0, [r7, #4]
  92371. 8025518: f7ff fdae bl 8025078 <icmp_dest_unreach>
  92372. IP_STATS_INC(ip.proterr);
  92373. IP_STATS_INC(ip.drop);
  92374. MIB2_STATS_INC(mib2.ipinunknownprotos);
  92375. }
  92376. pbuf_free(p);
  92377. 802551c: 6878 ldr r0, [r7, #4]
  92378. 802551e: f7f5 fbd5 bl 801accc <pbuf_free>
  92379. break;
  92380. 8025522: bf00 nop
  92381. }
  92382. }
  92383. /* @todo: this is not really necessary... */
  92384. ip_data.current_netif = NULL;
  92385. 8025524: 4b0b ldr r3, [pc, #44] @ (8025554 <ip4_input+0x280>)
  92386. 8025526: 2200 movs r2, #0
  92387. 8025528: 601a str r2, [r3, #0]
  92388. ip_data.current_input_netif = NULL;
  92389. 802552a: 4b0a ldr r3, [pc, #40] @ (8025554 <ip4_input+0x280>)
  92390. 802552c: 2200 movs r2, #0
  92391. 802552e: 605a str r2, [r3, #4]
  92392. ip_data.current_ip4_header = NULL;
  92393. 8025530: 4b08 ldr r3, [pc, #32] @ (8025554 <ip4_input+0x280>)
  92394. 8025532: 2200 movs r2, #0
  92395. 8025534: 609a str r2, [r3, #8]
  92396. ip_data.current_ip_header_tot_len = 0;
  92397. 8025536: 4b07 ldr r3, [pc, #28] @ (8025554 <ip4_input+0x280>)
  92398. 8025538: 2200 movs r2, #0
  92399. 802553a: 819a strh r2, [r3, #12]
  92400. ip4_addr_set_any(ip4_current_src_addr());
  92401. 802553c: 4b05 ldr r3, [pc, #20] @ (8025554 <ip4_input+0x280>)
  92402. 802553e: 2200 movs r2, #0
  92403. 8025540: 611a str r2, [r3, #16]
  92404. ip4_addr_set_any(ip4_current_dest_addr());
  92405. 8025542: 4b04 ldr r3, [pc, #16] @ (8025554 <ip4_input+0x280>)
  92406. 8025544: 2200 movs r2, #0
  92407. 8025546: 615a str r2, [r3, #20]
  92408. return ERR_OK;
  92409. 8025548: 2300 movs r3, #0
  92410. }
  92411. 802554a: 4618 mov r0, r3
  92412. 802554c: 3720 adds r7, #32
  92413. 802554e: 46bd mov sp, r7
  92414. 8025550: bd80 pop {r7, pc}
  92415. 8025552: bf00 nop
  92416. 8025554: 24024408 .word 0x24024408
  92417. 8025558: 2402af4c .word 0x2402af4c
  92418. 0802555c <ip4_output_if>:
  92419. */
  92420. err_t
  92421. ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  92422. u8_t ttl, u8_t tos,
  92423. u8_t proto, struct netif *netif)
  92424. {
  92425. 802555c: b580 push {r7, lr}
  92426. 802555e: b08a sub sp, #40 @ 0x28
  92427. 8025560: af04 add r7, sp, #16
  92428. 8025562: 60f8 str r0, [r7, #12]
  92429. 8025564: 60b9 str r1, [r7, #8]
  92430. 8025566: 607a str r2, [r7, #4]
  92431. 8025568: 70fb strb r3, [r7, #3]
  92432. ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  92433. u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options,
  92434. u16_t optlen)
  92435. {
  92436. #endif /* IP_OPTIONS_SEND */
  92437. const ip4_addr_t *src_used = src;
  92438. 802556a: 68bb ldr r3, [r7, #8]
  92439. 802556c: 617b str r3, [r7, #20]
  92440. if (dest != LWIP_IP_HDRINCL) {
  92441. 802556e: 687b ldr r3, [r7, #4]
  92442. 8025570: 2b00 cmp r3, #0
  92443. 8025572: d009 beq.n 8025588 <ip4_output_if+0x2c>
  92444. if (ip4_addr_isany(src)) {
  92445. 8025574: 68bb ldr r3, [r7, #8]
  92446. 8025576: 2b00 cmp r3, #0
  92447. 8025578: d003 beq.n 8025582 <ip4_output_if+0x26>
  92448. 802557a: 68bb ldr r3, [r7, #8]
  92449. 802557c: 681b ldr r3, [r3, #0]
  92450. 802557e: 2b00 cmp r3, #0
  92451. 8025580: d102 bne.n 8025588 <ip4_output_if+0x2c>
  92452. src_used = netif_ip4_addr(netif);
  92453. 8025582: 6abb ldr r3, [r7, #40] @ 0x28
  92454. 8025584: 3304 adds r3, #4
  92455. 8025586: 617b str r3, [r7, #20]
  92456. #if IP_OPTIONS_SEND
  92457. return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif,
  92458. ip_options, optlen);
  92459. #else /* IP_OPTIONS_SEND */
  92460. return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif);
  92461. 8025588: 78fa ldrb r2, [r7, #3]
  92462. 802558a: 6abb ldr r3, [r7, #40] @ 0x28
  92463. 802558c: 9302 str r3, [sp, #8]
  92464. 802558e: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
  92465. 8025592: 9301 str r3, [sp, #4]
  92466. 8025594: f897 3020 ldrb.w r3, [r7, #32]
  92467. 8025598: 9300 str r3, [sp, #0]
  92468. 802559a: 4613 mov r3, r2
  92469. 802559c: 687a ldr r2, [r7, #4]
  92470. 802559e: 6979 ldr r1, [r7, #20]
  92471. 80255a0: 68f8 ldr r0, [r7, #12]
  92472. 80255a2: f000 f805 bl 80255b0 <ip4_output_if_src>
  92473. 80255a6: 4603 mov r3, r0
  92474. #endif /* IP_OPTIONS_SEND */
  92475. }
  92476. 80255a8: 4618 mov r0, r3
  92477. 80255aa: 3718 adds r7, #24
  92478. 80255ac: 46bd mov sp, r7
  92479. 80255ae: bd80 pop {r7, pc}
  92480. 080255b0 <ip4_output_if_src>:
  92481. */
  92482. err_t
  92483. ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest,
  92484. u8_t ttl, u8_t tos,
  92485. u8_t proto, struct netif *netif)
  92486. {
  92487. 80255b0: b580 push {r7, lr}
  92488. 80255b2: b088 sub sp, #32
  92489. 80255b4: af00 add r7, sp, #0
  92490. 80255b6: 60f8 str r0, [r7, #12]
  92491. 80255b8: 60b9 str r1, [r7, #8]
  92492. 80255ba: 607a str r2, [r7, #4]
  92493. 80255bc: 70fb strb r3, [r7, #3]
  92494. ip4_addr_t dest_addr;
  92495. #if CHECKSUM_GEN_IP_INLINE
  92496. u32_t chk_sum = 0;
  92497. #endif /* CHECKSUM_GEN_IP_INLINE */
  92498. LWIP_ASSERT_CORE_LOCKED();
  92499. 80255be: f7eb fa5d bl 8010a7c <sys_check_core_locking>
  92500. LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p);
  92501. 80255c2: 68fb ldr r3, [r7, #12]
  92502. 80255c4: 7b9b ldrb r3, [r3, #14]
  92503. 80255c6: 2b01 cmp r3, #1
  92504. 80255c8: d006 beq.n 80255d8 <ip4_output_if_src+0x28>
  92505. 80255ca: 4b4b ldr r3, [pc, #300] @ (80256f8 <ip4_output_if_src+0x148>)
  92506. 80255cc: f44f 7255 mov.w r2, #852 @ 0x354
  92507. 80255d0: 494a ldr r1, [pc, #296] @ (80256fc <ip4_output_if_src+0x14c>)
  92508. 80255d2: 484b ldr r0, [pc, #300] @ (8025700 <ip4_output_if_src+0x150>)
  92509. 80255d4: f004 fdf2 bl 802a1bc <iprintf>
  92510. MIB2_STATS_INC(mib2.ipoutrequests);
  92511. /* Should the IP header be generated or is it already included in p? */
  92512. if (dest != LWIP_IP_HDRINCL) {
  92513. 80255d8: 687b ldr r3, [r7, #4]
  92514. 80255da: 2b00 cmp r3, #0
  92515. 80255dc: d060 beq.n 80256a0 <ip4_output_if_src+0xf0>
  92516. u16_t ip_hlen = IP_HLEN;
  92517. 80255de: 2314 movs r3, #20
  92518. 80255e0: 837b strh r3, [r7, #26]
  92519. }
  92520. #endif /* CHECKSUM_GEN_IP_INLINE */
  92521. }
  92522. #endif /* IP_OPTIONS_SEND */
  92523. /* generate IP header */
  92524. if (pbuf_add_header(p, IP_HLEN)) {
  92525. 80255e2: 2114 movs r1, #20
  92526. 80255e4: 68f8 ldr r0, [r7, #12]
  92527. 80255e6: f7f5 faa9 bl 801ab3c <pbuf_add_header>
  92528. 80255ea: 4603 mov r3, r0
  92529. 80255ec: 2b00 cmp r3, #0
  92530. 80255ee: d002 beq.n 80255f6 <ip4_output_if_src+0x46>
  92531. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: not enough room for IP header in pbuf\n"));
  92532. IP_STATS_INC(ip.err);
  92533. MIB2_STATS_INC(mib2.ipoutdiscards);
  92534. return ERR_BUF;
  92535. 80255f0: f06f 0301 mvn.w r3, #1
  92536. 80255f4: e07c b.n 80256f0 <ip4_output_if_src+0x140>
  92537. }
  92538. iphdr = (struct ip_hdr *)p->payload;
  92539. 80255f6: 68fb ldr r3, [r7, #12]
  92540. 80255f8: 685b ldr r3, [r3, #4]
  92541. 80255fa: 61fb str r3, [r7, #28]
  92542. LWIP_ASSERT("check that first pbuf can hold struct ip_hdr",
  92543. 80255fc: 68fb ldr r3, [r7, #12]
  92544. 80255fe: 895b ldrh r3, [r3, #10]
  92545. 8025600: 2b13 cmp r3, #19
  92546. 8025602: d806 bhi.n 8025612 <ip4_output_if_src+0x62>
  92547. 8025604: 4b3c ldr r3, [pc, #240] @ (80256f8 <ip4_output_if_src+0x148>)
  92548. 8025606: f44f 7262 mov.w r2, #904 @ 0x388
  92549. 802560a: 493e ldr r1, [pc, #248] @ (8025704 <ip4_output_if_src+0x154>)
  92550. 802560c: 483c ldr r0, [pc, #240] @ (8025700 <ip4_output_if_src+0x150>)
  92551. 802560e: f004 fdd5 bl 802a1bc <iprintf>
  92552. (p->len >= sizeof(struct ip_hdr)));
  92553. IPH_TTL_SET(iphdr, ttl);
  92554. 8025612: 69fb ldr r3, [r7, #28]
  92555. 8025614: 78fa ldrb r2, [r7, #3]
  92556. 8025616: 721a strb r2, [r3, #8]
  92557. IPH_PROTO_SET(iphdr, proto);
  92558. 8025618: 69fb ldr r3, [r7, #28]
  92559. 802561a: f897 202c ldrb.w r2, [r7, #44] @ 0x2c
  92560. 802561e: 725a strb r2, [r3, #9]
  92561. #if CHECKSUM_GEN_IP_INLINE
  92562. chk_sum += PP_NTOHS(proto | (ttl << 8));
  92563. #endif /* CHECKSUM_GEN_IP_INLINE */
  92564. /* dest cannot be NULL here */
  92565. ip4_addr_copy(iphdr->dest, *dest);
  92566. 8025620: 687b ldr r3, [r7, #4]
  92567. 8025622: 681a ldr r2, [r3, #0]
  92568. 8025624: 69fb ldr r3, [r7, #28]
  92569. 8025626: 611a str r2, [r3, #16]
  92570. #if CHECKSUM_GEN_IP_INLINE
  92571. chk_sum += ip4_addr_get_u32(&iphdr->dest) & 0xFFFF;
  92572. chk_sum += ip4_addr_get_u32(&iphdr->dest) >> 16;
  92573. #endif /* CHECKSUM_GEN_IP_INLINE */
  92574. IPH_VHL_SET(iphdr, 4, ip_hlen / 4);
  92575. 8025628: 8b7b ldrh r3, [r7, #26]
  92576. 802562a: 089b lsrs r3, r3, #2
  92577. 802562c: b29b uxth r3, r3
  92578. 802562e: b2db uxtb r3, r3
  92579. 8025630: f043 0340 orr.w r3, r3, #64 @ 0x40
  92580. 8025634: b2da uxtb r2, r3
  92581. 8025636: 69fb ldr r3, [r7, #28]
  92582. 8025638: 701a strb r2, [r3, #0]
  92583. IPH_TOS_SET(iphdr, tos);
  92584. 802563a: 69fb ldr r3, [r7, #28]
  92585. 802563c: f897 2028 ldrb.w r2, [r7, #40] @ 0x28
  92586. 8025640: 705a strb r2, [r3, #1]
  92587. #if CHECKSUM_GEN_IP_INLINE
  92588. chk_sum += PP_NTOHS(tos | (iphdr->_v_hl << 8));
  92589. #endif /* CHECKSUM_GEN_IP_INLINE */
  92590. IPH_LEN_SET(iphdr, lwip_htons(p->tot_len));
  92591. 8025642: 68fb ldr r3, [r7, #12]
  92592. 8025644: 891b ldrh r3, [r3, #8]
  92593. 8025646: 4618 mov r0, r3
  92594. 8025648: f7f3 fe5e bl 8019308 <lwip_htons>
  92595. 802564c: 4603 mov r3, r0
  92596. 802564e: 461a mov r2, r3
  92597. 8025650: 69fb ldr r3, [r7, #28]
  92598. 8025652: 805a strh r2, [r3, #2]
  92599. #if CHECKSUM_GEN_IP_INLINE
  92600. chk_sum += iphdr->_len;
  92601. #endif /* CHECKSUM_GEN_IP_INLINE */
  92602. IPH_OFFSET_SET(iphdr, 0);
  92603. 8025654: 69fb ldr r3, [r7, #28]
  92604. 8025656: 2200 movs r2, #0
  92605. 8025658: 719a strb r2, [r3, #6]
  92606. 802565a: 2200 movs r2, #0
  92607. 802565c: 71da strb r2, [r3, #7]
  92608. IPH_ID_SET(iphdr, lwip_htons(ip_id));
  92609. 802565e: 4b2a ldr r3, [pc, #168] @ (8025708 <ip4_output_if_src+0x158>)
  92610. 8025660: 881b ldrh r3, [r3, #0]
  92611. 8025662: 4618 mov r0, r3
  92612. 8025664: f7f3 fe50 bl 8019308 <lwip_htons>
  92613. 8025668: 4603 mov r3, r0
  92614. 802566a: 461a mov r2, r3
  92615. 802566c: 69fb ldr r3, [r7, #28]
  92616. 802566e: 809a strh r2, [r3, #4]
  92617. #if CHECKSUM_GEN_IP_INLINE
  92618. chk_sum += iphdr->_id;
  92619. #endif /* CHECKSUM_GEN_IP_INLINE */
  92620. ++ip_id;
  92621. 8025670: 4b25 ldr r3, [pc, #148] @ (8025708 <ip4_output_if_src+0x158>)
  92622. 8025672: 881b ldrh r3, [r3, #0]
  92623. 8025674: 3301 adds r3, #1
  92624. 8025676: b29a uxth r2, r3
  92625. 8025678: 4b23 ldr r3, [pc, #140] @ (8025708 <ip4_output_if_src+0x158>)
  92626. 802567a: 801a strh r2, [r3, #0]
  92627. if (src == NULL) {
  92628. 802567c: 68bb ldr r3, [r7, #8]
  92629. 802567e: 2b00 cmp r3, #0
  92630. 8025680: d104 bne.n 802568c <ip4_output_if_src+0xdc>
  92631. ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4);
  92632. 8025682: 4b22 ldr r3, [pc, #136] @ (802570c <ip4_output_if_src+0x15c>)
  92633. 8025684: 681a ldr r2, [r3, #0]
  92634. 8025686: 69fb ldr r3, [r7, #28]
  92635. 8025688: 60da str r2, [r3, #12]
  92636. 802568a: e003 b.n 8025694 <ip4_output_if_src+0xe4>
  92637. } else {
  92638. /* src cannot be NULL here */
  92639. ip4_addr_copy(iphdr->src, *src);
  92640. 802568c: 68bb ldr r3, [r7, #8]
  92641. 802568e: 681a ldr r2, [r3, #0]
  92642. 8025690: 69fb ldr r3, [r7, #28]
  92643. 8025692: 60da str r2, [r3, #12]
  92644. else {
  92645. IPH_CHKSUM_SET(iphdr, 0);
  92646. }
  92647. #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/
  92648. #else /* CHECKSUM_GEN_IP_INLINE */
  92649. IPH_CHKSUM_SET(iphdr, 0);
  92650. 8025694: 69fb ldr r3, [r7, #28]
  92651. 8025696: 2200 movs r2, #0
  92652. 8025698: 729a strb r2, [r3, #10]
  92653. 802569a: 2200 movs r2, #0
  92654. 802569c: 72da strb r2, [r3, #11]
  92655. 802569e: e00f b.n 80256c0 <ip4_output_if_src+0x110>
  92656. }
  92657. #endif /* CHECKSUM_GEN_IP */
  92658. #endif /* CHECKSUM_GEN_IP_INLINE */
  92659. } else {
  92660. /* IP header already included in p */
  92661. if (p->len < IP_HLEN) {
  92662. 80256a0: 68fb ldr r3, [r7, #12]
  92663. 80256a2: 895b ldrh r3, [r3, #10]
  92664. 80256a4: 2b13 cmp r3, #19
  92665. 80256a6: d802 bhi.n 80256ae <ip4_output_if_src+0xfe>
  92666. LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: LWIP_IP_HDRINCL but pbuf is too short\n"));
  92667. IP_STATS_INC(ip.err);
  92668. MIB2_STATS_INC(mib2.ipoutdiscards);
  92669. return ERR_BUF;
  92670. 80256a8: f06f 0301 mvn.w r3, #1
  92671. 80256ac: e020 b.n 80256f0 <ip4_output_if_src+0x140>
  92672. }
  92673. iphdr = (struct ip_hdr *)p->payload;
  92674. 80256ae: 68fb ldr r3, [r7, #12]
  92675. 80256b0: 685b ldr r3, [r3, #4]
  92676. 80256b2: 61fb str r3, [r7, #28]
  92677. ip4_addr_copy(dest_addr, iphdr->dest);
  92678. 80256b4: 69fb ldr r3, [r7, #28]
  92679. 80256b6: 691b ldr r3, [r3, #16]
  92680. 80256b8: 617b str r3, [r7, #20]
  92681. dest = &dest_addr;
  92682. 80256ba: f107 0314 add.w r3, r7, #20
  92683. 80256be: 607b str r3, [r7, #4]
  92684. }
  92685. #endif /* LWIP_MULTICAST_TX_OPTIONS */
  92686. #endif /* ENABLE_LOOPBACK */
  92687. #if IP_FRAG
  92688. /* don't fragment if interface has mtu set to 0 [loopif] */
  92689. if (netif->mtu && (p->tot_len > netif->mtu)) {
  92690. 80256c0: 6b3b ldr r3, [r7, #48] @ 0x30
  92691. 80256c2: 8d1b ldrh r3, [r3, #40] @ 0x28
  92692. 80256c4: 2b00 cmp r3, #0
  92693. 80256c6: d00c beq.n 80256e2 <ip4_output_if_src+0x132>
  92694. 80256c8: 68fb ldr r3, [r7, #12]
  92695. 80256ca: 891a ldrh r2, [r3, #8]
  92696. 80256cc: 6b3b ldr r3, [r7, #48] @ 0x30
  92697. 80256ce: 8d1b ldrh r3, [r3, #40] @ 0x28
  92698. 80256d0: 429a cmp r2, r3
  92699. 80256d2: d906 bls.n 80256e2 <ip4_output_if_src+0x132>
  92700. return ip4_frag(p, netif, dest);
  92701. 80256d4: 687a ldr r2, [r7, #4]
  92702. 80256d6: 6b39 ldr r1, [r7, #48] @ 0x30
  92703. 80256d8: 68f8 ldr r0, [r7, #12]
  92704. 80256da: f000 ff21 bl 8026520 <ip4_frag>
  92705. 80256de: 4603 mov r3, r0
  92706. 80256e0: e006 b.n 80256f0 <ip4_output_if_src+0x140>
  92707. }
  92708. #endif /* IP_FRAG */
  92709. LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n"));
  92710. return netif->output(netif, p, dest);
  92711. 80256e2: 6b3b ldr r3, [r7, #48] @ 0x30
  92712. 80256e4: 695b ldr r3, [r3, #20]
  92713. 80256e6: 687a ldr r2, [r7, #4]
  92714. 80256e8: 68f9 ldr r1, [r7, #12]
  92715. 80256ea: 6b38 ldr r0, [r7, #48] @ 0x30
  92716. 80256ec: 4798 blx r3
  92717. 80256ee: 4603 mov r3, r0
  92718. }
  92719. 80256f0: 4618 mov r0, r3
  92720. 80256f2: 3720 adds r7, #32
  92721. 80256f4: 46bd mov sp, r7
  92722. 80256f6: bd80 pop {r7, pc}
  92723. 80256f8: 08030df8 .word 0x08030df8
  92724. 80256fc: 08030e2c .word 0x08030e2c
  92725. 8025700: 08030e38 .word 0x08030e38
  92726. 8025704: 08030e60 .word 0x08030e60
  92727. 8025708: 2402b0e2 .word 0x2402b0e2
  92728. 802570c: 080314f4 .word 0x080314f4
  92729. 08025710 <ip4_addr_isbroadcast_u32>:
  92730. * @param netif the network interface against which the address is checked
  92731. * @return returns non-zero if the address is a broadcast address
  92732. */
  92733. u8_t
  92734. ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif)
  92735. {
  92736. 8025710: b480 push {r7}
  92737. 8025712: b085 sub sp, #20
  92738. 8025714: af00 add r7, sp, #0
  92739. 8025716: 6078 str r0, [r7, #4]
  92740. 8025718: 6039 str r1, [r7, #0]
  92741. ip4_addr_t ipaddr;
  92742. ip4_addr_set_u32(&ipaddr, addr);
  92743. 802571a: 687b ldr r3, [r7, #4]
  92744. 802571c: 60fb str r3, [r7, #12]
  92745. /* all ones (broadcast) or all zeroes (old skool broadcast) */
  92746. if ((~addr == IPADDR_ANY) ||
  92747. 802571e: 687b ldr r3, [r7, #4]
  92748. 8025720: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  92749. 8025724: d002 beq.n 802572c <ip4_addr_isbroadcast_u32+0x1c>
  92750. 8025726: 687b ldr r3, [r7, #4]
  92751. 8025728: 2b00 cmp r3, #0
  92752. 802572a: d101 bne.n 8025730 <ip4_addr_isbroadcast_u32+0x20>
  92753. (addr == IPADDR_ANY)) {
  92754. return 1;
  92755. 802572c: 2301 movs r3, #1
  92756. 802572e: e02a b.n 8025786 <ip4_addr_isbroadcast_u32+0x76>
  92757. /* no broadcast support on this network interface? */
  92758. } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) {
  92759. 8025730: 683b ldr r3, [r7, #0]
  92760. 8025732: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  92761. 8025736: f003 0302 and.w r3, r3, #2
  92762. 802573a: 2b00 cmp r3, #0
  92763. 802573c: d101 bne.n 8025742 <ip4_addr_isbroadcast_u32+0x32>
  92764. /* the given address cannot be a broadcast address
  92765. * nor can we check against any broadcast addresses */
  92766. return 0;
  92767. 802573e: 2300 movs r3, #0
  92768. 8025740: e021 b.n 8025786 <ip4_addr_isbroadcast_u32+0x76>
  92769. /* address matches network interface address exactly? => no broadcast */
  92770. } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) {
  92771. 8025742: 683b ldr r3, [r7, #0]
  92772. 8025744: 3304 adds r3, #4
  92773. 8025746: 681b ldr r3, [r3, #0]
  92774. 8025748: 687a ldr r2, [r7, #4]
  92775. 802574a: 429a cmp r2, r3
  92776. 802574c: d101 bne.n 8025752 <ip4_addr_isbroadcast_u32+0x42>
  92777. return 0;
  92778. 802574e: 2300 movs r3, #0
  92779. 8025750: e019 b.n 8025786 <ip4_addr_isbroadcast_u32+0x76>
  92780. /* on the same (sub) network... */
  92781. } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif))
  92782. 8025752: 68fa ldr r2, [r7, #12]
  92783. 8025754: 683b ldr r3, [r7, #0]
  92784. 8025756: 3304 adds r3, #4
  92785. 8025758: 681b ldr r3, [r3, #0]
  92786. 802575a: 405a eors r2, r3
  92787. 802575c: 683b ldr r3, [r7, #0]
  92788. 802575e: 3308 adds r3, #8
  92789. 8025760: 681b ldr r3, [r3, #0]
  92790. 8025762: 4013 ands r3, r2
  92791. 8025764: 2b00 cmp r3, #0
  92792. 8025766: d10d bne.n 8025784 <ip4_addr_isbroadcast_u32+0x74>
  92793. /* ...and host identifier bits are all ones? =>... */
  92794. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  92795. 8025768: 683b ldr r3, [r7, #0]
  92796. 802576a: 3308 adds r3, #8
  92797. 802576c: 681b ldr r3, [r3, #0]
  92798. 802576e: 43da mvns r2, r3
  92799. 8025770: 687b ldr r3, [r7, #4]
  92800. 8025772: 401a ands r2, r3
  92801. (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) {
  92802. 8025774: 683b ldr r3, [r7, #0]
  92803. 8025776: 3308 adds r3, #8
  92804. 8025778: 681b ldr r3, [r3, #0]
  92805. 802577a: 43db mvns r3, r3
  92806. && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) ==
  92807. 802577c: 429a cmp r2, r3
  92808. 802577e: d101 bne.n 8025784 <ip4_addr_isbroadcast_u32+0x74>
  92809. /* => network broadcast address */
  92810. return 1;
  92811. 8025780: 2301 movs r3, #1
  92812. 8025782: e000 b.n 8025786 <ip4_addr_isbroadcast_u32+0x76>
  92813. } else {
  92814. return 0;
  92815. 8025784: 2300 movs r3, #0
  92816. }
  92817. }
  92818. 8025786: 4618 mov r0, r3
  92819. 8025788: 3714 adds r7, #20
  92820. 802578a: 46bd mov sp, r7
  92821. 802578c: f85d 7b04 ldr.w r7, [sp], #4
  92822. 8025790: 4770 bx lr
  92823. 08025792 <ipaddr_addr>:
  92824. * @param cp IP address in ascii representation (e.g. "127.0.0.1")
  92825. * @return ip address in network order
  92826. */
  92827. u32_t
  92828. ipaddr_addr(const char *cp)
  92829. {
  92830. 8025792: b580 push {r7, lr}
  92831. 8025794: b084 sub sp, #16
  92832. 8025796: af00 add r7, sp, #0
  92833. 8025798: 6078 str r0, [r7, #4]
  92834. ip4_addr_t val;
  92835. if (ip4addr_aton(cp, &val)) {
  92836. 802579a: f107 030c add.w r3, r7, #12
  92837. 802579e: 4619 mov r1, r3
  92838. 80257a0: 6878 ldr r0, [r7, #4]
  92839. 80257a2: f000 f80b bl 80257bc <ip4addr_aton>
  92840. 80257a6: 4603 mov r3, r0
  92841. 80257a8: 2b00 cmp r3, #0
  92842. 80257aa: d001 beq.n 80257b0 <ipaddr_addr+0x1e>
  92843. return ip4_addr_get_u32(&val);
  92844. 80257ac: 68fb ldr r3, [r7, #12]
  92845. 80257ae: e001 b.n 80257b4 <ipaddr_addr+0x22>
  92846. }
  92847. return (IPADDR_NONE);
  92848. 80257b0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  92849. }
  92850. 80257b4: 4618 mov r0, r3
  92851. 80257b6: 3710 adds r7, #16
  92852. 80257b8: 46bd mov sp, r7
  92853. 80257ba: bd80 pop {r7, pc}
  92854. 080257bc <ip4addr_aton>:
  92855. * @param addr pointer to which to save the ip address in network order
  92856. * @return 1 if cp could be converted to addr, 0 on failure
  92857. */
  92858. int
  92859. ip4addr_aton(const char *cp, ip4_addr_t *addr)
  92860. {
  92861. 80257bc: b580 push {r7, lr}
  92862. 80257be: b08a sub sp, #40 @ 0x28
  92863. 80257c0: af00 add r7, sp, #0
  92864. 80257c2: 6078 str r0, [r7, #4]
  92865. 80257c4: 6039 str r1, [r7, #0]
  92866. u32_t val;
  92867. u8_t base;
  92868. char c;
  92869. u32_t parts[4];
  92870. u32_t *pp = parts;
  92871. 80257c6: f107 030c add.w r3, r7, #12
  92872. 80257ca: 61fb str r3, [r7, #28]
  92873. c = *cp;
  92874. 80257cc: 687b ldr r3, [r7, #4]
  92875. 80257ce: 781b ldrb r3, [r3, #0]
  92876. 80257d0: f887 3022 strb.w r3, [r7, #34] @ 0x22
  92877. /*
  92878. * Collect number up to ``.''.
  92879. * Values are specified as for C:
  92880. * 0x=hex, 0=octal, 1-9=decimal.
  92881. */
  92882. if (!lwip_isdigit(c)) {
  92883. 80257d4: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  92884. 80257d8: 3301 adds r3, #1
  92885. 80257da: 4a89 ldr r2, [pc, #548] @ (8025a00 <ip4addr_aton+0x244>)
  92886. 80257dc: 4413 add r3, r2
  92887. 80257de: 781b ldrb r3, [r3, #0]
  92888. 80257e0: f003 0304 and.w r3, r3, #4
  92889. 80257e4: 2b00 cmp r3, #0
  92890. 80257e6: d101 bne.n 80257ec <ip4addr_aton+0x30>
  92891. return 0;
  92892. 80257e8: 2300 movs r3, #0
  92893. 80257ea: e105 b.n 80259f8 <ip4addr_aton+0x23c>
  92894. }
  92895. val = 0;
  92896. 80257ec: 2300 movs r3, #0
  92897. 80257ee: 627b str r3, [r7, #36] @ 0x24
  92898. base = 10;
  92899. 80257f0: 230a movs r3, #10
  92900. 80257f2: f887 3023 strb.w r3, [r7, #35] @ 0x23
  92901. if (c == '0') {
  92902. 80257f6: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  92903. 80257fa: 2b30 cmp r3, #48 @ 0x30
  92904. 80257fc: d11c bne.n 8025838 <ip4addr_aton+0x7c>
  92905. c = *++cp;
  92906. 80257fe: 687b ldr r3, [r7, #4]
  92907. 8025800: 3301 adds r3, #1
  92908. 8025802: 607b str r3, [r7, #4]
  92909. 8025804: 687b ldr r3, [r7, #4]
  92910. 8025806: 781b ldrb r3, [r3, #0]
  92911. 8025808: f887 3022 strb.w r3, [r7, #34] @ 0x22
  92912. if (c == 'x' || c == 'X') {
  92913. 802580c: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  92914. 8025810: 2b78 cmp r3, #120 @ 0x78
  92915. 8025812: d003 beq.n 802581c <ip4addr_aton+0x60>
  92916. 8025814: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  92917. 8025818: 2b58 cmp r3, #88 @ 0x58
  92918. 802581a: d10a bne.n 8025832 <ip4addr_aton+0x76>
  92919. base = 16;
  92920. 802581c: 2310 movs r3, #16
  92921. 802581e: f887 3023 strb.w r3, [r7, #35] @ 0x23
  92922. c = *++cp;
  92923. 8025822: 687b ldr r3, [r7, #4]
  92924. 8025824: 3301 adds r3, #1
  92925. 8025826: 607b str r3, [r7, #4]
  92926. 8025828: 687b ldr r3, [r7, #4]
  92927. 802582a: 781b ldrb r3, [r3, #0]
  92928. 802582c: f887 3022 strb.w r3, [r7, #34] @ 0x22
  92929. 8025830: e002 b.n 8025838 <ip4addr_aton+0x7c>
  92930. } else {
  92931. base = 8;
  92932. 8025832: 2308 movs r3, #8
  92933. 8025834: f887 3023 strb.w r3, [r7, #35] @ 0x23
  92934. }
  92935. }
  92936. for (;;) {
  92937. if (lwip_isdigit(c)) {
  92938. 8025838: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  92939. 802583c: 3301 adds r3, #1
  92940. 802583e: 4a70 ldr r2, [pc, #448] @ (8025a00 <ip4addr_aton+0x244>)
  92941. 8025840: 4413 add r3, r2
  92942. 8025842: 781b ldrb r3, [r3, #0]
  92943. 8025844: f003 0304 and.w r3, r3, #4
  92944. 8025848: 2b00 cmp r3, #0
  92945. 802584a: d011 beq.n 8025870 <ip4addr_aton+0xb4>
  92946. val = (val * base) + (u32_t)(c - '0');
  92947. 802584c: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  92948. 8025850: 6a7a ldr r2, [r7, #36] @ 0x24
  92949. 8025852: fb03 f202 mul.w r2, r3, r2
  92950. 8025856: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  92951. 802585a: 4413 add r3, r2
  92952. 802585c: 3b30 subs r3, #48 @ 0x30
  92953. 802585e: 627b str r3, [r7, #36] @ 0x24
  92954. c = *++cp;
  92955. 8025860: 687b ldr r3, [r7, #4]
  92956. 8025862: 3301 adds r3, #1
  92957. 8025864: 607b str r3, [r7, #4]
  92958. 8025866: 687b ldr r3, [r7, #4]
  92959. 8025868: 781b ldrb r3, [r3, #0]
  92960. 802586a: f887 3022 strb.w r3, [r7, #34] @ 0x22
  92961. 802586e: e7e3 b.n 8025838 <ip4addr_aton+0x7c>
  92962. } else if (base == 16 && lwip_isxdigit(c)) {
  92963. 8025870: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  92964. 8025874: 2b10 cmp r3, #16
  92965. 8025876: d127 bne.n 80258c8 <ip4addr_aton+0x10c>
  92966. 8025878: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  92967. 802587c: 3301 adds r3, #1
  92968. 802587e: 4a60 ldr r2, [pc, #384] @ (8025a00 <ip4addr_aton+0x244>)
  92969. 8025880: 4413 add r3, r2
  92970. 8025882: 781b ldrb r3, [r3, #0]
  92971. 8025884: f003 0344 and.w r3, r3, #68 @ 0x44
  92972. 8025888: 2b00 cmp r3, #0
  92973. 802588a: d01d beq.n 80258c8 <ip4addr_aton+0x10c>
  92974. val = (val << 4) | (u32_t)(c + 10 - (lwip_islower(c) ? 'a' : 'A'));
  92975. 802588c: 6a7b ldr r3, [r7, #36] @ 0x24
  92976. 802588e: 011b lsls r3, r3, #4
  92977. 8025890: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  92978. 8025894: f102 010a add.w r1, r2, #10
  92979. 8025898: f897 2022 ldrb.w r2, [r7, #34] @ 0x22
  92980. 802589c: 3201 adds r2, #1
  92981. 802589e: 4858 ldr r0, [pc, #352] @ (8025a00 <ip4addr_aton+0x244>)
  92982. 80258a0: 4402 add r2, r0
  92983. 80258a2: 7812 ldrb r2, [r2, #0]
  92984. 80258a4: f002 0203 and.w r2, r2, #3
  92985. 80258a8: 2a02 cmp r2, #2
  92986. 80258aa: d101 bne.n 80258b0 <ip4addr_aton+0xf4>
  92987. 80258ac: 2261 movs r2, #97 @ 0x61
  92988. 80258ae: e000 b.n 80258b2 <ip4addr_aton+0xf6>
  92989. 80258b0: 2241 movs r2, #65 @ 0x41
  92990. 80258b2: 1a8a subs r2, r1, r2
  92991. 80258b4: 4313 orrs r3, r2
  92992. 80258b6: 627b str r3, [r7, #36] @ 0x24
  92993. c = *++cp;
  92994. 80258b8: 687b ldr r3, [r7, #4]
  92995. 80258ba: 3301 adds r3, #1
  92996. 80258bc: 607b str r3, [r7, #4]
  92997. 80258be: 687b ldr r3, [r7, #4]
  92998. 80258c0: 781b ldrb r3, [r3, #0]
  92999. 80258c2: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93000. if (lwip_isdigit(c)) {
  93001. 80258c6: e7b7 b.n 8025838 <ip4addr_aton+0x7c>
  93002. } else {
  93003. break;
  93004. }
  93005. }
  93006. if (c == '.') {
  93007. 80258c8: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93008. 80258cc: 2b2e cmp r3, #46 @ 0x2e
  93009. 80258ce: d114 bne.n 80258fa <ip4addr_aton+0x13e>
  93010. * Internet format:
  93011. * a.b.c.d
  93012. * a.b.c (with c treated as 16 bits)
  93013. * a.b (with b treated as 24 bits)
  93014. */
  93015. if (pp >= parts + 3) {
  93016. 80258d0: f107 030c add.w r3, r7, #12
  93017. 80258d4: 330c adds r3, #12
  93018. 80258d6: 69fa ldr r2, [r7, #28]
  93019. 80258d8: 429a cmp r2, r3
  93020. 80258da: d301 bcc.n 80258e0 <ip4addr_aton+0x124>
  93021. return 0;
  93022. 80258dc: 2300 movs r3, #0
  93023. 80258de: e08b b.n 80259f8 <ip4addr_aton+0x23c>
  93024. }
  93025. *pp++ = val;
  93026. 80258e0: 69fb ldr r3, [r7, #28]
  93027. 80258e2: 1d1a adds r2, r3, #4
  93028. 80258e4: 61fa str r2, [r7, #28]
  93029. 80258e6: 6a7a ldr r2, [r7, #36] @ 0x24
  93030. 80258e8: 601a str r2, [r3, #0]
  93031. c = *++cp;
  93032. 80258ea: 687b ldr r3, [r7, #4]
  93033. 80258ec: 3301 adds r3, #1
  93034. 80258ee: 607b str r3, [r7, #4]
  93035. 80258f0: 687b ldr r3, [r7, #4]
  93036. 80258f2: 781b ldrb r3, [r3, #0]
  93037. 80258f4: f887 3022 strb.w r3, [r7, #34] @ 0x22
  93038. if (!lwip_isdigit(c)) {
  93039. 80258f8: e76c b.n 80257d4 <ip4addr_aton+0x18>
  93040. } else {
  93041. break;
  93042. 80258fa: bf00 nop
  93043. }
  93044. }
  93045. /*
  93046. * Check for trailing characters.
  93047. */
  93048. if (c != '\0' && !lwip_isspace(c)) {
  93049. 80258fc: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93050. 8025900: 2b00 cmp r3, #0
  93051. 8025902: d00b beq.n 802591c <ip4addr_aton+0x160>
  93052. 8025904: f897 3022 ldrb.w r3, [r7, #34] @ 0x22
  93053. 8025908: 3301 adds r3, #1
  93054. 802590a: 4a3d ldr r2, [pc, #244] @ (8025a00 <ip4addr_aton+0x244>)
  93055. 802590c: 4413 add r3, r2
  93056. 802590e: 781b ldrb r3, [r3, #0]
  93057. 8025910: f003 0308 and.w r3, r3, #8
  93058. 8025914: 2b00 cmp r3, #0
  93059. 8025916: d101 bne.n 802591c <ip4addr_aton+0x160>
  93060. return 0;
  93061. 8025918: 2300 movs r3, #0
  93062. 802591a: e06d b.n 80259f8 <ip4addr_aton+0x23c>
  93063. }
  93064. /*
  93065. * Concoct the address according to
  93066. * the number of parts specified.
  93067. */
  93068. switch (pp - parts + 1) {
  93069. 802591c: f107 030c add.w r3, r7, #12
  93070. 8025920: 69fa ldr r2, [r7, #28]
  93071. 8025922: 1ad3 subs r3, r2, r3
  93072. 8025924: 109b asrs r3, r3, #2
  93073. 8025926: 3301 adds r3, #1
  93074. 8025928: 2b04 cmp r3, #4
  93075. 802592a: d853 bhi.n 80259d4 <ip4addr_aton+0x218>
  93076. 802592c: a201 add r2, pc, #4 @ (adr r2, 8025934 <ip4addr_aton+0x178>)
  93077. 802592e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  93078. 8025932: bf00 nop
  93079. 8025934: 08025949 .word 0x08025949
  93080. 8025938: 080259e3 .word 0x080259e3
  93081. 802593c: 0802594d .word 0x0802594d
  93082. 8025940: 0802596f .word 0x0802596f
  93083. 8025944: 0802599d .word 0x0802599d
  93084. case 0:
  93085. return 0; /* initial nondigit */
  93086. 8025948: 2300 movs r3, #0
  93087. 802594a: e055 b.n 80259f8 <ip4addr_aton+0x23c>
  93088. case 1: /* a -- 32 bits */
  93089. break;
  93090. case 2: /* a.b -- 8.24 bits */
  93091. if (val > 0xffffffUL) {
  93092. 802594c: 6a7b ldr r3, [r7, #36] @ 0x24
  93093. 802594e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  93094. 8025952: d301 bcc.n 8025958 <ip4addr_aton+0x19c>
  93095. return 0;
  93096. 8025954: 2300 movs r3, #0
  93097. 8025956: e04f b.n 80259f8 <ip4addr_aton+0x23c>
  93098. }
  93099. if (parts[0] > 0xff) {
  93100. 8025958: 68fb ldr r3, [r7, #12]
  93101. 802595a: 2bff cmp r3, #255 @ 0xff
  93102. 802595c: d901 bls.n 8025962 <ip4addr_aton+0x1a6>
  93103. return 0;
  93104. 802595e: 2300 movs r3, #0
  93105. 8025960: e04a b.n 80259f8 <ip4addr_aton+0x23c>
  93106. }
  93107. val |= parts[0] << 24;
  93108. 8025962: 68fb ldr r3, [r7, #12]
  93109. 8025964: 061b lsls r3, r3, #24
  93110. 8025966: 6a7a ldr r2, [r7, #36] @ 0x24
  93111. 8025968: 4313 orrs r3, r2
  93112. 802596a: 627b str r3, [r7, #36] @ 0x24
  93113. break;
  93114. 802596c: e03a b.n 80259e4 <ip4addr_aton+0x228>
  93115. case 3: /* a.b.c -- 8.8.16 bits */
  93116. if (val > 0xffff) {
  93117. 802596e: 6a7b ldr r3, [r7, #36] @ 0x24
  93118. 8025970: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  93119. 8025974: d301 bcc.n 802597a <ip4addr_aton+0x1be>
  93120. return 0;
  93121. 8025976: 2300 movs r3, #0
  93122. 8025978: e03e b.n 80259f8 <ip4addr_aton+0x23c>
  93123. }
  93124. if ((parts[0] > 0xff) || (parts[1] > 0xff)) {
  93125. 802597a: 68fb ldr r3, [r7, #12]
  93126. 802597c: 2bff cmp r3, #255 @ 0xff
  93127. 802597e: d802 bhi.n 8025986 <ip4addr_aton+0x1ca>
  93128. 8025980: 693b ldr r3, [r7, #16]
  93129. 8025982: 2bff cmp r3, #255 @ 0xff
  93130. 8025984: d901 bls.n 802598a <ip4addr_aton+0x1ce>
  93131. return 0;
  93132. 8025986: 2300 movs r3, #0
  93133. 8025988: e036 b.n 80259f8 <ip4addr_aton+0x23c>
  93134. }
  93135. val |= (parts[0] << 24) | (parts[1] << 16);
  93136. 802598a: 68fb ldr r3, [r7, #12]
  93137. 802598c: 061a lsls r2, r3, #24
  93138. 802598e: 693b ldr r3, [r7, #16]
  93139. 8025990: 041b lsls r3, r3, #16
  93140. 8025992: 4313 orrs r3, r2
  93141. 8025994: 6a7a ldr r2, [r7, #36] @ 0x24
  93142. 8025996: 4313 orrs r3, r2
  93143. 8025998: 627b str r3, [r7, #36] @ 0x24
  93144. break;
  93145. 802599a: e023 b.n 80259e4 <ip4addr_aton+0x228>
  93146. case 4: /* a.b.c.d -- 8.8.8.8 bits */
  93147. if (val > 0xff) {
  93148. 802599c: 6a7b ldr r3, [r7, #36] @ 0x24
  93149. 802599e: 2bff cmp r3, #255 @ 0xff
  93150. 80259a0: d901 bls.n 80259a6 <ip4addr_aton+0x1ea>
  93151. return 0;
  93152. 80259a2: 2300 movs r3, #0
  93153. 80259a4: e028 b.n 80259f8 <ip4addr_aton+0x23c>
  93154. }
  93155. if ((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) {
  93156. 80259a6: 68fb ldr r3, [r7, #12]
  93157. 80259a8: 2bff cmp r3, #255 @ 0xff
  93158. 80259aa: d805 bhi.n 80259b8 <ip4addr_aton+0x1fc>
  93159. 80259ac: 693b ldr r3, [r7, #16]
  93160. 80259ae: 2bff cmp r3, #255 @ 0xff
  93161. 80259b0: d802 bhi.n 80259b8 <ip4addr_aton+0x1fc>
  93162. 80259b2: 697b ldr r3, [r7, #20]
  93163. 80259b4: 2bff cmp r3, #255 @ 0xff
  93164. 80259b6: d901 bls.n 80259bc <ip4addr_aton+0x200>
  93165. return 0;
  93166. 80259b8: 2300 movs r3, #0
  93167. 80259ba: e01d b.n 80259f8 <ip4addr_aton+0x23c>
  93168. }
  93169. val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
  93170. 80259bc: 68fb ldr r3, [r7, #12]
  93171. 80259be: 061a lsls r2, r3, #24
  93172. 80259c0: 693b ldr r3, [r7, #16]
  93173. 80259c2: 041b lsls r3, r3, #16
  93174. 80259c4: 431a orrs r2, r3
  93175. 80259c6: 697b ldr r3, [r7, #20]
  93176. 80259c8: 021b lsls r3, r3, #8
  93177. 80259ca: 4313 orrs r3, r2
  93178. 80259cc: 6a7a ldr r2, [r7, #36] @ 0x24
  93179. 80259ce: 4313 orrs r3, r2
  93180. 80259d0: 627b str r3, [r7, #36] @ 0x24
  93181. break;
  93182. 80259d2: e007 b.n 80259e4 <ip4addr_aton+0x228>
  93183. default:
  93184. LWIP_ASSERT("unhandled", 0);
  93185. 80259d4: 4b0b ldr r3, [pc, #44] @ (8025a04 <ip4addr_aton+0x248>)
  93186. 80259d6: 22f9 movs r2, #249 @ 0xf9
  93187. 80259d8: 490b ldr r1, [pc, #44] @ (8025a08 <ip4addr_aton+0x24c>)
  93188. 80259da: 480c ldr r0, [pc, #48] @ (8025a0c <ip4addr_aton+0x250>)
  93189. 80259dc: f004 fbee bl 802a1bc <iprintf>
  93190. break;
  93191. 80259e0: e000 b.n 80259e4 <ip4addr_aton+0x228>
  93192. break;
  93193. 80259e2: bf00 nop
  93194. }
  93195. if (addr) {
  93196. 80259e4: 683b ldr r3, [r7, #0]
  93197. 80259e6: 2b00 cmp r3, #0
  93198. 80259e8: d005 beq.n 80259f6 <ip4addr_aton+0x23a>
  93199. ip4_addr_set_u32(addr, lwip_htonl(val));
  93200. 80259ea: 6a78 ldr r0, [r7, #36] @ 0x24
  93201. 80259ec: f7f3 fca1 bl 8019332 <lwip_htonl>
  93202. 80259f0: 4602 mov r2, r0
  93203. 80259f2: 683b ldr r3, [r7, #0]
  93204. 80259f4: 601a str r2, [r3, #0]
  93205. }
  93206. return 1;
  93207. 80259f6: 2301 movs r3, #1
  93208. }
  93209. 80259f8: 4618 mov r0, r3
  93210. 80259fa: 3728 adds r7, #40 @ 0x28
  93211. 80259fc: 46bd mov sp, r7
  93212. 80259fe: bd80 pop {r7, pc}
  93213. 8025a00: 080315d0 .word 0x080315d0
  93214. 8025a04: 08030e90 .word 0x08030e90
  93215. 8025a08: 08030ecc .word 0x08030ecc
  93216. 8025a0c: 08030ed8 .word 0x08030ed8
  93217. 08025a10 <ip4addr_ntoa>:
  93218. * @return pointer to a global static (!) buffer that holds the ASCII
  93219. * representation of addr
  93220. */
  93221. char *
  93222. ip4addr_ntoa(const ip4_addr_t *addr)
  93223. {
  93224. 8025a10: b580 push {r7, lr}
  93225. 8025a12: b082 sub sp, #8
  93226. 8025a14: af00 add r7, sp, #0
  93227. 8025a16: 6078 str r0, [r7, #4]
  93228. static char str[IP4ADDR_STRLEN_MAX];
  93229. return ip4addr_ntoa_r(addr, str, IP4ADDR_STRLEN_MAX);
  93230. 8025a18: 2210 movs r2, #16
  93231. 8025a1a: 4904 ldr r1, [pc, #16] @ (8025a2c <ip4addr_ntoa+0x1c>)
  93232. 8025a1c: 6878 ldr r0, [r7, #4]
  93233. 8025a1e: f000 f807 bl 8025a30 <ip4addr_ntoa_r>
  93234. 8025a22: 4603 mov r3, r0
  93235. }
  93236. 8025a24: 4618 mov r0, r3
  93237. 8025a26: 3708 adds r7, #8
  93238. 8025a28: 46bd mov sp, r7
  93239. 8025a2a: bd80 pop {r7, pc}
  93240. 8025a2c: 2402b0e4 .word 0x2402b0e4
  93241. 08025a30 <ip4addr_ntoa_r>:
  93242. * @return either pointer to buf which now holds the ASCII
  93243. * representation of addr or NULL if buf was too small
  93244. */
  93245. char *
  93246. ip4addr_ntoa_r(const ip4_addr_t *addr, char *buf, int buflen)
  93247. {
  93248. 8025a30: b480 push {r7}
  93249. 8025a32: b08d sub sp, #52 @ 0x34
  93250. 8025a34: af00 add r7, sp, #0
  93251. 8025a36: 60f8 str r0, [r7, #12]
  93252. 8025a38: 60b9 str r1, [r7, #8]
  93253. 8025a3a: 607a str r2, [r7, #4]
  93254. char *rp;
  93255. u8_t *ap;
  93256. u8_t rem;
  93257. u8_t n;
  93258. u8_t i;
  93259. int len = 0;
  93260. 8025a3c: 2300 movs r3, #0
  93261. 8025a3e: 623b str r3, [r7, #32]
  93262. s_addr = ip4_addr_get_u32(addr);
  93263. 8025a40: 68fb ldr r3, [r7, #12]
  93264. 8025a42: 681b ldr r3, [r3, #0]
  93265. 8025a44: 61bb str r3, [r7, #24]
  93266. rp = buf;
  93267. 8025a46: 68bb ldr r3, [r7, #8]
  93268. 8025a48: 62fb str r3, [r7, #44] @ 0x2c
  93269. ap = (u8_t *)&s_addr;
  93270. 8025a4a: f107 0318 add.w r3, r7, #24
  93271. 8025a4e: 62bb str r3, [r7, #40] @ 0x28
  93272. for (n = 0; n < 4; n++) {
  93273. 8025a50: 2300 movs r3, #0
  93274. 8025a52: f887 3027 strb.w r3, [r7, #39] @ 0x27
  93275. 8025a56: e058 b.n 8025b0a <ip4addr_ntoa_r+0xda>
  93276. i = 0;
  93277. 8025a58: 2300 movs r3, #0
  93278. 8025a5a: f887 3026 strb.w r3, [r7, #38] @ 0x26
  93279. do {
  93280. rem = *ap % (u8_t)10;
  93281. 8025a5e: 6abb ldr r3, [r7, #40] @ 0x28
  93282. 8025a60: 781a ldrb r2, [r3, #0]
  93283. 8025a62: 4b32 ldr r3, [pc, #200] @ (8025b2c <ip4addr_ntoa_r+0xfc>)
  93284. 8025a64: fba3 1302 umull r1, r3, r3, r2
  93285. 8025a68: 08d9 lsrs r1, r3, #3
  93286. 8025a6a: 460b mov r3, r1
  93287. 8025a6c: 009b lsls r3, r3, #2
  93288. 8025a6e: 440b add r3, r1
  93289. 8025a70: 005b lsls r3, r3, #1
  93290. 8025a72: 1ad3 subs r3, r2, r3
  93291. 8025a74: 77fb strb r3, [r7, #31]
  93292. *ap /= (u8_t)10;
  93293. 8025a76: 6abb ldr r3, [r7, #40] @ 0x28
  93294. 8025a78: 781b ldrb r3, [r3, #0]
  93295. 8025a7a: 4a2c ldr r2, [pc, #176] @ (8025b2c <ip4addr_ntoa_r+0xfc>)
  93296. 8025a7c: fba2 2303 umull r2, r3, r2, r3
  93297. 8025a80: 08db lsrs r3, r3, #3
  93298. 8025a82: b2da uxtb r2, r3
  93299. 8025a84: 6abb ldr r3, [r7, #40] @ 0x28
  93300. 8025a86: 701a strb r2, [r3, #0]
  93301. inv[i++] = (char)('0' + rem);
  93302. 8025a88: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  93303. 8025a8c: 1c5a adds r2, r3, #1
  93304. 8025a8e: f887 2026 strb.w r2, [r7, #38] @ 0x26
  93305. 8025a92: 4619 mov r1, r3
  93306. 8025a94: 7ffb ldrb r3, [r7, #31]
  93307. 8025a96: 3330 adds r3, #48 @ 0x30
  93308. 8025a98: b2da uxtb r2, r3
  93309. 8025a9a: f101 0330 add.w r3, r1, #48 @ 0x30
  93310. 8025a9e: 443b add r3, r7
  93311. 8025aa0: f803 2c1c strb.w r2, [r3, #-28]
  93312. } while (*ap);
  93313. 8025aa4: 6abb ldr r3, [r7, #40] @ 0x28
  93314. 8025aa6: 781b ldrb r3, [r3, #0]
  93315. 8025aa8: 2b00 cmp r3, #0
  93316. 8025aaa: d1d8 bne.n 8025a5e <ip4addr_ntoa_r+0x2e>
  93317. while (i--) {
  93318. 8025aac: e011 b.n 8025ad2 <ip4addr_ntoa_r+0xa2>
  93319. if (len++ >= buflen) {
  93320. 8025aae: 6a3b ldr r3, [r7, #32]
  93321. 8025ab0: 1c5a adds r2, r3, #1
  93322. 8025ab2: 623a str r2, [r7, #32]
  93323. 8025ab4: 687a ldr r2, [r7, #4]
  93324. 8025ab6: 429a cmp r2, r3
  93325. 8025ab8: dc01 bgt.n 8025abe <ip4addr_ntoa_r+0x8e>
  93326. return NULL;
  93327. 8025aba: 2300 movs r3, #0
  93328. 8025abc: e030 b.n 8025b20 <ip4addr_ntoa_r+0xf0>
  93329. }
  93330. *rp++ = inv[i];
  93331. 8025abe: f897 2026 ldrb.w r2, [r7, #38] @ 0x26
  93332. 8025ac2: 6afb ldr r3, [r7, #44] @ 0x2c
  93333. 8025ac4: 1c59 adds r1, r3, #1
  93334. 8025ac6: 62f9 str r1, [r7, #44] @ 0x2c
  93335. 8025ac8: 3230 adds r2, #48 @ 0x30
  93336. 8025aca: 443a add r2, r7
  93337. 8025acc: f812 2c1c ldrb.w r2, [r2, #-28]
  93338. 8025ad0: 701a strb r2, [r3, #0]
  93339. while (i--) {
  93340. 8025ad2: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  93341. 8025ad6: 1e5a subs r2, r3, #1
  93342. 8025ad8: f887 2026 strb.w r2, [r7, #38] @ 0x26
  93343. 8025adc: 2b00 cmp r3, #0
  93344. 8025ade: d1e6 bne.n 8025aae <ip4addr_ntoa_r+0x7e>
  93345. }
  93346. if (len++ >= buflen) {
  93347. 8025ae0: 6a3b ldr r3, [r7, #32]
  93348. 8025ae2: 1c5a adds r2, r3, #1
  93349. 8025ae4: 623a str r2, [r7, #32]
  93350. 8025ae6: 687a ldr r2, [r7, #4]
  93351. 8025ae8: 429a cmp r2, r3
  93352. 8025aea: dc01 bgt.n 8025af0 <ip4addr_ntoa_r+0xc0>
  93353. return NULL;
  93354. 8025aec: 2300 movs r3, #0
  93355. 8025aee: e017 b.n 8025b20 <ip4addr_ntoa_r+0xf0>
  93356. }
  93357. *rp++ = '.';
  93358. 8025af0: 6afb ldr r3, [r7, #44] @ 0x2c
  93359. 8025af2: 1c5a adds r2, r3, #1
  93360. 8025af4: 62fa str r2, [r7, #44] @ 0x2c
  93361. 8025af6: 222e movs r2, #46 @ 0x2e
  93362. 8025af8: 701a strb r2, [r3, #0]
  93363. ap++;
  93364. 8025afa: 6abb ldr r3, [r7, #40] @ 0x28
  93365. 8025afc: 3301 adds r3, #1
  93366. 8025afe: 62bb str r3, [r7, #40] @ 0x28
  93367. for (n = 0; n < 4; n++) {
  93368. 8025b00: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  93369. 8025b04: 3301 adds r3, #1
  93370. 8025b06: f887 3027 strb.w r3, [r7, #39] @ 0x27
  93371. 8025b0a: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  93372. 8025b0e: 2b03 cmp r3, #3
  93373. 8025b10: d9a2 bls.n 8025a58 <ip4addr_ntoa_r+0x28>
  93374. }
  93375. *--rp = 0;
  93376. 8025b12: 6afb ldr r3, [r7, #44] @ 0x2c
  93377. 8025b14: 3b01 subs r3, #1
  93378. 8025b16: 62fb str r3, [r7, #44] @ 0x2c
  93379. 8025b18: 6afb ldr r3, [r7, #44] @ 0x2c
  93380. 8025b1a: 2200 movs r2, #0
  93381. 8025b1c: 701a strb r2, [r3, #0]
  93382. return buf;
  93383. 8025b1e: 68bb ldr r3, [r7, #8]
  93384. }
  93385. 8025b20: 4618 mov r0, r3
  93386. 8025b22: 3734 adds r7, #52 @ 0x34
  93387. 8025b24: 46bd mov sp, r7
  93388. 8025b26: f85d 7b04 ldr.w r7, [sp], #4
  93389. 8025b2a: 4770 bx lr
  93390. 8025b2c: cccccccd .word 0xcccccccd
  93391. 08025b30 <ip_reass_tmr>:
  93392. *
  93393. * Should be called every 1000 msec (defined by IP_TMR_INTERVAL).
  93394. */
  93395. void
  93396. ip_reass_tmr(void)
  93397. {
  93398. 8025b30: b580 push {r7, lr}
  93399. 8025b32: b084 sub sp, #16
  93400. 8025b34: af00 add r7, sp, #0
  93401. struct ip_reassdata *r, *prev = NULL;
  93402. 8025b36: 2300 movs r3, #0
  93403. 8025b38: 60bb str r3, [r7, #8]
  93404. r = reassdatagrams;
  93405. 8025b3a: 4b12 ldr r3, [pc, #72] @ (8025b84 <ip_reass_tmr+0x54>)
  93406. 8025b3c: 681b ldr r3, [r3, #0]
  93407. 8025b3e: 60fb str r3, [r7, #12]
  93408. while (r != NULL) {
  93409. 8025b40: e018 b.n 8025b74 <ip_reass_tmr+0x44>
  93410. /* Decrement the timer. Once it reaches 0,
  93411. * clean up the incomplete fragment assembly */
  93412. if (r->timer > 0) {
  93413. 8025b42: 68fb ldr r3, [r7, #12]
  93414. 8025b44: 7fdb ldrb r3, [r3, #31]
  93415. 8025b46: 2b00 cmp r3, #0
  93416. 8025b48: d00b beq.n 8025b62 <ip_reass_tmr+0x32>
  93417. r->timer--;
  93418. 8025b4a: 68fb ldr r3, [r7, #12]
  93419. 8025b4c: 7fdb ldrb r3, [r3, #31]
  93420. 8025b4e: 3b01 subs r3, #1
  93421. 8025b50: b2da uxtb r2, r3
  93422. 8025b52: 68fb ldr r3, [r7, #12]
  93423. 8025b54: 77da strb r2, [r3, #31]
  93424. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer));
  93425. prev = r;
  93426. 8025b56: 68fb ldr r3, [r7, #12]
  93427. 8025b58: 60bb str r3, [r7, #8]
  93428. r = r->next;
  93429. 8025b5a: 68fb ldr r3, [r7, #12]
  93430. 8025b5c: 681b ldr r3, [r3, #0]
  93431. 8025b5e: 60fb str r3, [r7, #12]
  93432. 8025b60: e008 b.n 8025b74 <ip_reass_tmr+0x44>
  93433. } else {
  93434. /* reassembly timed out */
  93435. struct ip_reassdata *tmp;
  93436. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n"));
  93437. tmp = r;
  93438. 8025b62: 68fb ldr r3, [r7, #12]
  93439. 8025b64: 607b str r3, [r7, #4]
  93440. /* get the next pointer before freeing */
  93441. r = r->next;
  93442. 8025b66: 68fb ldr r3, [r7, #12]
  93443. 8025b68: 681b ldr r3, [r3, #0]
  93444. 8025b6a: 60fb str r3, [r7, #12]
  93445. /* free the helper struct and all enqueued pbufs */
  93446. ip_reass_free_complete_datagram(tmp, prev);
  93447. 8025b6c: 68b9 ldr r1, [r7, #8]
  93448. 8025b6e: 6878 ldr r0, [r7, #4]
  93449. 8025b70: f000 f80a bl 8025b88 <ip_reass_free_complete_datagram>
  93450. while (r != NULL) {
  93451. 8025b74: 68fb ldr r3, [r7, #12]
  93452. 8025b76: 2b00 cmp r3, #0
  93453. 8025b78: d1e3 bne.n 8025b42 <ip_reass_tmr+0x12>
  93454. }
  93455. }
  93456. }
  93457. 8025b7a: bf00 nop
  93458. 8025b7c: bf00 nop
  93459. 8025b7e: 3710 adds r7, #16
  93460. 8025b80: 46bd mov sp, r7
  93461. 8025b82: bd80 pop {r7, pc}
  93462. 8025b84: 2402b0f4 .word 0x2402b0f4
  93463. 08025b88 <ip_reass_free_complete_datagram>:
  93464. * @param prev the previous datagram in the linked list
  93465. * @return the number of pbufs freed
  93466. */
  93467. static int
  93468. ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  93469. {
  93470. 8025b88: b580 push {r7, lr}
  93471. 8025b8a: b088 sub sp, #32
  93472. 8025b8c: af00 add r7, sp, #0
  93473. 8025b8e: 6078 str r0, [r7, #4]
  93474. 8025b90: 6039 str r1, [r7, #0]
  93475. u16_t pbufs_freed = 0;
  93476. 8025b92: 2300 movs r3, #0
  93477. 8025b94: 83fb strh r3, [r7, #30]
  93478. u16_t clen;
  93479. struct pbuf *p;
  93480. struct ip_reass_helper *iprh;
  93481. LWIP_ASSERT("prev != ipr", prev != ipr);
  93482. 8025b96: 683a ldr r2, [r7, #0]
  93483. 8025b98: 687b ldr r3, [r7, #4]
  93484. 8025b9a: 429a cmp r2, r3
  93485. 8025b9c: d105 bne.n 8025baa <ip_reass_free_complete_datagram+0x22>
  93486. 8025b9e: 4b45 ldr r3, [pc, #276] @ (8025cb4 <ip_reass_free_complete_datagram+0x12c>)
  93487. 8025ba0: 22ab movs r2, #171 @ 0xab
  93488. 8025ba2: 4945 ldr r1, [pc, #276] @ (8025cb8 <ip_reass_free_complete_datagram+0x130>)
  93489. 8025ba4: 4845 ldr r0, [pc, #276] @ (8025cbc <ip_reass_free_complete_datagram+0x134>)
  93490. 8025ba6: f004 fb09 bl 802a1bc <iprintf>
  93491. if (prev != NULL) {
  93492. 8025baa: 683b ldr r3, [r7, #0]
  93493. 8025bac: 2b00 cmp r3, #0
  93494. 8025bae: d00a beq.n 8025bc6 <ip_reass_free_complete_datagram+0x3e>
  93495. LWIP_ASSERT("prev->next == ipr", prev->next == ipr);
  93496. 8025bb0: 683b ldr r3, [r7, #0]
  93497. 8025bb2: 681b ldr r3, [r3, #0]
  93498. 8025bb4: 687a ldr r2, [r7, #4]
  93499. 8025bb6: 429a cmp r2, r3
  93500. 8025bb8: d005 beq.n 8025bc6 <ip_reass_free_complete_datagram+0x3e>
  93501. 8025bba: 4b3e ldr r3, [pc, #248] @ (8025cb4 <ip_reass_free_complete_datagram+0x12c>)
  93502. 8025bbc: 22ad movs r2, #173 @ 0xad
  93503. 8025bbe: 4940 ldr r1, [pc, #256] @ (8025cc0 <ip_reass_free_complete_datagram+0x138>)
  93504. 8025bc0: 483e ldr r0, [pc, #248] @ (8025cbc <ip_reass_free_complete_datagram+0x134>)
  93505. 8025bc2: f004 fafb bl 802a1bc <iprintf>
  93506. }
  93507. MIB2_STATS_INC(mib2.ipreasmfails);
  93508. #if LWIP_ICMP
  93509. iprh = (struct ip_reass_helper *)ipr->p->payload;
  93510. 8025bc6: 687b ldr r3, [r7, #4]
  93511. 8025bc8: 685b ldr r3, [r3, #4]
  93512. 8025bca: 685b ldr r3, [r3, #4]
  93513. 8025bcc: 617b str r3, [r7, #20]
  93514. if (iprh->start == 0) {
  93515. 8025bce: 697b ldr r3, [r7, #20]
  93516. 8025bd0: 889b ldrh r3, [r3, #4]
  93517. 8025bd2: b29b uxth r3, r3
  93518. 8025bd4: 2b00 cmp r3, #0
  93519. 8025bd6: d12a bne.n 8025c2e <ip_reass_free_complete_datagram+0xa6>
  93520. /* The first fragment was received, send ICMP time exceeded. */
  93521. /* First, de-queue the first pbuf from r->p. */
  93522. p = ipr->p;
  93523. 8025bd8: 687b ldr r3, [r7, #4]
  93524. 8025bda: 685b ldr r3, [r3, #4]
  93525. 8025bdc: 61bb str r3, [r7, #24]
  93526. ipr->p = iprh->next_pbuf;
  93527. 8025bde: 697b ldr r3, [r7, #20]
  93528. 8025be0: 681a ldr r2, [r3, #0]
  93529. 8025be2: 687b ldr r3, [r7, #4]
  93530. 8025be4: 605a str r2, [r3, #4]
  93531. /* Then, copy the original header into it. */
  93532. SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
  93533. 8025be6: 69bb ldr r3, [r7, #24]
  93534. 8025be8: 6858 ldr r0, [r3, #4]
  93535. 8025bea: 687b ldr r3, [r7, #4]
  93536. 8025bec: 3308 adds r3, #8
  93537. 8025bee: 2214 movs r2, #20
  93538. 8025bf0: 4619 mov r1, r3
  93539. 8025bf2: f004 fd6c bl 802a6ce <memcpy>
  93540. icmp_time_exceeded(p, ICMP_TE_FRAG);
  93541. 8025bf6: 2101 movs r1, #1
  93542. 8025bf8: 69b8 ldr r0, [r7, #24]
  93543. 8025bfa: f7ff fa4d bl 8025098 <icmp_time_exceeded>
  93544. clen = pbuf_clen(p);
  93545. 8025bfe: 69b8 ldr r0, [r7, #24]
  93546. 8025c00: f7f5 f8f2 bl 801ade8 <pbuf_clen>
  93547. 8025c04: 4603 mov r3, r0
  93548. 8025c06: 827b strh r3, [r7, #18]
  93549. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  93550. 8025c08: 8bfa ldrh r2, [r7, #30]
  93551. 8025c0a: 8a7b ldrh r3, [r7, #18]
  93552. 8025c0c: 4413 add r3, r2
  93553. 8025c0e: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  93554. 8025c12: db05 blt.n 8025c20 <ip_reass_free_complete_datagram+0x98>
  93555. 8025c14: 4b27 ldr r3, [pc, #156] @ (8025cb4 <ip_reass_free_complete_datagram+0x12c>)
  93556. 8025c16: 22bc movs r2, #188 @ 0xbc
  93557. 8025c18: 492a ldr r1, [pc, #168] @ (8025cc4 <ip_reass_free_complete_datagram+0x13c>)
  93558. 8025c1a: 4828 ldr r0, [pc, #160] @ (8025cbc <ip_reass_free_complete_datagram+0x134>)
  93559. 8025c1c: f004 face bl 802a1bc <iprintf>
  93560. pbufs_freed = (u16_t)(pbufs_freed + clen);
  93561. 8025c20: 8bfa ldrh r2, [r7, #30]
  93562. 8025c22: 8a7b ldrh r3, [r7, #18]
  93563. 8025c24: 4413 add r3, r2
  93564. 8025c26: 83fb strh r3, [r7, #30]
  93565. pbuf_free(p);
  93566. 8025c28: 69b8 ldr r0, [r7, #24]
  93567. 8025c2a: f7f5 f84f bl 801accc <pbuf_free>
  93568. }
  93569. #endif /* LWIP_ICMP */
  93570. /* First, free all received pbufs. The individual pbufs need to be released
  93571. separately as they have not yet been chained */
  93572. p = ipr->p;
  93573. 8025c2e: 687b ldr r3, [r7, #4]
  93574. 8025c30: 685b ldr r3, [r3, #4]
  93575. 8025c32: 61bb str r3, [r7, #24]
  93576. while (p != NULL) {
  93577. 8025c34: e01f b.n 8025c76 <ip_reass_free_complete_datagram+0xee>
  93578. struct pbuf *pcur;
  93579. iprh = (struct ip_reass_helper *)p->payload;
  93580. 8025c36: 69bb ldr r3, [r7, #24]
  93581. 8025c38: 685b ldr r3, [r3, #4]
  93582. 8025c3a: 617b str r3, [r7, #20]
  93583. pcur = p;
  93584. 8025c3c: 69bb ldr r3, [r7, #24]
  93585. 8025c3e: 60fb str r3, [r7, #12]
  93586. /* get the next pointer before freeing */
  93587. p = iprh->next_pbuf;
  93588. 8025c40: 697b ldr r3, [r7, #20]
  93589. 8025c42: 681b ldr r3, [r3, #0]
  93590. 8025c44: 61bb str r3, [r7, #24]
  93591. clen = pbuf_clen(pcur);
  93592. 8025c46: 68f8 ldr r0, [r7, #12]
  93593. 8025c48: f7f5 f8ce bl 801ade8 <pbuf_clen>
  93594. 8025c4c: 4603 mov r3, r0
  93595. 8025c4e: 827b strh r3, [r7, #18]
  93596. LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff);
  93597. 8025c50: 8bfa ldrh r2, [r7, #30]
  93598. 8025c52: 8a7b ldrh r3, [r7, #18]
  93599. 8025c54: 4413 add r3, r2
  93600. 8025c56: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  93601. 8025c5a: db05 blt.n 8025c68 <ip_reass_free_complete_datagram+0xe0>
  93602. 8025c5c: 4b15 ldr r3, [pc, #84] @ (8025cb4 <ip_reass_free_complete_datagram+0x12c>)
  93603. 8025c5e: 22cc movs r2, #204 @ 0xcc
  93604. 8025c60: 4918 ldr r1, [pc, #96] @ (8025cc4 <ip_reass_free_complete_datagram+0x13c>)
  93605. 8025c62: 4816 ldr r0, [pc, #88] @ (8025cbc <ip_reass_free_complete_datagram+0x134>)
  93606. 8025c64: f004 faaa bl 802a1bc <iprintf>
  93607. pbufs_freed = (u16_t)(pbufs_freed + clen);
  93608. 8025c68: 8bfa ldrh r2, [r7, #30]
  93609. 8025c6a: 8a7b ldrh r3, [r7, #18]
  93610. 8025c6c: 4413 add r3, r2
  93611. 8025c6e: 83fb strh r3, [r7, #30]
  93612. pbuf_free(pcur);
  93613. 8025c70: 68f8 ldr r0, [r7, #12]
  93614. 8025c72: f7f5 f82b bl 801accc <pbuf_free>
  93615. while (p != NULL) {
  93616. 8025c76: 69bb ldr r3, [r7, #24]
  93617. 8025c78: 2b00 cmp r3, #0
  93618. 8025c7a: d1dc bne.n 8025c36 <ip_reass_free_complete_datagram+0xae>
  93619. }
  93620. /* Then, unchain the struct ip_reassdata from the list and free it. */
  93621. ip_reass_dequeue_datagram(ipr, prev);
  93622. 8025c7c: 6839 ldr r1, [r7, #0]
  93623. 8025c7e: 6878 ldr r0, [r7, #4]
  93624. 8025c80: f000 f8c2 bl 8025e08 <ip_reass_dequeue_datagram>
  93625. LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed);
  93626. 8025c84: 4b10 ldr r3, [pc, #64] @ (8025cc8 <ip_reass_free_complete_datagram+0x140>)
  93627. 8025c86: 881b ldrh r3, [r3, #0]
  93628. 8025c88: 8bfa ldrh r2, [r7, #30]
  93629. 8025c8a: 429a cmp r2, r3
  93630. 8025c8c: d905 bls.n 8025c9a <ip_reass_free_complete_datagram+0x112>
  93631. 8025c8e: 4b09 ldr r3, [pc, #36] @ (8025cb4 <ip_reass_free_complete_datagram+0x12c>)
  93632. 8025c90: 22d2 movs r2, #210 @ 0xd2
  93633. 8025c92: 490e ldr r1, [pc, #56] @ (8025ccc <ip_reass_free_complete_datagram+0x144>)
  93634. 8025c94: 4809 ldr r0, [pc, #36] @ (8025cbc <ip_reass_free_complete_datagram+0x134>)
  93635. 8025c96: f004 fa91 bl 802a1bc <iprintf>
  93636. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed);
  93637. 8025c9a: 4b0b ldr r3, [pc, #44] @ (8025cc8 <ip_reass_free_complete_datagram+0x140>)
  93638. 8025c9c: 881a ldrh r2, [r3, #0]
  93639. 8025c9e: 8bfb ldrh r3, [r7, #30]
  93640. 8025ca0: 1ad3 subs r3, r2, r3
  93641. 8025ca2: b29a uxth r2, r3
  93642. 8025ca4: 4b08 ldr r3, [pc, #32] @ (8025cc8 <ip_reass_free_complete_datagram+0x140>)
  93643. 8025ca6: 801a strh r2, [r3, #0]
  93644. return pbufs_freed;
  93645. 8025ca8: 8bfb ldrh r3, [r7, #30]
  93646. }
  93647. 8025caa: 4618 mov r0, r3
  93648. 8025cac: 3720 adds r7, #32
  93649. 8025cae: 46bd mov sp, r7
  93650. 8025cb0: bd80 pop {r7, pc}
  93651. 8025cb2: bf00 nop
  93652. 8025cb4: 08030f00 .word 0x08030f00
  93653. 8025cb8: 08030f3c .word 0x08030f3c
  93654. 8025cbc: 08030f48 .word 0x08030f48
  93655. 8025cc0: 08030f70 .word 0x08030f70
  93656. 8025cc4: 08030f84 .word 0x08030f84
  93657. 8025cc8: 2402b0f8 .word 0x2402b0f8
  93658. 8025ccc: 08030fa4 .word 0x08030fa4
  93659. 08025cd0 <ip_reass_remove_oldest_datagram>:
  93660. * (used for freeing other datagrams if not enough space)
  93661. * @return the number of pbufs freed
  93662. */
  93663. static int
  93664. ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed)
  93665. {
  93666. 8025cd0: b580 push {r7, lr}
  93667. 8025cd2: b08a sub sp, #40 @ 0x28
  93668. 8025cd4: af00 add r7, sp, #0
  93669. 8025cd6: 6078 str r0, [r7, #4]
  93670. 8025cd8: 6039 str r1, [r7, #0]
  93671. /* @todo Can't we simply remove the last datagram in the
  93672. * linked list behind reassdatagrams?
  93673. */
  93674. struct ip_reassdata *r, *oldest, *prev, *oldest_prev;
  93675. int pbufs_freed = 0, pbufs_freed_current;
  93676. 8025cda: 2300 movs r3, #0
  93677. 8025cdc: 617b str r3, [r7, #20]
  93678. int other_datagrams;
  93679. /* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs,
  93680. * but don't free the datagram that 'fraghdr' belongs to! */
  93681. do {
  93682. oldest = NULL;
  93683. 8025cde: 2300 movs r3, #0
  93684. 8025ce0: 623b str r3, [r7, #32]
  93685. prev = NULL;
  93686. 8025ce2: 2300 movs r3, #0
  93687. 8025ce4: 61fb str r3, [r7, #28]
  93688. oldest_prev = NULL;
  93689. 8025ce6: 2300 movs r3, #0
  93690. 8025ce8: 61bb str r3, [r7, #24]
  93691. other_datagrams = 0;
  93692. 8025cea: 2300 movs r3, #0
  93693. 8025cec: 613b str r3, [r7, #16]
  93694. r = reassdatagrams;
  93695. 8025cee: 4b28 ldr r3, [pc, #160] @ (8025d90 <ip_reass_remove_oldest_datagram+0xc0>)
  93696. 8025cf0: 681b ldr r3, [r3, #0]
  93697. 8025cf2: 627b str r3, [r7, #36] @ 0x24
  93698. while (r != NULL) {
  93699. 8025cf4: e030 b.n 8025d58 <ip_reass_remove_oldest_datagram+0x88>
  93700. if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) {
  93701. 8025cf6: 6a7b ldr r3, [r7, #36] @ 0x24
  93702. 8025cf8: 695a ldr r2, [r3, #20]
  93703. 8025cfa: 687b ldr r3, [r7, #4]
  93704. 8025cfc: 68db ldr r3, [r3, #12]
  93705. 8025cfe: 429a cmp r2, r3
  93706. 8025d00: d10c bne.n 8025d1c <ip_reass_remove_oldest_datagram+0x4c>
  93707. 8025d02: 6a7b ldr r3, [r7, #36] @ 0x24
  93708. 8025d04: 699a ldr r2, [r3, #24]
  93709. 8025d06: 687b ldr r3, [r7, #4]
  93710. 8025d08: 691b ldr r3, [r3, #16]
  93711. 8025d0a: 429a cmp r2, r3
  93712. 8025d0c: d106 bne.n 8025d1c <ip_reass_remove_oldest_datagram+0x4c>
  93713. 8025d0e: 6a7b ldr r3, [r7, #36] @ 0x24
  93714. 8025d10: 899a ldrh r2, [r3, #12]
  93715. 8025d12: 687b ldr r3, [r7, #4]
  93716. 8025d14: 889b ldrh r3, [r3, #4]
  93717. 8025d16: b29b uxth r3, r3
  93718. 8025d18: 429a cmp r2, r3
  93719. 8025d1a: d014 beq.n 8025d46 <ip_reass_remove_oldest_datagram+0x76>
  93720. /* Not the same datagram as fraghdr */
  93721. other_datagrams++;
  93722. 8025d1c: 693b ldr r3, [r7, #16]
  93723. 8025d1e: 3301 adds r3, #1
  93724. 8025d20: 613b str r3, [r7, #16]
  93725. if (oldest == NULL) {
  93726. 8025d22: 6a3b ldr r3, [r7, #32]
  93727. 8025d24: 2b00 cmp r3, #0
  93728. 8025d26: d104 bne.n 8025d32 <ip_reass_remove_oldest_datagram+0x62>
  93729. oldest = r;
  93730. 8025d28: 6a7b ldr r3, [r7, #36] @ 0x24
  93731. 8025d2a: 623b str r3, [r7, #32]
  93732. oldest_prev = prev;
  93733. 8025d2c: 69fb ldr r3, [r7, #28]
  93734. 8025d2e: 61bb str r3, [r7, #24]
  93735. 8025d30: e009 b.n 8025d46 <ip_reass_remove_oldest_datagram+0x76>
  93736. } else if (r->timer <= oldest->timer) {
  93737. 8025d32: 6a7b ldr r3, [r7, #36] @ 0x24
  93738. 8025d34: 7fda ldrb r2, [r3, #31]
  93739. 8025d36: 6a3b ldr r3, [r7, #32]
  93740. 8025d38: 7fdb ldrb r3, [r3, #31]
  93741. 8025d3a: 429a cmp r2, r3
  93742. 8025d3c: d803 bhi.n 8025d46 <ip_reass_remove_oldest_datagram+0x76>
  93743. /* older than the previous oldest */
  93744. oldest = r;
  93745. 8025d3e: 6a7b ldr r3, [r7, #36] @ 0x24
  93746. 8025d40: 623b str r3, [r7, #32]
  93747. oldest_prev = prev;
  93748. 8025d42: 69fb ldr r3, [r7, #28]
  93749. 8025d44: 61bb str r3, [r7, #24]
  93750. }
  93751. }
  93752. if (r->next != NULL) {
  93753. 8025d46: 6a7b ldr r3, [r7, #36] @ 0x24
  93754. 8025d48: 681b ldr r3, [r3, #0]
  93755. 8025d4a: 2b00 cmp r3, #0
  93756. 8025d4c: d001 beq.n 8025d52 <ip_reass_remove_oldest_datagram+0x82>
  93757. prev = r;
  93758. 8025d4e: 6a7b ldr r3, [r7, #36] @ 0x24
  93759. 8025d50: 61fb str r3, [r7, #28]
  93760. }
  93761. r = r->next;
  93762. 8025d52: 6a7b ldr r3, [r7, #36] @ 0x24
  93763. 8025d54: 681b ldr r3, [r3, #0]
  93764. 8025d56: 627b str r3, [r7, #36] @ 0x24
  93765. while (r != NULL) {
  93766. 8025d58: 6a7b ldr r3, [r7, #36] @ 0x24
  93767. 8025d5a: 2b00 cmp r3, #0
  93768. 8025d5c: d1cb bne.n 8025cf6 <ip_reass_remove_oldest_datagram+0x26>
  93769. }
  93770. if (oldest != NULL) {
  93771. 8025d5e: 6a3b ldr r3, [r7, #32]
  93772. 8025d60: 2b00 cmp r3, #0
  93773. 8025d62: d008 beq.n 8025d76 <ip_reass_remove_oldest_datagram+0xa6>
  93774. pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev);
  93775. 8025d64: 69b9 ldr r1, [r7, #24]
  93776. 8025d66: 6a38 ldr r0, [r7, #32]
  93777. 8025d68: f7ff ff0e bl 8025b88 <ip_reass_free_complete_datagram>
  93778. 8025d6c: 60f8 str r0, [r7, #12]
  93779. pbufs_freed += pbufs_freed_current;
  93780. 8025d6e: 697a ldr r2, [r7, #20]
  93781. 8025d70: 68fb ldr r3, [r7, #12]
  93782. 8025d72: 4413 add r3, r2
  93783. 8025d74: 617b str r3, [r7, #20]
  93784. }
  93785. } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1));
  93786. 8025d76: 697a ldr r2, [r7, #20]
  93787. 8025d78: 683b ldr r3, [r7, #0]
  93788. 8025d7a: 429a cmp r2, r3
  93789. 8025d7c: da02 bge.n 8025d84 <ip_reass_remove_oldest_datagram+0xb4>
  93790. 8025d7e: 693b ldr r3, [r7, #16]
  93791. 8025d80: 2b01 cmp r3, #1
  93792. 8025d82: dcac bgt.n 8025cde <ip_reass_remove_oldest_datagram+0xe>
  93793. return pbufs_freed;
  93794. 8025d84: 697b ldr r3, [r7, #20]
  93795. }
  93796. 8025d86: 4618 mov r0, r3
  93797. 8025d88: 3728 adds r7, #40 @ 0x28
  93798. 8025d8a: 46bd mov sp, r7
  93799. 8025d8c: bd80 pop {r7, pc}
  93800. 8025d8e: bf00 nop
  93801. 8025d90: 2402b0f4 .word 0x2402b0f4
  93802. 08025d94 <ip_reass_enqueue_new_datagram>:
  93803. * @param clen number of pbufs needed to enqueue (used for freeing other datagrams if not enough space)
  93804. * @return A pointer to the queue location into which the fragment was enqueued
  93805. */
  93806. static struct ip_reassdata *
  93807. ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen)
  93808. {
  93809. 8025d94: b580 push {r7, lr}
  93810. 8025d96: b084 sub sp, #16
  93811. 8025d98: af00 add r7, sp, #0
  93812. 8025d9a: 6078 str r0, [r7, #4]
  93813. 8025d9c: 6039 str r1, [r7, #0]
  93814. #if ! IP_REASS_FREE_OLDEST
  93815. LWIP_UNUSED_ARG(clen);
  93816. #endif
  93817. /* No matching previous fragment found, allocate a new reassdata struct */
  93818. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  93819. 8025d9e: 2004 movs r0, #4
  93820. 8025da0: f7f4 f830 bl 8019e04 <memp_malloc>
  93821. 8025da4: 60f8 str r0, [r7, #12]
  93822. if (ipr == NULL) {
  93823. 8025da6: 68fb ldr r3, [r7, #12]
  93824. 8025da8: 2b00 cmp r3, #0
  93825. 8025daa: d110 bne.n 8025dce <ip_reass_enqueue_new_datagram+0x3a>
  93826. #if IP_REASS_FREE_OLDEST
  93827. if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) {
  93828. 8025dac: 6839 ldr r1, [r7, #0]
  93829. 8025dae: 6878 ldr r0, [r7, #4]
  93830. 8025db0: f7ff ff8e bl 8025cd0 <ip_reass_remove_oldest_datagram>
  93831. 8025db4: 4602 mov r2, r0
  93832. 8025db6: 683b ldr r3, [r7, #0]
  93833. 8025db8: 4293 cmp r3, r2
  93834. 8025dba: dc03 bgt.n 8025dc4 <ip_reass_enqueue_new_datagram+0x30>
  93835. ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA);
  93836. 8025dbc: 2004 movs r0, #4
  93837. 8025dbe: f7f4 f821 bl 8019e04 <memp_malloc>
  93838. 8025dc2: 60f8 str r0, [r7, #12]
  93839. }
  93840. if (ipr == NULL)
  93841. 8025dc4: 68fb ldr r3, [r7, #12]
  93842. 8025dc6: 2b00 cmp r3, #0
  93843. 8025dc8: d101 bne.n 8025dce <ip_reass_enqueue_new_datagram+0x3a>
  93844. #endif /* IP_REASS_FREE_OLDEST */
  93845. {
  93846. IPFRAG_STATS_INC(ip_frag.memerr);
  93847. LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n"));
  93848. return NULL;
  93849. 8025dca: 2300 movs r3, #0
  93850. 8025dcc: e016 b.n 8025dfc <ip_reass_enqueue_new_datagram+0x68>
  93851. }
  93852. }
  93853. memset(ipr, 0, sizeof(struct ip_reassdata));
  93854. 8025dce: 2220 movs r2, #32
  93855. 8025dd0: 2100 movs r1, #0
  93856. 8025dd2: 68f8 ldr r0, [r7, #12]
  93857. 8025dd4: f004 fb84 bl 802a4e0 <memset>
  93858. ipr->timer = IP_REASS_MAXAGE;
  93859. 8025dd8: 68fb ldr r3, [r7, #12]
  93860. 8025dda: 220f movs r2, #15
  93861. 8025ddc: 77da strb r2, [r3, #31]
  93862. /* enqueue the new structure to the front of the list */
  93863. ipr->next = reassdatagrams;
  93864. 8025dde: 4b09 ldr r3, [pc, #36] @ (8025e04 <ip_reass_enqueue_new_datagram+0x70>)
  93865. 8025de0: 681a ldr r2, [r3, #0]
  93866. 8025de2: 68fb ldr r3, [r7, #12]
  93867. 8025de4: 601a str r2, [r3, #0]
  93868. reassdatagrams = ipr;
  93869. 8025de6: 4a07 ldr r2, [pc, #28] @ (8025e04 <ip_reass_enqueue_new_datagram+0x70>)
  93870. 8025de8: 68fb ldr r3, [r7, #12]
  93871. 8025dea: 6013 str r3, [r2, #0]
  93872. /* copy the ip header for later tests and input */
  93873. /* @todo: no ip options supported? */
  93874. SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN);
  93875. 8025dec: 68fb ldr r3, [r7, #12]
  93876. 8025dee: 3308 adds r3, #8
  93877. 8025df0: 2214 movs r2, #20
  93878. 8025df2: 6879 ldr r1, [r7, #4]
  93879. 8025df4: 4618 mov r0, r3
  93880. 8025df6: f004 fc6a bl 802a6ce <memcpy>
  93881. return ipr;
  93882. 8025dfa: 68fb ldr r3, [r7, #12]
  93883. }
  93884. 8025dfc: 4618 mov r0, r3
  93885. 8025dfe: 3710 adds r7, #16
  93886. 8025e00: 46bd mov sp, r7
  93887. 8025e02: bd80 pop {r7, pc}
  93888. 8025e04: 2402b0f4 .word 0x2402b0f4
  93889. 08025e08 <ip_reass_dequeue_datagram>:
  93890. * Dequeues a datagram from the datagram queue. Doesn't deallocate the pbufs.
  93891. * @param ipr points to the queue entry to dequeue
  93892. */
  93893. static void
  93894. ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
  93895. {
  93896. 8025e08: b580 push {r7, lr}
  93897. 8025e0a: b082 sub sp, #8
  93898. 8025e0c: af00 add r7, sp, #0
  93899. 8025e0e: 6078 str r0, [r7, #4]
  93900. 8025e10: 6039 str r1, [r7, #0]
  93901. /* dequeue the reass struct */
  93902. if (reassdatagrams == ipr) {
  93903. 8025e12: 4b10 ldr r3, [pc, #64] @ (8025e54 <ip_reass_dequeue_datagram+0x4c>)
  93904. 8025e14: 681b ldr r3, [r3, #0]
  93905. 8025e16: 687a ldr r2, [r7, #4]
  93906. 8025e18: 429a cmp r2, r3
  93907. 8025e1a: d104 bne.n 8025e26 <ip_reass_dequeue_datagram+0x1e>
  93908. /* it was the first in the list */
  93909. reassdatagrams = ipr->next;
  93910. 8025e1c: 687b ldr r3, [r7, #4]
  93911. 8025e1e: 681b ldr r3, [r3, #0]
  93912. 8025e20: 4a0c ldr r2, [pc, #48] @ (8025e54 <ip_reass_dequeue_datagram+0x4c>)
  93913. 8025e22: 6013 str r3, [r2, #0]
  93914. 8025e24: e00d b.n 8025e42 <ip_reass_dequeue_datagram+0x3a>
  93915. } else {
  93916. /* it wasn't the first, so it must have a valid 'prev' */
  93917. LWIP_ASSERT("sanity check linked list", prev != NULL);
  93918. 8025e26: 683b ldr r3, [r7, #0]
  93919. 8025e28: 2b00 cmp r3, #0
  93920. 8025e2a: d106 bne.n 8025e3a <ip_reass_dequeue_datagram+0x32>
  93921. 8025e2c: 4b0a ldr r3, [pc, #40] @ (8025e58 <ip_reass_dequeue_datagram+0x50>)
  93922. 8025e2e: f240 1245 movw r2, #325 @ 0x145
  93923. 8025e32: 490a ldr r1, [pc, #40] @ (8025e5c <ip_reass_dequeue_datagram+0x54>)
  93924. 8025e34: 480a ldr r0, [pc, #40] @ (8025e60 <ip_reass_dequeue_datagram+0x58>)
  93925. 8025e36: f004 f9c1 bl 802a1bc <iprintf>
  93926. prev->next = ipr->next;
  93927. 8025e3a: 687b ldr r3, [r7, #4]
  93928. 8025e3c: 681a ldr r2, [r3, #0]
  93929. 8025e3e: 683b ldr r3, [r7, #0]
  93930. 8025e40: 601a str r2, [r3, #0]
  93931. }
  93932. /* now we can free the ip_reassdata struct */
  93933. memp_free(MEMP_REASSDATA, ipr);
  93934. 8025e42: 6879 ldr r1, [r7, #4]
  93935. 8025e44: 2004 movs r0, #4
  93936. 8025e46: f7f4 f853 bl 8019ef0 <memp_free>
  93937. }
  93938. 8025e4a: bf00 nop
  93939. 8025e4c: 3708 adds r7, #8
  93940. 8025e4e: 46bd mov sp, r7
  93941. 8025e50: bd80 pop {r7, pc}
  93942. 8025e52: bf00 nop
  93943. 8025e54: 2402b0f4 .word 0x2402b0f4
  93944. 8025e58: 08030f00 .word 0x08030f00
  93945. 8025e5c: 08030fc8 .word 0x08030fc8
  93946. 8025e60: 08030f48 .word 0x08030f48
  93947. 08025e64 <ip_reass_chain_frag_into_datagram_and_validate>:
  93948. * @param is_last is 1 if this pbuf has MF==0 (ipr->flags not updated yet)
  93949. * @return see IP_REASS_VALIDATE_* defines
  93950. */
  93951. static int
  93952. ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p, int is_last)
  93953. {
  93954. 8025e64: b580 push {r7, lr}
  93955. 8025e66: b08c sub sp, #48 @ 0x30
  93956. 8025e68: af00 add r7, sp, #0
  93957. 8025e6a: 60f8 str r0, [r7, #12]
  93958. 8025e6c: 60b9 str r1, [r7, #8]
  93959. 8025e6e: 607a str r2, [r7, #4]
  93960. struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL;
  93961. 8025e70: 2300 movs r3, #0
  93962. 8025e72: 62bb str r3, [r7, #40] @ 0x28
  93963. struct pbuf *q;
  93964. u16_t offset, len;
  93965. u8_t hlen;
  93966. struct ip_hdr *fraghdr;
  93967. int valid = 1;
  93968. 8025e74: 2301 movs r3, #1
  93969. 8025e76: 623b str r3, [r7, #32]
  93970. /* Extract length and fragment offset from current fragment */
  93971. fraghdr = (struct ip_hdr *)new_p->payload;
  93972. 8025e78: 68bb ldr r3, [r7, #8]
  93973. 8025e7a: 685b ldr r3, [r3, #4]
  93974. 8025e7c: 61fb str r3, [r7, #28]
  93975. len = lwip_ntohs(IPH_LEN(fraghdr));
  93976. 8025e7e: 69fb ldr r3, [r7, #28]
  93977. 8025e80: 885b ldrh r3, [r3, #2]
  93978. 8025e82: b29b uxth r3, r3
  93979. 8025e84: 4618 mov r0, r3
  93980. 8025e86: f7f3 fa3f bl 8019308 <lwip_htons>
  93981. 8025e8a: 4603 mov r3, r0
  93982. 8025e8c: 837b strh r3, [r7, #26]
  93983. hlen = IPH_HL_BYTES(fraghdr);
  93984. 8025e8e: 69fb ldr r3, [r7, #28]
  93985. 8025e90: 781b ldrb r3, [r3, #0]
  93986. 8025e92: f003 030f and.w r3, r3, #15
  93987. 8025e96: b2db uxtb r3, r3
  93988. 8025e98: 009b lsls r3, r3, #2
  93989. 8025e9a: 767b strb r3, [r7, #25]
  93990. if (hlen > len) {
  93991. 8025e9c: 7e7b ldrb r3, [r7, #25]
  93992. 8025e9e: b29b uxth r3, r3
  93993. 8025ea0: 8b7a ldrh r2, [r7, #26]
  93994. 8025ea2: 429a cmp r2, r3
  93995. 8025ea4: d202 bcs.n 8025eac <ip_reass_chain_frag_into_datagram_and_validate+0x48>
  93996. /* invalid datagram */
  93997. return IP_REASS_VALIDATE_PBUF_DROPPED;
  93998. 8025ea6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  93999. 8025eaa: e135 b.n 8026118 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94000. }
  94001. len = (u16_t)(len - hlen);
  94002. 8025eac: 7e7b ldrb r3, [r7, #25]
  94003. 8025eae: b29b uxth r3, r3
  94004. 8025eb0: 8b7a ldrh r2, [r7, #26]
  94005. 8025eb2: 1ad3 subs r3, r2, r3
  94006. 8025eb4: 837b strh r3, [r7, #26]
  94007. offset = IPH_OFFSET_BYTES(fraghdr);
  94008. 8025eb6: 69fb ldr r3, [r7, #28]
  94009. 8025eb8: 88db ldrh r3, [r3, #6]
  94010. 8025eba: b29b uxth r3, r3
  94011. 8025ebc: 4618 mov r0, r3
  94012. 8025ebe: f7f3 fa23 bl 8019308 <lwip_htons>
  94013. 8025ec2: 4603 mov r3, r0
  94014. 8025ec4: f3c3 030c ubfx r3, r3, #0, #13
  94015. 8025ec8: b29b uxth r3, r3
  94016. 8025eca: 00db lsls r3, r3, #3
  94017. 8025ecc: 82fb strh r3, [r7, #22]
  94018. /* overwrite the fragment's ip header from the pbuf with our helper struct,
  94019. * and setup the embedded helper structure. */
  94020. /* make sure the struct ip_reass_helper fits into the IP header */
  94021. LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN",
  94022. sizeof(struct ip_reass_helper) <= IP_HLEN);
  94023. iprh = (struct ip_reass_helper *)new_p->payload;
  94024. 8025ece: 68bb ldr r3, [r7, #8]
  94025. 8025ed0: 685b ldr r3, [r3, #4]
  94026. 8025ed2: 62fb str r3, [r7, #44] @ 0x2c
  94027. iprh->next_pbuf = NULL;
  94028. 8025ed4: 6afb ldr r3, [r7, #44] @ 0x2c
  94029. 8025ed6: 2200 movs r2, #0
  94030. 8025ed8: 701a strb r2, [r3, #0]
  94031. 8025eda: 2200 movs r2, #0
  94032. 8025edc: 705a strb r2, [r3, #1]
  94033. 8025ede: 2200 movs r2, #0
  94034. 8025ee0: 709a strb r2, [r3, #2]
  94035. 8025ee2: 2200 movs r2, #0
  94036. 8025ee4: 70da strb r2, [r3, #3]
  94037. iprh->start = offset;
  94038. 8025ee6: 6afb ldr r3, [r7, #44] @ 0x2c
  94039. 8025ee8: 8afa ldrh r2, [r7, #22]
  94040. 8025eea: 809a strh r2, [r3, #4]
  94041. iprh->end = (u16_t)(offset + len);
  94042. 8025eec: 8afa ldrh r2, [r7, #22]
  94043. 8025eee: 8b7b ldrh r3, [r7, #26]
  94044. 8025ef0: 4413 add r3, r2
  94045. 8025ef2: b29a uxth r2, r3
  94046. 8025ef4: 6afb ldr r3, [r7, #44] @ 0x2c
  94047. 8025ef6: 80da strh r2, [r3, #6]
  94048. if (iprh->end < offset) {
  94049. 8025ef8: 6afb ldr r3, [r7, #44] @ 0x2c
  94050. 8025efa: 88db ldrh r3, [r3, #6]
  94051. 8025efc: b29b uxth r3, r3
  94052. 8025efe: 8afa ldrh r2, [r7, #22]
  94053. 8025f00: 429a cmp r2, r3
  94054. 8025f02: d902 bls.n 8025f0a <ip_reass_chain_frag_into_datagram_and_validate+0xa6>
  94055. /* u16_t overflow, cannot handle this */
  94056. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94057. 8025f04: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94058. 8025f08: e106 b.n 8026118 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94059. }
  94060. /* Iterate through until we either get to the end of the list (append),
  94061. * or we find one with a larger offset (insert). */
  94062. for (q = ipr->p; q != NULL;) {
  94063. 8025f0a: 68fb ldr r3, [r7, #12]
  94064. 8025f0c: 685b ldr r3, [r3, #4]
  94065. 8025f0e: 627b str r3, [r7, #36] @ 0x24
  94066. 8025f10: e068 b.n 8025fe4 <ip_reass_chain_frag_into_datagram_and_validate+0x180>
  94067. iprh_tmp = (struct ip_reass_helper *)q->payload;
  94068. 8025f12: 6a7b ldr r3, [r7, #36] @ 0x24
  94069. 8025f14: 685b ldr r3, [r3, #4]
  94070. 8025f16: 613b str r3, [r7, #16]
  94071. if (iprh->start < iprh_tmp->start) {
  94072. 8025f18: 6afb ldr r3, [r7, #44] @ 0x2c
  94073. 8025f1a: 889b ldrh r3, [r3, #4]
  94074. 8025f1c: b29a uxth r2, r3
  94075. 8025f1e: 693b ldr r3, [r7, #16]
  94076. 8025f20: 889b ldrh r3, [r3, #4]
  94077. 8025f22: b29b uxth r3, r3
  94078. 8025f24: 429a cmp r2, r3
  94079. 8025f26: d235 bcs.n 8025f94 <ip_reass_chain_frag_into_datagram_and_validate+0x130>
  94080. /* the new pbuf should be inserted before this */
  94081. iprh->next_pbuf = q;
  94082. 8025f28: 6afb ldr r3, [r7, #44] @ 0x2c
  94083. 8025f2a: 6a7a ldr r2, [r7, #36] @ 0x24
  94084. 8025f2c: 601a str r2, [r3, #0]
  94085. if (iprh_prev != NULL) {
  94086. 8025f2e: 6abb ldr r3, [r7, #40] @ 0x28
  94087. 8025f30: 2b00 cmp r3, #0
  94088. 8025f32: d020 beq.n 8025f76 <ip_reass_chain_frag_into_datagram_and_validate+0x112>
  94089. /* not the fragment with the lowest offset */
  94090. #if IP_REASS_CHECK_OVERLAP
  94091. if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) {
  94092. 8025f34: 6afb ldr r3, [r7, #44] @ 0x2c
  94093. 8025f36: 889b ldrh r3, [r3, #4]
  94094. 8025f38: b29a uxth r2, r3
  94095. 8025f3a: 6abb ldr r3, [r7, #40] @ 0x28
  94096. 8025f3c: 88db ldrh r3, [r3, #6]
  94097. 8025f3e: b29b uxth r3, r3
  94098. 8025f40: 429a cmp r2, r3
  94099. 8025f42: d307 bcc.n 8025f54 <ip_reass_chain_frag_into_datagram_and_validate+0xf0>
  94100. 8025f44: 6afb ldr r3, [r7, #44] @ 0x2c
  94101. 8025f46: 88db ldrh r3, [r3, #6]
  94102. 8025f48: b29a uxth r2, r3
  94103. 8025f4a: 693b ldr r3, [r7, #16]
  94104. 8025f4c: 889b ldrh r3, [r3, #4]
  94105. 8025f4e: b29b uxth r3, r3
  94106. 8025f50: 429a cmp r2, r3
  94107. 8025f52: d902 bls.n 8025f5a <ip_reass_chain_frag_into_datagram_and_validate+0xf6>
  94108. /* fragment overlaps with previous or following, throw away */
  94109. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94110. 8025f54: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94111. 8025f58: e0de b.n 8026118 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94112. }
  94113. #endif /* IP_REASS_CHECK_OVERLAP */
  94114. iprh_prev->next_pbuf = new_p;
  94115. 8025f5a: 6abb ldr r3, [r7, #40] @ 0x28
  94116. 8025f5c: 68ba ldr r2, [r7, #8]
  94117. 8025f5e: 601a str r2, [r3, #0]
  94118. if (iprh_prev->end != iprh->start) {
  94119. 8025f60: 6abb ldr r3, [r7, #40] @ 0x28
  94120. 8025f62: 88db ldrh r3, [r3, #6]
  94121. 8025f64: b29a uxth r2, r3
  94122. 8025f66: 6afb ldr r3, [r7, #44] @ 0x2c
  94123. 8025f68: 889b ldrh r3, [r3, #4]
  94124. 8025f6a: b29b uxth r3, r3
  94125. 8025f6c: 429a cmp r2, r3
  94126. 8025f6e: d03d beq.n 8025fec <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  94127. /* There is a fragment missing between the current
  94128. * and the previous fragment */
  94129. valid = 0;
  94130. 8025f70: 2300 movs r3, #0
  94131. 8025f72: 623b str r3, [r7, #32]
  94132. }
  94133. #endif /* IP_REASS_CHECK_OVERLAP */
  94134. /* fragment with the lowest offset */
  94135. ipr->p = new_p;
  94136. }
  94137. break;
  94138. 8025f74: e03a b.n 8025fec <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  94139. if (iprh->end > iprh_tmp->start) {
  94140. 8025f76: 6afb ldr r3, [r7, #44] @ 0x2c
  94141. 8025f78: 88db ldrh r3, [r3, #6]
  94142. 8025f7a: b29a uxth r2, r3
  94143. 8025f7c: 693b ldr r3, [r7, #16]
  94144. 8025f7e: 889b ldrh r3, [r3, #4]
  94145. 8025f80: b29b uxth r3, r3
  94146. 8025f82: 429a cmp r2, r3
  94147. 8025f84: d902 bls.n 8025f8c <ip_reass_chain_frag_into_datagram_and_validate+0x128>
  94148. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94149. 8025f86: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94150. 8025f8a: e0c5 b.n 8026118 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94151. ipr->p = new_p;
  94152. 8025f8c: 68fb ldr r3, [r7, #12]
  94153. 8025f8e: 68ba ldr r2, [r7, #8]
  94154. 8025f90: 605a str r2, [r3, #4]
  94155. break;
  94156. 8025f92: e02b b.n 8025fec <ip_reass_chain_frag_into_datagram_and_validate+0x188>
  94157. } else if (iprh->start == iprh_tmp->start) {
  94158. 8025f94: 6afb ldr r3, [r7, #44] @ 0x2c
  94159. 8025f96: 889b ldrh r3, [r3, #4]
  94160. 8025f98: b29a uxth r2, r3
  94161. 8025f9a: 693b ldr r3, [r7, #16]
  94162. 8025f9c: 889b ldrh r3, [r3, #4]
  94163. 8025f9e: b29b uxth r3, r3
  94164. 8025fa0: 429a cmp r2, r3
  94165. 8025fa2: d102 bne.n 8025faa <ip_reass_chain_frag_into_datagram_and_validate+0x146>
  94166. /* received the same datagram twice: no need to keep the datagram */
  94167. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94168. 8025fa4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94169. 8025fa8: e0b6 b.n 8026118 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94170. #if IP_REASS_CHECK_OVERLAP
  94171. } else if (iprh->start < iprh_tmp->end) {
  94172. 8025faa: 6afb ldr r3, [r7, #44] @ 0x2c
  94173. 8025fac: 889b ldrh r3, [r3, #4]
  94174. 8025fae: b29a uxth r2, r3
  94175. 8025fb0: 693b ldr r3, [r7, #16]
  94176. 8025fb2: 88db ldrh r3, [r3, #6]
  94177. 8025fb4: b29b uxth r3, r3
  94178. 8025fb6: 429a cmp r2, r3
  94179. 8025fb8: d202 bcs.n 8025fc0 <ip_reass_chain_frag_into_datagram_and_validate+0x15c>
  94180. /* overlap: no need to keep the new datagram */
  94181. return IP_REASS_VALIDATE_PBUF_DROPPED;
  94182. 8025fba: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  94183. 8025fbe: e0ab b.n 8026118 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94184. #endif /* IP_REASS_CHECK_OVERLAP */
  94185. } else {
  94186. /* Check if the fragments received so far have no holes. */
  94187. if (iprh_prev != NULL) {
  94188. 8025fc0: 6abb ldr r3, [r7, #40] @ 0x28
  94189. 8025fc2: 2b00 cmp r3, #0
  94190. 8025fc4: d009 beq.n 8025fda <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  94191. if (iprh_prev->end != iprh_tmp->start) {
  94192. 8025fc6: 6abb ldr r3, [r7, #40] @ 0x28
  94193. 8025fc8: 88db ldrh r3, [r3, #6]
  94194. 8025fca: b29a uxth r2, r3
  94195. 8025fcc: 693b ldr r3, [r7, #16]
  94196. 8025fce: 889b ldrh r3, [r3, #4]
  94197. 8025fd0: b29b uxth r3, r3
  94198. 8025fd2: 429a cmp r2, r3
  94199. 8025fd4: d001 beq.n 8025fda <ip_reass_chain_frag_into_datagram_and_validate+0x176>
  94200. /* There is a fragment missing between the current
  94201. * and the previous fragment */
  94202. valid = 0;
  94203. 8025fd6: 2300 movs r3, #0
  94204. 8025fd8: 623b str r3, [r7, #32]
  94205. }
  94206. }
  94207. }
  94208. q = iprh_tmp->next_pbuf;
  94209. 8025fda: 693b ldr r3, [r7, #16]
  94210. 8025fdc: 681b ldr r3, [r3, #0]
  94211. 8025fde: 627b str r3, [r7, #36] @ 0x24
  94212. iprh_prev = iprh_tmp;
  94213. 8025fe0: 693b ldr r3, [r7, #16]
  94214. 8025fe2: 62bb str r3, [r7, #40] @ 0x28
  94215. for (q = ipr->p; q != NULL;) {
  94216. 8025fe4: 6a7b ldr r3, [r7, #36] @ 0x24
  94217. 8025fe6: 2b00 cmp r3, #0
  94218. 8025fe8: d193 bne.n 8025f12 <ip_reass_chain_frag_into_datagram_and_validate+0xae>
  94219. 8025fea: e000 b.n 8025fee <ip_reass_chain_frag_into_datagram_and_validate+0x18a>
  94220. break;
  94221. 8025fec: bf00 nop
  94222. }
  94223. /* If q is NULL, then we made it to the end of the list. Determine what to do now */
  94224. if (q == NULL) {
  94225. 8025fee: 6a7b ldr r3, [r7, #36] @ 0x24
  94226. 8025ff0: 2b00 cmp r3, #0
  94227. 8025ff2: d12d bne.n 8026050 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  94228. if (iprh_prev != NULL) {
  94229. 8025ff4: 6abb ldr r3, [r7, #40] @ 0x28
  94230. 8025ff6: 2b00 cmp r3, #0
  94231. 8025ff8: d01c beq.n 8026034 <ip_reass_chain_frag_into_datagram_and_validate+0x1d0>
  94232. /* this is (for now), the fragment with the highest offset:
  94233. * chain it to the last fragment */
  94234. #if IP_REASS_CHECK_OVERLAP
  94235. LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start);
  94236. 8025ffa: 6abb ldr r3, [r7, #40] @ 0x28
  94237. 8025ffc: 88db ldrh r3, [r3, #6]
  94238. 8025ffe: b29a uxth r2, r3
  94239. 8026000: 6afb ldr r3, [r7, #44] @ 0x2c
  94240. 8026002: 889b ldrh r3, [r3, #4]
  94241. 8026004: b29b uxth r3, r3
  94242. 8026006: 429a cmp r2, r3
  94243. 8026008: d906 bls.n 8026018 <ip_reass_chain_frag_into_datagram_and_validate+0x1b4>
  94244. 802600a: 4b45 ldr r3, [pc, #276] @ (8026120 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  94245. 802600c: f44f 72db mov.w r2, #438 @ 0x1b6
  94246. 8026010: 4944 ldr r1, [pc, #272] @ (8026124 <ip_reass_chain_frag_into_datagram_and_validate+0x2c0>)
  94247. 8026012: 4845 ldr r0, [pc, #276] @ (8026128 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  94248. 8026014: f004 f8d2 bl 802a1bc <iprintf>
  94249. #endif /* IP_REASS_CHECK_OVERLAP */
  94250. iprh_prev->next_pbuf = new_p;
  94251. 8026018: 6abb ldr r3, [r7, #40] @ 0x28
  94252. 802601a: 68ba ldr r2, [r7, #8]
  94253. 802601c: 601a str r2, [r3, #0]
  94254. if (iprh_prev->end != iprh->start) {
  94255. 802601e: 6abb ldr r3, [r7, #40] @ 0x28
  94256. 8026020: 88db ldrh r3, [r3, #6]
  94257. 8026022: b29a uxth r2, r3
  94258. 8026024: 6afb ldr r3, [r7, #44] @ 0x2c
  94259. 8026026: 889b ldrh r3, [r3, #4]
  94260. 8026028: b29b uxth r3, r3
  94261. 802602a: 429a cmp r2, r3
  94262. 802602c: d010 beq.n 8026050 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  94263. valid = 0;
  94264. 802602e: 2300 movs r3, #0
  94265. 8026030: 623b str r3, [r7, #32]
  94266. 8026032: e00d b.n 8026050 <ip_reass_chain_frag_into_datagram_and_validate+0x1ec>
  94267. }
  94268. } else {
  94269. #if IP_REASS_CHECK_OVERLAP
  94270. LWIP_ASSERT("no previous fragment, this must be the first fragment!",
  94271. 8026034: 68fb ldr r3, [r7, #12]
  94272. 8026036: 685b ldr r3, [r3, #4]
  94273. 8026038: 2b00 cmp r3, #0
  94274. 802603a: d006 beq.n 802604a <ip_reass_chain_frag_into_datagram_and_validate+0x1e6>
  94275. 802603c: 4b38 ldr r3, [pc, #224] @ (8026120 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  94276. 802603e: f44f 72df mov.w r2, #446 @ 0x1be
  94277. 8026042: 493a ldr r1, [pc, #232] @ (802612c <ip_reass_chain_frag_into_datagram_and_validate+0x2c8>)
  94278. 8026044: 4838 ldr r0, [pc, #224] @ (8026128 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  94279. 8026046: f004 f8b9 bl 802a1bc <iprintf>
  94280. ipr->p == NULL);
  94281. #endif /* IP_REASS_CHECK_OVERLAP */
  94282. /* this is the first fragment we ever received for this ip datagram */
  94283. ipr->p = new_p;
  94284. 802604a: 68fb ldr r3, [r7, #12]
  94285. 802604c: 68ba ldr r2, [r7, #8]
  94286. 802604e: 605a str r2, [r3, #4]
  94287. }
  94288. }
  94289. /* At this point, the validation part begins: */
  94290. /* If we already received the last fragment */
  94291. if (is_last || ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0)) {
  94292. 8026050: 687b ldr r3, [r7, #4]
  94293. 8026052: 2b00 cmp r3, #0
  94294. 8026054: d105 bne.n 8026062 <ip_reass_chain_frag_into_datagram_and_validate+0x1fe>
  94295. 8026056: 68fb ldr r3, [r7, #12]
  94296. 8026058: 7f9b ldrb r3, [r3, #30]
  94297. 802605a: f003 0301 and.w r3, r3, #1
  94298. 802605e: 2b00 cmp r3, #0
  94299. 8026060: d059 beq.n 8026116 <ip_reass_chain_frag_into_datagram_and_validate+0x2b2>
  94300. /* and had no holes so far */
  94301. if (valid) {
  94302. 8026062: 6a3b ldr r3, [r7, #32]
  94303. 8026064: 2b00 cmp r3, #0
  94304. 8026066: d04f beq.n 8026108 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  94305. /* then check if the rest of the fragments is here */
  94306. /* Check if the queue starts with the first datagram */
  94307. if ((ipr->p == NULL) || (((struct ip_reass_helper *)ipr->p->payload)->start != 0)) {
  94308. 8026068: 68fb ldr r3, [r7, #12]
  94309. 802606a: 685b ldr r3, [r3, #4]
  94310. 802606c: 2b00 cmp r3, #0
  94311. 802606e: d006 beq.n 802607e <ip_reass_chain_frag_into_datagram_and_validate+0x21a>
  94312. 8026070: 68fb ldr r3, [r7, #12]
  94313. 8026072: 685b ldr r3, [r3, #4]
  94314. 8026074: 685b ldr r3, [r3, #4]
  94315. 8026076: 889b ldrh r3, [r3, #4]
  94316. 8026078: b29b uxth r3, r3
  94317. 802607a: 2b00 cmp r3, #0
  94318. 802607c: d002 beq.n 8026084 <ip_reass_chain_frag_into_datagram_and_validate+0x220>
  94319. valid = 0;
  94320. 802607e: 2300 movs r3, #0
  94321. 8026080: 623b str r3, [r7, #32]
  94322. 8026082: e041 b.n 8026108 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  94323. } else {
  94324. /* and check that there are no holes after this datagram */
  94325. iprh_prev = iprh;
  94326. 8026084: 6afb ldr r3, [r7, #44] @ 0x2c
  94327. 8026086: 62bb str r3, [r7, #40] @ 0x28
  94328. q = iprh->next_pbuf;
  94329. 8026088: 6afb ldr r3, [r7, #44] @ 0x2c
  94330. 802608a: 681b ldr r3, [r3, #0]
  94331. 802608c: 627b str r3, [r7, #36] @ 0x24
  94332. while (q != NULL) {
  94333. 802608e: e012 b.n 80260b6 <ip_reass_chain_frag_into_datagram_and_validate+0x252>
  94334. iprh = (struct ip_reass_helper *)q->payload;
  94335. 8026090: 6a7b ldr r3, [r7, #36] @ 0x24
  94336. 8026092: 685b ldr r3, [r3, #4]
  94337. 8026094: 62fb str r3, [r7, #44] @ 0x2c
  94338. if (iprh_prev->end != iprh->start) {
  94339. 8026096: 6abb ldr r3, [r7, #40] @ 0x28
  94340. 8026098: 88db ldrh r3, [r3, #6]
  94341. 802609a: b29a uxth r2, r3
  94342. 802609c: 6afb ldr r3, [r7, #44] @ 0x2c
  94343. 802609e: 889b ldrh r3, [r3, #4]
  94344. 80260a0: b29b uxth r3, r3
  94345. 80260a2: 429a cmp r2, r3
  94346. 80260a4: d002 beq.n 80260ac <ip_reass_chain_frag_into_datagram_and_validate+0x248>
  94347. valid = 0;
  94348. 80260a6: 2300 movs r3, #0
  94349. 80260a8: 623b str r3, [r7, #32]
  94350. break;
  94351. 80260aa: e007 b.n 80260bc <ip_reass_chain_frag_into_datagram_and_validate+0x258>
  94352. }
  94353. iprh_prev = iprh;
  94354. 80260ac: 6afb ldr r3, [r7, #44] @ 0x2c
  94355. 80260ae: 62bb str r3, [r7, #40] @ 0x28
  94356. q = iprh->next_pbuf;
  94357. 80260b0: 6afb ldr r3, [r7, #44] @ 0x2c
  94358. 80260b2: 681b ldr r3, [r3, #0]
  94359. 80260b4: 627b str r3, [r7, #36] @ 0x24
  94360. while (q != NULL) {
  94361. 80260b6: 6a7b ldr r3, [r7, #36] @ 0x24
  94362. 80260b8: 2b00 cmp r3, #0
  94363. 80260ba: d1e9 bne.n 8026090 <ip_reass_chain_frag_into_datagram_and_validate+0x22c>
  94364. }
  94365. /* if still valid, all fragments are received
  94366. * (because to the MF==0 already arrived */
  94367. if (valid) {
  94368. 80260bc: 6a3b ldr r3, [r7, #32]
  94369. 80260be: 2b00 cmp r3, #0
  94370. 80260c0: d022 beq.n 8026108 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  94371. LWIP_ASSERT("sanity check", ipr->p != NULL);
  94372. 80260c2: 68fb ldr r3, [r7, #12]
  94373. 80260c4: 685b ldr r3, [r3, #4]
  94374. 80260c6: 2b00 cmp r3, #0
  94375. 80260c8: d106 bne.n 80260d8 <ip_reass_chain_frag_into_datagram_and_validate+0x274>
  94376. 80260ca: 4b15 ldr r3, [pc, #84] @ (8026120 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  94377. 80260cc: f240 12df movw r2, #479 @ 0x1df
  94378. 80260d0: 4917 ldr r1, [pc, #92] @ (8026130 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  94379. 80260d2: 4815 ldr r0, [pc, #84] @ (8026128 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  94380. 80260d4: f004 f872 bl 802a1bc <iprintf>
  94381. LWIP_ASSERT("sanity check",
  94382. 80260d8: 68fb ldr r3, [r7, #12]
  94383. 80260da: 685b ldr r3, [r3, #4]
  94384. 80260dc: 685b ldr r3, [r3, #4]
  94385. 80260de: 6afa ldr r2, [r7, #44] @ 0x2c
  94386. 80260e0: 429a cmp r2, r3
  94387. 80260e2: d106 bne.n 80260f2 <ip_reass_chain_frag_into_datagram_and_validate+0x28e>
  94388. 80260e4: 4b0e ldr r3, [pc, #56] @ (8026120 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  94389. 80260e6: f44f 72f0 mov.w r2, #480 @ 0x1e0
  94390. 80260ea: 4911 ldr r1, [pc, #68] @ (8026130 <ip_reass_chain_frag_into_datagram_and_validate+0x2cc>)
  94391. 80260ec: 480e ldr r0, [pc, #56] @ (8026128 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  94392. 80260ee: f004 f865 bl 802a1bc <iprintf>
  94393. ((struct ip_reass_helper *)ipr->p->payload) != iprh);
  94394. LWIP_ASSERT("validate_datagram:next_pbuf!=NULL",
  94395. 80260f2: 6afb ldr r3, [r7, #44] @ 0x2c
  94396. 80260f4: 681b ldr r3, [r3, #0]
  94397. 80260f6: 2b00 cmp r3, #0
  94398. 80260f8: d006 beq.n 8026108 <ip_reass_chain_frag_into_datagram_and_validate+0x2a4>
  94399. 80260fa: 4b09 ldr r3, [pc, #36] @ (8026120 <ip_reass_chain_frag_into_datagram_and_validate+0x2bc>)
  94400. 80260fc: f44f 72f1 mov.w r2, #482 @ 0x1e2
  94401. 8026100: 490c ldr r1, [pc, #48] @ (8026134 <ip_reass_chain_frag_into_datagram_and_validate+0x2d0>)
  94402. 8026102: 4809 ldr r0, [pc, #36] @ (8026128 <ip_reass_chain_frag_into_datagram_and_validate+0x2c4>)
  94403. 8026104: f004 f85a bl 802a1bc <iprintf>
  94404. }
  94405. }
  94406. /* If valid is 0 here, there are some fragments missing in the middle
  94407. * (since MF == 0 has already arrived). Such datagrams simply time out if
  94408. * no more fragments are received... */
  94409. return valid ? IP_REASS_VALIDATE_TELEGRAM_FINISHED : IP_REASS_VALIDATE_PBUF_QUEUED;
  94410. 8026108: 6a3b ldr r3, [r7, #32]
  94411. 802610a: 2b00 cmp r3, #0
  94412. 802610c: bf14 ite ne
  94413. 802610e: 2301 movne r3, #1
  94414. 8026110: 2300 moveq r3, #0
  94415. 8026112: b2db uxtb r3, r3
  94416. 8026114: e000 b.n 8026118 <ip_reass_chain_frag_into_datagram_and_validate+0x2b4>
  94417. }
  94418. /* If we come here, not all fragments were received, yet! */
  94419. return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */
  94420. 8026116: 2300 movs r3, #0
  94421. }
  94422. 8026118: 4618 mov r0, r3
  94423. 802611a: 3730 adds r7, #48 @ 0x30
  94424. 802611c: 46bd mov sp, r7
  94425. 802611e: bd80 pop {r7, pc}
  94426. 8026120: 08030f00 .word 0x08030f00
  94427. 8026124: 08030fe4 .word 0x08030fe4
  94428. 8026128: 08030f48 .word 0x08030f48
  94429. 802612c: 08031004 .word 0x08031004
  94430. 8026130: 0803103c .word 0x0803103c
  94431. 8026134: 0803104c .word 0x0803104c
  94432. 08026138 <ip4_reass>:
  94433. * @param p points to a pbuf chain of the fragment
  94434. * @return NULL if reassembly is incomplete, ? otherwise
  94435. */
  94436. struct pbuf *
  94437. ip4_reass(struct pbuf *p)
  94438. {
  94439. 8026138: b580 push {r7, lr}
  94440. 802613a: b08e sub sp, #56 @ 0x38
  94441. 802613c: af00 add r7, sp, #0
  94442. 802613e: 6078 str r0, [r7, #4]
  94443. int is_last;
  94444. IPFRAG_STATS_INC(ip_frag.recv);
  94445. MIB2_STATS_INC(mib2.ipreasmreqds);
  94446. fraghdr = (struct ip_hdr *)p->payload;
  94447. 8026140: 687b ldr r3, [r7, #4]
  94448. 8026142: 685b ldr r3, [r3, #4]
  94449. 8026144: 62bb str r3, [r7, #40] @ 0x28
  94450. if (IPH_HL_BYTES(fraghdr) != IP_HLEN) {
  94451. 8026146: 6abb ldr r3, [r7, #40] @ 0x28
  94452. 8026148: 781b ldrb r3, [r3, #0]
  94453. 802614a: f003 030f and.w r3, r3, #15
  94454. 802614e: b2db uxtb r3, r3
  94455. 8026150: 009b lsls r3, r3, #2
  94456. 8026152: b2db uxtb r3, r3
  94457. 8026154: 2b14 cmp r3, #20
  94458. 8026156: f040 8171 bne.w 802643c <ip4_reass+0x304>
  94459. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n"));
  94460. IPFRAG_STATS_INC(ip_frag.err);
  94461. goto nullreturn;
  94462. }
  94463. offset = IPH_OFFSET_BYTES(fraghdr);
  94464. 802615a: 6abb ldr r3, [r7, #40] @ 0x28
  94465. 802615c: 88db ldrh r3, [r3, #6]
  94466. 802615e: b29b uxth r3, r3
  94467. 8026160: 4618 mov r0, r3
  94468. 8026162: f7f3 f8d1 bl 8019308 <lwip_htons>
  94469. 8026166: 4603 mov r3, r0
  94470. 8026168: f3c3 030c ubfx r3, r3, #0, #13
  94471. 802616c: b29b uxth r3, r3
  94472. 802616e: 00db lsls r3, r3, #3
  94473. 8026170: 84fb strh r3, [r7, #38] @ 0x26
  94474. len = lwip_ntohs(IPH_LEN(fraghdr));
  94475. 8026172: 6abb ldr r3, [r7, #40] @ 0x28
  94476. 8026174: 885b ldrh r3, [r3, #2]
  94477. 8026176: b29b uxth r3, r3
  94478. 8026178: 4618 mov r0, r3
  94479. 802617a: f7f3 f8c5 bl 8019308 <lwip_htons>
  94480. 802617e: 4603 mov r3, r0
  94481. 8026180: 84bb strh r3, [r7, #36] @ 0x24
  94482. hlen = IPH_HL_BYTES(fraghdr);
  94483. 8026182: 6abb ldr r3, [r7, #40] @ 0x28
  94484. 8026184: 781b ldrb r3, [r3, #0]
  94485. 8026186: f003 030f and.w r3, r3, #15
  94486. 802618a: b2db uxtb r3, r3
  94487. 802618c: 009b lsls r3, r3, #2
  94488. 802618e: f887 3023 strb.w r3, [r7, #35] @ 0x23
  94489. if (hlen > len) {
  94490. 8026192: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  94491. 8026196: b29b uxth r3, r3
  94492. 8026198: 8cba ldrh r2, [r7, #36] @ 0x24
  94493. 802619a: 429a cmp r2, r3
  94494. 802619c: f0c0 8150 bcc.w 8026440 <ip4_reass+0x308>
  94495. /* invalid datagram */
  94496. goto nullreturn;
  94497. }
  94498. len = (u16_t)(len - hlen);
  94499. 80261a0: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  94500. 80261a4: b29b uxth r3, r3
  94501. 80261a6: 8cba ldrh r2, [r7, #36] @ 0x24
  94502. 80261a8: 1ad3 subs r3, r2, r3
  94503. 80261aa: 84bb strh r3, [r7, #36] @ 0x24
  94504. /* Check if we are allowed to enqueue more datagrams. */
  94505. clen = pbuf_clen(p);
  94506. 80261ac: 6878 ldr r0, [r7, #4]
  94507. 80261ae: f7f4 fe1b bl 801ade8 <pbuf_clen>
  94508. 80261b2: 4603 mov r3, r0
  94509. 80261b4: 843b strh r3, [r7, #32]
  94510. if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) {
  94511. 80261b6: 4b8c ldr r3, [pc, #560] @ (80263e8 <ip4_reass+0x2b0>)
  94512. 80261b8: 881b ldrh r3, [r3, #0]
  94513. 80261ba: 461a mov r2, r3
  94514. 80261bc: 8c3b ldrh r3, [r7, #32]
  94515. 80261be: 4413 add r3, r2
  94516. 80261c0: 2b0a cmp r3, #10
  94517. 80261c2: dd10 ble.n 80261e6 <ip4_reass+0xae>
  94518. #if IP_REASS_FREE_OLDEST
  94519. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  94520. 80261c4: 8c3b ldrh r3, [r7, #32]
  94521. 80261c6: 4619 mov r1, r3
  94522. 80261c8: 6ab8 ldr r0, [r7, #40] @ 0x28
  94523. 80261ca: f7ff fd81 bl 8025cd0 <ip_reass_remove_oldest_datagram>
  94524. 80261ce: 4603 mov r3, r0
  94525. 80261d0: 2b00 cmp r3, #0
  94526. 80261d2: f000 8137 beq.w 8026444 <ip4_reass+0x30c>
  94527. ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS))
  94528. 80261d6: 4b84 ldr r3, [pc, #528] @ (80263e8 <ip4_reass+0x2b0>)
  94529. 80261d8: 881b ldrh r3, [r3, #0]
  94530. 80261da: 461a mov r2, r3
  94531. 80261dc: 8c3b ldrh r3, [r7, #32]
  94532. 80261de: 4413 add r3, r2
  94533. if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
  94534. 80261e0: 2b0a cmp r3, #10
  94535. 80261e2: f300 812f bgt.w 8026444 <ip4_reass+0x30c>
  94536. }
  94537. }
  94538. /* Look for the datagram the fragment belongs to in the current datagram queue,
  94539. * remembering the previous in the queue for later dequeueing. */
  94540. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  94541. 80261e6: 4b81 ldr r3, [pc, #516] @ (80263ec <ip4_reass+0x2b4>)
  94542. 80261e8: 681b ldr r3, [r3, #0]
  94543. 80261ea: 633b str r3, [r7, #48] @ 0x30
  94544. 80261ec: e015 b.n 802621a <ip4_reass+0xe2>
  94545. /* Check if the incoming fragment matches the one currently present
  94546. in the reassembly buffer. If so, we proceed with copying the
  94547. fragment into the buffer. */
  94548. if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) {
  94549. 80261ee: 6b3b ldr r3, [r7, #48] @ 0x30
  94550. 80261f0: 695a ldr r2, [r3, #20]
  94551. 80261f2: 6abb ldr r3, [r7, #40] @ 0x28
  94552. 80261f4: 68db ldr r3, [r3, #12]
  94553. 80261f6: 429a cmp r2, r3
  94554. 80261f8: d10c bne.n 8026214 <ip4_reass+0xdc>
  94555. 80261fa: 6b3b ldr r3, [r7, #48] @ 0x30
  94556. 80261fc: 699a ldr r2, [r3, #24]
  94557. 80261fe: 6abb ldr r3, [r7, #40] @ 0x28
  94558. 8026200: 691b ldr r3, [r3, #16]
  94559. 8026202: 429a cmp r2, r3
  94560. 8026204: d106 bne.n 8026214 <ip4_reass+0xdc>
  94561. 8026206: 6b3b ldr r3, [r7, #48] @ 0x30
  94562. 8026208: 899a ldrh r2, [r3, #12]
  94563. 802620a: 6abb ldr r3, [r7, #40] @ 0x28
  94564. 802620c: 889b ldrh r3, [r3, #4]
  94565. 802620e: b29b uxth r3, r3
  94566. 8026210: 429a cmp r2, r3
  94567. 8026212: d006 beq.n 8026222 <ip4_reass+0xea>
  94568. for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
  94569. 8026214: 6b3b ldr r3, [r7, #48] @ 0x30
  94570. 8026216: 681b ldr r3, [r3, #0]
  94571. 8026218: 633b str r3, [r7, #48] @ 0x30
  94572. 802621a: 6b3b ldr r3, [r7, #48] @ 0x30
  94573. 802621c: 2b00 cmp r3, #0
  94574. 802621e: d1e6 bne.n 80261ee <ip4_reass+0xb6>
  94575. 8026220: e000 b.n 8026224 <ip4_reass+0xec>
  94576. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: matching previous fragment ID=%"X16_F"\n",
  94577. lwip_ntohs(IPH_ID(fraghdr))));
  94578. IPFRAG_STATS_INC(ip_frag.cachehit);
  94579. break;
  94580. 8026222: bf00 nop
  94581. }
  94582. }
  94583. if (ipr == NULL) {
  94584. 8026224: 6b3b ldr r3, [r7, #48] @ 0x30
  94585. 8026226: 2b00 cmp r3, #0
  94586. 8026228: d109 bne.n 802623e <ip4_reass+0x106>
  94587. /* Enqueue a new datagram into the datagram queue */
  94588. ipr = ip_reass_enqueue_new_datagram(fraghdr, clen);
  94589. 802622a: 8c3b ldrh r3, [r7, #32]
  94590. 802622c: 4619 mov r1, r3
  94591. 802622e: 6ab8 ldr r0, [r7, #40] @ 0x28
  94592. 8026230: f7ff fdb0 bl 8025d94 <ip_reass_enqueue_new_datagram>
  94593. 8026234: 6338 str r0, [r7, #48] @ 0x30
  94594. /* Bail if unable to enqueue */
  94595. if (ipr == NULL) {
  94596. 8026236: 6b3b ldr r3, [r7, #48] @ 0x30
  94597. 8026238: 2b00 cmp r3, #0
  94598. 802623a: d11c bne.n 8026276 <ip4_reass+0x13e>
  94599. goto nullreturn;
  94600. 802623c: e105 b.n 802644a <ip4_reass+0x312>
  94601. }
  94602. } else {
  94603. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  94604. 802623e: 6abb ldr r3, [r7, #40] @ 0x28
  94605. 8026240: 88db ldrh r3, [r3, #6]
  94606. 8026242: b29b uxth r3, r3
  94607. 8026244: 4618 mov r0, r3
  94608. 8026246: f7f3 f85f bl 8019308 <lwip_htons>
  94609. 802624a: 4603 mov r3, r0
  94610. 802624c: f3c3 030c ubfx r3, r3, #0, #13
  94611. 8026250: 2b00 cmp r3, #0
  94612. 8026252: d110 bne.n 8026276 <ip4_reass+0x13e>
  94613. ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) {
  94614. 8026254: 6b3b ldr r3, [r7, #48] @ 0x30
  94615. 8026256: 89db ldrh r3, [r3, #14]
  94616. 8026258: 4618 mov r0, r3
  94617. 802625a: f7f3 f855 bl 8019308 <lwip_htons>
  94618. 802625e: 4603 mov r3, r0
  94619. 8026260: f3c3 030c ubfx r3, r3, #0, #13
  94620. if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
  94621. 8026264: 2b00 cmp r3, #0
  94622. 8026266: d006 beq.n 8026276 <ip4_reass+0x13e>
  94623. /* ipr->iphdr is not the header from the first fragment, but fraghdr is
  94624. * -> copy fraghdr into ipr->iphdr since we want to have the header
  94625. * of the first fragment (for ICMP time exceeded and later, for copying
  94626. * all options, if supported)*/
  94627. SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN);
  94628. 8026268: 6b3b ldr r3, [r7, #48] @ 0x30
  94629. 802626a: 3308 adds r3, #8
  94630. 802626c: 2214 movs r2, #20
  94631. 802626e: 6ab9 ldr r1, [r7, #40] @ 0x28
  94632. 8026270: 4618 mov r0, r3
  94633. 8026272: f004 fa2c bl 802a6ce <memcpy>
  94634. /* At this point, we have either created a new entry or pointing
  94635. * to an existing one */
  94636. /* check for 'no more fragments', and update queue entry*/
  94637. is_last = (IPH_OFFSET(fraghdr) & PP_NTOHS(IP_MF)) == 0;
  94638. 8026276: 6abb ldr r3, [r7, #40] @ 0x28
  94639. 8026278: 88db ldrh r3, [r3, #6]
  94640. 802627a: b29b uxth r3, r3
  94641. 802627c: f003 0320 and.w r3, r3, #32
  94642. 8026280: 2b00 cmp r3, #0
  94643. 8026282: bf0c ite eq
  94644. 8026284: 2301 moveq r3, #1
  94645. 8026286: 2300 movne r3, #0
  94646. 8026288: b2db uxtb r3, r3
  94647. 802628a: 61fb str r3, [r7, #28]
  94648. if (is_last) {
  94649. 802628c: 69fb ldr r3, [r7, #28]
  94650. 802628e: 2b00 cmp r3, #0
  94651. 8026290: d00e beq.n 80262b0 <ip4_reass+0x178>
  94652. u16_t datagram_len = (u16_t)(offset + len);
  94653. 8026292: 8cfa ldrh r2, [r7, #38] @ 0x26
  94654. 8026294: 8cbb ldrh r3, [r7, #36] @ 0x24
  94655. 8026296: 4413 add r3, r2
  94656. 8026298: 837b strh r3, [r7, #26]
  94657. if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) {
  94658. 802629a: 8b7a ldrh r2, [r7, #26]
  94659. 802629c: 8cfb ldrh r3, [r7, #38] @ 0x26
  94660. 802629e: 429a cmp r2, r3
  94661. 80262a0: f0c0 80a0 bcc.w 80263e4 <ip4_reass+0x2ac>
  94662. 80262a4: 8b7b ldrh r3, [r7, #26]
  94663. 80262a6: f64f 72eb movw r2, #65515 @ 0xffeb
  94664. 80262aa: 4293 cmp r3, r2
  94665. 80262ac: f200 809a bhi.w 80263e4 <ip4_reass+0x2ac>
  94666. goto nullreturn_ipr;
  94667. }
  94668. }
  94669. /* find the right place to insert this pbuf */
  94670. /* @todo: trim pbufs if fragments are overlapping */
  94671. valid = ip_reass_chain_frag_into_datagram_and_validate(ipr, p, is_last);
  94672. 80262b0: 69fa ldr r2, [r7, #28]
  94673. 80262b2: 6879 ldr r1, [r7, #4]
  94674. 80262b4: 6b38 ldr r0, [r7, #48] @ 0x30
  94675. 80262b6: f7ff fdd5 bl 8025e64 <ip_reass_chain_frag_into_datagram_and_validate>
  94676. 80262ba: 6178 str r0, [r7, #20]
  94677. if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) {
  94678. 80262bc: 697b ldr r3, [r7, #20]
  94679. 80262be: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  94680. 80262c2: f000 809b beq.w 80263fc <ip4_reass+0x2c4>
  94681. /* if we come here, the pbuf has been enqueued */
  94682. /* Track the current number of pbufs current 'in-flight', in order to limit
  94683. the number of fragments that may be enqueued at any one time
  94684. (overflow checked by testing against IP_REASS_MAX_PBUFS) */
  94685. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount + clen);
  94686. 80262c6: 4b48 ldr r3, [pc, #288] @ (80263e8 <ip4_reass+0x2b0>)
  94687. 80262c8: 881a ldrh r2, [r3, #0]
  94688. 80262ca: 8c3b ldrh r3, [r7, #32]
  94689. 80262cc: 4413 add r3, r2
  94690. 80262ce: b29a uxth r2, r3
  94691. 80262d0: 4b45 ldr r3, [pc, #276] @ (80263e8 <ip4_reass+0x2b0>)
  94692. 80262d2: 801a strh r2, [r3, #0]
  94693. if (is_last) {
  94694. 80262d4: 69fb ldr r3, [r7, #28]
  94695. 80262d6: 2b00 cmp r3, #0
  94696. 80262d8: d00d beq.n 80262f6 <ip4_reass+0x1be>
  94697. u16_t datagram_len = (u16_t)(offset + len);
  94698. 80262da: 8cfa ldrh r2, [r7, #38] @ 0x26
  94699. 80262dc: 8cbb ldrh r3, [r7, #36] @ 0x24
  94700. 80262de: 4413 add r3, r2
  94701. 80262e0: 827b strh r3, [r7, #18]
  94702. ipr->datagram_len = datagram_len;
  94703. 80262e2: 6b3b ldr r3, [r7, #48] @ 0x30
  94704. 80262e4: 8a7a ldrh r2, [r7, #18]
  94705. 80262e6: 839a strh r2, [r3, #28]
  94706. ipr->flags |= IP_REASS_FLAG_LASTFRAG;
  94707. 80262e8: 6b3b ldr r3, [r7, #48] @ 0x30
  94708. 80262ea: 7f9b ldrb r3, [r3, #30]
  94709. 80262ec: f043 0301 orr.w r3, r3, #1
  94710. 80262f0: b2da uxtb r2, r3
  94711. 80262f2: 6b3b ldr r3, [r7, #48] @ 0x30
  94712. 80262f4: 779a strb r2, [r3, #30]
  94713. LWIP_DEBUGF(IP_REASS_DEBUG,
  94714. ("ip4_reass: last fragment seen, total len %"S16_F"\n",
  94715. ipr->datagram_len));
  94716. }
  94717. if (valid == IP_REASS_VALIDATE_TELEGRAM_FINISHED) {
  94718. 80262f6: 697b ldr r3, [r7, #20]
  94719. 80262f8: 2b01 cmp r3, #1
  94720. 80262fa: d171 bne.n 80263e0 <ip4_reass+0x2a8>
  94721. struct ip_reassdata *ipr_prev;
  94722. /* the totally last fragment (flag more fragments = 0) was received at least
  94723. * once AND all fragments are received */
  94724. u16_t datagram_len = (u16_t)(ipr->datagram_len + IP_HLEN);
  94725. 80262fc: 6b3b ldr r3, [r7, #48] @ 0x30
  94726. 80262fe: 8b9b ldrh r3, [r3, #28]
  94727. 8026300: 3314 adds r3, #20
  94728. 8026302: 823b strh r3, [r7, #16]
  94729. /* save the second pbuf before copying the header over the pointer */
  94730. r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf;
  94731. 8026304: 6b3b ldr r3, [r7, #48] @ 0x30
  94732. 8026306: 685b ldr r3, [r3, #4]
  94733. 8026308: 685b ldr r3, [r3, #4]
  94734. 802630a: 681b ldr r3, [r3, #0]
  94735. 802630c: 62fb str r3, [r7, #44] @ 0x2c
  94736. /* copy the original ip header back to the first pbuf */
  94737. fraghdr = (struct ip_hdr *)(ipr->p->payload);
  94738. 802630e: 6b3b ldr r3, [r7, #48] @ 0x30
  94739. 8026310: 685b ldr r3, [r3, #4]
  94740. 8026312: 685b ldr r3, [r3, #4]
  94741. 8026314: 62bb str r3, [r7, #40] @ 0x28
  94742. SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN);
  94743. 8026316: 6b3b ldr r3, [r7, #48] @ 0x30
  94744. 8026318: 3308 adds r3, #8
  94745. 802631a: 2214 movs r2, #20
  94746. 802631c: 4619 mov r1, r3
  94747. 802631e: 6ab8 ldr r0, [r7, #40] @ 0x28
  94748. 8026320: f004 f9d5 bl 802a6ce <memcpy>
  94749. IPH_LEN_SET(fraghdr, lwip_htons(datagram_len));
  94750. 8026324: 8a3b ldrh r3, [r7, #16]
  94751. 8026326: 4618 mov r0, r3
  94752. 8026328: f7f2 ffee bl 8019308 <lwip_htons>
  94753. 802632c: 4603 mov r3, r0
  94754. 802632e: 461a mov r2, r3
  94755. 8026330: 6abb ldr r3, [r7, #40] @ 0x28
  94756. 8026332: 805a strh r2, [r3, #2]
  94757. IPH_OFFSET_SET(fraghdr, 0);
  94758. 8026334: 6abb ldr r3, [r7, #40] @ 0x28
  94759. 8026336: 2200 movs r2, #0
  94760. 8026338: 719a strb r2, [r3, #6]
  94761. 802633a: 2200 movs r2, #0
  94762. 802633c: 71da strb r2, [r3, #7]
  94763. IPH_CHKSUM_SET(fraghdr, 0);
  94764. 802633e: 6abb ldr r3, [r7, #40] @ 0x28
  94765. 8026340: 2200 movs r2, #0
  94766. 8026342: 729a strb r2, [r3, #10]
  94767. 8026344: 2200 movs r2, #0
  94768. 8026346: 72da strb r2, [r3, #11]
  94769. IF__NETIF_CHECKSUM_ENABLED(ip_current_input_netif(), NETIF_CHECKSUM_GEN_IP) {
  94770. IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN));
  94771. }
  94772. #endif /* CHECKSUM_GEN_IP */
  94773. p = ipr->p;
  94774. 8026348: 6b3b ldr r3, [r7, #48] @ 0x30
  94775. 802634a: 685b ldr r3, [r3, #4]
  94776. 802634c: 607b str r3, [r7, #4]
  94777. /* chain together the pbufs contained within the reass_data list. */
  94778. while (r != NULL) {
  94779. 802634e: e00d b.n 802636c <ip4_reass+0x234>
  94780. iprh = (struct ip_reass_helper *)r->payload;
  94781. 8026350: 6afb ldr r3, [r7, #44] @ 0x2c
  94782. 8026352: 685b ldr r3, [r3, #4]
  94783. 8026354: 60fb str r3, [r7, #12]
  94784. /* hide the ip header for every succeeding fragment */
  94785. pbuf_remove_header(r, IP_HLEN);
  94786. 8026356: 2114 movs r1, #20
  94787. 8026358: 6af8 ldr r0, [r7, #44] @ 0x2c
  94788. 802635a: f7f4 fbff bl 801ab5c <pbuf_remove_header>
  94789. pbuf_cat(p, r);
  94790. 802635e: 6af9 ldr r1, [r7, #44] @ 0x2c
  94791. 8026360: 6878 ldr r0, [r7, #4]
  94792. 8026362: f7f4 fd81 bl 801ae68 <pbuf_cat>
  94793. r = iprh->next_pbuf;
  94794. 8026366: 68fb ldr r3, [r7, #12]
  94795. 8026368: 681b ldr r3, [r3, #0]
  94796. 802636a: 62fb str r3, [r7, #44] @ 0x2c
  94797. while (r != NULL) {
  94798. 802636c: 6afb ldr r3, [r7, #44] @ 0x2c
  94799. 802636e: 2b00 cmp r3, #0
  94800. 8026370: d1ee bne.n 8026350 <ip4_reass+0x218>
  94801. }
  94802. /* find the previous entry in the linked list */
  94803. if (ipr == reassdatagrams) {
  94804. 8026372: 4b1e ldr r3, [pc, #120] @ (80263ec <ip4_reass+0x2b4>)
  94805. 8026374: 681b ldr r3, [r3, #0]
  94806. 8026376: 6b3a ldr r2, [r7, #48] @ 0x30
  94807. 8026378: 429a cmp r2, r3
  94808. 802637a: d102 bne.n 8026382 <ip4_reass+0x24a>
  94809. ipr_prev = NULL;
  94810. 802637c: 2300 movs r3, #0
  94811. 802637e: 637b str r3, [r7, #52] @ 0x34
  94812. 8026380: e010 b.n 80263a4 <ip4_reass+0x26c>
  94813. } else {
  94814. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  94815. 8026382: 4b1a ldr r3, [pc, #104] @ (80263ec <ip4_reass+0x2b4>)
  94816. 8026384: 681b ldr r3, [r3, #0]
  94817. 8026386: 637b str r3, [r7, #52] @ 0x34
  94818. 8026388: e007 b.n 802639a <ip4_reass+0x262>
  94819. if (ipr_prev->next == ipr) {
  94820. 802638a: 6b7b ldr r3, [r7, #52] @ 0x34
  94821. 802638c: 681b ldr r3, [r3, #0]
  94822. 802638e: 6b3a ldr r2, [r7, #48] @ 0x30
  94823. 8026390: 429a cmp r2, r3
  94824. 8026392: d006 beq.n 80263a2 <ip4_reass+0x26a>
  94825. for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) {
  94826. 8026394: 6b7b ldr r3, [r7, #52] @ 0x34
  94827. 8026396: 681b ldr r3, [r3, #0]
  94828. 8026398: 637b str r3, [r7, #52] @ 0x34
  94829. 802639a: 6b7b ldr r3, [r7, #52] @ 0x34
  94830. 802639c: 2b00 cmp r3, #0
  94831. 802639e: d1f4 bne.n 802638a <ip4_reass+0x252>
  94832. 80263a0: e000 b.n 80263a4 <ip4_reass+0x26c>
  94833. break;
  94834. 80263a2: bf00 nop
  94835. }
  94836. }
  94837. }
  94838. /* release the sources allocate for the fragment queue entry */
  94839. ip_reass_dequeue_datagram(ipr, ipr_prev);
  94840. 80263a4: 6b79 ldr r1, [r7, #52] @ 0x34
  94841. 80263a6: 6b38 ldr r0, [r7, #48] @ 0x30
  94842. 80263a8: f7ff fd2e bl 8025e08 <ip_reass_dequeue_datagram>
  94843. /* and adjust the number of pbufs currently queued for reassembly. */
  94844. clen = pbuf_clen(p);
  94845. 80263ac: 6878 ldr r0, [r7, #4]
  94846. 80263ae: f7f4 fd1b bl 801ade8 <pbuf_clen>
  94847. 80263b2: 4603 mov r3, r0
  94848. 80263b4: 843b strh r3, [r7, #32]
  94849. LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen);
  94850. 80263b6: 4b0c ldr r3, [pc, #48] @ (80263e8 <ip4_reass+0x2b0>)
  94851. 80263b8: 881b ldrh r3, [r3, #0]
  94852. 80263ba: 8c3a ldrh r2, [r7, #32]
  94853. 80263bc: 429a cmp r2, r3
  94854. 80263be: d906 bls.n 80263ce <ip4_reass+0x296>
  94855. 80263c0: 4b0b ldr r3, [pc, #44] @ (80263f0 <ip4_reass+0x2b8>)
  94856. 80263c2: f240 229b movw r2, #667 @ 0x29b
  94857. 80263c6: 490b ldr r1, [pc, #44] @ (80263f4 <ip4_reass+0x2bc>)
  94858. 80263c8: 480b ldr r0, [pc, #44] @ (80263f8 <ip4_reass+0x2c0>)
  94859. 80263ca: f003 fef7 bl 802a1bc <iprintf>
  94860. ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen);
  94861. 80263ce: 4b06 ldr r3, [pc, #24] @ (80263e8 <ip4_reass+0x2b0>)
  94862. 80263d0: 881a ldrh r2, [r3, #0]
  94863. 80263d2: 8c3b ldrh r3, [r7, #32]
  94864. 80263d4: 1ad3 subs r3, r2, r3
  94865. 80263d6: b29a uxth r2, r3
  94866. 80263d8: 4b03 ldr r3, [pc, #12] @ (80263e8 <ip4_reass+0x2b0>)
  94867. 80263da: 801a strh r2, [r3, #0]
  94868. MIB2_STATS_INC(mib2.ipreasmoks);
  94869. /* Return the pbuf chain */
  94870. return p;
  94871. 80263dc: 687b ldr r3, [r7, #4]
  94872. 80263de: e038 b.n 8026452 <ip4_reass+0x31a>
  94873. }
  94874. /* the datagram is not (yet?) reassembled completely */
  94875. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount));
  94876. return NULL;
  94877. 80263e0: 2300 movs r3, #0
  94878. 80263e2: e036 b.n 8026452 <ip4_reass+0x31a>
  94879. goto nullreturn_ipr;
  94880. 80263e4: bf00 nop
  94881. 80263e6: e00a b.n 80263fe <ip4_reass+0x2c6>
  94882. 80263e8: 2402b0f8 .word 0x2402b0f8
  94883. 80263ec: 2402b0f4 .word 0x2402b0f4
  94884. 80263f0: 08030f00 .word 0x08030f00
  94885. 80263f4: 08031070 .word 0x08031070
  94886. 80263f8: 08030f48 .word 0x08030f48
  94887. goto nullreturn_ipr;
  94888. 80263fc: bf00 nop
  94889. nullreturn_ipr:
  94890. LWIP_ASSERT("ipr != NULL", ipr != NULL);
  94891. 80263fe: 6b3b ldr r3, [r7, #48] @ 0x30
  94892. 8026400: 2b00 cmp r3, #0
  94893. 8026402: d106 bne.n 8026412 <ip4_reass+0x2da>
  94894. 8026404: 4b15 ldr r3, [pc, #84] @ (802645c <ip4_reass+0x324>)
  94895. 8026406: f44f 722a mov.w r2, #680 @ 0x2a8
  94896. 802640a: 4915 ldr r1, [pc, #84] @ (8026460 <ip4_reass+0x328>)
  94897. 802640c: 4815 ldr r0, [pc, #84] @ (8026464 <ip4_reass+0x32c>)
  94898. 802640e: f003 fed5 bl 802a1bc <iprintf>
  94899. if (ipr->p == NULL) {
  94900. 8026412: 6b3b ldr r3, [r7, #48] @ 0x30
  94901. 8026414: 685b ldr r3, [r3, #4]
  94902. 8026416: 2b00 cmp r3, #0
  94903. 8026418: d116 bne.n 8026448 <ip4_reass+0x310>
  94904. /* dropped pbuf after creating a new datagram entry: remove the entry, too */
  94905. LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams);
  94906. 802641a: 4b13 ldr r3, [pc, #76] @ (8026468 <ip4_reass+0x330>)
  94907. 802641c: 681b ldr r3, [r3, #0]
  94908. 802641e: 6b3a ldr r2, [r7, #48] @ 0x30
  94909. 8026420: 429a cmp r2, r3
  94910. 8026422: d006 beq.n 8026432 <ip4_reass+0x2fa>
  94911. 8026424: 4b0d ldr r3, [pc, #52] @ (802645c <ip4_reass+0x324>)
  94912. 8026426: f240 22ab movw r2, #683 @ 0x2ab
  94913. 802642a: 4910 ldr r1, [pc, #64] @ (802646c <ip4_reass+0x334>)
  94914. 802642c: 480d ldr r0, [pc, #52] @ (8026464 <ip4_reass+0x32c>)
  94915. 802642e: f003 fec5 bl 802a1bc <iprintf>
  94916. ip_reass_dequeue_datagram(ipr, NULL);
  94917. 8026432: 2100 movs r1, #0
  94918. 8026434: 6b38 ldr r0, [r7, #48] @ 0x30
  94919. 8026436: f7ff fce7 bl 8025e08 <ip_reass_dequeue_datagram>
  94920. 802643a: e006 b.n 802644a <ip4_reass+0x312>
  94921. goto nullreturn;
  94922. 802643c: bf00 nop
  94923. 802643e: e004 b.n 802644a <ip4_reass+0x312>
  94924. goto nullreturn;
  94925. 8026440: bf00 nop
  94926. 8026442: e002 b.n 802644a <ip4_reass+0x312>
  94927. goto nullreturn;
  94928. 8026444: bf00 nop
  94929. 8026446: e000 b.n 802644a <ip4_reass+0x312>
  94930. }
  94931. nullreturn:
  94932. 8026448: bf00 nop
  94933. LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n"));
  94934. IPFRAG_STATS_INC(ip_frag.drop);
  94935. pbuf_free(p);
  94936. 802644a: 6878 ldr r0, [r7, #4]
  94937. 802644c: f7f4 fc3e bl 801accc <pbuf_free>
  94938. return NULL;
  94939. 8026450: 2300 movs r3, #0
  94940. }
  94941. 8026452: 4618 mov r0, r3
  94942. 8026454: 3738 adds r7, #56 @ 0x38
  94943. 8026456: 46bd mov sp, r7
  94944. 8026458: bd80 pop {r7, pc}
  94945. 802645a: bf00 nop
  94946. 802645c: 08030f00 .word 0x08030f00
  94947. 8026460: 0803108c .word 0x0803108c
  94948. 8026464: 08030f48 .word 0x08030f48
  94949. 8026468: 2402b0f4 .word 0x2402b0f4
  94950. 802646c: 08031098 .word 0x08031098
  94951. 08026470 <ip_frag_alloc_pbuf_custom_ref>:
  94952. #if IP_FRAG
  94953. #if !LWIP_NETIF_TX_SINGLE_PBUF
  94954. /** Allocate a new struct pbuf_custom_ref */
  94955. static struct pbuf_custom_ref *
  94956. ip_frag_alloc_pbuf_custom_ref(void)
  94957. {
  94958. 8026470: b580 push {r7, lr}
  94959. 8026472: af00 add r7, sp, #0
  94960. return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF);
  94961. 8026474: 2005 movs r0, #5
  94962. 8026476: f7f3 fcc5 bl 8019e04 <memp_malloc>
  94963. 802647a: 4603 mov r3, r0
  94964. }
  94965. 802647c: 4618 mov r0, r3
  94966. 802647e: bd80 pop {r7, pc}
  94967. 08026480 <ip_frag_free_pbuf_custom_ref>:
  94968. /** Free a struct pbuf_custom_ref */
  94969. static void
  94970. ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p)
  94971. {
  94972. 8026480: b580 push {r7, lr}
  94973. 8026482: b082 sub sp, #8
  94974. 8026484: af00 add r7, sp, #0
  94975. 8026486: 6078 str r0, [r7, #4]
  94976. LWIP_ASSERT("p != NULL", p != NULL);
  94977. 8026488: 687b ldr r3, [r7, #4]
  94978. 802648a: 2b00 cmp r3, #0
  94979. 802648c: d106 bne.n 802649c <ip_frag_free_pbuf_custom_ref+0x1c>
  94980. 802648e: 4b07 ldr r3, [pc, #28] @ (80264ac <ip_frag_free_pbuf_custom_ref+0x2c>)
  94981. 8026490: f44f 7231 mov.w r2, #708 @ 0x2c4
  94982. 8026494: 4906 ldr r1, [pc, #24] @ (80264b0 <ip_frag_free_pbuf_custom_ref+0x30>)
  94983. 8026496: 4807 ldr r0, [pc, #28] @ (80264b4 <ip_frag_free_pbuf_custom_ref+0x34>)
  94984. 8026498: f003 fe90 bl 802a1bc <iprintf>
  94985. memp_free(MEMP_FRAG_PBUF, p);
  94986. 802649c: 6879 ldr r1, [r7, #4]
  94987. 802649e: 2005 movs r0, #5
  94988. 80264a0: f7f3 fd26 bl 8019ef0 <memp_free>
  94989. }
  94990. 80264a4: bf00 nop
  94991. 80264a6: 3708 adds r7, #8
  94992. 80264a8: 46bd mov sp, r7
  94993. 80264aa: bd80 pop {r7, pc}
  94994. 80264ac: 08030f00 .word 0x08030f00
  94995. 80264b0: 080310b8 .word 0x080310b8
  94996. 80264b4: 08030f48 .word 0x08030f48
  94997. 080264b8 <ipfrag_free_pbuf_custom>:
  94998. /** Free-callback function to free a 'struct pbuf_custom_ref', called by
  94999. * pbuf_free. */
  95000. static void
  95001. ipfrag_free_pbuf_custom(struct pbuf *p)
  95002. {
  95003. 80264b8: b580 push {r7, lr}
  95004. 80264ba: b084 sub sp, #16
  95005. 80264bc: af00 add r7, sp, #0
  95006. 80264be: 6078 str r0, [r7, #4]
  95007. struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p;
  95008. 80264c0: 687b ldr r3, [r7, #4]
  95009. 80264c2: 60fb str r3, [r7, #12]
  95010. LWIP_ASSERT("pcr != NULL", pcr != NULL);
  95011. 80264c4: 68fb ldr r3, [r7, #12]
  95012. 80264c6: 2b00 cmp r3, #0
  95013. 80264c8: d106 bne.n 80264d8 <ipfrag_free_pbuf_custom+0x20>
  95014. 80264ca: 4b11 ldr r3, [pc, #68] @ (8026510 <ipfrag_free_pbuf_custom+0x58>)
  95015. 80264cc: f240 22ce movw r2, #718 @ 0x2ce
  95016. 80264d0: 4910 ldr r1, [pc, #64] @ (8026514 <ipfrag_free_pbuf_custom+0x5c>)
  95017. 80264d2: 4811 ldr r0, [pc, #68] @ (8026518 <ipfrag_free_pbuf_custom+0x60>)
  95018. 80264d4: f003 fe72 bl 802a1bc <iprintf>
  95019. LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p);
  95020. 80264d8: 68fa ldr r2, [r7, #12]
  95021. 80264da: 687b ldr r3, [r7, #4]
  95022. 80264dc: 429a cmp r2, r3
  95023. 80264de: d006 beq.n 80264ee <ipfrag_free_pbuf_custom+0x36>
  95024. 80264e0: 4b0b ldr r3, [pc, #44] @ (8026510 <ipfrag_free_pbuf_custom+0x58>)
  95025. 80264e2: f240 22cf movw r2, #719 @ 0x2cf
  95026. 80264e6: 490d ldr r1, [pc, #52] @ (802651c <ipfrag_free_pbuf_custom+0x64>)
  95027. 80264e8: 480b ldr r0, [pc, #44] @ (8026518 <ipfrag_free_pbuf_custom+0x60>)
  95028. 80264ea: f003 fe67 bl 802a1bc <iprintf>
  95029. if (pcr->original != NULL) {
  95030. 80264ee: 68fb ldr r3, [r7, #12]
  95031. 80264f0: 695b ldr r3, [r3, #20]
  95032. 80264f2: 2b00 cmp r3, #0
  95033. 80264f4: d004 beq.n 8026500 <ipfrag_free_pbuf_custom+0x48>
  95034. pbuf_free(pcr->original);
  95035. 80264f6: 68fb ldr r3, [r7, #12]
  95036. 80264f8: 695b ldr r3, [r3, #20]
  95037. 80264fa: 4618 mov r0, r3
  95038. 80264fc: f7f4 fbe6 bl 801accc <pbuf_free>
  95039. }
  95040. ip_frag_free_pbuf_custom_ref(pcr);
  95041. 8026500: 68f8 ldr r0, [r7, #12]
  95042. 8026502: f7ff ffbd bl 8026480 <ip_frag_free_pbuf_custom_ref>
  95043. }
  95044. 8026506: bf00 nop
  95045. 8026508: 3710 adds r7, #16
  95046. 802650a: 46bd mov sp, r7
  95047. 802650c: bd80 pop {r7, pc}
  95048. 802650e: bf00 nop
  95049. 8026510: 08030f00 .word 0x08030f00
  95050. 8026514: 080310c4 .word 0x080310c4
  95051. 8026518: 08030f48 .word 0x08030f48
  95052. 802651c: 080310d0 .word 0x080310d0
  95053. 08026520 <ip4_frag>:
  95054. *
  95055. * @return ERR_OK if sent successfully, err_t otherwise
  95056. */
  95057. err_t
  95058. ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest)
  95059. {
  95060. 8026520: b580 push {r7, lr}
  95061. 8026522: b094 sub sp, #80 @ 0x50
  95062. 8026524: af02 add r7, sp, #8
  95063. 8026526: 60f8 str r0, [r7, #12]
  95064. 8026528: 60b9 str r1, [r7, #8]
  95065. 802652a: 607a str r2, [r7, #4]
  95066. struct pbuf *rambuf;
  95067. #if !LWIP_NETIF_TX_SINGLE_PBUF
  95068. struct pbuf *newpbuf;
  95069. u16_t newpbuflen = 0;
  95070. 802652c: 2300 movs r3, #0
  95071. 802652e: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  95072. u16_t left_to_copy;
  95073. #endif
  95074. struct ip_hdr *original_iphdr;
  95075. struct ip_hdr *iphdr;
  95076. const u16_t nfb = (u16_t)((netif->mtu - IP_HLEN) / 8);
  95077. 8026532: 68bb ldr r3, [r7, #8]
  95078. 8026534: 8d1b ldrh r3, [r3, #40] @ 0x28
  95079. 8026536: 3b14 subs r3, #20
  95080. 8026538: 2b00 cmp r3, #0
  95081. 802653a: da00 bge.n 802653e <ip4_frag+0x1e>
  95082. 802653c: 3307 adds r3, #7
  95083. 802653e: 10db asrs r3, r3, #3
  95084. 8026540: 877b strh r3, [r7, #58] @ 0x3a
  95085. u16_t left, fragsize;
  95086. u16_t ofo;
  95087. int last;
  95088. u16_t poff = IP_HLEN;
  95089. 8026542: 2314 movs r3, #20
  95090. 8026544: 87fb strh r3, [r7, #62] @ 0x3e
  95091. u16_t tmp;
  95092. int mf_set;
  95093. original_iphdr = (struct ip_hdr *)p->payload;
  95094. 8026546: 68fb ldr r3, [r7, #12]
  95095. 8026548: 685b ldr r3, [r3, #4]
  95096. 802654a: 637b str r3, [r7, #52] @ 0x34
  95097. iphdr = original_iphdr;
  95098. 802654c: 6b7b ldr r3, [r7, #52] @ 0x34
  95099. 802654e: 633b str r3, [r7, #48] @ 0x30
  95100. if (IPH_HL_BYTES(iphdr) != IP_HLEN) {
  95101. 8026550: 6b3b ldr r3, [r7, #48] @ 0x30
  95102. 8026552: 781b ldrb r3, [r3, #0]
  95103. 8026554: f003 030f and.w r3, r3, #15
  95104. 8026558: b2db uxtb r3, r3
  95105. 802655a: 009b lsls r3, r3, #2
  95106. 802655c: b2db uxtb r3, r3
  95107. 802655e: 2b14 cmp r3, #20
  95108. 8026560: d002 beq.n 8026568 <ip4_frag+0x48>
  95109. /* ip4_frag() does not support IP options */
  95110. return ERR_VAL;
  95111. 8026562: f06f 0305 mvn.w r3, #5
  95112. 8026566: e110 b.n 802678a <ip4_frag+0x26a>
  95113. }
  95114. LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL);
  95115. 8026568: 68fb ldr r3, [r7, #12]
  95116. 802656a: 895b ldrh r3, [r3, #10]
  95117. 802656c: 2b13 cmp r3, #19
  95118. 802656e: d809 bhi.n 8026584 <ip4_frag+0x64>
  95119. 8026570: 4b88 ldr r3, [pc, #544] @ (8026794 <ip4_frag+0x274>)
  95120. 8026572: f44f 723f mov.w r2, #764 @ 0x2fc
  95121. 8026576: 4988 ldr r1, [pc, #544] @ (8026798 <ip4_frag+0x278>)
  95122. 8026578: 4888 ldr r0, [pc, #544] @ (802679c <ip4_frag+0x27c>)
  95123. 802657a: f003 fe1f bl 802a1bc <iprintf>
  95124. 802657e: f06f 0305 mvn.w r3, #5
  95125. 8026582: e102 b.n 802678a <ip4_frag+0x26a>
  95126. /* Save original offset */
  95127. tmp = lwip_ntohs(IPH_OFFSET(iphdr));
  95128. 8026584: 6b3b ldr r3, [r7, #48] @ 0x30
  95129. 8026586: 88db ldrh r3, [r3, #6]
  95130. 8026588: b29b uxth r3, r3
  95131. 802658a: 4618 mov r0, r3
  95132. 802658c: f7f2 febc bl 8019308 <lwip_htons>
  95133. 8026590: 4603 mov r3, r0
  95134. 8026592: 87bb strh r3, [r7, #60] @ 0x3c
  95135. ofo = tmp & IP_OFFMASK;
  95136. 8026594: 8fbb ldrh r3, [r7, #60] @ 0x3c
  95137. 8026596: f3c3 030c ubfx r3, r3, #0, #13
  95138. 802659a: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  95139. /* already fragmented? if so, the last fragment we create must have MF, too */
  95140. mf_set = tmp & IP_MF;
  95141. 802659e: 8fbb ldrh r3, [r7, #60] @ 0x3c
  95142. 80265a0: f403 5300 and.w r3, r3, #8192 @ 0x2000
  95143. 80265a4: 62fb str r3, [r7, #44] @ 0x2c
  95144. left = (u16_t)(p->tot_len - IP_HLEN);
  95145. 80265a6: 68fb ldr r3, [r7, #12]
  95146. 80265a8: 891b ldrh r3, [r3, #8]
  95147. 80265aa: 3b14 subs r3, #20
  95148. 80265ac: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  95149. while (left) {
  95150. 80265b0: e0e1 b.n 8026776 <ip4_frag+0x256>
  95151. /* Fill this fragment */
  95152. fragsize = LWIP_MIN(left, (u16_t)(nfb * 8));
  95153. 80265b2: 8f7b ldrh r3, [r7, #58] @ 0x3a
  95154. 80265b4: 00db lsls r3, r3, #3
  95155. 80265b6: b29b uxth r3, r3
  95156. 80265b8: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  95157. 80265bc: 4293 cmp r3, r2
  95158. 80265be: bf28 it cs
  95159. 80265c0: 4613 movcs r3, r2
  95160. 80265c2: 857b strh r3, [r7, #42] @ 0x2a
  95161. /* When not using a static buffer, create a chain of pbufs.
  95162. * The first will be a PBUF_RAM holding the link and IP header.
  95163. * The rest will be PBUF_REFs mirroring the pbuf chain to be fragged,
  95164. * but limited to the size of an mtu.
  95165. */
  95166. rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM);
  95167. 80265c4: f44f 7220 mov.w r2, #640 @ 0x280
  95168. 80265c8: 2114 movs r1, #20
  95169. 80265ca: 200e movs r0, #14
  95170. 80265cc: f7f4 f868 bl 801a6a0 <pbuf_alloc>
  95171. 80265d0: 6278 str r0, [r7, #36] @ 0x24
  95172. if (rambuf == NULL) {
  95173. 80265d2: 6a7b ldr r3, [r7, #36] @ 0x24
  95174. 80265d4: 2b00 cmp r3, #0
  95175. 80265d6: f000 80d5 beq.w 8026784 <ip4_frag+0x264>
  95176. goto memerr;
  95177. }
  95178. LWIP_ASSERT("this needs a pbuf in one piece!",
  95179. 80265da: 6a7b ldr r3, [r7, #36] @ 0x24
  95180. 80265dc: 895b ldrh r3, [r3, #10]
  95181. 80265de: 2b13 cmp r3, #19
  95182. 80265e0: d806 bhi.n 80265f0 <ip4_frag+0xd0>
  95183. 80265e2: 4b6c ldr r3, [pc, #432] @ (8026794 <ip4_frag+0x274>)
  95184. 80265e4: f44f 7249 mov.w r2, #804 @ 0x324
  95185. 80265e8: 496d ldr r1, [pc, #436] @ (80267a0 <ip4_frag+0x280>)
  95186. 80265ea: 486c ldr r0, [pc, #432] @ (802679c <ip4_frag+0x27c>)
  95187. 80265ec: f003 fde6 bl 802a1bc <iprintf>
  95188. (rambuf->len >= (IP_HLEN)));
  95189. SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN);
  95190. 80265f0: 6a7b ldr r3, [r7, #36] @ 0x24
  95191. 80265f2: 685b ldr r3, [r3, #4]
  95192. 80265f4: 2214 movs r2, #20
  95193. 80265f6: 6b79 ldr r1, [r7, #52] @ 0x34
  95194. 80265f8: 4618 mov r0, r3
  95195. 80265fa: f004 f868 bl 802a6ce <memcpy>
  95196. iphdr = (struct ip_hdr *)rambuf->payload;
  95197. 80265fe: 6a7b ldr r3, [r7, #36] @ 0x24
  95198. 8026600: 685b ldr r3, [r3, #4]
  95199. 8026602: 633b str r3, [r7, #48] @ 0x30
  95200. left_to_copy = fragsize;
  95201. 8026604: 8d7b ldrh r3, [r7, #42] @ 0x2a
  95202. 8026606: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  95203. while (left_to_copy) {
  95204. 802660a: e064 b.n 80266d6 <ip4_frag+0x1b6>
  95205. struct pbuf_custom_ref *pcr;
  95206. u16_t plen = (u16_t)(p->len - poff);
  95207. 802660c: 68fb ldr r3, [r7, #12]
  95208. 802660e: 895a ldrh r2, [r3, #10]
  95209. 8026610: 8ffb ldrh r3, [r7, #62] @ 0x3e
  95210. 8026612: 1ad3 subs r3, r2, r3
  95211. 8026614: 83fb strh r3, [r7, #30]
  95212. LWIP_ASSERT("p->len >= poff", p->len >= poff);
  95213. 8026616: 68fb ldr r3, [r7, #12]
  95214. 8026618: 895b ldrh r3, [r3, #10]
  95215. 802661a: 8ffa ldrh r2, [r7, #62] @ 0x3e
  95216. 802661c: 429a cmp r2, r3
  95217. 802661e: d906 bls.n 802662e <ip4_frag+0x10e>
  95218. 8026620: 4b5c ldr r3, [pc, #368] @ (8026794 <ip4_frag+0x274>)
  95219. 8026622: f240 322d movw r2, #813 @ 0x32d
  95220. 8026626: 495f ldr r1, [pc, #380] @ (80267a4 <ip4_frag+0x284>)
  95221. 8026628: 485c ldr r0, [pc, #368] @ (802679c <ip4_frag+0x27c>)
  95222. 802662a: f003 fdc7 bl 802a1bc <iprintf>
  95223. newpbuflen = LWIP_MIN(left_to_copy, plen);
  95224. 802662e: 8bfa ldrh r2, [r7, #30]
  95225. 8026630: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  95226. 8026634: 4293 cmp r3, r2
  95227. 8026636: bf28 it cs
  95228. 8026638: 4613 movcs r3, r2
  95229. 802663a: f8a7 3046 strh.w r3, [r7, #70] @ 0x46
  95230. /* Is this pbuf already empty? */
  95231. if (!newpbuflen) {
  95232. 802663e: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  95233. 8026642: 2b00 cmp r3, #0
  95234. 8026644: d105 bne.n 8026652 <ip4_frag+0x132>
  95235. poff = 0;
  95236. 8026646: 2300 movs r3, #0
  95237. 8026648: 87fb strh r3, [r7, #62] @ 0x3e
  95238. p = p->next;
  95239. 802664a: 68fb ldr r3, [r7, #12]
  95240. 802664c: 681b ldr r3, [r3, #0]
  95241. 802664e: 60fb str r3, [r7, #12]
  95242. continue;
  95243. 8026650: e041 b.n 80266d6 <ip4_frag+0x1b6>
  95244. }
  95245. pcr = ip_frag_alloc_pbuf_custom_ref();
  95246. 8026652: f7ff ff0d bl 8026470 <ip_frag_alloc_pbuf_custom_ref>
  95247. 8026656: 61b8 str r0, [r7, #24]
  95248. if (pcr == NULL) {
  95249. 8026658: 69bb ldr r3, [r7, #24]
  95250. 802665a: 2b00 cmp r3, #0
  95251. 802665c: d103 bne.n 8026666 <ip4_frag+0x146>
  95252. pbuf_free(rambuf);
  95253. 802665e: 6a78 ldr r0, [r7, #36] @ 0x24
  95254. 8026660: f7f4 fb34 bl 801accc <pbuf_free>
  95255. goto memerr;
  95256. 8026664: e08f b.n 8026786 <ip4_frag+0x266>
  95257. }
  95258. /* Mirror this pbuf, although we might not need all of it. */
  95259. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  95260. 8026666: 69b8 ldr r0, [r7, #24]
  95261. (u8_t *)p->payload + poff, newpbuflen);
  95262. 8026668: 68fb ldr r3, [r7, #12]
  95263. 802666a: 685a ldr r2, [r3, #4]
  95264. newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,
  95265. 802666c: 8ffb ldrh r3, [r7, #62] @ 0x3e
  95266. 802666e: 4413 add r3, r2
  95267. 8026670: f8b7 1046 ldrh.w r1, [r7, #70] @ 0x46
  95268. 8026674: f8b7 2046 ldrh.w r2, [r7, #70] @ 0x46
  95269. 8026678: 9201 str r2, [sp, #4]
  95270. 802667a: 9300 str r3, [sp, #0]
  95271. 802667c: 4603 mov r3, r0
  95272. 802667e: 2241 movs r2, #65 @ 0x41
  95273. 8026680: 2000 movs r0, #0
  95274. 8026682: f7f4 f939 bl 801a8f8 <pbuf_alloced_custom>
  95275. 8026686: 6178 str r0, [r7, #20]
  95276. if (newpbuf == NULL) {
  95277. 8026688: 697b ldr r3, [r7, #20]
  95278. 802668a: 2b00 cmp r3, #0
  95279. 802668c: d106 bne.n 802669c <ip4_frag+0x17c>
  95280. ip_frag_free_pbuf_custom_ref(pcr);
  95281. 802668e: 69b8 ldr r0, [r7, #24]
  95282. 8026690: f7ff fef6 bl 8026480 <ip_frag_free_pbuf_custom_ref>
  95283. pbuf_free(rambuf);
  95284. 8026694: 6a78 ldr r0, [r7, #36] @ 0x24
  95285. 8026696: f7f4 fb19 bl 801accc <pbuf_free>
  95286. goto memerr;
  95287. 802669a: e074 b.n 8026786 <ip4_frag+0x266>
  95288. }
  95289. pbuf_ref(p);
  95290. 802669c: 68f8 ldr r0, [r7, #12]
  95291. 802669e: f7f4 fbbb bl 801ae18 <pbuf_ref>
  95292. pcr->original = p;
  95293. 80266a2: 69bb ldr r3, [r7, #24]
  95294. 80266a4: 68fa ldr r2, [r7, #12]
  95295. 80266a6: 615a str r2, [r3, #20]
  95296. pcr->pc.custom_free_function = ipfrag_free_pbuf_custom;
  95297. 80266a8: 69bb ldr r3, [r7, #24]
  95298. 80266aa: 4a3f ldr r2, [pc, #252] @ (80267a8 <ip4_frag+0x288>)
  95299. 80266ac: 611a str r2, [r3, #16]
  95300. /* Add it to end of rambuf's chain, but using pbuf_cat, not pbuf_chain
  95301. * so that it is removed when pbuf_dechain is later called on rambuf.
  95302. */
  95303. pbuf_cat(rambuf, newpbuf);
  95304. 80266ae: 6979 ldr r1, [r7, #20]
  95305. 80266b0: 6a78 ldr r0, [r7, #36] @ 0x24
  95306. 80266b2: f7f4 fbd9 bl 801ae68 <pbuf_cat>
  95307. left_to_copy = (u16_t)(left_to_copy - newpbuflen);
  95308. 80266b6: f8b7 2044 ldrh.w r2, [r7, #68] @ 0x44
  95309. 80266ba: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  95310. 80266be: 1ad3 subs r3, r2, r3
  95311. 80266c0: f8a7 3044 strh.w r3, [r7, #68] @ 0x44
  95312. if (left_to_copy) {
  95313. 80266c4: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  95314. 80266c8: 2b00 cmp r3, #0
  95315. 80266ca: d004 beq.n 80266d6 <ip4_frag+0x1b6>
  95316. poff = 0;
  95317. 80266cc: 2300 movs r3, #0
  95318. 80266ce: 87fb strh r3, [r7, #62] @ 0x3e
  95319. p = p->next;
  95320. 80266d0: 68fb ldr r3, [r7, #12]
  95321. 80266d2: 681b ldr r3, [r3, #0]
  95322. 80266d4: 60fb str r3, [r7, #12]
  95323. while (left_to_copy) {
  95324. 80266d6: f8b7 3044 ldrh.w r3, [r7, #68] @ 0x44
  95325. 80266da: 2b00 cmp r3, #0
  95326. 80266dc: d196 bne.n 802660c <ip4_frag+0xec>
  95327. }
  95328. }
  95329. poff = (u16_t)(poff + newpbuflen);
  95330. 80266de: 8ffa ldrh r2, [r7, #62] @ 0x3e
  95331. 80266e0: f8b7 3046 ldrh.w r3, [r7, #70] @ 0x46
  95332. 80266e4: 4413 add r3, r2
  95333. 80266e6: 87fb strh r3, [r7, #62] @ 0x3e
  95334. #endif /* LWIP_NETIF_TX_SINGLE_PBUF */
  95335. /* Correct header */
  95336. last = (left <= netif->mtu - IP_HLEN);
  95337. 80266e8: 68bb ldr r3, [r7, #8]
  95338. 80266ea: 8d1b ldrh r3, [r3, #40] @ 0x28
  95339. 80266ec: f1a3 0213 sub.w r2, r3, #19
  95340. 80266f0: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  95341. 80266f4: 429a cmp r2, r3
  95342. 80266f6: bfcc ite gt
  95343. 80266f8: 2301 movgt r3, #1
  95344. 80266fa: 2300 movle r3, #0
  95345. 80266fc: b2db uxtb r3, r3
  95346. 80266fe: 623b str r3, [r7, #32]
  95347. /* Set new offset and MF flag */
  95348. tmp = (IP_OFFMASK & (ofo));
  95349. 8026700: f8b7 3040 ldrh.w r3, [r7, #64] @ 0x40
  95350. 8026704: f3c3 030c ubfx r3, r3, #0, #13
  95351. 8026708: 87bb strh r3, [r7, #60] @ 0x3c
  95352. if (!last || mf_set) {
  95353. 802670a: 6a3b ldr r3, [r7, #32]
  95354. 802670c: 2b00 cmp r3, #0
  95355. 802670e: d002 beq.n 8026716 <ip4_frag+0x1f6>
  95356. 8026710: 6afb ldr r3, [r7, #44] @ 0x2c
  95357. 8026712: 2b00 cmp r3, #0
  95358. 8026714: d003 beq.n 802671e <ip4_frag+0x1fe>
  95359. /* the last fragment has MF set if the input frame had it */
  95360. tmp = tmp | IP_MF;
  95361. 8026716: 8fbb ldrh r3, [r7, #60] @ 0x3c
  95362. 8026718: f443 5300 orr.w r3, r3, #8192 @ 0x2000
  95363. 802671c: 87bb strh r3, [r7, #60] @ 0x3c
  95364. }
  95365. IPH_OFFSET_SET(iphdr, lwip_htons(tmp));
  95366. 802671e: 8fbb ldrh r3, [r7, #60] @ 0x3c
  95367. 8026720: 4618 mov r0, r3
  95368. 8026722: f7f2 fdf1 bl 8019308 <lwip_htons>
  95369. 8026726: 4603 mov r3, r0
  95370. 8026728: 461a mov r2, r3
  95371. 802672a: 6b3b ldr r3, [r7, #48] @ 0x30
  95372. 802672c: 80da strh r2, [r3, #6]
  95373. IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN)));
  95374. 802672e: 8d7b ldrh r3, [r7, #42] @ 0x2a
  95375. 8026730: 3314 adds r3, #20
  95376. 8026732: b29b uxth r3, r3
  95377. 8026734: 4618 mov r0, r3
  95378. 8026736: f7f2 fde7 bl 8019308 <lwip_htons>
  95379. 802673a: 4603 mov r3, r0
  95380. 802673c: 461a mov r2, r3
  95381. 802673e: 6b3b ldr r3, [r7, #48] @ 0x30
  95382. 8026740: 805a strh r2, [r3, #2]
  95383. IPH_CHKSUM_SET(iphdr, 0);
  95384. 8026742: 6b3b ldr r3, [r7, #48] @ 0x30
  95385. 8026744: 2200 movs r2, #0
  95386. 8026746: 729a strb r2, [r3, #10]
  95387. 8026748: 2200 movs r2, #0
  95388. 802674a: 72da strb r2, [r3, #11]
  95389. #endif /* CHECKSUM_GEN_IP */
  95390. /* No need for separate header pbuf - we allowed room for it in rambuf
  95391. * when allocated.
  95392. */
  95393. netif->output(netif, rambuf, dest);
  95394. 802674c: 68bb ldr r3, [r7, #8]
  95395. 802674e: 695b ldr r3, [r3, #20]
  95396. 8026750: 687a ldr r2, [r7, #4]
  95397. 8026752: 6a79 ldr r1, [r7, #36] @ 0x24
  95398. 8026754: 68b8 ldr r0, [r7, #8]
  95399. 8026756: 4798 blx r3
  95400. * recreate it next time round the loop. If we're lucky the hardware
  95401. * will have already sent the packet, the free will really free, and
  95402. * there will be zero memory penalty.
  95403. */
  95404. pbuf_free(rambuf);
  95405. 8026758: 6a78 ldr r0, [r7, #36] @ 0x24
  95406. 802675a: f7f4 fab7 bl 801accc <pbuf_free>
  95407. left = (u16_t)(left - fragsize);
  95408. 802675e: f8b7 2042 ldrh.w r2, [r7, #66] @ 0x42
  95409. 8026762: 8d7b ldrh r3, [r7, #42] @ 0x2a
  95410. 8026764: 1ad3 subs r3, r2, r3
  95411. 8026766: f8a7 3042 strh.w r3, [r7, #66] @ 0x42
  95412. ofo = (u16_t)(ofo + nfb);
  95413. 802676a: f8b7 2040 ldrh.w r2, [r7, #64] @ 0x40
  95414. 802676e: 8f7b ldrh r3, [r7, #58] @ 0x3a
  95415. 8026770: 4413 add r3, r2
  95416. 8026772: f8a7 3040 strh.w r3, [r7, #64] @ 0x40
  95417. while (left) {
  95418. 8026776: f8b7 3042 ldrh.w r3, [r7, #66] @ 0x42
  95419. 802677a: 2b00 cmp r3, #0
  95420. 802677c: f47f af19 bne.w 80265b2 <ip4_frag+0x92>
  95421. }
  95422. MIB2_STATS_INC(mib2.ipfragoks);
  95423. return ERR_OK;
  95424. 8026780: 2300 movs r3, #0
  95425. 8026782: e002 b.n 802678a <ip4_frag+0x26a>
  95426. goto memerr;
  95427. 8026784: bf00 nop
  95428. memerr:
  95429. MIB2_STATS_INC(mib2.ipfragfails);
  95430. return ERR_MEM;
  95431. 8026786: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95432. }
  95433. 802678a: 4618 mov r0, r3
  95434. 802678c: 3748 adds r7, #72 @ 0x48
  95435. 802678e: 46bd mov sp, r7
  95436. 8026790: bd80 pop {r7, pc}
  95437. 8026792: bf00 nop
  95438. 8026794: 08030f00 .word 0x08030f00
  95439. 8026798: 080310dc .word 0x080310dc
  95440. 802679c: 08030f48 .word 0x08030f48
  95441. 80267a0: 080310f8 .word 0x080310f8
  95442. 80267a4: 08031118 .word 0x08031118
  95443. 80267a8: 080264b9 .word 0x080264b9
  95444. 080267ac <ethernet_input>:
  95445. * @see ETHARP_SUPPORT_VLAN
  95446. * @see LWIP_HOOK_VLAN_CHECK
  95447. */
  95448. err_t
  95449. ethernet_input(struct pbuf *p, struct netif *netif)
  95450. {
  95451. 80267ac: b580 push {r7, lr}
  95452. 80267ae: b086 sub sp, #24
  95453. 80267b0: af00 add r7, sp, #0
  95454. 80267b2: 6078 str r0, [r7, #4]
  95455. 80267b4: 6039 str r1, [r7, #0]
  95456. struct eth_hdr *ethhdr;
  95457. u16_t type;
  95458. #if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6
  95459. u16_t next_hdr_offset = SIZEOF_ETH_HDR;
  95460. 80267b6: 230e movs r3, #14
  95461. 80267b8: 82fb strh r3, [r7, #22]
  95462. #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */
  95463. LWIP_ASSERT_CORE_LOCKED();
  95464. 80267ba: f7ea f95f bl 8010a7c <sys_check_core_locking>
  95465. if (p->len <= SIZEOF_ETH_HDR) {
  95466. 80267be: 687b ldr r3, [r7, #4]
  95467. 80267c0: 895b ldrh r3, [r3, #10]
  95468. 80267c2: 2b0e cmp r3, #14
  95469. 80267c4: d96e bls.n 80268a4 <ethernet_input+0xf8>
  95470. ETHARP_STATS_INC(etharp.drop);
  95471. MIB2_STATS_NETIF_INC(netif, ifinerrors);
  95472. goto free_and_return;
  95473. }
  95474. if (p->if_idx == NETIF_NO_INDEX) {
  95475. 80267c6: 687b ldr r3, [r7, #4]
  95476. 80267c8: 7bdb ldrb r3, [r3, #15]
  95477. 80267ca: 2b00 cmp r3, #0
  95478. 80267cc: d106 bne.n 80267dc <ethernet_input+0x30>
  95479. p->if_idx = netif_get_index(netif);
  95480. 80267ce: 683b ldr r3, [r7, #0]
  95481. 80267d0: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  95482. 80267d4: 3301 adds r3, #1
  95483. 80267d6: b2da uxtb r2, r3
  95484. 80267d8: 687b ldr r3, [r7, #4]
  95485. 80267da: 73da strb r2, [r3, #15]
  95486. }
  95487. /* points to packet payload, which starts with an Ethernet header */
  95488. ethhdr = (struct eth_hdr *)p->payload;
  95489. 80267dc: 687b ldr r3, [r7, #4]
  95490. 80267de: 685b ldr r3, [r3, #4]
  95491. 80267e0: 613b str r3, [r7, #16]
  95492. (unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->dest.addr[5],
  95493. (unsigned char)ethhdr->src.addr[0], (unsigned char)ethhdr->src.addr[1], (unsigned char)ethhdr->src.addr[2],
  95494. (unsigned char)ethhdr->src.addr[3], (unsigned char)ethhdr->src.addr[4], (unsigned char)ethhdr->src.addr[5],
  95495. lwip_htons(ethhdr->type)));
  95496. type = ethhdr->type;
  95497. 80267e2: 693b ldr r3, [r7, #16]
  95498. 80267e4: 7b1a ldrb r2, [r3, #12]
  95499. 80267e6: 7b5b ldrb r3, [r3, #13]
  95500. 80267e8: 021b lsls r3, r3, #8
  95501. 80267ea: 4313 orrs r3, r2
  95502. 80267ec: 81fb strh r3, [r7, #14]
  95503. #if LWIP_ARP_FILTER_NETIF
  95504. netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type));
  95505. #endif /* LWIP_ARP_FILTER_NETIF*/
  95506. if (ethhdr->dest.addr[0] & 1) {
  95507. 80267ee: 693b ldr r3, [r7, #16]
  95508. 80267f0: 781b ldrb r3, [r3, #0]
  95509. 80267f2: f003 0301 and.w r3, r3, #1
  95510. 80267f6: 2b00 cmp r3, #0
  95511. 80267f8: d023 beq.n 8026842 <ethernet_input+0x96>
  95512. /* this might be a multicast or broadcast packet */
  95513. if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) {
  95514. 80267fa: 693b ldr r3, [r7, #16]
  95515. 80267fc: 781b ldrb r3, [r3, #0]
  95516. 80267fe: 2b01 cmp r3, #1
  95517. 8026800: d10f bne.n 8026822 <ethernet_input+0x76>
  95518. #if LWIP_IPV4
  95519. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  95520. 8026802: 693b ldr r3, [r7, #16]
  95521. 8026804: 785b ldrb r3, [r3, #1]
  95522. 8026806: 2b00 cmp r3, #0
  95523. 8026808: d11b bne.n 8026842 <ethernet_input+0x96>
  95524. (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) {
  95525. 802680a: 693b ldr r3, [r7, #16]
  95526. 802680c: 789b ldrb r3, [r3, #2]
  95527. if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) &&
  95528. 802680e: 2b5e cmp r3, #94 @ 0x5e
  95529. 8026810: d117 bne.n 8026842 <ethernet_input+0x96>
  95530. /* mark the pbuf as link-layer multicast */
  95531. p->flags |= PBUF_FLAG_LLMCAST;
  95532. 8026812: 687b ldr r3, [r7, #4]
  95533. 8026814: 7b5b ldrb r3, [r3, #13]
  95534. 8026816: f043 0310 orr.w r3, r3, #16
  95535. 802681a: b2da uxtb r2, r3
  95536. 802681c: 687b ldr r3, [r7, #4]
  95537. 802681e: 735a strb r2, [r3, #13]
  95538. 8026820: e00f b.n 8026842 <ethernet_input+0x96>
  95539. (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) {
  95540. /* mark the pbuf as link-layer multicast */
  95541. p->flags |= PBUF_FLAG_LLMCAST;
  95542. }
  95543. #endif /* LWIP_IPV6 */
  95544. else if (eth_addr_cmp(&ethhdr->dest, &ethbroadcast)) {
  95545. 8026822: 693b ldr r3, [r7, #16]
  95546. 8026824: 2206 movs r2, #6
  95547. 8026826: 4928 ldr r1, [pc, #160] @ (80268c8 <ethernet_input+0x11c>)
  95548. 8026828: 4618 mov r0, r3
  95549. 802682a: f003 fe2f bl 802a48c <memcmp>
  95550. 802682e: 4603 mov r3, r0
  95551. 8026830: 2b00 cmp r3, #0
  95552. 8026832: d106 bne.n 8026842 <ethernet_input+0x96>
  95553. /* mark the pbuf as link-layer broadcast */
  95554. p->flags |= PBUF_FLAG_LLBCAST;
  95555. 8026834: 687b ldr r3, [r7, #4]
  95556. 8026836: 7b5b ldrb r3, [r3, #13]
  95557. 8026838: f043 0308 orr.w r3, r3, #8
  95558. 802683c: b2da uxtb r2, r3
  95559. 802683e: 687b ldr r3, [r7, #4]
  95560. 8026840: 735a strb r2, [r3, #13]
  95561. }
  95562. }
  95563. switch (type) {
  95564. 8026842: 89fb ldrh r3, [r7, #14]
  95565. 8026844: 2b08 cmp r3, #8
  95566. 8026846: d003 beq.n 8026850 <ethernet_input+0xa4>
  95567. 8026848: f5b3 6fc1 cmp.w r3, #1544 @ 0x608
  95568. 802684c: d014 beq.n 8026878 <ethernet_input+0xcc>
  95569. }
  95570. #endif
  95571. ETHARP_STATS_INC(etharp.proterr);
  95572. ETHARP_STATS_INC(etharp.drop);
  95573. MIB2_STATS_NETIF_INC(netif, ifinunknownprotos);
  95574. goto free_and_return;
  95575. 802684e: e032 b.n 80268b6 <ethernet_input+0x10a>
  95576. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  95577. 8026850: 683b ldr r3, [r7, #0]
  95578. 8026852: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  95579. 8026856: f003 0308 and.w r3, r3, #8
  95580. 802685a: 2b00 cmp r3, #0
  95581. 802685c: d024 beq.n 80268a8 <ethernet_input+0xfc>
  95582. if (pbuf_remove_header(p, next_hdr_offset)) {
  95583. 802685e: 8afb ldrh r3, [r7, #22]
  95584. 8026860: 4619 mov r1, r3
  95585. 8026862: 6878 ldr r0, [r7, #4]
  95586. 8026864: f7f4 f97a bl 801ab5c <pbuf_remove_header>
  95587. 8026868: 4603 mov r3, r0
  95588. 802686a: 2b00 cmp r3, #0
  95589. 802686c: d11e bne.n 80268ac <ethernet_input+0x100>
  95590. ip4_input(p, netif);
  95591. 802686e: 6839 ldr r1, [r7, #0]
  95592. 8026870: 6878 ldr r0, [r7, #4]
  95593. 8026872: f7fe fd2f bl 80252d4 <ip4_input>
  95594. break;
  95595. 8026876: e013 b.n 80268a0 <ethernet_input+0xf4>
  95596. if (!(netif->flags & NETIF_FLAG_ETHARP)) {
  95597. 8026878: 683b ldr r3, [r7, #0]
  95598. 802687a: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
  95599. 802687e: f003 0308 and.w r3, r3, #8
  95600. 8026882: 2b00 cmp r3, #0
  95601. 8026884: d014 beq.n 80268b0 <ethernet_input+0x104>
  95602. if (pbuf_remove_header(p, next_hdr_offset)) {
  95603. 8026886: 8afb ldrh r3, [r7, #22]
  95604. 8026888: 4619 mov r1, r3
  95605. 802688a: 6878 ldr r0, [r7, #4]
  95606. 802688c: f7f4 f966 bl 801ab5c <pbuf_remove_header>
  95607. 8026890: 4603 mov r3, r0
  95608. 8026892: 2b00 cmp r3, #0
  95609. 8026894: d10e bne.n 80268b4 <ethernet_input+0x108>
  95610. etharp_input(p, netif);
  95611. 8026896: 6839 ldr r1, [r7, #0]
  95612. 8026898: 6878 ldr r0, [r7, #4]
  95613. 802689a: f7fd fe9d bl 80245d8 <etharp_input>
  95614. break;
  95615. 802689e: bf00 nop
  95616. }
  95617. /* This means the pbuf is freed or consumed,
  95618. so the caller doesn't have to free it again */
  95619. return ERR_OK;
  95620. 80268a0: 2300 movs r3, #0
  95621. 80268a2: e00c b.n 80268be <ethernet_input+0x112>
  95622. goto free_and_return;
  95623. 80268a4: bf00 nop
  95624. 80268a6: e006 b.n 80268b6 <ethernet_input+0x10a>
  95625. goto free_and_return;
  95626. 80268a8: bf00 nop
  95627. 80268aa: e004 b.n 80268b6 <ethernet_input+0x10a>
  95628. goto free_and_return;
  95629. 80268ac: bf00 nop
  95630. 80268ae: e002 b.n 80268b6 <ethernet_input+0x10a>
  95631. goto free_and_return;
  95632. 80268b0: bf00 nop
  95633. 80268b2: e000 b.n 80268b6 <ethernet_input+0x10a>
  95634. goto free_and_return;
  95635. 80268b4: bf00 nop
  95636. free_and_return:
  95637. pbuf_free(p);
  95638. 80268b6: 6878 ldr r0, [r7, #4]
  95639. 80268b8: f7f4 fa08 bl 801accc <pbuf_free>
  95640. return ERR_OK;
  95641. 80268bc: 2300 movs r3, #0
  95642. }
  95643. 80268be: 4618 mov r0, r3
  95644. 80268c0: 3718 adds r7, #24
  95645. 80268c2: 46bd mov sp, r7
  95646. 80268c4: bd80 pop {r7, pc}
  95647. 80268c6: bf00 nop
  95648. 80268c8: 080314fc .word 0x080314fc
  95649. 080268cc <ethernet_output>:
  95650. * @return ERR_OK if the packet was sent, any other err_t on failure
  95651. */
  95652. err_t
  95653. ethernet_output(struct netif * netif, struct pbuf * p,
  95654. const struct eth_addr * src, const struct eth_addr * dst,
  95655. u16_t eth_type) {
  95656. 80268cc: b580 push {r7, lr}
  95657. 80268ce: b086 sub sp, #24
  95658. 80268d0: af00 add r7, sp, #0
  95659. 80268d2: 60f8 str r0, [r7, #12]
  95660. 80268d4: 60b9 str r1, [r7, #8]
  95661. 80268d6: 607a str r2, [r7, #4]
  95662. 80268d8: 603b str r3, [r7, #0]
  95663. struct eth_hdr *ethhdr;
  95664. u16_t eth_type_be = lwip_htons(eth_type);
  95665. 80268da: 8c3b ldrh r3, [r7, #32]
  95666. 80268dc: 4618 mov r0, r3
  95667. 80268de: f7f2 fd13 bl 8019308 <lwip_htons>
  95668. 80268e2: 4603 mov r3, r0
  95669. 80268e4: 82fb strh r3, [r7, #22]
  95670. eth_type_be = PP_HTONS(ETHTYPE_VLAN);
  95671. } else
  95672. #endif /* ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET) */
  95673. {
  95674. if (pbuf_add_header(p, SIZEOF_ETH_HDR) != 0) {
  95675. 80268e6: 210e movs r1, #14
  95676. 80268e8: 68b8 ldr r0, [r7, #8]
  95677. 80268ea: f7f4 f927 bl 801ab3c <pbuf_add_header>
  95678. 80268ee: 4603 mov r3, r0
  95679. 80268f0: 2b00 cmp r3, #0
  95680. 80268f2: d127 bne.n 8026944 <ethernet_output+0x78>
  95681. goto pbuf_header_failed;
  95682. }
  95683. }
  95684. LWIP_ASSERT_CORE_LOCKED();
  95685. 80268f4: f7ea f8c2 bl 8010a7c <sys_check_core_locking>
  95686. ethhdr = (struct eth_hdr *)p->payload;
  95687. 80268f8: 68bb ldr r3, [r7, #8]
  95688. 80268fa: 685b ldr r3, [r3, #4]
  95689. 80268fc: 613b str r3, [r7, #16]
  95690. ethhdr->type = eth_type_be;
  95691. 80268fe: 693b ldr r3, [r7, #16]
  95692. 8026900: 8afa ldrh r2, [r7, #22]
  95693. 8026902: 819a strh r2, [r3, #12]
  95694. SMEMCPY(&ethhdr->dest, dst, ETH_HWADDR_LEN);
  95695. 8026904: 693b ldr r3, [r7, #16]
  95696. 8026906: 2206 movs r2, #6
  95697. 8026908: 6839 ldr r1, [r7, #0]
  95698. 802690a: 4618 mov r0, r3
  95699. 802690c: f003 fedf bl 802a6ce <memcpy>
  95700. SMEMCPY(&ethhdr->src, src, ETH_HWADDR_LEN);
  95701. 8026910: 693b ldr r3, [r7, #16]
  95702. 8026912: 3306 adds r3, #6
  95703. 8026914: 2206 movs r2, #6
  95704. 8026916: 6879 ldr r1, [r7, #4]
  95705. 8026918: 4618 mov r0, r3
  95706. 802691a: f003 fed8 bl 802a6ce <memcpy>
  95707. LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!",
  95708. 802691e: 68fb ldr r3, [r7, #12]
  95709. 8026920: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
  95710. 8026924: 2b06 cmp r3, #6
  95711. 8026926: d006 beq.n 8026936 <ethernet_output+0x6a>
  95712. 8026928: 4b0a ldr r3, [pc, #40] @ (8026954 <ethernet_output+0x88>)
  95713. 802692a: f44f 7299 mov.w r2, #306 @ 0x132
  95714. 802692e: 490a ldr r1, [pc, #40] @ (8026958 <ethernet_output+0x8c>)
  95715. 8026930: 480a ldr r0, [pc, #40] @ (802695c <ethernet_output+0x90>)
  95716. 8026932: f003 fc43 bl 802a1bc <iprintf>
  95717. (netif->hwaddr_len == ETH_HWADDR_LEN));
  95718. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
  95719. ("ethernet_output: sending packet %p\n", (void *)p));
  95720. /* send the packet */
  95721. return netif->linkoutput(netif, p);
  95722. 8026936: 68fb ldr r3, [r7, #12]
  95723. 8026938: 699b ldr r3, [r3, #24]
  95724. 802693a: 68b9 ldr r1, [r7, #8]
  95725. 802693c: 68f8 ldr r0, [r7, #12]
  95726. 802693e: 4798 blx r3
  95727. 8026940: 4603 mov r3, r0
  95728. 8026942: e002 b.n 802694a <ethernet_output+0x7e>
  95729. goto pbuf_header_failed;
  95730. 8026944: bf00 nop
  95731. pbuf_header_failed:
  95732. LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS,
  95733. ("ethernet_output: could not allocate room for header.\n"));
  95734. LINK_STATS_INC(link.lenerr);
  95735. return ERR_BUF;
  95736. 8026946: f06f 0301 mvn.w r3, #1
  95737. }
  95738. 802694a: 4618 mov r0, r3
  95739. 802694c: 3718 adds r7, #24
  95740. 802694e: 46bd mov sp, r7
  95741. 8026950: bd80 pop {r7, pc}
  95742. 8026952: bf00 nop
  95743. 8026954: 08031128 .word 0x08031128
  95744. 8026958: 08031160 .word 0x08031160
  95745. 802695c: 08031194 .word 0x08031194
  95746. 08026960 <sys_mbox_new>:
  95747. #endif
  95748. /*-----------------------------------------------------------------------------------*/
  95749. // Creates an empty mailbox.
  95750. err_t sys_mbox_new(sys_mbox_t *mbox, int size)
  95751. {
  95752. 8026960: b580 push {r7, lr}
  95753. 8026962: b082 sub sp, #8
  95754. 8026964: af00 add r7, sp, #0
  95755. 8026966: 6078 str r0, [r7, #4]
  95756. 8026968: 6039 str r1, [r7, #0]
  95757. #if (osCMSIS < 0x20000U)
  95758. osMessageQDef(QUEUE, size, void *);
  95759. *mbox = osMessageCreate(osMessageQ(QUEUE), NULL);
  95760. #else
  95761. *mbox = osMessageQueueNew(size, sizeof(void *), NULL);
  95762. 802696a: 683b ldr r3, [r7, #0]
  95763. 802696c: 2200 movs r2, #0
  95764. 802696e: 2104 movs r1, #4
  95765. 8026970: 4618 mov r0, r3
  95766. 8026972: f7ea fdab bl 80114cc <osMessageQueueNew>
  95767. 8026976: 4602 mov r2, r0
  95768. 8026978: 687b ldr r3, [r7, #4]
  95769. 802697a: 601a str r2, [r3, #0]
  95770. if(lwip_stats.sys.mbox.max < lwip_stats.sys.mbox.used)
  95771. {
  95772. lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used;
  95773. }
  95774. #endif /* SYS_STATS */
  95775. if(*mbox == NULL)
  95776. 802697c: 687b ldr r3, [r7, #4]
  95777. 802697e: 681b ldr r3, [r3, #0]
  95778. 8026980: 2b00 cmp r3, #0
  95779. 8026982: d102 bne.n 802698a <sys_mbox_new+0x2a>
  95780. return ERR_MEM;
  95781. 8026984: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95782. 8026988: e000 b.n 802698c <sys_mbox_new+0x2c>
  95783. return ERR_OK;
  95784. 802698a: 2300 movs r3, #0
  95785. }
  95786. 802698c: 4618 mov r0, r3
  95787. 802698e: 3708 adds r7, #8
  95788. 8026990: 46bd mov sp, r7
  95789. 8026992: bd80 pop {r7, pc}
  95790. 08026994 <sys_mbox_free>:
  95791. Deallocates a mailbox. If there are messages still present in the
  95792. mailbox when the mailbox is deallocated, it is an indication of a
  95793. programming error in lwIP and the developer should be notified.
  95794. */
  95795. void sys_mbox_free(sys_mbox_t *mbox)
  95796. {
  95797. 8026994: b580 push {r7, lr}
  95798. 8026996: b082 sub sp, #8
  95799. 8026998: af00 add r7, sp, #0
  95800. 802699a: 6078 str r0, [r7, #4]
  95801. #if (osCMSIS < 0x20000U)
  95802. if(osMessageWaiting(*mbox))
  95803. #else
  95804. if(osMessageQueueGetCount(*mbox))
  95805. 802699c: 687b ldr r3, [r7, #4]
  95806. 802699e: 681b ldr r3, [r3, #0]
  95807. 80269a0: 4618 mov r0, r3
  95808. 80269a2: f7ea fec5 bl 8011730 <osMessageQueueGetCount>
  95809. }
  95810. #if (osCMSIS < 0x20000U)
  95811. osMessageDelete(*mbox);
  95812. #else
  95813. osMessageQueueDelete(*mbox);
  95814. 80269a6: 687b ldr r3, [r7, #4]
  95815. 80269a8: 681b ldr r3, [r3, #0]
  95816. 80269aa: 4618 mov r0, r3
  95817. 80269ac: f7ea fee0 bl 8011770 <osMessageQueueDelete>
  95818. #endif
  95819. #if SYS_STATS
  95820. --lwip_stats.sys.mbox.used;
  95821. #endif /* SYS_STATS */
  95822. }
  95823. 80269b0: bf00 nop
  95824. 80269b2: 3708 adds r7, #8
  95825. 80269b4: 46bd mov sp, r7
  95826. 80269b6: bd80 pop {r7, pc}
  95827. 080269b8 <sys_mbox_trypost>:
  95828. /*-----------------------------------------------------------------------------------*/
  95829. // Try to post the "msg" to the mailbox.
  95830. err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
  95831. {
  95832. 80269b8: b580 push {r7, lr}
  95833. 80269ba: b084 sub sp, #16
  95834. 80269bc: af00 add r7, sp, #0
  95835. 80269be: 6078 str r0, [r7, #4]
  95836. 80269c0: 6039 str r1, [r7, #0]
  95837. err_t result;
  95838. #if (osCMSIS < 0x20000U)
  95839. if(osMessagePut(*mbox, (uint32_t)msg, 0) == osOK)
  95840. #else
  95841. if(osMessageQueuePut(*mbox, &msg, 0, 0) == osOK)
  95842. 80269c2: 687b ldr r3, [r7, #4]
  95843. 80269c4: 6818 ldr r0, [r3, #0]
  95844. 80269c6: 4639 mov r1, r7
  95845. 80269c8: 2300 movs r3, #0
  95846. 80269ca: 2200 movs r2, #0
  95847. 80269cc: f7ea fdf2 bl 80115b4 <osMessageQueuePut>
  95848. 80269d0: 4603 mov r3, r0
  95849. 80269d2: 2b00 cmp r3, #0
  95850. 80269d4: d102 bne.n 80269dc <sys_mbox_trypost+0x24>
  95851. #endif
  95852. {
  95853. result = ERR_OK;
  95854. 80269d6: 2300 movs r3, #0
  95855. 80269d8: 73fb strb r3, [r7, #15]
  95856. 80269da: e001 b.n 80269e0 <sys_mbox_trypost+0x28>
  95857. }
  95858. else
  95859. {
  95860. // could not post, queue must be full
  95861. result = ERR_MEM;
  95862. 80269dc: 23ff movs r3, #255 @ 0xff
  95863. 80269de: 73fb strb r3, [r7, #15]
  95864. #if SYS_STATS
  95865. lwip_stats.sys.mbox.err++;
  95866. #endif /* SYS_STATS */
  95867. }
  95868. return result;
  95869. 80269e0: f997 300f ldrsb.w r3, [r7, #15]
  95870. }
  95871. 80269e4: 4618 mov r0, r3
  95872. 80269e6: 3710 adds r7, #16
  95873. 80269e8: 46bd mov sp, r7
  95874. 80269ea: bd80 pop {r7, pc}
  95875. 080269ec <sys_arch_mbox_fetch>:
  95876. Note that a function with a similar name, sys_mbox_fetch(), is
  95877. implemented by lwIP.
  95878. */
  95879. u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
  95880. {
  95881. 80269ec: b580 push {r7, lr}
  95882. 80269ee: b086 sub sp, #24
  95883. 80269f0: af00 add r7, sp, #0
  95884. 80269f2: 60f8 str r0, [r7, #12]
  95885. 80269f4: 60b9 str r1, [r7, #8]
  95886. 80269f6: 607a str r2, [r7, #4]
  95887. #if (osCMSIS < 0x20000U)
  95888. osEvent event;
  95889. uint32_t starttime = osKernelSysTick();
  95890. #else
  95891. osStatus_t status;
  95892. uint32_t starttime = osKernelGetTickCount();
  95893. 80269f8: f7ea f9b6 bl 8010d68 <osKernelGetTickCount>
  95894. 80269fc: 6178 str r0, [r7, #20]
  95895. #endif
  95896. if(timeout != 0)
  95897. 80269fe: 687b ldr r3, [r7, #4]
  95898. 8026a00: 2b00 cmp r3, #0
  95899. 8026a02: d013 beq.n 8026a2c <sys_arch_mbox_fetch+0x40>
  95900. {
  95901. *msg = (void *)event.value.v;
  95902. return (osKernelSysTick() - starttime);
  95903. }
  95904. #else
  95905. status = osMessageQueueGet(*mbox, msg, 0, timeout);
  95906. 8026a04: 68fb ldr r3, [r7, #12]
  95907. 8026a06: 6818 ldr r0, [r3, #0]
  95908. 8026a08: 687b ldr r3, [r7, #4]
  95909. 8026a0a: 2200 movs r2, #0
  95910. 8026a0c: 68b9 ldr r1, [r7, #8]
  95911. 8026a0e: f7ea fe31 bl 8011674 <osMessageQueueGet>
  95912. 8026a12: 6138 str r0, [r7, #16]
  95913. if (status == osOK)
  95914. 8026a14: 693b ldr r3, [r7, #16]
  95915. 8026a16: 2b00 cmp r3, #0
  95916. 8026a18: d105 bne.n 8026a26 <sys_arch_mbox_fetch+0x3a>
  95917. {
  95918. return (osKernelGetTickCount() - starttime);
  95919. 8026a1a: f7ea f9a5 bl 8010d68 <osKernelGetTickCount>
  95920. 8026a1e: 4602 mov r2, r0
  95921. 8026a20: 697b ldr r3, [r7, #20]
  95922. 8026a22: 1ad3 subs r3, r2, r3
  95923. 8026a24: e00f b.n 8026a46 <sys_arch_mbox_fetch+0x5a>
  95924. }
  95925. #endif
  95926. else
  95927. {
  95928. return SYS_ARCH_TIMEOUT;
  95929. 8026a26: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95930. 8026a2a: e00c b.n 8026a46 <sys_arch_mbox_fetch+0x5a>
  95931. #if (osCMSIS < 0x20000U)
  95932. event = osMessageGet (*mbox, osWaitForever);
  95933. *msg = (void *)event.value.v;
  95934. return (osKernelSysTick() - starttime);
  95935. #else
  95936. osMessageQueueGet(*mbox, msg, 0, osWaitForever );
  95937. 8026a2c: 68fb ldr r3, [r7, #12]
  95938. 8026a2e: 6818 ldr r0, [r3, #0]
  95939. 8026a30: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95940. 8026a34: 2200 movs r2, #0
  95941. 8026a36: 68b9 ldr r1, [r7, #8]
  95942. 8026a38: f7ea fe1c bl 8011674 <osMessageQueueGet>
  95943. return (osKernelGetTickCount() - starttime);
  95944. 8026a3c: f7ea f994 bl 8010d68 <osKernelGetTickCount>
  95945. 8026a40: 4602 mov r2, r0
  95946. 8026a42: 697b ldr r3, [r7, #20]
  95947. 8026a44: 1ad3 subs r3, r2, r3
  95948. #endif
  95949. }
  95950. }
  95951. 8026a46: 4618 mov r0, r3
  95952. 8026a48: 3718 adds r7, #24
  95953. 8026a4a: 46bd mov sp, r7
  95954. 8026a4c: bd80 pop {r7, pc}
  95955. 08026a4e <sys_arch_mbox_tryfetch>:
  95956. /*
  95957. Similar to sys_arch_mbox_fetch, but if message is not ready immediately, we'll
  95958. return with SYS_MBOX_EMPTY. On success, 0 is returned.
  95959. */
  95960. u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
  95961. {
  95962. 8026a4e: b580 push {r7, lr}
  95963. 8026a50: b082 sub sp, #8
  95964. 8026a52: af00 add r7, sp, #0
  95965. 8026a54: 6078 str r0, [r7, #4]
  95966. 8026a56: 6039 str r1, [r7, #0]
  95967. if(event.status == osEventMessage)
  95968. {
  95969. *msg = (void *)event.value.v;
  95970. #else
  95971. if (osMessageQueueGet(*mbox, msg, 0, 0) == osOK)
  95972. 8026a58: 687b ldr r3, [r7, #4]
  95973. 8026a5a: 6818 ldr r0, [r3, #0]
  95974. 8026a5c: 2300 movs r3, #0
  95975. 8026a5e: 2200 movs r2, #0
  95976. 8026a60: 6839 ldr r1, [r7, #0]
  95977. 8026a62: f7ea fe07 bl 8011674 <osMessageQueueGet>
  95978. 8026a66: 4603 mov r3, r0
  95979. 8026a68: 2b00 cmp r3, #0
  95980. 8026a6a: d101 bne.n 8026a70 <sys_arch_mbox_tryfetch+0x22>
  95981. {
  95982. #endif
  95983. return ERR_OK;
  95984. 8026a6c: 2300 movs r3, #0
  95985. 8026a6e: e001 b.n 8026a74 <sys_arch_mbox_tryfetch+0x26>
  95986. }
  95987. else
  95988. {
  95989. return SYS_MBOX_EMPTY;
  95990. 8026a70: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  95991. }
  95992. }
  95993. 8026a74: 4618 mov r0, r3
  95994. 8026a76: 3708 adds r7, #8
  95995. 8026a78: 46bd mov sp, r7
  95996. 8026a7a: bd80 pop {r7, pc}
  95997. 08026a7c <sys_mbox_valid>:
  95998. /*----------------------------------------------------------------------------------*/
  95999. int sys_mbox_valid(sys_mbox_t *mbox)
  96000. {
  96001. 8026a7c: b480 push {r7}
  96002. 8026a7e: b083 sub sp, #12
  96003. 8026a80: af00 add r7, sp, #0
  96004. 8026a82: 6078 str r0, [r7, #4]
  96005. if (*mbox == SYS_MBOX_NULL)
  96006. 8026a84: 687b ldr r3, [r7, #4]
  96007. 8026a86: 681b ldr r3, [r3, #0]
  96008. 8026a88: 2b00 cmp r3, #0
  96009. 8026a8a: d101 bne.n 8026a90 <sys_mbox_valid+0x14>
  96010. return 0;
  96011. 8026a8c: 2300 movs r3, #0
  96012. 8026a8e: e000 b.n 8026a92 <sys_mbox_valid+0x16>
  96013. else
  96014. return 1;
  96015. 8026a90: 2301 movs r3, #1
  96016. }
  96017. 8026a92: 4618 mov r0, r3
  96018. 8026a94: 370c adds r7, #12
  96019. 8026a96: 46bd mov sp, r7
  96020. 8026a98: f85d 7b04 ldr.w r7, [sp], #4
  96021. 8026a9c: 4770 bx lr
  96022. 08026a9e <sys_mbox_set_invalid>:
  96023. /*-----------------------------------------------------------------------------------*/
  96024. void sys_mbox_set_invalid(sys_mbox_t *mbox)
  96025. {
  96026. 8026a9e: b480 push {r7}
  96027. 8026aa0: b083 sub sp, #12
  96028. 8026aa2: af00 add r7, sp, #0
  96029. 8026aa4: 6078 str r0, [r7, #4]
  96030. *mbox = SYS_MBOX_NULL;
  96031. 8026aa6: 687b ldr r3, [r7, #4]
  96032. 8026aa8: 2200 movs r2, #0
  96033. 8026aaa: 601a str r2, [r3, #0]
  96034. }
  96035. 8026aac: bf00 nop
  96036. 8026aae: 370c adds r7, #12
  96037. 8026ab0: 46bd mov sp, r7
  96038. 8026ab2: f85d 7b04 ldr.w r7, [sp], #4
  96039. 8026ab6: 4770 bx lr
  96040. 08026ab8 <sys_sem_new>:
  96041. /*-----------------------------------------------------------------------------------*/
  96042. // Creates a new semaphore. The "count" argument specifies
  96043. // the initial state of the semaphore.
  96044. err_t sys_sem_new(sys_sem_t *sem, u8_t count)
  96045. {
  96046. 8026ab8: b580 push {r7, lr}
  96047. 8026aba: b082 sub sp, #8
  96048. 8026abc: af00 add r7, sp, #0
  96049. 8026abe: 6078 str r0, [r7, #4]
  96050. 8026ac0: 460b mov r3, r1
  96051. 8026ac2: 70fb strb r3, [r7, #3]
  96052. #if (osCMSIS < 0x20000U)
  96053. osSemaphoreDef(SEM);
  96054. *sem = osSemaphoreCreate (osSemaphore(SEM), 1);
  96055. #else
  96056. *sem = osSemaphoreNew(UINT16_MAX, count, NULL);
  96057. 8026ac4: 78fb ldrb r3, [r7, #3]
  96058. 8026ac6: 2200 movs r2, #0
  96059. 8026ac8: 4619 mov r1, r3
  96060. 8026aca: f64f 70ff movw r0, #65535 @ 0xffff
  96061. 8026ace: f7ea fbb9 bl 8011244 <osSemaphoreNew>
  96062. 8026ad2: 4602 mov r2, r0
  96063. 8026ad4: 687b ldr r3, [r7, #4]
  96064. 8026ad6: 601a str r2, [r3, #0]
  96065. #endif
  96066. if(*sem == NULL)
  96067. 8026ad8: 687b ldr r3, [r7, #4]
  96068. 8026ada: 681b ldr r3, [r3, #0]
  96069. 8026adc: 2b00 cmp r3, #0
  96070. 8026ade: d102 bne.n 8026ae6 <sys_sem_new+0x2e>
  96071. {
  96072. #if SYS_STATS
  96073. ++lwip_stats.sys.sem.err;
  96074. #endif /* SYS_STATS */
  96075. return ERR_MEM;
  96076. 8026ae0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96077. 8026ae4: e009 b.n 8026afa <sys_sem_new+0x42>
  96078. }
  96079. if(count == 0) // Means it can't be taken
  96080. 8026ae6: 78fb ldrb r3, [r7, #3]
  96081. 8026ae8: 2b00 cmp r3, #0
  96082. 8026aea: d105 bne.n 8026af8 <sys_sem_new+0x40>
  96083. {
  96084. #if (osCMSIS < 0x20000U)
  96085. osSemaphoreWait(*sem, 0);
  96086. #else
  96087. osSemaphoreAcquire(*sem, 0);
  96088. 8026aec: 687b ldr r3, [r7, #4]
  96089. 8026aee: 681b ldr r3, [r3, #0]
  96090. 8026af0: 2100 movs r1, #0
  96091. 8026af2: 4618 mov r0, r3
  96092. 8026af4: f7ea fc30 bl 8011358 <osSemaphoreAcquire>
  96093. if (lwip_stats.sys.sem.max < lwip_stats.sys.sem.used) {
  96094. lwip_stats.sys.sem.max = lwip_stats.sys.sem.used;
  96095. }
  96096. #endif /* SYS_STATS */
  96097. return ERR_OK;
  96098. 8026af8: 2300 movs r3, #0
  96099. }
  96100. 8026afa: 4618 mov r0, r3
  96101. 8026afc: 3708 adds r7, #8
  96102. 8026afe: 46bd mov sp, r7
  96103. 8026b00: bd80 pop {r7, pc}
  96104. 08026b02 <sys_arch_sem_wait>:
  96105. Notice that lwIP implements a function with a similar name,
  96106. sys_sem_wait(), that uses the sys_arch_sem_wait() function.
  96107. */
  96108. u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
  96109. {
  96110. 8026b02: b580 push {r7, lr}
  96111. 8026b04: b084 sub sp, #16
  96112. 8026b06: af00 add r7, sp, #0
  96113. 8026b08: 6078 str r0, [r7, #4]
  96114. 8026b0a: 6039 str r1, [r7, #0]
  96115. #if (osCMSIS < 0x20000U)
  96116. uint32_t starttime = osKernelSysTick();
  96117. #else
  96118. uint32_t starttime = osKernelGetTickCount();
  96119. 8026b0c: f7ea f92c bl 8010d68 <osKernelGetTickCount>
  96120. 8026b10: 60f8 str r0, [r7, #12]
  96121. #endif
  96122. if(timeout != 0)
  96123. 8026b12: 683b ldr r3, [r7, #0]
  96124. 8026b14: 2b00 cmp r3, #0
  96125. 8026b16: d011 beq.n 8026b3c <sys_arch_sem_wait+0x3a>
  96126. #if (osCMSIS < 0x20000U)
  96127. if(osSemaphoreWait (*sem, timeout) == osOK)
  96128. {
  96129. return (osKernelSysTick() - starttime);
  96130. #else
  96131. if(osSemaphoreAcquire(*sem, timeout) == osOK)
  96132. 8026b18: 687b ldr r3, [r7, #4]
  96133. 8026b1a: 681b ldr r3, [r3, #0]
  96134. 8026b1c: 6839 ldr r1, [r7, #0]
  96135. 8026b1e: 4618 mov r0, r3
  96136. 8026b20: f7ea fc1a bl 8011358 <osSemaphoreAcquire>
  96137. 8026b24: 4603 mov r3, r0
  96138. 8026b26: 2b00 cmp r3, #0
  96139. 8026b28: d105 bne.n 8026b36 <sys_arch_sem_wait+0x34>
  96140. {
  96141. return (osKernelGetTickCount() - starttime);
  96142. 8026b2a: f7ea f91d bl 8010d68 <osKernelGetTickCount>
  96143. 8026b2e: 4602 mov r2, r0
  96144. 8026b30: 68fb ldr r3, [r7, #12]
  96145. 8026b32: 1ad3 subs r3, r2, r3
  96146. 8026b34: e012 b.n 8026b5c <sys_arch_sem_wait+0x5a>
  96147. #endif
  96148. }
  96149. else
  96150. {
  96151. return SYS_ARCH_TIMEOUT;
  96152. 8026b36: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96153. 8026b3a: e00f b.n 8026b5c <sys_arch_sem_wait+0x5a>
  96154. {
  96155. #if (osCMSIS < 0x20000U)
  96156. while(osSemaphoreWait (*sem, osWaitForever) != osOK);
  96157. return (osKernelSysTick() - starttime);
  96158. #else
  96159. while(osSemaphoreAcquire(*sem, osWaitForever) != osOK);
  96160. 8026b3c: bf00 nop
  96161. 8026b3e: 687b ldr r3, [r7, #4]
  96162. 8026b40: 681b ldr r3, [r3, #0]
  96163. 8026b42: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96164. 8026b46: 4618 mov r0, r3
  96165. 8026b48: f7ea fc06 bl 8011358 <osSemaphoreAcquire>
  96166. 8026b4c: 4603 mov r3, r0
  96167. 8026b4e: 2b00 cmp r3, #0
  96168. 8026b50: d1f5 bne.n 8026b3e <sys_arch_sem_wait+0x3c>
  96169. return (osKernelGetTickCount() - starttime);
  96170. 8026b52: f7ea f909 bl 8010d68 <osKernelGetTickCount>
  96171. 8026b56: 4602 mov r2, r0
  96172. 8026b58: 68fb ldr r3, [r7, #12]
  96173. 8026b5a: 1ad3 subs r3, r2, r3
  96174. #endif
  96175. }
  96176. }
  96177. 8026b5c: 4618 mov r0, r3
  96178. 8026b5e: 3710 adds r7, #16
  96179. 8026b60: 46bd mov sp, r7
  96180. 8026b62: bd80 pop {r7, pc}
  96181. 08026b64 <sys_sem_signal>:
  96182. /*-----------------------------------------------------------------------------------*/
  96183. // Signals a semaphore
  96184. void sys_sem_signal(sys_sem_t *sem)
  96185. {
  96186. 8026b64: b580 push {r7, lr}
  96187. 8026b66: b082 sub sp, #8
  96188. 8026b68: af00 add r7, sp, #0
  96189. 8026b6a: 6078 str r0, [r7, #4]
  96190. osSemaphoreRelease(*sem);
  96191. 8026b6c: 687b ldr r3, [r7, #4]
  96192. 8026b6e: 681b ldr r3, [r3, #0]
  96193. 8026b70: 4618 mov r0, r3
  96194. 8026b72: f7ea fc43 bl 80113fc <osSemaphoreRelease>
  96195. }
  96196. 8026b76: bf00 nop
  96197. 8026b78: 3708 adds r7, #8
  96198. 8026b7a: 46bd mov sp, r7
  96199. 8026b7c: bd80 pop {r7, pc}
  96200. 08026b7e <sys_sem_free>:
  96201. /*-----------------------------------------------------------------------------------*/
  96202. // Deallocates a semaphore
  96203. void sys_sem_free(sys_sem_t *sem)
  96204. {
  96205. 8026b7e: b580 push {r7, lr}
  96206. 8026b80: b082 sub sp, #8
  96207. 8026b82: af00 add r7, sp, #0
  96208. 8026b84: 6078 str r0, [r7, #4]
  96209. #if SYS_STATS
  96210. --lwip_stats.sys.sem.used;
  96211. #endif /* SYS_STATS */
  96212. osSemaphoreDelete(*sem);
  96213. 8026b86: 687b ldr r3, [r7, #4]
  96214. 8026b88: 681b ldr r3, [r3, #0]
  96215. 8026b8a: 4618 mov r0, r3
  96216. 8026b8c: f7ea fc7a bl 8011484 <osSemaphoreDelete>
  96217. }
  96218. 8026b90: bf00 nop
  96219. 8026b92: 3708 adds r7, #8
  96220. 8026b94: 46bd mov sp, r7
  96221. 8026b96: bd80 pop {r7, pc}
  96222. 08026b98 <sys_sem_valid>:
  96223. /*-----------------------------------------------------------------------------------*/
  96224. int sys_sem_valid(sys_sem_t *sem)
  96225. {
  96226. 8026b98: b480 push {r7}
  96227. 8026b9a: b083 sub sp, #12
  96228. 8026b9c: af00 add r7, sp, #0
  96229. 8026b9e: 6078 str r0, [r7, #4]
  96230. if (*sem == SYS_SEM_NULL)
  96231. 8026ba0: 687b ldr r3, [r7, #4]
  96232. 8026ba2: 681b ldr r3, [r3, #0]
  96233. 8026ba4: 2b00 cmp r3, #0
  96234. 8026ba6: d101 bne.n 8026bac <sys_sem_valid+0x14>
  96235. return 0;
  96236. 8026ba8: 2300 movs r3, #0
  96237. 8026baa: e000 b.n 8026bae <sys_sem_valid+0x16>
  96238. else
  96239. return 1;
  96240. 8026bac: 2301 movs r3, #1
  96241. }
  96242. 8026bae: 4618 mov r0, r3
  96243. 8026bb0: 370c adds r7, #12
  96244. 8026bb2: 46bd mov sp, r7
  96245. 8026bb4: f85d 7b04 ldr.w r7, [sp], #4
  96246. 8026bb8: 4770 bx lr
  96247. 08026bba <sys_sem_set_invalid>:
  96248. /*-----------------------------------------------------------------------------------*/
  96249. void sys_sem_set_invalid(sys_sem_t *sem)
  96250. {
  96251. 8026bba: b480 push {r7}
  96252. 8026bbc: b083 sub sp, #12
  96253. 8026bbe: af00 add r7, sp, #0
  96254. 8026bc0: 6078 str r0, [r7, #4]
  96255. *sem = SYS_SEM_NULL;
  96256. 8026bc2: 687b ldr r3, [r7, #4]
  96257. 8026bc4: 2200 movs r2, #0
  96258. 8026bc6: 601a str r2, [r3, #0]
  96259. }
  96260. 8026bc8: bf00 nop
  96261. 8026bca: 370c adds r7, #12
  96262. 8026bcc: 46bd mov sp, r7
  96263. 8026bce: f85d 7b04 ldr.w r7, [sp], #4
  96264. 8026bd2: 4770 bx lr
  96265. 08026bd4 <sys_init>:
  96266. #else
  96267. osMutexId_t lwip_sys_mutex;
  96268. #endif
  96269. // Initialize sys arch
  96270. void sys_init(void)
  96271. {
  96272. 8026bd4: b580 push {r7, lr}
  96273. 8026bd6: af00 add r7, sp, #0
  96274. #if (osCMSIS < 0x20000U)
  96275. lwip_sys_mutex = osMutexCreate(osMutex(lwip_sys_mutex));
  96276. #else
  96277. lwip_sys_mutex = osMutexNew(NULL);
  96278. 8026bd8: 2000 movs r0, #0
  96279. 8026bda: f7ea fa25 bl 8011028 <osMutexNew>
  96280. 8026bde: 4603 mov r3, r0
  96281. 8026be0: 4a01 ldr r2, [pc, #4] @ (8026be8 <sys_init+0x14>)
  96282. 8026be2: 6013 str r3, [r2, #0]
  96283. #endif
  96284. }
  96285. 8026be4: bf00 nop
  96286. 8026be6: bd80 pop {r7, pc}
  96287. 8026be8: 2402b0fc .word 0x2402b0fc
  96288. 08026bec <sys_mutex_new>:
  96289. /* Mutexes*/
  96290. /*-----------------------------------------------------------------------------------*/
  96291. /*-----------------------------------------------------------------------------------*/
  96292. #if LWIP_COMPAT_MUTEX == 0
  96293. /* Create a new mutex*/
  96294. err_t sys_mutex_new(sys_mutex_t *mutex) {
  96295. 8026bec: b580 push {r7, lr}
  96296. 8026bee: b082 sub sp, #8
  96297. 8026bf0: af00 add r7, sp, #0
  96298. 8026bf2: 6078 str r0, [r7, #4]
  96299. #if (osCMSIS < 0x20000U)
  96300. osMutexDef(MUTEX);
  96301. *mutex = osMutexCreate(osMutex(MUTEX));
  96302. #else
  96303. *mutex = osMutexNew(NULL);
  96304. 8026bf4: 2000 movs r0, #0
  96305. 8026bf6: f7ea fa17 bl 8011028 <osMutexNew>
  96306. 8026bfa: 4602 mov r2, r0
  96307. 8026bfc: 687b ldr r3, [r7, #4]
  96308. 8026bfe: 601a str r2, [r3, #0]
  96309. #endif
  96310. if(*mutex == NULL)
  96311. 8026c00: 687b ldr r3, [r7, #4]
  96312. 8026c02: 681b ldr r3, [r3, #0]
  96313. 8026c04: 2b00 cmp r3, #0
  96314. 8026c06: d102 bne.n 8026c0e <sys_mutex_new+0x22>
  96315. {
  96316. #if SYS_STATS
  96317. ++lwip_stats.sys.mutex.err;
  96318. #endif /* SYS_STATS */
  96319. return ERR_MEM;
  96320. 8026c08: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96321. 8026c0c: e000 b.n 8026c10 <sys_mutex_new+0x24>
  96322. ++lwip_stats.sys.mutex.used;
  96323. if (lwip_stats.sys.mutex.max < lwip_stats.sys.mutex.used) {
  96324. lwip_stats.sys.mutex.max = lwip_stats.sys.mutex.used;
  96325. }
  96326. #endif /* SYS_STATS */
  96327. return ERR_OK;
  96328. 8026c0e: 2300 movs r3, #0
  96329. }
  96330. 8026c10: 4618 mov r0, r3
  96331. 8026c12: 3708 adds r7, #8
  96332. 8026c14: 46bd mov sp, r7
  96333. 8026c16: bd80 pop {r7, pc}
  96334. 08026c18 <sys_mutex_lock>:
  96335. osMutexDelete(*mutex);
  96336. }
  96337. /*-----------------------------------------------------------------------------------*/
  96338. /* Lock a mutex*/
  96339. void sys_mutex_lock(sys_mutex_t *mutex)
  96340. {
  96341. 8026c18: b580 push {r7, lr}
  96342. 8026c1a: b082 sub sp, #8
  96343. 8026c1c: af00 add r7, sp, #0
  96344. 8026c1e: 6078 str r0, [r7, #4]
  96345. #if (osCMSIS < 0x20000U)
  96346. osMutexWait(*mutex, osWaitForever);
  96347. #else
  96348. osMutexAcquire(*mutex, osWaitForever);
  96349. 8026c20: 687b ldr r3, [r7, #4]
  96350. 8026c22: 681b ldr r3, [r3, #0]
  96351. 8026c24: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96352. 8026c28: 4618 mov r0, r3
  96353. 8026c2a: f7ea fa83 bl 8011134 <osMutexAcquire>
  96354. #endif
  96355. }
  96356. 8026c2e: bf00 nop
  96357. 8026c30: 3708 adds r7, #8
  96358. 8026c32: 46bd mov sp, r7
  96359. 8026c34: bd80 pop {r7, pc}
  96360. 08026c36 <sys_mutex_unlock>:
  96361. /*-----------------------------------------------------------------------------------*/
  96362. /* Unlock a mutex*/
  96363. void sys_mutex_unlock(sys_mutex_t *mutex)
  96364. {
  96365. 8026c36: b580 push {r7, lr}
  96366. 8026c38: b082 sub sp, #8
  96367. 8026c3a: af00 add r7, sp, #0
  96368. 8026c3c: 6078 str r0, [r7, #4]
  96369. osMutexRelease(*mutex);
  96370. 8026c3e: 687b ldr r3, [r7, #4]
  96371. 8026c40: 681b ldr r3, [r3, #0]
  96372. 8026c42: 4618 mov r0, r3
  96373. 8026c44: f7ea fac1 bl 80111ca <osMutexRelease>
  96374. }
  96375. 8026c48: bf00 nop
  96376. 8026c4a: 3708 adds r7, #8
  96377. 8026c4c: 46bd mov sp, r7
  96378. 8026c4e: bd80 pop {r7, pc}
  96379. 08026c50 <sys_thread_new>:
  96380. function "thread()". The "arg" argument will be passed as an argument to the
  96381. thread() function. The id of the new thread is returned. Both the id and
  96382. the priority are system dependent.
  96383. */
  96384. sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread , void *arg, int stacksize, int prio)
  96385. {
  96386. 8026c50: b580 push {r7, lr}
  96387. 8026c52: b08e sub sp, #56 @ 0x38
  96388. 8026c54: af00 add r7, sp, #0
  96389. 8026c56: 60f8 str r0, [r7, #12]
  96390. 8026c58: 60b9 str r1, [r7, #8]
  96391. 8026c5a: 607a str r2, [r7, #4]
  96392. 8026c5c: 603b str r3, [r7, #0]
  96393. #if (osCMSIS < 0x20000U)
  96394. const osThreadDef_t os_thread_def = { (char *)name, (os_pthread)thread, (osPriority)prio, 0, stacksize};
  96395. return osThreadCreate(&os_thread_def, arg);
  96396. #else
  96397. const osThreadAttr_t attributes = {
  96398. 8026c5e: f107 0314 add.w r3, r7, #20
  96399. 8026c62: 2224 movs r2, #36 @ 0x24
  96400. 8026c64: 2100 movs r1, #0
  96401. 8026c66: 4618 mov r0, r3
  96402. 8026c68: f003 fc3a bl 802a4e0 <memset>
  96403. 8026c6c: 68fb ldr r3, [r7, #12]
  96404. 8026c6e: 617b str r3, [r7, #20]
  96405. 8026c70: 683b ldr r3, [r7, #0]
  96406. 8026c72: 62bb str r3, [r7, #40] @ 0x28
  96407. 8026c74: 6c3b ldr r3, [r7, #64] @ 0x40
  96408. 8026c76: 62fb str r3, [r7, #44] @ 0x2c
  96409. .name = name,
  96410. .stack_size = stacksize,
  96411. .priority = (osPriority_t)prio,
  96412. };
  96413. return osThreadNew(thread, arg, &attributes);
  96414. 8026c78: f107 0314 add.w r3, r7, #20
  96415. 8026c7c: 461a mov r2, r3
  96416. 8026c7e: 6879 ldr r1, [r7, #4]
  96417. 8026c80: 68b8 ldr r0, [r7, #8]
  96418. 8026c82: f7ea f886 bl 8010d92 <osThreadNew>
  96419. 8026c86: 4603 mov r3, r0
  96420. #endif
  96421. }
  96422. 8026c88: 4618 mov r0, r3
  96423. 8026c8a: 3738 adds r7, #56 @ 0x38
  96424. 8026c8c: 46bd mov sp, r7
  96425. 8026c8e: bd80 pop {r7, pc}
  96426. 08026c90 <sys_arch_protect>:
  96427. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  96428. API is available
  96429. */
  96430. sys_prot_t sys_arch_protect(void)
  96431. {
  96432. 8026c90: b580 push {r7, lr}
  96433. 8026c92: af00 add r7, sp, #0
  96434. #if (osCMSIS < 0x20000U)
  96435. osMutexWait(lwip_sys_mutex, osWaitForever);
  96436. #else
  96437. osMutexAcquire(lwip_sys_mutex, osWaitForever);
  96438. 8026c94: 4b04 ldr r3, [pc, #16] @ (8026ca8 <sys_arch_protect+0x18>)
  96439. 8026c96: 681b ldr r3, [r3, #0]
  96440. 8026c98: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  96441. 8026c9c: 4618 mov r0, r3
  96442. 8026c9e: f7ea fa49 bl 8011134 <osMutexAcquire>
  96443. #endif
  96444. return (sys_prot_t)1;
  96445. 8026ca2: 2301 movs r3, #1
  96446. }
  96447. 8026ca4: 4618 mov r0, r3
  96448. 8026ca6: bd80 pop {r7, pc}
  96449. 8026ca8: 2402b0fc .word 0x2402b0fc
  96450. 08026cac <sys_arch_unprotect>:
  96451. Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS
  96452. API is available
  96453. */
  96454. void sys_arch_unprotect(sys_prot_t pval)
  96455. {
  96456. 8026cac: b580 push {r7, lr}
  96457. 8026cae: b082 sub sp, #8
  96458. 8026cb0: af00 add r7, sp, #0
  96459. 8026cb2: 6078 str r0, [r7, #4]
  96460. ( void ) pval;
  96461. osMutexRelease(lwip_sys_mutex);
  96462. 8026cb4: 4b04 ldr r3, [pc, #16] @ (8026cc8 <sys_arch_unprotect+0x1c>)
  96463. 8026cb6: 681b ldr r3, [r3, #0]
  96464. 8026cb8: 4618 mov r0, r3
  96465. 8026cba: f7ea fa86 bl 80111ca <osMutexRelease>
  96466. }
  96467. 8026cbe: bf00 nop
  96468. 8026cc0: 3708 adds r7, #8
  96469. 8026cc2: 46bd mov sp, r7
  96470. 8026cc4: bd80 pop {r7, pc}
  96471. 8026cc6: bf00 nop
  96472. 8026cc8: 2402b0fc .word 0x2402b0fc
  96473. 08026ccc <NewMessageData>:
  96474. #include <string.h>
  96475. //#include "cmsis_os.h"
  96476. osMutexId_t mqttMutex;
  96477. static void NewMessageData(MessageData* md, MQTTString* aTopicName, MQTTMessage* aMessage) {
  96478. 8026ccc: b480 push {r7}
  96479. 8026cce: b085 sub sp, #20
  96480. 8026cd0: af00 add r7, sp, #0
  96481. 8026cd2: 60f8 str r0, [r7, #12]
  96482. 8026cd4: 60b9 str r1, [r7, #8]
  96483. 8026cd6: 607a str r2, [r7, #4]
  96484. md->topicName = aTopicName;
  96485. 8026cd8: 68fb ldr r3, [r7, #12]
  96486. 8026cda: 68ba ldr r2, [r7, #8]
  96487. 8026cdc: 605a str r2, [r3, #4]
  96488. md->message = aMessage;
  96489. 8026cde: 68fb ldr r3, [r7, #12]
  96490. 8026ce0: 687a ldr r2, [r7, #4]
  96491. 8026ce2: 601a str r2, [r3, #0]
  96492. }
  96493. 8026ce4: bf00 nop
  96494. 8026ce6: 3714 adds r7, #20
  96495. 8026ce8: 46bd mov sp, r7
  96496. 8026cea: f85d 7b04 ldr.w r7, [sp], #4
  96497. 8026cee: 4770 bx lr
  96498. 08026cf0 <getNextPacketId>:
  96499. static int getNextPacketId(MQTTClient *c) {
  96500. 8026cf0: b480 push {r7}
  96501. 8026cf2: b083 sub sp, #12
  96502. 8026cf4: af00 add r7, sp, #0
  96503. 8026cf6: 6078 str r0, [r7, #4]
  96504. return c->next_packetid = (c->next_packetid == MAX_PACKET_ID) ? 1 : c->next_packetid + 1;
  96505. 8026cf8: 687b ldr r3, [r7, #4]
  96506. 8026cfa: 681b ldr r3, [r3, #0]
  96507. 8026cfc: f64f 72ff movw r2, #65535 @ 0xffff
  96508. 8026d00: 4293 cmp r3, r2
  96509. 8026d02: d003 beq.n 8026d0c <getNextPacketId+0x1c>
  96510. 8026d04: 687b ldr r3, [r7, #4]
  96511. 8026d06: 681b ldr r3, [r3, #0]
  96512. 8026d08: 3301 adds r3, #1
  96513. 8026d0a: e000 b.n 8026d0e <getNextPacketId+0x1e>
  96514. 8026d0c: 2301 movs r3, #1
  96515. 8026d0e: 687a ldr r2, [r7, #4]
  96516. 8026d10: 6013 str r3, [r2, #0]
  96517. 8026d12: 687b ldr r3, [r7, #4]
  96518. 8026d14: 681b ldr r3, [r3, #0]
  96519. }
  96520. 8026d16: 4618 mov r0, r3
  96521. 8026d18: 370c adds r7, #12
  96522. 8026d1a: 46bd mov sp, r7
  96523. 8026d1c: f85d 7b04 ldr.w r7, [sp], #4
  96524. 8026d20: 4770 bx lr
  96525. 08026d22 <sendPacket>:
  96526. static int sendPacket(MQTTClient* c, int length, Timer* timer)
  96527. {
  96528. 8026d22: b5f0 push {r4, r5, r6, r7, lr}
  96529. 8026d24: b087 sub sp, #28
  96530. 8026d26: af00 add r7, sp, #0
  96531. 8026d28: 60f8 str r0, [r7, #12]
  96532. 8026d2a: 60b9 str r1, [r7, #8]
  96533. 8026d2c: 607a str r2, [r7, #4]
  96534. int rc = FAILURE,
  96535. 8026d2e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96536. 8026d32: 617b str r3, [r7, #20]
  96537. sent = 0;
  96538. 8026d34: 2300 movs r3, #0
  96539. 8026d36: 613b str r3, [r7, #16]
  96540. while (sent < length && !TimerIsExpired(timer))
  96541. 8026d38: e018 b.n 8026d6c <sendPacket+0x4a>
  96542. {
  96543. rc = c->ipstack->mqttwrite(c->ipstack, &c->buf[sent], length, TimerLeftMS(timer));
  96544. 8026d3a: 68fb ldr r3, [r7, #12]
  96545. 8026d3c: 6d5b ldr r3, [r3, #84] @ 0x54
  96546. 8026d3e: 689c ldr r4, [r3, #8]
  96547. 8026d40: 68fb ldr r3, [r7, #12]
  96548. 8026d42: 6d5d ldr r5, [r3, #84] @ 0x54
  96549. 8026d44: 68fb ldr r3, [r7, #12]
  96550. 8026d46: 691a ldr r2, [r3, #16]
  96551. 8026d48: 693b ldr r3, [r7, #16]
  96552. 8026d4a: 18d6 adds r6, r2, r3
  96553. 8026d4c: 6878 ldr r0, [r7, #4]
  96554. 8026d4e: f000 fed3 bl 8027af8 <TimerLeftMS>
  96555. 8026d52: 4603 mov r3, r0
  96556. 8026d54: 68ba ldr r2, [r7, #8]
  96557. 8026d56: 4631 mov r1, r6
  96558. 8026d58: 4628 mov r0, r5
  96559. 8026d5a: 47a0 blx r4
  96560. 8026d5c: 6178 str r0, [r7, #20]
  96561. if (rc < 0) // there was an error writing the data
  96562. 8026d5e: 697b ldr r3, [r7, #20]
  96563. 8026d60: 2b00 cmp r3, #0
  96564. 8026d62: db0e blt.n 8026d82 <sendPacket+0x60>
  96565. break;
  96566. sent += rc;
  96567. 8026d64: 693a ldr r2, [r7, #16]
  96568. 8026d66: 697b ldr r3, [r7, #20]
  96569. 8026d68: 4413 add r3, r2
  96570. 8026d6a: 613b str r3, [r7, #16]
  96571. while (sent < length && !TimerIsExpired(timer))
  96572. 8026d6c: 693a ldr r2, [r7, #16]
  96573. 8026d6e: 68bb ldr r3, [r7, #8]
  96574. 8026d70: 429a cmp r2, r3
  96575. 8026d72: da07 bge.n 8026d84 <sendPacket+0x62>
  96576. 8026d74: 6878 ldr r0, [r7, #4]
  96577. 8026d76: f000 fe7d bl 8027a74 <TimerIsExpired>
  96578. 8026d7a: 4603 mov r3, r0
  96579. 8026d7c: 2b00 cmp r3, #0
  96580. 8026d7e: d0dc beq.n 8026d3a <sendPacket+0x18>
  96581. 8026d80: e000 b.n 8026d84 <sendPacket+0x62>
  96582. break;
  96583. 8026d82: bf00 nop
  96584. }
  96585. if (sent == length)
  96586. 8026d84: 693a ldr r2, [r7, #16]
  96587. 8026d86: 68bb ldr r3, [r7, #8]
  96588. 8026d88: 429a cmp r2, r3
  96589. 8026d8a: d10b bne.n 8026da4 <sendPacket+0x82>
  96590. {
  96591. TimerCountdown(&c->last_sent, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully sent the packet
  96592. 8026d8c: 68fb ldr r3, [r7, #12]
  96593. 8026d8e: f103 0258 add.w r2, r3, #88 @ 0x58
  96594. 8026d92: 68fb ldr r3, [r7, #12]
  96595. 8026d94: 699b ldr r3, [r3, #24]
  96596. 8026d96: 4619 mov r1, r3
  96597. 8026d98: 4610 mov r0, r2
  96598. 8026d9a: f000 fe95 bl 8027ac8 <TimerCountdown>
  96599. rc = MQTT_SUCCESS;
  96600. 8026d9e: 2300 movs r3, #0
  96601. 8026da0: 617b str r3, [r7, #20]
  96602. 8026da2: e002 b.n 8026daa <sendPacket+0x88>
  96603. }
  96604. else
  96605. rc = FAILURE;
  96606. 8026da4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96607. 8026da8: 617b str r3, [r7, #20]
  96608. return rc;
  96609. 8026daa: 697b ldr r3, [r7, #20]
  96610. }
  96611. 8026dac: 4618 mov r0, r3
  96612. 8026dae: 371c adds r7, #28
  96613. 8026db0: 46bd mov sp, r7
  96614. 8026db2: bdf0 pop {r4, r5, r6, r7, pc}
  96615. 08026db4 <MQTTClientInit>:
  96616. void MQTTClientInit(MQTTClient* c, Network* network, unsigned int command_timeout_ms,
  96617. unsigned char* sendbuf, size_t sendbuf_size, unsigned char* readbuf, size_t readbuf_size)
  96618. {
  96619. 8026db4: b580 push {r7, lr}
  96620. 8026db6: b086 sub sp, #24
  96621. 8026db8: af00 add r7, sp, #0
  96622. 8026dba: 60f8 str r0, [r7, #12]
  96623. 8026dbc: 60b9 str r1, [r7, #8]
  96624. 8026dbe: 607a str r2, [r7, #4]
  96625. 8026dc0: 603b str r3, [r7, #0]
  96626. int i;
  96627. c->ipstack = network;
  96628. 8026dc2: 68fb ldr r3, [r7, #12]
  96629. 8026dc4: 68ba ldr r2, [r7, #8]
  96630. 8026dc6: 655a str r2, [r3, #84] @ 0x54
  96631. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96632. 8026dc8: 2300 movs r3, #0
  96633. 8026dca: 617b str r3, [r7, #20]
  96634. 8026dcc: e008 b.n 8026de0 <MQTTClientInit+0x2c>
  96635. c->messageHandlers[i].topicFilter = 0;
  96636. 8026dce: 68fb ldr r3, [r7, #12]
  96637. 8026dd0: 697a ldr r2, [r7, #20]
  96638. 8026dd2: 3205 adds r2, #5
  96639. 8026dd4: 2100 movs r1, #0
  96640. 8026dd6: f843 1032 str.w r1, [r3, r2, lsl #3]
  96641. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  96642. 8026dda: 697b ldr r3, [r7, #20]
  96643. 8026ddc: 3301 adds r3, #1
  96644. 8026dde: 617b str r3, [r7, #20]
  96645. 8026de0: 697b ldr r3, [r7, #20]
  96646. 8026de2: 2b04 cmp r3, #4
  96647. 8026de4: ddf3 ble.n 8026dce <MQTTClientInit+0x1a>
  96648. c->command_timeout_ms = command_timeout_ms;
  96649. 8026de6: 68fb ldr r3, [r7, #12]
  96650. 8026de8: 687a ldr r2, [r7, #4]
  96651. 8026dea: 605a str r2, [r3, #4]
  96652. c->buf = sendbuf;
  96653. 8026dec: 68fb ldr r3, [r7, #12]
  96654. 8026dee: 683a ldr r2, [r7, #0]
  96655. 8026df0: 611a str r2, [r3, #16]
  96656. c->buf_size = sendbuf_size;
  96657. 8026df2: 68fb ldr r3, [r7, #12]
  96658. 8026df4: 6a3a ldr r2, [r7, #32]
  96659. 8026df6: 609a str r2, [r3, #8]
  96660. c->readbuf = readbuf;
  96661. 8026df8: 68fb ldr r3, [r7, #12]
  96662. 8026dfa: 6a7a ldr r2, [r7, #36] @ 0x24
  96663. 8026dfc: 615a str r2, [r3, #20]
  96664. c->readbuf_size = readbuf_size;
  96665. 8026dfe: 68fb ldr r3, [r7, #12]
  96666. 8026e00: 6aba ldr r2, [r7, #40] @ 0x28
  96667. 8026e02: 60da str r2, [r3, #12]
  96668. c->isconnected = 0;
  96669. 8026e04: 68fb ldr r3, [r7, #12]
  96670. 8026e06: 2200 movs r2, #0
  96671. 8026e08: 621a str r2, [r3, #32]
  96672. c->cleansession = 0;
  96673. 8026e0a: 68fb ldr r3, [r7, #12]
  96674. 8026e0c: 2200 movs r2, #0
  96675. 8026e0e: 625a str r2, [r3, #36] @ 0x24
  96676. c->ping_outstanding = 0;
  96677. 8026e10: 68fb ldr r3, [r7, #12]
  96678. 8026e12: 2200 movs r2, #0
  96679. 8026e14: 771a strb r2, [r3, #28]
  96680. c->defaultMessageHandler = NULL;
  96681. 8026e16: 68fb ldr r3, [r7, #12]
  96682. 8026e18: 2200 movs r2, #0
  96683. 8026e1a: 651a str r2, [r3, #80] @ 0x50
  96684. c->next_packetid = 1;
  96685. 8026e1c: 68fb ldr r3, [r7, #12]
  96686. 8026e1e: 2201 movs r2, #1
  96687. 8026e20: 601a str r2, [r3, #0]
  96688. TimerInit(&c->last_sent);
  96689. 8026e22: 68fb ldr r3, [r7, #12]
  96690. 8026e24: 3358 adds r3, #88 @ 0x58
  96691. 8026e26: 4618 mov r0, r3
  96692. 8026e28: f000 fe7c bl 8027b24 <TimerInit>
  96693. TimerInit(&c->last_received);
  96694. 8026e2c: 68fb ldr r3, [r7, #12]
  96695. 8026e2e: 3360 adds r3, #96 @ 0x60
  96696. 8026e30: 4618 mov r0, r3
  96697. 8026e32: f000 fe77 bl 8027b24 <TimerInit>
  96698. #if defined(MQTT_TASK)
  96699. MutexInit(&c->mutex);
  96700. #endif
  96701. if(mqttMutex == NULL)
  96702. 8026e36: 4b07 ldr r3, [pc, #28] @ (8026e54 <MQTTClientInit+0xa0>)
  96703. 8026e38: 681b ldr r3, [r3, #0]
  96704. 8026e3a: 2b00 cmp r3, #0
  96705. 8026e3c: d105 bne.n 8026e4a <MQTTClientInit+0x96>
  96706. {
  96707. // osMutexDef(mqttMutex);
  96708. // mqttMutex = osMutexNew(NULL);
  96709. c->mutex = osMutexNew(NULL);
  96710. 8026e3e: 2000 movs r0, #0
  96711. 8026e40: f7ea f8f2 bl 8011028 <osMutexNew>
  96712. 8026e44: 4602 mov r2, r0
  96713. 8026e46: 68fb ldr r3, [r7, #12]
  96714. 8026e48: 669a str r2, [r3, #104] @ 0x68
  96715. }
  96716. }
  96717. 8026e4a: bf00 nop
  96718. 8026e4c: 3718 adds r7, #24
  96719. 8026e4e: 46bd mov sp, r7
  96720. 8026e50: bd80 pop {r7, pc}
  96721. 8026e52: bf00 nop
  96722. 8026e54: 2402b100 .word 0x2402b100
  96723. 08026e58 <decodePacket>:
  96724. static int decodePacket(MQTTClient* c, int* value, int timeout)
  96725. {
  96726. 8026e58: b590 push {r4, r7, lr}
  96727. 8026e5a: b08b sub sp, #44 @ 0x2c
  96728. 8026e5c: af00 add r7, sp, #0
  96729. 8026e5e: 60f8 str r0, [r7, #12]
  96730. 8026e60: 60b9 str r1, [r7, #8]
  96731. 8026e62: 607a str r2, [r7, #4]
  96732. unsigned char i;
  96733. int multiplier = 1;
  96734. 8026e64: 2301 movs r3, #1
  96735. 8026e66: 627b str r3, [r7, #36] @ 0x24
  96736. int len = 0;
  96737. 8026e68: 2300 movs r3, #0
  96738. 8026e6a: 623b str r3, [r7, #32]
  96739. const int MAX_NO_OF_REMAINING_LENGTH_BYTES = 4;
  96740. 8026e6c: 2304 movs r3, #4
  96741. 8026e6e: 61fb str r3, [r7, #28]
  96742. *value = 0;
  96743. 8026e70: 68bb ldr r3, [r7, #8]
  96744. 8026e72: 2200 movs r2, #0
  96745. 8026e74: 601a str r2, [r3, #0]
  96746. do
  96747. {
  96748. int rc = MQTTPACKET_READ_ERROR;
  96749. 8026e76: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96750. 8026e7a: 61bb str r3, [r7, #24]
  96751. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  96752. 8026e7c: 6a3b ldr r3, [r7, #32]
  96753. 8026e7e: 3301 adds r3, #1
  96754. 8026e80: 623b str r3, [r7, #32]
  96755. 8026e82: 6a3a ldr r2, [r7, #32]
  96756. 8026e84: 69fb ldr r3, [r7, #28]
  96757. 8026e86: 429a cmp r2, r3
  96758. 8026e88: dd03 ble.n 8026e92 <decodePacket+0x3a>
  96759. {
  96760. rc = MQTTPACKET_READ_ERROR; /* bad data */
  96761. 8026e8a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  96762. 8026e8e: 61bb str r3, [r7, #24]
  96763. goto exit;
  96764. 8026e90: e021 b.n 8026ed6 <decodePacket+0x7e>
  96765. }
  96766. rc = c->ipstack->mqttread(c->ipstack, &i, 1, timeout);
  96767. 8026e92: 68fb ldr r3, [r7, #12]
  96768. 8026e94: 6d5b ldr r3, [r3, #84] @ 0x54
  96769. 8026e96: 685c ldr r4, [r3, #4]
  96770. 8026e98: 68fb ldr r3, [r7, #12]
  96771. 8026e9a: 6d58 ldr r0, [r3, #84] @ 0x54
  96772. 8026e9c: f107 0117 add.w r1, r7, #23
  96773. 8026ea0: 687b ldr r3, [r7, #4]
  96774. 8026ea2: 2201 movs r2, #1
  96775. 8026ea4: 47a0 blx r4
  96776. 8026ea6: 61b8 str r0, [r7, #24]
  96777. if (rc != 1)
  96778. 8026ea8: 69bb ldr r3, [r7, #24]
  96779. 8026eaa: 2b01 cmp r3, #1
  96780. 8026eac: d112 bne.n 8026ed4 <decodePacket+0x7c>
  96781. goto exit;
  96782. *value += (i & 127) * multiplier;
  96783. 8026eae: 68bb ldr r3, [r7, #8]
  96784. 8026eb0: 681a ldr r2, [r3, #0]
  96785. 8026eb2: 7dfb ldrb r3, [r7, #23]
  96786. 8026eb4: f003 037f and.w r3, r3, #127 @ 0x7f
  96787. 8026eb8: 6a79 ldr r1, [r7, #36] @ 0x24
  96788. 8026eba: fb01 f303 mul.w r3, r1, r3
  96789. 8026ebe: 441a add r2, r3
  96790. 8026ec0: 68bb ldr r3, [r7, #8]
  96791. 8026ec2: 601a str r2, [r3, #0]
  96792. multiplier *= 128;
  96793. 8026ec4: 6a7b ldr r3, [r7, #36] @ 0x24
  96794. 8026ec6: 01db lsls r3, r3, #7
  96795. 8026ec8: 627b str r3, [r7, #36] @ 0x24
  96796. } while ((i & 128) != 0);
  96797. 8026eca: 7dfb ldrb r3, [r7, #23]
  96798. 8026ecc: b25b sxtb r3, r3
  96799. 8026ece: 2b00 cmp r3, #0
  96800. 8026ed0: dbd1 blt.n 8026e76 <decodePacket+0x1e>
  96801. exit:
  96802. 8026ed2: e000 b.n 8026ed6 <decodePacket+0x7e>
  96803. goto exit;
  96804. 8026ed4: bf00 nop
  96805. return len;
  96806. 8026ed6: 6a3b ldr r3, [r7, #32]
  96807. }
  96808. 8026ed8: 4618 mov r0, r3
  96809. 8026eda: 372c adds r7, #44 @ 0x2c
  96810. 8026edc: 46bd mov sp, r7
  96811. 8026ede: bd90 pop {r4, r7, pc}
  96812. 08026ee0 <readPacket>:
  96813. static int readPacket(MQTTClient* c, Timer* timer)
  96814. {
  96815. 8026ee0: b5f0 push {r4, r5, r6, r7, lr}
  96816. 8026ee2: b089 sub sp, #36 @ 0x24
  96817. 8026ee4: af00 add r7, sp, #0
  96818. 8026ee6: 60f8 str r0, [r7, #12]
  96819. 8026ee8: 60b9 str r1, [r7, #8]
  96820. MQTTHeader header = {0};
  96821. 8026eea: 2300 movs r3, #0
  96822. 8026eec: 617b str r3, [r7, #20]
  96823. int len = 0;
  96824. 8026eee: 2300 movs r3, #0
  96825. 8026ef0: 61bb str r3, [r7, #24]
  96826. int rem_len = 0;
  96827. 8026ef2: 2300 movs r3, #0
  96828. 8026ef4: 613b str r3, [r7, #16]
  96829. /* 1. read the header byte. This has the packet type in it */
  96830. int rc = c->ipstack->mqttread(c->ipstack, c->readbuf, 1, TimerLeftMS(timer));
  96831. 8026ef6: 68fb ldr r3, [r7, #12]
  96832. 8026ef8: 6d5b ldr r3, [r3, #84] @ 0x54
  96833. 8026efa: 685c ldr r4, [r3, #4]
  96834. 8026efc: 68fb ldr r3, [r7, #12]
  96835. 8026efe: 6d5d ldr r5, [r3, #84] @ 0x54
  96836. 8026f00: 68fb ldr r3, [r7, #12]
  96837. 8026f02: 695e ldr r6, [r3, #20]
  96838. 8026f04: 68b8 ldr r0, [r7, #8]
  96839. 8026f06: f000 fdf7 bl 8027af8 <TimerLeftMS>
  96840. 8026f0a: 4603 mov r3, r0
  96841. 8026f0c: 2201 movs r2, #1
  96842. 8026f0e: 4631 mov r1, r6
  96843. 8026f10: 4628 mov r0, r5
  96844. 8026f12: 47a0 blx r4
  96845. 8026f14: 61f8 str r0, [r7, #28]
  96846. if (rc != 1)
  96847. 8026f16: 69fb ldr r3, [r7, #28]
  96848. 8026f18: 2b01 cmp r3, #1
  96849. 8026f1a: d15d bne.n 8026fd8 <readPacket+0xf8>
  96850. goto exit;
  96851. len = 1;
  96852. 8026f1c: 2301 movs r3, #1
  96853. 8026f1e: 61bb str r3, [r7, #24]
  96854. /* 2. read the remaining length. This is variable in itself */
  96855. decodePacket(c, &rem_len, TimerLeftMS(timer));
  96856. 8026f20: 68b8 ldr r0, [r7, #8]
  96857. 8026f22: f000 fde9 bl 8027af8 <TimerLeftMS>
  96858. 8026f26: 4602 mov r2, r0
  96859. 8026f28: f107 0310 add.w r3, r7, #16
  96860. 8026f2c: 4619 mov r1, r3
  96861. 8026f2e: 68f8 ldr r0, [r7, #12]
  96862. 8026f30: f7ff ff92 bl 8026e58 <decodePacket>
  96863. len += MQTTPacket_encode(c->readbuf + 1, rem_len); /* put the original remaining length back into the buffer */
  96864. 8026f34: 68fb ldr r3, [r7, #12]
  96865. 8026f36: 695b ldr r3, [r3, #20]
  96866. 8026f38: 3301 adds r3, #1
  96867. 8026f3a: 693a ldr r2, [r7, #16]
  96868. 8026f3c: 4611 mov r1, r2
  96869. 8026f3e: 4618 mov r0, r3
  96870. 8026f40: f001 f959 bl 80281f6 <MQTTPacket_encode>
  96871. 8026f44: 4602 mov r2, r0
  96872. 8026f46: 69bb ldr r3, [r7, #24]
  96873. 8026f48: 4413 add r3, r2
  96874. 8026f4a: 61bb str r3, [r7, #24]
  96875. if (rem_len > (c->readbuf_size - len))
  96876. 8026f4c: 68fb ldr r3, [r7, #12]
  96877. 8026f4e: 68da ldr r2, [r3, #12]
  96878. 8026f50: 69bb ldr r3, [r7, #24]
  96879. 8026f52: 1ad3 subs r3, r2, r3
  96880. 8026f54: 693a ldr r2, [r7, #16]
  96881. 8026f56: 4293 cmp r3, r2
  96882. 8026f58: d203 bcs.n 8026f62 <readPacket+0x82>
  96883. {
  96884. rc = BUFFER_OVERFLOW;
  96885. 8026f5a: f06f 0301 mvn.w r3, #1
  96886. 8026f5e: 61fb str r3, [r7, #28]
  96887. goto exit;
  96888. 8026f60: e03d b.n 8026fde <readPacket+0xfe>
  96889. }
  96890. /* 3. read the rest of the buffer using a callback to supply the rest of the data */
  96891. if (rem_len > 0 && (rc = c->ipstack->mqttread(c->ipstack, c->readbuf + len, rem_len, TimerLeftMS(timer)) != rem_len)) {
  96892. 8026f62: 693b ldr r3, [r7, #16]
  96893. 8026f64: 2b00 cmp r3, #0
  96894. 8026f66: dd20 ble.n 8026faa <readPacket+0xca>
  96895. 8026f68: 68fb ldr r3, [r7, #12]
  96896. 8026f6a: 6d5b ldr r3, [r3, #84] @ 0x54
  96897. 8026f6c: 685c ldr r4, [r3, #4]
  96898. 8026f6e: 68fb ldr r3, [r7, #12]
  96899. 8026f70: 6d5d ldr r5, [r3, #84] @ 0x54
  96900. 8026f72: 68fb ldr r3, [r7, #12]
  96901. 8026f74: 695a ldr r2, [r3, #20]
  96902. 8026f76: 69bb ldr r3, [r7, #24]
  96903. 8026f78: 18d6 adds r6, r2, r3
  96904. 8026f7a: 693b ldr r3, [r7, #16]
  96905. 8026f7c: 607b str r3, [r7, #4]
  96906. 8026f7e: 68b8 ldr r0, [r7, #8]
  96907. 8026f80: f000 fdba bl 8027af8 <TimerLeftMS>
  96908. 8026f84: 4603 mov r3, r0
  96909. 8026f86: 687a ldr r2, [r7, #4]
  96910. 8026f88: 4631 mov r1, r6
  96911. 8026f8a: 4628 mov r0, r5
  96912. 8026f8c: 47a0 blx r4
  96913. 8026f8e: 4602 mov r2, r0
  96914. 8026f90: 693b ldr r3, [r7, #16]
  96915. 8026f92: 429a cmp r2, r3
  96916. 8026f94: bf14 ite ne
  96917. 8026f96: 2301 movne r3, #1
  96918. 8026f98: 2300 moveq r3, #0
  96919. 8026f9a: b2db uxtb r3, r3
  96920. 8026f9c: 61fb str r3, [r7, #28]
  96921. 8026f9e: 69fb ldr r3, [r7, #28]
  96922. 8026fa0: 2b00 cmp r3, #0
  96923. 8026fa2: d002 beq.n 8026faa <readPacket+0xca>
  96924. rc = 0;
  96925. 8026fa4: 2300 movs r3, #0
  96926. 8026fa6: 61fb str r3, [r7, #28]
  96927. goto exit;
  96928. 8026fa8: e019 b.n 8026fde <readPacket+0xfe>
  96929. }
  96930. header.byte = c->readbuf[0];
  96931. 8026faa: 68fb ldr r3, [r7, #12]
  96932. 8026fac: 695b ldr r3, [r3, #20]
  96933. 8026fae: 781b ldrb r3, [r3, #0]
  96934. 8026fb0: 753b strb r3, [r7, #20]
  96935. rc = header.bits.type;
  96936. 8026fb2: 7d3b ldrb r3, [r7, #20]
  96937. 8026fb4: f3c3 1303 ubfx r3, r3, #4, #4
  96938. 8026fb8: b2db uxtb r3, r3
  96939. 8026fba: 61fb str r3, [r7, #28]
  96940. if (c->keepAliveInterval > 0)
  96941. 8026fbc: 68fb ldr r3, [r7, #12]
  96942. 8026fbe: 699b ldr r3, [r3, #24]
  96943. 8026fc0: 2b00 cmp r3, #0
  96944. 8026fc2: d00b beq.n 8026fdc <readPacket+0xfc>
  96945. TimerCountdown(&c->last_received, c->keepAliveInterval); // record the fact that we have MQTT_SUCCESSfully received a packet
  96946. 8026fc4: 68fb ldr r3, [r7, #12]
  96947. 8026fc6: f103 0260 add.w r2, r3, #96 @ 0x60
  96948. 8026fca: 68fb ldr r3, [r7, #12]
  96949. 8026fcc: 699b ldr r3, [r3, #24]
  96950. 8026fce: 4619 mov r1, r3
  96951. 8026fd0: 4610 mov r0, r2
  96952. 8026fd2: f000 fd79 bl 8027ac8 <TimerCountdown>
  96953. 8026fd6: e002 b.n 8026fde <readPacket+0xfe>
  96954. goto exit;
  96955. 8026fd8: bf00 nop
  96956. 8026fda: e000 b.n 8026fde <readPacket+0xfe>
  96957. exit:
  96958. 8026fdc: bf00 nop
  96959. return rc;
  96960. 8026fde: 69fb ldr r3, [r7, #28]
  96961. }
  96962. 8026fe0: 4618 mov r0, r3
  96963. 8026fe2: 3724 adds r7, #36 @ 0x24
  96964. 8026fe4: 46bd mov sp, r7
  96965. 8026fe6: bdf0 pop {r4, r5, r6, r7, pc}
  96966. 08026fe8 <isTopicMatched>:
  96967. // assume topic filter and name is in correct format
  96968. // # can only be at end
  96969. // + and # can only be next to separator
  96970. static char isTopicMatched(char* topicFilter, MQTTString* topicName)
  96971. {
  96972. 8026fe8: b480 push {r7}
  96973. 8026fea: b087 sub sp, #28
  96974. 8026fec: af00 add r7, sp, #0
  96975. 8026fee: 6078 str r0, [r7, #4]
  96976. 8026ff0: 6039 str r1, [r7, #0]
  96977. char* curf = topicFilter;
  96978. 8026ff2: 687b ldr r3, [r7, #4]
  96979. 8026ff4: 617b str r3, [r7, #20]
  96980. char* curn = topicName->lenstring.data;
  96981. 8026ff6: 683b ldr r3, [r7, #0]
  96982. 8026ff8: 689b ldr r3, [r3, #8]
  96983. 8026ffa: 613b str r3, [r7, #16]
  96984. char* curn_end = curn + topicName->lenstring.len;
  96985. 8026ffc: 683b ldr r3, [r7, #0]
  96986. 8026ffe: 685b ldr r3, [r3, #4]
  96987. 8027000: 461a mov r2, r3
  96988. 8027002: 693b ldr r3, [r7, #16]
  96989. 8027004: 4413 add r3, r2
  96990. 8027006: 60bb str r3, [r7, #8]
  96991. while (*curf && curn < curn_end)
  96992. 8027008: e039 b.n 802707e <isTopicMatched+0x96>
  96993. {
  96994. if (*curn == '/' && *curf != '/')
  96995. 802700a: 693b ldr r3, [r7, #16]
  96996. 802700c: 781b ldrb r3, [r3, #0]
  96997. 802700e: 2b2f cmp r3, #47 @ 0x2f
  96998. 8027010: d103 bne.n 802701a <isTopicMatched+0x32>
  96999. 8027012: 697b ldr r3, [r7, #20]
  97000. 8027014: 781b ldrb r3, [r3, #0]
  97001. 8027016: 2b2f cmp r3, #47 @ 0x2f
  97002. 8027018: d13a bne.n 8027090 <isTopicMatched+0xa8>
  97003. break;
  97004. if (*curf != '+' && *curf != '#' && *curf != *curn)
  97005. 802701a: 697b ldr r3, [r7, #20]
  97006. 802701c: 781b ldrb r3, [r3, #0]
  97007. 802701e: 2b2b cmp r3, #43 @ 0x2b
  97008. 8027020: d009 beq.n 8027036 <isTopicMatched+0x4e>
  97009. 8027022: 697b ldr r3, [r7, #20]
  97010. 8027024: 781b ldrb r3, [r3, #0]
  97011. 8027026: 2b23 cmp r3, #35 @ 0x23
  97012. 8027028: d005 beq.n 8027036 <isTopicMatched+0x4e>
  97013. 802702a: 697b ldr r3, [r7, #20]
  97014. 802702c: 781a ldrb r2, [r3, #0]
  97015. 802702e: 693b ldr r3, [r7, #16]
  97016. 8027030: 781b ldrb r3, [r3, #0]
  97017. 8027032: 429a cmp r2, r3
  97018. 8027034: d12e bne.n 8027094 <isTopicMatched+0xac>
  97019. break;
  97020. if (*curf == '+')
  97021. 8027036: 697b ldr r3, [r7, #20]
  97022. 8027038: 781b ldrb r3, [r3, #0]
  97023. 802703a: 2b2b cmp r3, #43 @ 0x2b
  97024. 802703c: d112 bne.n 8027064 <isTopicMatched+0x7c>
  97025. { // skip until we meet the next separator, or end of string
  97026. char* nextpos = curn + 1;
  97027. 802703e: 693b ldr r3, [r7, #16]
  97028. 8027040: 3301 adds r3, #1
  97029. 8027042: 60fb str r3, [r7, #12]
  97030. while (nextpos < curn_end && *nextpos != '/')
  97031. 8027044: e005 b.n 8027052 <isTopicMatched+0x6a>
  97032. nextpos = ++curn + 1;
  97033. 8027046: 693b ldr r3, [r7, #16]
  97034. 8027048: 3301 adds r3, #1
  97035. 802704a: 613b str r3, [r7, #16]
  97036. 802704c: 693b ldr r3, [r7, #16]
  97037. 802704e: 3301 adds r3, #1
  97038. 8027050: 60fb str r3, [r7, #12]
  97039. while (nextpos < curn_end && *nextpos != '/')
  97040. 8027052: 68fa ldr r2, [r7, #12]
  97041. 8027054: 68bb ldr r3, [r7, #8]
  97042. 8027056: 429a cmp r2, r3
  97043. 8027058: d20b bcs.n 8027072 <isTopicMatched+0x8a>
  97044. 802705a: 68fb ldr r3, [r7, #12]
  97045. 802705c: 781b ldrb r3, [r3, #0]
  97046. 802705e: 2b2f cmp r3, #47 @ 0x2f
  97047. 8027060: d1f1 bne.n 8027046 <isTopicMatched+0x5e>
  97048. 8027062: e006 b.n 8027072 <isTopicMatched+0x8a>
  97049. }
  97050. else if (*curf == '#')
  97051. 8027064: 697b ldr r3, [r7, #20]
  97052. 8027066: 781b ldrb r3, [r3, #0]
  97053. 8027068: 2b23 cmp r3, #35 @ 0x23
  97054. 802706a: d102 bne.n 8027072 <isTopicMatched+0x8a>
  97055. curn = curn_end - 1; // skip until end of string
  97056. 802706c: 68bb ldr r3, [r7, #8]
  97057. 802706e: 3b01 subs r3, #1
  97058. 8027070: 613b str r3, [r7, #16]
  97059. curf++;
  97060. 8027072: 697b ldr r3, [r7, #20]
  97061. 8027074: 3301 adds r3, #1
  97062. 8027076: 617b str r3, [r7, #20]
  97063. curn++;
  97064. 8027078: 693b ldr r3, [r7, #16]
  97065. 802707a: 3301 adds r3, #1
  97066. 802707c: 613b str r3, [r7, #16]
  97067. while (*curf && curn < curn_end)
  97068. 802707e: 697b ldr r3, [r7, #20]
  97069. 8027080: 781b ldrb r3, [r3, #0]
  97070. 8027082: 2b00 cmp r3, #0
  97071. 8027084: d007 beq.n 8027096 <isTopicMatched+0xae>
  97072. 8027086: 693a ldr r2, [r7, #16]
  97073. 8027088: 68bb ldr r3, [r7, #8]
  97074. 802708a: 429a cmp r2, r3
  97075. 802708c: d3bd bcc.n 802700a <isTopicMatched+0x22>
  97076. 802708e: e002 b.n 8027096 <isTopicMatched+0xae>
  97077. break;
  97078. 8027090: bf00 nop
  97079. 8027092: e000 b.n 8027096 <isTopicMatched+0xae>
  97080. break;
  97081. 8027094: bf00 nop
  97082. };
  97083. return (curn == curn_end) && (*curf == '\0');
  97084. 8027096: 693a ldr r2, [r7, #16]
  97085. 8027098: 68bb ldr r3, [r7, #8]
  97086. 802709a: 429a cmp r2, r3
  97087. 802709c: d105 bne.n 80270aa <isTopicMatched+0xc2>
  97088. 802709e: 697b ldr r3, [r7, #20]
  97089. 80270a0: 781b ldrb r3, [r3, #0]
  97090. 80270a2: 2b00 cmp r3, #0
  97091. 80270a4: d101 bne.n 80270aa <isTopicMatched+0xc2>
  97092. 80270a6: 2301 movs r3, #1
  97093. 80270a8: e000 b.n 80270ac <isTopicMatched+0xc4>
  97094. 80270aa: 2300 movs r3, #0
  97095. 80270ac: b2db uxtb r3, r3
  97096. }
  97097. 80270ae: 4618 mov r0, r3
  97098. 80270b0: 371c adds r7, #28
  97099. 80270b2: 46bd mov sp, r7
  97100. 80270b4: f85d 7b04 ldr.w r7, [sp], #4
  97101. 80270b8: 4770 bx lr
  97102. 080270ba <deliverMessage>:
  97103. int deliverMessage(MQTTClient* c, MQTTString* topicName, MQTTMessage* message)
  97104. {
  97105. 80270ba: b580 push {r7, lr}
  97106. 80270bc: b08a sub sp, #40 @ 0x28
  97107. 80270be: af00 add r7, sp, #0
  97108. 80270c0: 60f8 str r0, [r7, #12]
  97109. 80270c2: 60b9 str r1, [r7, #8]
  97110. 80270c4: 607a str r2, [r7, #4]
  97111. int i;
  97112. int rc = FAILURE;
  97113. 80270c6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97114. 80270ca: 623b str r3, [r7, #32]
  97115. // we have to find the right message handler - indexed by topic
  97116. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97117. 80270cc: 2300 movs r3, #0
  97118. 80270ce: 627b str r3, [r7, #36] @ 0x24
  97119. 80270d0: e03c b.n 802714c <deliverMessage+0x92>
  97120. {
  97121. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  97122. 80270d2: 68fb ldr r3, [r7, #12]
  97123. 80270d4: 6a7a ldr r2, [r7, #36] @ 0x24
  97124. 80270d6: 3205 adds r2, #5
  97125. 80270d8: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  97126. 80270dc: 2b00 cmp r3, #0
  97127. 80270de: d032 beq.n 8027146 <deliverMessage+0x8c>
  97128. 80270e0: 68fb ldr r3, [r7, #12]
  97129. 80270e2: 6a7a ldr r2, [r7, #36] @ 0x24
  97130. 80270e4: 3205 adds r2, #5
  97131. 80270e6: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  97132. 80270ea: 4619 mov r1, r3
  97133. 80270ec: 68b8 ldr r0, [r7, #8]
  97134. 80270ee: f001 fa51 bl 8028594 <MQTTPacket_equals>
  97135. 80270f2: 4603 mov r3, r0
  97136. 80270f4: 2b00 cmp r3, #0
  97137. 80270f6: d10b bne.n 8027110 <deliverMessage+0x56>
  97138. isTopicMatched((char*)c->messageHandlers[i].topicFilter, topicName)))
  97139. 80270f8: 68fb ldr r3, [r7, #12]
  97140. 80270fa: 6a7a ldr r2, [r7, #36] @ 0x24
  97141. 80270fc: 3205 adds r2, #5
  97142. 80270fe: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  97143. 8027102: 68b9 ldr r1, [r7, #8]
  97144. 8027104: 4618 mov r0, r3
  97145. 8027106: f7ff ff6f bl 8026fe8 <isTopicMatched>
  97146. 802710a: 4603 mov r3, r0
  97147. if (c->messageHandlers[i].topicFilter != 0 && (MQTTPacket_equals(topicName, (char*)c->messageHandlers[i].topicFilter) ||
  97148. 802710c: 2b00 cmp r3, #0
  97149. 802710e: d01a beq.n 8027146 <deliverMessage+0x8c>
  97150. {
  97151. if (c->messageHandlers[i].fp != NULL)
  97152. 8027110: 68fa ldr r2, [r7, #12]
  97153. 8027112: 6a7b ldr r3, [r7, #36] @ 0x24
  97154. 8027114: 3305 adds r3, #5
  97155. 8027116: 00db lsls r3, r3, #3
  97156. 8027118: 4413 add r3, r2
  97157. 802711a: 685b ldr r3, [r3, #4]
  97158. 802711c: 2b00 cmp r3, #0
  97159. 802711e: d012 beq.n 8027146 <deliverMessage+0x8c>
  97160. {
  97161. MessageData md;
  97162. NewMessageData(&md, topicName, message);
  97163. 8027120: f107 0318 add.w r3, r7, #24
  97164. 8027124: 687a ldr r2, [r7, #4]
  97165. 8027126: 68b9 ldr r1, [r7, #8]
  97166. 8027128: 4618 mov r0, r3
  97167. 802712a: f7ff fdcf bl 8026ccc <NewMessageData>
  97168. c->messageHandlers[i].fp(&md);
  97169. 802712e: 68fa ldr r2, [r7, #12]
  97170. 8027130: 6a7b ldr r3, [r7, #36] @ 0x24
  97171. 8027132: 3305 adds r3, #5
  97172. 8027134: 00db lsls r3, r3, #3
  97173. 8027136: 4413 add r3, r2
  97174. 8027138: 685b ldr r3, [r3, #4]
  97175. 802713a: f107 0218 add.w r2, r7, #24
  97176. 802713e: 4610 mov r0, r2
  97177. 8027140: 4798 blx r3
  97178. rc = MQTT_SUCCESS;
  97179. 8027142: 2300 movs r3, #0
  97180. 8027144: 623b str r3, [r7, #32]
  97181. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97182. 8027146: 6a7b ldr r3, [r7, #36] @ 0x24
  97183. 8027148: 3301 adds r3, #1
  97184. 802714a: 627b str r3, [r7, #36] @ 0x24
  97185. 802714c: 6a7b ldr r3, [r7, #36] @ 0x24
  97186. 802714e: 2b04 cmp r3, #4
  97187. 8027150: ddbf ble.n 80270d2 <deliverMessage+0x18>
  97188. }
  97189. }
  97190. }
  97191. if (rc == FAILURE && c->defaultMessageHandler != NULL)
  97192. 8027152: 6a3b ldr r3, [r7, #32]
  97193. 8027154: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  97194. 8027158: d112 bne.n 8027180 <deliverMessage+0xc6>
  97195. 802715a: 68fb ldr r3, [r7, #12]
  97196. 802715c: 6d1b ldr r3, [r3, #80] @ 0x50
  97197. 802715e: 2b00 cmp r3, #0
  97198. 8027160: d00e beq.n 8027180 <deliverMessage+0xc6>
  97199. {
  97200. MessageData md;
  97201. NewMessageData(&md, topicName, message);
  97202. 8027162: f107 0310 add.w r3, r7, #16
  97203. 8027166: 687a ldr r2, [r7, #4]
  97204. 8027168: 68b9 ldr r1, [r7, #8]
  97205. 802716a: 4618 mov r0, r3
  97206. 802716c: f7ff fdae bl 8026ccc <NewMessageData>
  97207. c->defaultMessageHandler(&md);
  97208. 8027170: 68fb ldr r3, [r7, #12]
  97209. 8027172: 6d1b ldr r3, [r3, #80] @ 0x50
  97210. 8027174: f107 0210 add.w r2, r7, #16
  97211. 8027178: 4610 mov r0, r2
  97212. 802717a: 4798 blx r3
  97213. rc = MQTT_SUCCESS;
  97214. 802717c: 2300 movs r3, #0
  97215. 802717e: 623b str r3, [r7, #32]
  97216. }
  97217. return rc;
  97218. 8027180: 6a3b ldr r3, [r7, #32]
  97219. }
  97220. 8027182: 4618 mov r0, r3
  97221. 8027184: 3728 adds r7, #40 @ 0x28
  97222. 8027186: 46bd mov sp, r7
  97223. 8027188: bd80 pop {r7, pc}
  97224. 0802718a <keepalive>:
  97225. int keepalive(MQTTClient* c)
  97226. {
  97227. 802718a: b580 push {r7, lr}
  97228. 802718c: b086 sub sp, #24
  97229. 802718e: af00 add r7, sp, #0
  97230. 8027190: 6078 str r0, [r7, #4]
  97231. int rc = MQTT_SUCCESS;
  97232. 8027192: 2300 movs r3, #0
  97233. 8027194: 617b str r3, [r7, #20]
  97234. if (c->keepAliveInterval == 0)
  97235. 8027196: 687b ldr r3, [r7, #4]
  97236. 8027198: 699b ldr r3, [r3, #24]
  97237. 802719a: 2b00 cmp r3, #0
  97238. 802719c: d03e beq.n 802721c <keepalive+0x92>
  97239. goto exit;
  97240. if (TimerIsExpired(&c->last_sent) || TimerIsExpired(&c->last_received))
  97241. 802719e: 687b ldr r3, [r7, #4]
  97242. 80271a0: 3358 adds r3, #88 @ 0x58
  97243. 80271a2: 4618 mov r0, r3
  97244. 80271a4: f000 fc66 bl 8027a74 <TimerIsExpired>
  97245. 80271a8: 4603 mov r3, r0
  97246. 80271aa: 2b00 cmp r3, #0
  97247. 80271ac: d107 bne.n 80271be <keepalive+0x34>
  97248. 80271ae: 687b ldr r3, [r7, #4]
  97249. 80271b0: 3360 adds r3, #96 @ 0x60
  97250. 80271b2: 4618 mov r0, r3
  97251. 80271b4: f000 fc5e bl 8027a74 <TimerIsExpired>
  97252. 80271b8: 4603 mov r3, r0
  97253. 80271ba: 2b00 cmp r3, #0
  97254. 80271bc: d030 beq.n 8027220 <keepalive+0x96>
  97255. {
  97256. if (c->ping_outstanding)
  97257. 80271be: 687b ldr r3, [r7, #4]
  97258. 80271c0: 7f1b ldrb r3, [r3, #28]
  97259. 80271c2: 2b00 cmp r3, #0
  97260. 80271c4: d003 beq.n 80271ce <keepalive+0x44>
  97261. rc = FAILURE; /* PINGRESP not received in keepalive interval */
  97262. 80271c6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97263. 80271ca: 617b str r3, [r7, #20]
  97264. 80271cc: e029 b.n 8027222 <keepalive+0x98>
  97265. else
  97266. {
  97267. Timer timer;
  97268. TimerInit(&timer);
  97269. 80271ce: f107 0308 add.w r3, r7, #8
  97270. 80271d2: 4618 mov r0, r3
  97271. 80271d4: f000 fca6 bl 8027b24 <TimerInit>
  97272. TimerCountdownMS(&timer, 1000);
  97273. 80271d8: f107 0308 add.w r3, r7, #8
  97274. 80271dc: f44f 717a mov.w r1, #1000 @ 0x3e8
  97275. 80271e0: 4618 mov r0, r3
  97276. 80271e2: f000 fc5d bl 8027aa0 <TimerCountdownMS>
  97277. int len = MQTTSerialize_pingreq(c->buf, c->buf_size);
  97278. 80271e6: 687b ldr r3, [r7, #4]
  97279. 80271e8: 691a ldr r2, [r3, #16]
  97280. 80271ea: 687b ldr r3, [r7, #4]
  97281. 80271ec: 689b ldr r3, [r3, #8]
  97282. 80271ee: 4619 mov r1, r3
  97283. 80271f0: 4610 mov r0, r2
  97284. 80271f2: f000 ff34 bl 802805e <MQTTSerialize_pingreq>
  97285. 80271f6: 6138 str r0, [r7, #16]
  97286. if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTT_SUCCESS) // send the ping packet
  97287. 80271f8: 693b ldr r3, [r7, #16]
  97288. 80271fa: 2b00 cmp r3, #0
  97289. 80271fc: dd11 ble.n 8027222 <keepalive+0x98>
  97290. 80271fe: f107 0308 add.w r3, r7, #8
  97291. 8027202: 461a mov r2, r3
  97292. 8027204: 6939 ldr r1, [r7, #16]
  97293. 8027206: 6878 ldr r0, [r7, #4]
  97294. 8027208: f7ff fd8b bl 8026d22 <sendPacket>
  97295. 802720c: 6178 str r0, [r7, #20]
  97296. 802720e: 697b ldr r3, [r7, #20]
  97297. 8027210: 2b00 cmp r3, #0
  97298. 8027212: d106 bne.n 8027222 <keepalive+0x98>
  97299. c->ping_outstanding = 1;
  97300. 8027214: 687b ldr r3, [r7, #4]
  97301. 8027216: 2201 movs r2, #1
  97302. 8027218: 771a strb r2, [r3, #28]
  97303. 802721a: e002 b.n 8027222 <keepalive+0x98>
  97304. goto exit;
  97305. 802721c: bf00 nop
  97306. 802721e: e000 b.n 8027222 <keepalive+0x98>
  97307. }
  97308. }
  97309. exit:
  97310. 8027220: bf00 nop
  97311. return rc;
  97312. 8027222: 697b ldr r3, [r7, #20]
  97313. }
  97314. 8027224: 4618 mov r0, r3
  97315. 8027226: 3718 adds r7, #24
  97316. 8027228: 46bd mov sp, r7
  97317. 802722a: bd80 pop {r7, pc}
  97318. 0802722c <MQTTCleanSession>:
  97319. void MQTTCleanSession(MQTTClient* c)
  97320. {
  97321. 802722c: b480 push {r7}
  97322. 802722e: b085 sub sp, #20
  97323. 8027230: af00 add r7, sp, #0
  97324. 8027232: 6078 str r0, [r7, #4]
  97325. int i = 0;
  97326. 8027234: 2300 movs r3, #0
  97327. 8027236: 60fb str r3, [r7, #12]
  97328. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97329. 8027238: 2300 movs r3, #0
  97330. 802723a: 60fb str r3, [r7, #12]
  97331. 802723c: e008 b.n 8027250 <MQTTCleanSession+0x24>
  97332. c->messageHandlers[i].topicFilter = NULL;
  97333. 802723e: 687b ldr r3, [r7, #4]
  97334. 8027240: 68fa ldr r2, [r7, #12]
  97335. 8027242: 3205 adds r2, #5
  97336. 8027244: 2100 movs r1, #0
  97337. 8027246: f843 1032 str.w r1, [r3, r2, lsl #3]
  97338. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97339. 802724a: 68fb ldr r3, [r7, #12]
  97340. 802724c: 3301 adds r3, #1
  97341. 802724e: 60fb str r3, [r7, #12]
  97342. 8027250: 68fb ldr r3, [r7, #12]
  97343. 8027252: 2b04 cmp r3, #4
  97344. 8027254: ddf3 ble.n 802723e <MQTTCleanSession+0x12>
  97345. }
  97346. 8027256: bf00 nop
  97347. 8027258: bf00 nop
  97348. 802725a: 3714 adds r7, #20
  97349. 802725c: 46bd mov sp, r7
  97350. 802725e: f85d 7b04 ldr.w r7, [sp], #4
  97351. 8027262: 4770 bx lr
  97352. 08027264 <MQTTCloseSession>:
  97353. void MQTTCloseSession(MQTTClient* c)
  97354. {
  97355. 8027264: b580 push {r7, lr}
  97356. 8027266: b082 sub sp, #8
  97357. 8027268: af00 add r7, sp, #0
  97358. 802726a: 6078 str r0, [r7, #4]
  97359. c->ping_outstanding = 0;
  97360. 802726c: 687b ldr r3, [r7, #4]
  97361. 802726e: 2200 movs r2, #0
  97362. 8027270: 771a strb r2, [r3, #28]
  97363. c->isconnected = 0;
  97364. 8027272: 687b ldr r3, [r7, #4]
  97365. 8027274: 2200 movs r2, #0
  97366. 8027276: 621a str r2, [r3, #32]
  97367. if (c->cleansession)
  97368. 8027278: 687b ldr r3, [r7, #4]
  97369. 802727a: 6a5b ldr r3, [r3, #36] @ 0x24
  97370. 802727c: 2b00 cmp r3, #0
  97371. 802727e: d002 beq.n 8027286 <MQTTCloseSession+0x22>
  97372. MQTTCleanSession(c);
  97373. 8027280: 6878 ldr r0, [r7, #4]
  97374. 8027282: f7ff ffd3 bl 802722c <MQTTCleanSession>
  97375. }
  97376. 8027286: bf00 nop
  97377. 8027288: 3708 adds r7, #8
  97378. 802728a: 46bd mov sp, r7
  97379. 802728c: bd80 pop {r7, pc}
  97380. ...
  97381. 08027290 <cycle>:
  97382. int cycle(MQTTClient* c, Timer* timer)
  97383. {
  97384. 8027290: b5f0 push {r4, r5, r6, r7, lr}
  97385. 8027292: b095 sub sp, #84 @ 0x54
  97386. 8027294: af06 add r7, sp, #24
  97387. 8027296: 6078 str r0, [r7, #4]
  97388. 8027298: 6039 str r1, [r7, #0]
  97389. int len = 0,
  97390. 802729a: 2300 movs r3, #0
  97391. 802729c: 637b str r3, [r7, #52] @ 0x34
  97392. rc = MQTT_SUCCESS;
  97393. 802729e: 2300 movs r3, #0
  97394. 80272a0: 633b str r3, [r7, #48] @ 0x30
  97395. int packet_type = readPacket(c, timer); /* read the socket, see what work is due */
  97396. 80272a2: 6839 ldr r1, [r7, #0]
  97397. 80272a4: 6878 ldr r0, [r7, #4]
  97398. 80272a6: f7ff fe1b bl 8026ee0 <readPacket>
  97399. 80272aa: 62f8 str r0, [r7, #44] @ 0x2c
  97400. switch (packet_type)
  97401. 80272ac: 6afb ldr r3, [r7, #44] @ 0x2c
  97402. 80272ae: 2b0d cmp r3, #13
  97403. 80272b0: d81e bhi.n 80272f0 <cycle+0x60>
  97404. 80272b2: a201 add r2, pc, #4 @ (adr r2, 80272b8 <cycle+0x28>)
  97405. 80272b4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  97406. 80272b8: 08027447 .word 0x08027447
  97407. 80272bc: 080272f1 .word 0x080272f1
  97408. 80272c0: 08027447 .word 0x08027447
  97409. 80272c4: 080272f7 .word 0x080272f7
  97410. 80272c8: 08027447 .word 0x08027447
  97411. 80272cc: 080273c3 .word 0x080273c3
  97412. 80272d0: 080273c3 .word 0x080273c3
  97413. 80272d4: 08027447 .word 0x08027447
  97414. 80272d8: 080272f1 .word 0x080272f1
  97415. 80272dc: 08027447 .word 0x08027447
  97416. 80272e0: 080272f1 .word 0x080272f1
  97417. 80272e4: 08027447 .word 0x08027447
  97418. 80272e8: 080272f1 .word 0x080272f1
  97419. 80272ec: 0802743f .word 0x0802743f
  97420. {
  97421. default:
  97422. /* no more data to read, unrecoverable. Or read packet fails due to unexpected network error */
  97423. rc = packet_type;
  97424. 80272f0: 6afb ldr r3, [r7, #44] @ 0x2c
  97425. 80272f2: 633b str r3, [r7, #48] @ 0x30
  97426. goto exit;
  97427. 80272f4: e0b9 b.n 802746a <cycle+0x1da>
  97428. case PUBLISH:
  97429. {
  97430. MQTTString topicName;
  97431. MQTTMessage msg;
  97432. int intQoS;
  97433. msg.payloadlen = 0; /* this is a size_t, but deserialize publish sets this as int */
  97434. 80272f6: 2300 movs r3, #0
  97435. 80272f8: 61fb str r3, [r7, #28]
  97436. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  97437. 80272fa: 687b ldr r3, [r7, #4]
  97438. 80272fc: 695b ldr r3, [r3, #20]
  97439. (unsigned char**)&msg.payload, (int*)&msg.payloadlen, c->readbuf, c->readbuf_size) != 1)
  97440. 80272fe: 687a ldr r2, [r7, #4]
  97441. 8027300: 68d2 ldr r2, [r2, #12]
  97442. if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
  97443. 8027302: 4616 mov r6, r2
  97444. 8027304: f107 0210 add.w r2, r7, #16
  97445. 8027308: 1d15 adds r5, r2, #4
  97446. 802730a: f107 0210 add.w r2, r7, #16
  97447. 802730e: 1c54 adds r4, r2, #1
  97448. 8027310: f107 010c add.w r1, r7, #12
  97449. 8027314: f107 0210 add.w r2, r7, #16
  97450. 8027318: 1c90 adds r0, r2, #2
  97451. 802731a: 9604 str r6, [sp, #16]
  97452. 802731c: 9303 str r3, [sp, #12]
  97453. 802731e: f107 0310 add.w r3, r7, #16
  97454. 8027322: 330c adds r3, #12
  97455. 8027324: 9302 str r3, [sp, #8]
  97456. 8027326: f107 0310 add.w r3, r7, #16
  97457. 802732a: 3308 adds r3, #8
  97458. 802732c: 9301 str r3, [sp, #4]
  97459. 802732e: f107 0320 add.w r3, r7, #32
  97460. 8027332: 9300 str r3, [sp, #0]
  97461. 8027334: 462b mov r3, r5
  97462. 8027336: 4622 mov r2, r4
  97463. 8027338: f000 fea0 bl 802807c <MQTTDeserialize_publish>
  97464. 802733c: 4603 mov r3, r0
  97465. 802733e: 2b01 cmp r3, #1
  97466. 8027340: f040 8090 bne.w 8027464 <cycle+0x1d4>
  97467. goto exit;
  97468. msg.qos = (enum QoS)intQoS;
  97469. 8027344: 68fb ldr r3, [r7, #12]
  97470. 8027346: b2db uxtb r3, r3
  97471. 8027348: 743b strb r3, [r7, #16]
  97472. deliverMessage(c, &topicName, &msg);
  97473. 802734a: f107 0210 add.w r2, r7, #16
  97474. 802734e: f107 0320 add.w r3, r7, #32
  97475. 8027352: 4619 mov r1, r3
  97476. 8027354: 6878 ldr r0, [r7, #4]
  97477. 8027356: f7ff feb0 bl 80270ba <deliverMessage>
  97478. if (msg.qos != QOS0)
  97479. 802735a: 7c3b ldrb r3, [r7, #16]
  97480. 802735c: 2b00 cmp r3, #0
  97481. 802735e: d074 beq.n 802744a <cycle+0x1ba>
  97482. {
  97483. if (msg.qos == QOS1)
  97484. 8027360: 7c3b ldrb r3, [r7, #16]
  97485. 8027362: 2b01 cmp r3, #1
  97486. 8027364: d10c bne.n 8027380 <cycle+0xf0>
  97487. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBACK, 0, msg.id);
  97488. 8027366: 687b ldr r3, [r7, #4]
  97489. 8027368: 6918 ldr r0, [r3, #16]
  97490. 802736a: 687b ldr r3, [r7, #4]
  97491. 802736c: 689b ldr r3, [r3, #8]
  97492. 802736e: 4619 mov r1, r3
  97493. 8027370: 8abb ldrh r3, [r7, #20]
  97494. 8027372: 9300 str r3, [sp, #0]
  97495. 8027374: 2300 movs r3, #0
  97496. 8027376: 2204 movs r2, #4
  97497. 8027378: f001 f9d9 bl 802872e <MQTTSerialize_ack>
  97498. 802737c: 6378 str r0, [r7, #52] @ 0x34
  97499. 802737e: e00e b.n 802739e <cycle+0x10e>
  97500. else if (msg.qos == QOS2)
  97501. 8027380: 7c3b ldrb r3, [r7, #16]
  97502. 8027382: 2b02 cmp r3, #2
  97503. 8027384: d10b bne.n 802739e <cycle+0x10e>
  97504. len = MQTTSerialize_ack(c->buf, c->buf_size, PUBREC, 0, msg.id);
  97505. 8027386: 687b ldr r3, [r7, #4]
  97506. 8027388: 6918 ldr r0, [r3, #16]
  97507. 802738a: 687b ldr r3, [r7, #4]
  97508. 802738c: 689b ldr r3, [r3, #8]
  97509. 802738e: 4619 mov r1, r3
  97510. 8027390: 8abb ldrh r3, [r7, #20]
  97511. 8027392: 9300 str r3, [sp, #0]
  97512. 8027394: 2300 movs r3, #0
  97513. 8027396: 2205 movs r2, #5
  97514. 8027398: f001 f9c9 bl 802872e <MQTTSerialize_ack>
  97515. 802739c: 6378 str r0, [r7, #52] @ 0x34
  97516. if (len <= 0)
  97517. 802739e: 6b7b ldr r3, [r7, #52] @ 0x34
  97518. 80273a0: 2b00 cmp r3, #0
  97519. 80273a2: dc03 bgt.n 80273ac <cycle+0x11c>
  97520. rc = FAILURE;
  97521. 80273a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97522. 80273a8: 633b str r3, [r7, #48] @ 0x30
  97523. 80273aa: e005 b.n 80273b8 <cycle+0x128>
  97524. else
  97525. rc = sendPacket(c, len, timer);
  97526. 80273ac: 683a ldr r2, [r7, #0]
  97527. 80273ae: 6b79 ldr r1, [r7, #52] @ 0x34
  97528. 80273b0: 6878 ldr r0, [r7, #4]
  97529. 80273b2: f7ff fcb6 bl 8026d22 <sendPacket>
  97530. 80273b6: 6338 str r0, [r7, #48] @ 0x30
  97531. if (rc == FAILURE)
  97532. 80273b8: 6b3b ldr r3, [r7, #48] @ 0x30
  97533. 80273ba: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  97534. 80273be: d144 bne.n 802744a <cycle+0x1ba>
  97535. goto exit; // there was a problem
  97536. 80273c0: e053 b.n 802746a <cycle+0x1da>
  97537. case PUBREC:
  97538. case PUBREL:
  97539. {
  97540. unsigned short mypacketid;
  97541. unsigned char dup, type;
  97542. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  97543. 80273c2: 687b ldr r3, [r7, #4]
  97544. 80273c4: 695c ldr r4, [r3, #20]
  97545. 80273c6: 687b ldr r3, [r7, #4]
  97546. 80273c8: 68db ldr r3, [r3, #12]
  97547. 80273ca: f107 020a add.w r2, r7, #10
  97548. 80273ce: f107 0109 add.w r1, r7, #9
  97549. 80273d2: f107 0008 add.w r0, r7, #8
  97550. 80273d6: 9300 str r3, [sp, #0]
  97551. 80273d8: 4623 mov r3, r4
  97552. 80273da: f000 fec1 bl 8028160 <MQTTDeserialize_ack>
  97553. 80273de: 4603 mov r3, r0
  97554. 80273e0: 2b01 cmp r3, #1
  97555. 80273e2: d003 beq.n 80273ec <cycle+0x15c>
  97556. rc = FAILURE;
  97557. 80273e4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97558. 80273e8: 633b str r3, [r7, #48] @ 0x30
  97559. 80273ea: e023 b.n 8027434 <cycle+0x1a4>
  97560. else if ((len = MQTTSerialize_ack(c->buf, c->buf_size,
  97561. 80273ec: 687b ldr r3, [r7, #4]
  97562. 80273ee: 6918 ldr r0, [r3, #16]
  97563. 80273f0: 687b ldr r3, [r7, #4]
  97564. 80273f2: 689b ldr r3, [r3, #8]
  97565. 80273f4: 4619 mov r1, r3
  97566. 80273f6: 6afb ldr r3, [r7, #44] @ 0x2c
  97567. 80273f8: 2b05 cmp r3, #5
  97568. 80273fa: d101 bne.n 8027400 <cycle+0x170>
  97569. 80273fc: 2206 movs r2, #6
  97570. 80273fe: e000 b.n 8027402 <cycle+0x172>
  97571. 8027400: 2207 movs r2, #7
  97572. 8027402: 897b ldrh r3, [r7, #10]
  97573. 8027404: 9300 str r3, [sp, #0]
  97574. 8027406: 2300 movs r3, #0
  97575. 8027408: f001 f991 bl 802872e <MQTTSerialize_ack>
  97576. 802740c: 6378 str r0, [r7, #52] @ 0x34
  97577. 802740e: 6b7b ldr r3, [r7, #52] @ 0x34
  97578. 8027410: 2b00 cmp r3, #0
  97579. 8027412: dc03 bgt.n 802741c <cycle+0x18c>
  97580. (packet_type == PUBREC) ? PUBREL : PUBCOMP, 0, mypacketid)) <= 0)
  97581. rc = FAILURE;
  97582. 8027414: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97583. 8027418: 633b str r3, [r7, #48] @ 0x30
  97584. 802741a: e00b b.n 8027434 <cycle+0x1a4>
  97585. else if ((rc = sendPacket(c, len, timer)) != MQTT_SUCCESS) // send the PUBREL packet
  97586. 802741c: 683a ldr r2, [r7, #0]
  97587. 802741e: 6b79 ldr r1, [r7, #52] @ 0x34
  97588. 8027420: 6878 ldr r0, [r7, #4]
  97589. 8027422: f7ff fc7e bl 8026d22 <sendPacket>
  97590. 8027426: 6338 str r0, [r7, #48] @ 0x30
  97591. 8027428: 6b3b ldr r3, [r7, #48] @ 0x30
  97592. 802742a: 2b00 cmp r3, #0
  97593. 802742c: d002 beq.n 8027434 <cycle+0x1a4>
  97594. rc = FAILURE; // there was a problem
  97595. 802742e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97596. 8027432: 633b str r3, [r7, #48] @ 0x30
  97597. if (rc == FAILURE)
  97598. 8027434: 6b3b ldr r3, [r7, #48] @ 0x30
  97599. 8027436: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  97600. 802743a: d108 bne.n 802744e <cycle+0x1be>
  97601. goto exit; // there was a problem
  97602. 802743c: e015 b.n 802746a <cycle+0x1da>
  97603. }
  97604. case PUBCOMP:
  97605. break;
  97606. case PINGRESP:
  97607. c->ping_outstanding = 0;
  97608. 802743e: 687b ldr r3, [r7, #4]
  97609. 8027440: 2200 movs r2, #0
  97610. 8027442: 771a strb r2, [r3, #28]
  97611. break;
  97612. 8027444: e004 b.n 8027450 <cycle+0x1c0>
  97613. break;
  97614. 8027446: bf00 nop
  97615. 8027448: e002 b.n 8027450 <cycle+0x1c0>
  97616. break;
  97617. 802744a: bf00 nop
  97618. 802744c: e000 b.n 8027450 <cycle+0x1c0>
  97619. break;
  97620. 802744e: bf00 nop
  97621. }
  97622. if (keepalive(c) != MQTT_SUCCESS) {
  97623. 8027450: 6878 ldr r0, [r7, #4]
  97624. 8027452: f7ff fe9a bl 802718a <keepalive>
  97625. 8027456: 4603 mov r3, r0
  97626. 8027458: 2b00 cmp r3, #0
  97627. 802745a: d005 beq.n 8027468 <cycle+0x1d8>
  97628. //check only keepalive FAILURE status so that previous FAILURE status can be considered as FAULT
  97629. rc = FAILURE;
  97630. 802745c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97631. 8027460: 633b str r3, [r7, #48] @ 0x30
  97632. 8027462: e002 b.n 802746a <cycle+0x1da>
  97633. goto exit;
  97634. 8027464: bf00 nop
  97635. 8027466: e000 b.n 802746a <cycle+0x1da>
  97636. }
  97637. exit:
  97638. 8027468: bf00 nop
  97639. if (rc == MQTT_SUCCESS)
  97640. 802746a: 6b3b ldr r3, [r7, #48] @ 0x30
  97641. 802746c: 2b00 cmp r3, #0
  97642. 802746e: d102 bne.n 8027476 <cycle+0x1e6>
  97643. rc = packet_type;
  97644. 8027470: 6afb ldr r3, [r7, #44] @ 0x2c
  97645. 8027472: 633b str r3, [r7, #48] @ 0x30
  97646. 8027474: e006 b.n 8027484 <cycle+0x1f4>
  97647. else if (c->isconnected)
  97648. 8027476: 687b ldr r3, [r7, #4]
  97649. 8027478: 6a1b ldr r3, [r3, #32]
  97650. 802747a: 2b00 cmp r3, #0
  97651. 802747c: d002 beq.n 8027484 <cycle+0x1f4>
  97652. MQTTCloseSession(c);
  97653. 802747e: 6878 ldr r0, [r7, #4]
  97654. 8027480: f7ff fef0 bl 8027264 <MQTTCloseSession>
  97655. return rc;
  97656. 8027484: 6b3b ldr r3, [r7, #48] @ 0x30
  97657. }
  97658. 8027486: 4618 mov r0, r3
  97659. 8027488: 373c adds r7, #60 @ 0x3c
  97660. 802748a: 46bd mov sp, r7
  97661. 802748c: bdf0 pop {r4, r5, r6, r7, pc}
  97662. 802748e: bf00 nop
  97663. 08027490 <MQTTYield>:
  97664. int MQTTYield(MQTTClient* c, int timeout_ms)
  97665. {
  97666. 8027490: b580 push {r7, lr}
  97667. 8027492: b086 sub sp, #24
  97668. 8027494: af00 add r7, sp, #0
  97669. 8027496: 6078 str r0, [r7, #4]
  97670. 8027498: 6039 str r1, [r7, #0]
  97671. int rc = MQTT_SUCCESS;
  97672. 802749a: 2300 movs r3, #0
  97673. 802749c: 617b str r3, [r7, #20]
  97674. Timer timer;
  97675. TimerInit(&timer);
  97676. 802749e: f107 030c add.w r3, r7, #12
  97677. 80274a2: 4618 mov r0, r3
  97678. 80274a4: f000 fb3e bl 8027b24 <TimerInit>
  97679. TimerCountdownMS(&timer, timeout_ms);
  97680. 80274a8: 683a ldr r2, [r7, #0]
  97681. 80274aa: f107 030c add.w r3, r7, #12
  97682. 80274ae: 4611 mov r1, r2
  97683. 80274b0: 4618 mov r0, r3
  97684. 80274b2: f000 faf5 bl 8027aa0 <TimerCountdownMS>
  97685. do
  97686. {
  97687. if (cycle(c, &timer) < 0)
  97688. 80274b6: f107 030c add.w r3, r7, #12
  97689. 80274ba: 4619 mov r1, r3
  97690. 80274bc: 6878 ldr r0, [r7, #4]
  97691. 80274be: f7ff fee7 bl 8027290 <cycle>
  97692. 80274c2: 4603 mov r3, r0
  97693. 80274c4: 2b00 cmp r3, #0
  97694. 80274c6: da03 bge.n 80274d0 <MQTTYield+0x40>
  97695. {
  97696. rc = FAILURE;
  97697. 80274c8: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97698. 80274cc: 617b str r3, [r7, #20]
  97699. break;
  97700. 80274ce: e007 b.n 80274e0 <MQTTYield+0x50>
  97701. }
  97702. } while (!TimerIsExpired(&timer));
  97703. 80274d0: f107 030c add.w r3, r7, #12
  97704. 80274d4: 4618 mov r0, r3
  97705. 80274d6: f000 facd bl 8027a74 <TimerIsExpired>
  97706. 80274da: 4603 mov r3, r0
  97707. 80274dc: 2b00 cmp r3, #0
  97708. 80274de: d0ea beq.n 80274b6 <MQTTYield+0x26>
  97709. return rc;
  97710. 80274e0: 697b ldr r3, [r7, #20]
  97711. }
  97712. 80274e2: 4618 mov r0, r3
  97713. 80274e4: 3718 adds r7, #24
  97714. 80274e6: 46bd mov sp, r7
  97715. 80274e8: bd80 pop {r7, pc}
  97716. 080274ea <waitfor>:
  97717. }
  97718. #endif
  97719. int waitfor(MQTTClient* c, int packet_type, Timer* timer)
  97720. {
  97721. 80274ea: b580 push {r7, lr}
  97722. 80274ec: b086 sub sp, #24
  97723. 80274ee: af00 add r7, sp, #0
  97724. 80274f0: 60f8 str r0, [r7, #12]
  97725. 80274f2: 60b9 str r1, [r7, #8]
  97726. 80274f4: 607a str r2, [r7, #4]
  97727. int rc = FAILURE;
  97728. 80274f6: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97729. 80274fa: 617b str r3, [r7, #20]
  97730. do
  97731. {
  97732. if (TimerIsExpired(timer))
  97733. 80274fc: 6878 ldr r0, [r7, #4]
  97734. 80274fe: f000 fab9 bl 8027a74 <TimerIsExpired>
  97735. 8027502: 4603 mov r3, r0
  97736. 8027504: 2b00 cmp r3, #0
  97737. 8027506: d10c bne.n 8027522 <waitfor+0x38>
  97738. break; // we timed out
  97739. rc = cycle(c, timer);
  97740. 8027508: 6879 ldr r1, [r7, #4]
  97741. 802750a: 68f8 ldr r0, [r7, #12]
  97742. 802750c: f7ff fec0 bl 8027290 <cycle>
  97743. 8027510: 6178 str r0, [r7, #20]
  97744. }
  97745. while (rc != packet_type && rc >= 0);
  97746. 8027512: 697a ldr r2, [r7, #20]
  97747. 8027514: 68bb ldr r3, [r7, #8]
  97748. 8027516: 429a cmp r2, r3
  97749. 8027518: d004 beq.n 8027524 <waitfor+0x3a>
  97750. 802751a: 697b ldr r3, [r7, #20]
  97751. 802751c: 2b00 cmp r3, #0
  97752. 802751e: daed bge.n 80274fc <waitfor+0x12>
  97753. 8027520: e000 b.n 8027524 <waitfor+0x3a>
  97754. break; // we timed out
  97755. 8027522: bf00 nop
  97756. return rc;
  97757. 8027524: 697b ldr r3, [r7, #20]
  97758. }
  97759. 8027526: 4618 mov r0, r3
  97760. 8027528: 3718 adds r7, #24
  97761. 802752a: 46bd mov sp, r7
  97762. 802752c: bd80 pop {r7, pc}
  97763. ...
  97764. 08027530 <MQTTConnectWithResults>:
  97765. int MQTTConnectWithResults(MQTTClient* c, MQTTPacket_connectData* options, MQTTConnackData* data)
  97766. {
  97767. 8027530: b580 push {r7, lr}
  97768. 8027532: b09e sub sp, #120 @ 0x78
  97769. 8027534: af00 add r7, sp, #0
  97770. 8027536: 60f8 str r0, [r7, #12]
  97771. 8027538: 60b9 str r1, [r7, #8]
  97772. 802753a: 607a str r2, [r7, #4]
  97773. Timer connect_timer;
  97774. int rc = FAILURE;
  97775. 802753c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97776. 8027540: 677b str r3, [r7, #116] @ 0x74
  97777. MQTTPacket_connectData default_options = MQTTPacket_connectData_initializer;
  97778. 8027542: 4a49 ldr r2, [pc, #292] @ (8027668 <MQTTConnectWithResults+0x138>)
  97779. 8027544: f107 0310 add.w r3, r7, #16
  97780. 8027548: 4611 mov r1, r2
  97781. 802754a: 2258 movs r2, #88 @ 0x58
  97782. 802754c: 4618 mov r0, r3
  97783. 802754e: f003 f8be bl 802a6ce <memcpy>
  97784. int len = 0;
  97785. 8027552: 2300 movs r3, #0
  97786. 8027554: 673b str r3, [r7, #112] @ 0x70
  97787. #if defined(MQTT_TASK)
  97788. MutexLock(&c->mutex);
  97789. #endif
  97790. // osMutexAcquire(mqttMutex, osWaitForever);
  97791. osMutexAcquire(c->mutex, osWaitForever);
  97792. 8027556: 68fb ldr r3, [r7, #12]
  97793. 8027558: 6e9b ldr r3, [r3, #104] @ 0x68
  97794. 802755a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  97795. 802755e: 4618 mov r0, r3
  97796. 8027560: f7e9 fde8 bl 8011134 <osMutexAcquire>
  97797. if (c->isconnected) /* don't send connect packet again if we are already connected */
  97798. 8027564: 68fb ldr r3, [r7, #12]
  97799. 8027566: 6a1b ldr r3, [r3, #32]
  97800. 8027568: 2b00 cmp r3, #0
  97801. 802756a: d164 bne.n 8027636 <MQTTConnectWithResults+0x106>
  97802. goto exit;
  97803. TimerInit(&connect_timer);
  97804. 802756c: f107 0368 add.w r3, r7, #104 @ 0x68
  97805. 8027570: 4618 mov r0, r3
  97806. 8027572: f000 fad7 bl 8027b24 <TimerInit>
  97807. TimerCountdownMS(&connect_timer, c->command_timeout_ms);
  97808. 8027576: 68fb ldr r3, [r7, #12]
  97809. 8027578: 685a ldr r2, [r3, #4]
  97810. 802757a: f107 0368 add.w r3, r7, #104 @ 0x68
  97811. 802757e: 4611 mov r1, r2
  97812. 8027580: 4618 mov r0, r3
  97813. 8027582: f000 fa8d bl 8027aa0 <TimerCountdownMS>
  97814. if (options == 0)
  97815. 8027586: 68bb ldr r3, [r7, #8]
  97816. 8027588: 2b00 cmp r3, #0
  97817. 802758a: d102 bne.n 8027592 <MQTTConnectWithResults+0x62>
  97818. options = &default_options; /* set default options if none were supplied */
  97819. 802758c: f107 0310 add.w r3, r7, #16
  97820. 8027590: 60bb str r3, [r7, #8]
  97821. c->keepAliveInterval = options->keepAliveInterval;
  97822. 8027592: 68bb ldr r3, [r7, #8]
  97823. 8027594: 8b1b ldrh r3, [r3, #24]
  97824. 8027596: 461a mov r2, r3
  97825. 8027598: 68fb ldr r3, [r7, #12]
  97826. 802759a: 619a str r2, [r3, #24]
  97827. c->cleansession = options->cleansession;
  97828. 802759c: 68bb ldr r3, [r7, #8]
  97829. 802759e: 7e9b ldrb r3, [r3, #26]
  97830. 80275a0: 461a mov r2, r3
  97831. 80275a2: 68fb ldr r3, [r7, #12]
  97832. 80275a4: 625a str r2, [r3, #36] @ 0x24
  97833. TimerCountdown(&c->last_received, c->keepAliveInterval);
  97834. 80275a6: 68fb ldr r3, [r7, #12]
  97835. 80275a8: f103 0260 add.w r2, r3, #96 @ 0x60
  97836. 80275ac: 68fb ldr r3, [r7, #12]
  97837. 80275ae: 699b ldr r3, [r3, #24]
  97838. 80275b0: 4619 mov r1, r3
  97839. 80275b2: 4610 mov r0, r2
  97840. 80275b4: f000 fa88 bl 8027ac8 <TimerCountdown>
  97841. if ((len = MQTTSerialize_connect(c->buf, c->buf_size, options)) <= 0)
  97842. 80275b8: 68fb ldr r3, [r7, #12]
  97843. 80275ba: 6918 ldr r0, [r3, #16]
  97844. 80275bc: 68fb ldr r3, [r7, #12]
  97845. 80275be: 689b ldr r3, [r3, #8]
  97846. 80275c0: 68ba ldr r2, [r7, #8]
  97847. 80275c2: 4619 mov r1, r3
  97848. 80275c4: f000 fbd2 bl 8027d6c <MQTTSerialize_connect>
  97849. 80275c8: 6738 str r0, [r7, #112] @ 0x70
  97850. 80275ca: 6f3b ldr r3, [r7, #112] @ 0x70
  97851. 80275cc: 2b00 cmp r3, #0
  97852. 80275ce: dd34 ble.n 802763a <MQTTConnectWithResults+0x10a>
  97853. goto exit;
  97854. if ((rc = sendPacket(c, len, &connect_timer)) != MQTT_SUCCESS) // send the connect packet
  97855. 80275d0: f107 0368 add.w r3, r7, #104 @ 0x68
  97856. 80275d4: 461a mov r2, r3
  97857. 80275d6: 6f39 ldr r1, [r7, #112] @ 0x70
  97858. 80275d8: 68f8 ldr r0, [r7, #12]
  97859. 80275da: f7ff fba2 bl 8026d22 <sendPacket>
  97860. 80275de: 6778 str r0, [r7, #116] @ 0x74
  97861. 80275e0: 6f7b ldr r3, [r7, #116] @ 0x74
  97862. 80275e2: 2b00 cmp r3, #0
  97863. 80275e4: d12b bne.n 802763e <MQTTConnectWithResults+0x10e>
  97864. goto exit; // there was a problem
  97865. // this will be a blocking call, wait for the connack
  97866. if (waitfor(c, CONNACK, &connect_timer) == CONNACK)
  97867. 80275e6: f107 0368 add.w r3, r7, #104 @ 0x68
  97868. 80275ea: 461a mov r2, r3
  97869. 80275ec: 2102 movs r1, #2
  97870. 80275ee: 68f8 ldr r0, [r7, #12]
  97871. 80275f0: f7ff ff7b bl 80274ea <waitfor>
  97872. 80275f4: 4603 mov r3, r0
  97873. 80275f6: 2b02 cmp r3, #2
  97874. 80275f8: d119 bne.n 802762e <MQTTConnectWithResults+0xfe>
  97875. {
  97876. data->rc = 0;
  97877. 80275fa: 687b ldr r3, [r7, #4]
  97878. 80275fc: 2200 movs r2, #0
  97879. 80275fe: 701a strb r2, [r3, #0]
  97880. data->sessionPresent = 0;
  97881. 8027600: 687b ldr r3, [r7, #4]
  97882. 8027602: 2200 movs r2, #0
  97883. 8027604: 705a strb r2, [r3, #1]
  97884. if (MQTTDeserialize_connack(&data->sessionPresent, &data->rc, c->readbuf, c->readbuf_size) == 1)
  97885. 8027606: 687b ldr r3, [r7, #4]
  97886. 8027608: 1c58 adds r0, r3, #1
  97887. 802760a: 6879 ldr r1, [r7, #4]
  97888. 802760c: 68fb ldr r3, [r7, #12]
  97889. 802760e: 695a ldr r2, [r3, #20]
  97890. 8027610: 68fb ldr r3, [r7, #12]
  97891. 8027612: 68db ldr r3, [r3, #12]
  97892. 8027614: f000 fc96 bl 8027f44 <MQTTDeserialize_connack>
  97893. 8027618: 4603 mov r3, r0
  97894. 802761a: 2b01 cmp r3, #1
  97895. 802761c: d103 bne.n 8027626 <MQTTConnectWithResults+0xf6>
  97896. rc = data->rc;
  97897. 802761e: 687b ldr r3, [r7, #4]
  97898. 8027620: 781b ldrb r3, [r3, #0]
  97899. 8027622: 677b str r3, [r7, #116] @ 0x74
  97900. 8027624: e00c b.n 8027640 <MQTTConnectWithResults+0x110>
  97901. // rc = MQTT_SUCCESS;
  97902. else
  97903. rc = FAILURE;
  97904. 8027626: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97905. 802762a: 677b str r3, [r7, #116] @ 0x74
  97906. 802762c: e008 b.n 8027640 <MQTTConnectWithResults+0x110>
  97907. }
  97908. else
  97909. rc = FAILURE;
  97910. 802762e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97911. 8027632: 677b str r3, [r7, #116] @ 0x74
  97912. 8027634: e004 b.n 8027640 <MQTTConnectWithResults+0x110>
  97913. goto exit;
  97914. 8027636: bf00 nop
  97915. 8027638: e002 b.n 8027640 <MQTTConnectWithResults+0x110>
  97916. goto exit;
  97917. 802763a: bf00 nop
  97918. 802763c: e000 b.n 8027640 <MQTTConnectWithResults+0x110>
  97919. goto exit; // there was a problem
  97920. 802763e: bf00 nop
  97921. exit:
  97922. if (rc == MQTT_SUCCESS)
  97923. 8027640: 6f7b ldr r3, [r7, #116] @ 0x74
  97924. 8027642: 2b00 cmp r3, #0
  97925. 8027644: d105 bne.n 8027652 <MQTTConnectWithResults+0x122>
  97926. {
  97927. c->isconnected = 1;
  97928. 8027646: 68fb ldr r3, [r7, #12]
  97929. 8027648: 2201 movs r2, #1
  97930. 802764a: 621a str r2, [r3, #32]
  97931. c->ping_outstanding = 0;
  97932. 802764c: 68fb ldr r3, [r7, #12]
  97933. 802764e: 2200 movs r2, #0
  97934. 8027650: 771a strb r2, [r3, #28]
  97935. #if defined(MQTT_TASK)
  97936. MutexUnlock(&c->mutex);
  97937. #endif
  97938. // osMutexRelease(mqttMutex);
  97939. osMutexRelease(c->mutex);
  97940. 8027652: 68fb ldr r3, [r7, #12]
  97941. 8027654: 6e9b ldr r3, [r3, #104] @ 0x68
  97942. 8027656: 4618 mov r0, r3
  97943. 8027658: f7e9 fdb7 bl 80111ca <osMutexRelease>
  97944. return rc;
  97945. 802765c: 6f7b ldr r3, [r7, #116] @ 0x74
  97946. }
  97947. 802765e: 4618 mov r0, r3
  97948. 8027660: 3778 adds r7, #120 @ 0x78
  97949. 8027662: 46bd mov sp, r7
  97950. 8027664: bd80 pop {r7, pc}
  97951. 8027666: bf00 nop
  97952. 8027668: 080311bc .word 0x080311bc
  97953. 0802766c <MQTTConnect>:
  97954. int MQTTConnect(MQTTClient* c, MQTTPacket_connectData* options)
  97955. {
  97956. 802766c: b580 push {r7, lr}
  97957. 802766e: b084 sub sp, #16
  97958. 8027670: af00 add r7, sp, #0
  97959. 8027672: 6078 str r0, [r7, #4]
  97960. 8027674: 6039 str r1, [r7, #0]
  97961. MQTTConnackData data;
  97962. return MQTTConnectWithResults(c, options, &data);
  97963. 8027676: f107 030c add.w r3, r7, #12
  97964. 802767a: 461a mov r2, r3
  97965. 802767c: 6839 ldr r1, [r7, #0]
  97966. 802767e: 6878 ldr r0, [r7, #4]
  97967. 8027680: f7ff ff56 bl 8027530 <MQTTConnectWithResults>
  97968. 8027684: 4603 mov r3, r0
  97969. }
  97970. 8027686: 4618 mov r0, r3
  97971. 8027688: 3710 adds r7, #16
  97972. 802768a: 46bd mov sp, r7
  97973. 802768c: bd80 pop {r7, pc}
  97974. 0802768e <MQTTSetMessageHandler>:
  97975. int MQTTSetMessageHandler(MQTTClient* c, const char* topicFilter, messageHandler messageHandler)
  97976. {
  97977. 802768e: b580 push {r7, lr}
  97978. 8027690: b086 sub sp, #24
  97979. 8027692: af00 add r7, sp, #0
  97980. 8027694: 60f8 str r0, [r7, #12]
  97981. 8027696: 60b9 str r1, [r7, #8]
  97982. 8027698: 607a str r2, [r7, #4]
  97983. int rc = FAILURE;
  97984. 802769a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97985. 802769e: 617b str r3, [r7, #20]
  97986. int i = -1;
  97987. 80276a0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  97988. 80276a4: 613b str r3, [r7, #16]
  97989. /* first check for an existing matching slot */
  97990. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  97991. 80276a6: 2300 movs r3, #0
  97992. 80276a8: 613b str r3, [r7, #16]
  97993. 80276aa: e028 b.n 80276fe <MQTTSetMessageHandler+0x70>
  97994. {
  97995. if (c->messageHandlers[i].topicFilter != NULL && strcmp(c->messageHandlers[i].topicFilter, topicFilter) == 0)
  97996. 80276ac: 68fb ldr r3, [r7, #12]
  97997. 80276ae: 693a ldr r2, [r7, #16]
  97998. 80276b0: 3205 adds r2, #5
  97999. 80276b2: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  98000. 80276b6: 2b00 cmp r3, #0
  98001. 80276b8: d01e beq.n 80276f8 <MQTTSetMessageHandler+0x6a>
  98002. 80276ba: 68fb ldr r3, [r7, #12]
  98003. 80276bc: 693a ldr r2, [r7, #16]
  98004. 80276be: 3205 adds r2, #5
  98005. 80276c0: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  98006. 80276c4: 68b9 ldr r1, [r7, #8]
  98007. 80276c6: 4618 mov r0, r3
  98008. 80276c8: f7d8 fe0a bl 80002e0 <strcmp>
  98009. 80276cc: 4603 mov r3, r0
  98010. 80276ce: 2b00 cmp r3, #0
  98011. 80276d0: d112 bne.n 80276f8 <MQTTSetMessageHandler+0x6a>
  98012. {
  98013. if (messageHandler == NULL) /* remove existing */
  98014. 80276d2: 687b ldr r3, [r7, #4]
  98015. 80276d4: 2b00 cmp r3, #0
  98016. 80276d6: d10c bne.n 80276f2 <MQTTSetMessageHandler+0x64>
  98017. {
  98018. c->messageHandlers[i].topicFilter = NULL;
  98019. 80276d8: 68fb ldr r3, [r7, #12]
  98020. 80276da: 693a ldr r2, [r7, #16]
  98021. 80276dc: 3205 adds r2, #5
  98022. 80276de: 2100 movs r1, #0
  98023. 80276e0: f843 1032 str.w r1, [r3, r2, lsl #3]
  98024. c->messageHandlers[i].fp = NULL;
  98025. 80276e4: 68fa ldr r2, [r7, #12]
  98026. 80276e6: 693b ldr r3, [r7, #16]
  98027. 80276e8: 3305 adds r3, #5
  98028. 80276ea: 00db lsls r3, r3, #3
  98029. 80276ec: 4413 add r3, r2
  98030. 80276ee: 2200 movs r2, #0
  98031. 80276f0: 605a str r2, [r3, #4]
  98032. }
  98033. rc = MQTT_SUCCESS; /* return i when adding new subscription */
  98034. 80276f2: 2300 movs r3, #0
  98035. 80276f4: 617b str r3, [r7, #20]
  98036. break;
  98037. 80276f6: e005 b.n 8027704 <MQTTSetMessageHandler+0x76>
  98038. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98039. 80276f8: 693b ldr r3, [r7, #16]
  98040. 80276fa: 3301 adds r3, #1
  98041. 80276fc: 613b str r3, [r7, #16]
  98042. 80276fe: 693b ldr r3, [r7, #16]
  98043. 8027700: 2b04 cmp r3, #4
  98044. 8027702: ddd3 ble.n 80276ac <MQTTSetMessageHandler+0x1e>
  98045. }
  98046. }
  98047. /* if no existing, look for empty slot (unless we are removing) */
  98048. if (messageHandler != NULL) {
  98049. 8027704: 687b ldr r3, [r7, #4]
  98050. 8027706: 2b00 cmp r3, #0
  98051. 8027708: d026 beq.n 8027758 <MQTTSetMessageHandler+0xca>
  98052. if (rc == FAILURE)
  98053. 802770a: 697b ldr r3, [r7, #20]
  98054. 802770c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  98055. 8027710: d112 bne.n 8027738 <MQTTSetMessageHandler+0xaa>
  98056. {
  98057. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98058. 8027712: 2300 movs r3, #0
  98059. 8027714: 613b str r3, [r7, #16]
  98060. 8027716: e00c b.n 8027732 <MQTTSetMessageHandler+0xa4>
  98061. {
  98062. if (c->messageHandlers[i].topicFilter == NULL)
  98063. 8027718: 68fb ldr r3, [r7, #12]
  98064. 802771a: 693a ldr r2, [r7, #16]
  98065. 802771c: 3205 adds r2, #5
  98066. 802771e: f853 3032 ldr.w r3, [r3, r2, lsl #3]
  98067. 8027722: 2b00 cmp r3, #0
  98068. 8027724: d102 bne.n 802772c <MQTTSetMessageHandler+0x9e>
  98069. {
  98070. rc = MQTT_SUCCESS;
  98071. 8027726: 2300 movs r3, #0
  98072. 8027728: 617b str r3, [r7, #20]
  98073. break;
  98074. 802772a: e005 b.n 8027738 <MQTTSetMessageHandler+0xaa>
  98075. for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
  98076. 802772c: 693b ldr r3, [r7, #16]
  98077. 802772e: 3301 adds r3, #1
  98078. 8027730: 613b str r3, [r7, #16]
  98079. 8027732: 693b ldr r3, [r7, #16]
  98080. 8027734: 2b04 cmp r3, #4
  98081. 8027736: ddef ble.n 8027718 <MQTTSetMessageHandler+0x8a>
  98082. }
  98083. }
  98084. }
  98085. if (i < MAX_MESSAGE_HANDLERS)
  98086. 8027738: 693b ldr r3, [r7, #16]
  98087. 802773a: 2b04 cmp r3, #4
  98088. 802773c: dc0c bgt.n 8027758 <MQTTSetMessageHandler+0xca>
  98089. {
  98090. c->messageHandlers[i].topicFilter = topicFilter;
  98091. 802773e: 68fb ldr r3, [r7, #12]
  98092. 8027740: 693a ldr r2, [r7, #16]
  98093. 8027742: 3205 adds r2, #5
  98094. 8027744: 68b9 ldr r1, [r7, #8]
  98095. 8027746: f843 1032 str.w r1, [r3, r2, lsl #3]
  98096. c->messageHandlers[i].fp = messageHandler;
  98097. 802774a: 68fa ldr r2, [r7, #12]
  98098. 802774c: 693b ldr r3, [r7, #16]
  98099. 802774e: 3305 adds r3, #5
  98100. 8027750: 00db lsls r3, r3, #3
  98101. 8027752: 4413 add r3, r2
  98102. 8027754: 687a ldr r2, [r7, #4]
  98103. 8027756: 605a str r2, [r3, #4]
  98104. }
  98105. }
  98106. return rc;
  98107. 8027758: 697b ldr r3, [r7, #20]
  98108. }
  98109. 802775a: 4618 mov r0, r3
  98110. 802775c: 3718 adds r7, #24
  98111. 802775e: 46bd mov sp, r7
  98112. 8027760: bd80 pop {r7, pc}
  98113. 08027762 <MQTTSubscribeWithResults>:
  98114. int MQTTSubscribeWithResults(MQTTClient* c, const char* topicFilter, enum QoS qos,
  98115. messageHandler messageHandler, MQTTSubackData* data)
  98116. {
  98117. 8027762: b5b0 push {r4, r5, r7, lr}
  98118. 8027764: b094 sub sp, #80 @ 0x50
  98119. 8027766: af04 add r7, sp, #16
  98120. 8027768: 60f8 str r0, [r7, #12]
  98121. 802776a: 60b9 str r1, [r7, #8]
  98122. 802776c: 603b str r3, [r7, #0]
  98123. 802776e: 4613 mov r3, r2
  98124. 8027770: 71fb strb r3, [r7, #7]
  98125. int rc = FAILURE;
  98126. 8027772: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98127. 8027776: 63fb str r3, [r7, #60] @ 0x3c
  98128. Timer timer;
  98129. int len = 0;
  98130. 8027778: 2300 movs r3, #0
  98131. 802777a: 63bb str r3, [r7, #56] @ 0x38
  98132. MQTTString topic = MQTTString_initializer;
  98133. 802777c: 2300 movs r3, #0
  98134. 802777e: 627b str r3, [r7, #36] @ 0x24
  98135. 8027780: 2300 movs r3, #0
  98136. 8027782: 62bb str r3, [r7, #40] @ 0x28
  98137. 8027784: 2300 movs r3, #0
  98138. 8027786: 62fb str r3, [r7, #44] @ 0x2c
  98139. topic.cstring = (char *)topicFilter;
  98140. 8027788: 68bb ldr r3, [r7, #8]
  98141. 802778a: 627b str r3, [r7, #36] @ 0x24
  98142. #if defined(MQTT_TASK)
  98143. MutexLock(&c->mutex);
  98144. #endif
  98145. // osMutexAcquire(mqttMutex, osWaitForever);
  98146. osMutexAcquire(c->mutex, osWaitForever);
  98147. 802778c: 68fb ldr r3, [r7, #12]
  98148. 802778e: 6e9b ldr r3, [r3, #104] @ 0x68
  98149. 8027790: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  98150. 8027794: 4618 mov r0, r3
  98151. 8027796: f7e9 fccd bl 8011134 <osMutexAcquire>
  98152. if (!c->isconnected)
  98153. 802779a: 68fb ldr r3, [r7, #12]
  98154. 802779c: 6a1b ldr r3, [r3, #32]
  98155. 802779e: 2b00 cmp r3, #0
  98156. 80277a0: d069 beq.n 8027876 <MQTTSubscribeWithResults+0x114>
  98157. goto exit;
  98158. TimerInit(&timer);
  98159. 80277a2: f107 0330 add.w r3, r7, #48 @ 0x30
  98160. 80277a6: 4618 mov r0, r3
  98161. 80277a8: f000 f9bc bl 8027b24 <TimerInit>
  98162. TimerCountdownMS(&timer, c->command_timeout_ms);
  98163. 80277ac: 68fb ldr r3, [r7, #12]
  98164. 80277ae: 685a ldr r2, [r3, #4]
  98165. 80277b0: f107 0330 add.w r3, r7, #48 @ 0x30
  98166. 80277b4: 4611 mov r1, r2
  98167. 80277b6: 4618 mov r0, r3
  98168. 80277b8: f000 f972 bl 8027aa0 <TimerCountdownMS>
  98169. int _qos[1] = {(int)qos};
  98170. 80277bc: 79fb ldrb r3, [r7, #7]
  98171. 80277be: 623b str r3, [r7, #32]
  98172. len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, _qos);
  98173. 80277c0: 68fb ldr r3, [r7, #12]
  98174. 80277c2: 691c ldr r4, [r3, #16]
  98175. 80277c4: 68fb ldr r3, [r7, #12]
  98176. 80277c6: 689b ldr r3, [r3, #8]
  98177. 80277c8: 461d mov r5, r3
  98178. 80277ca: 68f8 ldr r0, [r7, #12]
  98179. 80277cc: f7ff fa90 bl 8026cf0 <getNextPacketId>
  98180. 80277d0: 4603 mov r3, r0
  98181. 80277d2: b29a uxth r2, r3
  98182. 80277d4: f107 0320 add.w r3, r7, #32
  98183. 80277d8: 9302 str r3, [sp, #8]
  98184. 80277da: f107 0324 add.w r3, r7, #36 @ 0x24
  98185. 80277de: 9301 str r3, [sp, #4]
  98186. 80277e0: 2301 movs r3, #1
  98187. 80277e2: 9300 str r3, [sp, #0]
  98188. 80277e4: 4613 mov r3, r2
  98189. 80277e6: 2200 movs r2, #0
  98190. 80277e8: 4629 mov r1, r5
  98191. 80277ea: 4620 mov r0, r4
  98192. 80277ec: f001 f81b bl 8028826 <MQTTSerialize_subscribe>
  98193. 80277f0: 63b8 str r0, [r7, #56] @ 0x38
  98194. // len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, (int*)&qos);
  98195. if (len <= 0)
  98196. 80277f2: 6bbb ldr r3, [r7, #56] @ 0x38
  98197. 80277f4: 2b00 cmp r3, #0
  98198. 80277f6: dd40 ble.n 802787a <MQTTSubscribeWithResults+0x118>
  98199. goto exit;
  98200. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  98201. 80277f8: f107 0330 add.w r3, r7, #48 @ 0x30
  98202. 80277fc: 461a mov r2, r3
  98203. 80277fe: 6bb9 ldr r1, [r7, #56] @ 0x38
  98204. 8027800: 68f8 ldr r0, [r7, #12]
  98205. 8027802: f7ff fa8e bl 8026d22 <sendPacket>
  98206. 8027806: 63f8 str r0, [r7, #60] @ 0x3c
  98207. 8027808: 6bfb ldr r3, [r7, #60] @ 0x3c
  98208. 802780a: 2b00 cmp r3, #0
  98209. 802780c: d137 bne.n 802787e <MQTTSubscribeWithResults+0x11c>
  98210. goto exit; // there was a problem
  98211. if (waitfor(c, SUBACK, &timer) == SUBACK) // wait for suback
  98212. 802780e: f107 0330 add.w r3, r7, #48 @ 0x30
  98213. 8027812: 461a mov r2, r3
  98214. 8027814: 2109 movs r1, #9
  98215. 8027816: 68f8 ldr r0, [r7, #12]
  98216. 8027818: f7ff fe67 bl 80274ea <waitfor>
  98217. 802781c: 4603 mov r3, r0
  98218. 802781e: 2b09 cmp r3, #9
  98219. 8027820: d125 bne.n 802786e <MQTTSubscribeWithResults+0x10c>
  98220. {
  98221. int count = 0;
  98222. 8027822: 2300 movs r3, #0
  98223. 8027824: 61fb str r3, [r7, #28]
  98224. unsigned short mypacketid;
  98225. data->grantedQoS = QOS0;
  98226. 8027826: 6d3b ldr r3, [r7, #80] @ 0x50
  98227. 8027828: 2200 movs r2, #0
  98228. 802782a: 701a strb r2, [r3, #0]
  98229. int _grantedQoS[1] = {(int)&data->grantedQoS};
  98230. 802782c: 6d3b ldr r3, [r7, #80] @ 0x50
  98231. 802782e: 617b str r3, [r7, #20]
  98232. // if (MQTTDeserialize_suback(&mypacketid, 1, &count, (int*)&data->grantedQoS, c->readbuf, c->readbuf_size) == 1)
  98233. if (MQTTDeserialize_suback(&mypacketid, 1, &count, _grantedQoS, c->readbuf, c->readbuf_size) == 1)
  98234. 8027830: 68fb ldr r3, [r7, #12]
  98235. 8027832: 695b ldr r3, [r3, #20]
  98236. 8027834: 68fa ldr r2, [r7, #12]
  98237. 8027836: 68d2 ldr r2, [r2, #12]
  98238. 8027838: 4614 mov r4, r2
  98239. 802783a: f107 0114 add.w r1, r7, #20
  98240. 802783e: f107 021c add.w r2, r7, #28
  98241. 8027842: f107 001a add.w r0, r7, #26
  98242. 8027846: 9401 str r4, [sp, #4]
  98243. 8027848: 9300 str r3, [sp, #0]
  98244. 802784a: 460b mov r3, r1
  98245. 802784c: 2101 movs r1, #1
  98246. 802784e: f001 f866 bl 802891e <MQTTDeserialize_suback>
  98247. 8027852: 4603 mov r3, r0
  98248. 8027854: 2b01 cmp r3, #1
  98249. 8027856: d113 bne.n 8027880 <MQTTSubscribeWithResults+0x11e>
  98250. {
  98251. if (data->grantedQoS != 0x80)
  98252. 8027858: 6d3b ldr r3, [r7, #80] @ 0x50
  98253. 802785a: 781b ldrb r3, [r3, #0]
  98254. 802785c: 2b80 cmp r3, #128 @ 0x80
  98255. 802785e: d00f beq.n 8027880 <MQTTSubscribeWithResults+0x11e>
  98256. rc = MQTTSetMessageHandler(c, topicFilter, messageHandler);
  98257. 8027860: 683a ldr r2, [r7, #0]
  98258. 8027862: 68b9 ldr r1, [r7, #8]
  98259. 8027864: 68f8 ldr r0, [r7, #12]
  98260. 8027866: f7ff ff12 bl 802768e <MQTTSetMessageHandler>
  98261. 802786a: 63f8 str r0, [r7, #60] @ 0x3c
  98262. 802786c: e008 b.n 8027880 <MQTTSubscribeWithResults+0x11e>
  98263. }
  98264. }
  98265. else
  98266. rc = FAILURE;
  98267. 802786e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98268. 8027872: 63fb str r3, [r7, #60] @ 0x3c
  98269. 8027874: e004 b.n 8027880 <MQTTSubscribeWithResults+0x11e>
  98270. goto exit;
  98271. 8027876: bf00 nop
  98272. 8027878: e002 b.n 8027880 <MQTTSubscribeWithResults+0x11e>
  98273. goto exit;
  98274. 802787a: bf00 nop
  98275. 802787c: e000 b.n 8027880 <MQTTSubscribeWithResults+0x11e>
  98276. goto exit; // there was a problem
  98277. 802787e: bf00 nop
  98278. exit:
  98279. if (rc == FAILURE)
  98280. 8027880: 6bfb ldr r3, [r7, #60] @ 0x3c
  98281. 8027882: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  98282. 8027886: d102 bne.n 802788e <MQTTSubscribeWithResults+0x12c>
  98283. MQTTCloseSession(c);
  98284. 8027888: 68f8 ldr r0, [r7, #12]
  98285. 802788a: f7ff fceb bl 8027264 <MQTTCloseSession>
  98286. #if defined(MQTT_TASK)
  98287. MutexUnlock(&c->mutex);
  98288. #endif
  98289. // osMutexRelease(mqttMutex);
  98290. osMutexRelease(c->mutex);
  98291. 802788e: 68fb ldr r3, [r7, #12]
  98292. 8027890: 6e9b ldr r3, [r3, #104] @ 0x68
  98293. 8027892: 4618 mov r0, r3
  98294. 8027894: f7e9 fc99 bl 80111ca <osMutexRelease>
  98295. return rc;
  98296. 8027898: 6bfb ldr r3, [r7, #60] @ 0x3c
  98297. }
  98298. 802789a: 4618 mov r0, r3
  98299. 802789c: 3740 adds r7, #64 @ 0x40
  98300. 802789e: 46bd mov sp, r7
  98301. 80278a0: bdb0 pop {r4, r5, r7, pc}
  98302. 080278a2 <MQTTSubscribe>:
  98303. int MQTTSubscribe(MQTTClient* c, const char* topicFilter, enum QoS qos,
  98304. messageHandler messageHandler)
  98305. {
  98306. 80278a2: b580 push {r7, lr}
  98307. 80278a4: b088 sub sp, #32
  98308. 80278a6: af02 add r7, sp, #8
  98309. 80278a8: 60f8 str r0, [r7, #12]
  98310. 80278aa: 60b9 str r1, [r7, #8]
  98311. 80278ac: 603b str r3, [r7, #0]
  98312. 80278ae: 4613 mov r3, r2
  98313. 80278b0: 71fb strb r3, [r7, #7]
  98314. MQTTSubackData data;
  98315. return MQTTSubscribeWithResults(c, topicFilter, qos, messageHandler, &data);
  98316. 80278b2: 79fa ldrb r2, [r7, #7]
  98317. 80278b4: f107 0314 add.w r3, r7, #20
  98318. 80278b8: 9300 str r3, [sp, #0]
  98319. 80278ba: 683b ldr r3, [r7, #0]
  98320. 80278bc: 68b9 ldr r1, [r7, #8]
  98321. 80278be: 68f8 ldr r0, [r7, #12]
  98322. 80278c0: f7ff ff4f bl 8027762 <MQTTSubscribeWithResults>
  98323. 80278c4: 4603 mov r3, r0
  98324. }
  98325. 80278c6: 4618 mov r0, r3
  98326. 80278c8: 3718 adds r7, #24
  98327. 80278ca: 46bd mov sp, r7
  98328. 80278cc: bd80 pop {r7, pc}
  98329. 080278ce <MQTTPublish>:
  98330. return rc;
  98331. }
  98332. int MQTTPublish(MQTTClient* c, const char* topicName, MQTTMessage* message)
  98333. {
  98334. 80278ce: b5f0 push {r4, r5, r6, r7, lr}
  98335. 80278d0: b097 sub sp, #92 @ 0x5c
  98336. 80278d2: af08 add r7, sp, #32
  98337. 80278d4: 60f8 str r0, [r7, #12]
  98338. 80278d6: 60b9 str r1, [r7, #8]
  98339. 80278d8: 607a str r2, [r7, #4]
  98340. int rc = FAILURE;
  98341. 80278da: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98342. 80278de: 637b str r3, [r7, #52] @ 0x34
  98343. Timer timer;
  98344. MQTTString topic = MQTTString_initializer;
  98345. 80278e0: 2300 movs r3, #0
  98346. 80278e2: 61fb str r3, [r7, #28]
  98347. 80278e4: 2300 movs r3, #0
  98348. 80278e6: 623b str r3, [r7, #32]
  98349. 80278e8: 2300 movs r3, #0
  98350. 80278ea: 627b str r3, [r7, #36] @ 0x24
  98351. topic.cstring = (char *)topicName;
  98352. 80278ec: 68bb ldr r3, [r7, #8]
  98353. 80278ee: 61fb str r3, [r7, #28]
  98354. int len = 0;
  98355. 80278f0: 2300 movs r3, #0
  98356. 80278f2: 633b str r3, [r7, #48] @ 0x30
  98357. #if defined(MQTT_TASK)
  98358. MutexLock(&c->mutex);
  98359. #endif
  98360. // osMutexAcquire(mqttMutex, osWaitForever);
  98361. osMutexAcquire(c->mutex, osWaitForever);
  98362. 80278f4: 68fb ldr r3, [r7, #12]
  98363. 80278f6: 6e9b ldr r3, [r3, #104] @ 0x68
  98364. 80278f8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  98365. 80278fc: 4618 mov r0, r3
  98366. 80278fe: f7e9 fc19 bl 8011134 <osMutexAcquire>
  98367. if (!c->isconnected)
  98368. 8027902: 68fb ldr r3, [r7, #12]
  98369. 8027904: 6a1b ldr r3, [r3, #32]
  98370. 8027906: 2b00 cmp r3, #0
  98371. 8027908: f000 809b beq.w 8027a42 <MQTTPublish+0x174>
  98372. goto exit;
  98373. TimerInit(&timer);
  98374. 802790c: f107 0328 add.w r3, r7, #40 @ 0x28
  98375. 8027910: 4618 mov r0, r3
  98376. 8027912: f000 f907 bl 8027b24 <TimerInit>
  98377. TimerCountdownMS(&timer, c->command_timeout_ms);
  98378. 8027916: 68fb ldr r3, [r7, #12]
  98379. 8027918: 685a ldr r2, [r3, #4]
  98380. 802791a: f107 0328 add.w r3, r7, #40 @ 0x28
  98381. 802791e: 4611 mov r1, r2
  98382. 8027920: 4618 mov r0, r3
  98383. 8027922: f000 f8bd bl 8027aa0 <TimerCountdownMS>
  98384. if (message->qos == QOS1 || message->qos == QOS2)
  98385. 8027926: 687b ldr r3, [r7, #4]
  98386. 8027928: 781b ldrb r3, [r3, #0]
  98387. 802792a: 2b01 cmp r3, #1
  98388. 802792c: d003 beq.n 8027936 <MQTTPublish+0x68>
  98389. 802792e: 687b ldr r3, [r7, #4]
  98390. 8027930: 781b ldrb r3, [r3, #0]
  98391. 8027932: 2b02 cmp r3, #2
  98392. 8027934: d106 bne.n 8027944 <MQTTPublish+0x76>
  98393. message->id = getNextPacketId(c);
  98394. 8027936: 68f8 ldr r0, [r7, #12]
  98395. 8027938: f7ff f9da bl 8026cf0 <getNextPacketId>
  98396. 802793c: 4603 mov r3, r0
  98397. 802793e: b29a uxth r2, r3
  98398. 8027940: 687b ldr r3, [r7, #4]
  98399. 8027942: 809a strh r2, [r3, #4]
  98400. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  98401. 8027944: 68fb ldr r3, [r7, #12]
  98402. 8027946: 691b ldr r3, [r3, #16]
  98403. 8027948: 603b str r3, [r7, #0]
  98404. 802794a: 68fb ldr r3, [r7, #12]
  98405. 802794c: 689b ldr r3, [r3, #8]
  98406. 802794e: 469c mov ip, r3
  98407. 8027950: 687b ldr r3, [r7, #4]
  98408. 8027952: 781b ldrb r3, [r3, #0]
  98409. 8027954: 469e mov lr, r3
  98410. 8027956: 687b ldr r3, [r7, #4]
  98411. 8027958: 785d ldrb r5, [r3, #1]
  98412. 802795a: 687b ldr r3, [r7, #4]
  98413. 802795c: 889e ldrh r6, [r3, #4]
  98414. topic, (unsigned char*)message->payload, message->payloadlen);
  98415. 802795e: 687b ldr r3, [r7, #4]
  98416. 8027960: 689b ldr r3, [r3, #8]
  98417. 8027962: 687a ldr r2, [r7, #4]
  98418. 8027964: 68d2 ldr r2, [r2, #12]
  98419. len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
  98420. 8027966: 9206 str r2, [sp, #24]
  98421. 8027968: 9305 str r3, [sp, #20]
  98422. 802796a: ac02 add r4, sp, #8
  98423. 802796c: f107 031c add.w r3, r7, #28
  98424. 8027970: e893 0007 ldmia.w r3, {r0, r1, r2}
  98425. 8027974: e884 0007 stmia.w r4, {r0, r1, r2}
  98426. 8027978: 9601 str r6, [sp, #4]
  98427. 802797a: 9500 str r5, [sp, #0]
  98428. 802797c: 4673 mov r3, lr
  98429. 802797e: 2200 movs r2, #0
  98430. 8027980: 4661 mov r1, ip
  98431. 8027982: 6838 ldr r0, [r7, #0]
  98432. 8027984: f000 fe5d bl 8028642 <MQTTSerialize_publish>
  98433. 8027988: 6338 str r0, [r7, #48] @ 0x30
  98434. if (len <= 0)
  98435. 802798a: 6b3b ldr r3, [r7, #48] @ 0x30
  98436. 802798c: 2b00 cmp r3, #0
  98437. 802798e: dd5a ble.n 8027a46 <MQTTPublish+0x178>
  98438. goto exit;
  98439. if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
  98440. 8027990: f107 0328 add.w r3, r7, #40 @ 0x28
  98441. 8027994: 461a mov r2, r3
  98442. 8027996: 6b39 ldr r1, [r7, #48] @ 0x30
  98443. 8027998: 68f8 ldr r0, [r7, #12]
  98444. 802799a: f7ff f9c2 bl 8026d22 <sendPacket>
  98445. 802799e: 6378 str r0, [r7, #52] @ 0x34
  98446. 80279a0: 6b7b ldr r3, [r7, #52] @ 0x34
  98447. 80279a2: 2b00 cmp r3, #0
  98448. 80279a4: d151 bne.n 8027a4a <MQTTPublish+0x17c>
  98449. goto exit; // there was a problem
  98450. if (message->qos == QOS1)
  98451. 80279a6: 687b ldr r3, [r7, #4]
  98452. 80279a8: 781b ldrb r3, [r3, #0]
  98453. 80279aa: 2b01 cmp r3, #1
  98454. 80279ac: d122 bne.n 80279f4 <MQTTPublish+0x126>
  98455. {
  98456. if (waitfor(c, PUBACK, &timer) == PUBACK)
  98457. 80279ae: f107 0328 add.w r3, r7, #40 @ 0x28
  98458. 80279b2: 461a mov r2, r3
  98459. 80279b4: 2104 movs r1, #4
  98460. 80279b6: 68f8 ldr r0, [r7, #12]
  98461. 80279b8: f7ff fd97 bl 80274ea <waitfor>
  98462. 80279bc: 4603 mov r3, r0
  98463. 80279be: 2b04 cmp r3, #4
  98464. 80279c0: d114 bne.n 80279ec <MQTTPublish+0x11e>
  98465. {
  98466. unsigned short mypacketid;
  98467. unsigned char dup, type;
  98468. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  98469. 80279c2: 68fb ldr r3, [r7, #12]
  98470. 80279c4: 695c ldr r4, [r3, #20]
  98471. 80279c6: 68fb ldr r3, [r7, #12]
  98472. 80279c8: 68db ldr r3, [r3, #12]
  98473. 80279ca: f107 021a add.w r2, r7, #26
  98474. 80279ce: f107 0119 add.w r1, r7, #25
  98475. 80279d2: f107 0018 add.w r0, r7, #24
  98476. 80279d6: 9300 str r3, [sp, #0]
  98477. 80279d8: 4623 mov r3, r4
  98478. 80279da: f000 fbc1 bl 8028160 <MQTTDeserialize_ack>
  98479. 80279de: 4603 mov r3, r0
  98480. 80279e0: 2b01 cmp r3, #1
  98481. 80279e2: d035 beq.n 8027a50 <MQTTPublish+0x182>
  98482. rc = FAILURE;
  98483. 80279e4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98484. 80279e8: 637b str r3, [r7, #52] @ 0x34
  98485. 80279ea: e031 b.n 8027a50 <MQTTPublish+0x182>
  98486. }
  98487. else
  98488. rc = FAILURE;
  98489. 80279ec: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98490. 80279f0: 637b str r3, [r7, #52] @ 0x34
  98491. 80279f2: e02d b.n 8027a50 <MQTTPublish+0x182>
  98492. }
  98493. else if (message->qos == QOS2)
  98494. 80279f4: 687b ldr r3, [r7, #4]
  98495. 80279f6: 781b ldrb r3, [r3, #0]
  98496. 80279f8: 2b02 cmp r3, #2
  98497. 80279fa: d128 bne.n 8027a4e <MQTTPublish+0x180>
  98498. {
  98499. if (waitfor(c, PUBCOMP, &timer) == PUBCOMP)
  98500. 80279fc: f107 0328 add.w r3, r7, #40 @ 0x28
  98501. 8027a00: 461a mov r2, r3
  98502. 8027a02: 2107 movs r1, #7
  98503. 8027a04: 68f8 ldr r0, [r7, #12]
  98504. 8027a06: f7ff fd70 bl 80274ea <waitfor>
  98505. 8027a0a: 4603 mov r3, r0
  98506. 8027a0c: 2b07 cmp r3, #7
  98507. 8027a0e: d114 bne.n 8027a3a <MQTTPublish+0x16c>
  98508. {
  98509. unsigned short mypacketid;
  98510. unsigned char dup, type;
  98511. if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
  98512. 8027a10: 68fb ldr r3, [r7, #12]
  98513. 8027a12: 695c ldr r4, [r3, #20]
  98514. 8027a14: 68fb ldr r3, [r7, #12]
  98515. 8027a16: 68db ldr r3, [r3, #12]
  98516. 8027a18: f107 0216 add.w r2, r7, #22
  98517. 8027a1c: f107 0115 add.w r1, r7, #21
  98518. 8027a20: f107 0014 add.w r0, r7, #20
  98519. 8027a24: 9300 str r3, [sp, #0]
  98520. 8027a26: 4623 mov r3, r4
  98521. 8027a28: f000 fb9a bl 8028160 <MQTTDeserialize_ack>
  98522. 8027a2c: 4603 mov r3, r0
  98523. 8027a2e: 2b01 cmp r3, #1
  98524. 8027a30: d00e beq.n 8027a50 <MQTTPublish+0x182>
  98525. rc = FAILURE;
  98526. 8027a32: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98527. 8027a36: 637b str r3, [r7, #52] @ 0x34
  98528. 8027a38: e00a b.n 8027a50 <MQTTPublish+0x182>
  98529. }
  98530. else
  98531. rc = FAILURE;
  98532. 8027a3a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98533. 8027a3e: 637b str r3, [r7, #52] @ 0x34
  98534. 8027a40: e006 b.n 8027a50 <MQTTPublish+0x182>
  98535. goto exit;
  98536. 8027a42: bf00 nop
  98537. 8027a44: e004 b.n 8027a50 <MQTTPublish+0x182>
  98538. goto exit;
  98539. 8027a46: bf00 nop
  98540. 8027a48: e002 b.n 8027a50 <MQTTPublish+0x182>
  98541. goto exit; // there was a problem
  98542. 8027a4a: bf00 nop
  98543. 8027a4c: e000 b.n 8027a50 <MQTTPublish+0x182>
  98544. }
  98545. exit:
  98546. 8027a4e: bf00 nop
  98547. if (rc == FAILURE)
  98548. 8027a50: 6b7b ldr r3, [r7, #52] @ 0x34
  98549. 8027a52: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  98550. 8027a56: d102 bne.n 8027a5e <MQTTPublish+0x190>
  98551. MQTTCloseSession(c);
  98552. 8027a58: 68f8 ldr r0, [r7, #12]
  98553. 8027a5a: f7ff fc03 bl 8027264 <MQTTCloseSession>
  98554. #if defined(MQTT_TASK)
  98555. MutexUnlock(&c->mutex);
  98556. #endif
  98557. // osMutexRelease(mqttMutex);
  98558. osMutexRelease(c->mutex);
  98559. 8027a5e: 68fb ldr r3, [r7, #12]
  98560. 8027a60: 6e9b ldr r3, [r3, #104] @ 0x68
  98561. 8027a62: 4618 mov r0, r3
  98562. 8027a64: f7e9 fbb1 bl 80111ca <osMutexRelease>
  98563. return rc;
  98564. 8027a68: 6b7b ldr r3, [r7, #52] @ 0x34
  98565. }
  98566. 8027a6a: 4618 mov r0, r3
  98567. 8027a6c: 373c adds r7, #60 @ 0x3c
  98568. 8027a6e: 46bd mov sp, r7
  98569. 8027a70: bdf0 pop {r4, r5, r6, r7, pc}
  98570. ...
  98571. 08027a74 <TimerIsExpired>:
  98572. #define SERVER_IP4 34
  98573. uint32_t MilliTimer;
  98574. //Timer functions
  98575. char TimerIsExpired(Timer *timer) {
  98576. 8027a74: b480 push {r7}
  98577. 8027a76: b085 sub sp, #20
  98578. 8027a78: af00 add r7, sp, #0
  98579. 8027a7a: 6078 str r0, [r7, #4]
  98580. long left = timer->end_time - MilliTimer;
  98581. 8027a7c: 687b ldr r3, [r7, #4]
  98582. 8027a7e: 685a ldr r2, [r3, #4]
  98583. 8027a80: 4b06 ldr r3, [pc, #24] @ (8027a9c <TimerIsExpired+0x28>)
  98584. 8027a82: 681b ldr r3, [r3, #0]
  98585. 8027a84: 1ad3 subs r3, r2, r3
  98586. 8027a86: 60fb str r3, [r7, #12]
  98587. return (left < 0);
  98588. 8027a88: 68fb ldr r3, [r7, #12]
  98589. 8027a8a: 0fdb lsrs r3, r3, #31
  98590. 8027a8c: b2db uxtb r3, r3
  98591. }
  98592. 8027a8e: 4618 mov r0, r3
  98593. 8027a90: 3714 adds r7, #20
  98594. 8027a92: 46bd mov sp, r7
  98595. 8027a94: f85d 7b04 ldr.w r7, [sp], #4
  98596. 8027a98: 4770 bx lr
  98597. 8027a9a: bf00 nop
  98598. 8027a9c: 2402b104 .word 0x2402b104
  98599. 08027aa0 <TimerCountdownMS>:
  98600. void TimerCountdownMS(Timer *timer, unsigned int timeout) {
  98601. 8027aa0: b480 push {r7}
  98602. 8027aa2: b083 sub sp, #12
  98603. 8027aa4: af00 add r7, sp, #0
  98604. 8027aa6: 6078 str r0, [r7, #4]
  98605. 8027aa8: 6039 str r1, [r7, #0]
  98606. timer->end_time = MilliTimer + timeout;
  98607. 8027aaa: 4b06 ldr r3, [pc, #24] @ (8027ac4 <TimerCountdownMS+0x24>)
  98608. 8027aac: 681a ldr r2, [r3, #0]
  98609. 8027aae: 683b ldr r3, [r7, #0]
  98610. 8027ab0: 441a add r2, r3
  98611. 8027ab2: 687b ldr r3, [r7, #4]
  98612. 8027ab4: 605a str r2, [r3, #4]
  98613. }
  98614. 8027ab6: bf00 nop
  98615. 8027ab8: 370c adds r7, #12
  98616. 8027aba: 46bd mov sp, r7
  98617. 8027abc: f85d 7b04 ldr.w r7, [sp], #4
  98618. 8027ac0: 4770 bx lr
  98619. 8027ac2: bf00 nop
  98620. 8027ac4: 2402b104 .word 0x2402b104
  98621. 08027ac8 <TimerCountdown>:
  98622. void TimerCountdown(Timer *timer, unsigned int timeout) {
  98623. 8027ac8: b480 push {r7}
  98624. 8027aca: b083 sub sp, #12
  98625. 8027acc: af00 add r7, sp, #0
  98626. 8027ace: 6078 str r0, [r7, #4]
  98627. 8027ad0: 6039 str r1, [r7, #0]
  98628. timer->end_time = MilliTimer + (timeout * 1000);
  98629. 8027ad2: 683b ldr r3, [r7, #0]
  98630. 8027ad4: f44f 727a mov.w r2, #1000 @ 0x3e8
  98631. 8027ad8: fb03 f202 mul.w r2, r3, r2
  98632. 8027adc: 4b05 ldr r3, [pc, #20] @ (8027af4 <TimerCountdown+0x2c>)
  98633. 8027ade: 681b ldr r3, [r3, #0]
  98634. 8027ae0: 441a add r2, r3
  98635. 8027ae2: 687b ldr r3, [r7, #4]
  98636. 8027ae4: 605a str r2, [r3, #4]
  98637. }
  98638. 8027ae6: bf00 nop
  98639. 8027ae8: 370c adds r7, #12
  98640. 8027aea: 46bd mov sp, r7
  98641. 8027aec: f85d 7b04 ldr.w r7, [sp], #4
  98642. 8027af0: 4770 bx lr
  98643. 8027af2: bf00 nop
  98644. 8027af4: 2402b104 .word 0x2402b104
  98645. 08027af8 <TimerLeftMS>:
  98646. int TimerLeftMS(Timer *timer) {
  98647. 8027af8: b480 push {r7}
  98648. 8027afa: b085 sub sp, #20
  98649. 8027afc: af00 add r7, sp, #0
  98650. 8027afe: 6078 str r0, [r7, #4]
  98651. long left = timer->end_time - MilliTimer;
  98652. 8027b00: 687b ldr r3, [r7, #4]
  98653. 8027b02: 685a ldr r2, [r3, #4]
  98654. 8027b04: 4b06 ldr r3, [pc, #24] @ (8027b20 <TimerLeftMS+0x28>)
  98655. 8027b06: 681b ldr r3, [r3, #0]
  98656. 8027b08: 1ad3 subs r3, r2, r3
  98657. 8027b0a: 60fb str r3, [r7, #12]
  98658. return (left < 0) ? 0 : left;
  98659. 8027b0c: 68fb ldr r3, [r7, #12]
  98660. 8027b0e: ea23 73e3 bic.w r3, r3, r3, asr #31
  98661. }
  98662. 8027b12: 4618 mov r0, r3
  98663. 8027b14: 3714 adds r7, #20
  98664. 8027b16: 46bd mov sp, r7
  98665. 8027b18: f85d 7b04 ldr.w r7, [sp], #4
  98666. 8027b1c: 4770 bx lr
  98667. 8027b1e: bf00 nop
  98668. 8027b20: 2402b104 .word 0x2402b104
  98669. 08027b24 <TimerInit>:
  98670. void TimerInit(Timer *timer) {
  98671. 8027b24: b480 push {r7}
  98672. 8027b26: b083 sub sp, #12
  98673. 8027b28: af00 add r7, sp, #0
  98674. 8027b2a: 6078 str r0, [r7, #4]
  98675. timer->end_time = 0;
  98676. 8027b2c: 687b ldr r3, [r7, #4]
  98677. 8027b2e: 2200 movs r2, #0
  98678. 8027b30: 605a str r2, [r3, #4]
  98679. }
  98680. 8027b32: bf00 nop
  98681. 8027b34: 370c adds r7, #12
  98682. 8027b36: 46bd mov sp, r7
  98683. 8027b38: f85d 7b04 ldr.w r7, [sp], #4
  98684. 8027b3c: 4770 bx lr
  98685. ...
  98686. 08027b40 <NewNetwork>:
  98687. #ifdef MQTT_LWIP_SOCKET
  98688. void NewNetwork(Network *n) {
  98689. 8027b40: b480 push {r7}
  98690. 8027b42: b083 sub sp, #12
  98691. 8027b44: af00 add r7, sp, #0
  98692. 8027b46: 6078 str r0, [r7, #4]
  98693. n->socket = 0; //clear
  98694. 8027b48: 687b ldr r3, [r7, #4]
  98695. 8027b4a: 2200 movs r2, #0
  98696. 8027b4c: 601a str r2, [r3, #0]
  98697. n->mqttread = net_read; //receive function
  98698. 8027b4e: 687b ldr r3, [r7, #4]
  98699. 8027b50: 4a06 ldr r2, [pc, #24] @ (8027b6c <NewNetwork+0x2c>)
  98700. 8027b52: 605a str r2, [r3, #4]
  98701. n->mqttwrite = net_write; //send function
  98702. 8027b54: 687b ldr r3, [r7, #4]
  98703. 8027b56: 4a06 ldr r2, [pc, #24] @ (8027b70 <NewNetwork+0x30>)
  98704. 8027b58: 609a str r2, [r3, #8]
  98705. n->disconnect = net_disconnect; //disconnection function
  98706. 8027b5a: 687b ldr r3, [r7, #4]
  98707. 8027b5c: 4a05 ldr r2, [pc, #20] @ (8027b74 <NewNetwork+0x34>)
  98708. 8027b5e: 60da str r2, [r3, #12]
  98709. }
  98710. 8027b60: bf00 nop
  98711. 8027b62: 370c adds r7, #12
  98712. 8027b64: 46bd mov sp, r7
  98713. 8027b66: f85d 7b04 ldr.w r7, [sp], #4
  98714. 8027b6a: 4770 bx lr
  98715. 8027b6c: 08027c15 .word 0x08027c15
  98716. 8027b70: 08027c65 .word 0x08027c65
  98717. 8027b74: 08027c8b .word 0x08027c8b
  98718. 08027b78 <ConnectNetwork>:
  98719. int ConnectNetwork(Network *n, char *ip, int port) {
  98720. 8027b78: b580 push {r7, lr}
  98721. 8027b7a: b088 sub sp, #32
  98722. 8027b7c: af00 add r7, sp, #0
  98723. 8027b7e: 60f8 str r0, [r7, #12]
  98724. 8027b80: 60b9 str r1, [r7, #8]
  98725. 8027b82: 607a str r2, [r7, #4]
  98726. struct sockaddr_in server_addr;
  98727. if(n->socket)
  98728. 8027b84: 68fb ldr r3, [r7, #12]
  98729. 8027b86: 681b ldr r3, [r3, #0]
  98730. 8027b88: 2b00 cmp r3, #0
  98731. 8027b8a: d004 beq.n 8027b96 <ConnectNetwork+0x1e>
  98732. {
  98733. close(n->socket);
  98734. 8027b8c: 68fb ldr r3, [r7, #12]
  98735. 8027b8e: 681b ldr r3, [r3, #0]
  98736. 8027b90: 4618 mov r0, r3
  98737. 8027b92: f7f0 fa65 bl 8018060 <lwip_close>
  98738. }
  98739. n->socket = socket(PF_INET, SOCK_STREAM, 0); //create socket
  98740. 8027b96: 2200 movs r2, #0
  98741. 8027b98: 2101 movs r1, #1
  98742. 8027b9a: 2002 movs r0, #2
  98743. 8027b9c: f7f0 ff72 bl 8018a84 <lwip_socket>
  98744. 8027ba0: 4602 mov r2, r0
  98745. 8027ba2: 68fb ldr r3, [r7, #12]
  98746. 8027ba4: 601a str r2, [r3, #0]
  98747. if(n->socket < 0)
  98748. 8027ba6: 68fb ldr r3, [r7, #12]
  98749. 8027ba8: 681b ldr r3, [r3, #0]
  98750. 8027baa: 2b00 cmp r3, #0
  98751. 8027bac: da05 bge.n 8027bba <ConnectNetwork+0x42>
  98752. {
  98753. n->socket = 0;
  98754. 8027bae: 68fb ldr r3, [r7, #12]
  98755. 8027bb0: 2200 movs r2, #0
  98756. 8027bb2: 601a str r2, [r3, #0]
  98757. return -1;
  98758. 8027bb4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98759. 8027bb8: e028 b.n 8027c0c <ConnectNetwork+0x94>
  98760. }
  98761. memset(&server_addr, 0, sizeof(struct sockaddr_in)); //broker address info
  98762. 8027bba: f107 0310 add.w r3, r7, #16
  98763. 8027bbe: 2210 movs r2, #16
  98764. 8027bc0: 2100 movs r1, #0
  98765. 8027bc2: 4618 mov r0, r3
  98766. 8027bc4: f002 fc8c bl 802a4e0 <memset>
  98767. server_addr.sin_family = AF_INET;
  98768. 8027bc8: 2302 movs r3, #2
  98769. 8027bca: 747b strb r3, [r7, #17]
  98770. server_addr.sin_addr.s_addr = inet_addr(ip);
  98771. 8027bcc: 68b8 ldr r0, [r7, #8]
  98772. 8027bce: f7fd fde0 bl 8025792 <ipaddr_addr>
  98773. 8027bd2: 4603 mov r3, r0
  98774. 8027bd4: 617b str r3, [r7, #20]
  98775. server_addr.sin_port = htons(port);
  98776. 8027bd6: 687b ldr r3, [r7, #4]
  98777. 8027bd8: b29b uxth r3, r3
  98778. 8027bda: 4618 mov r0, r3
  98779. 8027bdc: f7f1 fb94 bl 8019308 <lwip_htons>
  98780. 8027be0: 4603 mov r3, r0
  98781. 8027be2: 827b strh r3, [r7, #18]
  98782. if(connect(n->socket, (struct sockaddr*)&server_addr, sizeof(struct sockaddr_in)) < 0) //connect to the broker
  98783. 8027be4: 68fb ldr r3, [r7, #12]
  98784. 8027be6: 681b ldr r3, [r3, #0]
  98785. 8027be8: f107 0110 add.w r1, r7, #16
  98786. 8027bec: 2210 movs r2, #16
  98787. 8027bee: 4618 mov r0, r3
  98788. 8027bf0: f7f0 fa8c bl 801810c <lwip_connect>
  98789. 8027bf4: 4603 mov r3, r0
  98790. 8027bf6: 2b00 cmp r3, #0
  98791. 8027bf8: da07 bge.n 8027c0a <ConnectNetwork+0x92>
  98792. {
  98793. close(n->socket);
  98794. 8027bfa: 68fb ldr r3, [r7, #12]
  98795. 8027bfc: 681b ldr r3, [r3, #0]
  98796. 8027bfe: 4618 mov r0, r3
  98797. 8027c00: f7f0 fa2e bl 8018060 <lwip_close>
  98798. return -1;
  98799. 8027c04: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98800. 8027c08: e000 b.n 8027c0c <ConnectNetwork+0x94>
  98801. }
  98802. return 0;
  98803. 8027c0a: 2300 movs r3, #0
  98804. }
  98805. 8027c0c: 4618 mov r0, r3
  98806. 8027c0e: 3720 adds r7, #32
  98807. 8027c10: 46bd mov sp, r7
  98808. 8027c12: bd80 pop {r7, pc}
  98809. 08027c14 <net_read>:
  98810. int net_read(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  98811. 8027c14: b580 push {r7, lr}
  98812. 8027c16: b086 sub sp, #24
  98813. 8027c18: af00 add r7, sp, #0
  98814. 8027c1a: 60f8 str r0, [r7, #12]
  98815. 8027c1c: 60b9 str r1, [r7, #8]
  98816. 8027c1e: 607a str r2, [r7, #4]
  98817. 8027c20: 603b str r3, [r7, #0]
  98818. int available;
  98819. /* !!! LWIP_SO_RCVBUF must be enabled !!! */
  98820. if(ioctl(n->socket, FIONREAD, &available) < 0) return -1; //check receive buffer
  98821. 8027c22: 68fb ldr r3, [r7, #12]
  98822. 8027c24: 681b ldr r3, [r3, #0]
  98823. 8027c26: f107 0214 add.w r2, r7, #20
  98824. 8027c2a: 490d ldr r1, [pc, #52] @ (8027c60 <net_read+0x4c>)
  98825. 8027c2c: 4618 mov r0, r3
  98826. 8027c2e: f7f1 f917 bl 8018e60 <lwip_ioctl>
  98827. 8027c32: 4603 mov r3, r0
  98828. 8027c34: 2b00 cmp r3, #0
  98829. 8027c36: da02 bge.n 8027c3e <net_read+0x2a>
  98830. 8027c38: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  98831. 8027c3c: e00c b.n 8027c58 <net_read+0x44>
  98832. if(available > 0)
  98833. 8027c3e: 697b ldr r3, [r7, #20]
  98834. 8027c40: 2b00 cmp r3, #0
  98835. 8027c42: dd08 ble.n 8027c56 <net_read+0x42>
  98836. {
  98837. return recv(n->socket, buffer, len, 0);
  98838. 8027c44: 68fb ldr r3, [r7, #12]
  98839. 8027c46: 6818 ldr r0, [r3, #0]
  98840. 8027c48: 687a ldr r2, [r7, #4]
  98841. 8027c4a: 2300 movs r3, #0
  98842. 8027c4c: 68b9 ldr r1, [r7, #8]
  98843. 8027c4e: f7f0 fdf3 bl 8018838 <lwip_recv>
  98844. 8027c52: 4603 mov r3, r0
  98845. 8027c54: e000 b.n 8027c58 <net_read+0x44>
  98846. }
  98847. return 0;
  98848. 8027c56: 2300 movs r3, #0
  98849. }
  98850. 8027c58: 4618 mov r0, r3
  98851. 8027c5a: 3718 adds r7, #24
  98852. 8027c5c: 46bd mov sp, r7
  98853. 8027c5e: bd80 pop {r7, pc}
  98854. 8027c60: 4004667f .word 0x4004667f
  98855. 08027c64 <net_write>:
  98856. int net_write(Network *n, unsigned char *buffer, int len, int timeout_ms) {
  98857. 8027c64: b580 push {r7, lr}
  98858. 8027c66: b084 sub sp, #16
  98859. 8027c68: af00 add r7, sp, #0
  98860. 8027c6a: 60f8 str r0, [r7, #12]
  98861. 8027c6c: 60b9 str r1, [r7, #8]
  98862. 8027c6e: 607a str r2, [r7, #4]
  98863. 8027c70: 603b str r3, [r7, #0]
  98864. return send(n->socket, buffer, len, 0);
  98865. 8027c72: 68fb ldr r3, [r7, #12]
  98866. 8027c74: 6818 ldr r0, [r3, #0]
  98867. 8027c76: 687a ldr r2, [r7, #4]
  98868. 8027c78: 2300 movs r3, #0
  98869. 8027c7a: 68b9 ldr r1, [r7, #8]
  98870. 8027c7c: f7f0 fdf2 bl 8018864 <lwip_send>
  98871. 8027c80: 4603 mov r3, r0
  98872. }
  98873. 8027c82: 4618 mov r0, r3
  98874. 8027c84: 3710 adds r7, #16
  98875. 8027c86: 46bd mov sp, r7
  98876. 8027c88: bd80 pop {r7, pc}
  98877. 08027c8a <net_disconnect>:
  98878. void net_disconnect(Network *n) {
  98879. 8027c8a: b580 push {r7, lr}
  98880. 8027c8c: b082 sub sp, #8
  98881. 8027c8e: af00 add r7, sp, #0
  98882. 8027c90: 6078 str r0, [r7, #4]
  98883. close(n->socket);
  98884. 8027c92: 687b ldr r3, [r7, #4]
  98885. 8027c94: 681b ldr r3, [r3, #0]
  98886. 8027c96: 4618 mov r0, r3
  98887. 8027c98: f7f0 f9e2 bl 8018060 <lwip_close>
  98888. n->socket = 0;
  98889. 8027c9c: 687b ldr r3, [r7, #4]
  98890. 8027c9e: 2200 movs r2, #0
  98891. 8027ca0: 601a str r2, [r3, #0]
  98892. }
  98893. 8027ca2: bf00 nop
  98894. 8027ca4: 3708 adds r7, #8
  98895. 8027ca6: 46bd mov sp, r7
  98896. 8027ca8: bd80 pop {r7, pc}
  98897. 08027caa <MQTTSerialize_connectLength>:
  98898. * Determines the length of the MQTT connect packet that would be produced using the supplied connect options.
  98899. * @param options the options to be used to build the connect packet
  98900. * @return the length of buffer needed to contain the serialized version of the packet
  98901. */
  98902. int MQTTSerialize_connectLength(MQTTPacket_connectData* options)
  98903. {
  98904. 8027caa: b590 push {r4, r7, lr}
  98905. 8027cac: b085 sub sp, #20
  98906. 8027cae: af00 add r7, sp, #0
  98907. 8027cb0: 6078 str r0, [r7, #4]
  98908. int len = 0;
  98909. 8027cb2: 2300 movs r3, #0
  98910. 8027cb4: 60fb str r3, [r7, #12]
  98911. FUNC_ENTRY;
  98912. if (options->MQTTVersion == 3)
  98913. 8027cb6: 687b ldr r3, [r7, #4]
  98914. 8027cb8: 7a1b ldrb r3, [r3, #8]
  98915. 8027cba: 2b03 cmp r3, #3
  98916. 8027cbc: d102 bne.n 8027cc4 <MQTTSerialize_connectLength+0x1a>
  98917. len = 12; /* variable depending on MQTT or MQIsdp */
  98918. 8027cbe: 230c movs r3, #12
  98919. 8027cc0: 60fb str r3, [r7, #12]
  98920. 8027cc2: e005 b.n 8027cd0 <MQTTSerialize_connectLength+0x26>
  98921. else if (options->MQTTVersion == 4)
  98922. 8027cc4: 687b ldr r3, [r7, #4]
  98923. 8027cc6: 7a1b ldrb r3, [r3, #8]
  98924. 8027cc8: 2b04 cmp r3, #4
  98925. 8027cca: d101 bne.n 8027cd0 <MQTTSerialize_connectLength+0x26>
  98926. len = 10;
  98927. 8027ccc: 230a movs r3, #10
  98928. 8027cce: 60fb str r3, [r7, #12]
  98929. len += MQTTstrlen(options->clientID)+2;
  98930. 8027cd0: 687b ldr r3, [r7, #4]
  98931. 8027cd2: 330c adds r3, #12
  98932. 8027cd4: e893 0007 ldmia.w r3, {r0, r1, r2}
  98933. 8027cd8: f000 fc43 bl 8028562 <MQTTstrlen>
  98934. 8027cdc: 4603 mov r3, r0
  98935. 8027cde: 3302 adds r3, #2
  98936. 8027ce0: 68fa ldr r2, [r7, #12]
  98937. 8027ce2: 4413 add r3, r2
  98938. 8027ce4: 60fb str r3, [r7, #12]
  98939. if (options->willFlag)
  98940. 8027ce6: 687b ldr r3, [r7, #4]
  98941. 8027ce8: 7edb ldrb r3, [r3, #27]
  98942. 8027cea: 2b00 cmp r3, #0
  98943. 8027cec: d013 beq.n 8027d16 <MQTTSerialize_connectLength+0x6c>
  98944. len += MQTTstrlen(options->will.topicName)+2 + MQTTstrlen(options->will.message)+2;
  98945. 8027cee: 687b ldr r3, [r7, #4]
  98946. 8027cf0: 3324 adds r3, #36 @ 0x24
  98947. 8027cf2: e893 0007 ldmia.w r3, {r0, r1, r2}
  98948. 8027cf6: f000 fc34 bl 8028562 <MQTTstrlen>
  98949. 8027cfa: 4603 mov r3, r0
  98950. 8027cfc: 1c9c adds r4, r3, #2
  98951. 8027cfe: 687b ldr r3, [r7, #4]
  98952. 8027d00: 3330 adds r3, #48 @ 0x30
  98953. 8027d02: e893 0007 ldmia.w r3, {r0, r1, r2}
  98954. 8027d06: f000 fc2c bl 8028562 <MQTTstrlen>
  98955. 8027d0a: 4603 mov r3, r0
  98956. 8027d0c: 4423 add r3, r4
  98957. 8027d0e: 3302 adds r3, #2
  98958. 8027d10: 68fa ldr r2, [r7, #12]
  98959. 8027d12: 4413 add r3, r2
  98960. 8027d14: 60fb str r3, [r7, #12]
  98961. if (options->username.cstring || options->username.lenstring.data)
  98962. 8027d16: 687b ldr r3, [r7, #4]
  98963. 8027d18: 6c1b ldr r3, [r3, #64] @ 0x40
  98964. 8027d1a: 2b00 cmp r3, #0
  98965. 8027d1c: d103 bne.n 8027d26 <MQTTSerialize_connectLength+0x7c>
  98966. 8027d1e: 687b ldr r3, [r7, #4]
  98967. 8027d20: 6c9b ldr r3, [r3, #72] @ 0x48
  98968. 8027d22: 2b00 cmp r3, #0
  98969. 8027d24: d00a beq.n 8027d3c <MQTTSerialize_connectLength+0x92>
  98970. len += MQTTstrlen(options->username)+2;
  98971. 8027d26: 687b ldr r3, [r7, #4]
  98972. 8027d28: 3340 adds r3, #64 @ 0x40
  98973. 8027d2a: e893 0007 ldmia.w r3, {r0, r1, r2}
  98974. 8027d2e: f000 fc18 bl 8028562 <MQTTstrlen>
  98975. 8027d32: 4603 mov r3, r0
  98976. 8027d34: 3302 adds r3, #2
  98977. 8027d36: 68fa ldr r2, [r7, #12]
  98978. 8027d38: 4413 add r3, r2
  98979. 8027d3a: 60fb str r3, [r7, #12]
  98980. if (options->password.cstring || options->password.lenstring.data)
  98981. 8027d3c: 687b ldr r3, [r7, #4]
  98982. 8027d3e: 6cdb ldr r3, [r3, #76] @ 0x4c
  98983. 8027d40: 2b00 cmp r3, #0
  98984. 8027d42: d103 bne.n 8027d4c <MQTTSerialize_connectLength+0xa2>
  98985. 8027d44: 687b ldr r3, [r7, #4]
  98986. 8027d46: 6d5b ldr r3, [r3, #84] @ 0x54
  98987. 8027d48: 2b00 cmp r3, #0
  98988. 8027d4a: d00a beq.n 8027d62 <MQTTSerialize_connectLength+0xb8>
  98989. len += MQTTstrlen(options->password)+2;
  98990. 8027d4c: 687b ldr r3, [r7, #4]
  98991. 8027d4e: 334c adds r3, #76 @ 0x4c
  98992. 8027d50: e893 0007 ldmia.w r3, {r0, r1, r2}
  98993. 8027d54: f000 fc05 bl 8028562 <MQTTstrlen>
  98994. 8027d58: 4603 mov r3, r0
  98995. 8027d5a: 3302 adds r3, #2
  98996. 8027d5c: 68fa ldr r2, [r7, #12]
  98997. 8027d5e: 4413 add r3, r2
  98998. 8027d60: 60fb str r3, [r7, #12]
  98999. FUNC_EXIT_RC(len);
  99000. return len;
  99001. 8027d62: 68fb ldr r3, [r7, #12]
  99002. }
  99003. 8027d64: 4618 mov r0, r3
  99004. 8027d66: 3714 adds r7, #20
  99005. 8027d68: 46bd mov sp, r7
  99006. 8027d6a: bd90 pop {r4, r7, pc}
  99007. 08027d6c <MQTTSerialize_connect>:
  99008. * @param len the length in bytes of the supplied buffer
  99009. * @param options the options to be used to build the connect packet
  99010. * @return serialized length, or error if 0
  99011. */
  99012. int MQTTSerialize_connect(unsigned char* buf, int buflen, MQTTPacket_connectData* options)
  99013. {
  99014. 8027d6c: b580 push {r7, lr}
  99015. 8027d6e: b08a sub sp, #40 @ 0x28
  99016. 8027d70: af00 add r7, sp, #0
  99017. 8027d72: 60f8 str r0, [r7, #12]
  99018. 8027d74: 60b9 str r1, [r7, #8]
  99019. 8027d76: 607a str r2, [r7, #4]
  99020. unsigned char *ptr = buf;
  99021. 8027d78: 68fb ldr r3, [r7, #12]
  99022. 8027d7a: 61fb str r3, [r7, #28]
  99023. MQTTHeader header = {0};
  99024. 8027d7c: 2300 movs r3, #0
  99025. 8027d7e: 61bb str r3, [r7, #24]
  99026. MQTTConnectFlags flags = {0};
  99027. 8027d80: 2300 movs r3, #0
  99028. 8027d82: 617b str r3, [r7, #20]
  99029. int len = 0;
  99030. 8027d84: 2300 movs r3, #0
  99031. 8027d86: 623b str r3, [r7, #32]
  99032. int rc = -1;
  99033. 8027d88: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99034. 8027d8c: 627b str r3, [r7, #36] @ 0x24
  99035. FUNC_ENTRY;
  99036. if (MQTTPacket_len(len = MQTTSerialize_connectLength(options)) > buflen)
  99037. 8027d8e: 6878 ldr r0, [r7, #4]
  99038. 8027d90: f7ff ff8b bl 8027caa <MQTTSerialize_connectLength>
  99039. 8027d94: 6238 str r0, [r7, #32]
  99040. 8027d96: 6a38 ldr r0, [r7, #32]
  99041. 8027d98: f000 fa98 bl 80282cc <MQTTPacket_len>
  99042. 8027d9c: 4602 mov r2, r0
  99043. 8027d9e: 68bb ldr r3, [r7, #8]
  99044. 8027da0: 4293 cmp r3, r2
  99045. 8027da2: da03 bge.n 8027dac <MQTTSerialize_connect+0x40>
  99046. {
  99047. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  99048. 8027da4: f06f 0301 mvn.w r3, #1
  99049. 8027da8: 627b str r3, [r7, #36] @ 0x24
  99050. goto exit;
  99051. 8027daa: e0c2 b.n 8027f32 <MQTTSerialize_connect+0x1c6>
  99052. }
  99053. header.byte = 0;
  99054. 8027dac: 2300 movs r3, #0
  99055. 8027dae: 763b strb r3, [r7, #24]
  99056. header.bits.type = CONNECT;
  99057. 8027db0: 7e3b ldrb r3, [r7, #24]
  99058. 8027db2: 2201 movs r2, #1
  99059. 8027db4: f362 1307 bfi r3, r2, #4, #4
  99060. 8027db8: 763b strb r3, [r7, #24]
  99061. writeChar(&ptr, header.byte); /* write header */
  99062. 8027dba: 7e3a ldrb r2, [r7, #24]
  99063. 8027dbc: f107 031c add.w r3, r7, #28
  99064. 8027dc0: 4611 mov r1, r2
  99065. 8027dc2: 4618 mov r0, r3
  99066. 8027dc4: f000 fb11 bl 80283ea <writeChar>
  99067. ptr += MQTTPacket_encode(ptr, len); /* write remaining length */
  99068. 8027dc8: 69fb ldr r3, [r7, #28]
  99069. 8027dca: 6a39 ldr r1, [r7, #32]
  99070. 8027dcc: 4618 mov r0, r3
  99071. 8027dce: f000 fa12 bl 80281f6 <MQTTPacket_encode>
  99072. 8027dd2: 4602 mov r2, r0
  99073. 8027dd4: 69fb ldr r3, [r7, #28]
  99074. 8027dd6: 4413 add r3, r2
  99075. 8027dd8: 61fb str r3, [r7, #28]
  99076. if (options->MQTTVersion == 4)
  99077. 8027dda: 687b ldr r3, [r7, #4]
  99078. 8027ddc: 7a1b ldrb r3, [r3, #8]
  99079. 8027dde: 2b04 cmp r3, #4
  99080. 8027de0: d10c bne.n 8027dfc <MQTTSerialize_connect+0x90>
  99081. {
  99082. writeCString(&ptr, "MQTT");
  99083. 8027de2: f107 031c add.w r3, r7, #28
  99084. 8027de6: 4955 ldr r1, [pc, #340] @ (8027f3c <MQTTSerialize_connect+0x1d0>)
  99085. 8027de8: 4618 mov r0, r3
  99086. 8027dea: f000 fb3c bl 8028466 <writeCString>
  99087. writeChar(&ptr, (char) 4);
  99088. 8027dee: f107 031c add.w r3, r7, #28
  99089. 8027df2: 2104 movs r1, #4
  99090. 8027df4: 4618 mov r0, r3
  99091. 8027df6: f000 faf8 bl 80283ea <writeChar>
  99092. 8027dfa: e00b b.n 8027e14 <MQTTSerialize_connect+0xa8>
  99093. }
  99094. else
  99095. {
  99096. writeCString(&ptr, "MQIsdp");
  99097. 8027dfc: f107 031c add.w r3, r7, #28
  99098. 8027e00: 494f ldr r1, [pc, #316] @ (8027f40 <MQTTSerialize_connect+0x1d4>)
  99099. 8027e02: 4618 mov r0, r3
  99100. 8027e04: f000 fb2f bl 8028466 <writeCString>
  99101. writeChar(&ptr, (char) 3);
  99102. 8027e08: f107 031c add.w r3, r7, #28
  99103. 8027e0c: 2103 movs r1, #3
  99104. 8027e0e: 4618 mov r0, r3
  99105. 8027e10: f000 faeb bl 80283ea <writeChar>
  99106. }
  99107. flags.all = 0;
  99108. 8027e14: 2300 movs r3, #0
  99109. 8027e16: 753b strb r3, [r7, #20]
  99110. flags.bits.cleansession = options->cleansession;
  99111. 8027e18: 687b ldr r3, [r7, #4]
  99112. 8027e1a: 7e9b ldrb r3, [r3, #26]
  99113. 8027e1c: f003 0301 and.w r3, r3, #1
  99114. 8027e20: b2da uxtb r2, r3
  99115. 8027e22: 7d3b ldrb r3, [r7, #20]
  99116. 8027e24: f362 0341 bfi r3, r2, #1, #1
  99117. 8027e28: 753b strb r3, [r7, #20]
  99118. flags.bits.will = (options->willFlag) ? 1 : 0;
  99119. 8027e2a: 687b ldr r3, [r7, #4]
  99120. 8027e2c: 7edb ldrb r3, [r3, #27]
  99121. 8027e2e: 2b00 cmp r3, #0
  99122. 8027e30: bf14 ite ne
  99123. 8027e32: 2301 movne r3, #1
  99124. 8027e34: 2300 moveq r3, #0
  99125. 8027e36: b2da uxtb r2, r3
  99126. 8027e38: 7d3b ldrb r3, [r7, #20]
  99127. 8027e3a: f362 0382 bfi r3, r2, #2, #1
  99128. 8027e3e: 753b strb r3, [r7, #20]
  99129. if (flags.bits.will)
  99130. 8027e40: 7d3b ldrb r3, [r7, #20]
  99131. 8027e42: f003 0304 and.w r3, r3, #4
  99132. 8027e46: b2db uxtb r3, r3
  99133. 8027e48: 2b00 cmp r3, #0
  99134. 8027e4a: d013 beq.n 8027e74 <MQTTSerialize_connect+0x108>
  99135. {
  99136. flags.bits.willQoS = options->will.qos;
  99137. 8027e4c: 687b ldr r3, [r7, #4]
  99138. 8027e4e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  99139. 8027e52: f003 0303 and.w r3, r3, #3
  99140. 8027e56: b2da uxtb r2, r3
  99141. 8027e58: 7d3b ldrb r3, [r7, #20]
  99142. 8027e5a: f362 03c4 bfi r3, r2, #3, #2
  99143. 8027e5e: 753b strb r3, [r7, #20]
  99144. flags.bits.willRetain = options->will.retained;
  99145. 8027e60: 687b ldr r3, [r7, #4]
  99146. 8027e62: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  99147. 8027e66: f003 0301 and.w r3, r3, #1
  99148. 8027e6a: b2da uxtb r2, r3
  99149. 8027e6c: 7d3b ldrb r3, [r7, #20]
  99150. 8027e6e: f362 1345 bfi r3, r2, #5, #1
  99151. 8027e72: 753b strb r3, [r7, #20]
  99152. }
  99153. if (options->username.cstring || options->username.lenstring.data)
  99154. 8027e74: 687b ldr r3, [r7, #4]
  99155. 8027e76: 6c1b ldr r3, [r3, #64] @ 0x40
  99156. 8027e78: 2b00 cmp r3, #0
  99157. 8027e7a: d103 bne.n 8027e84 <MQTTSerialize_connect+0x118>
  99158. 8027e7c: 687b ldr r3, [r7, #4]
  99159. 8027e7e: 6c9b ldr r3, [r3, #72] @ 0x48
  99160. 8027e80: 2b00 cmp r3, #0
  99161. 8027e82: d003 beq.n 8027e8c <MQTTSerialize_connect+0x120>
  99162. flags.bits.username = 1;
  99163. 8027e84: 7d3b ldrb r3, [r7, #20]
  99164. 8027e86: f043 0380 orr.w r3, r3, #128 @ 0x80
  99165. 8027e8a: 753b strb r3, [r7, #20]
  99166. if (options->password.cstring || options->password.lenstring.data)
  99167. 8027e8c: 687b ldr r3, [r7, #4]
  99168. 8027e8e: 6cdb ldr r3, [r3, #76] @ 0x4c
  99169. 8027e90: 2b00 cmp r3, #0
  99170. 8027e92: d103 bne.n 8027e9c <MQTTSerialize_connect+0x130>
  99171. 8027e94: 687b ldr r3, [r7, #4]
  99172. 8027e96: 6d5b ldr r3, [r3, #84] @ 0x54
  99173. 8027e98: 2b00 cmp r3, #0
  99174. 8027e9a: d003 beq.n 8027ea4 <MQTTSerialize_connect+0x138>
  99175. flags.bits.password = 1;
  99176. 8027e9c: 7d3b ldrb r3, [r7, #20]
  99177. 8027e9e: f043 0340 orr.w r3, r3, #64 @ 0x40
  99178. 8027ea2: 753b strb r3, [r7, #20]
  99179. writeChar(&ptr, flags.all);
  99180. 8027ea4: 7d3a ldrb r2, [r7, #20]
  99181. 8027ea6: f107 031c add.w r3, r7, #28
  99182. 8027eaa: 4611 mov r1, r2
  99183. 8027eac: 4618 mov r0, r3
  99184. 8027eae: f000 fa9c bl 80283ea <writeChar>
  99185. writeInt(&ptr, options->keepAliveInterval);
  99186. 8027eb2: 687b ldr r3, [r7, #4]
  99187. 8027eb4: 8b1b ldrh r3, [r3, #24]
  99188. 8027eb6: 461a mov r2, r3
  99189. 8027eb8: f107 031c add.w r3, r7, #28
  99190. 8027ebc: 4611 mov r1, r2
  99191. 8027ebe: 4618 mov r0, r3
  99192. 8027ec0: f000 faa8 bl 8028414 <writeInt>
  99193. writeMQTTString(&ptr, options->clientID);
  99194. 8027ec4: 687b ldr r3, [r7, #4]
  99195. 8027ec6: f107 001c add.w r0, r7, #28
  99196. 8027eca: 330c adds r3, #12
  99197. 8027ecc: cb0e ldmia r3, {r1, r2, r3}
  99198. 8027ece: f000 fae9 bl 80284a4 <writeMQTTString>
  99199. if (options->willFlag)
  99200. 8027ed2: 687b ldr r3, [r7, #4]
  99201. 8027ed4: 7edb ldrb r3, [r3, #27]
  99202. 8027ed6: 2b00 cmp r3, #0
  99203. 8027ed8: d00d beq.n 8027ef6 <MQTTSerialize_connect+0x18a>
  99204. {
  99205. writeMQTTString(&ptr, options->will.topicName);
  99206. 8027eda: 687b ldr r3, [r7, #4]
  99207. 8027edc: f107 001c add.w r0, r7, #28
  99208. 8027ee0: 3324 adds r3, #36 @ 0x24
  99209. 8027ee2: cb0e ldmia r3, {r1, r2, r3}
  99210. 8027ee4: f000 fade bl 80284a4 <writeMQTTString>
  99211. writeMQTTString(&ptr, options->will.message);
  99212. 8027ee8: 687b ldr r3, [r7, #4]
  99213. 8027eea: f107 001c add.w r0, r7, #28
  99214. 8027eee: 3330 adds r3, #48 @ 0x30
  99215. 8027ef0: cb0e ldmia r3, {r1, r2, r3}
  99216. 8027ef2: f000 fad7 bl 80284a4 <writeMQTTString>
  99217. }
  99218. if (flags.bits.username)
  99219. 8027ef6: 7d3b ldrb r3, [r7, #20]
  99220. 8027ef8: f023 037f bic.w r3, r3, #127 @ 0x7f
  99221. 8027efc: b2db uxtb r3, r3
  99222. 8027efe: 2b00 cmp r3, #0
  99223. 8027f00: d006 beq.n 8027f10 <MQTTSerialize_connect+0x1a4>
  99224. writeMQTTString(&ptr, options->username);
  99225. 8027f02: 687b ldr r3, [r7, #4]
  99226. 8027f04: f107 001c add.w r0, r7, #28
  99227. 8027f08: 3340 adds r3, #64 @ 0x40
  99228. 8027f0a: cb0e ldmia r3, {r1, r2, r3}
  99229. 8027f0c: f000 faca bl 80284a4 <writeMQTTString>
  99230. if (flags.bits.password)
  99231. 8027f10: 7d3b ldrb r3, [r7, #20]
  99232. 8027f12: f003 0340 and.w r3, r3, #64 @ 0x40
  99233. 8027f16: b2db uxtb r3, r3
  99234. 8027f18: 2b00 cmp r3, #0
  99235. 8027f1a: d006 beq.n 8027f2a <MQTTSerialize_connect+0x1be>
  99236. writeMQTTString(&ptr, options->password);
  99237. 8027f1c: 687b ldr r3, [r7, #4]
  99238. 8027f1e: f107 001c add.w r0, r7, #28
  99239. 8027f22: 334c adds r3, #76 @ 0x4c
  99240. 8027f24: cb0e ldmia r3, {r1, r2, r3}
  99241. 8027f26: f000 fabd bl 80284a4 <writeMQTTString>
  99242. rc = ptr - buf;
  99243. 8027f2a: 69fa ldr r2, [r7, #28]
  99244. 8027f2c: 68fb ldr r3, [r7, #12]
  99245. 8027f2e: 1ad3 subs r3, r2, r3
  99246. 8027f30: 627b str r3, [r7, #36] @ 0x24
  99247. exit: FUNC_EXIT_RC(rc);
  99248. return rc;
  99249. 8027f32: 6a7b ldr r3, [r7, #36] @ 0x24
  99250. }
  99251. 8027f34: 4618 mov r0, r3
  99252. 8027f36: 3728 adds r7, #40 @ 0x28
  99253. 8027f38: 46bd mov sp, r7
  99254. 8027f3a: bd80 pop {r7, pc}
  99255. 8027f3c: 08031214 .word 0x08031214
  99256. 8027f40: 0803121c .word 0x0803121c
  99257. 08027f44 <MQTTDeserialize_connack>:
  99258. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  99259. * @param len the length in bytes of the data in the supplied buffer
  99260. * @return error code. 1 is success, 0 is failure
  99261. */
  99262. int MQTTDeserialize_connack(unsigned char* sessionPresent, unsigned char* connack_rc, unsigned char* buf, int buflen)
  99263. {
  99264. 8027f44: b580 push {r7, lr}
  99265. 8027f46: b08a sub sp, #40 @ 0x28
  99266. 8027f48: af00 add r7, sp, #0
  99267. 8027f4a: 60f8 str r0, [r7, #12]
  99268. 8027f4c: 60b9 str r1, [r7, #8]
  99269. 8027f4e: 607a str r2, [r7, #4]
  99270. 8027f50: 603b str r3, [r7, #0]
  99271. MQTTHeader header = {0};
  99272. 8027f52: 2300 movs r3, #0
  99273. 8027f54: 61fb str r3, [r7, #28]
  99274. unsigned char* curdata = buf;
  99275. 8027f56: 687b ldr r3, [r7, #4]
  99276. 8027f58: 61bb str r3, [r7, #24]
  99277. unsigned char* enddata = NULL;
  99278. 8027f5a: 2300 movs r3, #0
  99279. 8027f5c: 623b str r3, [r7, #32]
  99280. int rc = 0;
  99281. 8027f5e: 2300 movs r3, #0
  99282. 8027f60: 627b str r3, [r7, #36] @ 0x24
  99283. int mylen;
  99284. MQTTConnackFlags flags = {0};
  99285. 8027f62: 2300 movs r3, #0
  99286. 8027f64: 613b str r3, [r7, #16]
  99287. FUNC_ENTRY;
  99288. header.byte = readChar(&curdata);
  99289. 8027f66: f107 0318 add.w r3, r7, #24
  99290. 8027f6a: 4618 mov r0, r3
  99291. 8027f6c: f000 fa29 bl 80283c2 <readChar>
  99292. 8027f70: 4603 mov r3, r0
  99293. 8027f72: 773b strb r3, [r7, #28]
  99294. if (header.bits.type != CONNACK)
  99295. 8027f74: 7f3b ldrb r3, [r7, #28]
  99296. 8027f76: f023 030f bic.w r3, r3, #15
  99297. 8027f7a: b2db uxtb r3, r3
  99298. 8027f7c: 2b20 cmp r3, #32
  99299. 8027f7e: d12e bne.n 8027fde <MQTTDeserialize_connack+0x9a>
  99300. goto exit;
  99301. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  99302. 8027f80: 69bb ldr r3, [r7, #24]
  99303. 8027f82: f107 0214 add.w r2, r7, #20
  99304. 8027f86: 4611 mov r1, r2
  99305. 8027f88: 4618 mov r0, r3
  99306. 8027f8a: f000 f9e9 bl 8028360 <MQTTPacket_decodeBuf>
  99307. 8027f8e: 6278 str r0, [r7, #36] @ 0x24
  99308. 8027f90: 6a7a ldr r2, [r7, #36] @ 0x24
  99309. 8027f92: 69bb ldr r3, [r7, #24]
  99310. 8027f94: 4413 add r3, r2
  99311. 8027f96: 61bb str r3, [r7, #24]
  99312. enddata = curdata + mylen;
  99313. 8027f98: 69bb ldr r3, [r7, #24]
  99314. 8027f9a: 697a ldr r2, [r7, #20]
  99315. 8027f9c: 4413 add r3, r2
  99316. 8027f9e: 623b str r3, [r7, #32]
  99317. if (enddata - curdata < 2)
  99318. 8027fa0: 69bb ldr r3, [r7, #24]
  99319. 8027fa2: 6a3a ldr r2, [r7, #32]
  99320. 8027fa4: 1ad3 subs r3, r2, r3
  99321. 8027fa6: 2b01 cmp r3, #1
  99322. 8027fa8: dd1b ble.n 8027fe2 <MQTTDeserialize_connack+0x9e>
  99323. goto exit;
  99324. flags.all = readChar(&curdata);
  99325. 8027faa: f107 0318 add.w r3, r7, #24
  99326. 8027fae: 4618 mov r0, r3
  99327. 8027fb0: f000 fa07 bl 80283c2 <readChar>
  99328. 8027fb4: 4603 mov r3, r0
  99329. 8027fb6: 743b strb r3, [r7, #16]
  99330. *sessionPresent = flags.bits.sessionpresent;
  99331. 8027fb8: 7c3b ldrb r3, [r7, #16]
  99332. 8027fba: f3c3 0300 ubfx r3, r3, #0, #1
  99333. 8027fbe: b2db uxtb r3, r3
  99334. 8027fc0: 461a mov r2, r3
  99335. 8027fc2: 68fb ldr r3, [r7, #12]
  99336. 8027fc4: 701a strb r2, [r3, #0]
  99337. *connack_rc = readChar(&curdata);
  99338. 8027fc6: f107 0318 add.w r3, r7, #24
  99339. 8027fca: 4618 mov r0, r3
  99340. 8027fcc: f000 f9f9 bl 80283c2 <readChar>
  99341. 8027fd0: 4603 mov r3, r0
  99342. 8027fd2: 461a mov r2, r3
  99343. 8027fd4: 68bb ldr r3, [r7, #8]
  99344. 8027fd6: 701a strb r2, [r3, #0]
  99345. rc = 1;
  99346. 8027fd8: 2301 movs r3, #1
  99347. 8027fda: 627b str r3, [r7, #36] @ 0x24
  99348. 8027fdc: e002 b.n 8027fe4 <MQTTDeserialize_connack+0xa0>
  99349. goto exit;
  99350. 8027fde: bf00 nop
  99351. 8027fe0: e000 b.n 8027fe4 <MQTTDeserialize_connack+0xa0>
  99352. goto exit;
  99353. 8027fe2: bf00 nop
  99354. exit:
  99355. FUNC_EXIT_RC(rc);
  99356. return rc;
  99357. 8027fe4: 6a7b ldr r3, [r7, #36] @ 0x24
  99358. }
  99359. 8027fe6: 4618 mov r0, r3
  99360. 8027fe8: 3728 adds r7, #40 @ 0x28
  99361. 8027fea: 46bd mov sp, r7
  99362. 8027fec: bd80 pop {r7, pc}
  99363. 08027fee <MQTTSerialize_zero>:
  99364. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  99365. * @param packettype the message type
  99366. * @return serialized length, or error if 0
  99367. */
  99368. int MQTTSerialize_zero(unsigned char* buf, int buflen, unsigned char packettype)
  99369. {
  99370. 8027fee: b580 push {r7, lr}
  99371. 8027ff0: b088 sub sp, #32
  99372. 8027ff2: af00 add r7, sp, #0
  99373. 8027ff4: 60f8 str r0, [r7, #12]
  99374. 8027ff6: 60b9 str r1, [r7, #8]
  99375. 8027ff8: 4613 mov r3, r2
  99376. 8027ffa: 71fb strb r3, [r7, #7]
  99377. MQTTHeader header = {0};
  99378. 8027ffc: 2300 movs r3, #0
  99379. 8027ffe: 61bb str r3, [r7, #24]
  99380. int rc = -1;
  99381. 8028000: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99382. 8028004: 61fb str r3, [r7, #28]
  99383. unsigned char *ptr = buf;
  99384. 8028006: 68fb ldr r3, [r7, #12]
  99385. 8028008: 617b str r3, [r7, #20]
  99386. FUNC_ENTRY;
  99387. if (buflen < 2)
  99388. 802800a: 68bb ldr r3, [r7, #8]
  99389. 802800c: 2b01 cmp r3, #1
  99390. 802800e: dc03 bgt.n 8028018 <MQTTSerialize_zero+0x2a>
  99391. {
  99392. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  99393. 8028010: f06f 0301 mvn.w r3, #1
  99394. 8028014: 61fb str r3, [r7, #28]
  99395. goto exit;
  99396. 8028016: e01d b.n 8028054 <MQTTSerialize_zero+0x66>
  99397. }
  99398. header.byte = 0;
  99399. 8028018: 2300 movs r3, #0
  99400. 802801a: 763b strb r3, [r7, #24]
  99401. header.bits.type = packettype;
  99402. 802801c: 79fb ldrb r3, [r7, #7]
  99403. 802801e: f003 030f and.w r3, r3, #15
  99404. 8028022: b2da uxtb r2, r3
  99405. 8028024: 7e3b ldrb r3, [r7, #24]
  99406. 8028026: f362 1307 bfi r3, r2, #4, #4
  99407. 802802a: 763b strb r3, [r7, #24]
  99408. writeChar(&ptr, header.byte); /* write header */
  99409. 802802c: 7e3a ldrb r2, [r7, #24]
  99410. 802802e: f107 0314 add.w r3, r7, #20
  99411. 8028032: 4611 mov r1, r2
  99412. 8028034: 4618 mov r0, r3
  99413. 8028036: f000 f9d8 bl 80283ea <writeChar>
  99414. ptr += MQTTPacket_encode(ptr, 0); /* write remaining length */
  99415. 802803a: 697b ldr r3, [r7, #20]
  99416. 802803c: 2100 movs r1, #0
  99417. 802803e: 4618 mov r0, r3
  99418. 8028040: f000 f8d9 bl 80281f6 <MQTTPacket_encode>
  99419. 8028044: 4602 mov r2, r0
  99420. 8028046: 697b ldr r3, [r7, #20]
  99421. 8028048: 4413 add r3, r2
  99422. 802804a: 617b str r3, [r7, #20]
  99423. rc = ptr - buf;
  99424. 802804c: 697a ldr r2, [r7, #20]
  99425. 802804e: 68fb ldr r3, [r7, #12]
  99426. 8028050: 1ad3 subs r3, r2, r3
  99427. 8028052: 61fb str r3, [r7, #28]
  99428. exit:
  99429. FUNC_EXIT_RC(rc);
  99430. return rc;
  99431. 8028054: 69fb ldr r3, [r7, #28]
  99432. }
  99433. 8028056: 4618 mov r0, r3
  99434. 8028058: 3720 adds r7, #32
  99435. 802805a: 46bd mov sp, r7
  99436. 802805c: bd80 pop {r7, pc}
  99437. 0802805e <MQTTSerialize_pingreq>:
  99438. * @param buf the buffer into which the packet will be serialized
  99439. * @param buflen the length in bytes of the supplied buffer, to avoid overruns
  99440. * @return serialized length, or error if 0
  99441. */
  99442. int MQTTSerialize_pingreq(unsigned char* buf, int buflen)
  99443. {
  99444. 802805e: b580 push {r7, lr}
  99445. 8028060: b082 sub sp, #8
  99446. 8028062: af00 add r7, sp, #0
  99447. 8028064: 6078 str r0, [r7, #4]
  99448. 8028066: 6039 str r1, [r7, #0]
  99449. return MQTTSerialize_zero(buf, buflen, PINGREQ);
  99450. 8028068: 220c movs r2, #12
  99451. 802806a: 6839 ldr r1, [r7, #0]
  99452. 802806c: 6878 ldr r0, [r7, #4]
  99453. 802806e: f7ff ffbe bl 8027fee <MQTTSerialize_zero>
  99454. 8028072: 4603 mov r3, r0
  99455. }
  99456. 8028074: 4618 mov r0, r3
  99457. 8028076: 3708 adds r7, #8
  99458. 8028078: 46bd mov sp, r7
  99459. 802807a: bd80 pop {r7, pc}
  99460. 0802807c <MQTTDeserialize_publish>:
  99461. * @param buflen the length in bytes of the data in the supplied buffer
  99462. * @return error code. 1 is success
  99463. */
  99464. int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName,
  99465. unsigned char** payload, int* payloadlen, unsigned char* buf, int buflen)
  99466. {
  99467. 802807c: b580 push {r7, lr}
  99468. 802807e: b08a sub sp, #40 @ 0x28
  99469. 8028080: af00 add r7, sp, #0
  99470. 8028082: 60f8 str r0, [r7, #12]
  99471. 8028084: 60b9 str r1, [r7, #8]
  99472. 8028086: 607a str r2, [r7, #4]
  99473. 8028088: 603b str r3, [r7, #0]
  99474. MQTTHeader header = {0};
  99475. 802808a: 2300 movs r3, #0
  99476. 802808c: 61fb str r3, [r7, #28]
  99477. unsigned char* curdata = buf;
  99478. 802808e: 6bfb ldr r3, [r7, #60] @ 0x3c
  99479. 8028090: 61bb str r3, [r7, #24]
  99480. unsigned char* enddata = NULL;
  99481. 8028092: 2300 movs r3, #0
  99482. 8028094: 623b str r3, [r7, #32]
  99483. int rc = 0;
  99484. 8028096: 2300 movs r3, #0
  99485. 8028098: 627b str r3, [r7, #36] @ 0x24
  99486. int mylen = 0;
  99487. 802809a: 2300 movs r3, #0
  99488. 802809c: 617b str r3, [r7, #20]
  99489. FUNC_ENTRY;
  99490. header.byte = readChar(&curdata);
  99491. 802809e: f107 0318 add.w r3, r7, #24
  99492. 80280a2: 4618 mov r0, r3
  99493. 80280a4: f000 f98d bl 80283c2 <readChar>
  99494. 80280a8: 4603 mov r3, r0
  99495. 80280aa: 773b strb r3, [r7, #28]
  99496. if (header.bits.type != PUBLISH)
  99497. 80280ac: 7f3b ldrb r3, [r7, #28]
  99498. 80280ae: f023 030f bic.w r3, r3, #15
  99499. 80280b2: b2db uxtb r3, r3
  99500. 80280b4: 2b30 cmp r3, #48 @ 0x30
  99501. 80280b6: d14b bne.n 8028150 <MQTTDeserialize_publish+0xd4>
  99502. goto exit;
  99503. *dup = header.bits.dup;
  99504. 80280b8: 7f3b ldrb r3, [r7, #28]
  99505. 80280ba: f3c3 03c0 ubfx r3, r3, #3, #1
  99506. 80280be: b2db uxtb r3, r3
  99507. 80280c0: 461a mov r2, r3
  99508. 80280c2: 68fb ldr r3, [r7, #12]
  99509. 80280c4: 701a strb r2, [r3, #0]
  99510. *qos = header.bits.qos;
  99511. 80280c6: 7f3b ldrb r3, [r7, #28]
  99512. 80280c8: f3c3 0341 ubfx r3, r3, #1, #2
  99513. 80280cc: b2db uxtb r3, r3
  99514. 80280ce: 461a mov r2, r3
  99515. 80280d0: 68bb ldr r3, [r7, #8]
  99516. 80280d2: 601a str r2, [r3, #0]
  99517. *retained = header.bits.retain;
  99518. 80280d4: 7f3b ldrb r3, [r7, #28]
  99519. 80280d6: f3c3 0300 ubfx r3, r3, #0, #1
  99520. 80280da: b2db uxtb r3, r3
  99521. 80280dc: 461a mov r2, r3
  99522. 80280de: 687b ldr r3, [r7, #4]
  99523. 80280e0: 701a strb r2, [r3, #0]
  99524. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  99525. 80280e2: 69bb ldr r3, [r7, #24]
  99526. 80280e4: f107 0214 add.w r2, r7, #20
  99527. 80280e8: 4611 mov r1, r2
  99528. 80280ea: 4618 mov r0, r3
  99529. 80280ec: f000 f938 bl 8028360 <MQTTPacket_decodeBuf>
  99530. 80280f0: 6278 str r0, [r7, #36] @ 0x24
  99531. 80280f2: 6a7a ldr r2, [r7, #36] @ 0x24
  99532. 80280f4: 69bb ldr r3, [r7, #24]
  99533. 80280f6: 4413 add r3, r2
  99534. 80280f8: 61bb str r3, [r7, #24]
  99535. enddata = curdata + mylen;
  99536. 80280fa: 69bb ldr r3, [r7, #24]
  99537. 80280fc: 697a ldr r2, [r7, #20]
  99538. 80280fe: 4413 add r3, r2
  99539. 8028100: 623b str r3, [r7, #32]
  99540. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  99541. 8028102: f107 0318 add.w r3, r7, #24
  99542. 8028106: 6a3a ldr r2, [r7, #32]
  99543. 8028108: 4619 mov r1, r3
  99544. 802810a: 6b38 ldr r0, [r7, #48] @ 0x30
  99545. 802810c: f000 f9f8 bl 8028500 <readMQTTLenString>
  99546. 8028110: 4603 mov r3, r0
  99547. 8028112: 2b00 cmp r3, #0
  99548. 8028114: d01e beq.n 8028154 <MQTTDeserialize_publish+0xd8>
  99549. enddata - curdata < 0) /* do we have enough data to read the protocol version byte? */
  99550. 8028116: 69bb ldr r3, [r7, #24]
  99551. 8028118: 6a3a ldr r2, [r7, #32]
  99552. 802811a: 1ad3 subs r3, r2, r3
  99553. if (!readMQTTLenString(topicName, &curdata, enddata) ||
  99554. 802811c: 2b00 cmp r3, #0
  99555. 802811e: db19 blt.n 8028154 <MQTTDeserialize_publish+0xd8>
  99556. goto exit;
  99557. if (*qos > 0)
  99558. 8028120: 68bb ldr r3, [r7, #8]
  99559. 8028122: 681b ldr r3, [r3, #0]
  99560. 8028124: 2b00 cmp r3, #0
  99561. 8028126: dd08 ble.n 802813a <MQTTDeserialize_publish+0xbe>
  99562. *packetid = readInt(&curdata);
  99563. 8028128: f107 0318 add.w r3, r7, #24
  99564. 802812c: 4618 mov r0, r3
  99565. 802812e: f000 f92d bl 802838c <readInt>
  99566. 8028132: 4603 mov r3, r0
  99567. 8028134: b29a uxth r2, r3
  99568. 8028136: 683b ldr r3, [r7, #0]
  99569. 8028138: 801a strh r2, [r3, #0]
  99570. *payloadlen = enddata - curdata;
  99571. 802813a: 69bb ldr r3, [r7, #24]
  99572. 802813c: 6a3a ldr r2, [r7, #32]
  99573. 802813e: 1ad2 subs r2, r2, r3
  99574. 8028140: 6bbb ldr r3, [r7, #56] @ 0x38
  99575. 8028142: 601a str r2, [r3, #0]
  99576. *payload = curdata;
  99577. 8028144: 69ba ldr r2, [r7, #24]
  99578. 8028146: 6b7b ldr r3, [r7, #52] @ 0x34
  99579. 8028148: 601a str r2, [r3, #0]
  99580. rc = 1;
  99581. 802814a: 2301 movs r3, #1
  99582. 802814c: 627b str r3, [r7, #36] @ 0x24
  99583. 802814e: e002 b.n 8028156 <MQTTDeserialize_publish+0xda>
  99584. goto exit;
  99585. 8028150: bf00 nop
  99586. 8028152: e000 b.n 8028156 <MQTTDeserialize_publish+0xda>
  99587. goto exit;
  99588. 8028154: bf00 nop
  99589. exit:
  99590. FUNC_EXIT_RC(rc);
  99591. return rc;
  99592. 8028156: 6a7b ldr r3, [r7, #36] @ 0x24
  99593. }
  99594. 8028158: 4618 mov r0, r3
  99595. 802815a: 3728 adds r7, #40 @ 0x28
  99596. 802815c: 46bd mov sp, r7
  99597. 802815e: bd80 pop {r7, pc}
  99598. 08028160 <MQTTDeserialize_ack>:
  99599. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  99600. * @param buflen the length in bytes of the data in the supplied buffer
  99601. * @return error code. 1 is success, 0 is failure
  99602. */
  99603. int MQTTDeserialize_ack(unsigned char* packettype, unsigned char* dup, unsigned short* packetid, unsigned char* buf, int buflen)
  99604. {
  99605. 8028160: b580 push {r7, lr}
  99606. 8028162: b08a sub sp, #40 @ 0x28
  99607. 8028164: af00 add r7, sp, #0
  99608. 8028166: 60f8 str r0, [r7, #12]
  99609. 8028168: 60b9 str r1, [r7, #8]
  99610. 802816a: 607a str r2, [r7, #4]
  99611. 802816c: 603b str r3, [r7, #0]
  99612. MQTTHeader header = {0};
  99613. 802816e: 2300 movs r3, #0
  99614. 8028170: 61fb str r3, [r7, #28]
  99615. unsigned char* curdata = buf;
  99616. 8028172: 683b ldr r3, [r7, #0]
  99617. 8028174: 61bb str r3, [r7, #24]
  99618. unsigned char* enddata = NULL;
  99619. 8028176: 2300 movs r3, #0
  99620. 8028178: 623b str r3, [r7, #32]
  99621. int rc = 0;
  99622. 802817a: 2300 movs r3, #0
  99623. 802817c: 627b str r3, [r7, #36] @ 0x24
  99624. int mylen;
  99625. FUNC_ENTRY;
  99626. header.byte = readChar(&curdata);
  99627. 802817e: f107 0318 add.w r3, r7, #24
  99628. 8028182: 4618 mov r0, r3
  99629. 8028184: f000 f91d bl 80283c2 <readChar>
  99630. 8028188: 4603 mov r3, r0
  99631. 802818a: 773b strb r3, [r7, #28]
  99632. *dup = header.bits.dup;
  99633. 802818c: 7f3b ldrb r3, [r7, #28]
  99634. 802818e: f3c3 03c0 ubfx r3, r3, #3, #1
  99635. 8028192: b2db uxtb r3, r3
  99636. 8028194: 461a mov r2, r3
  99637. 8028196: 68bb ldr r3, [r7, #8]
  99638. 8028198: 701a strb r2, [r3, #0]
  99639. *packettype = header.bits.type;
  99640. 802819a: 7f3b ldrb r3, [r7, #28]
  99641. 802819c: f3c3 1303 ubfx r3, r3, #4, #4
  99642. 80281a0: b2db uxtb r3, r3
  99643. 80281a2: 461a mov r2, r3
  99644. 80281a4: 68fb ldr r3, [r7, #12]
  99645. 80281a6: 701a strb r2, [r3, #0]
  99646. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  99647. 80281a8: 69bb ldr r3, [r7, #24]
  99648. 80281aa: f107 0214 add.w r2, r7, #20
  99649. 80281ae: 4611 mov r1, r2
  99650. 80281b0: 4618 mov r0, r3
  99651. 80281b2: f000 f8d5 bl 8028360 <MQTTPacket_decodeBuf>
  99652. 80281b6: 6278 str r0, [r7, #36] @ 0x24
  99653. 80281b8: 6a7a ldr r2, [r7, #36] @ 0x24
  99654. 80281ba: 69bb ldr r3, [r7, #24]
  99655. 80281bc: 4413 add r3, r2
  99656. 80281be: 61bb str r3, [r7, #24]
  99657. enddata = curdata + mylen;
  99658. 80281c0: 69bb ldr r3, [r7, #24]
  99659. 80281c2: 697a ldr r2, [r7, #20]
  99660. 80281c4: 4413 add r3, r2
  99661. 80281c6: 623b str r3, [r7, #32]
  99662. if (enddata - curdata < 2)
  99663. 80281c8: 69bb ldr r3, [r7, #24]
  99664. 80281ca: 6a3a ldr r2, [r7, #32]
  99665. 80281cc: 1ad3 subs r3, r2, r3
  99666. 80281ce: 2b01 cmp r3, #1
  99667. 80281d0: dd0b ble.n 80281ea <MQTTDeserialize_ack+0x8a>
  99668. goto exit;
  99669. *packetid = readInt(&curdata);
  99670. 80281d2: f107 0318 add.w r3, r7, #24
  99671. 80281d6: 4618 mov r0, r3
  99672. 80281d8: f000 f8d8 bl 802838c <readInt>
  99673. 80281dc: 4603 mov r3, r0
  99674. 80281de: b29a uxth r2, r3
  99675. 80281e0: 687b ldr r3, [r7, #4]
  99676. 80281e2: 801a strh r2, [r3, #0]
  99677. rc = 1;
  99678. 80281e4: 2301 movs r3, #1
  99679. 80281e6: 627b str r3, [r7, #36] @ 0x24
  99680. 80281e8: e000 b.n 80281ec <MQTTDeserialize_ack+0x8c>
  99681. goto exit;
  99682. 80281ea: bf00 nop
  99683. exit:
  99684. FUNC_EXIT_RC(rc);
  99685. return rc;
  99686. 80281ec: 6a7b ldr r3, [r7, #36] @ 0x24
  99687. }
  99688. 80281ee: 4618 mov r0, r3
  99689. 80281f0: 3728 adds r7, #40 @ 0x28
  99690. 80281f2: 46bd mov sp, r7
  99691. 80281f4: bd80 pop {r7, pc}
  99692. 080281f6 <MQTTPacket_encode>:
  99693. * @param buf the buffer into which the encoded data is written
  99694. * @param length the length to be encoded
  99695. * @return the number of bytes written to buffer
  99696. */
  99697. int MQTTPacket_encode(unsigned char* buf, int length)
  99698. {
  99699. 80281f6: b480 push {r7}
  99700. 80281f8: b085 sub sp, #20
  99701. 80281fa: af00 add r7, sp, #0
  99702. 80281fc: 6078 str r0, [r7, #4]
  99703. 80281fe: 6039 str r1, [r7, #0]
  99704. int rc = 0;
  99705. 8028200: 2300 movs r3, #0
  99706. 8028202: 60fb str r3, [r7, #12]
  99707. FUNC_ENTRY;
  99708. do
  99709. {
  99710. char d = length % 128;
  99711. 8028204: 683b ldr r3, [r7, #0]
  99712. 8028206: 425a negs r2, r3
  99713. 8028208: f003 037f and.w r3, r3, #127 @ 0x7f
  99714. 802820c: f002 027f and.w r2, r2, #127 @ 0x7f
  99715. 8028210: bf58 it pl
  99716. 8028212: 4253 negpl r3, r2
  99717. 8028214: 72fb strb r3, [r7, #11]
  99718. length /= 128;
  99719. 8028216: 683b ldr r3, [r7, #0]
  99720. 8028218: 2b00 cmp r3, #0
  99721. 802821a: da00 bge.n 802821e <MQTTPacket_encode+0x28>
  99722. 802821c: 337f adds r3, #127 @ 0x7f
  99723. 802821e: 11db asrs r3, r3, #7
  99724. 8028220: 603b str r3, [r7, #0]
  99725. /* if there are more digits to encode, set the top bit of this digit */
  99726. if (length > 0)
  99727. 8028222: 683b ldr r3, [r7, #0]
  99728. 8028224: 2b00 cmp r3, #0
  99729. 8028226: dd03 ble.n 8028230 <MQTTPacket_encode+0x3a>
  99730. d |= 0x80;
  99731. 8028228: 7afb ldrb r3, [r7, #11]
  99732. 802822a: f063 037f orn r3, r3, #127 @ 0x7f
  99733. 802822e: 72fb strb r3, [r7, #11]
  99734. buf[rc++] = d;
  99735. 8028230: 68fb ldr r3, [r7, #12]
  99736. 8028232: 1c5a adds r2, r3, #1
  99737. 8028234: 60fa str r2, [r7, #12]
  99738. 8028236: 461a mov r2, r3
  99739. 8028238: 687b ldr r3, [r7, #4]
  99740. 802823a: 4413 add r3, r2
  99741. 802823c: 7afa ldrb r2, [r7, #11]
  99742. 802823e: 701a strb r2, [r3, #0]
  99743. } while (length > 0);
  99744. 8028240: 683b ldr r3, [r7, #0]
  99745. 8028242: 2b00 cmp r3, #0
  99746. 8028244: dcde bgt.n 8028204 <MQTTPacket_encode+0xe>
  99747. FUNC_EXIT_RC(rc);
  99748. return rc;
  99749. 8028246: 68fb ldr r3, [r7, #12]
  99750. }
  99751. 8028248: 4618 mov r0, r3
  99752. 802824a: 3714 adds r7, #20
  99753. 802824c: 46bd mov sp, r7
  99754. 802824e: f85d 7b04 ldr.w r7, [sp], #4
  99755. 8028252: 4770 bx lr
  99756. 08028254 <MQTTPacket_decode>:
  99757. * @param getcharfn pointer to function to read the next character from the data source
  99758. * @param value the decoded length returned
  99759. * @return the number of bytes read from the socket
  99760. */
  99761. int MQTTPacket_decode(int (*getcharfn)(unsigned char*, int), int* value)
  99762. {
  99763. 8028254: b580 push {r7, lr}
  99764. 8028256: b086 sub sp, #24
  99765. 8028258: af00 add r7, sp, #0
  99766. 802825a: 6078 str r0, [r7, #4]
  99767. 802825c: 6039 str r1, [r7, #0]
  99768. unsigned char c;
  99769. int multiplier = 1;
  99770. 802825e: 2301 movs r3, #1
  99771. 8028260: 617b str r3, [r7, #20]
  99772. int len = 0;
  99773. 8028262: 2300 movs r3, #0
  99774. 8028264: 613b str r3, [r7, #16]
  99775. #define MAX_NO_OF_REMAINING_LENGTH_BYTES 4
  99776. FUNC_ENTRY;
  99777. *value = 0;
  99778. 8028266: 683b ldr r3, [r7, #0]
  99779. 8028268: 2200 movs r2, #0
  99780. 802826a: 601a str r2, [r3, #0]
  99781. do
  99782. {
  99783. int rc = MQTTPACKET_READ_ERROR;
  99784. 802826c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99785. 8028270: 60fb str r3, [r7, #12]
  99786. if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
  99787. 8028272: 693b ldr r3, [r7, #16]
  99788. 8028274: 3301 adds r3, #1
  99789. 8028276: 613b str r3, [r7, #16]
  99790. 8028278: 693b ldr r3, [r7, #16]
  99791. 802827a: 2b04 cmp r3, #4
  99792. 802827c: dd03 ble.n 8028286 <MQTTPacket_decode+0x32>
  99793. {
  99794. rc = MQTTPACKET_READ_ERROR; /* bad data */
  99795. 802827e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  99796. 8028282: 60fb str r3, [r7, #12]
  99797. goto exit;
  99798. 8028284: e01d b.n 80282c2 <MQTTPacket_decode+0x6e>
  99799. }
  99800. rc = (*getcharfn)(&c, 1);
  99801. 8028286: f107 020b add.w r2, r7, #11
  99802. 802828a: 687b ldr r3, [r7, #4]
  99803. 802828c: 2101 movs r1, #1
  99804. 802828e: 4610 mov r0, r2
  99805. 8028290: 4798 blx r3
  99806. 8028292: 60f8 str r0, [r7, #12]
  99807. if (rc != 1)
  99808. 8028294: 68fb ldr r3, [r7, #12]
  99809. 8028296: 2b01 cmp r3, #1
  99810. 8028298: d112 bne.n 80282c0 <MQTTPacket_decode+0x6c>
  99811. goto exit;
  99812. *value += (c & 127) * multiplier;
  99813. 802829a: 683b ldr r3, [r7, #0]
  99814. 802829c: 681a ldr r2, [r3, #0]
  99815. 802829e: 7afb ldrb r3, [r7, #11]
  99816. 80282a0: f003 037f and.w r3, r3, #127 @ 0x7f
  99817. 80282a4: 6979 ldr r1, [r7, #20]
  99818. 80282a6: fb01 f303 mul.w r3, r1, r3
  99819. 80282aa: 441a add r2, r3
  99820. 80282ac: 683b ldr r3, [r7, #0]
  99821. 80282ae: 601a str r2, [r3, #0]
  99822. multiplier *= 128;
  99823. 80282b0: 697b ldr r3, [r7, #20]
  99824. 80282b2: 01db lsls r3, r3, #7
  99825. 80282b4: 617b str r3, [r7, #20]
  99826. } while ((c & 128) != 0);
  99827. 80282b6: 7afb ldrb r3, [r7, #11]
  99828. 80282b8: b25b sxtb r3, r3
  99829. 80282ba: 2b00 cmp r3, #0
  99830. 80282bc: dbd6 blt.n 802826c <MQTTPacket_decode+0x18>
  99831. exit:
  99832. 80282be: e000 b.n 80282c2 <MQTTPacket_decode+0x6e>
  99833. goto exit;
  99834. 80282c0: bf00 nop
  99835. FUNC_EXIT_RC(len);
  99836. return len;
  99837. 80282c2: 693b ldr r3, [r7, #16]
  99838. }
  99839. 80282c4: 4618 mov r0, r3
  99840. 80282c6: 3718 adds r7, #24
  99841. 80282c8: 46bd mov sp, r7
  99842. 80282ca: bd80 pop {r7, pc}
  99843. 080282cc <MQTTPacket_len>:
  99844. int MQTTPacket_len(int rem_len)
  99845. {
  99846. 80282cc: b480 push {r7}
  99847. 80282ce: b083 sub sp, #12
  99848. 80282d0: af00 add r7, sp, #0
  99849. 80282d2: 6078 str r0, [r7, #4]
  99850. rem_len += 1; /* header byte */
  99851. 80282d4: 687b ldr r3, [r7, #4]
  99852. 80282d6: 3301 adds r3, #1
  99853. 80282d8: 607b str r3, [r7, #4]
  99854. /* now remaining_length field */
  99855. if (rem_len < 128)
  99856. 80282da: 687b ldr r3, [r7, #4]
  99857. 80282dc: 2b7f cmp r3, #127 @ 0x7f
  99858. 80282de: dc03 bgt.n 80282e8 <MQTTPacket_len+0x1c>
  99859. rem_len += 1;
  99860. 80282e0: 687b ldr r3, [r7, #4]
  99861. 80282e2: 3301 adds r3, #1
  99862. 80282e4: 607b str r3, [r7, #4]
  99863. 80282e6: e012 b.n 802830e <MQTTPacket_len+0x42>
  99864. else if (rem_len < 16384)
  99865. 80282e8: 687b ldr r3, [r7, #4]
  99866. 80282ea: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  99867. 80282ee: da03 bge.n 80282f8 <MQTTPacket_len+0x2c>
  99868. rem_len += 2;
  99869. 80282f0: 687b ldr r3, [r7, #4]
  99870. 80282f2: 3302 adds r3, #2
  99871. 80282f4: 607b str r3, [r7, #4]
  99872. 80282f6: e00a b.n 802830e <MQTTPacket_len+0x42>
  99873. else if (rem_len < 2097151)
  99874. 80282f8: 687b ldr r3, [r7, #4]
  99875. 80282fa: 4a08 ldr r2, [pc, #32] @ (802831c <MQTTPacket_len+0x50>)
  99876. 80282fc: 4293 cmp r3, r2
  99877. 80282fe: dc03 bgt.n 8028308 <MQTTPacket_len+0x3c>
  99878. rem_len += 3;
  99879. 8028300: 687b ldr r3, [r7, #4]
  99880. 8028302: 3303 adds r3, #3
  99881. 8028304: 607b str r3, [r7, #4]
  99882. 8028306: e002 b.n 802830e <MQTTPacket_len+0x42>
  99883. else
  99884. rem_len += 4;
  99885. 8028308: 687b ldr r3, [r7, #4]
  99886. 802830a: 3304 adds r3, #4
  99887. 802830c: 607b str r3, [r7, #4]
  99888. return rem_len;
  99889. 802830e: 687b ldr r3, [r7, #4]
  99890. }
  99891. 8028310: 4618 mov r0, r3
  99892. 8028312: 370c adds r7, #12
  99893. 8028314: 46bd mov sp, r7
  99894. 8028316: f85d 7b04 ldr.w r7, [sp], #4
  99895. 802831a: 4770 bx lr
  99896. 802831c: 001ffffe .word 0x001ffffe
  99897. 08028320 <bufchar>:
  99898. static unsigned char* bufptr;
  99899. int bufchar(unsigned char* c, int count)
  99900. {
  99901. 8028320: b480 push {r7}
  99902. 8028322: b085 sub sp, #20
  99903. 8028324: af00 add r7, sp, #0
  99904. 8028326: 6078 str r0, [r7, #4]
  99905. 8028328: 6039 str r1, [r7, #0]
  99906. int i;
  99907. for (i = 0; i < count; ++i)
  99908. 802832a: 2300 movs r3, #0
  99909. 802832c: 60fb str r3, [r7, #12]
  99910. 802832e: e00a b.n 8028346 <bufchar+0x26>
  99911. *c = *bufptr++;
  99912. 8028330: 4b0a ldr r3, [pc, #40] @ (802835c <bufchar+0x3c>)
  99913. 8028332: 681b ldr r3, [r3, #0]
  99914. 8028334: 1c5a adds r2, r3, #1
  99915. 8028336: 4909 ldr r1, [pc, #36] @ (802835c <bufchar+0x3c>)
  99916. 8028338: 600a str r2, [r1, #0]
  99917. 802833a: 781a ldrb r2, [r3, #0]
  99918. 802833c: 687b ldr r3, [r7, #4]
  99919. 802833e: 701a strb r2, [r3, #0]
  99920. for (i = 0; i < count; ++i)
  99921. 8028340: 68fb ldr r3, [r7, #12]
  99922. 8028342: 3301 adds r3, #1
  99923. 8028344: 60fb str r3, [r7, #12]
  99924. 8028346: 68fa ldr r2, [r7, #12]
  99925. 8028348: 683b ldr r3, [r7, #0]
  99926. 802834a: 429a cmp r2, r3
  99927. 802834c: dbf0 blt.n 8028330 <bufchar+0x10>
  99928. return count;
  99929. 802834e: 683b ldr r3, [r7, #0]
  99930. }
  99931. 8028350: 4618 mov r0, r3
  99932. 8028352: 3714 adds r7, #20
  99933. 8028354: 46bd mov sp, r7
  99934. 8028356: f85d 7b04 ldr.w r7, [sp], #4
  99935. 802835a: 4770 bx lr
  99936. 802835c: 2402b108 .word 0x2402b108
  99937. 08028360 <MQTTPacket_decodeBuf>:
  99938. int MQTTPacket_decodeBuf(unsigned char* buf, int* value)
  99939. {
  99940. 8028360: b580 push {r7, lr}
  99941. 8028362: b082 sub sp, #8
  99942. 8028364: af00 add r7, sp, #0
  99943. 8028366: 6078 str r0, [r7, #4]
  99944. 8028368: 6039 str r1, [r7, #0]
  99945. bufptr = buf;
  99946. 802836a: 4a06 ldr r2, [pc, #24] @ (8028384 <MQTTPacket_decodeBuf+0x24>)
  99947. 802836c: 687b ldr r3, [r7, #4]
  99948. 802836e: 6013 str r3, [r2, #0]
  99949. return MQTTPacket_decode(bufchar, value);
  99950. 8028370: 6839 ldr r1, [r7, #0]
  99951. 8028372: 4805 ldr r0, [pc, #20] @ (8028388 <MQTTPacket_decodeBuf+0x28>)
  99952. 8028374: f7ff ff6e bl 8028254 <MQTTPacket_decode>
  99953. 8028378: 4603 mov r3, r0
  99954. }
  99955. 802837a: 4618 mov r0, r3
  99956. 802837c: 3708 adds r7, #8
  99957. 802837e: 46bd mov sp, r7
  99958. 8028380: bd80 pop {r7, pc}
  99959. 8028382: bf00 nop
  99960. 8028384: 2402b108 .word 0x2402b108
  99961. 8028388: 08028321 .word 0x08028321
  99962. 0802838c <readInt>:
  99963. * Calculates an integer from two bytes read from the input buffer
  99964. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  99965. * @return the integer value calculated
  99966. */
  99967. int readInt(unsigned char** pptr)
  99968. {
  99969. 802838c: b480 push {r7}
  99970. 802838e: b085 sub sp, #20
  99971. 8028390: af00 add r7, sp, #0
  99972. 8028392: 6078 str r0, [r7, #4]
  99973. unsigned char* ptr = *pptr;
  99974. 8028394: 687b ldr r3, [r7, #4]
  99975. 8028396: 681b ldr r3, [r3, #0]
  99976. 8028398: 60fb str r3, [r7, #12]
  99977. int len = 256*(*ptr) + (*(ptr+1));
  99978. 802839a: 68fb ldr r3, [r7, #12]
  99979. 802839c: 781b ldrb r3, [r3, #0]
  99980. 802839e: 021b lsls r3, r3, #8
  99981. 80283a0: 68fa ldr r2, [r7, #12]
  99982. 80283a2: 3201 adds r2, #1
  99983. 80283a4: 7812 ldrb r2, [r2, #0]
  99984. 80283a6: 4413 add r3, r2
  99985. 80283a8: 60bb str r3, [r7, #8]
  99986. *pptr += 2;
  99987. 80283aa: 687b ldr r3, [r7, #4]
  99988. 80283ac: 681b ldr r3, [r3, #0]
  99989. 80283ae: 1c9a adds r2, r3, #2
  99990. 80283b0: 687b ldr r3, [r7, #4]
  99991. 80283b2: 601a str r2, [r3, #0]
  99992. return len;
  99993. 80283b4: 68bb ldr r3, [r7, #8]
  99994. }
  99995. 80283b6: 4618 mov r0, r3
  99996. 80283b8: 3714 adds r7, #20
  99997. 80283ba: 46bd mov sp, r7
  99998. 80283bc: f85d 7b04 ldr.w r7, [sp], #4
  99999. 80283c0: 4770 bx lr
  100000. 080283c2 <readChar>:
  100001. * Reads one character from the input buffer.
  100002. * @param pptr pointer to the input buffer - incremented by the number of bytes used & returned
  100003. * @return the character read
  100004. */
  100005. char readChar(unsigned char** pptr)
  100006. {
  100007. 80283c2: b480 push {r7}
  100008. 80283c4: b085 sub sp, #20
  100009. 80283c6: af00 add r7, sp, #0
  100010. 80283c8: 6078 str r0, [r7, #4]
  100011. char c = **pptr;
  100012. 80283ca: 687b ldr r3, [r7, #4]
  100013. 80283cc: 681b ldr r3, [r3, #0]
  100014. 80283ce: 781b ldrb r3, [r3, #0]
  100015. 80283d0: 73fb strb r3, [r7, #15]
  100016. (*pptr)++;
  100017. 80283d2: 687b ldr r3, [r7, #4]
  100018. 80283d4: 681b ldr r3, [r3, #0]
  100019. 80283d6: 1c5a adds r2, r3, #1
  100020. 80283d8: 687b ldr r3, [r7, #4]
  100021. 80283da: 601a str r2, [r3, #0]
  100022. return c;
  100023. 80283dc: 7bfb ldrb r3, [r7, #15]
  100024. }
  100025. 80283de: 4618 mov r0, r3
  100026. 80283e0: 3714 adds r7, #20
  100027. 80283e2: 46bd mov sp, r7
  100028. 80283e4: f85d 7b04 ldr.w r7, [sp], #4
  100029. 80283e8: 4770 bx lr
  100030. 080283ea <writeChar>:
  100031. * Writes one character to an output buffer.
  100032. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100033. * @param c the character to write
  100034. */
  100035. void writeChar(unsigned char** pptr, char c)
  100036. {
  100037. 80283ea: b480 push {r7}
  100038. 80283ec: b083 sub sp, #12
  100039. 80283ee: af00 add r7, sp, #0
  100040. 80283f0: 6078 str r0, [r7, #4]
  100041. 80283f2: 460b mov r3, r1
  100042. 80283f4: 70fb strb r3, [r7, #3]
  100043. **pptr = c;
  100044. 80283f6: 687b ldr r3, [r7, #4]
  100045. 80283f8: 681b ldr r3, [r3, #0]
  100046. 80283fa: 78fa ldrb r2, [r7, #3]
  100047. 80283fc: 701a strb r2, [r3, #0]
  100048. (*pptr)++;
  100049. 80283fe: 687b ldr r3, [r7, #4]
  100050. 8028400: 681b ldr r3, [r3, #0]
  100051. 8028402: 1c5a adds r2, r3, #1
  100052. 8028404: 687b ldr r3, [r7, #4]
  100053. 8028406: 601a str r2, [r3, #0]
  100054. }
  100055. 8028408: bf00 nop
  100056. 802840a: 370c adds r7, #12
  100057. 802840c: 46bd mov sp, r7
  100058. 802840e: f85d 7b04 ldr.w r7, [sp], #4
  100059. 8028412: 4770 bx lr
  100060. 08028414 <writeInt>:
  100061. * Writes an integer as 2 bytes to an output buffer.
  100062. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100063. * @param anInt the integer to write
  100064. */
  100065. void writeInt(unsigned char** pptr, int anInt)
  100066. {
  100067. 8028414: b480 push {r7}
  100068. 8028416: b083 sub sp, #12
  100069. 8028418: af00 add r7, sp, #0
  100070. 802841a: 6078 str r0, [r7, #4]
  100071. 802841c: 6039 str r1, [r7, #0]
  100072. **pptr = (unsigned char)(anInt / 256);
  100073. 802841e: 683b ldr r3, [r7, #0]
  100074. 8028420: 2b00 cmp r3, #0
  100075. 8028422: da00 bge.n 8028426 <writeInt+0x12>
  100076. 8028424: 33ff adds r3, #255 @ 0xff
  100077. 8028426: 121b asrs r3, r3, #8
  100078. 8028428: 461a mov r2, r3
  100079. 802842a: 687b ldr r3, [r7, #4]
  100080. 802842c: 681b ldr r3, [r3, #0]
  100081. 802842e: b2d2 uxtb r2, r2
  100082. 8028430: 701a strb r2, [r3, #0]
  100083. (*pptr)++;
  100084. 8028432: 687b ldr r3, [r7, #4]
  100085. 8028434: 681b ldr r3, [r3, #0]
  100086. 8028436: 1c5a adds r2, r3, #1
  100087. 8028438: 687b ldr r3, [r7, #4]
  100088. 802843a: 601a str r2, [r3, #0]
  100089. **pptr = (unsigned char)(anInt % 256);
  100090. 802843c: 683b ldr r3, [r7, #0]
  100091. 802843e: 425a negs r2, r3
  100092. 8028440: b2db uxtb r3, r3
  100093. 8028442: b2d2 uxtb r2, r2
  100094. 8028444: bf58 it pl
  100095. 8028446: 4253 negpl r3, r2
  100096. 8028448: 687a ldr r2, [r7, #4]
  100097. 802844a: 6812 ldr r2, [r2, #0]
  100098. 802844c: b2db uxtb r3, r3
  100099. 802844e: 7013 strb r3, [r2, #0]
  100100. (*pptr)++;
  100101. 8028450: 687b ldr r3, [r7, #4]
  100102. 8028452: 681b ldr r3, [r3, #0]
  100103. 8028454: 1c5a adds r2, r3, #1
  100104. 8028456: 687b ldr r3, [r7, #4]
  100105. 8028458: 601a str r2, [r3, #0]
  100106. }
  100107. 802845a: bf00 nop
  100108. 802845c: 370c adds r7, #12
  100109. 802845e: 46bd mov sp, r7
  100110. 8028460: f85d 7b04 ldr.w r7, [sp], #4
  100111. 8028464: 4770 bx lr
  100112. 08028466 <writeCString>:
  100113. * Writes a "UTF" string to an output buffer. Converts C string to length-delimited.
  100114. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100115. * @param string the C string to write
  100116. */
  100117. void writeCString(unsigned char** pptr, const char* string)
  100118. {
  100119. 8028466: b580 push {r7, lr}
  100120. 8028468: b084 sub sp, #16
  100121. 802846a: af00 add r7, sp, #0
  100122. 802846c: 6078 str r0, [r7, #4]
  100123. 802846e: 6039 str r1, [r7, #0]
  100124. int len = strlen(string);
  100125. 8028470: 6838 ldr r0, [r7, #0]
  100126. 8028472: f7d7 ff95 bl 80003a0 <strlen>
  100127. 8028476: 4603 mov r3, r0
  100128. 8028478: 60fb str r3, [r7, #12]
  100129. writeInt(pptr, len);
  100130. 802847a: 68f9 ldr r1, [r7, #12]
  100131. 802847c: 6878 ldr r0, [r7, #4]
  100132. 802847e: f7ff ffc9 bl 8028414 <writeInt>
  100133. memcpy(*pptr, string, len);
  100134. 8028482: 687b ldr r3, [r7, #4]
  100135. 8028484: 681b ldr r3, [r3, #0]
  100136. 8028486: 68fa ldr r2, [r7, #12]
  100137. 8028488: 6839 ldr r1, [r7, #0]
  100138. 802848a: 4618 mov r0, r3
  100139. 802848c: f002 f91f bl 802a6ce <memcpy>
  100140. *pptr += len;
  100141. 8028490: 687b ldr r3, [r7, #4]
  100142. 8028492: 681a ldr r2, [r3, #0]
  100143. 8028494: 68fb ldr r3, [r7, #12]
  100144. 8028496: 441a add r2, r3
  100145. 8028498: 687b ldr r3, [r7, #4]
  100146. 802849a: 601a str r2, [r3, #0]
  100147. }
  100148. 802849c: bf00 nop
  100149. 802849e: 3710 adds r7, #16
  100150. 80284a0: 46bd mov sp, r7
  100151. 80284a2: bd80 pop {r7, pc}
  100152. 080284a4 <writeMQTTString>:
  100153. return len;
  100154. }
  100155. void writeMQTTString(unsigned char** pptr, MQTTString mqttstring)
  100156. {
  100157. 80284a4: b580 push {r7, lr}
  100158. 80284a6: b084 sub sp, #16
  100159. 80284a8: af00 add r7, sp, #0
  100160. 80284aa: 60f8 str r0, [r7, #12]
  100161. 80284ac: 4638 mov r0, r7
  100162. 80284ae: e880 000e stmia.w r0, {r1, r2, r3}
  100163. if (mqttstring.lenstring.len > 0)
  100164. 80284b2: 687b ldr r3, [r7, #4]
  100165. 80284b4: 2b00 cmp r3, #0
  100166. 80284b6: dd12 ble.n 80284de <writeMQTTString+0x3a>
  100167. {
  100168. writeInt(pptr, mqttstring.lenstring.len);
  100169. 80284b8: 687b ldr r3, [r7, #4]
  100170. 80284ba: 4619 mov r1, r3
  100171. 80284bc: 68f8 ldr r0, [r7, #12]
  100172. 80284be: f7ff ffa9 bl 8028414 <writeInt>
  100173. memcpy(*pptr, mqttstring.lenstring.data, mqttstring.lenstring.len);
  100174. 80284c2: 68fb ldr r3, [r7, #12]
  100175. 80284c4: 681b ldr r3, [r3, #0]
  100176. 80284c6: 68b9 ldr r1, [r7, #8]
  100177. 80284c8: 687a ldr r2, [r7, #4]
  100178. 80284ca: 4618 mov r0, r3
  100179. 80284cc: f002 f8ff bl 802a6ce <memcpy>
  100180. *pptr += mqttstring.lenstring.len;
  100181. 80284d0: 68fb ldr r3, [r7, #12]
  100182. 80284d2: 681b ldr r3, [r3, #0]
  100183. 80284d4: 687a ldr r2, [r7, #4]
  100184. 80284d6: 441a add r2, r3
  100185. 80284d8: 68fb ldr r3, [r7, #12]
  100186. 80284da: 601a str r2, [r3, #0]
  100187. }
  100188. else if (mqttstring.cstring)
  100189. writeCString(pptr, mqttstring.cstring);
  100190. else
  100191. writeInt(pptr, 0);
  100192. }
  100193. 80284dc: e00c b.n 80284f8 <writeMQTTString+0x54>
  100194. else if (mqttstring.cstring)
  100195. 80284de: 683b ldr r3, [r7, #0]
  100196. 80284e0: 2b00 cmp r3, #0
  100197. 80284e2: d005 beq.n 80284f0 <writeMQTTString+0x4c>
  100198. writeCString(pptr, mqttstring.cstring);
  100199. 80284e4: 683b ldr r3, [r7, #0]
  100200. 80284e6: 4619 mov r1, r3
  100201. 80284e8: 68f8 ldr r0, [r7, #12]
  100202. 80284ea: f7ff ffbc bl 8028466 <writeCString>
  100203. }
  100204. 80284ee: e003 b.n 80284f8 <writeMQTTString+0x54>
  100205. writeInt(pptr, 0);
  100206. 80284f0: 2100 movs r1, #0
  100207. 80284f2: 68f8 ldr r0, [r7, #12]
  100208. 80284f4: f7ff ff8e bl 8028414 <writeInt>
  100209. }
  100210. 80284f8: bf00 nop
  100211. 80284fa: 3710 adds r7, #16
  100212. 80284fc: 46bd mov sp, r7
  100213. 80284fe: bd80 pop {r7, pc}
  100214. 08028500 <readMQTTLenString>:
  100215. * @param pptr pointer to the output buffer - incremented by the number of bytes used & returned
  100216. * @param enddata pointer to the end of the data: do not read beyond
  100217. * @return 1 if successful, 0 if not
  100218. */
  100219. int readMQTTLenString(MQTTString* mqttstring, unsigned char** pptr, unsigned char* enddata)
  100220. {
  100221. 8028500: b580 push {r7, lr}
  100222. 8028502: b086 sub sp, #24
  100223. 8028504: af00 add r7, sp, #0
  100224. 8028506: 60f8 str r0, [r7, #12]
  100225. 8028508: 60b9 str r1, [r7, #8]
  100226. 802850a: 607a str r2, [r7, #4]
  100227. int rc = 0;
  100228. 802850c: 2300 movs r3, #0
  100229. 802850e: 617b str r3, [r7, #20]
  100230. FUNC_ENTRY;
  100231. /* the first two bytes are the length of the string */
  100232. if (enddata - (*pptr) > 1) /* enough length to read the integer? */
  100233. 8028510: 68bb ldr r3, [r7, #8]
  100234. 8028512: 681b ldr r3, [r3, #0]
  100235. 8028514: 687a ldr r2, [r7, #4]
  100236. 8028516: 1ad3 subs r3, r2, r3
  100237. 8028518: 2b01 cmp r3, #1
  100238. 802851a: dd1a ble.n 8028552 <readMQTTLenString+0x52>
  100239. {
  100240. mqttstring->lenstring.len = readInt(pptr); /* increments pptr to point past length */
  100241. 802851c: 68b8 ldr r0, [r7, #8]
  100242. 802851e: f7ff ff35 bl 802838c <readInt>
  100243. 8028522: 4602 mov r2, r0
  100244. 8028524: 68fb ldr r3, [r7, #12]
  100245. 8028526: 605a str r2, [r3, #4]
  100246. if (&(*pptr)[mqttstring->lenstring.len] <= enddata)
  100247. 8028528: 68bb ldr r3, [r7, #8]
  100248. 802852a: 681b ldr r3, [r3, #0]
  100249. 802852c: 68fa ldr r2, [r7, #12]
  100250. 802852e: 6852 ldr r2, [r2, #4]
  100251. 8028530: 4413 add r3, r2
  100252. 8028532: 687a ldr r2, [r7, #4]
  100253. 8028534: 429a cmp r2, r3
  100254. 8028536: d30c bcc.n 8028552 <readMQTTLenString+0x52>
  100255. {
  100256. mqttstring->lenstring.data = (char*)*pptr;
  100257. 8028538: 68bb ldr r3, [r7, #8]
  100258. 802853a: 681a ldr r2, [r3, #0]
  100259. 802853c: 68fb ldr r3, [r7, #12]
  100260. 802853e: 609a str r2, [r3, #8]
  100261. *pptr += mqttstring->lenstring.len;
  100262. 8028540: 68bb ldr r3, [r7, #8]
  100263. 8028542: 681b ldr r3, [r3, #0]
  100264. 8028544: 68fa ldr r2, [r7, #12]
  100265. 8028546: 6852 ldr r2, [r2, #4]
  100266. 8028548: 441a add r2, r3
  100267. 802854a: 68bb ldr r3, [r7, #8]
  100268. 802854c: 601a str r2, [r3, #0]
  100269. rc = 1;
  100270. 802854e: 2301 movs r3, #1
  100271. 8028550: 617b str r3, [r7, #20]
  100272. }
  100273. }
  100274. mqttstring->cstring = NULL;
  100275. 8028552: 68fb ldr r3, [r7, #12]
  100276. 8028554: 2200 movs r2, #0
  100277. 8028556: 601a str r2, [r3, #0]
  100278. FUNC_EXIT_RC(rc);
  100279. return rc;
  100280. 8028558: 697b ldr r3, [r7, #20]
  100281. }
  100282. 802855a: 4618 mov r0, r3
  100283. 802855c: 3718 adds r7, #24
  100284. 802855e: 46bd mov sp, r7
  100285. 8028560: bd80 pop {r7, pc}
  100286. 08028562 <MQTTstrlen>:
  100287. * Return the length of the MQTTstring - C string if there is one, otherwise the length delimited string
  100288. * @param mqttstring the string to return the length of
  100289. * @return the length of the string
  100290. */
  100291. int MQTTstrlen(MQTTString mqttstring)
  100292. {
  100293. 8028562: b580 push {r7, lr}
  100294. 8028564: b086 sub sp, #24
  100295. 8028566: af00 add r7, sp, #0
  100296. 8028568: 1d3b adds r3, r7, #4
  100297. 802856a: e883 0007 stmia.w r3, {r0, r1, r2}
  100298. int rc = 0;
  100299. 802856e: 2300 movs r3, #0
  100300. 8028570: 617b str r3, [r7, #20]
  100301. if (mqttstring.cstring)
  100302. 8028572: 687b ldr r3, [r7, #4]
  100303. 8028574: 2b00 cmp r3, #0
  100304. 8028576: d006 beq.n 8028586 <MQTTstrlen+0x24>
  100305. rc = strlen(mqttstring.cstring);
  100306. 8028578: 687b ldr r3, [r7, #4]
  100307. 802857a: 4618 mov r0, r3
  100308. 802857c: f7d7 ff10 bl 80003a0 <strlen>
  100309. 8028580: 4603 mov r3, r0
  100310. 8028582: 617b str r3, [r7, #20]
  100311. 8028584: e001 b.n 802858a <MQTTstrlen+0x28>
  100312. else
  100313. rc = mqttstring.lenstring.len;
  100314. 8028586: 68bb ldr r3, [r7, #8]
  100315. 8028588: 617b str r3, [r7, #20]
  100316. return rc;
  100317. 802858a: 697b ldr r3, [r7, #20]
  100318. }
  100319. 802858c: 4618 mov r0, r3
  100320. 802858e: 3718 adds r7, #24
  100321. 8028590: 46bd mov sp, r7
  100322. 8028592: bd80 pop {r7, pc}
  100323. 08028594 <MQTTPacket_equals>:
  100324. * @param a the MQTTString to compare
  100325. * @param bptr the C string to compare
  100326. * @return boolean - equal or not
  100327. */
  100328. int MQTTPacket_equals(MQTTString* a, char* bptr)
  100329. {
  100330. 8028594: b580 push {r7, lr}
  100331. 8028596: b086 sub sp, #24
  100332. 8028598: af00 add r7, sp, #0
  100333. 802859a: 6078 str r0, [r7, #4]
  100334. 802859c: 6039 str r1, [r7, #0]
  100335. int alen = 0,
  100336. 802859e: 2300 movs r3, #0
  100337. 80285a0: 617b str r3, [r7, #20]
  100338. blen = 0;
  100339. 80285a2: 2300 movs r3, #0
  100340. 80285a4: 60fb str r3, [r7, #12]
  100341. char *aptr;
  100342. if (a->cstring)
  100343. 80285a6: 687b ldr r3, [r7, #4]
  100344. 80285a8: 681b ldr r3, [r3, #0]
  100345. 80285aa: 2b00 cmp r3, #0
  100346. 80285ac: d00a beq.n 80285c4 <MQTTPacket_equals+0x30>
  100347. {
  100348. aptr = a->cstring;
  100349. 80285ae: 687b ldr r3, [r7, #4]
  100350. 80285b0: 681b ldr r3, [r3, #0]
  100351. 80285b2: 613b str r3, [r7, #16]
  100352. alen = strlen(a->cstring);
  100353. 80285b4: 687b ldr r3, [r7, #4]
  100354. 80285b6: 681b ldr r3, [r3, #0]
  100355. 80285b8: 4618 mov r0, r3
  100356. 80285ba: f7d7 fef1 bl 80003a0 <strlen>
  100357. 80285be: 4603 mov r3, r0
  100358. 80285c0: 617b str r3, [r7, #20]
  100359. 80285c2: e005 b.n 80285d0 <MQTTPacket_equals+0x3c>
  100360. }
  100361. else
  100362. {
  100363. aptr = a->lenstring.data;
  100364. 80285c4: 687b ldr r3, [r7, #4]
  100365. 80285c6: 689b ldr r3, [r3, #8]
  100366. 80285c8: 613b str r3, [r7, #16]
  100367. alen = a->lenstring.len;
  100368. 80285ca: 687b ldr r3, [r7, #4]
  100369. 80285cc: 685b ldr r3, [r3, #4]
  100370. 80285ce: 617b str r3, [r7, #20]
  100371. }
  100372. blen = strlen(bptr);
  100373. 80285d0: 6838 ldr r0, [r7, #0]
  100374. 80285d2: f7d7 fee5 bl 80003a0 <strlen>
  100375. 80285d6: 4603 mov r3, r0
  100376. 80285d8: 60fb str r3, [r7, #12]
  100377. return (alen == blen) && (strncmp(aptr, bptr, alen) == 0);
  100378. 80285da: 697a ldr r2, [r7, #20]
  100379. 80285dc: 68fb ldr r3, [r7, #12]
  100380. 80285de: 429a cmp r2, r3
  100381. 80285e0: d10a bne.n 80285f8 <MQTTPacket_equals+0x64>
  100382. 80285e2: 697b ldr r3, [r7, #20]
  100383. 80285e4: 461a mov r2, r3
  100384. 80285e6: 6839 ldr r1, [r7, #0]
  100385. 80285e8: 6938 ldr r0, [r7, #16]
  100386. 80285ea: f001 ff81 bl 802a4f0 <strncmp>
  100387. 80285ee: 4603 mov r3, r0
  100388. 80285f0: 2b00 cmp r3, #0
  100389. 80285f2: d101 bne.n 80285f8 <MQTTPacket_equals+0x64>
  100390. 80285f4: 2301 movs r3, #1
  100391. 80285f6: e000 b.n 80285fa <MQTTPacket_equals+0x66>
  100392. 80285f8: 2300 movs r3, #0
  100393. }
  100394. 80285fa: 4618 mov r0, r3
  100395. 80285fc: 3718 adds r7, #24
  100396. 80285fe: 46bd mov sp, r7
  100397. 8028600: bd80 pop {r7, pc}
  100398. 08028602 <MQTTSerialize_publishLength>:
  100399. * @param topicName the topic name to be used in the publish
  100400. * @param payloadlen the length of the payload to be sent
  100401. * @return the length of buffer needed to contain the serialized version of the packet
  100402. */
  100403. int MQTTSerialize_publishLength(int qos, MQTTString topicName, int payloadlen)
  100404. {
  100405. 8028602: b580 push {r7, lr}
  100406. 8028604: b086 sub sp, #24
  100407. 8028606: af00 add r7, sp, #0
  100408. 8028608: 60f8 str r0, [r7, #12]
  100409. 802860a: 4638 mov r0, r7
  100410. 802860c: e880 000e stmia.w r0, {r1, r2, r3}
  100411. int len = 0;
  100412. 8028610: 2300 movs r3, #0
  100413. 8028612: 617b str r3, [r7, #20]
  100414. len += 2 + MQTTstrlen(topicName) + payloadlen;
  100415. 8028614: 463b mov r3, r7
  100416. 8028616: e893 0007 ldmia.w r3, {r0, r1, r2}
  100417. 802861a: f7ff ffa2 bl 8028562 <MQTTstrlen>
  100418. 802861e: 4603 mov r3, r0
  100419. 8028620: 1c9a adds r2, r3, #2
  100420. 8028622: 6a3b ldr r3, [r7, #32]
  100421. 8028624: 4413 add r3, r2
  100422. 8028626: 697a ldr r2, [r7, #20]
  100423. 8028628: 4413 add r3, r2
  100424. 802862a: 617b str r3, [r7, #20]
  100425. if (qos > 0)
  100426. 802862c: 68fb ldr r3, [r7, #12]
  100427. 802862e: 2b00 cmp r3, #0
  100428. 8028630: dd02 ble.n 8028638 <MQTTSerialize_publishLength+0x36>
  100429. len += 2; /* packetid */
  100430. 8028632: 697b ldr r3, [r7, #20]
  100431. 8028634: 3302 adds r3, #2
  100432. 8028636: 617b str r3, [r7, #20]
  100433. return len;
  100434. 8028638: 697b ldr r3, [r7, #20]
  100435. }
  100436. 802863a: 4618 mov r0, r3
  100437. 802863c: 3718 adds r7, #24
  100438. 802863e: 46bd mov sp, r7
  100439. 8028640: bd80 pop {r7, pc}
  100440. 08028642 <MQTTSerialize_publish>:
  100441. * @param payloadlen integer - the length of the MQTT payload
  100442. * @return the length of the serialized data. <= 0 indicates error
  100443. */
  100444. int MQTTSerialize_publish(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid,
  100445. MQTTString topicName, unsigned char* payload, int payloadlen)
  100446. {
  100447. 8028642: b580 push {r7, lr}
  100448. 8028644: b08a sub sp, #40 @ 0x28
  100449. 8028646: af02 add r7, sp, #8
  100450. 8028648: 60f8 str r0, [r7, #12]
  100451. 802864a: 60b9 str r1, [r7, #8]
  100452. 802864c: 603b str r3, [r7, #0]
  100453. 802864e: 4613 mov r3, r2
  100454. 8028650: 71fb strb r3, [r7, #7]
  100455. unsigned char *ptr = buf;
  100456. 8028652: 68fb ldr r3, [r7, #12]
  100457. 8028654: 617b str r3, [r7, #20]
  100458. MQTTHeader header = {0};
  100459. 8028656: 2300 movs r3, #0
  100460. 8028658: 613b str r3, [r7, #16]
  100461. int rem_len = 0;
  100462. 802865a: 2300 movs r3, #0
  100463. 802865c: 61bb str r3, [r7, #24]
  100464. int rc = 0;
  100465. 802865e: 2300 movs r3, #0
  100466. 8028660: 61fb str r3, [r7, #28]
  100467. FUNC_ENTRY;
  100468. if (MQTTPacket_len(rem_len = MQTTSerialize_publishLength(qos, topicName, payloadlen)) > buflen)
  100469. 8028662: 6c3b ldr r3, [r7, #64] @ 0x40
  100470. 8028664: 9300 str r3, [sp, #0]
  100471. 8028666: f107 0330 add.w r3, r7, #48 @ 0x30
  100472. 802866a: cb0e ldmia r3, {r1, r2, r3}
  100473. 802866c: 6838 ldr r0, [r7, #0]
  100474. 802866e: f7ff ffc8 bl 8028602 <MQTTSerialize_publishLength>
  100475. 8028672: 61b8 str r0, [r7, #24]
  100476. 8028674: 69b8 ldr r0, [r7, #24]
  100477. 8028676: f7ff fe29 bl 80282cc <MQTTPacket_len>
  100478. 802867a: 4602 mov r2, r0
  100479. 802867c: 68bb ldr r3, [r7, #8]
  100480. 802867e: 4293 cmp r3, r2
  100481. 8028680: da03 bge.n 802868a <MQTTSerialize_publish+0x48>
  100482. {
  100483. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  100484. 8028682: f06f 0301 mvn.w r3, #1
  100485. 8028686: 61fb str r3, [r7, #28]
  100486. goto exit;
  100487. 8028688: e04c b.n 8028724 <MQTTSerialize_publish+0xe2>
  100488. }
  100489. header.bits.type = PUBLISH;
  100490. 802868a: 7c3b ldrb r3, [r7, #16]
  100491. 802868c: 2203 movs r2, #3
  100492. 802868e: f362 1307 bfi r3, r2, #4, #4
  100493. 8028692: 743b strb r3, [r7, #16]
  100494. header.bits.dup = dup;
  100495. 8028694: 79fb ldrb r3, [r7, #7]
  100496. 8028696: f003 0301 and.w r3, r3, #1
  100497. 802869a: b2da uxtb r2, r3
  100498. 802869c: 7c3b ldrb r3, [r7, #16]
  100499. 802869e: f362 03c3 bfi r3, r2, #3, #1
  100500. 80286a2: 743b strb r3, [r7, #16]
  100501. header.bits.qos = qos;
  100502. 80286a4: 683b ldr r3, [r7, #0]
  100503. 80286a6: f003 0303 and.w r3, r3, #3
  100504. 80286aa: b2da uxtb r2, r3
  100505. 80286ac: 7c3b ldrb r3, [r7, #16]
  100506. 80286ae: f362 0342 bfi r3, r2, #1, #2
  100507. 80286b2: 743b strb r3, [r7, #16]
  100508. header.bits.retain = retained;
  100509. 80286b4: f897 3028 ldrb.w r3, [r7, #40] @ 0x28
  100510. 80286b8: f003 0301 and.w r3, r3, #1
  100511. 80286bc: b2da uxtb r2, r3
  100512. 80286be: 7c3b ldrb r3, [r7, #16]
  100513. 80286c0: f362 0300 bfi r3, r2, #0, #1
  100514. 80286c4: 743b strb r3, [r7, #16]
  100515. writeChar(&ptr, header.byte); /* write header */
  100516. 80286c6: 7c3a ldrb r2, [r7, #16]
  100517. 80286c8: f107 0314 add.w r3, r7, #20
  100518. 80286cc: 4611 mov r1, r2
  100519. 80286ce: 4618 mov r0, r3
  100520. 80286d0: f7ff fe8b bl 80283ea <writeChar>
  100521. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  100522. 80286d4: 697b ldr r3, [r7, #20]
  100523. 80286d6: 69b9 ldr r1, [r7, #24]
  100524. 80286d8: 4618 mov r0, r3
  100525. 80286da: f7ff fd8c bl 80281f6 <MQTTPacket_encode>
  100526. 80286de: 4602 mov r2, r0
  100527. 80286e0: 697b ldr r3, [r7, #20]
  100528. 80286e2: 4413 add r3, r2
  100529. 80286e4: 617b str r3, [r7, #20]
  100530. writeMQTTString(&ptr, topicName);
  100531. 80286e6: f107 0014 add.w r0, r7, #20
  100532. 80286ea: f107 0330 add.w r3, r7, #48 @ 0x30
  100533. 80286ee: cb0e ldmia r3, {r1, r2, r3}
  100534. 80286f0: f7ff fed8 bl 80284a4 <writeMQTTString>
  100535. if (qos > 0)
  100536. 80286f4: 683b ldr r3, [r7, #0]
  100537. 80286f6: 2b00 cmp r3, #0
  100538. 80286f8: dd06 ble.n 8028708 <MQTTSerialize_publish+0xc6>
  100539. writeInt(&ptr, packetid);
  100540. 80286fa: 8dba ldrh r2, [r7, #44] @ 0x2c
  100541. 80286fc: f107 0314 add.w r3, r7, #20
  100542. 8028700: 4611 mov r1, r2
  100543. 8028702: 4618 mov r0, r3
  100544. 8028704: f7ff fe86 bl 8028414 <writeInt>
  100545. memcpy(ptr, payload, payloadlen);
  100546. 8028708: 697b ldr r3, [r7, #20]
  100547. 802870a: 6c3a ldr r2, [r7, #64] @ 0x40
  100548. 802870c: 6bf9 ldr r1, [r7, #60] @ 0x3c
  100549. 802870e: 4618 mov r0, r3
  100550. 8028710: f001 ffdd bl 802a6ce <memcpy>
  100551. ptr += payloadlen;
  100552. 8028714: 697a ldr r2, [r7, #20]
  100553. 8028716: 6c3b ldr r3, [r7, #64] @ 0x40
  100554. 8028718: 4413 add r3, r2
  100555. 802871a: 617b str r3, [r7, #20]
  100556. rc = ptr - buf;
  100557. 802871c: 697a ldr r2, [r7, #20]
  100558. 802871e: 68fb ldr r3, [r7, #12]
  100559. 8028720: 1ad3 subs r3, r2, r3
  100560. 8028722: 61fb str r3, [r7, #28]
  100561. exit:
  100562. FUNC_EXIT_RC(rc);
  100563. return rc;
  100564. 8028724: 69fb ldr r3, [r7, #28]
  100565. }
  100566. 8028726: 4618 mov r0, r3
  100567. 8028728: 3720 adds r7, #32
  100568. 802872a: 46bd mov sp, r7
  100569. 802872c: bd80 pop {r7, pc}
  100570. 0802872e <MQTTSerialize_ack>:
  100571. * @param dup the MQTT dup flag
  100572. * @param packetid the MQTT packet identifier
  100573. * @return serialized length, or error if 0
  100574. */
  100575. int MQTTSerialize_ack(unsigned char* buf, int buflen, unsigned char packettype, unsigned char dup, unsigned short packetid)
  100576. {
  100577. 802872e: b580 push {r7, lr}
  100578. 8028730: b088 sub sp, #32
  100579. 8028732: af00 add r7, sp, #0
  100580. 8028734: 60f8 str r0, [r7, #12]
  100581. 8028736: 60b9 str r1, [r7, #8]
  100582. 8028738: 4611 mov r1, r2
  100583. 802873a: 461a mov r2, r3
  100584. 802873c: 460b mov r3, r1
  100585. 802873e: 71fb strb r3, [r7, #7]
  100586. 8028740: 4613 mov r3, r2
  100587. 8028742: 71bb strb r3, [r7, #6]
  100588. MQTTHeader header = {0};
  100589. 8028744: 2300 movs r3, #0
  100590. 8028746: 61bb str r3, [r7, #24]
  100591. int rc = 0;
  100592. 8028748: 2300 movs r3, #0
  100593. 802874a: 61fb str r3, [r7, #28]
  100594. unsigned char *ptr = buf;
  100595. 802874c: 68fb ldr r3, [r7, #12]
  100596. 802874e: 617b str r3, [r7, #20]
  100597. FUNC_ENTRY;
  100598. if (buflen < 4)
  100599. 8028750: 68bb ldr r3, [r7, #8]
  100600. 8028752: 2b03 cmp r3, #3
  100601. 8028754: dc03 bgt.n 802875e <MQTTSerialize_ack+0x30>
  100602. {
  100603. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  100604. 8028756: f06f 0301 mvn.w r3, #1
  100605. 802875a: 61fb str r3, [r7, #28]
  100606. goto exit;
  100607. 802875c: e037 b.n 80287ce <MQTTSerialize_ack+0xa0>
  100608. }
  100609. header.bits.type = packettype;
  100610. 802875e: 79fb ldrb r3, [r7, #7]
  100611. 8028760: f003 030f and.w r3, r3, #15
  100612. 8028764: b2da uxtb r2, r3
  100613. 8028766: 7e3b ldrb r3, [r7, #24]
  100614. 8028768: f362 1307 bfi r3, r2, #4, #4
  100615. 802876c: 763b strb r3, [r7, #24]
  100616. header.bits.dup = dup;
  100617. 802876e: 79bb ldrb r3, [r7, #6]
  100618. 8028770: f003 0301 and.w r3, r3, #1
  100619. 8028774: b2da uxtb r2, r3
  100620. 8028776: 7e3b ldrb r3, [r7, #24]
  100621. 8028778: f362 03c3 bfi r3, r2, #3, #1
  100622. 802877c: 763b strb r3, [r7, #24]
  100623. header.bits.qos = (packettype == PUBREL) ? 1 : 0;
  100624. 802877e: 79fb ldrb r3, [r7, #7]
  100625. 8028780: 2b06 cmp r3, #6
  100626. 8028782: bf0c ite eq
  100627. 8028784: 2301 moveq r3, #1
  100628. 8028786: 2300 movne r3, #0
  100629. 8028788: b2db uxtb r3, r3
  100630. 802878a: f003 0303 and.w r3, r3, #3
  100631. 802878e: b2da uxtb r2, r3
  100632. 8028790: 7e3b ldrb r3, [r7, #24]
  100633. 8028792: f362 0342 bfi r3, r2, #1, #2
  100634. 8028796: 763b strb r3, [r7, #24]
  100635. writeChar(&ptr, header.byte); /* write header */
  100636. 8028798: 7e3a ldrb r2, [r7, #24]
  100637. 802879a: f107 0314 add.w r3, r7, #20
  100638. 802879e: 4611 mov r1, r2
  100639. 80287a0: 4618 mov r0, r3
  100640. 80287a2: f7ff fe22 bl 80283ea <writeChar>
  100641. ptr += MQTTPacket_encode(ptr, 2); /* write remaining length */
  100642. 80287a6: 697b ldr r3, [r7, #20]
  100643. 80287a8: 2102 movs r1, #2
  100644. 80287aa: 4618 mov r0, r3
  100645. 80287ac: f7ff fd23 bl 80281f6 <MQTTPacket_encode>
  100646. 80287b0: 4602 mov r2, r0
  100647. 80287b2: 697b ldr r3, [r7, #20]
  100648. 80287b4: 4413 add r3, r2
  100649. 80287b6: 617b str r3, [r7, #20]
  100650. writeInt(&ptr, packetid);
  100651. 80287b8: 8d3a ldrh r2, [r7, #40] @ 0x28
  100652. 80287ba: f107 0314 add.w r3, r7, #20
  100653. 80287be: 4611 mov r1, r2
  100654. 80287c0: 4618 mov r0, r3
  100655. 80287c2: f7ff fe27 bl 8028414 <writeInt>
  100656. rc = ptr - buf;
  100657. 80287c6: 697a ldr r2, [r7, #20]
  100658. 80287c8: 68fb ldr r3, [r7, #12]
  100659. 80287ca: 1ad3 subs r3, r2, r3
  100660. 80287cc: 61fb str r3, [r7, #28]
  100661. exit:
  100662. FUNC_EXIT_RC(rc);
  100663. return rc;
  100664. 80287ce: 69fb ldr r3, [r7, #28]
  100665. }
  100666. 80287d0: 4618 mov r0, r3
  100667. 80287d2: 3720 adds r7, #32
  100668. 80287d4: 46bd mov sp, r7
  100669. 80287d6: bd80 pop {r7, pc}
  100670. 080287d8 <MQTTSerialize_subscribeLength>:
  100671. * @param count the number of topic filter strings in topicFilters
  100672. * @param topicFilters the array of topic filter strings to be used in the publish
  100673. * @return the length of buffer needed to contain the serialized version of the packet
  100674. */
  100675. int MQTTSerialize_subscribeLength(int count, MQTTString topicFilters[])
  100676. {
  100677. 80287d8: b580 push {r7, lr}
  100678. 80287da: b084 sub sp, #16
  100679. 80287dc: af00 add r7, sp, #0
  100680. 80287de: 6078 str r0, [r7, #4]
  100681. 80287e0: 6039 str r1, [r7, #0]
  100682. int i;
  100683. int len = 2; /* packetid */
  100684. 80287e2: 2302 movs r3, #2
  100685. 80287e4: 60bb str r3, [r7, #8]
  100686. for (i = 0; i < count; ++i)
  100687. 80287e6: 2300 movs r3, #0
  100688. 80287e8: 60fb str r3, [r7, #12]
  100689. 80287ea: e013 b.n 8028814 <MQTTSerialize_subscribeLength+0x3c>
  100690. len += 2 + MQTTstrlen(topicFilters[i]) + 1; /* length + topic + req_qos */
  100691. 80287ec: 68fa ldr r2, [r7, #12]
  100692. 80287ee: 4613 mov r3, r2
  100693. 80287f0: 005b lsls r3, r3, #1
  100694. 80287f2: 4413 add r3, r2
  100695. 80287f4: 009b lsls r3, r3, #2
  100696. 80287f6: 461a mov r2, r3
  100697. 80287f8: 683b ldr r3, [r7, #0]
  100698. 80287fa: 4413 add r3, r2
  100699. 80287fc: e893 0007 ldmia.w r3, {r0, r1, r2}
  100700. 8028800: f7ff feaf bl 8028562 <MQTTstrlen>
  100701. 8028804: 4603 mov r3, r0
  100702. 8028806: 3303 adds r3, #3
  100703. 8028808: 68ba ldr r2, [r7, #8]
  100704. 802880a: 4413 add r3, r2
  100705. 802880c: 60bb str r3, [r7, #8]
  100706. for (i = 0; i < count; ++i)
  100707. 802880e: 68fb ldr r3, [r7, #12]
  100708. 8028810: 3301 adds r3, #1
  100709. 8028812: 60fb str r3, [r7, #12]
  100710. 8028814: 68fa ldr r2, [r7, #12]
  100711. 8028816: 687b ldr r3, [r7, #4]
  100712. 8028818: 429a cmp r2, r3
  100713. 802881a: dbe7 blt.n 80287ec <MQTTSerialize_subscribeLength+0x14>
  100714. return len;
  100715. 802881c: 68bb ldr r3, [r7, #8]
  100716. }
  100717. 802881e: 4618 mov r0, r3
  100718. 8028820: 3710 adds r7, #16
  100719. 8028822: 46bd mov sp, r7
  100720. 8028824: bd80 pop {r7, pc}
  100721. 08028826 <MQTTSerialize_subscribe>:
  100722. * @param requestedQoSs - array of requested QoS
  100723. * @return the length of the serialized data. <= 0 indicates error
  100724. */
  100725. int MQTTSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, int count,
  100726. MQTTString topicFilters[], int requestedQoSs[])
  100727. {
  100728. 8028826: b580 push {r7, lr}
  100729. 8028828: b08a sub sp, #40 @ 0x28
  100730. 802882a: af00 add r7, sp, #0
  100731. 802882c: 60f8 str r0, [r7, #12]
  100732. 802882e: 60b9 str r1, [r7, #8]
  100733. 8028830: 4611 mov r1, r2
  100734. 8028832: 461a mov r2, r3
  100735. 8028834: 460b mov r3, r1
  100736. 8028836: 71fb strb r3, [r7, #7]
  100737. 8028838: 4613 mov r3, r2
  100738. 802883a: 80bb strh r3, [r7, #4]
  100739. unsigned char *ptr = buf;
  100740. 802883c: 68fb ldr r3, [r7, #12]
  100741. 802883e: 61bb str r3, [r7, #24]
  100742. MQTTHeader header = {0};
  100743. 8028840: 2300 movs r3, #0
  100744. 8028842: 617b str r3, [r7, #20]
  100745. int rem_len = 0;
  100746. 8028844: 2300 movs r3, #0
  100747. 8028846: 61fb str r3, [r7, #28]
  100748. int rc = 0;
  100749. 8028848: 2300 movs r3, #0
  100750. 802884a: 627b str r3, [r7, #36] @ 0x24
  100751. int i = 0;
  100752. 802884c: 2300 movs r3, #0
  100753. 802884e: 623b str r3, [r7, #32]
  100754. FUNC_ENTRY;
  100755. if (MQTTPacket_len(rem_len = MQTTSerialize_subscribeLength(count, topicFilters)) > buflen)
  100756. 8028850: 6b79 ldr r1, [r7, #52] @ 0x34
  100757. 8028852: 6b38 ldr r0, [r7, #48] @ 0x30
  100758. 8028854: f7ff ffc0 bl 80287d8 <MQTTSerialize_subscribeLength>
  100759. 8028858: 61f8 str r0, [r7, #28]
  100760. 802885a: 69f8 ldr r0, [r7, #28]
  100761. 802885c: f7ff fd36 bl 80282cc <MQTTPacket_len>
  100762. 8028860: 4602 mov r2, r0
  100763. 8028862: 68bb ldr r3, [r7, #8]
  100764. 8028864: 4293 cmp r3, r2
  100765. 8028866: da03 bge.n 8028870 <MQTTSerialize_subscribe+0x4a>
  100766. {
  100767. rc = MQTTPACKET_BUFFER_TOO_SHORT;
  100768. 8028868: f06f 0301 mvn.w r3, #1
  100769. 802886c: 627b str r3, [r7, #36] @ 0x24
  100770. goto exit;
  100771. 802886e: e051 b.n 8028914 <MQTTSerialize_subscribe+0xee>
  100772. }
  100773. header.byte = 0;
  100774. 8028870: 2300 movs r3, #0
  100775. 8028872: 753b strb r3, [r7, #20]
  100776. header.bits.type = SUBSCRIBE;
  100777. 8028874: 7d3b ldrb r3, [r7, #20]
  100778. 8028876: 2208 movs r2, #8
  100779. 8028878: f362 1307 bfi r3, r2, #4, #4
  100780. 802887c: 753b strb r3, [r7, #20]
  100781. header.bits.dup = dup;
  100782. 802887e: 79fb ldrb r3, [r7, #7]
  100783. 8028880: f003 0301 and.w r3, r3, #1
  100784. 8028884: b2da uxtb r2, r3
  100785. 8028886: 7d3b ldrb r3, [r7, #20]
  100786. 8028888: f362 03c3 bfi r3, r2, #3, #1
  100787. 802888c: 753b strb r3, [r7, #20]
  100788. header.bits.qos = 1;
  100789. 802888e: 7d3b ldrb r3, [r7, #20]
  100790. 8028890: 2201 movs r2, #1
  100791. 8028892: f362 0342 bfi r3, r2, #1, #2
  100792. 8028896: 753b strb r3, [r7, #20]
  100793. writeChar(&ptr, header.byte); /* write header */
  100794. 8028898: 7d3a ldrb r2, [r7, #20]
  100795. 802889a: f107 0318 add.w r3, r7, #24
  100796. 802889e: 4611 mov r1, r2
  100797. 80288a0: 4618 mov r0, r3
  100798. 80288a2: f7ff fda2 bl 80283ea <writeChar>
  100799. ptr += MQTTPacket_encode(ptr, rem_len); /* write remaining length */;
  100800. 80288a6: 69bb ldr r3, [r7, #24]
  100801. 80288a8: 69f9 ldr r1, [r7, #28]
  100802. 80288aa: 4618 mov r0, r3
  100803. 80288ac: f7ff fca3 bl 80281f6 <MQTTPacket_encode>
  100804. 80288b0: 4602 mov r2, r0
  100805. 80288b2: 69bb ldr r3, [r7, #24]
  100806. 80288b4: 4413 add r3, r2
  100807. 80288b6: 61bb str r3, [r7, #24]
  100808. writeInt(&ptr, packetid);
  100809. 80288b8: 88ba ldrh r2, [r7, #4]
  100810. 80288ba: f107 0318 add.w r3, r7, #24
  100811. 80288be: 4611 mov r1, r2
  100812. 80288c0: 4618 mov r0, r3
  100813. 80288c2: f7ff fda7 bl 8028414 <writeInt>
  100814. for (i = 0; i < count; ++i)
  100815. 80288c6: 2300 movs r3, #0
  100816. 80288c8: 623b str r3, [r7, #32]
  100817. 80288ca: e01b b.n 8028904 <MQTTSerialize_subscribe+0xde>
  100818. {
  100819. writeMQTTString(&ptr, topicFilters[i]);
  100820. 80288cc: 6a3a ldr r2, [r7, #32]
  100821. 80288ce: 4613 mov r3, r2
  100822. 80288d0: 005b lsls r3, r3, #1
  100823. 80288d2: 4413 add r3, r2
  100824. 80288d4: 009b lsls r3, r3, #2
  100825. 80288d6: 461a mov r2, r3
  100826. 80288d8: 6b7b ldr r3, [r7, #52] @ 0x34
  100827. 80288da: 4413 add r3, r2
  100828. 80288dc: f107 0018 add.w r0, r7, #24
  100829. 80288e0: cb0e ldmia r3, {r1, r2, r3}
  100830. 80288e2: f7ff fddf bl 80284a4 <writeMQTTString>
  100831. writeChar(&ptr, requestedQoSs[i]);
  100832. 80288e6: 6a3b ldr r3, [r7, #32]
  100833. 80288e8: 009b lsls r3, r3, #2
  100834. 80288ea: 6bba ldr r2, [r7, #56] @ 0x38
  100835. 80288ec: 4413 add r3, r2
  100836. 80288ee: 681b ldr r3, [r3, #0]
  100837. 80288f0: b2da uxtb r2, r3
  100838. 80288f2: f107 0318 add.w r3, r7, #24
  100839. 80288f6: 4611 mov r1, r2
  100840. 80288f8: 4618 mov r0, r3
  100841. 80288fa: f7ff fd76 bl 80283ea <writeChar>
  100842. for (i = 0; i < count; ++i)
  100843. 80288fe: 6a3b ldr r3, [r7, #32]
  100844. 8028900: 3301 adds r3, #1
  100845. 8028902: 623b str r3, [r7, #32]
  100846. 8028904: 6a3a ldr r2, [r7, #32]
  100847. 8028906: 6b3b ldr r3, [r7, #48] @ 0x30
  100848. 8028908: 429a cmp r2, r3
  100849. 802890a: dbdf blt.n 80288cc <MQTTSerialize_subscribe+0xa6>
  100850. }
  100851. rc = ptr - buf;
  100852. 802890c: 69ba ldr r2, [r7, #24]
  100853. 802890e: 68fb ldr r3, [r7, #12]
  100854. 8028910: 1ad3 subs r3, r2, r3
  100855. 8028912: 627b str r3, [r7, #36] @ 0x24
  100856. exit:
  100857. FUNC_EXIT_RC(rc);
  100858. return rc;
  100859. 8028914: 6a7b ldr r3, [r7, #36] @ 0x24
  100860. }
  100861. 8028916: 4618 mov r0, r3
  100862. 8028918: 3728 adds r7, #40 @ 0x28
  100863. 802891a: 46bd mov sp, r7
  100864. 802891c: bd80 pop {r7, pc}
  100865. 0802891e <MQTTDeserialize_suback>:
  100866. * @param buf the raw buffer data, of the correct length determined by the remaining length field
  100867. * @param buflen the length in bytes of the data in the supplied buffer
  100868. * @return error code. 1 is success, 0 is failure
  100869. */
  100870. int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, int buflen)
  100871. {
  100872. 802891e: b580 push {r7, lr}
  100873. 8028920: b08a sub sp, #40 @ 0x28
  100874. 8028922: af00 add r7, sp, #0
  100875. 8028924: 60f8 str r0, [r7, #12]
  100876. 8028926: 60b9 str r1, [r7, #8]
  100877. 8028928: 607a str r2, [r7, #4]
  100878. 802892a: 603b str r3, [r7, #0]
  100879. MQTTHeader header = {0};
  100880. 802892c: 2300 movs r3, #0
  100881. 802892e: 61fb str r3, [r7, #28]
  100882. unsigned char* curdata = buf;
  100883. 8028930: 6b3b ldr r3, [r7, #48] @ 0x30
  100884. 8028932: 61bb str r3, [r7, #24]
  100885. unsigned char* enddata = NULL;
  100886. 8028934: 2300 movs r3, #0
  100887. 8028936: 623b str r3, [r7, #32]
  100888. int rc = 0;
  100889. 8028938: 2300 movs r3, #0
  100890. 802893a: 627b str r3, [r7, #36] @ 0x24
  100891. int mylen;
  100892. FUNC_ENTRY;
  100893. header.byte = readChar(&curdata);
  100894. 802893c: f107 0318 add.w r3, r7, #24
  100895. 8028940: 4618 mov r0, r3
  100896. 8028942: f7ff fd3e bl 80283c2 <readChar>
  100897. 8028946: 4603 mov r3, r0
  100898. 8028948: 773b strb r3, [r7, #28]
  100899. if (header.bits.type != SUBACK)
  100900. 802894a: 7f3b ldrb r3, [r7, #28]
  100901. 802894c: f023 030f bic.w r3, r3, #15
  100902. 8028950: b2db uxtb r3, r3
  100903. 8028952: 2b90 cmp r3, #144 @ 0x90
  100904. 8028954: d142 bne.n 80289dc <MQTTDeserialize_suback+0xbe>
  100905. goto exit;
  100906. curdata += (rc = MQTTPacket_decodeBuf(curdata, &mylen)); /* read remaining length */
  100907. 8028956: 69bb ldr r3, [r7, #24]
  100908. 8028958: f107 0214 add.w r2, r7, #20
  100909. 802895c: 4611 mov r1, r2
  100910. 802895e: 4618 mov r0, r3
  100911. 8028960: f7ff fcfe bl 8028360 <MQTTPacket_decodeBuf>
  100912. 8028964: 6278 str r0, [r7, #36] @ 0x24
  100913. 8028966: 6a7a ldr r2, [r7, #36] @ 0x24
  100914. 8028968: 69bb ldr r3, [r7, #24]
  100915. 802896a: 4413 add r3, r2
  100916. 802896c: 61bb str r3, [r7, #24]
  100917. enddata = curdata + mylen;
  100918. 802896e: 69bb ldr r3, [r7, #24]
  100919. 8028970: 697a ldr r2, [r7, #20]
  100920. 8028972: 4413 add r3, r2
  100921. 8028974: 623b str r3, [r7, #32]
  100922. if (enddata - curdata < 2)
  100923. 8028976: 69bb ldr r3, [r7, #24]
  100924. 8028978: 6a3a ldr r2, [r7, #32]
  100925. 802897a: 1ad3 subs r3, r2, r3
  100926. 802897c: 2b01 cmp r3, #1
  100927. 802897e: dd2f ble.n 80289e0 <MQTTDeserialize_suback+0xc2>
  100928. goto exit;
  100929. *packetid = readInt(&curdata);
  100930. 8028980: f107 0318 add.w r3, r7, #24
  100931. 8028984: 4618 mov r0, r3
  100932. 8028986: f7ff fd01 bl 802838c <readInt>
  100933. 802898a: 4603 mov r3, r0
  100934. 802898c: b29a uxth r2, r3
  100935. 802898e: 68fb ldr r3, [r7, #12]
  100936. 8028990: 801a strh r2, [r3, #0]
  100937. *count = 0;
  100938. 8028992: 687b ldr r3, [r7, #4]
  100939. 8028994: 2200 movs r2, #0
  100940. 8028996: 601a str r2, [r3, #0]
  100941. while (curdata < enddata)
  100942. 8028998: e019 b.n 80289ce <MQTTDeserialize_suback+0xb0>
  100943. {
  100944. if (*count > maxcount)
  100945. 802899a: 687b ldr r3, [r7, #4]
  100946. 802899c: 681b ldr r3, [r3, #0]
  100947. 802899e: 68ba ldr r2, [r7, #8]
  100948. 80289a0: 429a cmp r2, r3
  100949. 80289a2: da03 bge.n 80289ac <MQTTDeserialize_suback+0x8e>
  100950. {
  100951. rc = -1;
  100952. 80289a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  100953. 80289a8: 627b str r3, [r7, #36] @ 0x24
  100954. goto exit;
  100955. 80289aa: e01a b.n 80289e2 <MQTTDeserialize_suback+0xc4>
  100956. }
  100957. grantedQoSs[(*count)++] = readChar(&curdata);
  100958. 80289ac: f107 0318 add.w r3, r7, #24
  100959. 80289b0: 4618 mov r0, r3
  100960. 80289b2: f7ff fd06 bl 80283c2 <readChar>
  100961. 80289b6: 4603 mov r3, r0
  100962. 80289b8: 4618 mov r0, r3
  100963. 80289ba: 687b ldr r3, [r7, #4]
  100964. 80289bc: 681b ldr r3, [r3, #0]
  100965. 80289be: 1c59 adds r1, r3, #1
  100966. 80289c0: 687a ldr r2, [r7, #4]
  100967. 80289c2: 6011 str r1, [r2, #0]
  100968. 80289c4: 009b lsls r3, r3, #2
  100969. 80289c6: 683a ldr r2, [r7, #0]
  100970. 80289c8: 4413 add r3, r2
  100971. 80289ca: 4602 mov r2, r0
  100972. 80289cc: 601a str r2, [r3, #0]
  100973. while (curdata < enddata)
  100974. 80289ce: 69bb ldr r3, [r7, #24]
  100975. 80289d0: 6a3a ldr r2, [r7, #32]
  100976. 80289d2: 429a cmp r2, r3
  100977. 80289d4: d8e1 bhi.n 802899a <MQTTDeserialize_suback+0x7c>
  100978. }
  100979. rc = 1;
  100980. 80289d6: 2301 movs r3, #1
  100981. 80289d8: 627b str r3, [r7, #36] @ 0x24
  100982. 80289da: e002 b.n 80289e2 <MQTTDeserialize_suback+0xc4>
  100983. goto exit;
  100984. 80289dc: bf00 nop
  100985. 80289de: e000 b.n 80289e2 <MQTTDeserialize_suback+0xc4>
  100986. goto exit;
  100987. 80289e0: bf00 nop
  100988. exit:
  100989. FUNC_EXIT_RC(rc);
  100990. return rc;
  100991. 80289e2: 6a7b ldr r3, [r7, #36] @ 0x24
  100992. }
  100993. 80289e4: 4618 mov r0, r3
  100994. 80289e6: 3728 adds r7, #40 @ 0x28
  100995. 80289e8: 46bd mov sp, r7
  100996. 80289ea: bd80 pop {r7, pc}
  100997. 080289ec <malloc>:
  100998. 80289ec: 4b02 ldr r3, [pc, #8] @ (80289f8 <malloc+0xc>)
  100999. 80289ee: 4601 mov r1, r0
  101000. 80289f0: 6818 ldr r0, [r3, #0]
  101001. 80289f2: f000 b82d b.w 8028a50 <_malloc_r>
  101002. 80289f6: bf00 nop
  101003. 80289f8: 240001d4 .word 0x240001d4
  101004. 080289fc <free>:
  101005. 80289fc: 4b02 ldr r3, [pc, #8] @ (8028a08 <free+0xc>)
  101006. 80289fe: 4601 mov r1, r0
  101007. 8028a00: 6818 ldr r0, [r3, #0]
  101008. 8028a02: f002 bc7b b.w 802b2fc <_free_r>
  101009. 8028a06: bf00 nop
  101010. 8028a08: 240001d4 .word 0x240001d4
  101011. 08028a0c <sbrk_aligned>:
  101012. 8028a0c: b570 push {r4, r5, r6, lr}
  101013. 8028a0e: 4e0f ldr r6, [pc, #60] @ (8028a4c <sbrk_aligned+0x40>)
  101014. 8028a10: 460c mov r4, r1
  101015. 8028a12: 6831 ldr r1, [r6, #0]
  101016. 8028a14: 4605 mov r5, r0
  101017. 8028a16: b911 cbnz r1, 8028a1e <sbrk_aligned+0x12>
  101018. 8028a18: f001 fe0a bl 802a630 <_sbrk_r>
  101019. 8028a1c: 6030 str r0, [r6, #0]
  101020. 8028a1e: 4621 mov r1, r4
  101021. 8028a20: 4628 mov r0, r5
  101022. 8028a22: f001 fe05 bl 802a630 <_sbrk_r>
  101023. 8028a26: 1c43 adds r3, r0, #1
  101024. 8028a28: d103 bne.n 8028a32 <sbrk_aligned+0x26>
  101025. 8028a2a: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  101026. 8028a2e: 4620 mov r0, r4
  101027. 8028a30: bd70 pop {r4, r5, r6, pc}
  101028. 8028a32: 1cc4 adds r4, r0, #3
  101029. 8028a34: f024 0403 bic.w r4, r4, #3
  101030. 8028a38: 42a0 cmp r0, r4
  101031. 8028a3a: d0f8 beq.n 8028a2e <sbrk_aligned+0x22>
  101032. 8028a3c: 1a21 subs r1, r4, r0
  101033. 8028a3e: 4628 mov r0, r5
  101034. 8028a40: f001 fdf6 bl 802a630 <_sbrk_r>
  101035. 8028a44: 3001 adds r0, #1
  101036. 8028a46: d1f2 bne.n 8028a2e <sbrk_aligned+0x22>
  101037. 8028a48: e7ef b.n 8028a2a <sbrk_aligned+0x1e>
  101038. 8028a4a: bf00 nop
  101039. 8028a4c: 2402b10c .word 0x2402b10c
  101040. 08028a50 <_malloc_r>:
  101041. 8028a50: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  101042. 8028a54: 1ccd adds r5, r1, #3
  101043. 8028a56: f025 0503 bic.w r5, r5, #3
  101044. 8028a5a: 3508 adds r5, #8
  101045. 8028a5c: 2d0c cmp r5, #12
  101046. 8028a5e: bf38 it cc
  101047. 8028a60: 250c movcc r5, #12
  101048. 8028a62: 2d00 cmp r5, #0
  101049. 8028a64: 4606 mov r6, r0
  101050. 8028a66: db01 blt.n 8028a6c <_malloc_r+0x1c>
  101051. 8028a68: 42a9 cmp r1, r5
  101052. 8028a6a: d904 bls.n 8028a76 <_malloc_r+0x26>
  101053. 8028a6c: 230c movs r3, #12
  101054. 8028a6e: 6033 str r3, [r6, #0]
  101055. 8028a70: 2000 movs r0, #0
  101056. 8028a72: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  101057. 8028a76: f8df 80d4 ldr.w r8, [pc, #212] @ 8028b4c <_malloc_r+0xfc>
  101058. 8028a7a: f000 f869 bl 8028b50 <__malloc_lock>
  101059. 8028a7e: f8d8 3000 ldr.w r3, [r8]
  101060. 8028a82: 461c mov r4, r3
  101061. 8028a84: bb44 cbnz r4, 8028ad8 <_malloc_r+0x88>
  101062. 8028a86: 4629 mov r1, r5
  101063. 8028a88: 4630 mov r0, r6
  101064. 8028a8a: f7ff ffbf bl 8028a0c <sbrk_aligned>
  101065. 8028a8e: 1c43 adds r3, r0, #1
  101066. 8028a90: 4604 mov r4, r0
  101067. 8028a92: d158 bne.n 8028b46 <_malloc_r+0xf6>
  101068. 8028a94: f8d8 4000 ldr.w r4, [r8]
  101069. 8028a98: 4627 mov r7, r4
  101070. 8028a9a: 2f00 cmp r7, #0
  101071. 8028a9c: d143 bne.n 8028b26 <_malloc_r+0xd6>
  101072. 8028a9e: 2c00 cmp r4, #0
  101073. 8028aa0: d04b beq.n 8028b3a <_malloc_r+0xea>
  101074. 8028aa2: 6823 ldr r3, [r4, #0]
  101075. 8028aa4: 4639 mov r1, r7
  101076. 8028aa6: 4630 mov r0, r6
  101077. 8028aa8: eb04 0903 add.w r9, r4, r3
  101078. 8028aac: f001 fdc0 bl 802a630 <_sbrk_r>
  101079. 8028ab0: 4581 cmp r9, r0
  101080. 8028ab2: d142 bne.n 8028b3a <_malloc_r+0xea>
  101081. 8028ab4: 6821 ldr r1, [r4, #0]
  101082. 8028ab6: 1a6d subs r5, r5, r1
  101083. 8028ab8: 4629 mov r1, r5
  101084. 8028aba: 4630 mov r0, r6
  101085. 8028abc: f7ff ffa6 bl 8028a0c <sbrk_aligned>
  101086. 8028ac0: 3001 adds r0, #1
  101087. 8028ac2: d03a beq.n 8028b3a <_malloc_r+0xea>
  101088. 8028ac4: 6823 ldr r3, [r4, #0]
  101089. 8028ac6: 442b add r3, r5
  101090. 8028ac8: 6023 str r3, [r4, #0]
  101091. 8028aca: f8d8 3000 ldr.w r3, [r8]
  101092. 8028ace: 685a ldr r2, [r3, #4]
  101093. 8028ad0: bb62 cbnz r2, 8028b2c <_malloc_r+0xdc>
  101094. 8028ad2: f8c8 7000 str.w r7, [r8]
  101095. 8028ad6: e00f b.n 8028af8 <_malloc_r+0xa8>
  101096. 8028ad8: 6822 ldr r2, [r4, #0]
  101097. 8028ada: 1b52 subs r2, r2, r5
  101098. 8028adc: d420 bmi.n 8028b20 <_malloc_r+0xd0>
  101099. 8028ade: 2a0b cmp r2, #11
  101100. 8028ae0: d917 bls.n 8028b12 <_malloc_r+0xc2>
  101101. 8028ae2: 1961 adds r1, r4, r5
  101102. 8028ae4: 42a3 cmp r3, r4
  101103. 8028ae6: 6025 str r5, [r4, #0]
  101104. 8028ae8: bf18 it ne
  101105. 8028aea: 6059 strne r1, [r3, #4]
  101106. 8028aec: 6863 ldr r3, [r4, #4]
  101107. 8028aee: bf08 it eq
  101108. 8028af0: f8c8 1000 streq.w r1, [r8]
  101109. 8028af4: 5162 str r2, [r4, r5]
  101110. 8028af6: 604b str r3, [r1, #4]
  101111. 8028af8: 4630 mov r0, r6
  101112. 8028afa: f000 f82f bl 8028b5c <__malloc_unlock>
  101113. 8028afe: f104 000b add.w r0, r4, #11
  101114. 8028b02: 1d23 adds r3, r4, #4
  101115. 8028b04: f020 0007 bic.w r0, r0, #7
  101116. 8028b08: 1ac2 subs r2, r0, r3
  101117. 8028b0a: bf1c itt ne
  101118. 8028b0c: 1a1b subne r3, r3, r0
  101119. 8028b0e: 50a3 strne r3, [r4, r2]
  101120. 8028b10: e7af b.n 8028a72 <_malloc_r+0x22>
  101121. 8028b12: 6862 ldr r2, [r4, #4]
  101122. 8028b14: 42a3 cmp r3, r4
  101123. 8028b16: bf0c ite eq
  101124. 8028b18: f8c8 2000 streq.w r2, [r8]
  101125. 8028b1c: 605a strne r2, [r3, #4]
  101126. 8028b1e: e7eb b.n 8028af8 <_malloc_r+0xa8>
  101127. 8028b20: 4623 mov r3, r4
  101128. 8028b22: 6864 ldr r4, [r4, #4]
  101129. 8028b24: e7ae b.n 8028a84 <_malloc_r+0x34>
  101130. 8028b26: 463c mov r4, r7
  101131. 8028b28: 687f ldr r7, [r7, #4]
  101132. 8028b2a: e7b6 b.n 8028a9a <_malloc_r+0x4a>
  101133. 8028b2c: 461a mov r2, r3
  101134. 8028b2e: 685b ldr r3, [r3, #4]
  101135. 8028b30: 42a3 cmp r3, r4
  101136. 8028b32: d1fb bne.n 8028b2c <_malloc_r+0xdc>
  101137. 8028b34: 2300 movs r3, #0
  101138. 8028b36: 6053 str r3, [r2, #4]
  101139. 8028b38: e7de b.n 8028af8 <_malloc_r+0xa8>
  101140. 8028b3a: 230c movs r3, #12
  101141. 8028b3c: 6033 str r3, [r6, #0]
  101142. 8028b3e: 4630 mov r0, r6
  101143. 8028b40: f000 f80c bl 8028b5c <__malloc_unlock>
  101144. 8028b44: e794 b.n 8028a70 <_malloc_r+0x20>
  101145. 8028b46: 6005 str r5, [r0, #0]
  101146. 8028b48: e7d6 b.n 8028af8 <_malloc_r+0xa8>
  101147. 8028b4a: bf00 nop
  101148. 8028b4c: 2402b110 .word 0x2402b110
  101149. 08028b50 <__malloc_lock>:
  101150. 8028b50: 4801 ldr r0, [pc, #4] @ (8028b58 <__malloc_lock+0x8>)
  101151. 8028b52: f001 bdba b.w 802a6ca <__retarget_lock_acquire_recursive>
  101152. 8028b56: bf00 nop
  101153. 8028b58: 2402b254 .word 0x2402b254
  101154. 08028b5c <__malloc_unlock>:
  101155. 8028b5c: 4801 ldr r0, [pc, #4] @ (8028b64 <__malloc_unlock+0x8>)
  101156. 8028b5e: f001 bdb5 b.w 802a6cc <__retarget_lock_release_recursive>
  101157. 8028b62: bf00 nop
  101158. 8028b64: 2402b254 .word 0x2402b254
  101159. 08028b68 <rand>:
  101160. 8028b68: 4b16 ldr r3, [pc, #88] @ (8028bc4 <rand+0x5c>)
  101161. 8028b6a: b510 push {r4, lr}
  101162. 8028b6c: 681c ldr r4, [r3, #0]
  101163. 8028b6e: 6b23 ldr r3, [r4, #48] @ 0x30
  101164. 8028b70: b9b3 cbnz r3, 8028ba0 <rand+0x38>
  101165. 8028b72: 2018 movs r0, #24
  101166. 8028b74: f7ff ff3a bl 80289ec <malloc>
  101167. 8028b78: 4602 mov r2, r0
  101168. 8028b7a: 6320 str r0, [r4, #48] @ 0x30
  101169. 8028b7c: b920 cbnz r0, 8028b88 <rand+0x20>
  101170. 8028b7e: 4b12 ldr r3, [pc, #72] @ (8028bc8 <rand+0x60>)
  101171. 8028b80: 4812 ldr r0, [pc, #72] @ (8028bcc <rand+0x64>)
  101172. 8028b82: 2152 movs r1, #82 @ 0x52
  101173. 8028b84: f001 fdbc bl 802a700 <__assert_func>
  101174. 8028b88: 4911 ldr r1, [pc, #68] @ (8028bd0 <rand+0x68>)
  101175. 8028b8a: 4b12 ldr r3, [pc, #72] @ (8028bd4 <rand+0x6c>)
  101176. 8028b8c: e9c0 1300 strd r1, r3, [r0]
  101177. 8028b90: 4b11 ldr r3, [pc, #68] @ (8028bd8 <rand+0x70>)
  101178. 8028b92: 6083 str r3, [r0, #8]
  101179. 8028b94: 230b movs r3, #11
  101180. 8028b96: 8183 strh r3, [r0, #12]
  101181. 8028b98: 2100 movs r1, #0
  101182. 8028b9a: 2001 movs r0, #1
  101183. 8028b9c: e9c2 0104 strd r0, r1, [r2, #16]
  101184. 8028ba0: 6b21 ldr r1, [r4, #48] @ 0x30
  101185. 8028ba2: 480e ldr r0, [pc, #56] @ (8028bdc <rand+0x74>)
  101186. 8028ba4: 690b ldr r3, [r1, #16]
  101187. 8028ba6: 694c ldr r4, [r1, #20]
  101188. 8028ba8: 4a0d ldr r2, [pc, #52] @ (8028be0 <rand+0x78>)
  101189. 8028baa: 4358 muls r0, r3
  101190. 8028bac: fb02 0004 mla r0, r2, r4, r0
  101191. 8028bb0: fba3 3202 umull r3, r2, r3, r2
  101192. 8028bb4: 3301 adds r3, #1
  101193. 8028bb6: eb40 0002 adc.w r0, r0, r2
  101194. 8028bba: e9c1 3004 strd r3, r0, [r1, #16]
  101195. 8028bbe: f020 4000 bic.w r0, r0, #2147483648 @ 0x80000000
  101196. 8028bc2: bd10 pop {r4, pc}
  101197. 8028bc4: 240001d4 .word 0x240001d4
  101198. 8028bc8: 0803150a .word 0x0803150a
  101199. 8028bcc: 08031521 .word 0x08031521
  101200. 8028bd0: abcd330e .word 0xabcd330e
  101201. 8028bd4: e66d1234 .word 0xe66d1234
  101202. 8028bd8: 0005deec .word 0x0005deec
  101203. 8028bdc: 5851f42d .word 0x5851f42d
  101204. 8028be0: 4c957f2d .word 0x4c957f2d
  101205. 08028be4 <realloc>:
  101206. 8028be4: 4b02 ldr r3, [pc, #8] @ (8028bf0 <realloc+0xc>)
  101207. 8028be6: 460a mov r2, r1
  101208. 8028be8: 4601 mov r1, r0
  101209. 8028bea: 6818 ldr r0, [r3, #0]
  101210. 8028bec: f000 b802 b.w 8028bf4 <_realloc_r>
  101211. 8028bf0: 240001d4 .word 0x240001d4
  101212. 08028bf4 <_realloc_r>:
  101213. 8028bf4: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  101214. 8028bf8: 4680 mov r8, r0
  101215. 8028bfa: 4615 mov r5, r2
  101216. 8028bfc: 460c mov r4, r1
  101217. 8028bfe: b921 cbnz r1, 8028c0a <_realloc_r+0x16>
  101218. 8028c00: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  101219. 8028c04: 4611 mov r1, r2
  101220. 8028c06: f7ff bf23 b.w 8028a50 <_malloc_r>
  101221. 8028c0a: b92a cbnz r2, 8028c18 <_realloc_r+0x24>
  101222. 8028c0c: f002 fb76 bl 802b2fc <_free_r>
  101223. 8028c10: 2400 movs r4, #0
  101224. 8028c12: 4620 mov r0, r4
  101225. 8028c14: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  101226. 8028c18: f003 fbb5 bl 802c386 <_malloc_usable_size_r>
  101227. 8028c1c: 4285 cmp r5, r0
  101228. 8028c1e: 4606 mov r6, r0
  101229. 8028c20: d802 bhi.n 8028c28 <_realloc_r+0x34>
  101230. 8028c22: ebb5 0f50 cmp.w r5, r0, lsr #1
  101231. 8028c26: d8f4 bhi.n 8028c12 <_realloc_r+0x1e>
  101232. 8028c28: 4629 mov r1, r5
  101233. 8028c2a: 4640 mov r0, r8
  101234. 8028c2c: f7ff ff10 bl 8028a50 <_malloc_r>
  101235. 8028c30: 4607 mov r7, r0
  101236. 8028c32: 2800 cmp r0, #0
  101237. 8028c34: d0ec beq.n 8028c10 <_realloc_r+0x1c>
  101238. 8028c36: 42b5 cmp r5, r6
  101239. 8028c38: 462a mov r2, r5
  101240. 8028c3a: 4621 mov r1, r4
  101241. 8028c3c: bf28 it cs
  101242. 8028c3e: 4632 movcs r2, r6
  101243. 8028c40: f001 fd45 bl 802a6ce <memcpy>
  101244. 8028c44: 4621 mov r1, r4
  101245. 8028c46: 4640 mov r0, r8
  101246. 8028c48: f002 fb58 bl 802b2fc <_free_r>
  101247. 8028c4c: 463c mov r4, r7
  101248. 8028c4e: e7e0 b.n 8028c12 <_realloc_r+0x1e>
  101249. 08028c50 <sulp>:
  101250. 8028c50: b570 push {r4, r5, r6, lr}
  101251. 8028c52: 4604 mov r4, r0
  101252. 8028c54: 460d mov r5, r1
  101253. 8028c56: 4616 mov r6, r2
  101254. 8028c58: ec45 4b10 vmov d0, r4, r5
  101255. 8028c5c: f003 fa58 bl 802c110 <__ulp>
  101256. 8028c60: b17e cbz r6, 8028c82 <sulp+0x32>
  101257. 8028c62: f3c5 530a ubfx r3, r5, #20, #11
  101258. 8028c66: f1c3 036b rsb r3, r3, #107 @ 0x6b
  101259. 8028c6a: 2b00 cmp r3, #0
  101260. 8028c6c: dd09 ble.n 8028c82 <sulp+0x32>
  101261. 8028c6e: 051b lsls r3, r3, #20
  101262. 8028c70: f103 517f add.w r1, r3, #1069547520 @ 0x3fc00000
  101263. 8028c74: 2000 movs r0, #0
  101264. 8028c76: f501 1140 add.w r1, r1, #3145728 @ 0x300000
  101265. 8028c7a: ec41 0b17 vmov d7, r0, r1
  101266. 8028c7e: ee20 0b07 vmul.f64 d0, d0, d7
  101267. 8028c82: bd70 pop {r4, r5, r6, pc}
  101268. 8028c84: 0000 movs r0, r0
  101269. ...
  101270. 08028c88 <_strtod_l>:
  101271. 8028c88: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  101272. 8028c8c: ed2d 8b0a vpush {d8-d12}
  101273. 8028c90: b097 sub sp, #92 @ 0x5c
  101274. 8028c92: 4688 mov r8, r1
  101275. 8028c94: 920e str r2, [sp, #56] @ 0x38
  101276. 8028c96: 2200 movs r2, #0
  101277. 8028c98: 9212 str r2, [sp, #72] @ 0x48
  101278. 8028c9a: 9005 str r0, [sp, #20]
  101279. 8028c9c: f04f 0a00 mov.w sl, #0
  101280. 8028ca0: f04f 0b00 mov.w fp, #0
  101281. 8028ca4: 460a mov r2, r1
  101282. 8028ca6: 9211 str r2, [sp, #68] @ 0x44
  101283. 8028ca8: 7811 ldrb r1, [r2, #0]
  101284. 8028caa: 292b cmp r1, #43 @ 0x2b
  101285. 8028cac: d04c beq.n 8028d48 <_strtod_l+0xc0>
  101286. 8028cae: d839 bhi.n 8028d24 <_strtod_l+0x9c>
  101287. 8028cb0: 290d cmp r1, #13
  101288. 8028cb2: d833 bhi.n 8028d1c <_strtod_l+0x94>
  101289. 8028cb4: 2908 cmp r1, #8
  101290. 8028cb6: d833 bhi.n 8028d20 <_strtod_l+0x98>
  101291. 8028cb8: 2900 cmp r1, #0
  101292. 8028cba: d03c beq.n 8028d36 <_strtod_l+0xae>
  101293. 8028cbc: 2200 movs r2, #0
  101294. 8028cbe: 9208 str r2, [sp, #32]
  101295. 8028cc0: 9d11 ldr r5, [sp, #68] @ 0x44
  101296. 8028cc2: 782a ldrb r2, [r5, #0]
  101297. 8028cc4: 2a30 cmp r2, #48 @ 0x30
  101298. 8028cc6: f040 80b5 bne.w 8028e34 <_strtod_l+0x1ac>
  101299. 8028cca: 786a ldrb r2, [r5, #1]
  101300. 8028ccc: f002 02df and.w r2, r2, #223 @ 0xdf
  101301. 8028cd0: 2a58 cmp r2, #88 @ 0x58
  101302. 8028cd2: d170 bne.n 8028db6 <_strtod_l+0x12e>
  101303. 8028cd4: 9302 str r3, [sp, #8]
  101304. 8028cd6: 9b08 ldr r3, [sp, #32]
  101305. 8028cd8: 9301 str r3, [sp, #4]
  101306. 8028cda: ab12 add r3, sp, #72 @ 0x48
  101307. 8028cdc: 9300 str r3, [sp, #0]
  101308. 8028cde: 4a8b ldr r2, [pc, #556] @ (8028f0c <_strtod_l+0x284>)
  101309. 8028ce0: 9805 ldr r0, [sp, #20]
  101310. 8028ce2: ab13 add r3, sp, #76 @ 0x4c
  101311. 8028ce4: a911 add r1, sp, #68 @ 0x44
  101312. 8028ce6: f002 fbbb bl 802b460 <__gethex>
  101313. 8028cea: f010 060f ands.w r6, r0, #15
  101314. 8028cee: 4604 mov r4, r0
  101315. 8028cf0: d005 beq.n 8028cfe <_strtod_l+0x76>
  101316. 8028cf2: 2e06 cmp r6, #6
  101317. 8028cf4: d12a bne.n 8028d4c <_strtod_l+0xc4>
  101318. 8028cf6: 3501 adds r5, #1
  101319. 8028cf8: 2300 movs r3, #0
  101320. 8028cfa: 9511 str r5, [sp, #68] @ 0x44
  101321. 8028cfc: 9308 str r3, [sp, #32]
  101322. 8028cfe: 9b0e ldr r3, [sp, #56] @ 0x38
  101323. 8028d00: 2b00 cmp r3, #0
  101324. 8028d02: f040 852f bne.w 8029764 <_strtod_l+0xadc>
  101325. 8028d06: 9b08 ldr r3, [sp, #32]
  101326. 8028d08: ec4b ab10 vmov d0, sl, fp
  101327. 8028d0c: b1cb cbz r3, 8028d42 <_strtod_l+0xba>
  101328. 8028d0e: eeb1 0b40 vneg.f64 d0, d0
  101329. 8028d12: b017 add sp, #92 @ 0x5c
  101330. 8028d14: ecbd 8b0a vpop {d8-d12}
  101331. 8028d18: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  101332. 8028d1c: 2920 cmp r1, #32
  101333. 8028d1e: d1cd bne.n 8028cbc <_strtod_l+0x34>
  101334. 8028d20: 3201 adds r2, #1
  101335. 8028d22: e7c0 b.n 8028ca6 <_strtod_l+0x1e>
  101336. 8028d24: 292d cmp r1, #45 @ 0x2d
  101337. 8028d26: d1c9 bne.n 8028cbc <_strtod_l+0x34>
  101338. 8028d28: 2101 movs r1, #1
  101339. 8028d2a: 9108 str r1, [sp, #32]
  101340. 8028d2c: 1c51 adds r1, r2, #1
  101341. 8028d2e: 9111 str r1, [sp, #68] @ 0x44
  101342. 8028d30: 7852 ldrb r2, [r2, #1]
  101343. 8028d32: 2a00 cmp r2, #0
  101344. 8028d34: d1c4 bne.n 8028cc0 <_strtod_l+0x38>
  101345. 8028d36: 9b0e ldr r3, [sp, #56] @ 0x38
  101346. 8028d38: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  101347. 8028d3c: 2b00 cmp r3, #0
  101348. 8028d3e: f040 850f bne.w 8029760 <_strtod_l+0xad8>
  101349. 8028d42: ec4b ab10 vmov d0, sl, fp
  101350. 8028d46: e7e4 b.n 8028d12 <_strtod_l+0x8a>
  101351. 8028d48: 2100 movs r1, #0
  101352. 8028d4a: e7ee b.n 8028d2a <_strtod_l+0xa2>
  101353. 8028d4c: 9a12 ldr r2, [sp, #72] @ 0x48
  101354. 8028d4e: b13a cbz r2, 8028d60 <_strtod_l+0xd8>
  101355. 8028d50: 2135 movs r1, #53 @ 0x35
  101356. 8028d52: a814 add r0, sp, #80 @ 0x50
  101357. 8028d54: f003 fad3 bl 802c2fe <__copybits>
  101358. 8028d58: 9912 ldr r1, [sp, #72] @ 0x48
  101359. 8028d5a: 9805 ldr r0, [sp, #20]
  101360. 8028d5c: f002 fea4 bl 802baa8 <_Bfree>
  101361. 8028d60: 1e73 subs r3, r6, #1
  101362. 8028d62: 9a13 ldr r2, [sp, #76] @ 0x4c
  101363. 8028d64: 2b04 cmp r3, #4
  101364. 8028d66: d806 bhi.n 8028d76 <_strtod_l+0xee>
  101365. 8028d68: e8df f003 tbb [pc, r3]
  101366. 8028d6c: 201d0314 .word 0x201d0314
  101367. 8028d70: 14 .byte 0x14
  101368. 8028d71: 00 .byte 0x00
  101369. 8028d72: e9dd ab14 ldrd sl, fp, [sp, #80] @ 0x50
  101370. 8028d76: 05e3 lsls r3, r4, #23
  101371. 8028d78: bf48 it mi
  101372. 8028d7a: f04b 4b00 orrmi.w fp, fp, #2147483648 @ 0x80000000
  101373. 8028d7e: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  101374. 8028d82: 0d1b lsrs r3, r3, #20
  101375. 8028d84: 051b lsls r3, r3, #20
  101376. 8028d86: 2b00 cmp r3, #0
  101377. 8028d88: d1b9 bne.n 8028cfe <_strtod_l+0x76>
  101378. 8028d8a: f001 fc73 bl 802a674 <__errno>
  101379. 8028d8e: 2322 movs r3, #34 @ 0x22
  101380. 8028d90: 6003 str r3, [r0, #0]
  101381. 8028d92: e7b4 b.n 8028cfe <_strtod_l+0x76>
  101382. 8028d94: e9dd a314 ldrd sl, r3, [sp, #80] @ 0x50
  101383. 8028d98: f202 4233 addw r2, r2, #1075 @ 0x433
  101384. 8028d9c: f423 1380 bic.w r3, r3, #1048576 @ 0x100000
  101385. 8028da0: ea43 5b02 orr.w fp, r3, r2, lsl #20
  101386. 8028da4: e7e7 b.n 8028d76 <_strtod_l+0xee>
  101387. 8028da6: f8df b16c ldr.w fp, [pc, #364] @ 8028f14 <_strtod_l+0x28c>
  101388. 8028daa: e7e4 b.n 8028d76 <_strtod_l+0xee>
  101389. 8028dac: f06f 4b00 mvn.w fp, #2147483648 @ 0x80000000
  101390. 8028db0: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  101391. 8028db4: e7df b.n 8028d76 <_strtod_l+0xee>
  101392. 8028db6: 9b11 ldr r3, [sp, #68] @ 0x44
  101393. 8028db8: 1c5a adds r2, r3, #1
  101394. 8028dba: 9211 str r2, [sp, #68] @ 0x44
  101395. 8028dbc: 785b ldrb r3, [r3, #1]
  101396. 8028dbe: 2b30 cmp r3, #48 @ 0x30
  101397. 8028dc0: d0f9 beq.n 8028db6 <_strtod_l+0x12e>
  101398. 8028dc2: 2b00 cmp r3, #0
  101399. 8028dc4: d09b beq.n 8028cfe <_strtod_l+0x76>
  101400. 8028dc6: 2301 movs r3, #1
  101401. 8028dc8: 2600 movs r6, #0
  101402. 8028dca: 9307 str r3, [sp, #28]
  101403. 8028dcc: 9b11 ldr r3, [sp, #68] @ 0x44
  101404. 8028dce: 930a str r3, [sp, #40] @ 0x28
  101405. 8028dd0: 46b1 mov r9, r6
  101406. 8028dd2: 4635 mov r5, r6
  101407. 8028dd4: 220a movs r2, #10
  101408. 8028dd6: 9811 ldr r0, [sp, #68] @ 0x44
  101409. 8028dd8: 7804 ldrb r4, [r0, #0]
  101410. 8028dda: f1a4 0330 sub.w r3, r4, #48 @ 0x30
  101411. 8028dde: b2d9 uxtb r1, r3
  101412. 8028de0: 2909 cmp r1, #9
  101413. 8028de2: d929 bls.n 8028e38 <_strtod_l+0x1b0>
  101414. 8028de4: 494a ldr r1, [pc, #296] @ (8028f10 <_strtod_l+0x288>)
  101415. 8028de6: 2201 movs r2, #1
  101416. 8028de8: f001 fb82 bl 802a4f0 <strncmp>
  101417. 8028dec: b378 cbz r0, 8028e4e <_strtod_l+0x1c6>
  101418. 8028dee: 2000 movs r0, #0
  101419. 8028df0: 4622 mov r2, r4
  101420. 8028df2: 462b mov r3, r5
  101421. 8028df4: 4607 mov r7, r0
  101422. 8028df6: 9006 str r0, [sp, #24]
  101423. 8028df8: 2a65 cmp r2, #101 @ 0x65
  101424. 8028dfa: d001 beq.n 8028e00 <_strtod_l+0x178>
  101425. 8028dfc: 2a45 cmp r2, #69 @ 0x45
  101426. 8028dfe: d117 bne.n 8028e30 <_strtod_l+0x1a8>
  101427. 8028e00: b91b cbnz r3, 8028e0a <_strtod_l+0x182>
  101428. 8028e02: 9b07 ldr r3, [sp, #28]
  101429. 8028e04: 4303 orrs r3, r0
  101430. 8028e06: d096 beq.n 8028d36 <_strtod_l+0xae>
  101431. 8028e08: 2300 movs r3, #0
  101432. 8028e0a: f8dd 8044 ldr.w r8, [sp, #68] @ 0x44
  101433. 8028e0e: f108 0201 add.w r2, r8, #1
  101434. 8028e12: 9211 str r2, [sp, #68] @ 0x44
  101435. 8028e14: f898 2001 ldrb.w r2, [r8, #1]
  101436. 8028e18: 2a2b cmp r2, #43 @ 0x2b
  101437. 8028e1a: d06b beq.n 8028ef4 <_strtod_l+0x26c>
  101438. 8028e1c: 2a2d cmp r2, #45 @ 0x2d
  101439. 8028e1e: d071 beq.n 8028f04 <_strtod_l+0x27c>
  101440. 8028e20: f04f 0e00 mov.w lr, #0
  101441. 8028e24: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  101442. 8028e28: 2c09 cmp r4, #9
  101443. 8028e2a: d979 bls.n 8028f20 <_strtod_l+0x298>
  101444. 8028e2c: f8cd 8044 str.w r8, [sp, #68] @ 0x44
  101445. 8028e30: 2400 movs r4, #0
  101446. 8028e32: e094 b.n 8028f5e <_strtod_l+0x2d6>
  101447. 8028e34: 2300 movs r3, #0
  101448. 8028e36: e7c7 b.n 8028dc8 <_strtod_l+0x140>
  101449. 8028e38: 2d08 cmp r5, #8
  101450. 8028e3a: f100 0001 add.w r0, r0, #1
  101451. 8028e3e: bfd4 ite le
  101452. 8028e40: fb02 3909 mlale r9, r2, r9, r3
  101453. 8028e44: fb02 3606 mlagt r6, r2, r6, r3
  101454. 8028e48: 3501 adds r5, #1
  101455. 8028e4a: 9011 str r0, [sp, #68] @ 0x44
  101456. 8028e4c: e7c3 b.n 8028dd6 <_strtod_l+0x14e>
  101457. 8028e4e: 9b11 ldr r3, [sp, #68] @ 0x44
  101458. 8028e50: 1c5a adds r2, r3, #1
  101459. 8028e52: 9211 str r2, [sp, #68] @ 0x44
  101460. 8028e54: 785a ldrb r2, [r3, #1]
  101461. 8028e56: b375 cbz r5, 8028eb6 <_strtod_l+0x22e>
  101462. 8028e58: 4607 mov r7, r0
  101463. 8028e5a: 462b mov r3, r5
  101464. 8028e5c: f1a2 0130 sub.w r1, r2, #48 @ 0x30
  101465. 8028e60: 2909 cmp r1, #9
  101466. 8028e62: d913 bls.n 8028e8c <_strtod_l+0x204>
  101467. 8028e64: 2101 movs r1, #1
  101468. 8028e66: 9106 str r1, [sp, #24]
  101469. 8028e68: e7c6 b.n 8028df8 <_strtod_l+0x170>
  101470. 8028e6a: 9b11 ldr r3, [sp, #68] @ 0x44
  101471. 8028e6c: 1c5a adds r2, r3, #1
  101472. 8028e6e: 9211 str r2, [sp, #68] @ 0x44
  101473. 8028e70: 785a ldrb r2, [r3, #1]
  101474. 8028e72: 3001 adds r0, #1
  101475. 8028e74: 2a30 cmp r2, #48 @ 0x30
  101476. 8028e76: d0f8 beq.n 8028e6a <_strtod_l+0x1e2>
  101477. 8028e78: f1a2 0331 sub.w r3, r2, #49 @ 0x31
  101478. 8028e7c: 2b08 cmp r3, #8
  101479. 8028e7e: f200 8476 bhi.w 802976e <_strtod_l+0xae6>
  101480. 8028e82: 9b11 ldr r3, [sp, #68] @ 0x44
  101481. 8028e84: 930a str r3, [sp, #40] @ 0x28
  101482. 8028e86: 4607 mov r7, r0
  101483. 8028e88: 2000 movs r0, #0
  101484. 8028e8a: 4603 mov r3, r0
  101485. 8028e8c: 3a30 subs r2, #48 @ 0x30
  101486. 8028e8e: f100 0101 add.w r1, r0, #1
  101487. 8028e92: d023 beq.n 8028edc <_strtod_l+0x254>
  101488. 8028e94: 440f add r7, r1
  101489. 8028e96: eb00 0c03 add.w ip, r0, r3
  101490. 8028e9a: 4619 mov r1, r3
  101491. 8028e9c: 240a movs r4, #10
  101492. 8028e9e: 4561 cmp r1, ip
  101493. 8028ea0: d10b bne.n 8028eba <_strtod_l+0x232>
  101494. 8028ea2: 1c5c adds r4, r3, #1
  101495. 8028ea4: 4403 add r3, r0
  101496. 8028ea6: 2b08 cmp r3, #8
  101497. 8028ea8: 4404 add r4, r0
  101498. 8028eaa: dc11 bgt.n 8028ed0 <_strtod_l+0x248>
  101499. 8028eac: 230a movs r3, #10
  101500. 8028eae: fb03 2909 mla r9, r3, r9, r2
  101501. 8028eb2: 2100 movs r1, #0
  101502. 8028eb4: e013 b.n 8028ede <_strtod_l+0x256>
  101503. 8028eb6: 4628 mov r0, r5
  101504. 8028eb8: e7dc b.n 8028e74 <_strtod_l+0x1ec>
  101505. 8028eba: 2908 cmp r1, #8
  101506. 8028ebc: f101 0101 add.w r1, r1, #1
  101507. 8028ec0: dc02 bgt.n 8028ec8 <_strtod_l+0x240>
  101508. 8028ec2: fb04 f909 mul.w r9, r4, r9
  101509. 8028ec6: e7ea b.n 8028e9e <_strtod_l+0x216>
  101510. 8028ec8: 2910 cmp r1, #16
  101511. 8028eca: bfd8 it le
  101512. 8028ecc: 4366 mulle r6, r4
  101513. 8028ece: e7e6 b.n 8028e9e <_strtod_l+0x216>
  101514. 8028ed0: 2b0f cmp r3, #15
  101515. 8028ed2: dcee bgt.n 8028eb2 <_strtod_l+0x22a>
  101516. 8028ed4: 230a movs r3, #10
  101517. 8028ed6: fb03 2606 mla r6, r3, r6, r2
  101518. 8028eda: e7ea b.n 8028eb2 <_strtod_l+0x22a>
  101519. 8028edc: 461c mov r4, r3
  101520. 8028ede: 9b11 ldr r3, [sp, #68] @ 0x44
  101521. 8028ee0: 1c5a adds r2, r3, #1
  101522. 8028ee2: 9211 str r2, [sp, #68] @ 0x44
  101523. 8028ee4: 785a ldrb r2, [r3, #1]
  101524. 8028ee6: 4608 mov r0, r1
  101525. 8028ee8: 4623 mov r3, r4
  101526. 8028eea: e7b7 b.n 8028e5c <_strtod_l+0x1d4>
  101527. 8028eec: 2301 movs r3, #1
  101528. 8028eee: 2700 movs r7, #0
  101529. 8028ef0: 9306 str r3, [sp, #24]
  101530. 8028ef2: e786 b.n 8028e02 <_strtod_l+0x17a>
  101531. 8028ef4: f04f 0e00 mov.w lr, #0
  101532. 8028ef8: f108 0202 add.w r2, r8, #2
  101533. 8028efc: 9211 str r2, [sp, #68] @ 0x44
  101534. 8028efe: f898 2002 ldrb.w r2, [r8, #2]
  101535. 8028f02: e78f b.n 8028e24 <_strtod_l+0x19c>
  101536. 8028f04: f04f 0e01 mov.w lr, #1
  101537. 8028f08: e7f6 b.n 8028ef8 <_strtod_l+0x270>
  101538. 8028f0a: bf00 nop
  101539. 8028f0c: 08031590 .word 0x08031590
  101540. 8028f10: 08031579 .word 0x08031579
  101541. 8028f14: 7ff00000 .word 0x7ff00000
  101542. 8028f18: 9a11 ldr r2, [sp, #68] @ 0x44
  101543. 8028f1a: 1c54 adds r4, r2, #1
  101544. 8028f1c: 9411 str r4, [sp, #68] @ 0x44
  101545. 8028f1e: 7852 ldrb r2, [r2, #1]
  101546. 8028f20: 2a30 cmp r2, #48 @ 0x30
  101547. 8028f22: d0f9 beq.n 8028f18 <_strtod_l+0x290>
  101548. 8028f24: f1a2 0431 sub.w r4, r2, #49 @ 0x31
  101549. 8028f28: 2c08 cmp r4, #8
  101550. 8028f2a: d881 bhi.n 8028e30 <_strtod_l+0x1a8>
  101551. 8028f2c: f1a2 0c30 sub.w ip, r2, #48 @ 0x30
  101552. 8028f30: 9a11 ldr r2, [sp, #68] @ 0x44
  101553. 8028f32: 9209 str r2, [sp, #36] @ 0x24
  101554. 8028f34: 9a11 ldr r2, [sp, #68] @ 0x44
  101555. 8028f36: 1c51 adds r1, r2, #1
  101556. 8028f38: 9111 str r1, [sp, #68] @ 0x44
  101557. 8028f3a: 7852 ldrb r2, [r2, #1]
  101558. 8028f3c: f1a2 0430 sub.w r4, r2, #48 @ 0x30
  101559. 8028f40: 2c09 cmp r4, #9
  101560. 8028f42: d938 bls.n 8028fb6 <_strtod_l+0x32e>
  101561. 8028f44: 9c09 ldr r4, [sp, #36] @ 0x24
  101562. 8028f46: 1b0c subs r4, r1, r4
  101563. 8028f48: 2c08 cmp r4, #8
  101564. 8028f4a: f644 641f movw r4, #19999 @ 0x4e1f
  101565. 8028f4e: dc02 bgt.n 8028f56 <_strtod_l+0x2ce>
  101566. 8028f50: 4564 cmp r4, ip
  101567. 8028f52: bfa8 it ge
  101568. 8028f54: 4664 movge r4, ip
  101569. 8028f56: f1be 0f00 cmp.w lr, #0
  101570. 8028f5a: d000 beq.n 8028f5e <_strtod_l+0x2d6>
  101571. 8028f5c: 4264 negs r4, r4
  101572. 8028f5e: 2b00 cmp r3, #0
  101573. 8028f60: d14e bne.n 8029000 <_strtod_l+0x378>
  101574. 8028f62: 9b07 ldr r3, [sp, #28]
  101575. 8028f64: 4318 orrs r0, r3
  101576. 8028f66: f47f aeca bne.w 8028cfe <_strtod_l+0x76>
  101577. 8028f6a: 9b06 ldr r3, [sp, #24]
  101578. 8028f6c: 2b00 cmp r3, #0
  101579. 8028f6e: f47f aee2 bne.w 8028d36 <_strtod_l+0xae>
  101580. 8028f72: 2a69 cmp r2, #105 @ 0x69
  101581. 8028f74: d027 beq.n 8028fc6 <_strtod_l+0x33e>
  101582. 8028f76: dc24 bgt.n 8028fc2 <_strtod_l+0x33a>
  101583. 8028f78: 2a49 cmp r2, #73 @ 0x49
  101584. 8028f7a: d024 beq.n 8028fc6 <_strtod_l+0x33e>
  101585. 8028f7c: 2a4e cmp r2, #78 @ 0x4e
  101586. 8028f7e: f47f aeda bne.w 8028d36 <_strtod_l+0xae>
  101587. 8028f82: 4997 ldr r1, [pc, #604] @ (80291e0 <_strtod_l+0x558>)
  101588. 8028f84: a811 add r0, sp, #68 @ 0x44
  101589. 8028f86: f002 fc8d bl 802b8a4 <__match>
  101590. 8028f8a: 2800 cmp r0, #0
  101591. 8028f8c: f43f aed3 beq.w 8028d36 <_strtod_l+0xae>
  101592. 8028f90: 9b11 ldr r3, [sp, #68] @ 0x44
  101593. 8028f92: 781b ldrb r3, [r3, #0]
  101594. 8028f94: 2b28 cmp r3, #40 @ 0x28
  101595. 8028f96: d12d bne.n 8028ff4 <_strtod_l+0x36c>
  101596. 8028f98: 4992 ldr r1, [pc, #584] @ (80291e4 <_strtod_l+0x55c>)
  101597. 8028f9a: aa14 add r2, sp, #80 @ 0x50
  101598. 8028f9c: a811 add r0, sp, #68 @ 0x44
  101599. 8028f9e: f002 fc95 bl 802b8cc <__hexnan>
  101600. 8028fa2: 2805 cmp r0, #5
  101601. 8028fa4: d126 bne.n 8028ff4 <_strtod_l+0x36c>
  101602. 8028fa6: 9b15 ldr r3, [sp, #84] @ 0x54
  101603. 8028fa8: f8dd a050 ldr.w sl, [sp, #80] @ 0x50
  101604. 8028fac: f043 4bff orr.w fp, r3, #2139095040 @ 0x7f800000
  101605. 8028fb0: f44b 0be0 orr.w fp, fp, #7340032 @ 0x700000
  101606. 8028fb4: e6a3 b.n 8028cfe <_strtod_l+0x76>
  101607. 8028fb6: 240a movs r4, #10
  101608. 8028fb8: fb04 2c0c mla ip, r4, ip, r2
  101609. 8028fbc: f1ac 0c30 sub.w ip, ip, #48 @ 0x30
  101610. 8028fc0: e7b8 b.n 8028f34 <_strtod_l+0x2ac>
  101611. 8028fc2: 2a6e cmp r2, #110 @ 0x6e
  101612. 8028fc4: e7db b.n 8028f7e <_strtod_l+0x2f6>
  101613. 8028fc6: 4988 ldr r1, [pc, #544] @ (80291e8 <_strtod_l+0x560>)
  101614. 8028fc8: a811 add r0, sp, #68 @ 0x44
  101615. 8028fca: f002 fc6b bl 802b8a4 <__match>
  101616. 8028fce: 2800 cmp r0, #0
  101617. 8028fd0: f43f aeb1 beq.w 8028d36 <_strtod_l+0xae>
  101618. 8028fd4: 9b11 ldr r3, [sp, #68] @ 0x44
  101619. 8028fd6: 4985 ldr r1, [pc, #532] @ (80291ec <_strtod_l+0x564>)
  101620. 8028fd8: 3b01 subs r3, #1
  101621. 8028fda: a811 add r0, sp, #68 @ 0x44
  101622. 8028fdc: 9311 str r3, [sp, #68] @ 0x44
  101623. 8028fde: f002 fc61 bl 802b8a4 <__match>
  101624. 8028fe2: b910 cbnz r0, 8028fea <_strtod_l+0x362>
  101625. 8028fe4: 9b11 ldr r3, [sp, #68] @ 0x44
  101626. 8028fe6: 3301 adds r3, #1
  101627. 8028fe8: 9311 str r3, [sp, #68] @ 0x44
  101628. 8028fea: f8df b214 ldr.w fp, [pc, #532] @ 8029200 <_strtod_l+0x578>
  101629. 8028fee: f04f 0a00 mov.w sl, #0
  101630. 8028ff2: e684 b.n 8028cfe <_strtod_l+0x76>
  101631. 8028ff4: 487e ldr r0, [pc, #504] @ (80291f0 <_strtod_l+0x568>)
  101632. 8028ff6: f001 fb7b bl 802a6f0 <nan>
  101633. 8028ffa: ec5b ab10 vmov sl, fp, d0
  101634. 8028ffe: e67e b.n 8028cfe <_strtod_l+0x76>
  101635. 8029000: ee07 9a90 vmov s15, r9
  101636. 8029004: 1be2 subs r2, r4, r7
  101637. 8029006: eeb8 7b67 vcvt.f64.u32 d7, s15
  101638. 802900a: 2d00 cmp r5, #0
  101639. 802900c: bf08 it eq
  101640. 802900e: 461d moveq r5, r3
  101641. 8029010: 2b10 cmp r3, #16
  101642. 8029012: 9209 str r2, [sp, #36] @ 0x24
  101643. 8029014: 461a mov r2, r3
  101644. 8029016: bfa8 it ge
  101645. 8029018: 2210 movge r2, #16
  101646. 802901a: 2b09 cmp r3, #9
  101647. 802901c: ec5b ab17 vmov sl, fp, d7
  101648. 8029020: dc15 bgt.n 802904e <_strtod_l+0x3c6>
  101649. 8029022: 1be1 subs r1, r4, r7
  101650. 8029024: 2900 cmp r1, #0
  101651. 8029026: f43f ae6a beq.w 8028cfe <_strtod_l+0x76>
  101652. 802902a: eba4 0107 sub.w r1, r4, r7
  101653. 802902e: dd72 ble.n 8029116 <_strtod_l+0x48e>
  101654. 8029030: 2916 cmp r1, #22
  101655. 8029032: dc59 bgt.n 80290e8 <_strtod_l+0x460>
  101656. 8029034: 4b6f ldr r3, [pc, #444] @ (80291f4 <_strtod_l+0x56c>)
  101657. 8029036: 9a09 ldr r2, [sp, #36] @ 0x24
  101658. 8029038: eb03 03c2 add.w r3, r3, r2, lsl #3
  101659. 802903c: ed93 7b00 vldr d7, [r3]
  101660. 8029040: ec4b ab16 vmov d6, sl, fp
  101661. 8029044: ee27 7b06 vmul.f64 d7, d7, d6
  101662. 8029048: ec5b ab17 vmov sl, fp, d7
  101663. 802904c: e657 b.n 8028cfe <_strtod_l+0x76>
  101664. 802904e: 4969 ldr r1, [pc, #420] @ (80291f4 <_strtod_l+0x56c>)
  101665. 8029050: eb01 01c2 add.w r1, r1, r2, lsl #3
  101666. 8029054: ed11 5b12 vldr d5, [r1, #-72] @ 0xffffffb8
  101667. 8029058: ee06 6a90 vmov s13, r6
  101668. 802905c: 2b0f cmp r3, #15
  101669. 802905e: eeb8 6b66 vcvt.f64.u32 d6, s13
  101670. 8029062: eea7 6b05 vfma.f64 d6, d7, d5
  101671. 8029066: ec5b ab16 vmov sl, fp, d6
  101672. 802906a: ddda ble.n 8029022 <_strtod_l+0x39a>
  101673. 802906c: 1a9a subs r2, r3, r2
  101674. 802906e: 1be1 subs r1, r4, r7
  101675. 8029070: 440a add r2, r1
  101676. 8029072: 2a00 cmp r2, #0
  101677. 8029074: f340 8094 ble.w 80291a0 <_strtod_l+0x518>
  101678. 8029078: f012 000f ands.w r0, r2, #15
  101679. 802907c: d00a beq.n 8029094 <_strtod_l+0x40c>
  101680. 802907e: 495d ldr r1, [pc, #372] @ (80291f4 <_strtod_l+0x56c>)
  101681. 8029080: eb01 01c0 add.w r1, r1, r0, lsl #3
  101682. 8029084: ed91 7b00 vldr d7, [r1]
  101683. 8029088: ec4b ab16 vmov d6, sl, fp
  101684. 802908c: ee27 7b06 vmul.f64 d7, d7, d6
  101685. 8029090: ec5b ab17 vmov sl, fp, d7
  101686. 8029094: f032 020f bics.w r2, r2, #15
  101687. 8029098: d073 beq.n 8029182 <_strtod_l+0x4fa>
  101688. 802909a: f5b2 7f9a cmp.w r2, #308 @ 0x134
  101689. 802909e: dd47 ble.n 8029130 <_strtod_l+0x4a8>
  101690. 80290a0: 2400 movs r4, #0
  101691. 80290a2: 4625 mov r5, r4
  101692. 80290a4: 9407 str r4, [sp, #28]
  101693. 80290a6: 4626 mov r6, r4
  101694. 80290a8: 9a05 ldr r2, [sp, #20]
  101695. 80290aa: f8df b154 ldr.w fp, [pc, #340] @ 8029200 <_strtod_l+0x578>
  101696. 80290ae: 2322 movs r3, #34 @ 0x22
  101697. 80290b0: 6013 str r3, [r2, #0]
  101698. 80290b2: f04f 0a00 mov.w sl, #0
  101699. 80290b6: 9b07 ldr r3, [sp, #28]
  101700. 80290b8: 2b00 cmp r3, #0
  101701. 80290ba: f43f ae20 beq.w 8028cfe <_strtod_l+0x76>
  101702. 80290be: 9912 ldr r1, [sp, #72] @ 0x48
  101703. 80290c0: 9805 ldr r0, [sp, #20]
  101704. 80290c2: f002 fcf1 bl 802baa8 <_Bfree>
  101705. 80290c6: 9805 ldr r0, [sp, #20]
  101706. 80290c8: 4631 mov r1, r6
  101707. 80290ca: f002 fced bl 802baa8 <_Bfree>
  101708. 80290ce: 9805 ldr r0, [sp, #20]
  101709. 80290d0: 4629 mov r1, r5
  101710. 80290d2: f002 fce9 bl 802baa8 <_Bfree>
  101711. 80290d6: 9907 ldr r1, [sp, #28]
  101712. 80290d8: 9805 ldr r0, [sp, #20]
  101713. 80290da: f002 fce5 bl 802baa8 <_Bfree>
  101714. 80290de: 9805 ldr r0, [sp, #20]
  101715. 80290e0: 4621 mov r1, r4
  101716. 80290e2: f002 fce1 bl 802baa8 <_Bfree>
  101717. 80290e6: e60a b.n 8028cfe <_strtod_l+0x76>
  101718. 80290e8: f1c3 0125 rsb r1, r3, #37 @ 0x25
  101719. 80290ec: 1be0 subs r0, r4, r7
  101720. 80290ee: 4281 cmp r1, r0
  101721. 80290f0: dbbc blt.n 802906c <_strtod_l+0x3e4>
  101722. 80290f2: 4a40 ldr r2, [pc, #256] @ (80291f4 <_strtod_l+0x56c>)
  101723. 80290f4: f1c3 030f rsb r3, r3, #15
  101724. 80290f8: eb02 01c3 add.w r1, r2, r3, lsl #3
  101725. 80290fc: ed91 7b00 vldr d7, [r1]
  101726. 8029100: 9909 ldr r1, [sp, #36] @ 0x24
  101727. 8029102: ec4b ab16 vmov d6, sl, fp
  101728. 8029106: 1acb subs r3, r1, r3
  101729. 8029108: eb02 02c3 add.w r2, r2, r3, lsl #3
  101730. 802910c: ee27 7b06 vmul.f64 d7, d7, d6
  101731. 8029110: ed92 6b00 vldr d6, [r2]
  101732. 8029114: e796 b.n 8029044 <_strtod_l+0x3bc>
  101733. 8029116: 3116 adds r1, #22
  101734. 8029118: dba8 blt.n 802906c <_strtod_l+0x3e4>
  101735. 802911a: 4b36 ldr r3, [pc, #216] @ (80291f4 <_strtod_l+0x56c>)
  101736. 802911c: 1b3c subs r4, r7, r4
  101737. 802911e: eb03 04c4 add.w r4, r3, r4, lsl #3
  101738. 8029122: ed94 7b00 vldr d7, [r4]
  101739. 8029126: ec4b ab16 vmov d6, sl, fp
  101740. 802912a: ee86 7b07 vdiv.f64 d7, d6, d7
  101741. 802912e: e78b b.n 8029048 <_strtod_l+0x3c0>
  101742. 8029130: 2000 movs r0, #0
  101743. 8029132: ec4b ab17 vmov d7, sl, fp
  101744. 8029136: 4e30 ldr r6, [pc, #192] @ (80291f8 <_strtod_l+0x570>)
  101745. 8029138: 1112 asrs r2, r2, #4
  101746. 802913a: 4601 mov r1, r0
  101747. 802913c: 2a01 cmp r2, #1
  101748. 802913e: dc23 bgt.n 8029188 <_strtod_l+0x500>
  101749. 8029140: b108 cbz r0, 8029146 <_strtod_l+0x4be>
  101750. 8029142: ec5b ab17 vmov sl, fp, d7
  101751. 8029146: 4a2c ldr r2, [pc, #176] @ (80291f8 <_strtod_l+0x570>)
  101752. 8029148: 482c ldr r0, [pc, #176] @ (80291fc <_strtod_l+0x574>)
  101753. 802914a: eb02 02c1 add.w r2, r2, r1, lsl #3
  101754. 802914e: ed92 7b00 vldr d7, [r2]
  101755. 8029152: f1ab 7b54 sub.w fp, fp, #55574528 @ 0x3500000
  101756. 8029156: ec4b ab16 vmov d6, sl, fp
  101757. 802915a: 4a29 ldr r2, [pc, #164] @ (8029200 <_strtod_l+0x578>)
  101758. 802915c: ee27 7b06 vmul.f64 d7, d7, d6
  101759. 8029160: ee17 1a90 vmov r1, s15
  101760. 8029164: 400a ands r2, r1
  101761. 8029166: 4282 cmp r2, r0
  101762. 8029168: ec5b ab17 vmov sl, fp, d7
  101763. 802916c: d898 bhi.n 80290a0 <_strtod_l+0x418>
  101764. 802916e: f5a0 1080 sub.w r0, r0, #1048576 @ 0x100000
  101765. 8029172: 4282 cmp r2, r0
  101766. 8029174: bf86 itte hi
  101767. 8029176: f8df b08c ldrhi.w fp, [pc, #140] @ 8029204 <_strtod_l+0x57c>
  101768. 802917a: f04f 3aff movhi.w sl, #4294967295 @ 0xffffffff
  101769. 802917e: f101 7b54 addls.w fp, r1, #55574528 @ 0x3500000
  101770. 8029182: 2200 movs r2, #0
  101771. 8029184: 9206 str r2, [sp, #24]
  101772. 8029186: e076 b.n 8029276 <_strtod_l+0x5ee>
  101773. 8029188: f012 0f01 tst.w r2, #1
  101774. 802918c: d004 beq.n 8029198 <_strtod_l+0x510>
  101775. 802918e: ed96 6b00 vldr d6, [r6]
  101776. 8029192: 2001 movs r0, #1
  101777. 8029194: ee27 7b06 vmul.f64 d7, d7, d6
  101778. 8029198: 3101 adds r1, #1
  101779. 802919a: 1052 asrs r2, r2, #1
  101780. 802919c: 3608 adds r6, #8
  101781. 802919e: e7cd b.n 802913c <_strtod_l+0x4b4>
  101782. 80291a0: d0ef beq.n 8029182 <_strtod_l+0x4fa>
  101783. 80291a2: 4252 negs r2, r2
  101784. 80291a4: f012 000f ands.w r0, r2, #15
  101785. 80291a8: d00a beq.n 80291c0 <_strtod_l+0x538>
  101786. 80291aa: 4912 ldr r1, [pc, #72] @ (80291f4 <_strtod_l+0x56c>)
  101787. 80291ac: eb01 01c0 add.w r1, r1, r0, lsl #3
  101788. 80291b0: ed91 7b00 vldr d7, [r1]
  101789. 80291b4: ec4b ab16 vmov d6, sl, fp
  101790. 80291b8: ee86 7b07 vdiv.f64 d7, d6, d7
  101791. 80291bc: ec5b ab17 vmov sl, fp, d7
  101792. 80291c0: 1112 asrs r2, r2, #4
  101793. 80291c2: d0de beq.n 8029182 <_strtod_l+0x4fa>
  101794. 80291c4: 2a1f cmp r2, #31
  101795. 80291c6: dd1f ble.n 8029208 <_strtod_l+0x580>
  101796. 80291c8: 2400 movs r4, #0
  101797. 80291ca: 4625 mov r5, r4
  101798. 80291cc: 9407 str r4, [sp, #28]
  101799. 80291ce: 4626 mov r6, r4
  101800. 80291d0: 9a05 ldr r2, [sp, #20]
  101801. 80291d2: 2322 movs r3, #34 @ 0x22
  101802. 80291d4: f04f 0a00 mov.w sl, #0
  101803. 80291d8: f04f 0b00 mov.w fp, #0
  101804. 80291dc: 6013 str r3, [r2, #0]
  101805. 80291de: e76a b.n 80290b6 <_strtod_l+0x42e>
  101806. 80291e0: 080316de .word 0x080316de
  101807. 80291e4: 0803157c .word 0x0803157c
  101808. 80291e8: 080316d6 .word 0x080316d6
  101809. 80291ec: 0803174c .word 0x0803174c
  101810. 80291f0: 08031748 .word 0x08031748
  101811. 80291f4: 080318b0 .word 0x080318b0
  101812. 80291f8: 08031888 .word 0x08031888
  101813. 80291fc: 7ca00000 .word 0x7ca00000
  101814. 8029200: 7ff00000 .word 0x7ff00000
  101815. 8029204: 7fefffff .word 0x7fefffff
  101816. 8029208: f012 0110 ands.w r1, r2, #16
  101817. 802920c: bf18 it ne
  101818. 802920e: 216a movne r1, #106 @ 0x6a
  101819. 8029210: 9106 str r1, [sp, #24]
  101820. 8029212: ec4b ab17 vmov d7, sl, fp
  101821. 8029216: 49b0 ldr r1, [pc, #704] @ (80294d8 <_strtod_l+0x850>)
  101822. 8029218: 2000 movs r0, #0
  101823. 802921a: 07d6 lsls r6, r2, #31
  101824. 802921c: d504 bpl.n 8029228 <_strtod_l+0x5a0>
  101825. 802921e: ed91 6b00 vldr d6, [r1]
  101826. 8029222: 2001 movs r0, #1
  101827. 8029224: ee27 7b06 vmul.f64 d7, d7, d6
  101828. 8029228: 1052 asrs r2, r2, #1
  101829. 802922a: f101 0108 add.w r1, r1, #8
  101830. 802922e: d1f4 bne.n 802921a <_strtod_l+0x592>
  101831. 8029230: b108 cbz r0, 8029236 <_strtod_l+0x5ae>
  101832. 8029232: ec5b ab17 vmov sl, fp, d7
  101833. 8029236: 9a06 ldr r2, [sp, #24]
  101834. 8029238: b1b2 cbz r2, 8029268 <_strtod_l+0x5e0>
  101835. 802923a: f3cb 510a ubfx r1, fp, #20, #11
  101836. 802923e: f1c1 026b rsb r2, r1, #107 @ 0x6b
  101837. 8029242: 2a00 cmp r2, #0
  101838. 8029244: 4658 mov r0, fp
  101839. 8029246: dd0f ble.n 8029268 <_strtod_l+0x5e0>
  101840. 8029248: 2a1f cmp r2, #31
  101841. 802924a: dd55 ble.n 80292f8 <_strtod_l+0x670>
  101842. 802924c: 2a34 cmp r2, #52 @ 0x34
  101843. 802924e: bfde ittt le
  101844. 8029250: f04f 32ff movle.w r2, #4294967295 @ 0xffffffff
  101845. 8029254: f1c1 014b rsble r1, r1, #75 @ 0x4b
  101846. 8029258: 408a lslle r2, r1
  101847. 802925a: f04f 0a00 mov.w sl, #0
  101848. 802925e: bfcc ite gt
  101849. 8029260: f04f 7b5c movgt.w fp, #57671680 @ 0x3700000
  101850. 8029264: ea02 0b00 andle.w fp, r2, r0
  101851. 8029268: ec4b ab17 vmov d7, sl, fp
  101852. 802926c: eeb5 7b40 vcmp.f64 d7, #0.0
  101853. 8029270: eef1 fa10 vmrs APSR_nzcv, fpscr
  101854. 8029274: d0a8 beq.n 80291c8 <_strtod_l+0x540>
  101855. 8029276: 990a ldr r1, [sp, #40] @ 0x28
  101856. 8029278: 9805 ldr r0, [sp, #20]
  101857. 802927a: f8cd 9000 str.w r9, [sp]
  101858. 802927e: 462a mov r2, r5
  101859. 8029280: f002 fc7a bl 802bb78 <__s2b>
  101860. 8029284: 9007 str r0, [sp, #28]
  101861. 8029286: 2800 cmp r0, #0
  101862. 8029288: f43f af0a beq.w 80290a0 <_strtod_l+0x418>
  101863. 802928c: 9b09 ldr r3, [sp, #36] @ 0x24
  101864. 802928e: 1b3f subs r7, r7, r4
  101865. 8029290: 2b00 cmp r3, #0
  101866. 8029292: bfb4 ite lt
  101867. 8029294: 463b movlt r3, r7
  101868. 8029296: 2300 movge r3, #0
  101869. 8029298: 930a str r3, [sp, #40] @ 0x28
  101870. 802929a: 9b09 ldr r3, [sp, #36] @ 0x24
  101871. 802929c: ed9f bb8a vldr d11, [pc, #552] @ 80294c8 <_strtod_l+0x840>
  101872. 80292a0: ea23 73e3 bic.w r3, r3, r3, asr #31
  101873. 80292a4: 2400 movs r4, #0
  101874. 80292a6: 930d str r3, [sp, #52] @ 0x34
  101875. 80292a8: 4625 mov r5, r4
  101876. 80292aa: 9b07 ldr r3, [sp, #28]
  101877. 80292ac: 9805 ldr r0, [sp, #20]
  101878. 80292ae: 6859 ldr r1, [r3, #4]
  101879. 80292b0: f002 fbba bl 802ba28 <_Balloc>
  101880. 80292b4: 4606 mov r6, r0
  101881. 80292b6: 2800 cmp r0, #0
  101882. 80292b8: f43f aef6 beq.w 80290a8 <_strtod_l+0x420>
  101883. 80292bc: 9b07 ldr r3, [sp, #28]
  101884. 80292be: 691a ldr r2, [r3, #16]
  101885. 80292c0: ec4b ab19 vmov d9, sl, fp
  101886. 80292c4: 3202 adds r2, #2
  101887. 80292c6: f103 010c add.w r1, r3, #12
  101888. 80292ca: 0092 lsls r2, r2, #2
  101889. 80292cc: 300c adds r0, #12
  101890. 80292ce: f001 f9fe bl 802a6ce <memcpy>
  101891. 80292d2: eeb0 0b49 vmov.f64 d0, d9
  101892. 80292d6: 9805 ldr r0, [sp, #20]
  101893. 80292d8: aa14 add r2, sp, #80 @ 0x50
  101894. 80292da: a913 add r1, sp, #76 @ 0x4c
  101895. 80292dc: f002 ff88 bl 802c1f0 <__d2b>
  101896. 80292e0: 9012 str r0, [sp, #72] @ 0x48
  101897. 80292e2: 2800 cmp r0, #0
  101898. 80292e4: f43f aee0 beq.w 80290a8 <_strtod_l+0x420>
  101899. 80292e8: 9805 ldr r0, [sp, #20]
  101900. 80292ea: 2101 movs r1, #1
  101901. 80292ec: f002 fcda bl 802bca4 <__i2b>
  101902. 80292f0: 4605 mov r5, r0
  101903. 80292f2: b940 cbnz r0, 8029306 <_strtod_l+0x67e>
  101904. 80292f4: 2500 movs r5, #0
  101905. 80292f6: e6d7 b.n 80290a8 <_strtod_l+0x420>
  101906. 80292f8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  101907. 80292fc: fa01 f202 lsl.w r2, r1, r2
  101908. 8029300: ea02 0a0a and.w sl, r2, sl
  101909. 8029304: e7b0 b.n 8029268 <_strtod_l+0x5e0>
  101910. 8029306: 9f13 ldr r7, [sp, #76] @ 0x4c
  101911. 8029308: 9a14 ldr r2, [sp, #80] @ 0x50
  101912. 802930a: 2f00 cmp r7, #0
  101913. 802930c: bfab itete ge
  101914. 802930e: 9b0a ldrge r3, [sp, #40] @ 0x28
  101915. 8029310: 9b0d ldrlt r3, [sp, #52] @ 0x34
  101916. 8029312: f8dd 8034 ldrge.w r8, [sp, #52] @ 0x34
  101917. 8029316: f8dd 9028 ldrlt.w r9, [sp, #40] @ 0x28
  101918. 802931a: bfac ite ge
  101919. 802931c: eb07 0903 addge.w r9, r7, r3
  101920. 8029320: eba3 0807 sublt.w r8, r3, r7
  101921. 8029324: 9b06 ldr r3, [sp, #24]
  101922. 8029326: 1aff subs r7, r7, r3
  101923. 8029328: 4417 add r7, r2
  101924. 802932a: f1c2 0336 rsb r3, r2, #54 @ 0x36
  101925. 802932e: 4a6b ldr r2, [pc, #428] @ (80294dc <_strtod_l+0x854>)
  101926. 8029330: 3f01 subs r7, #1
  101927. 8029332: 4297 cmp r7, r2
  101928. 8029334: da51 bge.n 80293da <_strtod_l+0x752>
  101929. 8029336: 1bd1 subs r1, r2, r7
  101930. 8029338: 291f cmp r1, #31
  101931. 802933a: eba3 0301 sub.w r3, r3, r1
  101932. 802933e: f04f 0201 mov.w r2, #1
  101933. 8029342: dc3e bgt.n 80293c2 <_strtod_l+0x73a>
  101934. 8029344: 408a lsls r2, r1
  101935. 8029346: 920c str r2, [sp, #48] @ 0x30
  101936. 8029348: 2200 movs r2, #0
  101937. 802934a: 920b str r2, [sp, #44] @ 0x2c
  101938. 802934c: eb09 0703 add.w r7, r9, r3
  101939. 8029350: 4498 add r8, r3
  101940. 8029352: 9b06 ldr r3, [sp, #24]
  101941. 8029354: 45b9 cmp r9, r7
  101942. 8029356: 4498 add r8, r3
  101943. 8029358: 464b mov r3, r9
  101944. 802935a: bfa8 it ge
  101945. 802935c: 463b movge r3, r7
  101946. 802935e: 4543 cmp r3, r8
  101947. 8029360: bfa8 it ge
  101948. 8029362: 4643 movge r3, r8
  101949. 8029364: 2b00 cmp r3, #0
  101950. 8029366: bfc2 ittt gt
  101951. 8029368: 1aff subgt r7, r7, r3
  101952. 802936a: eba8 0803 subgt.w r8, r8, r3
  101953. 802936e: eba9 0903 subgt.w r9, r9, r3
  101954. 8029372: 9b0a ldr r3, [sp, #40] @ 0x28
  101955. 8029374: 2b00 cmp r3, #0
  101956. 8029376: dd16 ble.n 80293a6 <_strtod_l+0x71e>
  101957. 8029378: 4629 mov r1, r5
  101958. 802937a: 9805 ldr r0, [sp, #20]
  101959. 802937c: 461a mov r2, r3
  101960. 802937e: f002 fd51 bl 802be24 <__pow5mult>
  101961. 8029382: 4605 mov r5, r0
  101962. 8029384: 2800 cmp r0, #0
  101963. 8029386: d0b5 beq.n 80292f4 <_strtod_l+0x66c>
  101964. 8029388: 4601 mov r1, r0
  101965. 802938a: 9a12 ldr r2, [sp, #72] @ 0x48
  101966. 802938c: 9805 ldr r0, [sp, #20]
  101967. 802938e: f002 fc9f bl 802bcd0 <__multiply>
  101968. 8029392: 900f str r0, [sp, #60] @ 0x3c
  101969. 8029394: 2800 cmp r0, #0
  101970. 8029396: f43f ae87 beq.w 80290a8 <_strtod_l+0x420>
  101971. 802939a: 9912 ldr r1, [sp, #72] @ 0x48
  101972. 802939c: 9805 ldr r0, [sp, #20]
  101973. 802939e: f002 fb83 bl 802baa8 <_Bfree>
  101974. 80293a2: 9b0f ldr r3, [sp, #60] @ 0x3c
  101975. 80293a4: 9312 str r3, [sp, #72] @ 0x48
  101976. 80293a6: 2f00 cmp r7, #0
  101977. 80293a8: dc1b bgt.n 80293e2 <_strtod_l+0x75a>
  101978. 80293aa: 9b09 ldr r3, [sp, #36] @ 0x24
  101979. 80293ac: 2b00 cmp r3, #0
  101980. 80293ae: dd21 ble.n 80293f4 <_strtod_l+0x76c>
  101981. 80293b0: 4631 mov r1, r6
  101982. 80293b2: 9a0d ldr r2, [sp, #52] @ 0x34
  101983. 80293b4: 9805 ldr r0, [sp, #20]
  101984. 80293b6: f002 fd35 bl 802be24 <__pow5mult>
  101985. 80293ba: 4606 mov r6, r0
  101986. 80293bc: b9d0 cbnz r0, 80293f4 <_strtod_l+0x76c>
  101987. 80293be: 2600 movs r6, #0
  101988. 80293c0: e672 b.n 80290a8 <_strtod_l+0x420>
  101989. 80293c2: f1c7 477f rsb r7, r7, #4278190080 @ 0xff000000
  101990. 80293c6: f507 077f add.w r7, r7, #16711680 @ 0xff0000
  101991. 80293ca: f507 477b add.w r7, r7, #64256 @ 0xfb00
  101992. 80293ce: 37e2 adds r7, #226 @ 0xe2
  101993. 80293d0: fa02 f107 lsl.w r1, r2, r7
  101994. 80293d4: 910b str r1, [sp, #44] @ 0x2c
  101995. 80293d6: 920c str r2, [sp, #48] @ 0x30
  101996. 80293d8: e7b8 b.n 802934c <_strtod_l+0x6c4>
  101997. 80293da: 2200 movs r2, #0
  101998. 80293dc: 920b str r2, [sp, #44] @ 0x2c
  101999. 80293de: 2201 movs r2, #1
  102000. 80293e0: e7f9 b.n 80293d6 <_strtod_l+0x74e>
  102001. 80293e2: 9912 ldr r1, [sp, #72] @ 0x48
  102002. 80293e4: 9805 ldr r0, [sp, #20]
  102003. 80293e6: 463a mov r2, r7
  102004. 80293e8: f002 fd76 bl 802bed8 <__lshift>
  102005. 80293ec: 9012 str r0, [sp, #72] @ 0x48
  102006. 80293ee: 2800 cmp r0, #0
  102007. 80293f0: d1db bne.n 80293aa <_strtod_l+0x722>
  102008. 80293f2: e659 b.n 80290a8 <_strtod_l+0x420>
  102009. 80293f4: f1b8 0f00 cmp.w r8, #0
  102010. 80293f8: dd07 ble.n 802940a <_strtod_l+0x782>
  102011. 80293fa: 4631 mov r1, r6
  102012. 80293fc: 9805 ldr r0, [sp, #20]
  102013. 80293fe: 4642 mov r2, r8
  102014. 8029400: f002 fd6a bl 802bed8 <__lshift>
  102015. 8029404: 4606 mov r6, r0
  102016. 8029406: 2800 cmp r0, #0
  102017. 8029408: d0d9 beq.n 80293be <_strtod_l+0x736>
  102018. 802940a: f1b9 0f00 cmp.w r9, #0
  102019. 802940e: dd08 ble.n 8029422 <_strtod_l+0x79a>
  102020. 8029410: 4629 mov r1, r5
  102021. 8029412: 9805 ldr r0, [sp, #20]
  102022. 8029414: 464a mov r2, r9
  102023. 8029416: f002 fd5f bl 802bed8 <__lshift>
  102024. 802941a: 4605 mov r5, r0
  102025. 802941c: 2800 cmp r0, #0
  102026. 802941e: f43f ae43 beq.w 80290a8 <_strtod_l+0x420>
  102027. 8029422: 9912 ldr r1, [sp, #72] @ 0x48
  102028. 8029424: 9805 ldr r0, [sp, #20]
  102029. 8029426: 4632 mov r2, r6
  102030. 8029428: f002 fdde bl 802bfe8 <__mdiff>
  102031. 802942c: 4604 mov r4, r0
  102032. 802942e: 2800 cmp r0, #0
  102033. 8029430: f43f ae3a beq.w 80290a8 <_strtod_l+0x420>
  102034. 8029434: 2300 movs r3, #0
  102035. 8029436: f8d0 800c ldr.w r8, [r0, #12]
  102036. 802943a: 60c3 str r3, [r0, #12]
  102037. 802943c: 4629 mov r1, r5
  102038. 802943e: f002 fdb7 bl 802bfb0 <__mcmp>
  102039. 8029442: 2800 cmp r0, #0
  102040. 8029444: da4e bge.n 80294e4 <_strtod_l+0x85c>
  102041. 8029446: ea58 080a orrs.w r8, r8, sl
  102042. 802944a: d174 bne.n 8029536 <_strtod_l+0x8ae>
  102043. 802944c: f3cb 0313 ubfx r3, fp, #0, #20
  102044. 8029450: 2b00 cmp r3, #0
  102045. 8029452: d170 bne.n 8029536 <_strtod_l+0x8ae>
  102046. 8029454: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  102047. 8029458: 0d1b lsrs r3, r3, #20
  102048. 802945a: 051b lsls r3, r3, #20
  102049. 802945c: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  102050. 8029460: d969 bls.n 8029536 <_strtod_l+0x8ae>
  102051. 8029462: 6963 ldr r3, [r4, #20]
  102052. 8029464: b913 cbnz r3, 802946c <_strtod_l+0x7e4>
  102053. 8029466: 6923 ldr r3, [r4, #16]
  102054. 8029468: 2b01 cmp r3, #1
  102055. 802946a: dd64 ble.n 8029536 <_strtod_l+0x8ae>
  102056. 802946c: 4621 mov r1, r4
  102057. 802946e: 2201 movs r2, #1
  102058. 8029470: 9805 ldr r0, [sp, #20]
  102059. 8029472: f002 fd31 bl 802bed8 <__lshift>
  102060. 8029476: 4629 mov r1, r5
  102061. 8029478: 4604 mov r4, r0
  102062. 802947a: f002 fd99 bl 802bfb0 <__mcmp>
  102063. 802947e: 2800 cmp r0, #0
  102064. 8029480: dd59 ble.n 8029536 <_strtod_l+0x8ae>
  102065. 8029482: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  102066. 8029486: 9a06 ldr r2, [sp, #24]
  102067. 8029488: 0d1b lsrs r3, r3, #20
  102068. 802948a: 051b lsls r3, r3, #20
  102069. 802948c: 2a00 cmp r2, #0
  102070. 802948e: d070 beq.n 8029572 <_strtod_l+0x8ea>
  102071. 8029490: f1b3 6fd6 cmp.w r3, #112197632 @ 0x6b00000
  102072. 8029494: d86d bhi.n 8029572 <_strtod_l+0x8ea>
  102073. 8029496: f1b3 7f5c cmp.w r3, #57671680 @ 0x3700000
  102074. 802949a: f67f ae99 bls.w 80291d0 <_strtod_l+0x548>
  102075. 802949e: ed9f 7b0c vldr d7, [pc, #48] @ 80294d0 <_strtod_l+0x848>
  102076. 80294a2: ec4b ab16 vmov d6, sl, fp
  102077. 80294a6: 4b0e ldr r3, [pc, #56] @ (80294e0 <_strtod_l+0x858>)
  102078. 80294a8: ee26 7b07 vmul.f64 d7, d6, d7
  102079. 80294ac: ee17 2a90 vmov r2, s15
  102080. 80294b0: 4013 ands r3, r2
  102081. 80294b2: ec5b ab17 vmov sl, fp, d7
  102082. 80294b6: 2b00 cmp r3, #0
  102083. 80294b8: f47f ae01 bne.w 80290be <_strtod_l+0x436>
  102084. 80294bc: 9a05 ldr r2, [sp, #20]
  102085. 80294be: 2322 movs r3, #34 @ 0x22
  102086. 80294c0: 6013 str r3, [r2, #0]
  102087. 80294c2: e5fc b.n 80290be <_strtod_l+0x436>
  102088. 80294c4: f3af 8000 nop.w
  102089. 80294c8: ffc00000 .word 0xffc00000
  102090. 80294cc: 41dfffff .word 0x41dfffff
  102091. 80294d0: 00000000 .word 0x00000000
  102092. 80294d4: 39500000 .word 0x39500000
  102093. 80294d8: 080315a8 .word 0x080315a8
  102094. 80294dc: fffffc02 .word 0xfffffc02
  102095. 80294e0: 7ff00000 .word 0x7ff00000
  102096. 80294e4: 46d9 mov r9, fp
  102097. 80294e6: d15d bne.n 80295a4 <_strtod_l+0x91c>
  102098. 80294e8: f3cb 0313 ubfx r3, fp, #0, #20
  102099. 80294ec: f1b8 0f00 cmp.w r8, #0
  102100. 80294f0: d02a beq.n 8029548 <_strtod_l+0x8c0>
  102101. 80294f2: 4aab ldr r2, [pc, #684] @ (80297a0 <_strtod_l+0xb18>)
  102102. 80294f4: 4293 cmp r3, r2
  102103. 80294f6: d12a bne.n 802954e <_strtod_l+0x8c6>
  102104. 80294f8: 9b06 ldr r3, [sp, #24]
  102105. 80294fa: 4652 mov r2, sl
  102106. 80294fc: b1fb cbz r3, 802953e <_strtod_l+0x8b6>
  102107. 80294fe: 4ba9 ldr r3, [pc, #676] @ (80297a4 <_strtod_l+0xb1c>)
  102108. 8029500: ea0b 0303 and.w r3, fp, r3
  102109. 8029504: f1b3 6fd4 cmp.w r3, #111149056 @ 0x6a00000
  102110. 8029508: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  102111. 802950c: d81a bhi.n 8029544 <_strtod_l+0x8bc>
  102112. 802950e: 0d1b lsrs r3, r3, #20
  102113. 8029510: f1c3 036b rsb r3, r3, #107 @ 0x6b
  102114. 8029514: fa01 f303 lsl.w r3, r1, r3
  102115. 8029518: 429a cmp r2, r3
  102116. 802951a: d118 bne.n 802954e <_strtod_l+0x8c6>
  102117. 802951c: 4ba2 ldr r3, [pc, #648] @ (80297a8 <_strtod_l+0xb20>)
  102118. 802951e: 4599 cmp r9, r3
  102119. 8029520: d102 bne.n 8029528 <_strtod_l+0x8a0>
  102120. 8029522: 3201 adds r2, #1
  102121. 8029524: f43f adc0 beq.w 80290a8 <_strtod_l+0x420>
  102122. 8029528: 4b9e ldr r3, [pc, #632] @ (80297a4 <_strtod_l+0xb1c>)
  102123. 802952a: ea09 0303 and.w r3, r9, r3
  102124. 802952e: f503 1b80 add.w fp, r3, #1048576 @ 0x100000
  102125. 8029532: f04f 0a00 mov.w sl, #0
  102126. 8029536: 9b06 ldr r3, [sp, #24]
  102127. 8029538: 2b00 cmp r3, #0
  102128. 802953a: d1b0 bne.n 802949e <_strtod_l+0x816>
  102129. 802953c: e5bf b.n 80290be <_strtod_l+0x436>
  102130. 802953e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  102131. 8029542: e7e9 b.n 8029518 <_strtod_l+0x890>
  102132. 8029544: 460b mov r3, r1
  102133. 8029546: e7e7 b.n 8029518 <_strtod_l+0x890>
  102134. 8029548: ea53 030a orrs.w r3, r3, sl
  102135. 802954c: d099 beq.n 8029482 <_strtod_l+0x7fa>
  102136. 802954e: 9b0b ldr r3, [sp, #44] @ 0x2c
  102137. 8029550: b1c3 cbz r3, 8029584 <_strtod_l+0x8fc>
  102138. 8029552: ea13 0f09 tst.w r3, r9
  102139. 8029556: d0ee beq.n 8029536 <_strtod_l+0x8ae>
  102140. 8029558: 9a06 ldr r2, [sp, #24]
  102141. 802955a: 4650 mov r0, sl
  102142. 802955c: 4659 mov r1, fp
  102143. 802955e: f1b8 0f00 cmp.w r8, #0
  102144. 8029562: d013 beq.n 802958c <_strtod_l+0x904>
  102145. 8029564: f7ff fb74 bl 8028c50 <sulp>
  102146. 8029568: ee39 7b00 vadd.f64 d7, d9, d0
  102147. 802956c: ec5b ab17 vmov sl, fp, d7
  102148. 8029570: e7e1 b.n 8029536 <_strtod_l+0x8ae>
  102149. 8029572: f5a3 1380 sub.w r3, r3, #1048576 @ 0x100000
  102150. 8029576: ea6f 5b13 mvn.w fp, r3, lsr #20
  102151. 802957a: ea6f 5b0b mvn.w fp, fp, lsl #20
  102152. 802957e: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  102153. 8029582: e7d8 b.n 8029536 <_strtod_l+0x8ae>
  102154. 8029584: 9b0c ldr r3, [sp, #48] @ 0x30
  102155. 8029586: ea13 0f0a tst.w r3, sl
  102156. 802958a: e7e4 b.n 8029556 <_strtod_l+0x8ce>
  102157. 802958c: f7ff fb60 bl 8028c50 <sulp>
  102158. 8029590: ee39 0b40 vsub.f64 d0, d9, d0
  102159. 8029594: eeb5 0b40 vcmp.f64 d0, #0.0
  102160. 8029598: eef1 fa10 vmrs APSR_nzcv, fpscr
  102161. 802959c: ec5b ab10 vmov sl, fp, d0
  102162. 80295a0: d1c9 bne.n 8029536 <_strtod_l+0x8ae>
  102163. 80295a2: e615 b.n 80291d0 <_strtod_l+0x548>
  102164. 80295a4: 4629 mov r1, r5
  102165. 80295a6: 4620 mov r0, r4
  102166. 80295a8: f002 fe7a bl 802c2a0 <__ratio>
  102167. 80295ac: eeb0 7b00 vmov.f64 d7, #0 @ 0x40000000 2.0
  102168. 80295b0: eeb4 0bc7 vcmpe.f64 d0, d7
  102169. 80295b4: eef1 fa10 vmrs APSR_nzcv, fpscr
  102170. 80295b8: d85d bhi.n 8029676 <_strtod_l+0x9ee>
  102171. 80295ba: f1b8 0f00 cmp.w r8, #0
  102172. 80295be: d164 bne.n 802968a <_strtod_l+0xa02>
  102173. 80295c0: f1ba 0f00 cmp.w sl, #0
  102174. 80295c4: d14b bne.n 802965e <_strtod_l+0x9d6>
  102175. 80295c6: f3cb 0313 ubfx r3, fp, #0, #20
  102176. 80295ca: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  102177. 80295ce: 2b00 cmp r3, #0
  102178. 80295d0: d160 bne.n 8029694 <_strtod_l+0xa0c>
  102179. 80295d2: eeb4 0bc8 vcmpe.f64 d0, d8
  102180. 80295d6: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  102181. 80295da: eef1 fa10 vmrs APSR_nzcv, fpscr
  102182. 80295de: d401 bmi.n 80295e4 <_strtod_l+0x95c>
  102183. 80295e0: ee20 8b08 vmul.f64 d8, d0, d8
  102184. 80295e4: eeb1 ab48 vneg.f64 d10, d8
  102185. 80295e8: 486e ldr r0, [pc, #440] @ (80297a4 <_strtod_l+0xb1c>)
  102186. 80295ea: 4970 ldr r1, [pc, #448] @ (80297ac <_strtod_l+0xb24>)
  102187. 80295ec: ea09 0700 and.w r7, r9, r0
  102188. 80295f0: 428f cmp r7, r1
  102189. 80295f2: ec53 2b1a vmov r2, r3, d10
  102190. 80295f6: d17d bne.n 80296f4 <_strtod_l+0xa6c>
  102191. 80295f8: f1a9 7b54 sub.w fp, r9, #55574528 @ 0x3500000
  102192. 80295fc: ec4b ab1c vmov d12, sl, fp
  102193. 8029600: eeb0 0b4c vmov.f64 d0, d12
  102194. 8029604: f002 fd84 bl 802c110 <__ulp>
  102195. 8029608: 4866 ldr r0, [pc, #408] @ (80297a4 <_strtod_l+0xb1c>)
  102196. 802960a: eea0 cb0a vfma.f64 d12, d0, d10
  102197. 802960e: ee1c 3a90 vmov r3, s25
  102198. 8029612: 4a67 ldr r2, [pc, #412] @ (80297b0 <_strtod_l+0xb28>)
  102199. 8029614: ea03 0100 and.w r1, r3, r0
  102200. 8029618: 4291 cmp r1, r2
  102201. 802961a: ec5b ab1c vmov sl, fp, d12
  102202. 802961e: d93c bls.n 802969a <_strtod_l+0xa12>
  102203. 8029620: ee19 2a90 vmov r2, s19
  102204. 8029624: 4b60 ldr r3, [pc, #384] @ (80297a8 <_strtod_l+0xb20>)
  102205. 8029626: 429a cmp r2, r3
  102206. 8029628: d104 bne.n 8029634 <_strtod_l+0x9ac>
  102207. 802962a: ee19 3a10 vmov r3, s18
  102208. 802962e: 3301 adds r3, #1
  102209. 8029630: f43f ad3a beq.w 80290a8 <_strtod_l+0x420>
  102210. 8029634: f8df b170 ldr.w fp, [pc, #368] @ 80297a8 <_strtod_l+0xb20>
  102211. 8029638: f04f 3aff mov.w sl, #4294967295 @ 0xffffffff
  102212. 802963c: 9912 ldr r1, [sp, #72] @ 0x48
  102213. 802963e: 9805 ldr r0, [sp, #20]
  102214. 8029640: f002 fa32 bl 802baa8 <_Bfree>
  102215. 8029644: 9805 ldr r0, [sp, #20]
  102216. 8029646: 4631 mov r1, r6
  102217. 8029648: f002 fa2e bl 802baa8 <_Bfree>
  102218. 802964c: 9805 ldr r0, [sp, #20]
  102219. 802964e: 4629 mov r1, r5
  102220. 8029650: f002 fa2a bl 802baa8 <_Bfree>
  102221. 8029654: 9805 ldr r0, [sp, #20]
  102222. 8029656: 4621 mov r1, r4
  102223. 8029658: f002 fa26 bl 802baa8 <_Bfree>
  102224. 802965c: e625 b.n 80292aa <_strtod_l+0x622>
  102225. 802965e: f1ba 0f01 cmp.w sl, #1
  102226. 8029662: d103 bne.n 802966c <_strtod_l+0x9e4>
  102227. 8029664: f1bb 0f00 cmp.w fp, #0
  102228. 8029668: f43f adb2 beq.w 80291d0 <_strtod_l+0x548>
  102229. 802966c: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  102230. 8029670: eeb7 8b00 vmov.f64 d8, #112 @ 0x3f800000 1.0
  102231. 8029674: e7b8 b.n 80295e8 <_strtod_l+0x960>
  102232. 8029676: eeb6 8b00 vmov.f64 d8, #96 @ 0x3f000000 0.5
  102233. 802967a: ee20 8b08 vmul.f64 d8, d0, d8
  102234. 802967e: f1b8 0f00 cmp.w r8, #0
  102235. 8029682: d0af beq.n 80295e4 <_strtod_l+0x95c>
  102236. 8029684: eeb0 ab48 vmov.f64 d10, d8
  102237. 8029688: e7ae b.n 80295e8 <_strtod_l+0x960>
  102238. 802968a: eeb7 ab00 vmov.f64 d10, #112 @ 0x3f800000 1.0
  102239. 802968e: eeb0 8b4a vmov.f64 d8, d10
  102240. 8029692: e7a9 b.n 80295e8 <_strtod_l+0x960>
  102241. 8029694: eebf ab00 vmov.f64 d10, #240 @ 0xbf800000 -1.0
  102242. 8029698: e7a6 b.n 80295e8 <_strtod_l+0x960>
  102243. 802969a: f103 7b54 add.w fp, r3, #55574528 @ 0x3500000
  102244. 802969e: 9b06 ldr r3, [sp, #24]
  102245. 80296a0: 46d9 mov r9, fp
  102246. 80296a2: 2b00 cmp r3, #0
  102247. 80296a4: d1ca bne.n 802963c <_strtod_l+0x9b4>
  102248. 80296a6: f02b 4300 bic.w r3, fp, #2147483648 @ 0x80000000
  102249. 80296aa: 0d1b lsrs r3, r3, #20
  102250. 80296ac: 051b lsls r3, r3, #20
  102251. 80296ae: 429f cmp r7, r3
  102252. 80296b0: d1c4 bne.n 802963c <_strtod_l+0x9b4>
  102253. 80296b2: ec51 0b18 vmov r0, r1, d8
  102254. 80296b6: f7d7 f84f bl 8000758 <__aeabi_d2lz>
  102255. 80296ba: f7d7 f807 bl 80006cc <__aeabi_l2d>
  102256. 80296be: f3cb 0913 ubfx r9, fp, #0, #20
  102257. 80296c2: ec41 0b17 vmov d7, r0, r1
  102258. 80296c6: ea49 090a orr.w r9, r9, sl
  102259. 80296ca: ea59 0908 orrs.w r9, r9, r8
  102260. 80296ce: ee38 8b47 vsub.f64 d8, d8, d7
  102261. 80296d2: d03c beq.n 802974e <_strtod_l+0xac6>
  102262. 80296d4: ed9f 7b2c vldr d7, [pc, #176] @ 8029788 <_strtod_l+0xb00>
  102263. 80296d8: eeb4 8bc7 vcmpe.f64 d8, d7
  102264. 80296dc: eef1 fa10 vmrs APSR_nzcv, fpscr
  102265. 80296e0: f53f aced bmi.w 80290be <_strtod_l+0x436>
  102266. 80296e4: ed9f 7b2a vldr d7, [pc, #168] @ 8029790 <_strtod_l+0xb08>
  102267. 80296e8: eeb4 8bc7 vcmpe.f64 d8, d7
  102268. 80296ec: eef1 fa10 vmrs APSR_nzcv, fpscr
  102269. 80296f0: dda4 ble.n 802963c <_strtod_l+0x9b4>
  102270. 80296f2: e4e4 b.n 80290be <_strtod_l+0x436>
  102271. 80296f4: 9906 ldr r1, [sp, #24]
  102272. 80296f6: b1e1 cbz r1, 8029732 <_strtod_l+0xaaa>
  102273. 80296f8: f1b7 6fd4 cmp.w r7, #111149056 @ 0x6a00000
  102274. 80296fc: d819 bhi.n 8029732 <_strtod_l+0xaaa>
  102275. 80296fe: eeb4 8bcb vcmpe.f64 d8, d11
  102276. 8029702: eef1 fa10 vmrs APSR_nzcv, fpscr
  102277. 8029706: d811 bhi.n 802972c <_strtod_l+0xaa4>
  102278. 8029708: eebc 8bc8 vcvt.u32.f64 s16, d8
  102279. 802970c: ee18 3a10 vmov r3, s16
  102280. 8029710: 2b01 cmp r3, #1
  102281. 8029712: bf38 it cc
  102282. 8029714: 2301 movcc r3, #1
  102283. 8029716: ee08 3a10 vmov s16, r3
  102284. 802971a: eeb8 8b48 vcvt.f64.u32 d8, s16
  102285. 802971e: f1b8 0f00 cmp.w r8, #0
  102286. 8029722: d111 bne.n 8029748 <_strtod_l+0xac0>
  102287. 8029724: eeb1 7b48 vneg.f64 d7, d8
  102288. 8029728: ec53 2b17 vmov r2, r3, d7
  102289. 802972c: f103 61d6 add.w r1, r3, #112197632 @ 0x6b00000
  102290. 8029730: 1bcb subs r3, r1, r7
  102291. 8029732: eeb0 0b49 vmov.f64 d0, d9
  102292. 8029736: ec43 2b1a vmov d10, r2, r3
  102293. 802973a: f002 fce9 bl 802c110 <__ulp>
  102294. 802973e: eeaa 9b00 vfma.f64 d9, d10, d0
  102295. 8029742: ec5b ab19 vmov sl, fp, d9
  102296. 8029746: e7aa b.n 802969e <_strtod_l+0xa16>
  102297. 8029748: eeb0 7b48 vmov.f64 d7, d8
  102298. 802974c: e7ec b.n 8029728 <_strtod_l+0xaa0>
  102299. 802974e: ed9f 7b12 vldr d7, [pc, #72] @ 8029798 <_strtod_l+0xb10>
  102300. 8029752: eeb4 8bc7 vcmpe.f64 d8, d7
  102301. 8029756: eef1 fa10 vmrs APSR_nzcv, fpscr
  102302. 802975a: f57f af6f bpl.w 802963c <_strtod_l+0x9b4>
  102303. 802975e: e4ae b.n 80290be <_strtod_l+0x436>
  102304. 8029760: 2300 movs r3, #0
  102305. 8029762: 9308 str r3, [sp, #32]
  102306. 8029764: 9a0e ldr r2, [sp, #56] @ 0x38
  102307. 8029766: 9b11 ldr r3, [sp, #68] @ 0x44
  102308. 8029768: 6013 str r3, [r2, #0]
  102309. 802976a: f7ff bacc b.w 8028d06 <_strtod_l+0x7e>
  102310. 802976e: 2a65 cmp r2, #101 @ 0x65
  102311. 8029770: f43f abbc beq.w 8028eec <_strtod_l+0x264>
  102312. 8029774: 2a45 cmp r2, #69 @ 0x45
  102313. 8029776: f43f abb9 beq.w 8028eec <_strtod_l+0x264>
  102314. 802977a: 2301 movs r3, #1
  102315. 802977c: 9306 str r3, [sp, #24]
  102316. 802977e: f7ff bbf0 b.w 8028f62 <_strtod_l+0x2da>
  102317. 8029782: bf00 nop
  102318. 8029784: f3af 8000 nop.w
  102319. 8029788: 94a03595 .word 0x94a03595
  102320. 802978c: 3fdfffff .word 0x3fdfffff
  102321. 8029790: 35afe535 .word 0x35afe535
  102322. 8029794: 3fe00000 .word 0x3fe00000
  102323. 8029798: 94a03595 .word 0x94a03595
  102324. 802979c: 3fcfffff .word 0x3fcfffff
  102325. 80297a0: 000fffff .word 0x000fffff
  102326. 80297a4: 7ff00000 .word 0x7ff00000
  102327. 80297a8: 7fefffff .word 0x7fefffff
  102328. 80297ac: 7fe00000 .word 0x7fe00000
  102329. 80297b0: 7c9fffff .word 0x7c9fffff
  102330. 080297b4 <strtod>:
  102331. 80297b4: 460a mov r2, r1
  102332. 80297b6: 4601 mov r1, r0
  102333. 80297b8: 4802 ldr r0, [pc, #8] @ (80297c4 <strtod+0x10>)
  102334. 80297ba: 4b03 ldr r3, [pc, #12] @ (80297c8 <strtod+0x14>)
  102335. 80297bc: 6800 ldr r0, [r0, #0]
  102336. 80297be: f7ff ba63 b.w 8028c88 <_strtod_l>
  102337. 80297c2: bf00 nop
  102338. 80297c4: 240001d4 .word 0x240001d4
  102339. 80297c8: 24000068 .word 0x24000068
  102340. 080297cc <__cvt>:
  102341. 80297cc: b5f0 push {r4, r5, r6, r7, lr}
  102342. 80297ce: ed2d 8b02 vpush {d8}
  102343. 80297d2: eeb0 8b40 vmov.f64 d8, d0
  102344. 80297d6: b085 sub sp, #20
  102345. 80297d8: 4617 mov r7, r2
  102346. 80297da: 9d0d ldr r5, [sp, #52] @ 0x34
  102347. 80297dc: 9e0c ldr r6, [sp, #48] @ 0x30
  102348. 80297de: ee18 2a90 vmov r2, s17
  102349. 80297e2: f025 0520 bic.w r5, r5, #32
  102350. 80297e6: 2a00 cmp r2, #0
  102351. 80297e8: bfb6 itet lt
  102352. 80297ea: 222d movlt r2, #45 @ 0x2d
  102353. 80297ec: 2200 movge r2, #0
  102354. 80297ee: eeb1 8b40 vneglt.f64 d8, d0
  102355. 80297f2: 2d46 cmp r5, #70 @ 0x46
  102356. 80297f4: 460c mov r4, r1
  102357. 80297f6: 701a strb r2, [r3, #0]
  102358. 80297f8: d004 beq.n 8029804 <__cvt+0x38>
  102359. 80297fa: 2d45 cmp r5, #69 @ 0x45
  102360. 80297fc: d100 bne.n 8029800 <__cvt+0x34>
  102361. 80297fe: 3401 adds r4, #1
  102362. 8029800: 2102 movs r1, #2
  102363. 8029802: e000 b.n 8029806 <__cvt+0x3a>
  102364. 8029804: 2103 movs r1, #3
  102365. 8029806: ab03 add r3, sp, #12
  102366. 8029808: 9301 str r3, [sp, #4]
  102367. 802980a: ab02 add r3, sp, #8
  102368. 802980c: 9300 str r3, [sp, #0]
  102369. 802980e: 4622 mov r2, r4
  102370. 8029810: 4633 mov r3, r6
  102371. 8029812: eeb0 0b48 vmov.f64 d0, d8
  102372. 8029816: f001 f81b bl 802a850 <_dtoa_r>
  102373. 802981a: 2d47 cmp r5, #71 @ 0x47
  102374. 802981c: d114 bne.n 8029848 <__cvt+0x7c>
  102375. 802981e: 07fb lsls r3, r7, #31
  102376. 8029820: d50a bpl.n 8029838 <__cvt+0x6c>
  102377. 8029822: 1902 adds r2, r0, r4
  102378. 8029824: eeb5 8b40 vcmp.f64 d8, #0.0
  102379. 8029828: eef1 fa10 vmrs APSR_nzcv, fpscr
  102380. 802982c: bf08 it eq
  102381. 802982e: 9203 streq r2, [sp, #12]
  102382. 8029830: 2130 movs r1, #48 @ 0x30
  102383. 8029832: 9b03 ldr r3, [sp, #12]
  102384. 8029834: 4293 cmp r3, r2
  102385. 8029836: d319 bcc.n 802986c <__cvt+0xa0>
  102386. 8029838: 9b03 ldr r3, [sp, #12]
  102387. 802983a: 9a0e ldr r2, [sp, #56] @ 0x38
  102388. 802983c: 1a1b subs r3, r3, r0
  102389. 802983e: 6013 str r3, [r2, #0]
  102390. 8029840: b005 add sp, #20
  102391. 8029842: ecbd 8b02 vpop {d8}
  102392. 8029846: bdf0 pop {r4, r5, r6, r7, pc}
  102393. 8029848: 2d46 cmp r5, #70 @ 0x46
  102394. 802984a: eb00 0204 add.w r2, r0, r4
  102395. 802984e: d1e9 bne.n 8029824 <__cvt+0x58>
  102396. 8029850: 7803 ldrb r3, [r0, #0]
  102397. 8029852: 2b30 cmp r3, #48 @ 0x30
  102398. 8029854: d107 bne.n 8029866 <__cvt+0x9a>
  102399. 8029856: eeb5 8b40 vcmp.f64 d8, #0.0
  102400. 802985a: eef1 fa10 vmrs APSR_nzcv, fpscr
  102401. 802985e: bf1c itt ne
  102402. 8029860: f1c4 0401 rsbne r4, r4, #1
  102403. 8029864: 6034 strne r4, [r6, #0]
  102404. 8029866: 6833 ldr r3, [r6, #0]
  102405. 8029868: 441a add r2, r3
  102406. 802986a: e7db b.n 8029824 <__cvt+0x58>
  102407. 802986c: 1c5c adds r4, r3, #1
  102408. 802986e: 9403 str r4, [sp, #12]
  102409. 8029870: 7019 strb r1, [r3, #0]
  102410. 8029872: e7de b.n 8029832 <__cvt+0x66>
  102411. 08029874 <__exponent>:
  102412. 8029874: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  102413. 8029876: 2900 cmp r1, #0
  102414. 8029878: bfba itte lt
  102415. 802987a: 4249 neglt r1, r1
  102416. 802987c: 232d movlt r3, #45 @ 0x2d
  102417. 802987e: 232b movge r3, #43 @ 0x2b
  102418. 8029880: 2909 cmp r1, #9
  102419. 8029882: 7002 strb r2, [r0, #0]
  102420. 8029884: 7043 strb r3, [r0, #1]
  102421. 8029886: dd29 ble.n 80298dc <__exponent+0x68>
  102422. 8029888: f10d 0307 add.w r3, sp, #7
  102423. 802988c: 461d mov r5, r3
  102424. 802988e: 270a movs r7, #10
  102425. 8029890: 461a mov r2, r3
  102426. 8029892: fbb1 f6f7 udiv r6, r1, r7
  102427. 8029896: fb07 1416 mls r4, r7, r6, r1
  102428. 802989a: 3430 adds r4, #48 @ 0x30
  102429. 802989c: f802 4c01 strb.w r4, [r2, #-1]
  102430. 80298a0: 460c mov r4, r1
  102431. 80298a2: 2c63 cmp r4, #99 @ 0x63
  102432. 80298a4: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff
  102433. 80298a8: 4631 mov r1, r6
  102434. 80298aa: dcf1 bgt.n 8029890 <__exponent+0x1c>
  102435. 80298ac: 3130 adds r1, #48 @ 0x30
  102436. 80298ae: 1e94 subs r4, r2, #2
  102437. 80298b0: f803 1c01 strb.w r1, [r3, #-1]
  102438. 80298b4: 1c41 adds r1, r0, #1
  102439. 80298b6: 4623 mov r3, r4
  102440. 80298b8: 42ab cmp r3, r5
  102441. 80298ba: d30a bcc.n 80298d2 <__exponent+0x5e>
  102442. 80298bc: f10d 0309 add.w r3, sp, #9
  102443. 80298c0: 1a9b subs r3, r3, r2
  102444. 80298c2: 42ac cmp r4, r5
  102445. 80298c4: bf88 it hi
  102446. 80298c6: 2300 movhi r3, #0
  102447. 80298c8: 3302 adds r3, #2
  102448. 80298ca: 4403 add r3, r0
  102449. 80298cc: 1a18 subs r0, r3, r0
  102450. 80298ce: b003 add sp, #12
  102451. 80298d0: bdf0 pop {r4, r5, r6, r7, pc}
  102452. 80298d2: f813 6b01 ldrb.w r6, [r3], #1
  102453. 80298d6: f801 6f01 strb.w r6, [r1, #1]!
  102454. 80298da: e7ed b.n 80298b8 <__exponent+0x44>
  102455. 80298dc: 2330 movs r3, #48 @ 0x30
  102456. 80298de: 3130 adds r1, #48 @ 0x30
  102457. 80298e0: 7083 strb r3, [r0, #2]
  102458. 80298e2: 70c1 strb r1, [r0, #3]
  102459. 80298e4: 1d03 adds r3, r0, #4
  102460. 80298e6: e7f1 b.n 80298cc <__exponent+0x58>
  102461. 080298e8 <_printf_float>:
  102462. 80298e8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  102463. 80298ec: b08d sub sp, #52 @ 0x34
  102464. 80298ee: 460c mov r4, r1
  102465. 80298f0: f8dd 8058 ldr.w r8, [sp, #88] @ 0x58
  102466. 80298f4: 4616 mov r6, r2
  102467. 80298f6: 461f mov r7, r3
  102468. 80298f8: 4605 mov r5, r0
  102469. 80298fa: f000 fe0b bl 802a514 <_localeconv_r>
  102470. 80298fe: f8d0 b000 ldr.w fp, [r0]
  102471. 8029902: 4658 mov r0, fp
  102472. 8029904: f7d6 fd4c bl 80003a0 <strlen>
  102473. 8029908: 2300 movs r3, #0
  102474. 802990a: 930a str r3, [sp, #40] @ 0x28
  102475. 802990c: f8d8 3000 ldr.w r3, [r8]
  102476. 8029910: f894 9018 ldrb.w r9, [r4, #24]
  102477. 8029914: 6822 ldr r2, [r4, #0]
  102478. 8029916: 9005 str r0, [sp, #20]
  102479. 8029918: 3307 adds r3, #7
  102480. 802991a: f023 0307 bic.w r3, r3, #7
  102481. 802991e: f103 0108 add.w r1, r3, #8
  102482. 8029922: f8c8 1000 str.w r1, [r8]
  102483. 8029926: ed93 0b00 vldr d0, [r3]
  102484. 802992a: ed9f 6b97 vldr d6, [pc, #604] @ 8029b88 <_printf_float+0x2a0>
  102485. 802992e: eeb0 7bc0 vabs.f64 d7, d0
  102486. 8029932: eeb4 7b46 vcmp.f64 d7, d6
  102487. 8029936: eef1 fa10 vmrs APSR_nzcv, fpscr
  102488. 802993a: ed84 0b12 vstr d0, [r4, #72] @ 0x48
  102489. 802993e: dd24 ble.n 802998a <_printf_float+0xa2>
  102490. 8029940: eeb5 0bc0 vcmpe.f64 d0, #0.0
  102491. 8029944: eef1 fa10 vmrs APSR_nzcv, fpscr
  102492. 8029948: d502 bpl.n 8029950 <_printf_float+0x68>
  102493. 802994a: 232d movs r3, #45 @ 0x2d
  102494. 802994c: f884 3043 strb.w r3, [r4, #67] @ 0x43
  102495. 8029950: 498f ldr r1, [pc, #572] @ (8029b90 <_printf_float+0x2a8>)
  102496. 8029952: 4b90 ldr r3, [pc, #576] @ (8029b94 <_printf_float+0x2ac>)
  102497. 8029954: f1b9 0f47 cmp.w r9, #71 @ 0x47
  102498. 8029958: bf94 ite ls
  102499. 802995a: 4688 movls r8, r1
  102500. 802995c: 4698 movhi r8, r3
  102501. 802995e: f022 0204 bic.w r2, r2, #4
  102502. 8029962: 2303 movs r3, #3
  102503. 8029964: 6123 str r3, [r4, #16]
  102504. 8029966: 6022 str r2, [r4, #0]
  102505. 8029968: f04f 0a00 mov.w sl, #0
  102506. 802996c: 9700 str r7, [sp, #0]
  102507. 802996e: 4633 mov r3, r6
  102508. 8029970: aa0b add r2, sp, #44 @ 0x2c
  102509. 8029972: 4621 mov r1, r4
  102510. 8029974: 4628 mov r0, r5
  102511. 8029976: f000 f9d1 bl 8029d1c <_printf_common>
  102512. 802997a: 3001 adds r0, #1
  102513. 802997c: f040 8089 bne.w 8029a92 <_printf_float+0x1aa>
  102514. 8029980: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  102515. 8029984: b00d add sp, #52 @ 0x34
  102516. 8029986: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  102517. 802998a: eeb4 0b40 vcmp.f64 d0, d0
  102518. 802998e: eef1 fa10 vmrs APSR_nzcv, fpscr
  102519. 8029992: d709 bvc.n 80299a8 <_printf_float+0xc0>
  102520. 8029994: ee10 3a90 vmov r3, s1
  102521. 8029998: 2b00 cmp r3, #0
  102522. 802999a: bfbc itt lt
  102523. 802999c: 232d movlt r3, #45 @ 0x2d
  102524. 802999e: f884 3043 strblt.w r3, [r4, #67] @ 0x43
  102525. 80299a2: 497d ldr r1, [pc, #500] @ (8029b98 <_printf_float+0x2b0>)
  102526. 80299a4: 4b7d ldr r3, [pc, #500] @ (8029b9c <_printf_float+0x2b4>)
  102527. 80299a6: e7d5 b.n 8029954 <_printf_float+0x6c>
  102528. 80299a8: 6863 ldr r3, [r4, #4]
  102529. 80299aa: 1c59 adds r1, r3, #1
  102530. 80299ac: f009 0adf and.w sl, r9, #223 @ 0xdf
  102531. 80299b0: d139 bne.n 8029a26 <_printf_float+0x13e>
  102532. 80299b2: 2306 movs r3, #6
  102533. 80299b4: 6063 str r3, [r4, #4]
  102534. 80299b6: f442 6280 orr.w r2, r2, #1024 @ 0x400
  102535. 80299ba: 2300 movs r3, #0
  102536. 80299bc: 6022 str r2, [r4, #0]
  102537. 80299be: 9303 str r3, [sp, #12]
  102538. 80299c0: ab0a add r3, sp, #40 @ 0x28
  102539. 80299c2: e9cd 9301 strd r9, r3, [sp, #4]
  102540. 80299c6: ab09 add r3, sp, #36 @ 0x24
  102541. 80299c8: 9300 str r3, [sp, #0]
  102542. 80299ca: 6861 ldr r1, [r4, #4]
  102543. 80299cc: f10d 0323 add.w r3, sp, #35 @ 0x23
  102544. 80299d0: 4628 mov r0, r5
  102545. 80299d2: f7ff fefb bl 80297cc <__cvt>
  102546. 80299d6: f1ba 0f47 cmp.w sl, #71 @ 0x47
  102547. 80299da: 9909 ldr r1, [sp, #36] @ 0x24
  102548. 80299dc: 4680 mov r8, r0
  102549. 80299de: d129 bne.n 8029a34 <_printf_float+0x14c>
  102550. 80299e0: 1cc8 adds r0, r1, #3
  102551. 80299e2: db02 blt.n 80299ea <_printf_float+0x102>
  102552. 80299e4: 6863 ldr r3, [r4, #4]
  102553. 80299e6: 4299 cmp r1, r3
  102554. 80299e8: dd41 ble.n 8029a6e <_printf_float+0x186>
  102555. 80299ea: f1a9 0902 sub.w r9, r9, #2
  102556. 80299ee: fa5f f989 uxtb.w r9, r9
  102557. 80299f2: 3901 subs r1, #1
  102558. 80299f4: 464a mov r2, r9
  102559. 80299f6: f104 0050 add.w r0, r4, #80 @ 0x50
  102560. 80299fa: 9109 str r1, [sp, #36] @ 0x24
  102561. 80299fc: f7ff ff3a bl 8029874 <__exponent>
  102562. 8029a00: 9a0a ldr r2, [sp, #40] @ 0x28
  102563. 8029a02: 1813 adds r3, r2, r0
  102564. 8029a04: 2a01 cmp r2, #1
  102565. 8029a06: 4682 mov sl, r0
  102566. 8029a08: 6123 str r3, [r4, #16]
  102567. 8029a0a: dc02 bgt.n 8029a12 <_printf_float+0x12a>
  102568. 8029a0c: 6822 ldr r2, [r4, #0]
  102569. 8029a0e: 07d2 lsls r2, r2, #31
  102570. 8029a10: d501 bpl.n 8029a16 <_printf_float+0x12e>
  102571. 8029a12: 3301 adds r3, #1
  102572. 8029a14: 6123 str r3, [r4, #16]
  102573. 8029a16: f89d 3023 ldrb.w r3, [sp, #35] @ 0x23
  102574. 8029a1a: 2b00 cmp r3, #0
  102575. 8029a1c: d0a6 beq.n 802996c <_printf_float+0x84>
  102576. 8029a1e: 232d movs r3, #45 @ 0x2d
  102577. 8029a20: f884 3043 strb.w r3, [r4, #67] @ 0x43
  102578. 8029a24: e7a2 b.n 802996c <_printf_float+0x84>
  102579. 8029a26: f1ba 0f47 cmp.w sl, #71 @ 0x47
  102580. 8029a2a: d1c4 bne.n 80299b6 <_printf_float+0xce>
  102581. 8029a2c: 2b00 cmp r3, #0
  102582. 8029a2e: d1c2 bne.n 80299b6 <_printf_float+0xce>
  102583. 8029a30: 2301 movs r3, #1
  102584. 8029a32: e7bf b.n 80299b4 <_printf_float+0xcc>
  102585. 8029a34: f1b9 0f65 cmp.w r9, #101 @ 0x65
  102586. 8029a38: d9db bls.n 80299f2 <_printf_float+0x10a>
  102587. 8029a3a: f1b9 0f66 cmp.w r9, #102 @ 0x66
  102588. 8029a3e: d118 bne.n 8029a72 <_printf_float+0x18a>
  102589. 8029a40: 2900 cmp r1, #0
  102590. 8029a42: 6863 ldr r3, [r4, #4]
  102591. 8029a44: dd0b ble.n 8029a5e <_printf_float+0x176>
  102592. 8029a46: 6121 str r1, [r4, #16]
  102593. 8029a48: b913 cbnz r3, 8029a50 <_printf_float+0x168>
  102594. 8029a4a: 6822 ldr r2, [r4, #0]
  102595. 8029a4c: 07d0 lsls r0, r2, #31
  102596. 8029a4e: d502 bpl.n 8029a56 <_printf_float+0x16e>
  102597. 8029a50: 3301 adds r3, #1
  102598. 8029a52: 440b add r3, r1
  102599. 8029a54: 6123 str r3, [r4, #16]
  102600. 8029a56: 65a1 str r1, [r4, #88] @ 0x58
  102601. 8029a58: f04f 0a00 mov.w sl, #0
  102602. 8029a5c: e7db b.n 8029a16 <_printf_float+0x12e>
  102603. 8029a5e: b913 cbnz r3, 8029a66 <_printf_float+0x17e>
  102604. 8029a60: 6822 ldr r2, [r4, #0]
  102605. 8029a62: 07d2 lsls r2, r2, #31
  102606. 8029a64: d501 bpl.n 8029a6a <_printf_float+0x182>
  102607. 8029a66: 3302 adds r3, #2
  102608. 8029a68: e7f4 b.n 8029a54 <_printf_float+0x16c>
  102609. 8029a6a: 2301 movs r3, #1
  102610. 8029a6c: e7f2 b.n 8029a54 <_printf_float+0x16c>
  102611. 8029a6e: f04f 0967 mov.w r9, #103 @ 0x67
  102612. 8029a72: 9b0a ldr r3, [sp, #40] @ 0x28
  102613. 8029a74: 4299 cmp r1, r3
  102614. 8029a76: db05 blt.n 8029a84 <_printf_float+0x19c>
  102615. 8029a78: 6823 ldr r3, [r4, #0]
  102616. 8029a7a: 6121 str r1, [r4, #16]
  102617. 8029a7c: 07d8 lsls r0, r3, #31
  102618. 8029a7e: d5ea bpl.n 8029a56 <_printf_float+0x16e>
  102619. 8029a80: 1c4b adds r3, r1, #1
  102620. 8029a82: e7e7 b.n 8029a54 <_printf_float+0x16c>
  102621. 8029a84: 2900 cmp r1, #0
  102622. 8029a86: bfd4 ite le
  102623. 8029a88: f1c1 0202 rsble r2, r1, #2
  102624. 8029a8c: 2201 movgt r2, #1
  102625. 8029a8e: 4413 add r3, r2
  102626. 8029a90: e7e0 b.n 8029a54 <_printf_float+0x16c>
  102627. 8029a92: 6823 ldr r3, [r4, #0]
  102628. 8029a94: 055a lsls r2, r3, #21
  102629. 8029a96: d407 bmi.n 8029aa8 <_printf_float+0x1c0>
  102630. 8029a98: 6923 ldr r3, [r4, #16]
  102631. 8029a9a: 4642 mov r2, r8
  102632. 8029a9c: 4631 mov r1, r6
  102633. 8029a9e: 4628 mov r0, r5
  102634. 8029aa0: 47b8 blx r7
  102635. 8029aa2: 3001 adds r0, #1
  102636. 8029aa4: d12a bne.n 8029afc <_printf_float+0x214>
  102637. 8029aa6: e76b b.n 8029980 <_printf_float+0x98>
  102638. 8029aa8: f1b9 0f65 cmp.w r9, #101 @ 0x65
  102639. 8029aac: f240 80e0 bls.w 8029c70 <_printf_float+0x388>
  102640. 8029ab0: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  102641. 8029ab4: eeb5 7b40 vcmp.f64 d7, #0.0
  102642. 8029ab8: eef1 fa10 vmrs APSR_nzcv, fpscr
  102643. 8029abc: d133 bne.n 8029b26 <_printf_float+0x23e>
  102644. 8029abe: 4a38 ldr r2, [pc, #224] @ (8029ba0 <_printf_float+0x2b8>)
  102645. 8029ac0: 2301 movs r3, #1
  102646. 8029ac2: 4631 mov r1, r6
  102647. 8029ac4: 4628 mov r0, r5
  102648. 8029ac6: 47b8 blx r7
  102649. 8029ac8: 3001 adds r0, #1
  102650. 8029aca: f43f af59 beq.w 8029980 <_printf_float+0x98>
  102651. 8029ace: e9dd 3809 ldrd r3, r8, [sp, #36] @ 0x24
  102652. 8029ad2: 4543 cmp r3, r8
  102653. 8029ad4: db02 blt.n 8029adc <_printf_float+0x1f4>
  102654. 8029ad6: 6823 ldr r3, [r4, #0]
  102655. 8029ad8: 07d8 lsls r0, r3, #31
  102656. 8029ada: d50f bpl.n 8029afc <_printf_float+0x214>
  102657. 8029adc: 9b05 ldr r3, [sp, #20]
  102658. 8029ade: 465a mov r2, fp
  102659. 8029ae0: 4631 mov r1, r6
  102660. 8029ae2: 4628 mov r0, r5
  102661. 8029ae4: 47b8 blx r7
  102662. 8029ae6: 3001 adds r0, #1
  102663. 8029ae8: f43f af4a beq.w 8029980 <_printf_float+0x98>
  102664. 8029aec: f04f 0900 mov.w r9, #0
  102665. 8029af0: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  102666. 8029af4: f104 0a1a add.w sl, r4, #26
  102667. 8029af8: 45c8 cmp r8, r9
  102668. 8029afa: dc09 bgt.n 8029b10 <_printf_float+0x228>
  102669. 8029afc: 6823 ldr r3, [r4, #0]
  102670. 8029afe: 079b lsls r3, r3, #30
  102671. 8029b00: f100 8107 bmi.w 8029d12 <_printf_float+0x42a>
  102672. 8029b04: 68e0 ldr r0, [r4, #12]
  102673. 8029b06: 9b0b ldr r3, [sp, #44] @ 0x2c
  102674. 8029b08: 4298 cmp r0, r3
  102675. 8029b0a: bfb8 it lt
  102676. 8029b0c: 4618 movlt r0, r3
  102677. 8029b0e: e739 b.n 8029984 <_printf_float+0x9c>
  102678. 8029b10: 2301 movs r3, #1
  102679. 8029b12: 4652 mov r2, sl
  102680. 8029b14: 4631 mov r1, r6
  102681. 8029b16: 4628 mov r0, r5
  102682. 8029b18: 47b8 blx r7
  102683. 8029b1a: 3001 adds r0, #1
  102684. 8029b1c: f43f af30 beq.w 8029980 <_printf_float+0x98>
  102685. 8029b20: f109 0901 add.w r9, r9, #1
  102686. 8029b24: e7e8 b.n 8029af8 <_printf_float+0x210>
  102687. 8029b26: 9b09 ldr r3, [sp, #36] @ 0x24
  102688. 8029b28: 2b00 cmp r3, #0
  102689. 8029b2a: dc3b bgt.n 8029ba4 <_printf_float+0x2bc>
  102690. 8029b2c: 4a1c ldr r2, [pc, #112] @ (8029ba0 <_printf_float+0x2b8>)
  102691. 8029b2e: 2301 movs r3, #1
  102692. 8029b30: 4631 mov r1, r6
  102693. 8029b32: 4628 mov r0, r5
  102694. 8029b34: 47b8 blx r7
  102695. 8029b36: 3001 adds r0, #1
  102696. 8029b38: f43f af22 beq.w 8029980 <_printf_float+0x98>
  102697. 8029b3c: e9dd 3909 ldrd r3, r9, [sp, #36] @ 0x24
  102698. 8029b40: ea59 0303 orrs.w r3, r9, r3
  102699. 8029b44: d102 bne.n 8029b4c <_printf_float+0x264>
  102700. 8029b46: 6823 ldr r3, [r4, #0]
  102701. 8029b48: 07d9 lsls r1, r3, #31
  102702. 8029b4a: d5d7 bpl.n 8029afc <_printf_float+0x214>
  102703. 8029b4c: 9b05 ldr r3, [sp, #20]
  102704. 8029b4e: 465a mov r2, fp
  102705. 8029b50: 4631 mov r1, r6
  102706. 8029b52: 4628 mov r0, r5
  102707. 8029b54: 47b8 blx r7
  102708. 8029b56: 3001 adds r0, #1
  102709. 8029b58: f43f af12 beq.w 8029980 <_printf_float+0x98>
  102710. 8029b5c: f04f 0a00 mov.w sl, #0
  102711. 8029b60: f104 0b1a add.w fp, r4, #26
  102712. 8029b64: 9b09 ldr r3, [sp, #36] @ 0x24
  102713. 8029b66: 425b negs r3, r3
  102714. 8029b68: 4553 cmp r3, sl
  102715. 8029b6a: dc01 bgt.n 8029b70 <_printf_float+0x288>
  102716. 8029b6c: 464b mov r3, r9
  102717. 8029b6e: e794 b.n 8029a9a <_printf_float+0x1b2>
  102718. 8029b70: 2301 movs r3, #1
  102719. 8029b72: 465a mov r2, fp
  102720. 8029b74: 4631 mov r1, r6
  102721. 8029b76: 4628 mov r0, r5
  102722. 8029b78: 47b8 blx r7
  102723. 8029b7a: 3001 adds r0, #1
  102724. 8029b7c: f43f af00 beq.w 8029980 <_printf_float+0x98>
  102725. 8029b80: f10a 0a01 add.w sl, sl, #1
  102726. 8029b84: e7ee b.n 8029b64 <_printf_float+0x27c>
  102727. 8029b86: bf00 nop
  102728. 8029b88: ffffffff .word 0xffffffff
  102729. 8029b8c: 7fefffff .word 0x7fefffff
  102730. 8029b90: 080316d1 .word 0x080316d1
  102731. 8029b94: 080316d5 .word 0x080316d5
  102732. 8029b98: 080316d9 .word 0x080316d9
  102733. 8029b9c: 080316dd .word 0x080316dd
  102734. 8029ba0: 080316e1 .word 0x080316e1
  102735. 8029ba4: 6da3 ldr r3, [r4, #88] @ 0x58
  102736. 8029ba6: f8dd a028 ldr.w sl, [sp, #40] @ 0x28
  102737. 8029baa: 4553 cmp r3, sl
  102738. 8029bac: bfa8 it ge
  102739. 8029bae: 4653 movge r3, sl
  102740. 8029bb0: 2b00 cmp r3, #0
  102741. 8029bb2: 4699 mov r9, r3
  102742. 8029bb4: dc37 bgt.n 8029c26 <_printf_float+0x33e>
  102743. 8029bb6: 2300 movs r3, #0
  102744. 8029bb8: 9307 str r3, [sp, #28]
  102745. 8029bba: ea29 79e9 bic.w r9, r9, r9, asr #31
  102746. 8029bbe: f104 021a add.w r2, r4, #26
  102747. 8029bc2: 6da3 ldr r3, [r4, #88] @ 0x58
  102748. 8029bc4: 9907 ldr r1, [sp, #28]
  102749. 8029bc6: 9306 str r3, [sp, #24]
  102750. 8029bc8: eba3 0309 sub.w r3, r3, r9
  102751. 8029bcc: 428b cmp r3, r1
  102752. 8029bce: dc31 bgt.n 8029c34 <_printf_float+0x34c>
  102753. 8029bd0: 9b09 ldr r3, [sp, #36] @ 0x24
  102754. 8029bd2: 459a cmp sl, r3
  102755. 8029bd4: dc3b bgt.n 8029c4e <_printf_float+0x366>
  102756. 8029bd6: 6823 ldr r3, [r4, #0]
  102757. 8029bd8: 07da lsls r2, r3, #31
  102758. 8029bda: d438 bmi.n 8029c4e <_printf_float+0x366>
  102759. 8029bdc: 9b09 ldr r3, [sp, #36] @ 0x24
  102760. 8029bde: ebaa 0903 sub.w r9, sl, r3
  102761. 8029be2: 9b06 ldr r3, [sp, #24]
  102762. 8029be4: ebaa 0303 sub.w r3, sl, r3
  102763. 8029be8: 4599 cmp r9, r3
  102764. 8029bea: bfa8 it ge
  102765. 8029bec: 4699 movge r9, r3
  102766. 8029bee: f1b9 0f00 cmp.w r9, #0
  102767. 8029bf2: dc34 bgt.n 8029c5e <_printf_float+0x376>
  102768. 8029bf4: f04f 0800 mov.w r8, #0
  102769. 8029bf8: ea29 79e9 bic.w r9, r9, r9, asr #31
  102770. 8029bfc: f104 0b1a add.w fp, r4, #26
  102771. 8029c00: 9b09 ldr r3, [sp, #36] @ 0x24
  102772. 8029c02: ebaa 0303 sub.w r3, sl, r3
  102773. 8029c06: eba3 0309 sub.w r3, r3, r9
  102774. 8029c0a: 4543 cmp r3, r8
  102775. 8029c0c: f77f af76 ble.w 8029afc <_printf_float+0x214>
  102776. 8029c10: 2301 movs r3, #1
  102777. 8029c12: 465a mov r2, fp
  102778. 8029c14: 4631 mov r1, r6
  102779. 8029c16: 4628 mov r0, r5
  102780. 8029c18: 47b8 blx r7
  102781. 8029c1a: 3001 adds r0, #1
  102782. 8029c1c: f43f aeb0 beq.w 8029980 <_printf_float+0x98>
  102783. 8029c20: f108 0801 add.w r8, r8, #1
  102784. 8029c24: e7ec b.n 8029c00 <_printf_float+0x318>
  102785. 8029c26: 4642 mov r2, r8
  102786. 8029c28: 4631 mov r1, r6
  102787. 8029c2a: 4628 mov r0, r5
  102788. 8029c2c: 47b8 blx r7
  102789. 8029c2e: 3001 adds r0, #1
  102790. 8029c30: d1c1 bne.n 8029bb6 <_printf_float+0x2ce>
  102791. 8029c32: e6a5 b.n 8029980 <_printf_float+0x98>
  102792. 8029c34: 2301 movs r3, #1
  102793. 8029c36: 4631 mov r1, r6
  102794. 8029c38: 4628 mov r0, r5
  102795. 8029c3a: 9206 str r2, [sp, #24]
  102796. 8029c3c: 47b8 blx r7
  102797. 8029c3e: 3001 adds r0, #1
  102798. 8029c40: f43f ae9e beq.w 8029980 <_printf_float+0x98>
  102799. 8029c44: 9b07 ldr r3, [sp, #28]
  102800. 8029c46: 9a06 ldr r2, [sp, #24]
  102801. 8029c48: 3301 adds r3, #1
  102802. 8029c4a: 9307 str r3, [sp, #28]
  102803. 8029c4c: e7b9 b.n 8029bc2 <_printf_float+0x2da>
  102804. 8029c4e: 9b05 ldr r3, [sp, #20]
  102805. 8029c50: 465a mov r2, fp
  102806. 8029c52: 4631 mov r1, r6
  102807. 8029c54: 4628 mov r0, r5
  102808. 8029c56: 47b8 blx r7
  102809. 8029c58: 3001 adds r0, #1
  102810. 8029c5a: d1bf bne.n 8029bdc <_printf_float+0x2f4>
  102811. 8029c5c: e690 b.n 8029980 <_printf_float+0x98>
  102812. 8029c5e: 9a06 ldr r2, [sp, #24]
  102813. 8029c60: 464b mov r3, r9
  102814. 8029c62: 4442 add r2, r8
  102815. 8029c64: 4631 mov r1, r6
  102816. 8029c66: 4628 mov r0, r5
  102817. 8029c68: 47b8 blx r7
  102818. 8029c6a: 3001 adds r0, #1
  102819. 8029c6c: d1c2 bne.n 8029bf4 <_printf_float+0x30c>
  102820. 8029c6e: e687 b.n 8029980 <_printf_float+0x98>
  102821. 8029c70: f8dd 9028 ldr.w r9, [sp, #40] @ 0x28
  102822. 8029c74: f1b9 0f01 cmp.w r9, #1
  102823. 8029c78: dc01 bgt.n 8029c7e <_printf_float+0x396>
  102824. 8029c7a: 07db lsls r3, r3, #31
  102825. 8029c7c: d536 bpl.n 8029cec <_printf_float+0x404>
  102826. 8029c7e: 2301 movs r3, #1
  102827. 8029c80: 4642 mov r2, r8
  102828. 8029c82: 4631 mov r1, r6
  102829. 8029c84: 4628 mov r0, r5
  102830. 8029c86: 47b8 blx r7
  102831. 8029c88: 3001 adds r0, #1
  102832. 8029c8a: f43f ae79 beq.w 8029980 <_printf_float+0x98>
  102833. 8029c8e: 9b05 ldr r3, [sp, #20]
  102834. 8029c90: 465a mov r2, fp
  102835. 8029c92: 4631 mov r1, r6
  102836. 8029c94: 4628 mov r0, r5
  102837. 8029c96: 47b8 blx r7
  102838. 8029c98: 3001 adds r0, #1
  102839. 8029c9a: f43f ae71 beq.w 8029980 <_printf_float+0x98>
  102840. 8029c9e: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  102841. 8029ca2: eeb5 7b40 vcmp.f64 d7, #0.0
  102842. 8029ca6: eef1 fa10 vmrs APSR_nzcv, fpscr
  102843. 8029caa: f109 39ff add.w r9, r9, #4294967295 @ 0xffffffff
  102844. 8029cae: d018 beq.n 8029ce2 <_printf_float+0x3fa>
  102845. 8029cb0: 464b mov r3, r9
  102846. 8029cb2: f108 0201 add.w r2, r8, #1
  102847. 8029cb6: 4631 mov r1, r6
  102848. 8029cb8: 4628 mov r0, r5
  102849. 8029cba: 47b8 blx r7
  102850. 8029cbc: 3001 adds r0, #1
  102851. 8029cbe: d10c bne.n 8029cda <_printf_float+0x3f2>
  102852. 8029cc0: e65e b.n 8029980 <_printf_float+0x98>
  102853. 8029cc2: 2301 movs r3, #1
  102854. 8029cc4: 465a mov r2, fp
  102855. 8029cc6: 4631 mov r1, r6
  102856. 8029cc8: 4628 mov r0, r5
  102857. 8029cca: 47b8 blx r7
  102858. 8029ccc: 3001 adds r0, #1
  102859. 8029cce: f43f ae57 beq.w 8029980 <_printf_float+0x98>
  102860. 8029cd2: f108 0801 add.w r8, r8, #1
  102861. 8029cd6: 45c8 cmp r8, r9
  102862. 8029cd8: dbf3 blt.n 8029cc2 <_printf_float+0x3da>
  102863. 8029cda: 4653 mov r3, sl
  102864. 8029cdc: f104 0250 add.w r2, r4, #80 @ 0x50
  102865. 8029ce0: e6dc b.n 8029a9c <_printf_float+0x1b4>
  102866. 8029ce2: f04f 0800 mov.w r8, #0
  102867. 8029ce6: f104 0b1a add.w fp, r4, #26
  102868. 8029cea: e7f4 b.n 8029cd6 <_printf_float+0x3ee>
  102869. 8029cec: 2301 movs r3, #1
  102870. 8029cee: 4642 mov r2, r8
  102871. 8029cf0: e7e1 b.n 8029cb6 <_printf_float+0x3ce>
  102872. 8029cf2: 2301 movs r3, #1
  102873. 8029cf4: 464a mov r2, r9
  102874. 8029cf6: 4631 mov r1, r6
  102875. 8029cf8: 4628 mov r0, r5
  102876. 8029cfa: 47b8 blx r7
  102877. 8029cfc: 3001 adds r0, #1
  102878. 8029cfe: f43f ae3f beq.w 8029980 <_printf_float+0x98>
  102879. 8029d02: f108 0801 add.w r8, r8, #1
  102880. 8029d06: 68e3 ldr r3, [r4, #12]
  102881. 8029d08: 990b ldr r1, [sp, #44] @ 0x2c
  102882. 8029d0a: 1a5b subs r3, r3, r1
  102883. 8029d0c: 4543 cmp r3, r8
  102884. 8029d0e: dcf0 bgt.n 8029cf2 <_printf_float+0x40a>
  102885. 8029d10: e6f8 b.n 8029b04 <_printf_float+0x21c>
  102886. 8029d12: f04f 0800 mov.w r8, #0
  102887. 8029d16: f104 0919 add.w r9, r4, #25
  102888. 8029d1a: e7f4 b.n 8029d06 <_printf_float+0x41e>
  102889. 08029d1c <_printf_common>:
  102890. 8029d1c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  102891. 8029d20: 4616 mov r6, r2
  102892. 8029d22: 4698 mov r8, r3
  102893. 8029d24: 688a ldr r2, [r1, #8]
  102894. 8029d26: 690b ldr r3, [r1, #16]
  102895. 8029d28: f8dd 9020 ldr.w r9, [sp, #32]
  102896. 8029d2c: 4293 cmp r3, r2
  102897. 8029d2e: bfb8 it lt
  102898. 8029d30: 4613 movlt r3, r2
  102899. 8029d32: 6033 str r3, [r6, #0]
  102900. 8029d34: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  102901. 8029d38: 4607 mov r7, r0
  102902. 8029d3a: 460c mov r4, r1
  102903. 8029d3c: b10a cbz r2, 8029d42 <_printf_common+0x26>
  102904. 8029d3e: 3301 adds r3, #1
  102905. 8029d40: 6033 str r3, [r6, #0]
  102906. 8029d42: 6823 ldr r3, [r4, #0]
  102907. 8029d44: 0699 lsls r1, r3, #26
  102908. 8029d46: bf42 ittt mi
  102909. 8029d48: 6833 ldrmi r3, [r6, #0]
  102910. 8029d4a: 3302 addmi r3, #2
  102911. 8029d4c: 6033 strmi r3, [r6, #0]
  102912. 8029d4e: 6825 ldr r5, [r4, #0]
  102913. 8029d50: f015 0506 ands.w r5, r5, #6
  102914. 8029d54: d106 bne.n 8029d64 <_printf_common+0x48>
  102915. 8029d56: f104 0a19 add.w sl, r4, #25
  102916. 8029d5a: 68e3 ldr r3, [r4, #12]
  102917. 8029d5c: 6832 ldr r2, [r6, #0]
  102918. 8029d5e: 1a9b subs r3, r3, r2
  102919. 8029d60: 42ab cmp r3, r5
  102920. 8029d62: dc26 bgt.n 8029db2 <_printf_common+0x96>
  102921. 8029d64: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  102922. 8029d68: 6822 ldr r2, [r4, #0]
  102923. 8029d6a: 3b00 subs r3, #0
  102924. 8029d6c: bf18 it ne
  102925. 8029d6e: 2301 movne r3, #1
  102926. 8029d70: 0692 lsls r2, r2, #26
  102927. 8029d72: d42b bmi.n 8029dcc <_printf_common+0xb0>
  102928. 8029d74: f104 0243 add.w r2, r4, #67 @ 0x43
  102929. 8029d78: 4641 mov r1, r8
  102930. 8029d7a: 4638 mov r0, r7
  102931. 8029d7c: 47c8 blx r9
  102932. 8029d7e: 3001 adds r0, #1
  102933. 8029d80: d01e beq.n 8029dc0 <_printf_common+0xa4>
  102934. 8029d82: 6823 ldr r3, [r4, #0]
  102935. 8029d84: 6922 ldr r2, [r4, #16]
  102936. 8029d86: f003 0306 and.w r3, r3, #6
  102937. 8029d8a: 2b04 cmp r3, #4
  102938. 8029d8c: bf02 ittt eq
  102939. 8029d8e: 68e5 ldreq r5, [r4, #12]
  102940. 8029d90: 6833 ldreq r3, [r6, #0]
  102941. 8029d92: 1aed subeq r5, r5, r3
  102942. 8029d94: 68a3 ldr r3, [r4, #8]
  102943. 8029d96: bf0c ite eq
  102944. 8029d98: ea25 75e5 biceq.w r5, r5, r5, asr #31
  102945. 8029d9c: 2500 movne r5, #0
  102946. 8029d9e: 4293 cmp r3, r2
  102947. 8029da0: bfc4 itt gt
  102948. 8029da2: 1a9b subgt r3, r3, r2
  102949. 8029da4: 18ed addgt r5, r5, r3
  102950. 8029da6: 2600 movs r6, #0
  102951. 8029da8: 341a adds r4, #26
  102952. 8029daa: 42b5 cmp r5, r6
  102953. 8029dac: d11a bne.n 8029de4 <_printf_common+0xc8>
  102954. 8029dae: 2000 movs r0, #0
  102955. 8029db0: e008 b.n 8029dc4 <_printf_common+0xa8>
  102956. 8029db2: 2301 movs r3, #1
  102957. 8029db4: 4652 mov r2, sl
  102958. 8029db6: 4641 mov r1, r8
  102959. 8029db8: 4638 mov r0, r7
  102960. 8029dba: 47c8 blx r9
  102961. 8029dbc: 3001 adds r0, #1
  102962. 8029dbe: d103 bne.n 8029dc8 <_printf_common+0xac>
  102963. 8029dc0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  102964. 8029dc4: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  102965. 8029dc8: 3501 adds r5, #1
  102966. 8029dca: e7c6 b.n 8029d5a <_printf_common+0x3e>
  102967. 8029dcc: 18e1 adds r1, r4, r3
  102968. 8029dce: 1c5a adds r2, r3, #1
  102969. 8029dd0: 2030 movs r0, #48 @ 0x30
  102970. 8029dd2: f881 0043 strb.w r0, [r1, #67] @ 0x43
  102971. 8029dd6: 4422 add r2, r4
  102972. 8029dd8: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  102973. 8029ddc: f882 1043 strb.w r1, [r2, #67] @ 0x43
  102974. 8029de0: 3302 adds r3, #2
  102975. 8029de2: e7c7 b.n 8029d74 <_printf_common+0x58>
  102976. 8029de4: 2301 movs r3, #1
  102977. 8029de6: 4622 mov r2, r4
  102978. 8029de8: 4641 mov r1, r8
  102979. 8029dea: 4638 mov r0, r7
  102980. 8029dec: 47c8 blx r9
  102981. 8029dee: 3001 adds r0, #1
  102982. 8029df0: d0e6 beq.n 8029dc0 <_printf_common+0xa4>
  102983. 8029df2: 3601 adds r6, #1
  102984. 8029df4: e7d9 b.n 8029daa <_printf_common+0x8e>
  102985. ...
  102986. 08029df8 <_printf_i>:
  102987. 8029df8: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  102988. 8029dfc: 7e0f ldrb r7, [r1, #24]
  102989. 8029dfe: 9e0c ldr r6, [sp, #48] @ 0x30
  102990. 8029e00: 2f78 cmp r7, #120 @ 0x78
  102991. 8029e02: 4691 mov r9, r2
  102992. 8029e04: 4680 mov r8, r0
  102993. 8029e06: 460c mov r4, r1
  102994. 8029e08: 469a mov sl, r3
  102995. 8029e0a: f101 0243 add.w r2, r1, #67 @ 0x43
  102996. 8029e0e: d807 bhi.n 8029e20 <_printf_i+0x28>
  102997. 8029e10: 2f62 cmp r7, #98 @ 0x62
  102998. 8029e12: d80a bhi.n 8029e2a <_printf_i+0x32>
  102999. 8029e14: 2f00 cmp r7, #0
  103000. 8029e16: f000 80d2 beq.w 8029fbe <_printf_i+0x1c6>
  103001. 8029e1a: 2f58 cmp r7, #88 @ 0x58
  103002. 8029e1c: f000 80b9 beq.w 8029f92 <_printf_i+0x19a>
  103003. 8029e20: f104 0642 add.w r6, r4, #66 @ 0x42
  103004. 8029e24: f884 7042 strb.w r7, [r4, #66] @ 0x42
  103005. 8029e28: e03a b.n 8029ea0 <_printf_i+0xa8>
  103006. 8029e2a: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  103007. 8029e2e: 2b15 cmp r3, #21
  103008. 8029e30: d8f6 bhi.n 8029e20 <_printf_i+0x28>
  103009. 8029e32: a101 add r1, pc, #4 @ (adr r1, 8029e38 <_printf_i+0x40>)
  103010. 8029e34: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  103011. 8029e38: 08029e91 .word 0x08029e91
  103012. 8029e3c: 08029ea5 .word 0x08029ea5
  103013. 8029e40: 08029e21 .word 0x08029e21
  103014. 8029e44: 08029e21 .word 0x08029e21
  103015. 8029e48: 08029e21 .word 0x08029e21
  103016. 8029e4c: 08029e21 .word 0x08029e21
  103017. 8029e50: 08029ea5 .word 0x08029ea5
  103018. 8029e54: 08029e21 .word 0x08029e21
  103019. 8029e58: 08029e21 .word 0x08029e21
  103020. 8029e5c: 08029e21 .word 0x08029e21
  103021. 8029e60: 08029e21 .word 0x08029e21
  103022. 8029e64: 08029fa5 .word 0x08029fa5
  103023. 8029e68: 08029ecf .word 0x08029ecf
  103024. 8029e6c: 08029f5f .word 0x08029f5f
  103025. 8029e70: 08029e21 .word 0x08029e21
  103026. 8029e74: 08029e21 .word 0x08029e21
  103027. 8029e78: 08029fc7 .word 0x08029fc7
  103028. 8029e7c: 08029e21 .word 0x08029e21
  103029. 8029e80: 08029ecf .word 0x08029ecf
  103030. 8029e84: 08029e21 .word 0x08029e21
  103031. 8029e88: 08029e21 .word 0x08029e21
  103032. 8029e8c: 08029f67 .word 0x08029f67
  103033. 8029e90: 6833 ldr r3, [r6, #0]
  103034. 8029e92: 1d1a adds r2, r3, #4
  103035. 8029e94: 681b ldr r3, [r3, #0]
  103036. 8029e96: 6032 str r2, [r6, #0]
  103037. 8029e98: f104 0642 add.w r6, r4, #66 @ 0x42
  103038. 8029e9c: f884 3042 strb.w r3, [r4, #66] @ 0x42
  103039. 8029ea0: 2301 movs r3, #1
  103040. 8029ea2: e09d b.n 8029fe0 <_printf_i+0x1e8>
  103041. 8029ea4: 6833 ldr r3, [r6, #0]
  103042. 8029ea6: 6820 ldr r0, [r4, #0]
  103043. 8029ea8: 1d19 adds r1, r3, #4
  103044. 8029eaa: 6031 str r1, [r6, #0]
  103045. 8029eac: 0606 lsls r6, r0, #24
  103046. 8029eae: d501 bpl.n 8029eb4 <_printf_i+0xbc>
  103047. 8029eb0: 681d ldr r5, [r3, #0]
  103048. 8029eb2: e003 b.n 8029ebc <_printf_i+0xc4>
  103049. 8029eb4: 0645 lsls r5, r0, #25
  103050. 8029eb6: d5fb bpl.n 8029eb0 <_printf_i+0xb8>
  103051. 8029eb8: f9b3 5000 ldrsh.w r5, [r3]
  103052. 8029ebc: 2d00 cmp r5, #0
  103053. 8029ebe: da03 bge.n 8029ec8 <_printf_i+0xd0>
  103054. 8029ec0: 232d movs r3, #45 @ 0x2d
  103055. 8029ec2: 426d negs r5, r5
  103056. 8029ec4: f884 3043 strb.w r3, [r4, #67] @ 0x43
  103057. 8029ec8: 4859 ldr r0, [pc, #356] @ (802a030 <_printf_i+0x238>)
  103058. 8029eca: 230a movs r3, #10
  103059. 8029ecc: e011 b.n 8029ef2 <_printf_i+0xfa>
  103060. 8029ece: 6821 ldr r1, [r4, #0]
  103061. 8029ed0: 6833 ldr r3, [r6, #0]
  103062. 8029ed2: 0608 lsls r0, r1, #24
  103063. 8029ed4: f853 5b04 ldr.w r5, [r3], #4
  103064. 8029ed8: d402 bmi.n 8029ee0 <_printf_i+0xe8>
  103065. 8029eda: 0649 lsls r1, r1, #25
  103066. 8029edc: bf48 it mi
  103067. 8029ede: b2ad uxthmi r5, r5
  103068. 8029ee0: 2f6f cmp r7, #111 @ 0x6f
  103069. 8029ee2: 4853 ldr r0, [pc, #332] @ (802a030 <_printf_i+0x238>)
  103070. 8029ee4: 6033 str r3, [r6, #0]
  103071. 8029ee6: bf14 ite ne
  103072. 8029ee8: 230a movne r3, #10
  103073. 8029eea: 2308 moveq r3, #8
  103074. 8029eec: 2100 movs r1, #0
  103075. 8029eee: f884 1043 strb.w r1, [r4, #67] @ 0x43
  103076. 8029ef2: 6866 ldr r6, [r4, #4]
  103077. 8029ef4: 60a6 str r6, [r4, #8]
  103078. 8029ef6: 2e00 cmp r6, #0
  103079. 8029ef8: bfa2 ittt ge
  103080. 8029efa: 6821 ldrge r1, [r4, #0]
  103081. 8029efc: f021 0104 bicge.w r1, r1, #4
  103082. 8029f00: 6021 strge r1, [r4, #0]
  103083. 8029f02: b90d cbnz r5, 8029f08 <_printf_i+0x110>
  103084. 8029f04: 2e00 cmp r6, #0
  103085. 8029f06: d04b beq.n 8029fa0 <_printf_i+0x1a8>
  103086. 8029f08: 4616 mov r6, r2
  103087. 8029f0a: fbb5 f1f3 udiv r1, r5, r3
  103088. 8029f0e: fb03 5711 mls r7, r3, r1, r5
  103089. 8029f12: 5dc7 ldrb r7, [r0, r7]
  103090. 8029f14: f806 7d01 strb.w r7, [r6, #-1]!
  103091. 8029f18: 462f mov r7, r5
  103092. 8029f1a: 42bb cmp r3, r7
  103093. 8029f1c: 460d mov r5, r1
  103094. 8029f1e: d9f4 bls.n 8029f0a <_printf_i+0x112>
  103095. 8029f20: 2b08 cmp r3, #8
  103096. 8029f22: d10b bne.n 8029f3c <_printf_i+0x144>
  103097. 8029f24: 6823 ldr r3, [r4, #0]
  103098. 8029f26: 07df lsls r7, r3, #31
  103099. 8029f28: d508 bpl.n 8029f3c <_printf_i+0x144>
  103100. 8029f2a: 6923 ldr r3, [r4, #16]
  103101. 8029f2c: 6861 ldr r1, [r4, #4]
  103102. 8029f2e: 4299 cmp r1, r3
  103103. 8029f30: bfde ittt le
  103104. 8029f32: 2330 movle r3, #48 @ 0x30
  103105. 8029f34: f806 3c01 strble.w r3, [r6, #-1]
  103106. 8029f38: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  103107. 8029f3c: 1b92 subs r2, r2, r6
  103108. 8029f3e: 6122 str r2, [r4, #16]
  103109. 8029f40: f8cd a000 str.w sl, [sp]
  103110. 8029f44: 464b mov r3, r9
  103111. 8029f46: aa03 add r2, sp, #12
  103112. 8029f48: 4621 mov r1, r4
  103113. 8029f4a: 4640 mov r0, r8
  103114. 8029f4c: f7ff fee6 bl 8029d1c <_printf_common>
  103115. 8029f50: 3001 adds r0, #1
  103116. 8029f52: d14a bne.n 8029fea <_printf_i+0x1f2>
  103117. 8029f54: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  103118. 8029f58: b004 add sp, #16
  103119. 8029f5a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  103120. 8029f5e: 6823 ldr r3, [r4, #0]
  103121. 8029f60: f043 0320 orr.w r3, r3, #32
  103122. 8029f64: 6023 str r3, [r4, #0]
  103123. 8029f66: 4833 ldr r0, [pc, #204] @ (802a034 <_printf_i+0x23c>)
  103124. 8029f68: 2778 movs r7, #120 @ 0x78
  103125. 8029f6a: f884 7045 strb.w r7, [r4, #69] @ 0x45
  103126. 8029f6e: 6823 ldr r3, [r4, #0]
  103127. 8029f70: 6831 ldr r1, [r6, #0]
  103128. 8029f72: 061f lsls r7, r3, #24
  103129. 8029f74: f851 5b04 ldr.w r5, [r1], #4
  103130. 8029f78: d402 bmi.n 8029f80 <_printf_i+0x188>
  103131. 8029f7a: 065f lsls r7, r3, #25
  103132. 8029f7c: bf48 it mi
  103133. 8029f7e: b2ad uxthmi r5, r5
  103134. 8029f80: 6031 str r1, [r6, #0]
  103135. 8029f82: 07d9 lsls r1, r3, #31
  103136. 8029f84: bf44 itt mi
  103137. 8029f86: f043 0320 orrmi.w r3, r3, #32
  103138. 8029f8a: 6023 strmi r3, [r4, #0]
  103139. 8029f8c: b11d cbz r5, 8029f96 <_printf_i+0x19e>
  103140. 8029f8e: 2310 movs r3, #16
  103141. 8029f90: e7ac b.n 8029eec <_printf_i+0xf4>
  103142. 8029f92: 4827 ldr r0, [pc, #156] @ (802a030 <_printf_i+0x238>)
  103143. 8029f94: e7e9 b.n 8029f6a <_printf_i+0x172>
  103144. 8029f96: 6823 ldr r3, [r4, #0]
  103145. 8029f98: f023 0320 bic.w r3, r3, #32
  103146. 8029f9c: 6023 str r3, [r4, #0]
  103147. 8029f9e: e7f6 b.n 8029f8e <_printf_i+0x196>
  103148. 8029fa0: 4616 mov r6, r2
  103149. 8029fa2: e7bd b.n 8029f20 <_printf_i+0x128>
  103150. 8029fa4: 6833 ldr r3, [r6, #0]
  103151. 8029fa6: 6825 ldr r5, [r4, #0]
  103152. 8029fa8: 6961 ldr r1, [r4, #20]
  103153. 8029faa: 1d18 adds r0, r3, #4
  103154. 8029fac: 6030 str r0, [r6, #0]
  103155. 8029fae: 062e lsls r6, r5, #24
  103156. 8029fb0: 681b ldr r3, [r3, #0]
  103157. 8029fb2: d501 bpl.n 8029fb8 <_printf_i+0x1c0>
  103158. 8029fb4: 6019 str r1, [r3, #0]
  103159. 8029fb6: e002 b.n 8029fbe <_printf_i+0x1c6>
  103160. 8029fb8: 0668 lsls r0, r5, #25
  103161. 8029fba: d5fb bpl.n 8029fb4 <_printf_i+0x1bc>
  103162. 8029fbc: 8019 strh r1, [r3, #0]
  103163. 8029fbe: 2300 movs r3, #0
  103164. 8029fc0: 6123 str r3, [r4, #16]
  103165. 8029fc2: 4616 mov r6, r2
  103166. 8029fc4: e7bc b.n 8029f40 <_printf_i+0x148>
  103167. 8029fc6: 6833 ldr r3, [r6, #0]
  103168. 8029fc8: 1d1a adds r2, r3, #4
  103169. 8029fca: 6032 str r2, [r6, #0]
  103170. 8029fcc: 681e ldr r6, [r3, #0]
  103171. 8029fce: 6862 ldr r2, [r4, #4]
  103172. 8029fd0: 2100 movs r1, #0
  103173. 8029fd2: 4630 mov r0, r6
  103174. 8029fd4: f7d6 f994 bl 8000300 <memchr>
  103175. 8029fd8: b108 cbz r0, 8029fde <_printf_i+0x1e6>
  103176. 8029fda: 1b80 subs r0, r0, r6
  103177. 8029fdc: 6060 str r0, [r4, #4]
  103178. 8029fde: 6863 ldr r3, [r4, #4]
  103179. 8029fe0: 6123 str r3, [r4, #16]
  103180. 8029fe2: 2300 movs r3, #0
  103181. 8029fe4: f884 3043 strb.w r3, [r4, #67] @ 0x43
  103182. 8029fe8: e7aa b.n 8029f40 <_printf_i+0x148>
  103183. 8029fea: 6923 ldr r3, [r4, #16]
  103184. 8029fec: 4632 mov r2, r6
  103185. 8029fee: 4649 mov r1, r9
  103186. 8029ff0: 4640 mov r0, r8
  103187. 8029ff2: 47d0 blx sl
  103188. 8029ff4: 3001 adds r0, #1
  103189. 8029ff6: d0ad beq.n 8029f54 <_printf_i+0x15c>
  103190. 8029ff8: 6823 ldr r3, [r4, #0]
  103191. 8029ffa: 079b lsls r3, r3, #30
  103192. 8029ffc: d413 bmi.n 802a026 <_printf_i+0x22e>
  103193. 8029ffe: 68e0 ldr r0, [r4, #12]
  103194. 802a000: 9b03 ldr r3, [sp, #12]
  103195. 802a002: 4298 cmp r0, r3
  103196. 802a004: bfb8 it lt
  103197. 802a006: 4618 movlt r0, r3
  103198. 802a008: e7a6 b.n 8029f58 <_printf_i+0x160>
  103199. 802a00a: 2301 movs r3, #1
  103200. 802a00c: 4632 mov r2, r6
  103201. 802a00e: 4649 mov r1, r9
  103202. 802a010: 4640 mov r0, r8
  103203. 802a012: 47d0 blx sl
  103204. 802a014: 3001 adds r0, #1
  103205. 802a016: d09d beq.n 8029f54 <_printf_i+0x15c>
  103206. 802a018: 3501 adds r5, #1
  103207. 802a01a: 68e3 ldr r3, [r4, #12]
  103208. 802a01c: 9903 ldr r1, [sp, #12]
  103209. 802a01e: 1a5b subs r3, r3, r1
  103210. 802a020: 42ab cmp r3, r5
  103211. 802a022: dcf2 bgt.n 802a00a <_printf_i+0x212>
  103212. 802a024: e7eb b.n 8029ffe <_printf_i+0x206>
  103213. 802a026: 2500 movs r5, #0
  103214. 802a028: f104 0619 add.w r6, r4, #25
  103215. 802a02c: e7f5 b.n 802a01a <_printf_i+0x222>
  103216. 802a02e: bf00 nop
  103217. 802a030: 080316e3 .word 0x080316e3
  103218. 802a034: 080316f4 .word 0x080316f4
  103219. 0802a038 <std>:
  103220. 802a038: 2300 movs r3, #0
  103221. 802a03a: b510 push {r4, lr}
  103222. 802a03c: 4604 mov r4, r0
  103223. 802a03e: e9c0 3300 strd r3, r3, [r0]
  103224. 802a042: e9c0 3304 strd r3, r3, [r0, #16]
  103225. 802a046: 6083 str r3, [r0, #8]
  103226. 802a048: 8181 strh r1, [r0, #12]
  103227. 802a04a: 6643 str r3, [r0, #100] @ 0x64
  103228. 802a04c: 81c2 strh r2, [r0, #14]
  103229. 802a04e: 6183 str r3, [r0, #24]
  103230. 802a050: 4619 mov r1, r3
  103231. 802a052: 2208 movs r2, #8
  103232. 802a054: 305c adds r0, #92 @ 0x5c
  103233. 802a056: f000 fa43 bl 802a4e0 <memset>
  103234. 802a05a: 4b0d ldr r3, [pc, #52] @ (802a090 <std+0x58>)
  103235. 802a05c: 6263 str r3, [r4, #36] @ 0x24
  103236. 802a05e: 4b0d ldr r3, [pc, #52] @ (802a094 <std+0x5c>)
  103237. 802a060: 62a3 str r3, [r4, #40] @ 0x28
  103238. 802a062: 4b0d ldr r3, [pc, #52] @ (802a098 <std+0x60>)
  103239. 802a064: 62e3 str r3, [r4, #44] @ 0x2c
  103240. 802a066: 4b0d ldr r3, [pc, #52] @ (802a09c <std+0x64>)
  103241. 802a068: 6323 str r3, [r4, #48] @ 0x30
  103242. 802a06a: 4b0d ldr r3, [pc, #52] @ (802a0a0 <std+0x68>)
  103243. 802a06c: 6224 str r4, [r4, #32]
  103244. 802a06e: 429c cmp r4, r3
  103245. 802a070: d006 beq.n 802a080 <std+0x48>
  103246. 802a072: f103 0268 add.w r2, r3, #104 @ 0x68
  103247. 802a076: 4294 cmp r4, r2
  103248. 802a078: d002 beq.n 802a080 <std+0x48>
  103249. 802a07a: 33d0 adds r3, #208 @ 0xd0
  103250. 802a07c: 429c cmp r4, r3
  103251. 802a07e: d105 bne.n 802a08c <std+0x54>
  103252. 802a080: f104 0058 add.w r0, r4, #88 @ 0x58
  103253. 802a084: e8bd 4010 ldmia.w sp!, {r4, lr}
  103254. 802a088: f000 bb1e b.w 802a6c8 <__retarget_lock_init_recursive>
  103255. 802a08c: bd10 pop {r4, pc}
  103256. 802a08e: bf00 nop
  103257. 802a090: 0802a2dd .word 0x0802a2dd
  103258. 802a094: 0802a2ff .word 0x0802a2ff
  103259. 802a098: 0802a337 .word 0x0802a337
  103260. 802a09c: 0802a35b .word 0x0802a35b
  103261. 802a0a0: 2402b114 .word 0x2402b114
  103262. 0802a0a4 <stdio_exit_handler>:
  103263. 802a0a4: 4a02 ldr r2, [pc, #8] @ (802a0b0 <stdio_exit_handler+0xc>)
  103264. 802a0a6: 4903 ldr r1, [pc, #12] @ (802a0b4 <stdio_exit_handler+0x10>)
  103265. 802a0a8: 4803 ldr r0, [pc, #12] @ (802a0b8 <stdio_exit_handler+0x14>)
  103266. 802a0aa: f000 b869 b.w 802a180 <_fwalk_sglue>
  103267. 802a0ae: bf00 nop
  103268. 802a0b0: 2400005c .word 0x2400005c
  103269. 802a0b4: 0802c9ed .word 0x0802c9ed
  103270. 802a0b8: 240001d8 .word 0x240001d8
  103271. 0802a0bc <cleanup_stdio>:
  103272. 802a0bc: 6841 ldr r1, [r0, #4]
  103273. 802a0be: 4b0c ldr r3, [pc, #48] @ (802a0f0 <cleanup_stdio+0x34>)
  103274. 802a0c0: 4299 cmp r1, r3
  103275. 802a0c2: b510 push {r4, lr}
  103276. 802a0c4: 4604 mov r4, r0
  103277. 802a0c6: d001 beq.n 802a0cc <cleanup_stdio+0x10>
  103278. 802a0c8: f002 fc90 bl 802c9ec <_fflush_r>
  103279. 802a0cc: 68a1 ldr r1, [r4, #8]
  103280. 802a0ce: 4b09 ldr r3, [pc, #36] @ (802a0f4 <cleanup_stdio+0x38>)
  103281. 802a0d0: 4299 cmp r1, r3
  103282. 802a0d2: d002 beq.n 802a0da <cleanup_stdio+0x1e>
  103283. 802a0d4: 4620 mov r0, r4
  103284. 802a0d6: f002 fc89 bl 802c9ec <_fflush_r>
  103285. 802a0da: 68e1 ldr r1, [r4, #12]
  103286. 802a0dc: 4b06 ldr r3, [pc, #24] @ (802a0f8 <cleanup_stdio+0x3c>)
  103287. 802a0de: 4299 cmp r1, r3
  103288. 802a0e0: d004 beq.n 802a0ec <cleanup_stdio+0x30>
  103289. 802a0e2: 4620 mov r0, r4
  103290. 802a0e4: e8bd 4010 ldmia.w sp!, {r4, lr}
  103291. 802a0e8: f002 bc80 b.w 802c9ec <_fflush_r>
  103292. 802a0ec: bd10 pop {r4, pc}
  103293. 802a0ee: bf00 nop
  103294. 802a0f0: 2402b114 .word 0x2402b114
  103295. 802a0f4: 2402b17c .word 0x2402b17c
  103296. 802a0f8: 2402b1e4 .word 0x2402b1e4
  103297. 0802a0fc <global_stdio_init.part.0>:
  103298. 802a0fc: b510 push {r4, lr}
  103299. 802a0fe: 4b0b ldr r3, [pc, #44] @ (802a12c <global_stdio_init.part.0+0x30>)
  103300. 802a100: 4c0b ldr r4, [pc, #44] @ (802a130 <global_stdio_init.part.0+0x34>)
  103301. 802a102: 4a0c ldr r2, [pc, #48] @ (802a134 <global_stdio_init.part.0+0x38>)
  103302. 802a104: 601a str r2, [r3, #0]
  103303. 802a106: 4620 mov r0, r4
  103304. 802a108: 2200 movs r2, #0
  103305. 802a10a: 2104 movs r1, #4
  103306. 802a10c: f7ff ff94 bl 802a038 <std>
  103307. 802a110: f104 0068 add.w r0, r4, #104 @ 0x68
  103308. 802a114: 2201 movs r2, #1
  103309. 802a116: 2109 movs r1, #9
  103310. 802a118: f7ff ff8e bl 802a038 <std>
  103311. 802a11c: f104 00d0 add.w r0, r4, #208 @ 0xd0
  103312. 802a120: 2202 movs r2, #2
  103313. 802a122: e8bd 4010 ldmia.w sp!, {r4, lr}
  103314. 802a126: 2112 movs r1, #18
  103315. 802a128: f7ff bf86 b.w 802a038 <std>
  103316. 802a12c: 2402b24c .word 0x2402b24c
  103317. 802a130: 2402b114 .word 0x2402b114
  103318. 802a134: 0802a0a5 .word 0x0802a0a5
  103319. 0802a138 <__sfp_lock_acquire>:
  103320. 802a138: 4801 ldr r0, [pc, #4] @ (802a140 <__sfp_lock_acquire+0x8>)
  103321. 802a13a: f000 bac6 b.w 802a6ca <__retarget_lock_acquire_recursive>
  103322. 802a13e: bf00 nop
  103323. 802a140: 2402b255 .word 0x2402b255
  103324. 0802a144 <__sfp_lock_release>:
  103325. 802a144: 4801 ldr r0, [pc, #4] @ (802a14c <__sfp_lock_release+0x8>)
  103326. 802a146: f000 bac1 b.w 802a6cc <__retarget_lock_release_recursive>
  103327. 802a14a: bf00 nop
  103328. 802a14c: 2402b255 .word 0x2402b255
  103329. 0802a150 <__sinit>:
  103330. 802a150: b510 push {r4, lr}
  103331. 802a152: 4604 mov r4, r0
  103332. 802a154: f7ff fff0 bl 802a138 <__sfp_lock_acquire>
  103333. 802a158: 6a23 ldr r3, [r4, #32]
  103334. 802a15a: b11b cbz r3, 802a164 <__sinit+0x14>
  103335. 802a15c: e8bd 4010 ldmia.w sp!, {r4, lr}
  103336. 802a160: f7ff bff0 b.w 802a144 <__sfp_lock_release>
  103337. 802a164: 4b04 ldr r3, [pc, #16] @ (802a178 <__sinit+0x28>)
  103338. 802a166: 6223 str r3, [r4, #32]
  103339. 802a168: 4b04 ldr r3, [pc, #16] @ (802a17c <__sinit+0x2c>)
  103340. 802a16a: 681b ldr r3, [r3, #0]
  103341. 802a16c: 2b00 cmp r3, #0
  103342. 802a16e: d1f5 bne.n 802a15c <__sinit+0xc>
  103343. 802a170: f7ff ffc4 bl 802a0fc <global_stdio_init.part.0>
  103344. 802a174: e7f2 b.n 802a15c <__sinit+0xc>
  103345. 802a176: bf00 nop
  103346. 802a178: 0802a0bd .word 0x0802a0bd
  103347. 802a17c: 2402b24c .word 0x2402b24c
  103348. 0802a180 <_fwalk_sglue>:
  103349. 802a180: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  103350. 802a184: 4607 mov r7, r0
  103351. 802a186: 4688 mov r8, r1
  103352. 802a188: 4614 mov r4, r2
  103353. 802a18a: 2600 movs r6, #0
  103354. 802a18c: e9d4 9501 ldrd r9, r5, [r4, #4]
  103355. 802a190: f1b9 0901 subs.w r9, r9, #1
  103356. 802a194: d505 bpl.n 802a1a2 <_fwalk_sglue+0x22>
  103357. 802a196: 6824 ldr r4, [r4, #0]
  103358. 802a198: 2c00 cmp r4, #0
  103359. 802a19a: d1f7 bne.n 802a18c <_fwalk_sglue+0xc>
  103360. 802a19c: 4630 mov r0, r6
  103361. 802a19e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  103362. 802a1a2: 89ab ldrh r3, [r5, #12]
  103363. 802a1a4: 2b01 cmp r3, #1
  103364. 802a1a6: d907 bls.n 802a1b8 <_fwalk_sglue+0x38>
  103365. 802a1a8: f9b5 300e ldrsh.w r3, [r5, #14]
  103366. 802a1ac: 3301 adds r3, #1
  103367. 802a1ae: d003 beq.n 802a1b8 <_fwalk_sglue+0x38>
  103368. 802a1b0: 4629 mov r1, r5
  103369. 802a1b2: 4638 mov r0, r7
  103370. 802a1b4: 47c0 blx r8
  103371. 802a1b6: 4306 orrs r6, r0
  103372. 802a1b8: 3568 adds r5, #104 @ 0x68
  103373. 802a1ba: e7e9 b.n 802a190 <_fwalk_sglue+0x10>
  103374. 0802a1bc <iprintf>:
  103375. 802a1bc: b40f push {r0, r1, r2, r3}
  103376. 802a1be: b507 push {r0, r1, r2, lr}
  103377. 802a1c0: 4906 ldr r1, [pc, #24] @ (802a1dc <iprintf+0x20>)
  103378. 802a1c2: ab04 add r3, sp, #16
  103379. 802a1c4: 6808 ldr r0, [r1, #0]
  103380. 802a1c6: f853 2b04 ldr.w r2, [r3], #4
  103381. 802a1ca: 6881 ldr r1, [r0, #8]
  103382. 802a1cc: 9301 str r3, [sp, #4]
  103383. 802a1ce: f002 fa71 bl 802c6b4 <_vfiprintf_r>
  103384. 802a1d2: b003 add sp, #12
  103385. 802a1d4: f85d eb04 ldr.w lr, [sp], #4
  103386. 802a1d8: b004 add sp, #16
  103387. 802a1da: 4770 bx lr
  103388. 802a1dc: 240001d4 .word 0x240001d4
  103389. 0802a1e0 <_puts_r>:
  103390. 802a1e0: 6a03 ldr r3, [r0, #32]
  103391. 802a1e2: b570 push {r4, r5, r6, lr}
  103392. 802a1e4: 6884 ldr r4, [r0, #8]
  103393. 802a1e6: 4605 mov r5, r0
  103394. 802a1e8: 460e mov r6, r1
  103395. 802a1ea: b90b cbnz r3, 802a1f0 <_puts_r+0x10>
  103396. 802a1ec: f7ff ffb0 bl 802a150 <__sinit>
  103397. 802a1f0: 6e63 ldr r3, [r4, #100] @ 0x64
  103398. 802a1f2: 07db lsls r3, r3, #31
  103399. 802a1f4: d405 bmi.n 802a202 <_puts_r+0x22>
  103400. 802a1f6: 89a3 ldrh r3, [r4, #12]
  103401. 802a1f8: 0598 lsls r0, r3, #22
  103402. 802a1fa: d402 bmi.n 802a202 <_puts_r+0x22>
  103403. 802a1fc: 6da0 ldr r0, [r4, #88] @ 0x58
  103404. 802a1fe: f000 fa64 bl 802a6ca <__retarget_lock_acquire_recursive>
  103405. 802a202: 89a3 ldrh r3, [r4, #12]
  103406. 802a204: 0719 lsls r1, r3, #28
  103407. 802a206: d502 bpl.n 802a20e <_puts_r+0x2e>
  103408. 802a208: 6923 ldr r3, [r4, #16]
  103409. 802a20a: 2b00 cmp r3, #0
  103410. 802a20c: d135 bne.n 802a27a <_puts_r+0x9a>
  103411. 802a20e: 4621 mov r1, r4
  103412. 802a210: 4628 mov r0, r5
  103413. 802a212: f000 f8e5 bl 802a3e0 <__swsetup_r>
  103414. 802a216: b380 cbz r0, 802a27a <_puts_r+0x9a>
  103415. 802a218: f04f 35ff mov.w r5, #4294967295 @ 0xffffffff
  103416. 802a21c: 6e63 ldr r3, [r4, #100] @ 0x64
  103417. 802a21e: 07da lsls r2, r3, #31
  103418. 802a220: d405 bmi.n 802a22e <_puts_r+0x4e>
  103419. 802a222: 89a3 ldrh r3, [r4, #12]
  103420. 802a224: 059b lsls r3, r3, #22
  103421. 802a226: d402 bmi.n 802a22e <_puts_r+0x4e>
  103422. 802a228: 6da0 ldr r0, [r4, #88] @ 0x58
  103423. 802a22a: f000 fa4f bl 802a6cc <__retarget_lock_release_recursive>
  103424. 802a22e: 4628 mov r0, r5
  103425. 802a230: bd70 pop {r4, r5, r6, pc}
  103426. 802a232: 2b00 cmp r3, #0
  103427. 802a234: da04 bge.n 802a240 <_puts_r+0x60>
  103428. 802a236: 69a2 ldr r2, [r4, #24]
  103429. 802a238: 429a cmp r2, r3
  103430. 802a23a: dc17 bgt.n 802a26c <_puts_r+0x8c>
  103431. 802a23c: 290a cmp r1, #10
  103432. 802a23e: d015 beq.n 802a26c <_puts_r+0x8c>
  103433. 802a240: 6823 ldr r3, [r4, #0]
  103434. 802a242: 1c5a adds r2, r3, #1
  103435. 802a244: 6022 str r2, [r4, #0]
  103436. 802a246: 7019 strb r1, [r3, #0]
  103437. 802a248: 68a3 ldr r3, [r4, #8]
  103438. 802a24a: f816 1f01 ldrb.w r1, [r6, #1]!
  103439. 802a24e: 3b01 subs r3, #1
  103440. 802a250: 60a3 str r3, [r4, #8]
  103441. 802a252: 2900 cmp r1, #0
  103442. 802a254: d1ed bne.n 802a232 <_puts_r+0x52>
  103443. 802a256: 2b00 cmp r3, #0
  103444. 802a258: da11 bge.n 802a27e <_puts_r+0x9e>
  103445. 802a25a: 4622 mov r2, r4
  103446. 802a25c: 210a movs r1, #10
  103447. 802a25e: 4628 mov r0, r5
  103448. 802a260: f000 f87f bl 802a362 <__swbuf_r>
  103449. 802a264: 3001 adds r0, #1
  103450. 802a266: d0d7 beq.n 802a218 <_puts_r+0x38>
  103451. 802a268: 250a movs r5, #10
  103452. 802a26a: e7d7 b.n 802a21c <_puts_r+0x3c>
  103453. 802a26c: 4622 mov r2, r4
  103454. 802a26e: 4628 mov r0, r5
  103455. 802a270: f000 f877 bl 802a362 <__swbuf_r>
  103456. 802a274: 3001 adds r0, #1
  103457. 802a276: d1e7 bne.n 802a248 <_puts_r+0x68>
  103458. 802a278: e7ce b.n 802a218 <_puts_r+0x38>
  103459. 802a27a: 3e01 subs r6, #1
  103460. 802a27c: e7e4 b.n 802a248 <_puts_r+0x68>
  103461. 802a27e: 6823 ldr r3, [r4, #0]
  103462. 802a280: 1c5a adds r2, r3, #1
  103463. 802a282: 6022 str r2, [r4, #0]
  103464. 802a284: 220a movs r2, #10
  103465. 802a286: 701a strb r2, [r3, #0]
  103466. 802a288: e7ee b.n 802a268 <_puts_r+0x88>
  103467. ...
  103468. 0802a28c <puts>:
  103469. 802a28c: 4b02 ldr r3, [pc, #8] @ (802a298 <puts+0xc>)
  103470. 802a28e: 4601 mov r1, r0
  103471. 802a290: 6818 ldr r0, [r3, #0]
  103472. 802a292: f7ff bfa5 b.w 802a1e0 <_puts_r>
  103473. 802a296: bf00 nop
  103474. 802a298: 240001d4 .word 0x240001d4
  103475. 0802a29c <siprintf>:
  103476. 802a29c: b40e push {r1, r2, r3}
  103477. 802a29e: b500 push {lr}
  103478. 802a2a0: b09c sub sp, #112 @ 0x70
  103479. 802a2a2: ab1d add r3, sp, #116 @ 0x74
  103480. 802a2a4: 9002 str r0, [sp, #8]
  103481. 802a2a6: 9006 str r0, [sp, #24]
  103482. 802a2a8: f06f 4100 mvn.w r1, #2147483648 @ 0x80000000
  103483. 802a2ac: 4809 ldr r0, [pc, #36] @ (802a2d4 <siprintf+0x38>)
  103484. 802a2ae: 9107 str r1, [sp, #28]
  103485. 802a2b0: 9104 str r1, [sp, #16]
  103486. 802a2b2: 4909 ldr r1, [pc, #36] @ (802a2d8 <siprintf+0x3c>)
  103487. 802a2b4: f853 2b04 ldr.w r2, [r3], #4
  103488. 802a2b8: 9105 str r1, [sp, #20]
  103489. 802a2ba: 6800 ldr r0, [r0, #0]
  103490. 802a2bc: 9301 str r3, [sp, #4]
  103491. 802a2be: a902 add r1, sp, #8
  103492. 802a2c0: f002 f8d2 bl 802c468 <_svfiprintf_r>
  103493. 802a2c4: 9b02 ldr r3, [sp, #8]
  103494. 802a2c6: 2200 movs r2, #0
  103495. 802a2c8: 701a strb r2, [r3, #0]
  103496. 802a2ca: b01c add sp, #112 @ 0x70
  103497. 802a2cc: f85d eb04 ldr.w lr, [sp], #4
  103498. 802a2d0: b003 add sp, #12
  103499. 802a2d2: 4770 bx lr
  103500. 802a2d4: 240001d4 .word 0x240001d4
  103501. 802a2d8: ffff0208 .word 0xffff0208
  103502. 0802a2dc <__sread>:
  103503. 802a2dc: b510 push {r4, lr}
  103504. 802a2de: 460c mov r4, r1
  103505. 802a2e0: f9b1 100e ldrsh.w r1, [r1, #14]
  103506. 802a2e4: f000 f992 bl 802a60c <_read_r>
  103507. 802a2e8: 2800 cmp r0, #0
  103508. 802a2ea: bfab itete ge
  103509. 802a2ec: 6d63 ldrge r3, [r4, #84] @ 0x54
  103510. 802a2ee: 89a3 ldrhlt r3, [r4, #12]
  103511. 802a2f0: 181b addge r3, r3, r0
  103512. 802a2f2: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  103513. 802a2f6: bfac ite ge
  103514. 802a2f8: 6563 strge r3, [r4, #84] @ 0x54
  103515. 802a2fa: 81a3 strhlt r3, [r4, #12]
  103516. 802a2fc: bd10 pop {r4, pc}
  103517. 0802a2fe <__swrite>:
  103518. 802a2fe: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  103519. 802a302: 461f mov r7, r3
  103520. 802a304: 898b ldrh r3, [r1, #12]
  103521. 802a306: 05db lsls r3, r3, #23
  103522. 802a308: 4605 mov r5, r0
  103523. 802a30a: 460c mov r4, r1
  103524. 802a30c: 4616 mov r6, r2
  103525. 802a30e: d505 bpl.n 802a31c <__swrite+0x1e>
  103526. 802a310: f9b1 100e ldrsh.w r1, [r1, #14]
  103527. 802a314: 2302 movs r3, #2
  103528. 802a316: 2200 movs r2, #0
  103529. 802a318: f000 f966 bl 802a5e8 <_lseek_r>
  103530. 802a31c: 89a3 ldrh r3, [r4, #12]
  103531. 802a31e: f9b4 100e ldrsh.w r1, [r4, #14]
  103532. 802a322: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  103533. 802a326: 81a3 strh r3, [r4, #12]
  103534. 802a328: 4632 mov r2, r6
  103535. 802a32a: 463b mov r3, r7
  103536. 802a32c: 4628 mov r0, r5
  103537. 802a32e: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  103538. 802a332: f000 b98d b.w 802a650 <_write_r>
  103539. 0802a336 <__sseek>:
  103540. 802a336: b510 push {r4, lr}
  103541. 802a338: 460c mov r4, r1
  103542. 802a33a: f9b1 100e ldrsh.w r1, [r1, #14]
  103543. 802a33e: f000 f953 bl 802a5e8 <_lseek_r>
  103544. 802a342: 1c43 adds r3, r0, #1
  103545. 802a344: 89a3 ldrh r3, [r4, #12]
  103546. 802a346: bf15 itete ne
  103547. 802a348: 6560 strne r0, [r4, #84] @ 0x54
  103548. 802a34a: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  103549. 802a34e: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  103550. 802a352: 81a3 strheq r3, [r4, #12]
  103551. 802a354: bf18 it ne
  103552. 802a356: 81a3 strhne r3, [r4, #12]
  103553. 802a358: bd10 pop {r4, pc}
  103554. 0802a35a <__sclose>:
  103555. 802a35a: f9b1 100e ldrsh.w r1, [r1, #14]
  103556. 802a35e: f000 b8dd b.w 802a51c <_close_r>
  103557. 0802a362 <__swbuf_r>:
  103558. 802a362: b5f8 push {r3, r4, r5, r6, r7, lr}
  103559. 802a364: 460e mov r6, r1
  103560. 802a366: 4614 mov r4, r2
  103561. 802a368: 4605 mov r5, r0
  103562. 802a36a: b118 cbz r0, 802a374 <__swbuf_r+0x12>
  103563. 802a36c: 6a03 ldr r3, [r0, #32]
  103564. 802a36e: b90b cbnz r3, 802a374 <__swbuf_r+0x12>
  103565. 802a370: f7ff feee bl 802a150 <__sinit>
  103566. 802a374: 69a3 ldr r3, [r4, #24]
  103567. 802a376: 60a3 str r3, [r4, #8]
  103568. 802a378: 89a3 ldrh r3, [r4, #12]
  103569. 802a37a: 071a lsls r2, r3, #28
  103570. 802a37c: d501 bpl.n 802a382 <__swbuf_r+0x20>
  103571. 802a37e: 6923 ldr r3, [r4, #16]
  103572. 802a380: b943 cbnz r3, 802a394 <__swbuf_r+0x32>
  103573. 802a382: 4621 mov r1, r4
  103574. 802a384: 4628 mov r0, r5
  103575. 802a386: f000 f82b bl 802a3e0 <__swsetup_r>
  103576. 802a38a: b118 cbz r0, 802a394 <__swbuf_r+0x32>
  103577. 802a38c: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  103578. 802a390: 4638 mov r0, r7
  103579. 802a392: bdf8 pop {r3, r4, r5, r6, r7, pc}
  103580. 802a394: 6823 ldr r3, [r4, #0]
  103581. 802a396: 6922 ldr r2, [r4, #16]
  103582. 802a398: 1a98 subs r0, r3, r2
  103583. 802a39a: 6963 ldr r3, [r4, #20]
  103584. 802a39c: b2f6 uxtb r6, r6
  103585. 802a39e: 4283 cmp r3, r0
  103586. 802a3a0: 4637 mov r7, r6
  103587. 802a3a2: dc05 bgt.n 802a3b0 <__swbuf_r+0x4e>
  103588. 802a3a4: 4621 mov r1, r4
  103589. 802a3a6: 4628 mov r0, r5
  103590. 802a3a8: f002 fb20 bl 802c9ec <_fflush_r>
  103591. 802a3ac: 2800 cmp r0, #0
  103592. 802a3ae: d1ed bne.n 802a38c <__swbuf_r+0x2a>
  103593. 802a3b0: 68a3 ldr r3, [r4, #8]
  103594. 802a3b2: 3b01 subs r3, #1
  103595. 802a3b4: 60a3 str r3, [r4, #8]
  103596. 802a3b6: 6823 ldr r3, [r4, #0]
  103597. 802a3b8: 1c5a adds r2, r3, #1
  103598. 802a3ba: 6022 str r2, [r4, #0]
  103599. 802a3bc: 701e strb r6, [r3, #0]
  103600. 802a3be: 6962 ldr r2, [r4, #20]
  103601. 802a3c0: 1c43 adds r3, r0, #1
  103602. 802a3c2: 429a cmp r2, r3
  103603. 802a3c4: d004 beq.n 802a3d0 <__swbuf_r+0x6e>
  103604. 802a3c6: 89a3 ldrh r3, [r4, #12]
  103605. 802a3c8: 07db lsls r3, r3, #31
  103606. 802a3ca: d5e1 bpl.n 802a390 <__swbuf_r+0x2e>
  103607. 802a3cc: 2e0a cmp r6, #10
  103608. 802a3ce: d1df bne.n 802a390 <__swbuf_r+0x2e>
  103609. 802a3d0: 4621 mov r1, r4
  103610. 802a3d2: 4628 mov r0, r5
  103611. 802a3d4: f002 fb0a bl 802c9ec <_fflush_r>
  103612. 802a3d8: 2800 cmp r0, #0
  103613. 802a3da: d0d9 beq.n 802a390 <__swbuf_r+0x2e>
  103614. 802a3dc: e7d6 b.n 802a38c <__swbuf_r+0x2a>
  103615. ...
  103616. 0802a3e0 <__swsetup_r>:
  103617. 802a3e0: b538 push {r3, r4, r5, lr}
  103618. 802a3e2: 4b29 ldr r3, [pc, #164] @ (802a488 <__swsetup_r+0xa8>)
  103619. 802a3e4: 4605 mov r5, r0
  103620. 802a3e6: 6818 ldr r0, [r3, #0]
  103621. 802a3e8: 460c mov r4, r1
  103622. 802a3ea: b118 cbz r0, 802a3f4 <__swsetup_r+0x14>
  103623. 802a3ec: 6a03 ldr r3, [r0, #32]
  103624. 802a3ee: b90b cbnz r3, 802a3f4 <__swsetup_r+0x14>
  103625. 802a3f0: f7ff feae bl 802a150 <__sinit>
  103626. 802a3f4: f9b4 300c ldrsh.w r3, [r4, #12]
  103627. 802a3f8: 0719 lsls r1, r3, #28
  103628. 802a3fa: d422 bmi.n 802a442 <__swsetup_r+0x62>
  103629. 802a3fc: 06da lsls r2, r3, #27
  103630. 802a3fe: d407 bmi.n 802a410 <__swsetup_r+0x30>
  103631. 802a400: 2209 movs r2, #9
  103632. 802a402: 602a str r2, [r5, #0]
  103633. 802a404: f043 0340 orr.w r3, r3, #64 @ 0x40
  103634. 802a408: 81a3 strh r3, [r4, #12]
  103635. 802a40a: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  103636. 802a40e: e033 b.n 802a478 <__swsetup_r+0x98>
  103637. 802a410: 0758 lsls r0, r3, #29
  103638. 802a412: d512 bpl.n 802a43a <__swsetup_r+0x5a>
  103639. 802a414: 6b61 ldr r1, [r4, #52] @ 0x34
  103640. 802a416: b141 cbz r1, 802a42a <__swsetup_r+0x4a>
  103641. 802a418: f104 0344 add.w r3, r4, #68 @ 0x44
  103642. 802a41c: 4299 cmp r1, r3
  103643. 802a41e: d002 beq.n 802a426 <__swsetup_r+0x46>
  103644. 802a420: 4628 mov r0, r5
  103645. 802a422: f000 ff6b bl 802b2fc <_free_r>
  103646. 802a426: 2300 movs r3, #0
  103647. 802a428: 6363 str r3, [r4, #52] @ 0x34
  103648. 802a42a: 89a3 ldrh r3, [r4, #12]
  103649. 802a42c: f023 0324 bic.w r3, r3, #36 @ 0x24
  103650. 802a430: 81a3 strh r3, [r4, #12]
  103651. 802a432: 2300 movs r3, #0
  103652. 802a434: 6063 str r3, [r4, #4]
  103653. 802a436: 6923 ldr r3, [r4, #16]
  103654. 802a438: 6023 str r3, [r4, #0]
  103655. 802a43a: 89a3 ldrh r3, [r4, #12]
  103656. 802a43c: f043 0308 orr.w r3, r3, #8
  103657. 802a440: 81a3 strh r3, [r4, #12]
  103658. 802a442: 6923 ldr r3, [r4, #16]
  103659. 802a444: b94b cbnz r3, 802a45a <__swsetup_r+0x7a>
  103660. 802a446: 89a3 ldrh r3, [r4, #12]
  103661. 802a448: f403 7320 and.w r3, r3, #640 @ 0x280
  103662. 802a44c: f5b3 7f00 cmp.w r3, #512 @ 0x200
  103663. 802a450: d003 beq.n 802a45a <__swsetup_r+0x7a>
  103664. 802a452: 4621 mov r1, r4
  103665. 802a454: 4628 mov r0, r5
  103666. 802a456: f002 fb29 bl 802caac <__smakebuf_r>
  103667. 802a45a: f9b4 300c ldrsh.w r3, [r4, #12]
  103668. 802a45e: f013 0201 ands.w r2, r3, #1
  103669. 802a462: d00a beq.n 802a47a <__swsetup_r+0x9a>
  103670. 802a464: 2200 movs r2, #0
  103671. 802a466: 60a2 str r2, [r4, #8]
  103672. 802a468: 6962 ldr r2, [r4, #20]
  103673. 802a46a: 4252 negs r2, r2
  103674. 802a46c: 61a2 str r2, [r4, #24]
  103675. 802a46e: 6922 ldr r2, [r4, #16]
  103676. 802a470: b942 cbnz r2, 802a484 <__swsetup_r+0xa4>
  103677. 802a472: f013 0080 ands.w r0, r3, #128 @ 0x80
  103678. 802a476: d1c5 bne.n 802a404 <__swsetup_r+0x24>
  103679. 802a478: bd38 pop {r3, r4, r5, pc}
  103680. 802a47a: 0799 lsls r1, r3, #30
  103681. 802a47c: bf58 it pl
  103682. 802a47e: 6962 ldrpl r2, [r4, #20]
  103683. 802a480: 60a2 str r2, [r4, #8]
  103684. 802a482: e7f4 b.n 802a46e <__swsetup_r+0x8e>
  103685. 802a484: 2000 movs r0, #0
  103686. 802a486: e7f7 b.n 802a478 <__swsetup_r+0x98>
  103687. 802a488: 240001d4 .word 0x240001d4
  103688. 0802a48c <memcmp>:
  103689. 802a48c: b510 push {r4, lr}
  103690. 802a48e: 3901 subs r1, #1
  103691. 802a490: 4402 add r2, r0
  103692. 802a492: 4290 cmp r0, r2
  103693. 802a494: d101 bne.n 802a49a <memcmp+0xe>
  103694. 802a496: 2000 movs r0, #0
  103695. 802a498: e005 b.n 802a4a6 <memcmp+0x1a>
  103696. 802a49a: 7803 ldrb r3, [r0, #0]
  103697. 802a49c: f811 4f01 ldrb.w r4, [r1, #1]!
  103698. 802a4a0: 42a3 cmp r3, r4
  103699. 802a4a2: d001 beq.n 802a4a8 <memcmp+0x1c>
  103700. 802a4a4: 1b18 subs r0, r3, r4
  103701. 802a4a6: bd10 pop {r4, pc}
  103702. 802a4a8: 3001 adds r0, #1
  103703. 802a4aa: e7f2 b.n 802a492 <memcmp+0x6>
  103704. 0802a4ac <memmove>:
  103705. 802a4ac: 4288 cmp r0, r1
  103706. 802a4ae: b510 push {r4, lr}
  103707. 802a4b0: eb01 0402 add.w r4, r1, r2
  103708. 802a4b4: d902 bls.n 802a4bc <memmove+0x10>
  103709. 802a4b6: 4284 cmp r4, r0
  103710. 802a4b8: 4623 mov r3, r4
  103711. 802a4ba: d807 bhi.n 802a4cc <memmove+0x20>
  103712. 802a4bc: 1e43 subs r3, r0, #1
  103713. 802a4be: 42a1 cmp r1, r4
  103714. 802a4c0: d008 beq.n 802a4d4 <memmove+0x28>
  103715. 802a4c2: f811 2b01 ldrb.w r2, [r1], #1
  103716. 802a4c6: f803 2f01 strb.w r2, [r3, #1]!
  103717. 802a4ca: e7f8 b.n 802a4be <memmove+0x12>
  103718. 802a4cc: 4402 add r2, r0
  103719. 802a4ce: 4601 mov r1, r0
  103720. 802a4d0: 428a cmp r2, r1
  103721. 802a4d2: d100 bne.n 802a4d6 <memmove+0x2a>
  103722. 802a4d4: bd10 pop {r4, pc}
  103723. 802a4d6: f813 4d01 ldrb.w r4, [r3, #-1]!
  103724. 802a4da: f802 4d01 strb.w r4, [r2, #-1]!
  103725. 802a4de: e7f7 b.n 802a4d0 <memmove+0x24>
  103726. 0802a4e0 <memset>:
  103727. 802a4e0: 4402 add r2, r0
  103728. 802a4e2: 4603 mov r3, r0
  103729. 802a4e4: 4293 cmp r3, r2
  103730. 802a4e6: d100 bne.n 802a4ea <memset+0xa>
  103731. 802a4e8: 4770 bx lr
  103732. 802a4ea: f803 1b01 strb.w r1, [r3], #1
  103733. 802a4ee: e7f9 b.n 802a4e4 <memset+0x4>
  103734. 0802a4f0 <strncmp>:
  103735. 802a4f0: b510 push {r4, lr}
  103736. 802a4f2: b16a cbz r2, 802a510 <strncmp+0x20>
  103737. 802a4f4: 3901 subs r1, #1
  103738. 802a4f6: 1884 adds r4, r0, r2
  103739. 802a4f8: f810 2b01 ldrb.w r2, [r0], #1
  103740. 802a4fc: f811 3f01 ldrb.w r3, [r1, #1]!
  103741. 802a500: 429a cmp r2, r3
  103742. 802a502: d103 bne.n 802a50c <strncmp+0x1c>
  103743. 802a504: 42a0 cmp r0, r4
  103744. 802a506: d001 beq.n 802a50c <strncmp+0x1c>
  103745. 802a508: 2a00 cmp r2, #0
  103746. 802a50a: d1f5 bne.n 802a4f8 <strncmp+0x8>
  103747. 802a50c: 1ad0 subs r0, r2, r3
  103748. 802a50e: bd10 pop {r4, pc}
  103749. 802a510: 4610 mov r0, r2
  103750. 802a512: e7fc b.n 802a50e <strncmp+0x1e>
  103751. 0802a514 <_localeconv_r>:
  103752. 802a514: 4800 ldr r0, [pc, #0] @ (802a518 <_localeconv_r+0x4>)
  103753. 802a516: 4770 bx lr
  103754. 802a518: 24000158 .word 0x24000158
  103755. 0802a51c <_close_r>:
  103756. 802a51c: b538 push {r3, r4, r5, lr}
  103757. 802a51e: 4d06 ldr r5, [pc, #24] @ (802a538 <_close_r+0x1c>)
  103758. 802a520: 2300 movs r3, #0
  103759. 802a522: 4604 mov r4, r0
  103760. 802a524: 4608 mov r0, r1
  103761. 802a526: 602b str r3, [r5, #0]
  103762. 802a528: f7d9 fc28 bl 8003d7c <_close>
  103763. 802a52c: 1c43 adds r3, r0, #1
  103764. 802a52e: d102 bne.n 802a536 <_close_r+0x1a>
  103765. 802a530: 682b ldr r3, [r5, #0]
  103766. 802a532: b103 cbz r3, 802a536 <_close_r+0x1a>
  103767. 802a534: 6023 str r3, [r4, #0]
  103768. 802a536: bd38 pop {r3, r4, r5, pc}
  103769. 802a538: 2402b250 .word 0x2402b250
  103770. 0802a53c <_reclaim_reent>:
  103771. 802a53c: 4b29 ldr r3, [pc, #164] @ (802a5e4 <_reclaim_reent+0xa8>)
  103772. 802a53e: 681b ldr r3, [r3, #0]
  103773. 802a540: 4283 cmp r3, r0
  103774. 802a542: b570 push {r4, r5, r6, lr}
  103775. 802a544: 4604 mov r4, r0
  103776. 802a546: d04b beq.n 802a5e0 <_reclaim_reent+0xa4>
  103777. 802a548: 69c3 ldr r3, [r0, #28]
  103778. 802a54a: b1ab cbz r3, 802a578 <_reclaim_reent+0x3c>
  103779. 802a54c: 68db ldr r3, [r3, #12]
  103780. 802a54e: b16b cbz r3, 802a56c <_reclaim_reent+0x30>
  103781. 802a550: 2500 movs r5, #0
  103782. 802a552: 69e3 ldr r3, [r4, #28]
  103783. 802a554: 68db ldr r3, [r3, #12]
  103784. 802a556: 5959 ldr r1, [r3, r5]
  103785. 802a558: 2900 cmp r1, #0
  103786. 802a55a: d13b bne.n 802a5d4 <_reclaim_reent+0x98>
  103787. 802a55c: 3504 adds r5, #4
  103788. 802a55e: 2d80 cmp r5, #128 @ 0x80
  103789. 802a560: d1f7 bne.n 802a552 <_reclaim_reent+0x16>
  103790. 802a562: 69e3 ldr r3, [r4, #28]
  103791. 802a564: 4620 mov r0, r4
  103792. 802a566: 68d9 ldr r1, [r3, #12]
  103793. 802a568: f000 fec8 bl 802b2fc <_free_r>
  103794. 802a56c: 69e3 ldr r3, [r4, #28]
  103795. 802a56e: 6819 ldr r1, [r3, #0]
  103796. 802a570: b111 cbz r1, 802a578 <_reclaim_reent+0x3c>
  103797. 802a572: 4620 mov r0, r4
  103798. 802a574: f000 fec2 bl 802b2fc <_free_r>
  103799. 802a578: 6961 ldr r1, [r4, #20]
  103800. 802a57a: b111 cbz r1, 802a582 <_reclaim_reent+0x46>
  103801. 802a57c: 4620 mov r0, r4
  103802. 802a57e: f000 febd bl 802b2fc <_free_r>
  103803. 802a582: 69e1 ldr r1, [r4, #28]
  103804. 802a584: b111 cbz r1, 802a58c <_reclaim_reent+0x50>
  103805. 802a586: 4620 mov r0, r4
  103806. 802a588: f000 feb8 bl 802b2fc <_free_r>
  103807. 802a58c: 6b21 ldr r1, [r4, #48] @ 0x30
  103808. 802a58e: b111 cbz r1, 802a596 <_reclaim_reent+0x5a>
  103809. 802a590: 4620 mov r0, r4
  103810. 802a592: f000 feb3 bl 802b2fc <_free_r>
  103811. 802a596: 6b61 ldr r1, [r4, #52] @ 0x34
  103812. 802a598: b111 cbz r1, 802a5a0 <_reclaim_reent+0x64>
  103813. 802a59a: 4620 mov r0, r4
  103814. 802a59c: f000 feae bl 802b2fc <_free_r>
  103815. 802a5a0: 6ba1 ldr r1, [r4, #56] @ 0x38
  103816. 802a5a2: b111 cbz r1, 802a5aa <_reclaim_reent+0x6e>
  103817. 802a5a4: 4620 mov r0, r4
  103818. 802a5a6: f000 fea9 bl 802b2fc <_free_r>
  103819. 802a5aa: 6ca1 ldr r1, [r4, #72] @ 0x48
  103820. 802a5ac: b111 cbz r1, 802a5b4 <_reclaim_reent+0x78>
  103821. 802a5ae: 4620 mov r0, r4
  103822. 802a5b0: f000 fea4 bl 802b2fc <_free_r>
  103823. 802a5b4: 6c61 ldr r1, [r4, #68] @ 0x44
  103824. 802a5b6: b111 cbz r1, 802a5be <_reclaim_reent+0x82>
  103825. 802a5b8: 4620 mov r0, r4
  103826. 802a5ba: f000 fe9f bl 802b2fc <_free_r>
  103827. 802a5be: 6ae1 ldr r1, [r4, #44] @ 0x2c
  103828. 802a5c0: b111 cbz r1, 802a5c8 <_reclaim_reent+0x8c>
  103829. 802a5c2: 4620 mov r0, r4
  103830. 802a5c4: f000 fe9a bl 802b2fc <_free_r>
  103831. 802a5c8: 6a23 ldr r3, [r4, #32]
  103832. 802a5ca: b14b cbz r3, 802a5e0 <_reclaim_reent+0xa4>
  103833. 802a5cc: 4620 mov r0, r4
  103834. 802a5ce: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  103835. 802a5d2: 4718 bx r3
  103836. 802a5d4: 680e ldr r6, [r1, #0]
  103837. 802a5d6: 4620 mov r0, r4
  103838. 802a5d8: f000 fe90 bl 802b2fc <_free_r>
  103839. 802a5dc: 4631 mov r1, r6
  103840. 802a5de: e7bb b.n 802a558 <_reclaim_reent+0x1c>
  103841. 802a5e0: bd70 pop {r4, r5, r6, pc}
  103842. 802a5e2: bf00 nop
  103843. 802a5e4: 240001d4 .word 0x240001d4
  103844. 0802a5e8 <_lseek_r>:
  103845. 802a5e8: b538 push {r3, r4, r5, lr}
  103846. 802a5ea: 4d07 ldr r5, [pc, #28] @ (802a608 <_lseek_r+0x20>)
  103847. 802a5ec: 4604 mov r4, r0
  103848. 802a5ee: 4608 mov r0, r1
  103849. 802a5f0: 4611 mov r1, r2
  103850. 802a5f2: 2200 movs r2, #0
  103851. 802a5f4: 602a str r2, [r5, #0]
  103852. 802a5f6: 461a mov r2, r3
  103853. 802a5f8: f7d9 fbe7 bl 8003dca <_lseek>
  103854. 802a5fc: 1c43 adds r3, r0, #1
  103855. 802a5fe: d102 bne.n 802a606 <_lseek_r+0x1e>
  103856. 802a600: 682b ldr r3, [r5, #0]
  103857. 802a602: b103 cbz r3, 802a606 <_lseek_r+0x1e>
  103858. 802a604: 6023 str r3, [r4, #0]
  103859. 802a606: bd38 pop {r3, r4, r5, pc}
  103860. 802a608: 2402b250 .word 0x2402b250
  103861. 0802a60c <_read_r>:
  103862. 802a60c: b538 push {r3, r4, r5, lr}
  103863. 802a60e: 4d07 ldr r5, [pc, #28] @ (802a62c <_read_r+0x20>)
  103864. 802a610: 4604 mov r4, r0
  103865. 802a612: 4608 mov r0, r1
  103866. 802a614: 4611 mov r1, r2
  103867. 802a616: 2200 movs r2, #0
  103868. 802a618: 602a str r2, [r5, #0]
  103869. 802a61a: 461a mov r2, r3
  103870. 802a61c: f7d9 fb75 bl 8003d0a <_read>
  103871. 802a620: 1c43 adds r3, r0, #1
  103872. 802a622: d102 bne.n 802a62a <_read_r+0x1e>
  103873. 802a624: 682b ldr r3, [r5, #0]
  103874. 802a626: b103 cbz r3, 802a62a <_read_r+0x1e>
  103875. 802a628: 6023 str r3, [r4, #0]
  103876. 802a62a: bd38 pop {r3, r4, r5, pc}
  103877. 802a62c: 2402b250 .word 0x2402b250
  103878. 0802a630 <_sbrk_r>:
  103879. 802a630: b538 push {r3, r4, r5, lr}
  103880. 802a632: 4d06 ldr r5, [pc, #24] @ (802a64c <_sbrk_r+0x1c>)
  103881. 802a634: 2300 movs r3, #0
  103882. 802a636: 4604 mov r4, r0
  103883. 802a638: 4608 mov r0, r1
  103884. 802a63a: 602b str r3, [r5, #0]
  103885. 802a63c: f7d9 fbd2 bl 8003de4 <_sbrk>
  103886. 802a640: 1c43 adds r3, r0, #1
  103887. 802a642: d102 bne.n 802a64a <_sbrk_r+0x1a>
  103888. 802a644: 682b ldr r3, [r5, #0]
  103889. 802a646: b103 cbz r3, 802a64a <_sbrk_r+0x1a>
  103890. 802a648: 6023 str r3, [r4, #0]
  103891. 802a64a: bd38 pop {r3, r4, r5, pc}
  103892. 802a64c: 2402b250 .word 0x2402b250
  103893. 0802a650 <_write_r>:
  103894. 802a650: b538 push {r3, r4, r5, lr}
  103895. 802a652: 4d07 ldr r5, [pc, #28] @ (802a670 <_write_r+0x20>)
  103896. 802a654: 4604 mov r4, r0
  103897. 802a656: 4608 mov r0, r1
  103898. 802a658: 4611 mov r1, r2
  103899. 802a65a: 2200 movs r2, #0
  103900. 802a65c: 602a str r2, [r5, #0]
  103901. 802a65e: 461a mov r2, r3
  103902. 802a660: f7d9 fb70 bl 8003d44 <_write>
  103903. 802a664: 1c43 adds r3, r0, #1
  103904. 802a666: d102 bne.n 802a66e <_write_r+0x1e>
  103905. 802a668: 682b ldr r3, [r5, #0]
  103906. 802a66a: b103 cbz r3, 802a66e <_write_r+0x1e>
  103907. 802a66c: 6023 str r3, [r4, #0]
  103908. 802a66e: bd38 pop {r3, r4, r5, pc}
  103909. 802a670: 2402b250 .word 0x2402b250
  103910. 0802a674 <__errno>:
  103911. 802a674: 4b01 ldr r3, [pc, #4] @ (802a67c <__errno+0x8>)
  103912. 802a676: 6818 ldr r0, [r3, #0]
  103913. 802a678: 4770 bx lr
  103914. 802a67a: bf00 nop
  103915. 802a67c: 240001d4 .word 0x240001d4
  103916. 0802a680 <__libc_init_array>:
  103917. 802a680: b570 push {r4, r5, r6, lr}
  103918. 802a682: 4d0d ldr r5, [pc, #52] @ (802a6b8 <__libc_init_array+0x38>)
  103919. 802a684: 4c0d ldr r4, [pc, #52] @ (802a6bc <__libc_init_array+0x3c>)
  103920. 802a686: 1b64 subs r4, r4, r5
  103921. 802a688: 10a4 asrs r4, r4, #2
  103922. 802a68a: 2600 movs r6, #0
  103923. 802a68c: 42a6 cmp r6, r4
  103924. 802a68e: d109 bne.n 802a6a4 <__libc_init_array+0x24>
  103925. 802a690: 4d0b ldr r5, [pc, #44] @ (802a6c0 <__libc_init_array+0x40>)
  103926. 802a692: 4c0c ldr r4, [pc, #48] @ (802a6c4 <__libc_init_array+0x44>)
  103927. 802a694: f002 fac8 bl 802cc28 <_init>
  103928. 802a698: 1b64 subs r4, r4, r5
  103929. 802a69a: 10a4 asrs r4, r4, #2
  103930. 802a69c: 2600 movs r6, #0
  103931. 802a69e: 42a6 cmp r6, r4
  103932. 802a6a0: d105 bne.n 802a6ae <__libc_init_array+0x2e>
  103933. 802a6a2: bd70 pop {r4, r5, r6, pc}
  103934. 802a6a4: f855 3b04 ldr.w r3, [r5], #4
  103935. 802a6a8: 4798 blx r3
  103936. 802a6aa: 3601 adds r6, #1
  103937. 802a6ac: e7ee b.n 802a68c <__libc_init_array+0xc>
  103938. 802a6ae: f855 3b04 ldr.w r3, [r5], #4
  103939. 802a6b2: 4798 blx r3
  103940. 802a6b4: 3601 adds r6, #1
  103941. 802a6b6: e7f2 b.n 802a69e <__libc_init_array+0x1e>
  103942. 802a6b8: 08031994 .word 0x08031994
  103943. 802a6bc: 08031994 .word 0x08031994
  103944. 802a6c0: 08031994 .word 0x08031994
  103945. 802a6c4: 08031998 .word 0x08031998
  103946. 0802a6c8 <__retarget_lock_init_recursive>:
  103947. 802a6c8: 4770 bx lr
  103948. 0802a6ca <__retarget_lock_acquire_recursive>:
  103949. 802a6ca: 4770 bx lr
  103950. 0802a6cc <__retarget_lock_release_recursive>:
  103951. 802a6cc: 4770 bx lr
  103952. 0802a6ce <memcpy>:
  103953. 802a6ce: 440a add r2, r1
  103954. 802a6d0: 4291 cmp r1, r2
  103955. 802a6d2: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  103956. 802a6d6: d100 bne.n 802a6da <memcpy+0xc>
  103957. 802a6d8: 4770 bx lr
  103958. 802a6da: b510 push {r4, lr}
  103959. 802a6dc: f811 4b01 ldrb.w r4, [r1], #1
  103960. 802a6e0: f803 4f01 strb.w r4, [r3, #1]!
  103961. 802a6e4: 4291 cmp r1, r2
  103962. 802a6e6: d1f9 bne.n 802a6dc <memcpy+0xe>
  103963. 802a6e8: bd10 pop {r4, pc}
  103964. 802a6ea: 0000 movs r0, r0
  103965. 802a6ec: 0000 movs r0, r0
  103966. ...
  103967. 0802a6f0 <nan>:
  103968. 802a6f0: ed9f 0b01 vldr d0, [pc, #4] @ 802a6f8 <nan+0x8>
  103969. 802a6f4: 4770 bx lr
  103970. 802a6f6: bf00 nop
  103971. 802a6f8: 00000000 .word 0x00000000
  103972. 802a6fc: 7ff80000 .word 0x7ff80000
  103973. 0802a700 <__assert_func>:
  103974. 802a700: b51f push {r0, r1, r2, r3, r4, lr}
  103975. 802a702: 4614 mov r4, r2
  103976. 802a704: 461a mov r2, r3
  103977. 802a706: 4b09 ldr r3, [pc, #36] @ (802a72c <__assert_func+0x2c>)
  103978. 802a708: 681b ldr r3, [r3, #0]
  103979. 802a70a: 4605 mov r5, r0
  103980. 802a70c: 68d8 ldr r0, [r3, #12]
  103981. 802a70e: b954 cbnz r4, 802a726 <__assert_func+0x26>
  103982. 802a710: 4b07 ldr r3, [pc, #28] @ (802a730 <__assert_func+0x30>)
  103983. 802a712: 461c mov r4, r3
  103984. 802a714: e9cd 3401 strd r3, r4, [sp, #4]
  103985. 802a718: 9100 str r1, [sp, #0]
  103986. 802a71a: 462b mov r3, r5
  103987. 802a71c: 4905 ldr r1, [pc, #20] @ (802a734 <__assert_func+0x34>)
  103988. 802a71e: f002 f98d bl 802ca3c <fiprintf>
  103989. 802a722: f002 fa21 bl 802cb68 <abort>
  103990. 802a726: 4b04 ldr r3, [pc, #16] @ (802a738 <__assert_func+0x38>)
  103991. 802a728: e7f4 b.n 802a714 <__assert_func+0x14>
  103992. 802a72a: bf00 nop
  103993. 802a72c: 240001d4 .word 0x240001d4
  103994. 802a730: 08031748 .word 0x08031748
  103995. 802a734: 0803171a .word 0x0803171a
  103996. 802a738: 0803170d .word 0x0803170d
  103997. 0802a73c <quorem>:
  103998. 802a73c: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  103999. 802a740: 6903 ldr r3, [r0, #16]
  104000. 802a742: 690c ldr r4, [r1, #16]
  104001. 802a744: 42a3 cmp r3, r4
  104002. 802a746: 4607 mov r7, r0
  104003. 802a748: db7e blt.n 802a848 <quorem+0x10c>
  104004. 802a74a: 3c01 subs r4, #1
  104005. 802a74c: f101 0814 add.w r8, r1, #20
  104006. 802a750: 00a3 lsls r3, r4, #2
  104007. 802a752: f100 0514 add.w r5, r0, #20
  104008. 802a756: 9300 str r3, [sp, #0]
  104009. 802a758: eb05 0384 add.w r3, r5, r4, lsl #2
  104010. 802a75c: 9301 str r3, [sp, #4]
  104011. 802a75e: f858 3024 ldr.w r3, [r8, r4, lsl #2]
  104012. 802a762: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  104013. 802a766: 3301 adds r3, #1
  104014. 802a768: 429a cmp r2, r3
  104015. 802a76a: eb08 0984 add.w r9, r8, r4, lsl #2
  104016. 802a76e: fbb2 f6f3 udiv r6, r2, r3
  104017. 802a772: d32e bcc.n 802a7d2 <quorem+0x96>
  104018. 802a774: f04f 0a00 mov.w sl, #0
  104019. 802a778: 46c4 mov ip, r8
  104020. 802a77a: 46ae mov lr, r5
  104021. 802a77c: 46d3 mov fp, sl
  104022. 802a77e: f85c 3b04 ldr.w r3, [ip], #4
  104023. 802a782: b298 uxth r0, r3
  104024. 802a784: fb06 a000 mla r0, r6, r0, sl
  104025. 802a788: 0c02 lsrs r2, r0, #16
  104026. 802a78a: 0c1b lsrs r3, r3, #16
  104027. 802a78c: fb06 2303 mla r3, r6, r3, r2
  104028. 802a790: f8de 2000 ldr.w r2, [lr]
  104029. 802a794: b280 uxth r0, r0
  104030. 802a796: b292 uxth r2, r2
  104031. 802a798: 1a12 subs r2, r2, r0
  104032. 802a79a: 445a add r2, fp
  104033. 802a79c: f8de 0000 ldr.w r0, [lr]
  104034. 802a7a0: ea4f 4a13 mov.w sl, r3, lsr #16
  104035. 802a7a4: b29b uxth r3, r3
  104036. 802a7a6: ebc3 4322 rsb r3, r3, r2, asr #16
  104037. 802a7aa: eb03 4310 add.w r3, r3, r0, lsr #16
  104038. 802a7ae: b292 uxth r2, r2
  104039. 802a7b0: ea42 4203 orr.w r2, r2, r3, lsl #16
  104040. 802a7b4: 45e1 cmp r9, ip
  104041. 802a7b6: f84e 2b04 str.w r2, [lr], #4
  104042. 802a7ba: ea4f 4b23 mov.w fp, r3, asr #16
  104043. 802a7be: d2de bcs.n 802a77e <quorem+0x42>
  104044. 802a7c0: 9b00 ldr r3, [sp, #0]
  104045. 802a7c2: 58eb ldr r3, [r5, r3]
  104046. 802a7c4: b92b cbnz r3, 802a7d2 <quorem+0x96>
  104047. 802a7c6: 9b01 ldr r3, [sp, #4]
  104048. 802a7c8: 3b04 subs r3, #4
  104049. 802a7ca: 429d cmp r5, r3
  104050. 802a7cc: 461a mov r2, r3
  104051. 802a7ce: d32f bcc.n 802a830 <quorem+0xf4>
  104052. 802a7d0: 613c str r4, [r7, #16]
  104053. 802a7d2: 4638 mov r0, r7
  104054. 802a7d4: f001 fbec bl 802bfb0 <__mcmp>
  104055. 802a7d8: 2800 cmp r0, #0
  104056. 802a7da: db25 blt.n 802a828 <quorem+0xec>
  104057. 802a7dc: 4629 mov r1, r5
  104058. 802a7de: 2000 movs r0, #0
  104059. 802a7e0: f858 2b04 ldr.w r2, [r8], #4
  104060. 802a7e4: f8d1 c000 ldr.w ip, [r1]
  104061. 802a7e8: fa1f fe82 uxth.w lr, r2
  104062. 802a7ec: fa1f f38c uxth.w r3, ip
  104063. 802a7f0: eba3 030e sub.w r3, r3, lr
  104064. 802a7f4: 4403 add r3, r0
  104065. 802a7f6: 0c12 lsrs r2, r2, #16
  104066. 802a7f8: ebc2 4223 rsb r2, r2, r3, asr #16
  104067. 802a7fc: eb02 421c add.w r2, r2, ip, lsr #16
  104068. 802a800: b29b uxth r3, r3
  104069. 802a802: ea43 4302 orr.w r3, r3, r2, lsl #16
  104070. 802a806: 45c1 cmp r9, r8
  104071. 802a808: f841 3b04 str.w r3, [r1], #4
  104072. 802a80c: ea4f 4022 mov.w r0, r2, asr #16
  104073. 802a810: d2e6 bcs.n 802a7e0 <quorem+0xa4>
  104074. 802a812: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  104075. 802a816: eb05 0384 add.w r3, r5, r4, lsl #2
  104076. 802a81a: b922 cbnz r2, 802a826 <quorem+0xea>
  104077. 802a81c: 3b04 subs r3, #4
  104078. 802a81e: 429d cmp r5, r3
  104079. 802a820: 461a mov r2, r3
  104080. 802a822: d30b bcc.n 802a83c <quorem+0x100>
  104081. 802a824: 613c str r4, [r7, #16]
  104082. 802a826: 3601 adds r6, #1
  104083. 802a828: 4630 mov r0, r6
  104084. 802a82a: b003 add sp, #12
  104085. 802a82c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  104086. 802a830: 6812 ldr r2, [r2, #0]
  104087. 802a832: 3b04 subs r3, #4
  104088. 802a834: 2a00 cmp r2, #0
  104089. 802a836: d1cb bne.n 802a7d0 <quorem+0x94>
  104090. 802a838: 3c01 subs r4, #1
  104091. 802a83a: e7c6 b.n 802a7ca <quorem+0x8e>
  104092. 802a83c: 6812 ldr r2, [r2, #0]
  104093. 802a83e: 3b04 subs r3, #4
  104094. 802a840: 2a00 cmp r2, #0
  104095. 802a842: d1ef bne.n 802a824 <quorem+0xe8>
  104096. 802a844: 3c01 subs r4, #1
  104097. 802a846: e7ea b.n 802a81e <quorem+0xe2>
  104098. 802a848: 2000 movs r0, #0
  104099. 802a84a: e7ee b.n 802a82a <quorem+0xee>
  104100. 802a84c: 0000 movs r0, r0
  104101. ...
  104102. 0802a850 <_dtoa_r>:
  104103. 802a850: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  104104. 802a854: ed2d 8b02 vpush {d8}
  104105. 802a858: 69c7 ldr r7, [r0, #28]
  104106. 802a85a: b091 sub sp, #68 @ 0x44
  104107. 802a85c: ed8d 0b02 vstr d0, [sp, #8]
  104108. 802a860: ec55 4b10 vmov r4, r5, d0
  104109. 802a864: 9e1c ldr r6, [sp, #112] @ 0x70
  104110. 802a866: 9107 str r1, [sp, #28]
  104111. 802a868: 4681 mov r9, r0
  104112. 802a86a: 9209 str r2, [sp, #36] @ 0x24
  104113. 802a86c: 930d str r3, [sp, #52] @ 0x34
  104114. 802a86e: b97f cbnz r7, 802a890 <_dtoa_r+0x40>
  104115. 802a870: 2010 movs r0, #16
  104116. 802a872: f7fe f8bb bl 80289ec <malloc>
  104117. 802a876: 4602 mov r2, r0
  104118. 802a878: f8c9 001c str.w r0, [r9, #28]
  104119. 802a87c: b920 cbnz r0, 802a888 <_dtoa_r+0x38>
  104120. 802a87e: 4ba0 ldr r3, [pc, #640] @ (802ab00 <_dtoa_r+0x2b0>)
  104121. 802a880: 21ef movs r1, #239 @ 0xef
  104122. 802a882: 48a0 ldr r0, [pc, #640] @ (802ab04 <_dtoa_r+0x2b4>)
  104123. 802a884: f7ff ff3c bl 802a700 <__assert_func>
  104124. 802a888: e9c0 7701 strd r7, r7, [r0, #4]
  104125. 802a88c: 6007 str r7, [r0, #0]
  104126. 802a88e: 60c7 str r7, [r0, #12]
  104127. 802a890: f8d9 301c ldr.w r3, [r9, #28]
  104128. 802a894: 6819 ldr r1, [r3, #0]
  104129. 802a896: b159 cbz r1, 802a8b0 <_dtoa_r+0x60>
  104130. 802a898: 685a ldr r2, [r3, #4]
  104131. 802a89a: 604a str r2, [r1, #4]
  104132. 802a89c: 2301 movs r3, #1
  104133. 802a89e: 4093 lsls r3, r2
  104134. 802a8a0: 608b str r3, [r1, #8]
  104135. 802a8a2: 4648 mov r0, r9
  104136. 802a8a4: f001 f900 bl 802baa8 <_Bfree>
  104137. 802a8a8: f8d9 301c ldr.w r3, [r9, #28]
  104138. 802a8ac: 2200 movs r2, #0
  104139. 802a8ae: 601a str r2, [r3, #0]
  104140. 802a8b0: 1e2b subs r3, r5, #0
  104141. 802a8b2: bfbb ittet lt
  104142. 802a8b4: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000
  104143. 802a8b8: 9303 strlt r3, [sp, #12]
  104144. 802a8ba: 2300 movge r3, #0
  104145. 802a8bc: 2201 movlt r2, #1
  104146. 802a8be: bfac ite ge
  104147. 802a8c0: 6033 strge r3, [r6, #0]
  104148. 802a8c2: 6032 strlt r2, [r6, #0]
  104149. 802a8c4: 4b90 ldr r3, [pc, #576] @ (802ab08 <_dtoa_r+0x2b8>)
  104150. 802a8c6: 9e03 ldr r6, [sp, #12]
  104151. 802a8c8: 43b3 bics r3, r6
  104152. 802a8ca: d110 bne.n 802a8ee <_dtoa_r+0x9e>
  104153. 802a8cc: 9a0d ldr r2, [sp, #52] @ 0x34
  104154. 802a8ce: f242 730f movw r3, #9999 @ 0x270f
  104155. 802a8d2: 6013 str r3, [r2, #0]
  104156. 802a8d4: f3c6 0313 ubfx r3, r6, #0, #20
  104157. 802a8d8: 4323 orrs r3, r4
  104158. 802a8da: f000 84de beq.w 802b29a <_dtoa_r+0xa4a>
  104159. 802a8de: 9b1d ldr r3, [sp, #116] @ 0x74
  104160. 802a8e0: 4f8a ldr r7, [pc, #552] @ (802ab0c <_dtoa_r+0x2bc>)
  104161. 802a8e2: 2b00 cmp r3, #0
  104162. 802a8e4: f000 84e0 beq.w 802b2a8 <_dtoa_r+0xa58>
  104163. 802a8e8: 1cfb adds r3, r7, #3
  104164. 802a8ea: f000 bcdb b.w 802b2a4 <_dtoa_r+0xa54>
  104165. 802a8ee: ed9d 8b02 vldr d8, [sp, #8]
  104166. 802a8f2: eeb5 8b40 vcmp.f64 d8, #0.0
  104167. 802a8f6: eef1 fa10 vmrs APSR_nzcv, fpscr
  104168. 802a8fa: d10a bne.n 802a912 <_dtoa_r+0xc2>
  104169. 802a8fc: 9a0d ldr r2, [sp, #52] @ 0x34
  104170. 802a8fe: 2301 movs r3, #1
  104171. 802a900: 6013 str r3, [r2, #0]
  104172. 802a902: 9b1d ldr r3, [sp, #116] @ 0x74
  104173. 802a904: b113 cbz r3, 802a90c <_dtoa_r+0xbc>
  104174. 802a906: 9a1d ldr r2, [sp, #116] @ 0x74
  104175. 802a908: 4b81 ldr r3, [pc, #516] @ (802ab10 <_dtoa_r+0x2c0>)
  104176. 802a90a: 6013 str r3, [r2, #0]
  104177. 802a90c: 4f81 ldr r7, [pc, #516] @ (802ab14 <_dtoa_r+0x2c4>)
  104178. 802a90e: f000 bccb b.w 802b2a8 <_dtoa_r+0xa58>
  104179. 802a912: aa0e add r2, sp, #56 @ 0x38
  104180. 802a914: a90f add r1, sp, #60 @ 0x3c
  104181. 802a916: 4648 mov r0, r9
  104182. 802a918: eeb0 0b48 vmov.f64 d0, d8
  104183. 802a91c: f001 fc68 bl 802c1f0 <__d2b>
  104184. 802a920: f3c6 530a ubfx r3, r6, #20, #11
  104185. 802a924: 9a0e ldr r2, [sp, #56] @ 0x38
  104186. 802a926: 9001 str r0, [sp, #4]
  104187. 802a928: 2b00 cmp r3, #0
  104188. 802a92a: d045 beq.n 802a9b8 <_dtoa_r+0x168>
  104189. 802a92c: eeb0 7b48 vmov.f64 d7, d8
  104190. 802a930: ee18 1a90 vmov r1, s17
  104191. 802a934: f3c1 0113 ubfx r1, r1, #0, #20
  104192. 802a938: f041 517f orr.w r1, r1, #1069547520 @ 0x3fc00000
  104193. 802a93c: f441 1140 orr.w r1, r1, #3145728 @ 0x300000
  104194. 802a940: f2a3 33ff subw r3, r3, #1023 @ 0x3ff
  104195. 802a944: 2500 movs r5, #0
  104196. 802a946: ee07 1a90 vmov s15, r1
  104197. 802a94a: eeb7 6b08 vmov.f64 d6, #120 @ 0x3fc00000 1.5
  104198. 802a94e: ed9f 5b66 vldr d5, [pc, #408] @ 802aae8 <_dtoa_r+0x298>
  104199. 802a952: ee37 7b46 vsub.f64 d7, d7, d6
  104200. 802a956: ed9f 6b66 vldr d6, [pc, #408] @ 802aaf0 <_dtoa_r+0x2a0>
  104201. 802a95a: eea7 6b05 vfma.f64 d6, d7, d5
  104202. 802a95e: ed9f 5b66 vldr d5, [pc, #408] @ 802aaf8 <_dtoa_r+0x2a8>
  104203. 802a962: ee07 3a90 vmov s15, r3
  104204. 802a966: eeb8 4be7 vcvt.f64.s32 d4, s15
  104205. 802a96a: eeb0 7b46 vmov.f64 d7, d6
  104206. 802a96e: eea4 7b05 vfma.f64 d7, d4, d5
  104207. 802a972: eefd 6bc7 vcvt.s32.f64 s13, d7
  104208. 802a976: eeb5 7bc0 vcmpe.f64 d7, #0.0
  104209. 802a97a: eef1 fa10 vmrs APSR_nzcv, fpscr
  104210. 802a97e: ee16 8a90 vmov r8, s13
  104211. 802a982: d508 bpl.n 802a996 <_dtoa_r+0x146>
  104212. 802a984: eeb8 6be6 vcvt.f64.s32 d6, s13
  104213. 802a988: eeb4 6b47 vcmp.f64 d6, d7
  104214. 802a98c: eef1 fa10 vmrs APSR_nzcv, fpscr
  104215. 802a990: bf18 it ne
  104216. 802a992: f108 38ff addne.w r8, r8, #4294967295 @ 0xffffffff
  104217. 802a996: f1b8 0f16 cmp.w r8, #22
  104218. 802a99a: d82b bhi.n 802a9f4 <_dtoa_r+0x1a4>
  104219. 802a99c: 495e ldr r1, [pc, #376] @ (802ab18 <_dtoa_r+0x2c8>)
  104220. 802a99e: eb01 01c8 add.w r1, r1, r8, lsl #3
  104221. 802a9a2: ed91 7b00 vldr d7, [r1]
  104222. 802a9a6: eeb4 8bc7 vcmpe.f64 d8, d7
  104223. 802a9aa: eef1 fa10 vmrs APSR_nzcv, fpscr
  104224. 802a9ae: d501 bpl.n 802a9b4 <_dtoa_r+0x164>
  104225. 802a9b0: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  104226. 802a9b4: 2100 movs r1, #0
  104227. 802a9b6: e01e b.n 802a9f6 <_dtoa_r+0x1a6>
  104228. 802a9b8: 9b0f ldr r3, [sp, #60] @ 0x3c
  104229. 802a9ba: 4413 add r3, r2
  104230. 802a9bc: f203 4132 addw r1, r3, #1074 @ 0x432
  104231. 802a9c0: 2920 cmp r1, #32
  104232. 802a9c2: bfc1 itttt gt
  104233. 802a9c4: f1c1 0140 rsbgt r1, r1, #64 @ 0x40
  104234. 802a9c8: 408e lslgt r6, r1
  104235. 802a9ca: f203 4112 addwgt r1, r3, #1042 @ 0x412
  104236. 802a9ce: fa24 f101 lsrgt.w r1, r4, r1
  104237. 802a9d2: bfd6 itet le
  104238. 802a9d4: f1c1 0120 rsble r1, r1, #32
  104239. 802a9d8: 4331 orrgt r1, r6
  104240. 802a9da: fa04 f101 lslle.w r1, r4, r1
  104241. 802a9de: ee07 1a90 vmov s15, r1
  104242. 802a9e2: eeb8 7b67 vcvt.f64.u32 d7, s15
  104243. 802a9e6: 3b01 subs r3, #1
  104244. 802a9e8: ee17 1a90 vmov r1, s15
  104245. 802a9ec: 2501 movs r5, #1
  104246. 802a9ee: f1a1 71f8 sub.w r1, r1, #32505856 @ 0x1f00000
  104247. 802a9f2: e7a8 b.n 802a946 <_dtoa_r+0xf6>
  104248. 802a9f4: 2101 movs r1, #1
  104249. 802a9f6: 1ad2 subs r2, r2, r3
  104250. 802a9f8: 1e53 subs r3, r2, #1
  104251. 802a9fa: 9306 str r3, [sp, #24]
  104252. 802a9fc: bf45 ittet mi
  104253. 802a9fe: f1c2 0301 rsbmi r3, r2, #1
  104254. 802aa02: 9305 strmi r3, [sp, #20]
  104255. 802aa04: 2300 movpl r3, #0
  104256. 802aa06: 2300 movmi r3, #0
  104257. 802aa08: bf4c ite mi
  104258. 802aa0a: 9306 strmi r3, [sp, #24]
  104259. 802aa0c: 9305 strpl r3, [sp, #20]
  104260. 802aa0e: f1b8 0f00 cmp.w r8, #0
  104261. 802aa12: 910c str r1, [sp, #48] @ 0x30
  104262. 802aa14: db18 blt.n 802aa48 <_dtoa_r+0x1f8>
  104263. 802aa16: 9b06 ldr r3, [sp, #24]
  104264. 802aa18: f8cd 8028 str.w r8, [sp, #40] @ 0x28
  104265. 802aa1c: 4443 add r3, r8
  104266. 802aa1e: 9306 str r3, [sp, #24]
  104267. 802aa20: 2300 movs r3, #0
  104268. 802aa22: 9a07 ldr r2, [sp, #28]
  104269. 802aa24: 2a09 cmp r2, #9
  104270. 802aa26: d849 bhi.n 802aabc <_dtoa_r+0x26c>
  104271. 802aa28: 2a05 cmp r2, #5
  104272. 802aa2a: bfc4 itt gt
  104273. 802aa2c: 3a04 subgt r2, #4
  104274. 802aa2e: 9207 strgt r2, [sp, #28]
  104275. 802aa30: 9a07 ldr r2, [sp, #28]
  104276. 802aa32: f1a2 0202 sub.w r2, r2, #2
  104277. 802aa36: bfcc ite gt
  104278. 802aa38: 2400 movgt r4, #0
  104279. 802aa3a: 2401 movle r4, #1
  104280. 802aa3c: 2a03 cmp r2, #3
  104281. 802aa3e: d848 bhi.n 802aad2 <_dtoa_r+0x282>
  104282. 802aa40: e8df f002 tbb [pc, r2]
  104283. 802aa44: 3a2c2e0b .word 0x3a2c2e0b
  104284. 802aa48: 9b05 ldr r3, [sp, #20]
  104285. 802aa4a: 2200 movs r2, #0
  104286. 802aa4c: eba3 0308 sub.w r3, r3, r8
  104287. 802aa50: 9305 str r3, [sp, #20]
  104288. 802aa52: 920a str r2, [sp, #40] @ 0x28
  104289. 802aa54: f1c8 0300 rsb r3, r8, #0
  104290. 802aa58: e7e3 b.n 802aa22 <_dtoa_r+0x1d2>
  104291. 802aa5a: 2200 movs r2, #0
  104292. 802aa5c: 9208 str r2, [sp, #32]
  104293. 802aa5e: 9a09 ldr r2, [sp, #36] @ 0x24
  104294. 802aa60: 2a00 cmp r2, #0
  104295. 802aa62: dc39 bgt.n 802aad8 <_dtoa_r+0x288>
  104296. 802aa64: f04f 0b01 mov.w fp, #1
  104297. 802aa68: 46da mov sl, fp
  104298. 802aa6a: 465a mov r2, fp
  104299. 802aa6c: f8cd b024 str.w fp, [sp, #36] @ 0x24
  104300. 802aa70: f8d9 701c ldr.w r7, [r9, #28]
  104301. 802aa74: 2100 movs r1, #0
  104302. 802aa76: 2004 movs r0, #4
  104303. 802aa78: f100 0614 add.w r6, r0, #20
  104304. 802aa7c: 4296 cmp r6, r2
  104305. 802aa7e: d930 bls.n 802aae2 <_dtoa_r+0x292>
  104306. 802aa80: 6079 str r1, [r7, #4]
  104307. 802aa82: 4648 mov r0, r9
  104308. 802aa84: 9304 str r3, [sp, #16]
  104309. 802aa86: f000 ffcf bl 802ba28 <_Balloc>
  104310. 802aa8a: 9b04 ldr r3, [sp, #16]
  104311. 802aa8c: 4607 mov r7, r0
  104312. 802aa8e: 2800 cmp r0, #0
  104313. 802aa90: d146 bne.n 802ab20 <_dtoa_r+0x2d0>
  104314. 802aa92: 4b22 ldr r3, [pc, #136] @ (802ab1c <_dtoa_r+0x2cc>)
  104315. 802aa94: 4602 mov r2, r0
  104316. 802aa96: f240 11af movw r1, #431 @ 0x1af
  104317. 802aa9a: e6f2 b.n 802a882 <_dtoa_r+0x32>
  104318. 802aa9c: 2201 movs r2, #1
  104319. 802aa9e: e7dd b.n 802aa5c <_dtoa_r+0x20c>
  104320. 802aaa0: 2200 movs r2, #0
  104321. 802aaa2: 9208 str r2, [sp, #32]
  104322. 802aaa4: 9a09 ldr r2, [sp, #36] @ 0x24
  104323. 802aaa6: eb08 0b02 add.w fp, r8, r2
  104324. 802aaaa: f10b 0a01 add.w sl, fp, #1
  104325. 802aaae: 4652 mov r2, sl
  104326. 802aab0: 2a01 cmp r2, #1
  104327. 802aab2: bfb8 it lt
  104328. 802aab4: 2201 movlt r2, #1
  104329. 802aab6: e7db b.n 802aa70 <_dtoa_r+0x220>
  104330. 802aab8: 2201 movs r2, #1
  104331. 802aaba: e7f2 b.n 802aaa2 <_dtoa_r+0x252>
  104332. 802aabc: 2401 movs r4, #1
  104333. 802aabe: 2200 movs r2, #0
  104334. 802aac0: e9cd 2407 strd r2, r4, [sp, #28]
  104335. 802aac4: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff
  104336. 802aac8: 2100 movs r1, #0
  104337. 802aaca: 46da mov sl, fp
  104338. 802aacc: 2212 movs r2, #18
  104339. 802aace: 9109 str r1, [sp, #36] @ 0x24
  104340. 802aad0: e7ce b.n 802aa70 <_dtoa_r+0x220>
  104341. 802aad2: 2201 movs r2, #1
  104342. 802aad4: 9208 str r2, [sp, #32]
  104343. 802aad6: e7f5 b.n 802aac4 <_dtoa_r+0x274>
  104344. 802aad8: f8dd b024 ldr.w fp, [sp, #36] @ 0x24
  104345. 802aadc: 46da mov sl, fp
  104346. 802aade: 465a mov r2, fp
  104347. 802aae0: e7c6 b.n 802aa70 <_dtoa_r+0x220>
  104348. 802aae2: 3101 adds r1, #1
  104349. 802aae4: 0040 lsls r0, r0, #1
  104350. 802aae6: e7c7 b.n 802aa78 <_dtoa_r+0x228>
  104351. 802aae8: 636f4361 .word 0x636f4361
  104352. 802aaec: 3fd287a7 .word 0x3fd287a7
  104353. 802aaf0: 8b60c8b3 .word 0x8b60c8b3
  104354. 802aaf4: 3fc68a28 .word 0x3fc68a28
  104355. 802aaf8: 509f79fb .word 0x509f79fb
  104356. 802aafc: 3fd34413 .word 0x3fd34413
  104357. 802ab00: 0803150a .word 0x0803150a
  104358. 802ab04: 08031756 .word 0x08031756
  104359. 802ab08: 7ff00000 .word 0x7ff00000
  104360. 802ab0c: 08031752 .word 0x08031752
  104361. 802ab10: 080316e2 .word 0x080316e2
  104362. 802ab14: 080316e1 .word 0x080316e1
  104363. 802ab18: 080318b0 .word 0x080318b0
  104364. 802ab1c: 080317ae .word 0x080317ae
  104365. 802ab20: f8d9 201c ldr.w r2, [r9, #28]
  104366. 802ab24: f1ba 0f0e cmp.w sl, #14
  104367. 802ab28: 6010 str r0, [r2, #0]
  104368. 802ab2a: d86f bhi.n 802ac0c <_dtoa_r+0x3bc>
  104369. 802ab2c: 2c00 cmp r4, #0
  104370. 802ab2e: d06d beq.n 802ac0c <_dtoa_r+0x3bc>
  104371. 802ab30: f1b8 0f00 cmp.w r8, #0
  104372. 802ab34: f340 80c2 ble.w 802acbc <_dtoa_r+0x46c>
  104373. 802ab38: 4aca ldr r2, [pc, #808] @ (802ae64 <_dtoa_r+0x614>)
  104374. 802ab3a: f008 010f and.w r1, r8, #15
  104375. 802ab3e: eb02 02c1 add.w r2, r2, r1, lsl #3
  104376. 802ab42: f418 7f80 tst.w r8, #256 @ 0x100
  104377. 802ab46: ed92 7b00 vldr d7, [r2]
  104378. 802ab4a: ea4f 1128 mov.w r1, r8, asr #4
  104379. 802ab4e: f000 80a9 beq.w 802aca4 <_dtoa_r+0x454>
  104380. 802ab52: 4ac5 ldr r2, [pc, #788] @ (802ae68 <_dtoa_r+0x618>)
  104381. 802ab54: ed92 6b08 vldr d6, [r2, #32]
  104382. 802ab58: ee88 6b06 vdiv.f64 d6, d8, d6
  104383. 802ab5c: ed8d 6b02 vstr d6, [sp, #8]
  104384. 802ab60: f001 010f and.w r1, r1, #15
  104385. 802ab64: 2203 movs r2, #3
  104386. 802ab66: 48c0 ldr r0, [pc, #768] @ (802ae68 <_dtoa_r+0x618>)
  104387. 802ab68: 2900 cmp r1, #0
  104388. 802ab6a: f040 809d bne.w 802aca8 <_dtoa_r+0x458>
  104389. 802ab6e: ed9d 6b02 vldr d6, [sp, #8]
  104390. 802ab72: ee86 7b07 vdiv.f64 d7, d6, d7
  104391. 802ab76: ed8d 7b02 vstr d7, [sp, #8]
  104392. 802ab7a: 990c ldr r1, [sp, #48] @ 0x30
  104393. 802ab7c: ed9d 7b02 vldr d7, [sp, #8]
  104394. 802ab80: 2900 cmp r1, #0
  104395. 802ab82: f000 80c1 beq.w 802ad08 <_dtoa_r+0x4b8>
  104396. 802ab86: eeb7 6b00 vmov.f64 d6, #112 @ 0x3f800000 1.0
  104397. 802ab8a: eeb4 7bc6 vcmpe.f64 d7, d6
  104398. 802ab8e: eef1 fa10 vmrs APSR_nzcv, fpscr
  104399. 802ab92: f140 80b9 bpl.w 802ad08 <_dtoa_r+0x4b8>
  104400. 802ab96: f1ba 0f00 cmp.w sl, #0
  104401. 802ab9a: f000 80b5 beq.w 802ad08 <_dtoa_r+0x4b8>
  104402. 802ab9e: f1bb 0f00 cmp.w fp, #0
  104403. 802aba2: dd31 ble.n 802ac08 <_dtoa_r+0x3b8>
  104404. 802aba4: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  104405. 802aba8: ee27 7b06 vmul.f64 d7, d7, d6
  104406. 802abac: ed8d 7b02 vstr d7, [sp, #8]
  104407. 802abb0: f108 31ff add.w r1, r8, #4294967295 @ 0xffffffff
  104408. 802abb4: 9104 str r1, [sp, #16]
  104409. 802abb6: 3201 adds r2, #1
  104410. 802abb8: 465c mov r4, fp
  104411. 802abba: ed9d 6b02 vldr d6, [sp, #8]
  104412. 802abbe: eeb1 5b0c vmov.f64 d5, #28 @ 0x40e00000 7.0
  104413. 802abc2: ee07 2a90 vmov s15, r2
  104414. 802abc6: eeb8 7be7 vcvt.f64.s32 d7, s15
  104415. 802abca: eea7 5b06 vfma.f64 d5, d7, d6
  104416. 802abce: ee15 2a90 vmov r2, s11
  104417. 802abd2: ec51 0b15 vmov r0, r1, d5
  104418. 802abd6: f1a2 7150 sub.w r1, r2, #54525952 @ 0x3400000
  104419. 802abda: 2c00 cmp r4, #0
  104420. 802abdc: f040 8098 bne.w 802ad10 <_dtoa_r+0x4c0>
  104421. 802abe0: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  104422. 802abe4: ee36 6b47 vsub.f64 d6, d6, d7
  104423. 802abe8: ec41 0b17 vmov d7, r0, r1
  104424. 802abec: eeb4 6bc7 vcmpe.f64 d6, d7
  104425. 802abf0: eef1 fa10 vmrs APSR_nzcv, fpscr
  104426. 802abf4: f300 8261 bgt.w 802b0ba <_dtoa_r+0x86a>
  104427. 802abf8: eeb1 7b47 vneg.f64 d7, d7
  104428. 802abfc: eeb4 6bc7 vcmpe.f64 d6, d7
  104429. 802ac00: eef1 fa10 vmrs APSR_nzcv, fpscr
  104430. 802ac04: f100 80f5 bmi.w 802adf2 <_dtoa_r+0x5a2>
  104431. 802ac08: ed8d 8b02 vstr d8, [sp, #8]
  104432. 802ac0c: 9a0f ldr r2, [sp, #60] @ 0x3c
  104433. 802ac0e: 2a00 cmp r2, #0
  104434. 802ac10: f2c0 812c blt.w 802ae6c <_dtoa_r+0x61c>
  104435. 802ac14: f1b8 0f0e cmp.w r8, #14
  104436. 802ac18: f300 8128 bgt.w 802ae6c <_dtoa_r+0x61c>
  104437. 802ac1c: 4b91 ldr r3, [pc, #580] @ (802ae64 <_dtoa_r+0x614>)
  104438. 802ac1e: eb03 03c8 add.w r3, r3, r8, lsl #3
  104439. 802ac22: ed93 6b00 vldr d6, [r3]
  104440. 802ac26: 9b09 ldr r3, [sp, #36] @ 0x24
  104441. 802ac28: 2b00 cmp r3, #0
  104442. 802ac2a: da03 bge.n 802ac34 <_dtoa_r+0x3e4>
  104443. 802ac2c: f1ba 0f00 cmp.w sl, #0
  104444. 802ac30: f340 80d2 ble.w 802add8 <_dtoa_r+0x588>
  104445. 802ac34: eeb2 4b04 vmov.f64 d4, #36 @ 0x41200000 10.0
  104446. 802ac38: ed9d 7b02 vldr d7, [sp, #8]
  104447. 802ac3c: 463e mov r6, r7
  104448. 802ac3e: ee87 5b06 vdiv.f64 d5, d7, d6
  104449. 802ac42: eebd 5bc5 vcvt.s32.f64 s10, d5
  104450. 802ac46: ee15 3a10 vmov r3, s10
  104451. 802ac4a: 3330 adds r3, #48 @ 0x30
  104452. 802ac4c: f806 3b01 strb.w r3, [r6], #1
  104453. 802ac50: 1bf3 subs r3, r6, r7
  104454. 802ac52: 459a cmp sl, r3
  104455. 802ac54: eeb8 3bc5 vcvt.f64.s32 d3, s10
  104456. 802ac58: eea3 7b46 vfms.f64 d7, d3, d6
  104457. 802ac5c: f040 80f8 bne.w 802ae50 <_dtoa_r+0x600>
  104458. 802ac60: ee37 7b07 vadd.f64 d7, d7, d7
  104459. 802ac64: eeb4 7bc6 vcmpe.f64 d7, d6
  104460. 802ac68: eef1 fa10 vmrs APSR_nzcv, fpscr
  104461. 802ac6c: f300 80dd bgt.w 802ae2a <_dtoa_r+0x5da>
  104462. 802ac70: eeb4 7b46 vcmp.f64 d7, d6
  104463. 802ac74: eef1 fa10 vmrs APSR_nzcv, fpscr
  104464. 802ac78: d104 bne.n 802ac84 <_dtoa_r+0x434>
  104465. 802ac7a: ee15 3a10 vmov r3, s10
  104466. 802ac7e: 07db lsls r3, r3, #31
  104467. 802ac80: f100 80d3 bmi.w 802ae2a <_dtoa_r+0x5da>
  104468. 802ac84: 9901 ldr r1, [sp, #4]
  104469. 802ac86: 4648 mov r0, r9
  104470. 802ac88: f000 ff0e bl 802baa8 <_Bfree>
  104471. 802ac8c: 2300 movs r3, #0
  104472. 802ac8e: 9a0d ldr r2, [sp, #52] @ 0x34
  104473. 802ac90: 7033 strb r3, [r6, #0]
  104474. 802ac92: f108 0301 add.w r3, r8, #1
  104475. 802ac96: 6013 str r3, [r2, #0]
  104476. 802ac98: 9b1d ldr r3, [sp, #116] @ 0x74
  104477. 802ac9a: 2b00 cmp r3, #0
  104478. 802ac9c: f000 8304 beq.w 802b2a8 <_dtoa_r+0xa58>
  104479. 802aca0: 601e str r6, [r3, #0]
  104480. 802aca2: e301 b.n 802b2a8 <_dtoa_r+0xa58>
  104481. 802aca4: 2202 movs r2, #2
  104482. 802aca6: e75e b.n 802ab66 <_dtoa_r+0x316>
  104483. 802aca8: 07cc lsls r4, r1, #31
  104484. 802acaa: d504 bpl.n 802acb6 <_dtoa_r+0x466>
  104485. 802acac: ed90 6b00 vldr d6, [r0]
  104486. 802acb0: 3201 adds r2, #1
  104487. 802acb2: ee27 7b06 vmul.f64 d7, d7, d6
  104488. 802acb6: 1049 asrs r1, r1, #1
  104489. 802acb8: 3008 adds r0, #8
  104490. 802acba: e755 b.n 802ab68 <_dtoa_r+0x318>
  104491. 802acbc: d022 beq.n 802ad04 <_dtoa_r+0x4b4>
  104492. 802acbe: f1c8 0100 rsb r1, r8, #0
  104493. 802acc2: 4a68 ldr r2, [pc, #416] @ (802ae64 <_dtoa_r+0x614>)
  104494. 802acc4: f001 000f and.w r0, r1, #15
  104495. 802acc8: eb02 02c0 add.w r2, r2, r0, lsl #3
  104496. 802accc: ed92 7b00 vldr d7, [r2]
  104497. 802acd0: ee28 7b07 vmul.f64 d7, d8, d7
  104498. 802acd4: ed8d 7b02 vstr d7, [sp, #8]
  104499. 802acd8: 4863 ldr r0, [pc, #396] @ (802ae68 <_dtoa_r+0x618>)
  104500. 802acda: 1109 asrs r1, r1, #4
  104501. 802acdc: 2400 movs r4, #0
  104502. 802acde: 2202 movs r2, #2
  104503. 802ace0: b929 cbnz r1, 802acee <_dtoa_r+0x49e>
  104504. 802ace2: 2c00 cmp r4, #0
  104505. 802ace4: f43f af49 beq.w 802ab7a <_dtoa_r+0x32a>
  104506. 802ace8: ed8d 7b02 vstr d7, [sp, #8]
  104507. 802acec: e745 b.n 802ab7a <_dtoa_r+0x32a>
  104508. 802acee: 07ce lsls r6, r1, #31
  104509. 802acf0: d505 bpl.n 802acfe <_dtoa_r+0x4ae>
  104510. 802acf2: ed90 6b00 vldr d6, [r0]
  104511. 802acf6: 3201 adds r2, #1
  104512. 802acf8: 2401 movs r4, #1
  104513. 802acfa: ee27 7b06 vmul.f64 d7, d7, d6
  104514. 802acfe: 1049 asrs r1, r1, #1
  104515. 802ad00: 3008 adds r0, #8
  104516. 802ad02: e7ed b.n 802ace0 <_dtoa_r+0x490>
  104517. 802ad04: 2202 movs r2, #2
  104518. 802ad06: e738 b.n 802ab7a <_dtoa_r+0x32a>
  104519. 802ad08: f8cd 8010 str.w r8, [sp, #16]
  104520. 802ad0c: 4654 mov r4, sl
  104521. 802ad0e: e754 b.n 802abba <_dtoa_r+0x36a>
  104522. 802ad10: 4a54 ldr r2, [pc, #336] @ (802ae64 <_dtoa_r+0x614>)
  104523. 802ad12: eb02 02c4 add.w r2, r2, r4, lsl #3
  104524. 802ad16: ed12 4b02 vldr d4, [r2, #-8]
  104525. 802ad1a: 9a08 ldr r2, [sp, #32]
  104526. 802ad1c: ec41 0b17 vmov d7, r0, r1
  104527. 802ad20: 443c add r4, r7
  104528. 802ad22: b34a cbz r2, 802ad78 <_dtoa_r+0x528>
  104529. 802ad24: eeb6 3b00 vmov.f64 d3, #96 @ 0x3f000000 0.5
  104530. 802ad28: eeb7 2b00 vmov.f64 d2, #112 @ 0x3f800000 1.0
  104531. 802ad2c: 463e mov r6, r7
  104532. 802ad2e: ee83 5b04 vdiv.f64 d5, d3, d4
  104533. 802ad32: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  104534. 802ad36: ee35 7b47 vsub.f64 d7, d5, d7
  104535. 802ad3a: eefd 4bc6 vcvt.s32.f64 s9, d6
  104536. 802ad3e: ee14 2a90 vmov r2, s9
  104537. 802ad42: eeb8 5be4 vcvt.f64.s32 d5, s9
  104538. 802ad46: 3230 adds r2, #48 @ 0x30
  104539. 802ad48: ee36 6b45 vsub.f64 d6, d6, d5
  104540. 802ad4c: eeb4 6bc7 vcmpe.f64 d6, d7
  104541. 802ad50: eef1 fa10 vmrs APSR_nzcv, fpscr
  104542. 802ad54: f806 2b01 strb.w r2, [r6], #1
  104543. 802ad58: d438 bmi.n 802adcc <_dtoa_r+0x57c>
  104544. 802ad5a: ee32 5b46 vsub.f64 d5, d2, d6
  104545. 802ad5e: eeb4 5bc7 vcmpe.f64 d5, d7
  104546. 802ad62: eef1 fa10 vmrs APSR_nzcv, fpscr
  104547. 802ad66: d462 bmi.n 802ae2e <_dtoa_r+0x5de>
  104548. 802ad68: 42a6 cmp r6, r4
  104549. 802ad6a: f43f af4d beq.w 802ac08 <_dtoa_r+0x3b8>
  104550. 802ad6e: ee27 7b03 vmul.f64 d7, d7, d3
  104551. 802ad72: ee26 6b03 vmul.f64 d6, d6, d3
  104552. 802ad76: e7e0 b.n 802ad3a <_dtoa_r+0x4ea>
  104553. 802ad78: 4621 mov r1, r4
  104554. 802ad7a: 463e mov r6, r7
  104555. 802ad7c: ee27 7b04 vmul.f64 d7, d7, d4
  104556. 802ad80: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  104557. 802ad84: eefd 4bc6 vcvt.s32.f64 s9, d6
  104558. 802ad88: ee14 2a90 vmov r2, s9
  104559. 802ad8c: 3230 adds r2, #48 @ 0x30
  104560. 802ad8e: f806 2b01 strb.w r2, [r6], #1
  104561. 802ad92: 42a6 cmp r6, r4
  104562. 802ad94: eeb8 5be4 vcvt.f64.s32 d5, s9
  104563. 802ad98: ee36 6b45 vsub.f64 d6, d6, d5
  104564. 802ad9c: d119 bne.n 802add2 <_dtoa_r+0x582>
  104565. 802ad9e: eeb6 5b00 vmov.f64 d5, #96 @ 0x3f000000 0.5
  104566. 802ada2: ee37 4b05 vadd.f64 d4, d7, d5
  104567. 802ada6: eeb4 6bc4 vcmpe.f64 d6, d4
  104568. 802adaa: eef1 fa10 vmrs APSR_nzcv, fpscr
  104569. 802adae: dc3e bgt.n 802ae2e <_dtoa_r+0x5de>
  104570. 802adb0: ee35 5b47 vsub.f64 d5, d5, d7
  104571. 802adb4: eeb4 6bc5 vcmpe.f64 d6, d5
  104572. 802adb8: eef1 fa10 vmrs APSR_nzcv, fpscr
  104573. 802adbc: f57f af24 bpl.w 802ac08 <_dtoa_r+0x3b8>
  104574. 802adc0: 460e mov r6, r1
  104575. 802adc2: 3901 subs r1, #1
  104576. 802adc4: f816 3c01 ldrb.w r3, [r6, #-1]
  104577. 802adc8: 2b30 cmp r3, #48 @ 0x30
  104578. 802adca: d0f9 beq.n 802adc0 <_dtoa_r+0x570>
  104579. 802adcc: f8dd 8010 ldr.w r8, [sp, #16]
  104580. 802add0: e758 b.n 802ac84 <_dtoa_r+0x434>
  104581. 802add2: ee26 6b03 vmul.f64 d6, d6, d3
  104582. 802add6: e7d5 b.n 802ad84 <_dtoa_r+0x534>
  104583. 802add8: d10b bne.n 802adf2 <_dtoa_r+0x5a2>
  104584. 802adda: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  104585. 802adde: ee26 6b07 vmul.f64 d6, d6, d7
  104586. 802ade2: ed9d 7b02 vldr d7, [sp, #8]
  104587. 802ade6: eeb4 6bc7 vcmpe.f64 d6, d7
  104588. 802adea: eef1 fa10 vmrs APSR_nzcv, fpscr
  104589. 802adee: f2c0 8161 blt.w 802b0b4 <_dtoa_r+0x864>
  104590. 802adf2: 2400 movs r4, #0
  104591. 802adf4: 4625 mov r5, r4
  104592. 802adf6: 9b09 ldr r3, [sp, #36] @ 0x24
  104593. 802adf8: 43db mvns r3, r3
  104594. 802adfa: 9304 str r3, [sp, #16]
  104595. 802adfc: 463e mov r6, r7
  104596. 802adfe: f04f 0800 mov.w r8, #0
  104597. 802ae02: 4621 mov r1, r4
  104598. 802ae04: 4648 mov r0, r9
  104599. 802ae06: f000 fe4f bl 802baa8 <_Bfree>
  104600. 802ae0a: 2d00 cmp r5, #0
  104601. 802ae0c: d0de beq.n 802adcc <_dtoa_r+0x57c>
  104602. 802ae0e: f1b8 0f00 cmp.w r8, #0
  104603. 802ae12: d005 beq.n 802ae20 <_dtoa_r+0x5d0>
  104604. 802ae14: 45a8 cmp r8, r5
  104605. 802ae16: d003 beq.n 802ae20 <_dtoa_r+0x5d0>
  104606. 802ae18: 4641 mov r1, r8
  104607. 802ae1a: 4648 mov r0, r9
  104608. 802ae1c: f000 fe44 bl 802baa8 <_Bfree>
  104609. 802ae20: 4629 mov r1, r5
  104610. 802ae22: 4648 mov r0, r9
  104611. 802ae24: f000 fe40 bl 802baa8 <_Bfree>
  104612. 802ae28: e7d0 b.n 802adcc <_dtoa_r+0x57c>
  104613. 802ae2a: f8cd 8010 str.w r8, [sp, #16]
  104614. 802ae2e: 4633 mov r3, r6
  104615. 802ae30: 461e mov r6, r3
  104616. 802ae32: f813 2d01 ldrb.w r2, [r3, #-1]!
  104617. 802ae36: 2a39 cmp r2, #57 @ 0x39
  104618. 802ae38: d106 bne.n 802ae48 <_dtoa_r+0x5f8>
  104619. 802ae3a: 429f cmp r7, r3
  104620. 802ae3c: d1f8 bne.n 802ae30 <_dtoa_r+0x5e0>
  104621. 802ae3e: 9a04 ldr r2, [sp, #16]
  104622. 802ae40: 3201 adds r2, #1
  104623. 802ae42: 9204 str r2, [sp, #16]
  104624. 802ae44: 2230 movs r2, #48 @ 0x30
  104625. 802ae46: 703a strb r2, [r7, #0]
  104626. 802ae48: 781a ldrb r2, [r3, #0]
  104627. 802ae4a: 3201 adds r2, #1
  104628. 802ae4c: 701a strb r2, [r3, #0]
  104629. 802ae4e: e7bd b.n 802adcc <_dtoa_r+0x57c>
  104630. 802ae50: ee27 7b04 vmul.f64 d7, d7, d4
  104631. 802ae54: eeb5 7b40 vcmp.f64 d7, #0.0
  104632. 802ae58: eef1 fa10 vmrs APSR_nzcv, fpscr
  104633. 802ae5c: f47f aeef bne.w 802ac3e <_dtoa_r+0x3ee>
  104634. 802ae60: e710 b.n 802ac84 <_dtoa_r+0x434>
  104635. 802ae62: bf00 nop
  104636. 802ae64: 080318b0 .word 0x080318b0
  104637. 802ae68: 08031888 .word 0x08031888
  104638. 802ae6c: 9908 ldr r1, [sp, #32]
  104639. 802ae6e: 2900 cmp r1, #0
  104640. 802ae70: f000 80e3 beq.w 802b03a <_dtoa_r+0x7ea>
  104641. 802ae74: 9907 ldr r1, [sp, #28]
  104642. 802ae76: 2901 cmp r1, #1
  104643. 802ae78: f300 80c8 bgt.w 802b00c <_dtoa_r+0x7bc>
  104644. 802ae7c: 2d00 cmp r5, #0
  104645. 802ae7e: f000 80c1 beq.w 802b004 <_dtoa_r+0x7b4>
  104646. 802ae82: f202 4233 addw r2, r2, #1075 @ 0x433
  104647. 802ae86: 9e05 ldr r6, [sp, #20]
  104648. 802ae88: 461c mov r4, r3
  104649. 802ae8a: 9304 str r3, [sp, #16]
  104650. 802ae8c: 9b05 ldr r3, [sp, #20]
  104651. 802ae8e: 4413 add r3, r2
  104652. 802ae90: 9305 str r3, [sp, #20]
  104653. 802ae92: 9b06 ldr r3, [sp, #24]
  104654. 802ae94: 2101 movs r1, #1
  104655. 802ae96: 4413 add r3, r2
  104656. 802ae98: 4648 mov r0, r9
  104657. 802ae9a: 9306 str r3, [sp, #24]
  104658. 802ae9c: f000 ff02 bl 802bca4 <__i2b>
  104659. 802aea0: 9b04 ldr r3, [sp, #16]
  104660. 802aea2: 4605 mov r5, r0
  104661. 802aea4: b166 cbz r6, 802aec0 <_dtoa_r+0x670>
  104662. 802aea6: 9a06 ldr r2, [sp, #24]
  104663. 802aea8: 2a00 cmp r2, #0
  104664. 802aeaa: dd09 ble.n 802aec0 <_dtoa_r+0x670>
  104665. 802aeac: 42b2 cmp r2, r6
  104666. 802aeae: 9905 ldr r1, [sp, #20]
  104667. 802aeb0: bfa8 it ge
  104668. 802aeb2: 4632 movge r2, r6
  104669. 802aeb4: 1a89 subs r1, r1, r2
  104670. 802aeb6: 9105 str r1, [sp, #20]
  104671. 802aeb8: 9906 ldr r1, [sp, #24]
  104672. 802aeba: 1ab6 subs r6, r6, r2
  104673. 802aebc: 1a8a subs r2, r1, r2
  104674. 802aebe: 9206 str r2, [sp, #24]
  104675. 802aec0: b1fb cbz r3, 802af02 <_dtoa_r+0x6b2>
  104676. 802aec2: 9a08 ldr r2, [sp, #32]
  104677. 802aec4: 2a00 cmp r2, #0
  104678. 802aec6: f000 80bc beq.w 802b042 <_dtoa_r+0x7f2>
  104679. 802aeca: b19c cbz r4, 802aef4 <_dtoa_r+0x6a4>
  104680. 802aecc: 4629 mov r1, r5
  104681. 802aece: 4622 mov r2, r4
  104682. 802aed0: 4648 mov r0, r9
  104683. 802aed2: 930b str r3, [sp, #44] @ 0x2c
  104684. 802aed4: f000 ffa6 bl 802be24 <__pow5mult>
  104685. 802aed8: 9a01 ldr r2, [sp, #4]
  104686. 802aeda: 4601 mov r1, r0
  104687. 802aedc: 4605 mov r5, r0
  104688. 802aede: 4648 mov r0, r9
  104689. 802aee0: f000 fef6 bl 802bcd0 <__multiply>
  104690. 802aee4: 9901 ldr r1, [sp, #4]
  104691. 802aee6: 9004 str r0, [sp, #16]
  104692. 802aee8: 4648 mov r0, r9
  104693. 802aeea: f000 fddd bl 802baa8 <_Bfree>
  104694. 802aeee: 9a04 ldr r2, [sp, #16]
  104695. 802aef0: 9b0b ldr r3, [sp, #44] @ 0x2c
  104696. 802aef2: 9201 str r2, [sp, #4]
  104697. 802aef4: 1b1a subs r2, r3, r4
  104698. 802aef6: d004 beq.n 802af02 <_dtoa_r+0x6b2>
  104699. 802aef8: 9901 ldr r1, [sp, #4]
  104700. 802aefa: 4648 mov r0, r9
  104701. 802aefc: f000 ff92 bl 802be24 <__pow5mult>
  104702. 802af00: 9001 str r0, [sp, #4]
  104703. 802af02: 2101 movs r1, #1
  104704. 802af04: 4648 mov r0, r9
  104705. 802af06: f000 fecd bl 802bca4 <__i2b>
  104706. 802af0a: 9b0a ldr r3, [sp, #40] @ 0x28
  104707. 802af0c: 4604 mov r4, r0
  104708. 802af0e: 2b00 cmp r3, #0
  104709. 802af10: f000 81d0 beq.w 802b2b4 <_dtoa_r+0xa64>
  104710. 802af14: 461a mov r2, r3
  104711. 802af16: 4601 mov r1, r0
  104712. 802af18: 4648 mov r0, r9
  104713. 802af1a: f000 ff83 bl 802be24 <__pow5mult>
  104714. 802af1e: 9b07 ldr r3, [sp, #28]
  104715. 802af20: 2b01 cmp r3, #1
  104716. 802af22: 4604 mov r4, r0
  104717. 802af24: f300 8095 bgt.w 802b052 <_dtoa_r+0x802>
  104718. 802af28: 9b02 ldr r3, [sp, #8]
  104719. 802af2a: 2b00 cmp r3, #0
  104720. 802af2c: f040 808b bne.w 802b046 <_dtoa_r+0x7f6>
  104721. 802af30: 9b03 ldr r3, [sp, #12]
  104722. 802af32: f3c3 0213 ubfx r2, r3, #0, #20
  104723. 802af36: 2a00 cmp r2, #0
  104724. 802af38: f040 8087 bne.w 802b04a <_dtoa_r+0x7fa>
  104725. 802af3c: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  104726. 802af40: 0d12 lsrs r2, r2, #20
  104727. 802af42: 0512 lsls r2, r2, #20
  104728. 802af44: 2a00 cmp r2, #0
  104729. 802af46: f000 8082 beq.w 802b04e <_dtoa_r+0x7fe>
  104730. 802af4a: 9b05 ldr r3, [sp, #20]
  104731. 802af4c: 3301 adds r3, #1
  104732. 802af4e: 9305 str r3, [sp, #20]
  104733. 802af50: 9b06 ldr r3, [sp, #24]
  104734. 802af52: 3301 adds r3, #1
  104735. 802af54: 9306 str r3, [sp, #24]
  104736. 802af56: 2301 movs r3, #1
  104737. 802af58: 930b str r3, [sp, #44] @ 0x2c
  104738. 802af5a: 9b0a ldr r3, [sp, #40] @ 0x28
  104739. 802af5c: 2b00 cmp r3, #0
  104740. 802af5e: f000 81af beq.w 802b2c0 <_dtoa_r+0xa70>
  104741. 802af62: 6922 ldr r2, [r4, #16]
  104742. 802af64: eb04 0282 add.w r2, r4, r2, lsl #2
  104743. 802af68: 6910 ldr r0, [r2, #16]
  104744. 802af6a: f000 fe4f bl 802bc0c <__hi0bits>
  104745. 802af6e: f1c0 0020 rsb r0, r0, #32
  104746. 802af72: 9b06 ldr r3, [sp, #24]
  104747. 802af74: 4418 add r0, r3
  104748. 802af76: f010 001f ands.w r0, r0, #31
  104749. 802af7a: d076 beq.n 802b06a <_dtoa_r+0x81a>
  104750. 802af7c: f1c0 0220 rsb r2, r0, #32
  104751. 802af80: 2a04 cmp r2, #4
  104752. 802af82: dd69 ble.n 802b058 <_dtoa_r+0x808>
  104753. 802af84: 9b05 ldr r3, [sp, #20]
  104754. 802af86: f1c0 001c rsb r0, r0, #28
  104755. 802af8a: 4403 add r3, r0
  104756. 802af8c: 9305 str r3, [sp, #20]
  104757. 802af8e: 9b06 ldr r3, [sp, #24]
  104758. 802af90: 4406 add r6, r0
  104759. 802af92: 4403 add r3, r0
  104760. 802af94: 9306 str r3, [sp, #24]
  104761. 802af96: 9b05 ldr r3, [sp, #20]
  104762. 802af98: 2b00 cmp r3, #0
  104763. 802af9a: dd05 ble.n 802afa8 <_dtoa_r+0x758>
  104764. 802af9c: 9901 ldr r1, [sp, #4]
  104765. 802af9e: 461a mov r2, r3
  104766. 802afa0: 4648 mov r0, r9
  104767. 802afa2: f000 ff99 bl 802bed8 <__lshift>
  104768. 802afa6: 9001 str r0, [sp, #4]
  104769. 802afa8: 9b06 ldr r3, [sp, #24]
  104770. 802afaa: 2b00 cmp r3, #0
  104771. 802afac: dd05 ble.n 802afba <_dtoa_r+0x76a>
  104772. 802afae: 4621 mov r1, r4
  104773. 802afb0: 461a mov r2, r3
  104774. 802afb2: 4648 mov r0, r9
  104775. 802afb4: f000 ff90 bl 802bed8 <__lshift>
  104776. 802afb8: 4604 mov r4, r0
  104777. 802afba: 9b0c ldr r3, [sp, #48] @ 0x30
  104778. 802afbc: 2b00 cmp r3, #0
  104779. 802afbe: d056 beq.n 802b06e <_dtoa_r+0x81e>
  104780. 802afc0: 9801 ldr r0, [sp, #4]
  104781. 802afc2: 4621 mov r1, r4
  104782. 802afc4: f000 fff4 bl 802bfb0 <__mcmp>
  104783. 802afc8: 2800 cmp r0, #0
  104784. 802afca: da50 bge.n 802b06e <_dtoa_r+0x81e>
  104785. 802afcc: f108 33ff add.w r3, r8, #4294967295 @ 0xffffffff
  104786. 802afd0: 9304 str r3, [sp, #16]
  104787. 802afd2: 9901 ldr r1, [sp, #4]
  104788. 802afd4: 2300 movs r3, #0
  104789. 802afd6: 220a movs r2, #10
  104790. 802afd8: 4648 mov r0, r9
  104791. 802afda: f000 fd87 bl 802baec <__multadd>
  104792. 802afde: 9b08 ldr r3, [sp, #32]
  104793. 802afe0: 9001 str r0, [sp, #4]
  104794. 802afe2: 2b00 cmp r3, #0
  104795. 802afe4: f000 816e beq.w 802b2c4 <_dtoa_r+0xa74>
  104796. 802afe8: 4629 mov r1, r5
  104797. 802afea: 2300 movs r3, #0
  104798. 802afec: 220a movs r2, #10
  104799. 802afee: 4648 mov r0, r9
  104800. 802aff0: f000 fd7c bl 802baec <__multadd>
  104801. 802aff4: f1bb 0f00 cmp.w fp, #0
  104802. 802aff8: 4605 mov r5, r0
  104803. 802affa: dc64 bgt.n 802b0c6 <_dtoa_r+0x876>
  104804. 802affc: 9b07 ldr r3, [sp, #28]
  104805. 802affe: 2b02 cmp r3, #2
  104806. 802b000: dc3e bgt.n 802b080 <_dtoa_r+0x830>
  104807. 802b002: e060 b.n 802b0c6 <_dtoa_r+0x876>
  104808. 802b004: 9a0e ldr r2, [sp, #56] @ 0x38
  104809. 802b006: f1c2 0236 rsb r2, r2, #54 @ 0x36
  104810. 802b00a: e73c b.n 802ae86 <_dtoa_r+0x636>
  104811. 802b00c: f10a 34ff add.w r4, sl, #4294967295 @ 0xffffffff
  104812. 802b010: 42a3 cmp r3, r4
  104813. 802b012: bfbf itttt lt
  104814. 802b014: 1ae2 sublt r2, r4, r3
  104815. 802b016: 9b0a ldrlt r3, [sp, #40] @ 0x28
  104816. 802b018: 189b addlt r3, r3, r2
  104817. 802b01a: 930a strlt r3, [sp, #40] @ 0x28
  104818. 802b01c: bfae itee ge
  104819. 802b01e: 1b1c subge r4, r3, r4
  104820. 802b020: 4623 movlt r3, r4
  104821. 802b022: 2400 movlt r4, #0
  104822. 802b024: f1ba 0f00 cmp.w sl, #0
  104823. 802b028: bfb5 itete lt
  104824. 802b02a: 9a05 ldrlt r2, [sp, #20]
  104825. 802b02c: 9e05 ldrge r6, [sp, #20]
  104826. 802b02e: eba2 060a sublt.w r6, r2, sl
  104827. 802b032: 4652 movge r2, sl
  104828. 802b034: bfb8 it lt
  104829. 802b036: 2200 movlt r2, #0
  104830. 802b038: e727 b.n 802ae8a <_dtoa_r+0x63a>
  104831. 802b03a: 9e05 ldr r6, [sp, #20]
  104832. 802b03c: 9d08 ldr r5, [sp, #32]
  104833. 802b03e: 461c mov r4, r3
  104834. 802b040: e730 b.n 802aea4 <_dtoa_r+0x654>
  104835. 802b042: 461a mov r2, r3
  104836. 802b044: e758 b.n 802aef8 <_dtoa_r+0x6a8>
  104837. 802b046: 2300 movs r3, #0
  104838. 802b048: e786 b.n 802af58 <_dtoa_r+0x708>
  104839. 802b04a: 9b02 ldr r3, [sp, #8]
  104840. 802b04c: e784 b.n 802af58 <_dtoa_r+0x708>
  104841. 802b04e: 920b str r2, [sp, #44] @ 0x2c
  104842. 802b050: e783 b.n 802af5a <_dtoa_r+0x70a>
  104843. 802b052: 2300 movs r3, #0
  104844. 802b054: 930b str r3, [sp, #44] @ 0x2c
  104845. 802b056: e784 b.n 802af62 <_dtoa_r+0x712>
  104846. 802b058: d09d beq.n 802af96 <_dtoa_r+0x746>
  104847. 802b05a: 9b05 ldr r3, [sp, #20]
  104848. 802b05c: 321c adds r2, #28
  104849. 802b05e: 4413 add r3, r2
  104850. 802b060: 9305 str r3, [sp, #20]
  104851. 802b062: 9b06 ldr r3, [sp, #24]
  104852. 802b064: 4416 add r6, r2
  104853. 802b066: 4413 add r3, r2
  104854. 802b068: e794 b.n 802af94 <_dtoa_r+0x744>
  104855. 802b06a: 4602 mov r2, r0
  104856. 802b06c: e7f5 b.n 802b05a <_dtoa_r+0x80a>
  104857. 802b06e: f1ba 0f00 cmp.w sl, #0
  104858. 802b072: f8cd 8010 str.w r8, [sp, #16]
  104859. 802b076: 46d3 mov fp, sl
  104860. 802b078: dc21 bgt.n 802b0be <_dtoa_r+0x86e>
  104861. 802b07a: 9b07 ldr r3, [sp, #28]
  104862. 802b07c: 2b02 cmp r3, #2
  104863. 802b07e: dd1e ble.n 802b0be <_dtoa_r+0x86e>
  104864. 802b080: f1bb 0f00 cmp.w fp, #0
  104865. 802b084: f47f aeb7 bne.w 802adf6 <_dtoa_r+0x5a6>
  104866. 802b088: 4621 mov r1, r4
  104867. 802b08a: 465b mov r3, fp
  104868. 802b08c: 2205 movs r2, #5
  104869. 802b08e: 4648 mov r0, r9
  104870. 802b090: f000 fd2c bl 802baec <__multadd>
  104871. 802b094: 4601 mov r1, r0
  104872. 802b096: 4604 mov r4, r0
  104873. 802b098: 9801 ldr r0, [sp, #4]
  104874. 802b09a: f000 ff89 bl 802bfb0 <__mcmp>
  104875. 802b09e: 2800 cmp r0, #0
  104876. 802b0a0: f77f aea9 ble.w 802adf6 <_dtoa_r+0x5a6>
  104877. 802b0a4: 463e mov r6, r7
  104878. 802b0a6: 2331 movs r3, #49 @ 0x31
  104879. 802b0a8: f806 3b01 strb.w r3, [r6], #1
  104880. 802b0ac: 9b04 ldr r3, [sp, #16]
  104881. 802b0ae: 3301 adds r3, #1
  104882. 802b0b0: 9304 str r3, [sp, #16]
  104883. 802b0b2: e6a4 b.n 802adfe <_dtoa_r+0x5ae>
  104884. 802b0b4: f8cd 8010 str.w r8, [sp, #16]
  104885. 802b0b8: 4654 mov r4, sl
  104886. 802b0ba: 4625 mov r5, r4
  104887. 802b0bc: e7f2 b.n 802b0a4 <_dtoa_r+0x854>
  104888. 802b0be: 9b08 ldr r3, [sp, #32]
  104889. 802b0c0: 2b00 cmp r3, #0
  104890. 802b0c2: f000 8103 beq.w 802b2cc <_dtoa_r+0xa7c>
  104891. 802b0c6: 2e00 cmp r6, #0
  104892. 802b0c8: dd05 ble.n 802b0d6 <_dtoa_r+0x886>
  104893. 802b0ca: 4629 mov r1, r5
  104894. 802b0cc: 4632 mov r2, r6
  104895. 802b0ce: 4648 mov r0, r9
  104896. 802b0d0: f000 ff02 bl 802bed8 <__lshift>
  104897. 802b0d4: 4605 mov r5, r0
  104898. 802b0d6: 9b0b ldr r3, [sp, #44] @ 0x2c
  104899. 802b0d8: 2b00 cmp r3, #0
  104900. 802b0da: d058 beq.n 802b18e <_dtoa_r+0x93e>
  104901. 802b0dc: 6869 ldr r1, [r5, #4]
  104902. 802b0de: 4648 mov r0, r9
  104903. 802b0e0: f000 fca2 bl 802ba28 <_Balloc>
  104904. 802b0e4: 4606 mov r6, r0
  104905. 802b0e6: b928 cbnz r0, 802b0f4 <_dtoa_r+0x8a4>
  104906. 802b0e8: 4b82 ldr r3, [pc, #520] @ (802b2f4 <_dtoa_r+0xaa4>)
  104907. 802b0ea: 4602 mov r2, r0
  104908. 802b0ec: f240 21ef movw r1, #751 @ 0x2ef
  104909. 802b0f0: f7ff bbc7 b.w 802a882 <_dtoa_r+0x32>
  104910. 802b0f4: 692a ldr r2, [r5, #16]
  104911. 802b0f6: 3202 adds r2, #2
  104912. 802b0f8: 0092 lsls r2, r2, #2
  104913. 802b0fa: f105 010c add.w r1, r5, #12
  104914. 802b0fe: 300c adds r0, #12
  104915. 802b100: f7ff fae5 bl 802a6ce <memcpy>
  104916. 802b104: 2201 movs r2, #1
  104917. 802b106: 4631 mov r1, r6
  104918. 802b108: 4648 mov r0, r9
  104919. 802b10a: f000 fee5 bl 802bed8 <__lshift>
  104920. 802b10e: 1c7b adds r3, r7, #1
  104921. 802b110: 9305 str r3, [sp, #20]
  104922. 802b112: eb07 030b add.w r3, r7, fp
  104923. 802b116: 9309 str r3, [sp, #36] @ 0x24
  104924. 802b118: 9b02 ldr r3, [sp, #8]
  104925. 802b11a: f003 0301 and.w r3, r3, #1
  104926. 802b11e: 46a8 mov r8, r5
  104927. 802b120: 9308 str r3, [sp, #32]
  104928. 802b122: 4605 mov r5, r0
  104929. 802b124: 9b05 ldr r3, [sp, #20]
  104930. 802b126: 9801 ldr r0, [sp, #4]
  104931. 802b128: 4621 mov r1, r4
  104932. 802b12a: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff
  104933. 802b12e: f7ff fb05 bl 802a73c <quorem>
  104934. 802b132: 4641 mov r1, r8
  104935. 802b134: 9002 str r0, [sp, #8]
  104936. 802b136: f100 0a30 add.w sl, r0, #48 @ 0x30
  104937. 802b13a: 9801 ldr r0, [sp, #4]
  104938. 802b13c: f000 ff38 bl 802bfb0 <__mcmp>
  104939. 802b140: 462a mov r2, r5
  104940. 802b142: 9006 str r0, [sp, #24]
  104941. 802b144: 4621 mov r1, r4
  104942. 802b146: 4648 mov r0, r9
  104943. 802b148: f000 ff4e bl 802bfe8 <__mdiff>
  104944. 802b14c: 68c2 ldr r2, [r0, #12]
  104945. 802b14e: 4606 mov r6, r0
  104946. 802b150: b9fa cbnz r2, 802b192 <_dtoa_r+0x942>
  104947. 802b152: 4601 mov r1, r0
  104948. 802b154: 9801 ldr r0, [sp, #4]
  104949. 802b156: f000 ff2b bl 802bfb0 <__mcmp>
  104950. 802b15a: 4602 mov r2, r0
  104951. 802b15c: 4631 mov r1, r6
  104952. 802b15e: 4648 mov r0, r9
  104953. 802b160: 920a str r2, [sp, #40] @ 0x28
  104954. 802b162: f000 fca1 bl 802baa8 <_Bfree>
  104955. 802b166: 9b07 ldr r3, [sp, #28]
  104956. 802b168: 9a0a ldr r2, [sp, #40] @ 0x28
  104957. 802b16a: 9e05 ldr r6, [sp, #20]
  104958. 802b16c: ea43 0102 orr.w r1, r3, r2
  104959. 802b170: 9b08 ldr r3, [sp, #32]
  104960. 802b172: 4319 orrs r1, r3
  104961. 802b174: d10f bne.n 802b196 <_dtoa_r+0x946>
  104962. 802b176: f1ba 0f39 cmp.w sl, #57 @ 0x39
  104963. 802b17a: d028 beq.n 802b1ce <_dtoa_r+0x97e>
  104964. 802b17c: 9b06 ldr r3, [sp, #24]
  104965. 802b17e: 2b00 cmp r3, #0
  104966. 802b180: dd02 ble.n 802b188 <_dtoa_r+0x938>
  104967. 802b182: 9b02 ldr r3, [sp, #8]
  104968. 802b184: f103 0a31 add.w sl, r3, #49 @ 0x31
  104969. 802b188: f88b a000 strb.w sl, [fp]
  104970. 802b18c: e639 b.n 802ae02 <_dtoa_r+0x5b2>
  104971. 802b18e: 4628 mov r0, r5
  104972. 802b190: e7bd b.n 802b10e <_dtoa_r+0x8be>
  104973. 802b192: 2201 movs r2, #1
  104974. 802b194: e7e2 b.n 802b15c <_dtoa_r+0x90c>
  104975. 802b196: 9b06 ldr r3, [sp, #24]
  104976. 802b198: 2b00 cmp r3, #0
  104977. 802b19a: db04 blt.n 802b1a6 <_dtoa_r+0x956>
  104978. 802b19c: 9907 ldr r1, [sp, #28]
  104979. 802b19e: 430b orrs r3, r1
  104980. 802b1a0: 9908 ldr r1, [sp, #32]
  104981. 802b1a2: 430b orrs r3, r1
  104982. 802b1a4: d120 bne.n 802b1e8 <_dtoa_r+0x998>
  104983. 802b1a6: 2a00 cmp r2, #0
  104984. 802b1a8: ddee ble.n 802b188 <_dtoa_r+0x938>
  104985. 802b1aa: 9901 ldr r1, [sp, #4]
  104986. 802b1ac: 2201 movs r2, #1
  104987. 802b1ae: 4648 mov r0, r9
  104988. 802b1b0: f000 fe92 bl 802bed8 <__lshift>
  104989. 802b1b4: 4621 mov r1, r4
  104990. 802b1b6: 9001 str r0, [sp, #4]
  104991. 802b1b8: f000 fefa bl 802bfb0 <__mcmp>
  104992. 802b1bc: 2800 cmp r0, #0
  104993. 802b1be: dc03 bgt.n 802b1c8 <_dtoa_r+0x978>
  104994. 802b1c0: d1e2 bne.n 802b188 <_dtoa_r+0x938>
  104995. 802b1c2: f01a 0f01 tst.w sl, #1
  104996. 802b1c6: d0df beq.n 802b188 <_dtoa_r+0x938>
  104997. 802b1c8: f1ba 0f39 cmp.w sl, #57 @ 0x39
  104998. 802b1cc: d1d9 bne.n 802b182 <_dtoa_r+0x932>
  104999. 802b1ce: 2339 movs r3, #57 @ 0x39
  105000. 802b1d0: f88b 3000 strb.w r3, [fp]
  105001. 802b1d4: 4633 mov r3, r6
  105002. 802b1d6: 461e mov r6, r3
  105003. 802b1d8: 3b01 subs r3, #1
  105004. 802b1da: f816 2c01 ldrb.w r2, [r6, #-1]
  105005. 802b1de: 2a39 cmp r2, #57 @ 0x39
  105006. 802b1e0: d053 beq.n 802b28a <_dtoa_r+0xa3a>
  105007. 802b1e2: 3201 adds r2, #1
  105008. 802b1e4: 701a strb r2, [r3, #0]
  105009. 802b1e6: e60c b.n 802ae02 <_dtoa_r+0x5b2>
  105010. 802b1e8: 2a00 cmp r2, #0
  105011. 802b1ea: dd07 ble.n 802b1fc <_dtoa_r+0x9ac>
  105012. 802b1ec: f1ba 0f39 cmp.w sl, #57 @ 0x39
  105013. 802b1f0: d0ed beq.n 802b1ce <_dtoa_r+0x97e>
  105014. 802b1f2: f10a 0301 add.w r3, sl, #1
  105015. 802b1f6: f88b 3000 strb.w r3, [fp]
  105016. 802b1fa: e602 b.n 802ae02 <_dtoa_r+0x5b2>
  105017. 802b1fc: 9b05 ldr r3, [sp, #20]
  105018. 802b1fe: 9a05 ldr r2, [sp, #20]
  105019. 802b200: f803 ac01 strb.w sl, [r3, #-1]
  105020. 802b204: 9b09 ldr r3, [sp, #36] @ 0x24
  105021. 802b206: 4293 cmp r3, r2
  105022. 802b208: d029 beq.n 802b25e <_dtoa_r+0xa0e>
  105023. 802b20a: 9901 ldr r1, [sp, #4]
  105024. 802b20c: 2300 movs r3, #0
  105025. 802b20e: 220a movs r2, #10
  105026. 802b210: 4648 mov r0, r9
  105027. 802b212: f000 fc6b bl 802baec <__multadd>
  105028. 802b216: 45a8 cmp r8, r5
  105029. 802b218: 9001 str r0, [sp, #4]
  105030. 802b21a: f04f 0300 mov.w r3, #0
  105031. 802b21e: f04f 020a mov.w r2, #10
  105032. 802b222: 4641 mov r1, r8
  105033. 802b224: 4648 mov r0, r9
  105034. 802b226: d107 bne.n 802b238 <_dtoa_r+0x9e8>
  105035. 802b228: f000 fc60 bl 802baec <__multadd>
  105036. 802b22c: 4680 mov r8, r0
  105037. 802b22e: 4605 mov r5, r0
  105038. 802b230: 9b05 ldr r3, [sp, #20]
  105039. 802b232: 3301 adds r3, #1
  105040. 802b234: 9305 str r3, [sp, #20]
  105041. 802b236: e775 b.n 802b124 <_dtoa_r+0x8d4>
  105042. 802b238: f000 fc58 bl 802baec <__multadd>
  105043. 802b23c: 4629 mov r1, r5
  105044. 802b23e: 4680 mov r8, r0
  105045. 802b240: 2300 movs r3, #0
  105046. 802b242: 220a movs r2, #10
  105047. 802b244: 4648 mov r0, r9
  105048. 802b246: f000 fc51 bl 802baec <__multadd>
  105049. 802b24a: 4605 mov r5, r0
  105050. 802b24c: e7f0 b.n 802b230 <_dtoa_r+0x9e0>
  105051. 802b24e: f1bb 0f00 cmp.w fp, #0
  105052. 802b252: bfcc ite gt
  105053. 802b254: 465e movgt r6, fp
  105054. 802b256: 2601 movle r6, #1
  105055. 802b258: 443e add r6, r7
  105056. 802b25a: f04f 0800 mov.w r8, #0
  105057. 802b25e: 9901 ldr r1, [sp, #4]
  105058. 802b260: 2201 movs r2, #1
  105059. 802b262: 4648 mov r0, r9
  105060. 802b264: f000 fe38 bl 802bed8 <__lshift>
  105061. 802b268: 4621 mov r1, r4
  105062. 802b26a: 9001 str r0, [sp, #4]
  105063. 802b26c: f000 fea0 bl 802bfb0 <__mcmp>
  105064. 802b270: 2800 cmp r0, #0
  105065. 802b272: dcaf bgt.n 802b1d4 <_dtoa_r+0x984>
  105066. 802b274: d102 bne.n 802b27c <_dtoa_r+0xa2c>
  105067. 802b276: f01a 0f01 tst.w sl, #1
  105068. 802b27a: d1ab bne.n 802b1d4 <_dtoa_r+0x984>
  105069. 802b27c: 4633 mov r3, r6
  105070. 802b27e: 461e mov r6, r3
  105071. 802b280: f813 2d01 ldrb.w r2, [r3, #-1]!
  105072. 802b284: 2a30 cmp r2, #48 @ 0x30
  105073. 802b286: d0fa beq.n 802b27e <_dtoa_r+0xa2e>
  105074. 802b288: e5bb b.n 802ae02 <_dtoa_r+0x5b2>
  105075. 802b28a: 429f cmp r7, r3
  105076. 802b28c: d1a3 bne.n 802b1d6 <_dtoa_r+0x986>
  105077. 802b28e: 9b04 ldr r3, [sp, #16]
  105078. 802b290: 3301 adds r3, #1
  105079. 802b292: 9304 str r3, [sp, #16]
  105080. 802b294: 2331 movs r3, #49 @ 0x31
  105081. 802b296: 703b strb r3, [r7, #0]
  105082. 802b298: e5b3 b.n 802ae02 <_dtoa_r+0x5b2>
  105083. 802b29a: 9b1d ldr r3, [sp, #116] @ 0x74
  105084. 802b29c: 4f16 ldr r7, [pc, #88] @ (802b2f8 <_dtoa_r+0xaa8>)
  105085. 802b29e: b11b cbz r3, 802b2a8 <_dtoa_r+0xa58>
  105086. 802b2a0: f107 0308 add.w r3, r7, #8
  105087. 802b2a4: 9a1d ldr r2, [sp, #116] @ 0x74
  105088. 802b2a6: 6013 str r3, [r2, #0]
  105089. 802b2a8: 4638 mov r0, r7
  105090. 802b2aa: b011 add sp, #68 @ 0x44
  105091. 802b2ac: ecbd 8b02 vpop {d8}
  105092. 802b2b0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105093. 802b2b4: 9b07 ldr r3, [sp, #28]
  105094. 802b2b6: 2b01 cmp r3, #1
  105095. 802b2b8: f77f ae36 ble.w 802af28 <_dtoa_r+0x6d8>
  105096. 802b2bc: 9b0a ldr r3, [sp, #40] @ 0x28
  105097. 802b2be: 930b str r3, [sp, #44] @ 0x2c
  105098. 802b2c0: 2001 movs r0, #1
  105099. 802b2c2: e656 b.n 802af72 <_dtoa_r+0x722>
  105100. 802b2c4: f1bb 0f00 cmp.w fp, #0
  105101. 802b2c8: f77f aed7 ble.w 802b07a <_dtoa_r+0x82a>
  105102. 802b2cc: 463e mov r6, r7
  105103. 802b2ce: 9801 ldr r0, [sp, #4]
  105104. 802b2d0: 4621 mov r1, r4
  105105. 802b2d2: f7ff fa33 bl 802a73c <quorem>
  105106. 802b2d6: f100 0a30 add.w sl, r0, #48 @ 0x30
  105107. 802b2da: f806 ab01 strb.w sl, [r6], #1
  105108. 802b2de: 1bf2 subs r2, r6, r7
  105109. 802b2e0: 4593 cmp fp, r2
  105110. 802b2e2: ddb4 ble.n 802b24e <_dtoa_r+0x9fe>
  105111. 802b2e4: 9901 ldr r1, [sp, #4]
  105112. 802b2e6: 2300 movs r3, #0
  105113. 802b2e8: 220a movs r2, #10
  105114. 802b2ea: 4648 mov r0, r9
  105115. 802b2ec: f000 fbfe bl 802baec <__multadd>
  105116. 802b2f0: 9001 str r0, [sp, #4]
  105117. 802b2f2: e7ec b.n 802b2ce <_dtoa_r+0xa7e>
  105118. 802b2f4: 080317ae .word 0x080317ae
  105119. 802b2f8: 08031749 .word 0x08031749
  105120. 0802b2fc <_free_r>:
  105121. 802b2fc: b538 push {r3, r4, r5, lr}
  105122. 802b2fe: 4605 mov r5, r0
  105123. 802b300: 2900 cmp r1, #0
  105124. 802b302: d041 beq.n 802b388 <_free_r+0x8c>
  105125. 802b304: f851 3c04 ldr.w r3, [r1, #-4]
  105126. 802b308: 1f0c subs r4, r1, #4
  105127. 802b30a: 2b00 cmp r3, #0
  105128. 802b30c: bfb8 it lt
  105129. 802b30e: 18e4 addlt r4, r4, r3
  105130. 802b310: f7fd fc1e bl 8028b50 <__malloc_lock>
  105131. 802b314: 4a1d ldr r2, [pc, #116] @ (802b38c <_free_r+0x90>)
  105132. 802b316: 6813 ldr r3, [r2, #0]
  105133. 802b318: b933 cbnz r3, 802b328 <_free_r+0x2c>
  105134. 802b31a: 6063 str r3, [r4, #4]
  105135. 802b31c: 6014 str r4, [r2, #0]
  105136. 802b31e: 4628 mov r0, r5
  105137. 802b320: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  105138. 802b324: f7fd bc1a b.w 8028b5c <__malloc_unlock>
  105139. 802b328: 42a3 cmp r3, r4
  105140. 802b32a: d908 bls.n 802b33e <_free_r+0x42>
  105141. 802b32c: 6820 ldr r0, [r4, #0]
  105142. 802b32e: 1821 adds r1, r4, r0
  105143. 802b330: 428b cmp r3, r1
  105144. 802b332: bf01 itttt eq
  105145. 802b334: 6819 ldreq r1, [r3, #0]
  105146. 802b336: 685b ldreq r3, [r3, #4]
  105147. 802b338: 1809 addeq r1, r1, r0
  105148. 802b33a: 6021 streq r1, [r4, #0]
  105149. 802b33c: e7ed b.n 802b31a <_free_r+0x1e>
  105150. 802b33e: 461a mov r2, r3
  105151. 802b340: 685b ldr r3, [r3, #4]
  105152. 802b342: b10b cbz r3, 802b348 <_free_r+0x4c>
  105153. 802b344: 42a3 cmp r3, r4
  105154. 802b346: d9fa bls.n 802b33e <_free_r+0x42>
  105155. 802b348: 6811 ldr r1, [r2, #0]
  105156. 802b34a: 1850 adds r0, r2, r1
  105157. 802b34c: 42a0 cmp r0, r4
  105158. 802b34e: d10b bne.n 802b368 <_free_r+0x6c>
  105159. 802b350: 6820 ldr r0, [r4, #0]
  105160. 802b352: 4401 add r1, r0
  105161. 802b354: 1850 adds r0, r2, r1
  105162. 802b356: 4283 cmp r3, r0
  105163. 802b358: 6011 str r1, [r2, #0]
  105164. 802b35a: d1e0 bne.n 802b31e <_free_r+0x22>
  105165. 802b35c: 6818 ldr r0, [r3, #0]
  105166. 802b35e: 685b ldr r3, [r3, #4]
  105167. 802b360: 6053 str r3, [r2, #4]
  105168. 802b362: 4408 add r0, r1
  105169. 802b364: 6010 str r0, [r2, #0]
  105170. 802b366: e7da b.n 802b31e <_free_r+0x22>
  105171. 802b368: d902 bls.n 802b370 <_free_r+0x74>
  105172. 802b36a: 230c movs r3, #12
  105173. 802b36c: 602b str r3, [r5, #0]
  105174. 802b36e: e7d6 b.n 802b31e <_free_r+0x22>
  105175. 802b370: 6820 ldr r0, [r4, #0]
  105176. 802b372: 1821 adds r1, r4, r0
  105177. 802b374: 428b cmp r3, r1
  105178. 802b376: bf04 itt eq
  105179. 802b378: 6819 ldreq r1, [r3, #0]
  105180. 802b37a: 685b ldreq r3, [r3, #4]
  105181. 802b37c: 6063 str r3, [r4, #4]
  105182. 802b37e: bf04 itt eq
  105183. 802b380: 1809 addeq r1, r1, r0
  105184. 802b382: 6021 streq r1, [r4, #0]
  105185. 802b384: 6054 str r4, [r2, #4]
  105186. 802b386: e7ca b.n 802b31e <_free_r+0x22>
  105187. 802b388: bd38 pop {r3, r4, r5, pc}
  105188. 802b38a: bf00 nop
  105189. 802b38c: 2402b110 .word 0x2402b110
  105190. 0802b390 <rshift>:
  105191. 802b390: 6903 ldr r3, [r0, #16]
  105192. 802b392: ebb3 1f61 cmp.w r3, r1, asr #5
  105193. 802b396: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
  105194. 802b39a: ea4f 1261 mov.w r2, r1, asr #5
  105195. 802b39e: f100 0414 add.w r4, r0, #20
  105196. 802b3a2: dd45 ble.n 802b430 <rshift+0xa0>
  105197. 802b3a4: f011 011f ands.w r1, r1, #31
  105198. 802b3a8: eb04 0683 add.w r6, r4, r3, lsl #2
  105199. 802b3ac: eb04 0582 add.w r5, r4, r2, lsl #2
  105200. 802b3b0: d10c bne.n 802b3cc <rshift+0x3c>
  105201. 802b3b2: f100 0710 add.w r7, r0, #16
  105202. 802b3b6: 4629 mov r1, r5
  105203. 802b3b8: 42b1 cmp r1, r6
  105204. 802b3ba: d334 bcc.n 802b426 <rshift+0x96>
  105205. 802b3bc: 1a9b subs r3, r3, r2
  105206. 802b3be: 009b lsls r3, r3, #2
  105207. 802b3c0: 1eea subs r2, r5, #3
  105208. 802b3c2: 4296 cmp r6, r2
  105209. 802b3c4: bf38 it cc
  105210. 802b3c6: 2300 movcc r3, #0
  105211. 802b3c8: 4423 add r3, r4
  105212. 802b3ca: e015 b.n 802b3f8 <rshift+0x68>
  105213. 802b3cc: f854 7022 ldr.w r7, [r4, r2, lsl #2]
  105214. 802b3d0: f1c1 0820 rsb r8, r1, #32
  105215. 802b3d4: 40cf lsrs r7, r1
  105216. 802b3d6: f105 0e04 add.w lr, r5, #4
  105217. 802b3da: 46a1 mov r9, r4
  105218. 802b3dc: 4576 cmp r6, lr
  105219. 802b3de: 46f4 mov ip, lr
  105220. 802b3e0: d815 bhi.n 802b40e <rshift+0x7e>
  105221. 802b3e2: 1a9a subs r2, r3, r2
  105222. 802b3e4: 0092 lsls r2, r2, #2
  105223. 802b3e6: 3a04 subs r2, #4
  105224. 802b3e8: 3501 adds r5, #1
  105225. 802b3ea: 42ae cmp r6, r5
  105226. 802b3ec: bf38 it cc
  105227. 802b3ee: 2200 movcc r2, #0
  105228. 802b3f0: 18a3 adds r3, r4, r2
  105229. 802b3f2: 50a7 str r7, [r4, r2]
  105230. 802b3f4: b107 cbz r7, 802b3f8 <rshift+0x68>
  105231. 802b3f6: 3304 adds r3, #4
  105232. 802b3f8: 1b1a subs r2, r3, r4
  105233. 802b3fa: 42a3 cmp r3, r4
  105234. 802b3fc: ea4f 02a2 mov.w r2, r2, asr #2
  105235. 802b400: bf08 it eq
  105236. 802b402: 2300 moveq r3, #0
  105237. 802b404: 6102 str r2, [r0, #16]
  105238. 802b406: bf08 it eq
  105239. 802b408: 6143 streq r3, [r0, #20]
  105240. 802b40a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  105241. 802b40e: f8dc c000 ldr.w ip, [ip]
  105242. 802b412: fa0c fc08 lsl.w ip, ip, r8
  105243. 802b416: ea4c 0707 orr.w r7, ip, r7
  105244. 802b41a: f849 7b04 str.w r7, [r9], #4
  105245. 802b41e: f85e 7b04 ldr.w r7, [lr], #4
  105246. 802b422: 40cf lsrs r7, r1
  105247. 802b424: e7da b.n 802b3dc <rshift+0x4c>
  105248. 802b426: f851 cb04 ldr.w ip, [r1], #4
  105249. 802b42a: f847 cf04 str.w ip, [r7, #4]!
  105250. 802b42e: e7c3 b.n 802b3b8 <rshift+0x28>
  105251. 802b430: 4623 mov r3, r4
  105252. 802b432: e7e1 b.n 802b3f8 <rshift+0x68>
  105253. 0802b434 <__hexdig_fun>:
  105254. 802b434: f1a0 0330 sub.w r3, r0, #48 @ 0x30
  105255. 802b438: 2b09 cmp r3, #9
  105256. 802b43a: d802 bhi.n 802b442 <__hexdig_fun+0xe>
  105257. 802b43c: 3820 subs r0, #32
  105258. 802b43e: b2c0 uxtb r0, r0
  105259. 802b440: 4770 bx lr
  105260. 802b442: f1a0 0361 sub.w r3, r0, #97 @ 0x61
  105261. 802b446: 2b05 cmp r3, #5
  105262. 802b448: d801 bhi.n 802b44e <__hexdig_fun+0x1a>
  105263. 802b44a: 3847 subs r0, #71 @ 0x47
  105264. 802b44c: e7f7 b.n 802b43e <__hexdig_fun+0xa>
  105265. 802b44e: f1a0 0341 sub.w r3, r0, #65 @ 0x41
  105266. 802b452: 2b05 cmp r3, #5
  105267. 802b454: d801 bhi.n 802b45a <__hexdig_fun+0x26>
  105268. 802b456: 3827 subs r0, #39 @ 0x27
  105269. 802b458: e7f1 b.n 802b43e <__hexdig_fun+0xa>
  105270. 802b45a: 2000 movs r0, #0
  105271. 802b45c: 4770 bx lr
  105272. ...
  105273. 0802b460 <__gethex>:
  105274. 802b460: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  105275. 802b464: b085 sub sp, #20
  105276. 802b466: 468a mov sl, r1
  105277. 802b468: 9302 str r3, [sp, #8]
  105278. 802b46a: 680b ldr r3, [r1, #0]
  105279. 802b46c: 9001 str r0, [sp, #4]
  105280. 802b46e: 4690 mov r8, r2
  105281. 802b470: 1c9c adds r4, r3, #2
  105282. 802b472: 46a1 mov r9, r4
  105283. 802b474: f814 0b01 ldrb.w r0, [r4], #1
  105284. 802b478: 2830 cmp r0, #48 @ 0x30
  105285. 802b47a: d0fa beq.n 802b472 <__gethex+0x12>
  105286. 802b47c: eba9 0303 sub.w r3, r9, r3
  105287. 802b480: f1a3 0b02 sub.w fp, r3, #2
  105288. 802b484: f7ff ffd6 bl 802b434 <__hexdig_fun>
  105289. 802b488: 4605 mov r5, r0
  105290. 802b48a: 2800 cmp r0, #0
  105291. 802b48c: d168 bne.n 802b560 <__gethex+0x100>
  105292. 802b48e: 49a0 ldr r1, [pc, #640] @ (802b710 <__gethex+0x2b0>)
  105293. 802b490: 2201 movs r2, #1
  105294. 802b492: 4648 mov r0, r9
  105295. 802b494: f7ff f82c bl 802a4f0 <strncmp>
  105296. 802b498: 4607 mov r7, r0
  105297. 802b49a: 2800 cmp r0, #0
  105298. 802b49c: d167 bne.n 802b56e <__gethex+0x10e>
  105299. 802b49e: f899 0001 ldrb.w r0, [r9, #1]
  105300. 802b4a2: 4626 mov r6, r4
  105301. 802b4a4: f7ff ffc6 bl 802b434 <__hexdig_fun>
  105302. 802b4a8: 2800 cmp r0, #0
  105303. 802b4aa: d062 beq.n 802b572 <__gethex+0x112>
  105304. 802b4ac: 4623 mov r3, r4
  105305. 802b4ae: 7818 ldrb r0, [r3, #0]
  105306. 802b4b0: 2830 cmp r0, #48 @ 0x30
  105307. 802b4b2: 4699 mov r9, r3
  105308. 802b4b4: f103 0301 add.w r3, r3, #1
  105309. 802b4b8: d0f9 beq.n 802b4ae <__gethex+0x4e>
  105310. 802b4ba: f7ff ffbb bl 802b434 <__hexdig_fun>
  105311. 802b4be: fab0 f580 clz r5, r0
  105312. 802b4c2: 096d lsrs r5, r5, #5
  105313. 802b4c4: f04f 0b01 mov.w fp, #1
  105314. 802b4c8: 464a mov r2, r9
  105315. 802b4ca: 4616 mov r6, r2
  105316. 802b4cc: 3201 adds r2, #1
  105317. 802b4ce: 7830 ldrb r0, [r6, #0]
  105318. 802b4d0: f7ff ffb0 bl 802b434 <__hexdig_fun>
  105319. 802b4d4: 2800 cmp r0, #0
  105320. 802b4d6: d1f8 bne.n 802b4ca <__gethex+0x6a>
  105321. 802b4d8: 498d ldr r1, [pc, #564] @ (802b710 <__gethex+0x2b0>)
  105322. 802b4da: 2201 movs r2, #1
  105323. 802b4dc: 4630 mov r0, r6
  105324. 802b4de: f7ff f807 bl 802a4f0 <strncmp>
  105325. 802b4e2: 2800 cmp r0, #0
  105326. 802b4e4: d13f bne.n 802b566 <__gethex+0x106>
  105327. 802b4e6: b944 cbnz r4, 802b4fa <__gethex+0x9a>
  105328. 802b4e8: 1c74 adds r4, r6, #1
  105329. 802b4ea: 4622 mov r2, r4
  105330. 802b4ec: 4616 mov r6, r2
  105331. 802b4ee: 3201 adds r2, #1
  105332. 802b4f0: 7830 ldrb r0, [r6, #0]
  105333. 802b4f2: f7ff ff9f bl 802b434 <__hexdig_fun>
  105334. 802b4f6: 2800 cmp r0, #0
  105335. 802b4f8: d1f8 bne.n 802b4ec <__gethex+0x8c>
  105336. 802b4fa: 1ba4 subs r4, r4, r6
  105337. 802b4fc: 00a7 lsls r7, r4, #2
  105338. 802b4fe: 7833 ldrb r3, [r6, #0]
  105339. 802b500: f003 03df and.w r3, r3, #223 @ 0xdf
  105340. 802b504: 2b50 cmp r3, #80 @ 0x50
  105341. 802b506: d13e bne.n 802b586 <__gethex+0x126>
  105342. 802b508: 7873 ldrb r3, [r6, #1]
  105343. 802b50a: 2b2b cmp r3, #43 @ 0x2b
  105344. 802b50c: d033 beq.n 802b576 <__gethex+0x116>
  105345. 802b50e: 2b2d cmp r3, #45 @ 0x2d
  105346. 802b510: d034 beq.n 802b57c <__gethex+0x11c>
  105347. 802b512: 1c71 adds r1, r6, #1
  105348. 802b514: 2400 movs r4, #0
  105349. 802b516: 7808 ldrb r0, [r1, #0]
  105350. 802b518: f7ff ff8c bl 802b434 <__hexdig_fun>
  105351. 802b51c: 1e43 subs r3, r0, #1
  105352. 802b51e: b2db uxtb r3, r3
  105353. 802b520: 2b18 cmp r3, #24
  105354. 802b522: d830 bhi.n 802b586 <__gethex+0x126>
  105355. 802b524: f1a0 0210 sub.w r2, r0, #16
  105356. 802b528: f811 0f01 ldrb.w r0, [r1, #1]!
  105357. 802b52c: f7ff ff82 bl 802b434 <__hexdig_fun>
  105358. 802b530: f100 3cff add.w ip, r0, #4294967295 @ 0xffffffff
  105359. 802b534: fa5f fc8c uxtb.w ip, ip
  105360. 802b538: f1bc 0f18 cmp.w ip, #24
  105361. 802b53c: f04f 030a mov.w r3, #10
  105362. 802b540: d91e bls.n 802b580 <__gethex+0x120>
  105363. 802b542: b104 cbz r4, 802b546 <__gethex+0xe6>
  105364. 802b544: 4252 negs r2, r2
  105365. 802b546: 4417 add r7, r2
  105366. 802b548: f8ca 1000 str.w r1, [sl]
  105367. 802b54c: b1ed cbz r5, 802b58a <__gethex+0x12a>
  105368. 802b54e: f1bb 0f00 cmp.w fp, #0
  105369. 802b552: bf0c ite eq
  105370. 802b554: 2506 moveq r5, #6
  105371. 802b556: 2500 movne r5, #0
  105372. 802b558: 4628 mov r0, r5
  105373. 802b55a: b005 add sp, #20
  105374. 802b55c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105375. 802b560: 2500 movs r5, #0
  105376. 802b562: 462c mov r4, r5
  105377. 802b564: e7b0 b.n 802b4c8 <__gethex+0x68>
  105378. 802b566: 2c00 cmp r4, #0
  105379. 802b568: d1c7 bne.n 802b4fa <__gethex+0x9a>
  105380. 802b56a: 4627 mov r7, r4
  105381. 802b56c: e7c7 b.n 802b4fe <__gethex+0x9e>
  105382. 802b56e: 464e mov r6, r9
  105383. 802b570: 462f mov r7, r5
  105384. 802b572: 2501 movs r5, #1
  105385. 802b574: e7c3 b.n 802b4fe <__gethex+0x9e>
  105386. 802b576: 2400 movs r4, #0
  105387. 802b578: 1cb1 adds r1, r6, #2
  105388. 802b57a: e7cc b.n 802b516 <__gethex+0xb6>
  105389. 802b57c: 2401 movs r4, #1
  105390. 802b57e: e7fb b.n 802b578 <__gethex+0x118>
  105391. 802b580: fb03 0002 mla r0, r3, r2, r0
  105392. 802b584: e7ce b.n 802b524 <__gethex+0xc4>
  105393. 802b586: 4631 mov r1, r6
  105394. 802b588: e7de b.n 802b548 <__gethex+0xe8>
  105395. 802b58a: eba6 0309 sub.w r3, r6, r9
  105396. 802b58e: 3b01 subs r3, #1
  105397. 802b590: 4629 mov r1, r5
  105398. 802b592: 2b07 cmp r3, #7
  105399. 802b594: dc0a bgt.n 802b5ac <__gethex+0x14c>
  105400. 802b596: 9801 ldr r0, [sp, #4]
  105401. 802b598: f000 fa46 bl 802ba28 <_Balloc>
  105402. 802b59c: 4604 mov r4, r0
  105403. 802b59e: b940 cbnz r0, 802b5b2 <__gethex+0x152>
  105404. 802b5a0: 4b5c ldr r3, [pc, #368] @ (802b714 <__gethex+0x2b4>)
  105405. 802b5a2: 4602 mov r2, r0
  105406. 802b5a4: 21e4 movs r1, #228 @ 0xe4
  105407. 802b5a6: 485c ldr r0, [pc, #368] @ (802b718 <__gethex+0x2b8>)
  105408. 802b5a8: f7ff f8aa bl 802a700 <__assert_func>
  105409. 802b5ac: 3101 adds r1, #1
  105410. 802b5ae: 105b asrs r3, r3, #1
  105411. 802b5b0: e7ef b.n 802b592 <__gethex+0x132>
  105412. 802b5b2: f100 0a14 add.w sl, r0, #20
  105413. 802b5b6: 2300 movs r3, #0
  105414. 802b5b8: 4655 mov r5, sl
  105415. 802b5ba: 469b mov fp, r3
  105416. 802b5bc: 45b1 cmp r9, r6
  105417. 802b5be: d337 bcc.n 802b630 <__gethex+0x1d0>
  105418. 802b5c0: f845 bb04 str.w fp, [r5], #4
  105419. 802b5c4: eba5 050a sub.w r5, r5, sl
  105420. 802b5c8: 10ad asrs r5, r5, #2
  105421. 802b5ca: 6125 str r5, [r4, #16]
  105422. 802b5cc: 4658 mov r0, fp
  105423. 802b5ce: f000 fb1d bl 802bc0c <__hi0bits>
  105424. 802b5d2: 016d lsls r5, r5, #5
  105425. 802b5d4: f8d8 6000 ldr.w r6, [r8]
  105426. 802b5d8: 1a2d subs r5, r5, r0
  105427. 802b5da: 42b5 cmp r5, r6
  105428. 802b5dc: dd54 ble.n 802b688 <__gethex+0x228>
  105429. 802b5de: 1bad subs r5, r5, r6
  105430. 802b5e0: 4629 mov r1, r5
  105431. 802b5e2: 4620 mov r0, r4
  105432. 802b5e4: f000 feae bl 802c344 <__any_on>
  105433. 802b5e8: 4681 mov r9, r0
  105434. 802b5ea: b178 cbz r0, 802b60c <__gethex+0x1ac>
  105435. 802b5ec: 1e6b subs r3, r5, #1
  105436. 802b5ee: 1159 asrs r1, r3, #5
  105437. 802b5f0: f003 021f and.w r2, r3, #31
  105438. 802b5f4: f85a 1021 ldr.w r1, [sl, r1, lsl #2]
  105439. 802b5f8: f04f 0901 mov.w r9, #1
  105440. 802b5fc: fa09 f202 lsl.w r2, r9, r2
  105441. 802b600: 420a tst r2, r1
  105442. 802b602: d003 beq.n 802b60c <__gethex+0x1ac>
  105443. 802b604: 454b cmp r3, r9
  105444. 802b606: dc36 bgt.n 802b676 <__gethex+0x216>
  105445. 802b608: f04f 0902 mov.w r9, #2
  105446. 802b60c: 4629 mov r1, r5
  105447. 802b60e: 4620 mov r0, r4
  105448. 802b610: f7ff febe bl 802b390 <rshift>
  105449. 802b614: 442f add r7, r5
  105450. 802b616: f8d8 3008 ldr.w r3, [r8, #8]
  105451. 802b61a: 42bb cmp r3, r7
  105452. 802b61c: da42 bge.n 802b6a4 <__gethex+0x244>
  105453. 802b61e: 9801 ldr r0, [sp, #4]
  105454. 802b620: 4621 mov r1, r4
  105455. 802b622: f000 fa41 bl 802baa8 <_Bfree>
  105456. 802b626: 9a0e ldr r2, [sp, #56] @ 0x38
  105457. 802b628: 2300 movs r3, #0
  105458. 802b62a: 6013 str r3, [r2, #0]
  105459. 802b62c: 25a3 movs r5, #163 @ 0xa3
  105460. 802b62e: e793 b.n 802b558 <__gethex+0xf8>
  105461. 802b630: f816 2d01 ldrb.w r2, [r6, #-1]!
  105462. 802b634: 2a2e cmp r2, #46 @ 0x2e
  105463. 802b636: d012 beq.n 802b65e <__gethex+0x1fe>
  105464. 802b638: 2b20 cmp r3, #32
  105465. 802b63a: d104 bne.n 802b646 <__gethex+0x1e6>
  105466. 802b63c: f845 bb04 str.w fp, [r5], #4
  105467. 802b640: f04f 0b00 mov.w fp, #0
  105468. 802b644: 465b mov r3, fp
  105469. 802b646: 7830 ldrb r0, [r6, #0]
  105470. 802b648: 9303 str r3, [sp, #12]
  105471. 802b64a: f7ff fef3 bl 802b434 <__hexdig_fun>
  105472. 802b64e: 9b03 ldr r3, [sp, #12]
  105473. 802b650: f000 000f and.w r0, r0, #15
  105474. 802b654: 4098 lsls r0, r3
  105475. 802b656: ea4b 0b00 orr.w fp, fp, r0
  105476. 802b65a: 3304 adds r3, #4
  105477. 802b65c: e7ae b.n 802b5bc <__gethex+0x15c>
  105478. 802b65e: 45b1 cmp r9, r6
  105479. 802b660: d8ea bhi.n 802b638 <__gethex+0x1d8>
  105480. 802b662: 492b ldr r1, [pc, #172] @ (802b710 <__gethex+0x2b0>)
  105481. 802b664: 9303 str r3, [sp, #12]
  105482. 802b666: 2201 movs r2, #1
  105483. 802b668: 4630 mov r0, r6
  105484. 802b66a: f7fe ff41 bl 802a4f0 <strncmp>
  105485. 802b66e: 9b03 ldr r3, [sp, #12]
  105486. 802b670: 2800 cmp r0, #0
  105487. 802b672: d1e1 bne.n 802b638 <__gethex+0x1d8>
  105488. 802b674: e7a2 b.n 802b5bc <__gethex+0x15c>
  105489. 802b676: 1ea9 subs r1, r5, #2
  105490. 802b678: 4620 mov r0, r4
  105491. 802b67a: f000 fe63 bl 802c344 <__any_on>
  105492. 802b67e: 2800 cmp r0, #0
  105493. 802b680: d0c2 beq.n 802b608 <__gethex+0x1a8>
  105494. 802b682: f04f 0903 mov.w r9, #3
  105495. 802b686: e7c1 b.n 802b60c <__gethex+0x1ac>
  105496. 802b688: da09 bge.n 802b69e <__gethex+0x23e>
  105497. 802b68a: 1b75 subs r5, r6, r5
  105498. 802b68c: 4621 mov r1, r4
  105499. 802b68e: 9801 ldr r0, [sp, #4]
  105500. 802b690: 462a mov r2, r5
  105501. 802b692: f000 fc21 bl 802bed8 <__lshift>
  105502. 802b696: 1b7f subs r7, r7, r5
  105503. 802b698: 4604 mov r4, r0
  105504. 802b69a: f100 0a14 add.w sl, r0, #20
  105505. 802b69e: f04f 0900 mov.w r9, #0
  105506. 802b6a2: e7b8 b.n 802b616 <__gethex+0x1b6>
  105507. 802b6a4: f8d8 5004 ldr.w r5, [r8, #4]
  105508. 802b6a8: 42bd cmp r5, r7
  105509. 802b6aa: dd6f ble.n 802b78c <__gethex+0x32c>
  105510. 802b6ac: 1bed subs r5, r5, r7
  105511. 802b6ae: 42ae cmp r6, r5
  105512. 802b6b0: dc34 bgt.n 802b71c <__gethex+0x2bc>
  105513. 802b6b2: f8d8 300c ldr.w r3, [r8, #12]
  105514. 802b6b6: 2b02 cmp r3, #2
  105515. 802b6b8: d022 beq.n 802b700 <__gethex+0x2a0>
  105516. 802b6ba: 2b03 cmp r3, #3
  105517. 802b6bc: d024 beq.n 802b708 <__gethex+0x2a8>
  105518. 802b6be: 2b01 cmp r3, #1
  105519. 802b6c0: d115 bne.n 802b6ee <__gethex+0x28e>
  105520. 802b6c2: 42ae cmp r6, r5
  105521. 802b6c4: d113 bne.n 802b6ee <__gethex+0x28e>
  105522. 802b6c6: 2e01 cmp r6, #1
  105523. 802b6c8: d10b bne.n 802b6e2 <__gethex+0x282>
  105524. 802b6ca: 9a02 ldr r2, [sp, #8]
  105525. 802b6cc: f8d8 3004 ldr.w r3, [r8, #4]
  105526. 802b6d0: 6013 str r3, [r2, #0]
  105527. 802b6d2: 2301 movs r3, #1
  105528. 802b6d4: 6123 str r3, [r4, #16]
  105529. 802b6d6: f8ca 3000 str.w r3, [sl]
  105530. 802b6da: 9b0e ldr r3, [sp, #56] @ 0x38
  105531. 802b6dc: 2562 movs r5, #98 @ 0x62
  105532. 802b6de: 601c str r4, [r3, #0]
  105533. 802b6e0: e73a b.n 802b558 <__gethex+0xf8>
  105534. 802b6e2: 1e71 subs r1, r6, #1
  105535. 802b6e4: 4620 mov r0, r4
  105536. 802b6e6: f000 fe2d bl 802c344 <__any_on>
  105537. 802b6ea: 2800 cmp r0, #0
  105538. 802b6ec: d1ed bne.n 802b6ca <__gethex+0x26a>
  105539. 802b6ee: 9801 ldr r0, [sp, #4]
  105540. 802b6f0: 4621 mov r1, r4
  105541. 802b6f2: f000 f9d9 bl 802baa8 <_Bfree>
  105542. 802b6f6: 9a0e ldr r2, [sp, #56] @ 0x38
  105543. 802b6f8: 2300 movs r3, #0
  105544. 802b6fa: 6013 str r3, [r2, #0]
  105545. 802b6fc: 2550 movs r5, #80 @ 0x50
  105546. 802b6fe: e72b b.n 802b558 <__gethex+0xf8>
  105547. 802b700: 9b0f ldr r3, [sp, #60] @ 0x3c
  105548. 802b702: 2b00 cmp r3, #0
  105549. 802b704: d1f3 bne.n 802b6ee <__gethex+0x28e>
  105550. 802b706: e7e0 b.n 802b6ca <__gethex+0x26a>
  105551. 802b708: 9b0f ldr r3, [sp, #60] @ 0x3c
  105552. 802b70a: 2b00 cmp r3, #0
  105553. 802b70c: d1dd bne.n 802b6ca <__gethex+0x26a>
  105554. 802b70e: e7ee b.n 802b6ee <__gethex+0x28e>
  105555. 802b710: 08031579 .word 0x08031579
  105556. 802b714: 080317ae .word 0x080317ae
  105557. 802b718: 080317bf .word 0x080317bf
  105558. 802b71c: 1e6f subs r7, r5, #1
  105559. 802b71e: f1b9 0f00 cmp.w r9, #0
  105560. 802b722: d130 bne.n 802b786 <__gethex+0x326>
  105561. 802b724: b127 cbz r7, 802b730 <__gethex+0x2d0>
  105562. 802b726: 4639 mov r1, r7
  105563. 802b728: 4620 mov r0, r4
  105564. 802b72a: f000 fe0b bl 802c344 <__any_on>
  105565. 802b72e: 4681 mov r9, r0
  105566. 802b730: 117a asrs r2, r7, #5
  105567. 802b732: 2301 movs r3, #1
  105568. 802b734: f85a 2022 ldr.w r2, [sl, r2, lsl #2]
  105569. 802b738: f007 071f and.w r7, r7, #31
  105570. 802b73c: 40bb lsls r3, r7
  105571. 802b73e: 4213 tst r3, r2
  105572. 802b740: 4629 mov r1, r5
  105573. 802b742: 4620 mov r0, r4
  105574. 802b744: bf18 it ne
  105575. 802b746: f049 0902 orrne.w r9, r9, #2
  105576. 802b74a: f7ff fe21 bl 802b390 <rshift>
  105577. 802b74e: f8d8 7004 ldr.w r7, [r8, #4]
  105578. 802b752: 1b76 subs r6, r6, r5
  105579. 802b754: 2502 movs r5, #2
  105580. 802b756: f1b9 0f00 cmp.w r9, #0
  105581. 802b75a: d047 beq.n 802b7ec <__gethex+0x38c>
  105582. 802b75c: f8d8 300c ldr.w r3, [r8, #12]
  105583. 802b760: 2b02 cmp r3, #2
  105584. 802b762: d015 beq.n 802b790 <__gethex+0x330>
  105585. 802b764: 2b03 cmp r3, #3
  105586. 802b766: d017 beq.n 802b798 <__gethex+0x338>
  105587. 802b768: 2b01 cmp r3, #1
  105588. 802b76a: d109 bne.n 802b780 <__gethex+0x320>
  105589. 802b76c: f019 0f02 tst.w r9, #2
  105590. 802b770: d006 beq.n 802b780 <__gethex+0x320>
  105591. 802b772: f8da 3000 ldr.w r3, [sl]
  105592. 802b776: ea49 0903 orr.w r9, r9, r3
  105593. 802b77a: f019 0f01 tst.w r9, #1
  105594. 802b77e: d10e bne.n 802b79e <__gethex+0x33e>
  105595. 802b780: f045 0510 orr.w r5, r5, #16
  105596. 802b784: e032 b.n 802b7ec <__gethex+0x38c>
  105597. 802b786: f04f 0901 mov.w r9, #1
  105598. 802b78a: e7d1 b.n 802b730 <__gethex+0x2d0>
  105599. 802b78c: 2501 movs r5, #1
  105600. 802b78e: e7e2 b.n 802b756 <__gethex+0x2f6>
  105601. 802b790: 9b0f ldr r3, [sp, #60] @ 0x3c
  105602. 802b792: f1c3 0301 rsb r3, r3, #1
  105603. 802b796: 930f str r3, [sp, #60] @ 0x3c
  105604. 802b798: 9b0f ldr r3, [sp, #60] @ 0x3c
  105605. 802b79a: 2b00 cmp r3, #0
  105606. 802b79c: d0f0 beq.n 802b780 <__gethex+0x320>
  105607. 802b79e: f8d4 b010 ldr.w fp, [r4, #16]
  105608. 802b7a2: f104 0314 add.w r3, r4, #20
  105609. 802b7a6: ea4f 0a8b mov.w sl, fp, lsl #2
  105610. 802b7aa: eb03 018b add.w r1, r3, fp, lsl #2
  105611. 802b7ae: f04f 0c00 mov.w ip, #0
  105612. 802b7b2: 4618 mov r0, r3
  105613. 802b7b4: f853 2b04 ldr.w r2, [r3], #4
  105614. 802b7b8: f1b2 3fff cmp.w r2, #4294967295 @ 0xffffffff
  105615. 802b7bc: d01b beq.n 802b7f6 <__gethex+0x396>
  105616. 802b7be: 3201 adds r2, #1
  105617. 802b7c0: 6002 str r2, [r0, #0]
  105618. 802b7c2: 2d02 cmp r5, #2
  105619. 802b7c4: f104 0314 add.w r3, r4, #20
  105620. 802b7c8: d13c bne.n 802b844 <__gethex+0x3e4>
  105621. 802b7ca: f8d8 2000 ldr.w r2, [r8]
  105622. 802b7ce: 3a01 subs r2, #1
  105623. 802b7d0: 42b2 cmp r2, r6
  105624. 802b7d2: d109 bne.n 802b7e8 <__gethex+0x388>
  105625. 802b7d4: 1171 asrs r1, r6, #5
  105626. 802b7d6: 2201 movs r2, #1
  105627. 802b7d8: f853 3021 ldr.w r3, [r3, r1, lsl #2]
  105628. 802b7dc: f006 061f and.w r6, r6, #31
  105629. 802b7e0: fa02 f606 lsl.w r6, r2, r6
  105630. 802b7e4: 421e tst r6, r3
  105631. 802b7e6: d13a bne.n 802b85e <__gethex+0x3fe>
  105632. 802b7e8: f045 0520 orr.w r5, r5, #32
  105633. 802b7ec: 9b0e ldr r3, [sp, #56] @ 0x38
  105634. 802b7ee: 601c str r4, [r3, #0]
  105635. 802b7f0: 9b02 ldr r3, [sp, #8]
  105636. 802b7f2: 601f str r7, [r3, #0]
  105637. 802b7f4: e6b0 b.n 802b558 <__gethex+0xf8>
  105638. 802b7f6: 4299 cmp r1, r3
  105639. 802b7f8: f843 cc04 str.w ip, [r3, #-4]
  105640. 802b7fc: d8d9 bhi.n 802b7b2 <__gethex+0x352>
  105641. 802b7fe: 68a3 ldr r3, [r4, #8]
  105642. 802b800: 459b cmp fp, r3
  105643. 802b802: db17 blt.n 802b834 <__gethex+0x3d4>
  105644. 802b804: 6861 ldr r1, [r4, #4]
  105645. 802b806: 9801 ldr r0, [sp, #4]
  105646. 802b808: 3101 adds r1, #1
  105647. 802b80a: f000 f90d bl 802ba28 <_Balloc>
  105648. 802b80e: 4681 mov r9, r0
  105649. 802b810: b918 cbnz r0, 802b81a <__gethex+0x3ba>
  105650. 802b812: 4b1a ldr r3, [pc, #104] @ (802b87c <__gethex+0x41c>)
  105651. 802b814: 4602 mov r2, r0
  105652. 802b816: 2184 movs r1, #132 @ 0x84
  105653. 802b818: e6c5 b.n 802b5a6 <__gethex+0x146>
  105654. 802b81a: 6922 ldr r2, [r4, #16]
  105655. 802b81c: 3202 adds r2, #2
  105656. 802b81e: f104 010c add.w r1, r4, #12
  105657. 802b822: 0092 lsls r2, r2, #2
  105658. 802b824: 300c adds r0, #12
  105659. 802b826: f7fe ff52 bl 802a6ce <memcpy>
  105660. 802b82a: 4621 mov r1, r4
  105661. 802b82c: 9801 ldr r0, [sp, #4]
  105662. 802b82e: f000 f93b bl 802baa8 <_Bfree>
  105663. 802b832: 464c mov r4, r9
  105664. 802b834: 6923 ldr r3, [r4, #16]
  105665. 802b836: 1c5a adds r2, r3, #1
  105666. 802b838: eb04 0383 add.w r3, r4, r3, lsl #2
  105667. 802b83c: 6122 str r2, [r4, #16]
  105668. 802b83e: 2201 movs r2, #1
  105669. 802b840: 615a str r2, [r3, #20]
  105670. 802b842: e7be b.n 802b7c2 <__gethex+0x362>
  105671. 802b844: 6922 ldr r2, [r4, #16]
  105672. 802b846: 455a cmp r2, fp
  105673. 802b848: dd0b ble.n 802b862 <__gethex+0x402>
  105674. 802b84a: 2101 movs r1, #1
  105675. 802b84c: 4620 mov r0, r4
  105676. 802b84e: f7ff fd9f bl 802b390 <rshift>
  105677. 802b852: f8d8 3008 ldr.w r3, [r8, #8]
  105678. 802b856: 3701 adds r7, #1
  105679. 802b858: 42bb cmp r3, r7
  105680. 802b85a: f6ff aee0 blt.w 802b61e <__gethex+0x1be>
  105681. 802b85e: 2501 movs r5, #1
  105682. 802b860: e7c2 b.n 802b7e8 <__gethex+0x388>
  105683. 802b862: f016 061f ands.w r6, r6, #31
  105684. 802b866: d0fa beq.n 802b85e <__gethex+0x3fe>
  105685. 802b868: 4453 add r3, sl
  105686. 802b86a: f1c6 0620 rsb r6, r6, #32
  105687. 802b86e: f853 0c04 ldr.w r0, [r3, #-4]
  105688. 802b872: f000 f9cb bl 802bc0c <__hi0bits>
  105689. 802b876: 42b0 cmp r0, r6
  105690. 802b878: dbe7 blt.n 802b84a <__gethex+0x3ea>
  105691. 802b87a: e7f0 b.n 802b85e <__gethex+0x3fe>
  105692. 802b87c: 080317ae .word 0x080317ae
  105693. 0802b880 <L_shift>:
  105694. 802b880: f1c2 0208 rsb r2, r2, #8
  105695. 802b884: 0092 lsls r2, r2, #2
  105696. 802b886: b570 push {r4, r5, r6, lr}
  105697. 802b888: f1c2 0620 rsb r6, r2, #32
  105698. 802b88c: 6843 ldr r3, [r0, #4]
  105699. 802b88e: 6804 ldr r4, [r0, #0]
  105700. 802b890: fa03 f506 lsl.w r5, r3, r6
  105701. 802b894: 432c orrs r4, r5
  105702. 802b896: 40d3 lsrs r3, r2
  105703. 802b898: 6004 str r4, [r0, #0]
  105704. 802b89a: f840 3f04 str.w r3, [r0, #4]!
  105705. 802b89e: 4288 cmp r0, r1
  105706. 802b8a0: d3f4 bcc.n 802b88c <L_shift+0xc>
  105707. 802b8a2: bd70 pop {r4, r5, r6, pc}
  105708. 0802b8a4 <__match>:
  105709. 802b8a4: b530 push {r4, r5, lr}
  105710. 802b8a6: 6803 ldr r3, [r0, #0]
  105711. 802b8a8: 3301 adds r3, #1
  105712. 802b8aa: f811 4b01 ldrb.w r4, [r1], #1
  105713. 802b8ae: b914 cbnz r4, 802b8b6 <__match+0x12>
  105714. 802b8b0: 6003 str r3, [r0, #0]
  105715. 802b8b2: 2001 movs r0, #1
  105716. 802b8b4: bd30 pop {r4, r5, pc}
  105717. 802b8b6: f813 2b01 ldrb.w r2, [r3], #1
  105718. 802b8ba: f1a2 0541 sub.w r5, r2, #65 @ 0x41
  105719. 802b8be: 2d19 cmp r5, #25
  105720. 802b8c0: bf98 it ls
  105721. 802b8c2: 3220 addls r2, #32
  105722. 802b8c4: 42a2 cmp r2, r4
  105723. 802b8c6: d0f0 beq.n 802b8aa <__match+0x6>
  105724. 802b8c8: 2000 movs r0, #0
  105725. 802b8ca: e7f3 b.n 802b8b4 <__match+0x10>
  105726. 0802b8cc <__hexnan>:
  105727. 802b8cc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  105728. 802b8d0: 680b ldr r3, [r1, #0]
  105729. 802b8d2: 6801 ldr r1, [r0, #0]
  105730. 802b8d4: 115e asrs r6, r3, #5
  105731. 802b8d6: eb02 0686 add.w r6, r2, r6, lsl #2
  105732. 802b8da: f013 031f ands.w r3, r3, #31
  105733. 802b8de: b087 sub sp, #28
  105734. 802b8e0: bf18 it ne
  105735. 802b8e2: 3604 addne r6, #4
  105736. 802b8e4: 2500 movs r5, #0
  105737. 802b8e6: 1f37 subs r7, r6, #4
  105738. 802b8e8: 4682 mov sl, r0
  105739. 802b8ea: 4690 mov r8, r2
  105740. 802b8ec: 9301 str r3, [sp, #4]
  105741. 802b8ee: f846 5c04 str.w r5, [r6, #-4]
  105742. 802b8f2: 46b9 mov r9, r7
  105743. 802b8f4: 463c mov r4, r7
  105744. 802b8f6: 9502 str r5, [sp, #8]
  105745. 802b8f8: 46ab mov fp, r5
  105746. 802b8fa: 784a ldrb r2, [r1, #1]
  105747. 802b8fc: 1c4b adds r3, r1, #1
  105748. 802b8fe: 9303 str r3, [sp, #12]
  105749. 802b900: b342 cbz r2, 802b954 <__hexnan+0x88>
  105750. 802b902: 4610 mov r0, r2
  105751. 802b904: 9105 str r1, [sp, #20]
  105752. 802b906: 9204 str r2, [sp, #16]
  105753. 802b908: f7ff fd94 bl 802b434 <__hexdig_fun>
  105754. 802b90c: 2800 cmp r0, #0
  105755. 802b90e: d151 bne.n 802b9b4 <__hexnan+0xe8>
  105756. 802b910: 9a04 ldr r2, [sp, #16]
  105757. 802b912: 9905 ldr r1, [sp, #20]
  105758. 802b914: 2a20 cmp r2, #32
  105759. 802b916: d818 bhi.n 802b94a <__hexnan+0x7e>
  105760. 802b918: 9b02 ldr r3, [sp, #8]
  105761. 802b91a: 459b cmp fp, r3
  105762. 802b91c: dd13 ble.n 802b946 <__hexnan+0x7a>
  105763. 802b91e: 454c cmp r4, r9
  105764. 802b920: d206 bcs.n 802b930 <__hexnan+0x64>
  105765. 802b922: 2d07 cmp r5, #7
  105766. 802b924: dc04 bgt.n 802b930 <__hexnan+0x64>
  105767. 802b926: 462a mov r2, r5
  105768. 802b928: 4649 mov r1, r9
  105769. 802b92a: 4620 mov r0, r4
  105770. 802b92c: f7ff ffa8 bl 802b880 <L_shift>
  105771. 802b930: 4544 cmp r4, r8
  105772. 802b932: d952 bls.n 802b9da <__hexnan+0x10e>
  105773. 802b934: 2300 movs r3, #0
  105774. 802b936: f1a4 0904 sub.w r9, r4, #4
  105775. 802b93a: f844 3c04 str.w r3, [r4, #-4]
  105776. 802b93e: f8cd b008 str.w fp, [sp, #8]
  105777. 802b942: 464c mov r4, r9
  105778. 802b944: 461d mov r5, r3
  105779. 802b946: 9903 ldr r1, [sp, #12]
  105780. 802b948: e7d7 b.n 802b8fa <__hexnan+0x2e>
  105781. 802b94a: 2a29 cmp r2, #41 @ 0x29
  105782. 802b94c: d157 bne.n 802b9fe <__hexnan+0x132>
  105783. 802b94e: 3102 adds r1, #2
  105784. 802b950: f8ca 1000 str.w r1, [sl]
  105785. 802b954: f1bb 0f00 cmp.w fp, #0
  105786. 802b958: d051 beq.n 802b9fe <__hexnan+0x132>
  105787. 802b95a: 454c cmp r4, r9
  105788. 802b95c: d206 bcs.n 802b96c <__hexnan+0xa0>
  105789. 802b95e: 2d07 cmp r5, #7
  105790. 802b960: dc04 bgt.n 802b96c <__hexnan+0xa0>
  105791. 802b962: 462a mov r2, r5
  105792. 802b964: 4649 mov r1, r9
  105793. 802b966: 4620 mov r0, r4
  105794. 802b968: f7ff ff8a bl 802b880 <L_shift>
  105795. 802b96c: 4544 cmp r4, r8
  105796. 802b96e: d936 bls.n 802b9de <__hexnan+0x112>
  105797. 802b970: f1a8 0204 sub.w r2, r8, #4
  105798. 802b974: 4623 mov r3, r4
  105799. 802b976: f853 1b04 ldr.w r1, [r3], #4
  105800. 802b97a: f842 1f04 str.w r1, [r2, #4]!
  105801. 802b97e: 429f cmp r7, r3
  105802. 802b980: d2f9 bcs.n 802b976 <__hexnan+0xaa>
  105803. 802b982: 1b3b subs r3, r7, r4
  105804. 802b984: f023 0303 bic.w r3, r3, #3
  105805. 802b988: 3304 adds r3, #4
  105806. 802b98a: 3401 adds r4, #1
  105807. 802b98c: 3e03 subs r6, #3
  105808. 802b98e: 42b4 cmp r4, r6
  105809. 802b990: bf88 it hi
  105810. 802b992: 2304 movhi r3, #4
  105811. 802b994: 4443 add r3, r8
  105812. 802b996: 2200 movs r2, #0
  105813. 802b998: f843 2b04 str.w r2, [r3], #4
  105814. 802b99c: 429f cmp r7, r3
  105815. 802b99e: d2fb bcs.n 802b998 <__hexnan+0xcc>
  105816. 802b9a0: 683b ldr r3, [r7, #0]
  105817. 802b9a2: b91b cbnz r3, 802b9ac <__hexnan+0xe0>
  105818. 802b9a4: 4547 cmp r7, r8
  105819. 802b9a6: d128 bne.n 802b9fa <__hexnan+0x12e>
  105820. 802b9a8: 2301 movs r3, #1
  105821. 802b9aa: 603b str r3, [r7, #0]
  105822. 802b9ac: 2005 movs r0, #5
  105823. 802b9ae: b007 add sp, #28
  105824. 802b9b0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  105825. 802b9b4: 3501 adds r5, #1
  105826. 802b9b6: 2d08 cmp r5, #8
  105827. 802b9b8: f10b 0b01 add.w fp, fp, #1
  105828. 802b9bc: dd06 ble.n 802b9cc <__hexnan+0x100>
  105829. 802b9be: 4544 cmp r4, r8
  105830. 802b9c0: d9c1 bls.n 802b946 <__hexnan+0x7a>
  105831. 802b9c2: 2300 movs r3, #0
  105832. 802b9c4: f844 3c04 str.w r3, [r4, #-4]
  105833. 802b9c8: 2501 movs r5, #1
  105834. 802b9ca: 3c04 subs r4, #4
  105835. 802b9cc: 6822 ldr r2, [r4, #0]
  105836. 802b9ce: f000 000f and.w r0, r0, #15
  105837. 802b9d2: ea40 1002 orr.w r0, r0, r2, lsl #4
  105838. 802b9d6: 6020 str r0, [r4, #0]
  105839. 802b9d8: e7b5 b.n 802b946 <__hexnan+0x7a>
  105840. 802b9da: 2508 movs r5, #8
  105841. 802b9dc: e7b3 b.n 802b946 <__hexnan+0x7a>
  105842. 802b9de: 9b01 ldr r3, [sp, #4]
  105843. 802b9e0: 2b00 cmp r3, #0
  105844. 802b9e2: d0dd beq.n 802b9a0 <__hexnan+0xd4>
  105845. 802b9e4: f1c3 0320 rsb r3, r3, #32
  105846. 802b9e8: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  105847. 802b9ec: 40da lsrs r2, r3
  105848. 802b9ee: f856 3c04 ldr.w r3, [r6, #-4]
  105849. 802b9f2: 4013 ands r3, r2
  105850. 802b9f4: f846 3c04 str.w r3, [r6, #-4]
  105851. 802b9f8: e7d2 b.n 802b9a0 <__hexnan+0xd4>
  105852. 802b9fa: 3f04 subs r7, #4
  105853. 802b9fc: e7d0 b.n 802b9a0 <__hexnan+0xd4>
  105854. 802b9fe: 2004 movs r0, #4
  105855. 802ba00: e7d5 b.n 802b9ae <__hexnan+0xe2>
  105856. 0802ba02 <__ascii_mbtowc>:
  105857. 802ba02: b082 sub sp, #8
  105858. 802ba04: b901 cbnz r1, 802ba08 <__ascii_mbtowc+0x6>
  105859. 802ba06: a901 add r1, sp, #4
  105860. 802ba08: b142 cbz r2, 802ba1c <__ascii_mbtowc+0x1a>
  105861. 802ba0a: b14b cbz r3, 802ba20 <__ascii_mbtowc+0x1e>
  105862. 802ba0c: 7813 ldrb r3, [r2, #0]
  105863. 802ba0e: 600b str r3, [r1, #0]
  105864. 802ba10: 7812 ldrb r2, [r2, #0]
  105865. 802ba12: 1e10 subs r0, r2, #0
  105866. 802ba14: bf18 it ne
  105867. 802ba16: 2001 movne r0, #1
  105868. 802ba18: b002 add sp, #8
  105869. 802ba1a: 4770 bx lr
  105870. 802ba1c: 4610 mov r0, r2
  105871. 802ba1e: e7fb b.n 802ba18 <__ascii_mbtowc+0x16>
  105872. 802ba20: f06f 0001 mvn.w r0, #1
  105873. 802ba24: e7f8 b.n 802ba18 <__ascii_mbtowc+0x16>
  105874. ...
  105875. 0802ba28 <_Balloc>:
  105876. 802ba28: b570 push {r4, r5, r6, lr}
  105877. 802ba2a: 69c6 ldr r6, [r0, #28]
  105878. 802ba2c: 4604 mov r4, r0
  105879. 802ba2e: 460d mov r5, r1
  105880. 802ba30: b976 cbnz r6, 802ba50 <_Balloc+0x28>
  105881. 802ba32: 2010 movs r0, #16
  105882. 802ba34: f7fc ffda bl 80289ec <malloc>
  105883. 802ba38: 4602 mov r2, r0
  105884. 802ba3a: 61e0 str r0, [r4, #28]
  105885. 802ba3c: b920 cbnz r0, 802ba48 <_Balloc+0x20>
  105886. 802ba3e: 4b18 ldr r3, [pc, #96] @ (802baa0 <_Balloc+0x78>)
  105887. 802ba40: 4818 ldr r0, [pc, #96] @ (802baa4 <_Balloc+0x7c>)
  105888. 802ba42: 216b movs r1, #107 @ 0x6b
  105889. 802ba44: f7fe fe5c bl 802a700 <__assert_func>
  105890. 802ba48: e9c0 6601 strd r6, r6, [r0, #4]
  105891. 802ba4c: 6006 str r6, [r0, #0]
  105892. 802ba4e: 60c6 str r6, [r0, #12]
  105893. 802ba50: 69e6 ldr r6, [r4, #28]
  105894. 802ba52: 68f3 ldr r3, [r6, #12]
  105895. 802ba54: b183 cbz r3, 802ba78 <_Balloc+0x50>
  105896. 802ba56: 69e3 ldr r3, [r4, #28]
  105897. 802ba58: 68db ldr r3, [r3, #12]
  105898. 802ba5a: f853 0025 ldr.w r0, [r3, r5, lsl #2]
  105899. 802ba5e: b9b8 cbnz r0, 802ba90 <_Balloc+0x68>
  105900. 802ba60: 2101 movs r1, #1
  105901. 802ba62: fa01 f605 lsl.w r6, r1, r5
  105902. 802ba66: 1d72 adds r2, r6, #5
  105903. 802ba68: 0092 lsls r2, r2, #2
  105904. 802ba6a: 4620 mov r0, r4
  105905. 802ba6c: f001 f883 bl 802cb76 <_calloc_r>
  105906. 802ba70: b160 cbz r0, 802ba8c <_Balloc+0x64>
  105907. 802ba72: e9c0 5601 strd r5, r6, [r0, #4]
  105908. 802ba76: e00e b.n 802ba96 <_Balloc+0x6e>
  105909. 802ba78: 2221 movs r2, #33 @ 0x21
  105910. 802ba7a: 2104 movs r1, #4
  105911. 802ba7c: 4620 mov r0, r4
  105912. 802ba7e: f001 f87a bl 802cb76 <_calloc_r>
  105913. 802ba82: 69e3 ldr r3, [r4, #28]
  105914. 802ba84: 60f0 str r0, [r6, #12]
  105915. 802ba86: 68db ldr r3, [r3, #12]
  105916. 802ba88: 2b00 cmp r3, #0
  105917. 802ba8a: d1e4 bne.n 802ba56 <_Balloc+0x2e>
  105918. 802ba8c: 2000 movs r0, #0
  105919. 802ba8e: bd70 pop {r4, r5, r6, pc}
  105920. 802ba90: 6802 ldr r2, [r0, #0]
  105921. 802ba92: f843 2025 str.w r2, [r3, r5, lsl #2]
  105922. 802ba96: 2300 movs r3, #0
  105923. 802ba98: e9c0 3303 strd r3, r3, [r0, #12]
  105924. 802ba9c: e7f7 b.n 802ba8e <_Balloc+0x66>
  105925. 802ba9e: bf00 nop
  105926. 802baa0: 0803150a .word 0x0803150a
  105927. 802baa4: 0803181f .word 0x0803181f
  105928. 0802baa8 <_Bfree>:
  105929. 802baa8: b570 push {r4, r5, r6, lr}
  105930. 802baaa: 69c6 ldr r6, [r0, #28]
  105931. 802baac: 4605 mov r5, r0
  105932. 802baae: 460c mov r4, r1
  105933. 802bab0: b976 cbnz r6, 802bad0 <_Bfree+0x28>
  105934. 802bab2: 2010 movs r0, #16
  105935. 802bab4: f7fc ff9a bl 80289ec <malloc>
  105936. 802bab8: 4602 mov r2, r0
  105937. 802baba: 61e8 str r0, [r5, #28]
  105938. 802babc: b920 cbnz r0, 802bac8 <_Bfree+0x20>
  105939. 802babe: 4b09 ldr r3, [pc, #36] @ (802bae4 <_Bfree+0x3c>)
  105940. 802bac0: 4809 ldr r0, [pc, #36] @ (802bae8 <_Bfree+0x40>)
  105941. 802bac2: 218f movs r1, #143 @ 0x8f
  105942. 802bac4: f7fe fe1c bl 802a700 <__assert_func>
  105943. 802bac8: e9c0 6601 strd r6, r6, [r0, #4]
  105944. 802bacc: 6006 str r6, [r0, #0]
  105945. 802bace: 60c6 str r6, [r0, #12]
  105946. 802bad0: b13c cbz r4, 802bae2 <_Bfree+0x3a>
  105947. 802bad2: 69eb ldr r3, [r5, #28]
  105948. 802bad4: 6862 ldr r2, [r4, #4]
  105949. 802bad6: 68db ldr r3, [r3, #12]
  105950. 802bad8: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  105951. 802badc: 6021 str r1, [r4, #0]
  105952. 802bade: f843 4022 str.w r4, [r3, r2, lsl #2]
  105953. 802bae2: bd70 pop {r4, r5, r6, pc}
  105954. 802bae4: 0803150a .word 0x0803150a
  105955. 802bae8: 0803181f .word 0x0803181f
  105956. 0802baec <__multadd>:
  105957. 802baec: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  105958. 802baf0: 690d ldr r5, [r1, #16]
  105959. 802baf2: 4607 mov r7, r0
  105960. 802baf4: 460c mov r4, r1
  105961. 802baf6: 461e mov r6, r3
  105962. 802baf8: f101 0c14 add.w ip, r1, #20
  105963. 802bafc: 2000 movs r0, #0
  105964. 802bafe: f8dc 3000 ldr.w r3, [ip]
  105965. 802bb02: b299 uxth r1, r3
  105966. 802bb04: fb02 6101 mla r1, r2, r1, r6
  105967. 802bb08: 0c1e lsrs r6, r3, #16
  105968. 802bb0a: 0c0b lsrs r3, r1, #16
  105969. 802bb0c: fb02 3306 mla r3, r2, r6, r3
  105970. 802bb10: b289 uxth r1, r1
  105971. 802bb12: 3001 adds r0, #1
  105972. 802bb14: eb01 4103 add.w r1, r1, r3, lsl #16
  105973. 802bb18: 4285 cmp r5, r0
  105974. 802bb1a: f84c 1b04 str.w r1, [ip], #4
  105975. 802bb1e: ea4f 4613 mov.w r6, r3, lsr #16
  105976. 802bb22: dcec bgt.n 802bafe <__multadd+0x12>
  105977. 802bb24: b30e cbz r6, 802bb6a <__multadd+0x7e>
  105978. 802bb26: 68a3 ldr r3, [r4, #8]
  105979. 802bb28: 42ab cmp r3, r5
  105980. 802bb2a: dc19 bgt.n 802bb60 <__multadd+0x74>
  105981. 802bb2c: 6861 ldr r1, [r4, #4]
  105982. 802bb2e: 4638 mov r0, r7
  105983. 802bb30: 3101 adds r1, #1
  105984. 802bb32: f7ff ff79 bl 802ba28 <_Balloc>
  105985. 802bb36: 4680 mov r8, r0
  105986. 802bb38: b928 cbnz r0, 802bb46 <__multadd+0x5a>
  105987. 802bb3a: 4602 mov r2, r0
  105988. 802bb3c: 4b0c ldr r3, [pc, #48] @ (802bb70 <__multadd+0x84>)
  105989. 802bb3e: 480d ldr r0, [pc, #52] @ (802bb74 <__multadd+0x88>)
  105990. 802bb40: 21ba movs r1, #186 @ 0xba
  105991. 802bb42: f7fe fddd bl 802a700 <__assert_func>
  105992. 802bb46: 6922 ldr r2, [r4, #16]
  105993. 802bb48: 3202 adds r2, #2
  105994. 802bb4a: f104 010c add.w r1, r4, #12
  105995. 802bb4e: 0092 lsls r2, r2, #2
  105996. 802bb50: 300c adds r0, #12
  105997. 802bb52: f7fe fdbc bl 802a6ce <memcpy>
  105998. 802bb56: 4621 mov r1, r4
  105999. 802bb58: 4638 mov r0, r7
  106000. 802bb5a: f7ff ffa5 bl 802baa8 <_Bfree>
  106001. 802bb5e: 4644 mov r4, r8
  106002. 802bb60: eb04 0385 add.w r3, r4, r5, lsl #2
  106003. 802bb64: 3501 adds r5, #1
  106004. 802bb66: 615e str r6, [r3, #20]
  106005. 802bb68: 6125 str r5, [r4, #16]
  106006. 802bb6a: 4620 mov r0, r4
  106007. 802bb6c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  106008. 802bb70: 080317ae .word 0x080317ae
  106009. 802bb74: 0803181f .word 0x0803181f
  106010. 0802bb78 <__s2b>:
  106011. 802bb78: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  106012. 802bb7c: 460c mov r4, r1
  106013. 802bb7e: 4615 mov r5, r2
  106014. 802bb80: 461f mov r7, r3
  106015. 802bb82: 2209 movs r2, #9
  106016. 802bb84: 3308 adds r3, #8
  106017. 802bb86: 4606 mov r6, r0
  106018. 802bb88: fb93 f3f2 sdiv r3, r3, r2
  106019. 802bb8c: 2100 movs r1, #0
  106020. 802bb8e: 2201 movs r2, #1
  106021. 802bb90: 429a cmp r2, r3
  106022. 802bb92: db09 blt.n 802bba8 <__s2b+0x30>
  106023. 802bb94: 4630 mov r0, r6
  106024. 802bb96: f7ff ff47 bl 802ba28 <_Balloc>
  106025. 802bb9a: b940 cbnz r0, 802bbae <__s2b+0x36>
  106026. 802bb9c: 4602 mov r2, r0
  106027. 802bb9e: 4b19 ldr r3, [pc, #100] @ (802bc04 <__s2b+0x8c>)
  106028. 802bba0: 4819 ldr r0, [pc, #100] @ (802bc08 <__s2b+0x90>)
  106029. 802bba2: 21d3 movs r1, #211 @ 0xd3
  106030. 802bba4: f7fe fdac bl 802a700 <__assert_func>
  106031. 802bba8: 0052 lsls r2, r2, #1
  106032. 802bbaa: 3101 adds r1, #1
  106033. 802bbac: e7f0 b.n 802bb90 <__s2b+0x18>
  106034. 802bbae: 9b08 ldr r3, [sp, #32]
  106035. 802bbb0: 6143 str r3, [r0, #20]
  106036. 802bbb2: 2d09 cmp r5, #9
  106037. 802bbb4: f04f 0301 mov.w r3, #1
  106038. 802bbb8: 6103 str r3, [r0, #16]
  106039. 802bbba: dd16 ble.n 802bbea <__s2b+0x72>
  106040. 802bbbc: f104 0909 add.w r9, r4, #9
  106041. 802bbc0: 46c8 mov r8, r9
  106042. 802bbc2: 442c add r4, r5
  106043. 802bbc4: f818 3b01 ldrb.w r3, [r8], #1
  106044. 802bbc8: 4601 mov r1, r0
  106045. 802bbca: 3b30 subs r3, #48 @ 0x30
  106046. 802bbcc: 220a movs r2, #10
  106047. 802bbce: 4630 mov r0, r6
  106048. 802bbd0: f7ff ff8c bl 802baec <__multadd>
  106049. 802bbd4: 45a0 cmp r8, r4
  106050. 802bbd6: d1f5 bne.n 802bbc4 <__s2b+0x4c>
  106051. 802bbd8: f1a5 0408 sub.w r4, r5, #8
  106052. 802bbdc: 444c add r4, r9
  106053. 802bbde: 1b2d subs r5, r5, r4
  106054. 802bbe0: 1963 adds r3, r4, r5
  106055. 802bbe2: 42bb cmp r3, r7
  106056. 802bbe4: db04 blt.n 802bbf0 <__s2b+0x78>
  106057. 802bbe6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  106058. 802bbea: 340a adds r4, #10
  106059. 802bbec: 2509 movs r5, #9
  106060. 802bbee: e7f6 b.n 802bbde <__s2b+0x66>
  106061. 802bbf0: f814 3b01 ldrb.w r3, [r4], #1
  106062. 802bbf4: 4601 mov r1, r0
  106063. 802bbf6: 3b30 subs r3, #48 @ 0x30
  106064. 802bbf8: 220a movs r2, #10
  106065. 802bbfa: 4630 mov r0, r6
  106066. 802bbfc: f7ff ff76 bl 802baec <__multadd>
  106067. 802bc00: e7ee b.n 802bbe0 <__s2b+0x68>
  106068. 802bc02: bf00 nop
  106069. 802bc04: 080317ae .word 0x080317ae
  106070. 802bc08: 0803181f .word 0x0803181f
  106071. 0802bc0c <__hi0bits>:
  106072. 802bc0c: f5b0 3f80 cmp.w r0, #65536 @ 0x10000
  106073. 802bc10: 4603 mov r3, r0
  106074. 802bc12: bf36 itet cc
  106075. 802bc14: 0403 lslcc r3, r0, #16
  106076. 802bc16: 2000 movcs r0, #0
  106077. 802bc18: 2010 movcc r0, #16
  106078. 802bc1a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  106079. 802bc1e: bf3c itt cc
  106080. 802bc20: 021b lslcc r3, r3, #8
  106081. 802bc22: 3008 addcc r0, #8
  106082. 802bc24: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  106083. 802bc28: bf3c itt cc
  106084. 802bc2a: 011b lslcc r3, r3, #4
  106085. 802bc2c: 3004 addcc r0, #4
  106086. 802bc2e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  106087. 802bc32: bf3c itt cc
  106088. 802bc34: 009b lslcc r3, r3, #2
  106089. 802bc36: 3002 addcc r0, #2
  106090. 802bc38: 2b00 cmp r3, #0
  106091. 802bc3a: db05 blt.n 802bc48 <__hi0bits+0x3c>
  106092. 802bc3c: f013 4f80 tst.w r3, #1073741824 @ 0x40000000
  106093. 802bc40: f100 0001 add.w r0, r0, #1
  106094. 802bc44: bf08 it eq
  106095. 802bc46: 2020 moveq r0, #32
  106096. 802bc48: 4770 bx lr
  106097. 0802bc4a <__lo0bits>:
  106098. 802bc4a: 6803 ldr r3, [r0, #0]
  106099. 802bc4c: 4602 mov r2, r0
  106100. 802bc4e: f013 0007 ands.w r0, r3, #7
  106101. 802bc52: d00b beq.n 802bc6c <__lo0bits+0x22>
  106102. 802bc54: 07d9 lsls r1, r3, #31
  106103. 802bc56: d421 bmi.n 802bc9c <__lo0bits+0x52>
  106104. 802bc58: 0798 lsls r0, r3, #30
  106105. 802bc5a: bf49 itett mi
  106106. 802bc5c: 085b lsrmi r3, r3, #1
  106107. 802bc5e: 089b lsrpl r3, r3, #2
  106108. 802bc60: 2001 movmi r0, #1
  106109. 802bc62: 6013 strmi r3, [r2, #0]
  106110. 802bc64: bf5c itt pl
  106111. 802bc66: 6013 strpl r3, [r2, #0]
  106112. 802bc68: 2002 movpl r0, #2
  106113. 802bc6a: 4770 bx lr
  106114. 802bc6c: b299 uxth r1, r3
  106115. 802bc6e: b909 cbnz r1, 802bc74 <__lo0bits+0x2a>
  106116. 802bc70: 0c1b lsrs r3, r3, #16
  106117. 802bc72: 2010 movs r0, #16
  106118. 802bc74: b2d9 uxtb r1, r3
  106119. 802bc76: b909 cbnz r1, 802bc7c <__lo0bits+0x32>
  106120. 802bc78: 3008 adds r0, #8
  106121. 802bc7a: 0a1b lsrs r3, r3, #8
  106122. 802bc7c: 0719 lsls r1, r3, #28
  106123. 802bc7e: bf04 itt eq
  106124. 802bc80: 091b lsreq r3, r3, #4
  106125. 802bc82: 3004 addeq r0, #4
  106126. 802bc84: 0799 lsls r1, r3, #30
  106127. 802bc86: bf04 itt eq
  106128. 802bc88: 089b lsreq r3, r3, #2
  106129. 802bc8a: 3002 addeq r0, #2
  106130. 802bc8c: 07d9 lsls r1, r3, #31
  106131. 802bc8e: d403 bmi.n 802bc98 <__lo0bits+0x4e>
  106132. 802bc90: 085b lsrs r3, r3, #1
  106133. 802bc92: f100 0001 add.w r0, r0, #1
  106134. 802bc96: d003 beq.n 802bca0 <__lo0bits+0x56>
  106135. 802bc98: 6013 str r3, [r2, #0]
  106136. 802bc9a: 4770 bx lr
  106137. 802bc9c: 2000 movs r0, #0
  106138. 802bc9e: 4770 bx lr
  106139. 802bca0: 2020 movs r0, #32
  106140. 802bca2: 4770 bx lr
  106141. 0802bca4 <__i2b>:
  106142. 802bca4: b510 push {r4, lr}
  106143. 802bca6: 460c mov r4, r1
  106144. 802bca8: 2101 movs r1, #1
  106145. 802bcaa: f7ff febd bl 802ba28 <_Balloc>
  106146. 802bcae: 4602 mov r2, r0
  106147. 802bcb0: b928 cbnz r0, 802bcbe <__i2b+0x1a>
  106148. 802bcb2: 4b05 ldr r3, [pc, #20] @ (802bcc8 <__i2b+0x24>)
  106149. 802bcb4: 4805 ldr r0, [pc, #20] @ (802bccc <__i2b+0x28>)
  106150. 802bcb6: f240 1145 movw r1, #325 @ 0x145
  106151. 802bcba: f7fe fd21 bl 802a700 <__assert_func>
  106152. 802bcbe: 2301 movs r3, #1
  106153. 802bcc0: 6144 str r4, [r0, #20]
  106154. 802bcc2: 6103 str r3, [r0, #16]
  106155. 802bcc4: bd10 pop {r4, pc}
  106156. 802bcc6: bf00 nop
  106157. 802bcc8: 080317ae .word 0x080317ae
  106158. 802bccc: 0803181f .word 0x0803181f
  106159. 0802bcd0 <__multiply>:
  106160. 802bcd0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  106161. 802bcd4: 4614 mov r4, r2
  106162. 802bcd6: 690a ldr r2, [r1, #16]
  106163. 802bcd8: 6923 ldr r3, [r4, #16]
  106164. 802bcda: 429a cmp r2, r3
  106165. 802bcdc: bfa8 it ge
  106166. 802bcde: 4623 movge r3, r4
  106167. 802bce0: 460f mov r7, r1
  106168. 802bce2: bfa4 itt ge
  106169. 802bce4: 460c movge r4, r1
  106170. 802bce6: 461f movge r7, r3
  106171. 802bce8: f8d4 a010 ldr.w sl, [r4, #16]
  106172. 802bcec: f8d7 9010 ldr.w r9, [r7, #16]
  106173. 802bcf0: 68a3 ldr r3, [r4, #8]
  106174. 802bcf2: 6861 ldr r1, [r4, #4]
  106175. 802bcf4: eb0a 0609 add.w r6, sl, r9
  106176. 802bcf8: 42b3 cmp r3, r6
  106177. 802bcfa: b085 sub sp, #20
  106178. 802bcfc: bfb8 it lt
  106179. 802bcfe: 3101 addlt r1, #1
  106180. 802bd00: f7ff fe92 bl 802ba28 <_Balloc>
  106181. 802bd04: b930 cbnz r0, 802bd14 <__multiply+0x44>
  106182. 802bd06: 4602 mov r2, r0
  106183. 802bd08: 4b44 ldr r3, [pc, #272] @ (802be1c <__multiply+0x14c>)
  106184. 802bd0a: 4845 ldr r0, [pc, #276] @ (802be20 <__multiply+0x150>)
  106185. 802bd0c: f44f 71b1 mov.w r1, #354 @ 0x162
  106186. 802bd10: f7fe fcf6 bl 802a700 <__assert_func>
  106187. 802bd14: f100 0514 add.w r5, r0, #20
  106188. 802bd18: eb05 0886 add.w r8, r5, r6, lsl #2
  106189. 802bd1c: 462b mov r3, r5
  106190. 802bd1e: 2200 movs r2, #0
  106191. 802bd20: 4543 cmp r3, r8
  106192. 802bd22: d321 bcc.n 802bd68 <__multiply+0x98>
  106193. 802bd24: f107 0114 add.w r1, r7, #20
  106194. 802bd28: f104 0214 add.w r2, r4, #20
  106195. 802bd2c: eb02 028a add.w r2, r2, sl, lsl #2
  106196. 802bd30: eb01 0389 add.w r3, r1, r9, lsl #2
  106197. 802bd34: 9302 str r3, [sp, #8]
  106198. 802bd36: 1b13 subs r3, r2, r4
  106199. 802bd38: 3b15 subs r3, #21
  106200. 802bd3a: f023 0303 bic.w r3, r3, #3
  106201. 802bd3e: 3304 adds r3, #4
  106202. 802bd40: f104 0715 add.w r7, r4, #21
  106203. 802bd44: 42ba cmp r2, r7
  106204. 802bd46: bf38 it cc
  106205. 802bd48: 2304 movcc r3, #4
  106206. 802bd4a: 9301 str r3, [sp, #4]
  106207. 802bd4c: 9b02 ldr r3, [sp, #8]
  106208. 802bd4e: 9103 str r1, [sp, #12]
  106209. 802bd50: 428b cmp r3, r1
  106210. 802bd52: d80c bhi.n 802bd6e <__multiply+0x9e>
  106211. 802bd54: 2e00 cmp r6, #0
  106212. 802bd56: dd03 ble.n 802bd60 <__multiply+0x90>
  106213. 802bd58: f858 3d04 ldr.w r3, [r8, #-4]!
  106214. 802bd5c: 2b00 cmp r3, #0
  106215. 802bd5e: d05b beq.n 802be18 <__multiply+0x148>
  106216. 802bd60: 6106 str r6, [r0, #16]
  106217. 802bd62: b005 add sp, #20
  106218. 802bd64: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  106219. 802bd68: f843 2b04 str.w r2, [r3], #4
  106220. 802bd6c: e7d8 b.n 802bd20 <__multiply+0x50>
  106221. 802bd6e: f8b1 a000 ldrh.w sl, [r1]
  106222. 802bd72: f1ba 0f00 cmp.w sl, #0
  106223. 802bd76: d024 beq.n 802bdc2 <__multiply+0xf2>
  106224. 802bd78: f104 0e14 add.w lr, r4, #20
  106225. 802bd7c: 46a9 mov r9, r5
  106226. 802bd7e: f04f 0c00 mov.w ip, #0
  106227. 802bd82: f85e 7b04 ldr.w r7, [lr], #4
  106228. 802bd86: f8d9 3000 ldr.w r3, [r9]
  106229. 802bd8a: fa1f fb87 uxth.w fp, r7
  106230. 802bd8e: b29b uxth r3, r3
  106231. 802bd90: fb0a 330b mla r3, sl, fp, r3
  106232. 802bd94: ea4f 4b17 mov.w fp, r7, lsr #16
  106233. 802bd98: f8d9 7000 ldr.w r7, [r9]
  106234. 802bd9c: 4463 add r3, ip
  106235. 802bd9e: ea4f 4c17 mov.w ip, r7, lsr #16
  106236. 802bda2: fb0a c70b mla r7, sl, fp, ip
  106237. 802bda6: eb07 4713 add.w r7, r7, r3, lsr #16
  106238. 802bdaa: b29b uxth r3, r3
  106239. 802bdac: ea43 4307 orr.w r3, r3, r7, lsl #16
  106240. 802bdb0: 4572 cmp r2, lr
  106241. 802bdb2: f849 3b04 str.w r3, [r9], #4
  106242. 802bdb6: ea4f 4c17 mov.w ip, r7, lsr #16
  106243. 802bdba: d8e2 bhi.n 802bd82 <__multiply+0xb2>
  106244. 802bdbc: 9b01 ldr r3, [sp, #4]
  106245. 802bdbe: f845 c003 str.w ip, [r5, r3]
  106246. 802bdc2: 9b03 ldr r3, [sp, #12]
  106247. 802bdc4: f8b3 9002 ldrh.w r9, [r3, #2]
  106248. 802bdc8: 3104 adds r1, #4
  106249. 802bdca: f1b9 0f00 cmp.w r9, #0
  106250. 802bdce: d021 beq.n 802be14 <__multiply+0x144>
  106251. 802bdd0: 682b ldr r3, [r5, #0]
  106252. 802bdd2: f104 0c14 add.w ip, r4, #20
  106253. 802bdd6: 46ae mov lr, r5
  106254. 802bdd8: f04f 0a00 mov.w sl, #0
  106255. 802bddc: f8bc b000 ldrh.w fp, [ip]
  106256. 802bde0: f8be 7002 ldrh.w r7, [lr, #2]
  106257. 802bde4: fb09 770b mla r7, r9, fp, r7
  106258. 802bde8: 4457 add r7, sl
  106259. 802bdea: b29b uxth r3, r3
  106260. 802bdec: ea43 4307 orr.w r3, r3, r7, lsl #16
  106261. 802bdf0: f84e 3b04 str.w r3, [lr], #4
  106262. 802bdf4: f85c 3b04 ldr.w r3, [ip], #4
  106263. 802bdf8: ea4f 4a13 mov.w sl, r3, lsr #16
  106264. 802bdfc: f8be 3000 ldrh.w r3, [lr]
  106265. 802be00: fb09 330a mla r3, r9, sl, r3
  106266. 802be04: eb03 4317 add.w r3, r3, r7, lsr #16
  106267. 802be08: 4562 cmp r2, ip
  106268. 802be0a: ea4f 4a13 mov.w sl, r3, lsr #16
  106269. 802be0e: d8e5 bhi.n 802bddc <__multiply+0x10c>
  106270. 802be10: 9f01 ldr r7, [sp, #4]
  106271. 802be12: 51eb str r3, [r5, r7]
  106272. 802be14: 3504 adds r5, #4
  106273. 802be16: e799 b.n 802bd4c <__multiply+0x7c>
  106274. 802be18: 3e01 subs r6, #1
  106275. 802be1a: e79b b.n 802bd54 <__multiply+0x84>
  106276. 802be1c: 080317ae .word 0x080317ae
  106277. 802be20: 0803181f .word 0x0803181f
  106278. 0802be24 <__pow5mult>:
  106279. 802be24: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  106280. 802be28: 4615 mov r5, r2
  106281. 802be2a: f012 0203 ands.w r2, r2, #3
  106282. 802be2e: 4607 mov r7, r0
  106283. 802be30: 460e mov r6, r1
  106284. 802be32: d007 beq.n 802be44 <__pow5mult+0x20>
  106285. 802be34: 4c25 ldr r4, [pc, #148] @ (802becc <__pow5mult+0xa8>)
  106286. 802be36: 3a01 subs r2, #1
  106287. 802be38: 2300 movs r3, #0
  106288. 802be3a: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  106289. 802be3e: f7ff fe55 bl 802baec <__multadd>
  106290. 802be42: 4606 mov r6, r0
  106291. 802be44: 10ad asrs r5, r5, #2
  106292. 802be46: d03d beq.n 802bec4 <__pow5mult+0xa0>
  106293. 802be48: 69fc ldr r4, [r7, #28]
  106294. 802be4a: b97c cbnz r4, 802be6c <__pow5mult+0x48>
  106295. 802be4c: 2010 movs r0, #16
  106296. 802be4e: f7fc fdcd bl 80289ec <malloc>
  106297. 802be52: 4602 mov r2, r0
  106298. 802be54: 61f8 str r0, [r7, #28]
  106299. 802be56: b928 cbnz r0, 802be64 <__pow5mult+0x40>
  106300. 802be58: 4b1d ldr r3, [pc, #116] @ (802bed0 <__pow5mult+0xac>)
  106301. 802be5a: 481e ldr r0, [pc, #120] @ (802bed4 <__pow5mult+0xb0>)
  106302. 802be5c: f240 11b3 movw r1, #435 @ 0x1b3
  106303. 802be60: f7fe fc4e bl 802a700 <__assert_func>
  106304. 802be64: e9c0 4401 strd r4, r4, [r0, #4]
  106305. 802be68: 6004 str r4, [r0, #0]
  106306. 802be6a: 60c4 str r4, [r0, #12]
  106307. 802be6c: f8d7 801c ldr.w r8, [r7, #28]
  106308. 802be70: f8d8 4008 ldr.w r4, [r8, #8]
  106309. 802be74: b94c cbnz r4, 802be8a <__pow5mult+0x66>
  106310. 802be76: f240 2171 movw r1, #625 @ 0x271
  106311. 802be7a: 4638 mov r0, r7
  106312. 802be7c: f7ff ff12 bl 802bca4 <__i2b>
  106313. 802be80: 2300 movs r3, #0
  106314. 802be82: f8c8 0008 str.w r0, [r8, #8]
  106315. 802be86: 4604 mov r4, r0
  106316. 802be88: 6003 str r3, [r0, #0]
  106317. 802be8a: f04f 0900 mov.w r9, #0
  106318. 802be8e: 07eb lsls r3, r5, #31
  106319. 802be90: d50a bpl.n 802bea8 <__pow5mult+0x84>
  106320. 802be92: 4631 mov r1, r6
  106321. 802be94: 4622 mov r2, r4
  106322. 802be96: 4638 mov r0, r7
  106323. 802be98: f7ff ff1a bl 802bcd0 <__multiply>
  106324. 802be9c: 4631 mov r1, r6
  106325. 802be9e: 4680 mov r8, r0
  106326. 802bea0: 4638 mov r0, r7
  106327. 802bea2: f7ff fe01 bl 802baa8 <_Bfree>
  106328. 802bea6: 4646 mov r6, r8
  106329. 802bea8: 106d asrs r5, r5, #1
  106330. 802beaa: d00b beq.n 802bec4 <__pow5mult+0xa0>
  106331. 802beac: 6820 ldr r0, [r4, #0]
  106332. 802beae: b938 cbnz r0, 802bec0 <__pow5mult+0x9c>
  106333. 802beb0: 4622 mov r2, r4
  106334. 802beb2: 4621 mov r1, r4
  106335. 802beb4: 4638 mov r0, r7
  106336. 802beb6: f7ff ff0b bl 802bcd0 <__multiply>
  106337. 802beba: 6020 str r0, [r4, #0]
  106338. 802bebc: f8c0 9000 str.w r9, [r0]
  106339. 802bec0: 4604 mov r4, r0
  106340. 802bec2: e7e4 b.n 802be8e <__pow5mult+0x6a>
  106341. 802bec4: 4630 mov r0, r6
  106342. 802bec6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  106343. 802beca: bf00 nop
  106344. 802becc: 08031878 .word 0x08031878
  106345. 802bed0: 0803150a .word 0x0803150a
  106346. 802bed4: 0803181f .word 0x0803181f
  106347. 0802bed8 <__lshift>:
  106348. 802bed8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  106349. 802bedc: 460c mov r4, r1
  106350. 802bede: 6849 ldr r1, [r1, #4]
  106351. 802bee0: 6923 ldr r3, [r4, #16]
  106352. 802bee2: eb03 1862 add.w r8, r3, r2, asr #5
  106353. 802bee6: 68a3 ldr r3, [r4, #8]
  106354. 802bee8: 4607 mov r7, r0
  106355. 802beea: 4691 mov r9, r2
  106356. 802beec: ea4f 1a62 mov.w sl, r2, asr #5
  106357. 802bef0: f108 0601 add.w r6, r8, #1
  106358. 802bef4: 42b3 cmp r3, r6
  106359. 802bef6: db0b blt.n 802bf10 <__lshift+0x38>
  106360. 802bef8: 4638 mov r0, r7
  106361. 802befa: f7ff fd95 bl 802ba28 <_Balloc>
  106362. 802befe: 4605 mov r5, r0
  106363. 802bf00: b948 cbnz r0, 802bf16 <__lshift+0x3e>
  106364. 802bf02: 4602 mov r2, r0
  106365. 802bf04: 4b28 ldr r3, [pc, #160] @ (802bfa8 <__lshift+0xd0>)
  106366. 802bf06: 4829 ldr r0, [pc, #164] @ (802bfac <__lshift+0xd4>)
  106367. 802bf08: f44f 71ef mov.w r1, #478 @ 0x1de
  106368. 802bf0c: f7fe fbf8 bl 802a700 <__assert_func>
  106369. 802bf10: 3101 adds r1, #1
  106370. 802bf12: 005b lsls r3, r3, #1
  106371. 802bf14: e7ee b.n 802bef4 <__lshift+0x1c>
  106372. 802bf16: 2300 movs r3, #0
  106373. 802bf18: f100 0114 add.w r1, r0, #20
  106374. 802bf1c: f100 0210 add.w r2, r0, #16
  106375. 802bf20: 4618 mov r0, r3
  106376. 802bf22: 4553 cmp r3, sl
  106377. 802bf24: db33 blt.n 802bf8e <__lshift+0xb6>
  106378. 802bf26: 6920 ldr r0, [r4, #16]
  106379. 802bf28: ea2a 7aea bic.w sl, sl, sl, asr #31
  106380. 802bf2c: f104 0314 add.w r3, r4, #20
  106381. 802bf30: f019 091f ands.w r9, r9, #31
  106382. 802bf34: eb01 018a add.w r1, r1, sl, lsl #2
  106383. 802bf38: eb03 0c80 add.w ip, r3, r0, lsl #2
  106384. 802bf3c: d02b beq.n 802bf96 <__lshift+0xbe>
  106385. 802bf3e: f1c9 0e20 rsb lr, r9, #32
  106386. 802bf42: 468a mov sl, r1
  106387. 802bf44: 2200 movs r2, #0
  106388. 802bf46: 6818 ldr r0, [r3, #0]
  106389. 802bf48: fa00 f009 lsl.w r0, r0, r9
  106390. 802bf4c: 4310 orrs r0, r2
  106391. 802bf4e: f84a 0b04 str.w r0, [sl], #4
  106392. 802bf52: f853 2b04 ldr.w r2, [r3], #4
  106393. 802bf56: 459c cmp ip, r3
  106394. 802bf58: fa22 f20e lsr.w r2, r2, lr
  106395. 802bf5c: d8f3 bhi.n 802bf46 <__lshift+0x6e>
  106396. 802bf5e: ebac 0304 sub.w r3, ip, r4
  106397. 802bf62: 3b15 subs r3, #21
  106398. 802bf64: f023 0303 bic.w r3, r3, #3
  106399. 802bf68: 3304 adds r3, #4
  106400. 802bf6a: f104 0015 add.w r0, r4, #21
  106401. 802bf6e: 4584 cmp ip, r0
  106402. 802bf70: bf38 it cc
  106403. 802bf72: 2304 movcc r3, #4
  106404. 802bf74: 50ca str r2, [r1, r3]
  106405. 802bf76: b10a cbz r2, 802bf7c <__lshift+0xa4>
  106406. 802bf78: f108 0602 add.w r6, r8, #2
  106407. 802bf7c: 3e01 subs r6, #1
  106408. 802bf7e: 4638 mov r0, r7
  106409. 802bf80: 612e str r6, [r5, #16]
  106410. 802bf82: 4621 mov r1, r4
  106411. 802bf84: f7ff fd90 bl 802baa8 <_Bfree>
  106412. 802bf88: 4628 mov r0, r5
  106413. 802bf8a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  106414. 802bf8e: f842 0f04 str.w r0, [r2, #4]!
  106415. 802bf92: 3301 adds r3, #1
  106416. 802bf94: e7c5 b.n 802bf22 <__lshift+0x4a>
  106417. 802bf96: 3904 subs r1, #4
  106418. 802bf98: f853 2b04 ldr.w r2, [r3], #4
  106419. 802bf9c: f841 2f04 str.w r2, [r1, #4]!
  106420. 802bfa0: 459c cmp ip, r3
  106421. 802bfa2: d8f9 bhi.n 802bf98 <__lshift+0xc0>
  106422. 802bfa4: e7ea b.n 802bf7c <__lshift+0xa4>
  106423. 802bfa6: bf00 nop
  106424. 802bfa8: 080317ae .word 0x080317ae
  106425. 802bfac: 0803181f .word 0x0803181f
  106426. 0802bfb0 <__mcmp>:
  106427. 802bfb0: 690a ldr r2, [r1, #16]
  106428. 802bfb2: 4603 mov r3, r0
  106429. 802bfb4: 6900 ldr r0, [r0, #16]
  106430. 802bfb6: 1a80 subs r0, r0, r2
  106431. 802bfb8: b530 push {r4, r5, lr}
  106432. 802bfba: d10e bne.n 802bfda <__mcmp+0x2a>
  106433. 802bfbc: 3314 adds r3, #20
  106434. 802bfbe: 3114 adds r1, #20
  106435. 802bfc0: eb03 0482 add.w r4, r3, r2, lsl #2
  106436. 802bfc4: eb01 0182 add.w r1, r1, r2, lsl #2
  106437. 802bfc8: f854 5d04 ldr.w r5, [r4, #-4]!
  106438. 802bfcc: f851 2d04 ldr.w r2, [r1, #-4]!
  106439. 802bfd0: 4295 cmp r5, r2
  106440. 802bfd2: d003 beq.n 802bfdc <__mcmp+0x2c>
  106441. 802bfd4: d205 bcs.n 802bfe2 <__mcmp+0x32>
  106442. 802bfd6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  106443. 802bfda: bd30 pop {r4, r5, pc}
  106444. 802bfdc: 42a3 cmp r3, r4
  106445. 802bfde: d3f3 bcc.n 802bfc8 <__mcmp+0x18>
  106446. 802bfe0: e7fb b.n 802bfda <__mcmp+0x2a>
  106447. 802bfe2: 2001 movs r0, #1
  106448. 802bfe4: e7f9 b.n 802bfda <__mcmp+0x2a>
  106449. ...
  106450. 0802bfe8 <__mdiff>:
  106451. 802bfe8: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  106452. 802bfec: 4689 mov r9, r1
  106453. 802bfee: 4606 mov r6, r0
  106454. 802bff0: 4611 mov r1, r2
  106455. 802bff2: 4648 mov r0, r9
  106456. 802bff4: 4614 mov r4, r2
  106457. 802bff6: f7ff ffdb bl 802bfb0 <__mcmp>
  106458. 802bffa: 1e05 subs r5, r0, #0
  106459. 802bffc: d112 bne.n 802c024 <__mdiff+0x3c>
  106460. 802bffe: 4629 mov r1, r5
  106461. 802c000: 4630 mov r0, r6
  106462. 802c002: f7ff fd11 bl 802ba28 <_Balloc>
  106463. 802c006: 4602 mov r2, r0
  106464. 802c008: b928 cbnz r0, 802c016 <__mdiff+0x2e>
  106465. 802c00a: 4b3f ldr r3, [pc, #252] @ (802c108 <__mdiff+0x120>)
  106466. 802c00c: f240 2137 movw r1, #567 @ 0x237
  106467. 802c010: 483e ldr r0, [pc, #248] @ (802c10c <__mdiff+0x124>)
  106468. 802c012: f7fe fb75 bl 802a700 <__assert_func>
  106469. 802c016: 2301 movs r3, #1
  106470. 802c018: e9c0 3504 strd r3, r5, [r0, #16]
  106471. 802c01c: 4610 mov r0, r2
  106472. 802c01e: b003 add sp, #12
  106473. 802c020: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  106474. 802c024: bfbc itt lt
  106475. 802c026: 464b movlt r3, r9
  106476. 802c028: 46a1 movlt r9, r4
  106477. 802c02a: 4630 mov r0, r6
  106478. 802c02c: f8d9 1004 ldr.w r1, [r9, #4]
  106479. 802c030: bfba itte lt
  106480. 802c032: 461c movlt r4, r3
  106481. 802c034: 2501 movlt r5, #1
  106482. 802c036: 2500 movge r5, #0
  106483. 802c038: f7ff fcf6 bl 802ba28 <_Balloc>
  106484. 802c03c: 4602 mov r2, r0
  106485. 802c03e: b918 cbnz r0, 802c048 <__mdiff+0x60>
  106486. 802c040: 4b31 ldr r3, [pc, #196] @ (802c108 <__mdiff+0x120>)
  106487. 802c042: f240 2145 movw r1, #581 @ 0x245
  106488. 802c046: e7e3 b.n 802c010 <__mdiff+0x28>
  106489. 802c048: f8d9 7010 ldr.w r7, [r9, #16]
  106490. 802c04c: 6926 ldr r6, [r4, #16]
  106491. 802c04e: 60c5 str r5, [r0, #12]
  106492. 802c050: f109 0310 add.w r3, r9, #16
  106493. 802c054: f109 0514 add.w r5, r9, #20
  106494. 802c058: f104 0e14 add.w lr, r4, #20
  106495. 802c05c: f100 0b14 add.w fp, r0, #20
  106496. 802c060: eb05 0887 add.w r8, r5, r7, lsl #2
  106497. 802c064: eb0e 0686 add.w r6, lr, r6, lsl #2
  106498. 802c068: 9301 str r3, [sp, #4]
  106499. 802c06a: 46d9 mov r9, fp
  106500. 802c06c: f04f 0c00 mov.w ip, #0
  106501. 802c070: 9b01 ldr r3, [sp, #4]
  106502. 802c072: f85e 0b04 ldr.w r0, [lr], #4
  106503. 802c076: f853 af04 ldr.w sl, [r3, #4]!
  106504. 802c07a: 9301 str r3, [sp, #4]
  106505. 802c07c: fa1f f38a uxth.w r3, sl
  106506. 802c080: 4619 mov r1, r3
  106507. 802c082: b283 uxth r3, r0
  106508. 802c084: 1acb subs r3, r1, r3
  106509. 802c086: 0c00 lsrs r0, r0, #16
  106510. 802c088: 4463 add r3, ip
  106511. 802c08a: ebc0 401a rsb r0, r0, sl, lsr #16
  106512. 802c08e: eb00 4023 add.w r0, r0, r3, asr #16
  106513. 802c092: b29b uxth r3, r3
  106514. 802c094: ea43 4300 orr.w r3, r3, r0, lsl #16
  106515. 802c098: 4576 cmp r6, lr
  106516. 802c09a: f849 3b04 str.w r3, [r9], #4
  106517. 802c09e: ea4f 4c20 mov.w ip, r0, asr #16
  106518. 802c0a2: d8e5 bhi.n 802c070 <__mdiff+0x88>
  106519. 802c0a4: 1b33 subs r3, r6, r4
  106520. 802c0a6: 3b15 subs r3, #21
  106521. 802c0a8: f023 0303 bic.w r3, r3, #3
  106522. 802c0ac: 3415 adds r4, #21
  106523. 802c0ae: 3304 adds r3, #4
  106524. 802c0b0: 42a6 cmp r6, r4
  106525. 802c0b2: bf38 it cc
  106526. 802c0b4: 2304 movcc r3, #4
  106527. 802c0b6: 441d add r5, r3
  106528. 802c0b8: 445b add r3, fp
  106529. 802c0ba: 461e mov r6, r3
  106530. 802c0bc: 462c mov r4, r5
  106531. 802c0be: 4544 cmp r4, r8
  106532. 802c0c0: d30e bcc.n 802c0e0 <__mdiff+0xf8>
  106533. 802c0c2: f108 0103 add.w r1, r8, #3
  106534. 802c0c6: 1b49 subs r1, r1, r5
  106535. 802c0c8: f021 0103 bic.w r1, r1, #3
  106536. 802c0cc: 3d03 subs r5, #3
  106537. 802c0ce: 45a8 cmp r8, r5
  106538. 802c0d0: bf38 it cc
  106539. 802c0d2: 2100 movcc r1, #0
  106540. 802c0d4: 440b add r3, r1
  106541. 802c0d6: f853 1d04 ldr.w r1, [r3, #-4]!
  106542. 802c0da: b191 cbz r1, 802c102 <__mdiff+0x11a>
  106543. 802c0dc: 6117 str r7, [r2, #16]
  106544. 802c0de: e79d b.n 802c01c <__mdiff+0x34>
  106545. 802c0e0: f854 1b04 ldr.w r1, [r4], #4
  106546. 802c0e4: 46e6 mov lr, ip
  106547. 802c0e6: 0c08 lsrs r0, r1, #16
  106548. 802c0e8: fa1c fc81 uxtah ip, ip, r1
  106549. 802c0ec: 4471 add r1, lr
  106550. 802c0ee: eb00 402c add.w r0, r0, ip, asr #16
  106551. 802c0f2: b289 uxth r1, r1
  106552. 802c0f4: ea41 4100 orr.w r1, r1, r0, lsl #16
  106553. 802c0f8: f846 1b04 str.w r1, [r6], #4
  106554. 802c0fc: ea4f 4c20 mov.w ip, r0, asr #16
  106555. 802c100: e7dd b.n 802c0be <__mdiff+0xd6>
  106556. 802c102: 3f01 subs r7, #1
  106557. 802c104: e7e7 b.n 802c0d6 <__mdiff+0xee>
  106558. 802c106: bf00 nop
  106559. 802c108: 080317ae .word 0x080317ae
  106560. 802c10c: 0803181f .word 0x0803181f
  106561. 0802c110 <__ulp>:
  106562. 802c110: b082 sub sp, #8
  106563. 802c112: ed8d 0b00 vstr d0, [sp]
  106564. 802c116: 9a01 ldr r2, [sp, #4]
  106565. 802c118: 4b0f ldr r3, [pc, #60] @ (802c158 <__ulp+0x48>)
  106566. 802c11a: 4013 ands r3, r2
  106567. 802c11c: f1a3 7350 sub.w r3, r3, #54525952 @ 0x3400000
  106568. 802c120: 2b00 cmp r3, #0
  106569. 802c122: dc08 bgt.n 802c136 <__ulp+0x26>
  106570. 802c124: 425b negs r3, r3
  106571. 802c126: f1b3 7fa0 cmp.w r3, #20971520 @ 0x1400000
  106572. 802c12a: ea4f 5223 mov.w r2, r3, asr #20
  106573. 802c12e: da04 bge.n 802c13a <__ulp+0x2a>
  106574. 802c130: f44f 2300 mov.w r3, #524288 @ 0x80000
  106575. 802c134: 4113 asrs r3, r2
  106576. 802c136: 2200 movs r2, #0
  106577. 802c138: e008 b.n 802c14c <__ulp+0x3c>
  106578. 802c13a: f1a2 0314 sub.w r3, r2, #20
  106579. 802c13e: 2b1e cmp r3, #30
  106580. 802c140: bfda itte le
  106581. 802c142: f04f 4200 movle.w r2, #2147483648 @ 0x80000000
  106582. 802c146: 40da lsrle r2, r3
  106583. 802c148: 2201 movgt r2, #1
  106584. 802c14a: 2300 movs r3, #0
  106585. 802c14c: 4619 mov r1, r3
  106586. 802c14e: 4610 mov r0, r2
  106587. 802c150: ec41 0b10 vmov d0, r0, r1
  106588. 802c154: b002 add sp, #8
  106589. 802c156: 4770 bx lr
  106590. 802c158: 7ff00000 .word 0x7ff00000
  106591. 0802c15c <__b2d>:
  106592. 802c15c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  106593. 802c160: 6906 ldr r6, [r0, #16]
  106594. 802c162: f100 0814 add.w r8, r0, #20
  106595. 802c166: eb08 0686 add.w r6, r8, r6, lsl #2
  106596. 802c16a: 1f37 subs r7, r6, #4
  106597. 802c16c: f856 2c04 ldr.w r2, [r6, #-4]
  106598. 802c170: 4610 mov r0, r2
  106599. 802c172: f7ff fd4b bl 802bc0c <__hi0bits>
  106600. 802c176: f1c0 0320 rsb r3, r0, #32
  106601. 802c17a: 280a cmp r0, #10
  106602. 802c17c: 600b str r3, [r1, #0]
  106603. 802c17e: 491b ldr r1, [pc, #108] @ (802c1ec <__b2d+0x90>)
  106604. 802c180: dc15 bgt.n 802c1ae <__b2d+0x52>
  106605. 802c182: f1c0 0c0b rsb ip, r0, #11
  106606. 802c186: fa22 f30c lsr.w r3, r2, ip
  106607. 802c18a: 45b8 cmp r8, r7
  106608. 802c18c: ea43 0501 orr.w r5, r3, r1
  106609. 802c190: bf34 ite cc
  106610. 802c192: f856 3c08 ldrcc.w r3, [r6, #-8]
  106611. 802c196: 2300 movcs r3, #0
  106612. 802c198: 3015 adds r0, #21
  106613. 802c19a: fa02 f000 lsl.w r0, r2, r0
  106614. 802c19e: fa23 f30c lsr.w r3, r3, ip
  106615. 802c1a2: 4303 orrs r3, r0
  106616. 802c1a4: 461c mov r4, r3
  106617. 802c1a6: ec45 4b10 vmov d0, r4, r5
  106618. 802c1aa: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  106619. 802c1ae: 45b8 cmp r8, r7
  106620. 802c1b0: bf3a itte cc
  106621. 802c1b2: f856 3c08 ldrcc.w r3, [r6, #-8]
  106622. 802c1b6: f1a6 0708 subcc.w r7, r6, #8
  106623. 802c1ba: 2300 movcs r3, #0
  106624. 802c1bc: 380b subs r0, #11
  106625. 802c1be: d012 beq.n 802c1e6 <__b2d+0x8a>
  106626. 802c1c0: f1c0 0120 rsb r1, r0, #32
  106627. 802c1c4: fa23 f401 lsr.w r4, r3, r1
  106628. 802c1c8: 4082 lsls r2, r0
  106629. 802c1ca: 4322 orrs r2, r4
  106630. 802c1cc: 4547 cmp r7, r8
  106631. 802c1ce: f042 557f orr.w r5, r2, #1069547520 @ 0x3fc00000
  106632. 802c1d2: bf8c ite hi
  106633. 802c1d4: f857 2c04 ldrhi.w r2, [r7, #-4]
  106634. 802c1d8: 2200 movls r2, #0
  106635. 802c1da: 4083 lsls r3, r0
  106636. 802c1dc: 40ca lsrs r2, r1
  106637. 802c1de: f445 1540 orr.w r5, r5, #3145728 @ 0x300000
  106638. 802c1e2: 4313 orrs r3, r2
  106639. 802c1e4: e7de b.n 802c1a4 <__b2d+0x48>
  106640. 802c1e6: ea42 0501 orr.w r5, r2, r1
  106641. 802c1ea: e7db b.n 802c1a4 <__b2d+0x48>
  106642. 802c1ec: 3ff00000 .word 0x3ff00000
  106643. 0802c1f0 <__d2b>:
  106644. 802c1f0: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  106645. 802c1f4: 460f mov r7, r1
  106646. 802c1f6: 2101 movs r1, #1
  106647. 802c1f8: ec59 8b10 vmov r8, r9, d0
  106648. 802c1fc: 4616 mov r6, r2
  106649. 802c1fe: f7ff fc13 bl 802ba28 <_Balloc>
  106650. 802c202: 4604 mov r4, r0
  106651. 802c204: b930 cbnz r0, 802c214 <__d2b+0x24>
  106652. 802c206: 4602 mov r2, r0
  106653. 802c208: 4b23 ldr r3, [pc, #140] @ (802c298 <__d2b+0xa8>)
  106654. 802c20a: 4824 ldr r0, [pc, #144] @ (802c29c <__d2b+0xac>)
  106655. 802c20c: f240 310f movw r1, #783 @ 0x30f
  106656. 802c210: f7fe fa76 bl 802a700 <__assert_func>
  106657. 802c214: f3c9 550a ubfx r5, r9, #20, #11
  106658. 802c218: f3c9 0313 ubfx r3, r9, #0, #20
  106659. 802c21c: b10d cbz r5, 802c222 <__d2b+0x32>
  106660. 802c21e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  106661. 802c222: 9301 str r3, [sp, #4]
  106662. 802c224: f1b8 0300 subs.w r3, r8, #0
  106663. 802c228: d023 beq.n 802c272 <__d2b+0x82>
  106664. 802c22a: 4668 mov r0, sp
  106665. 802c22c: 9300 str r3, [sp, #0]
  106666. 802c22e: f7ff fd0c bl 802bc4a <__lo0bits>
  106667. 802c232: e9dd 1200 ldrd r1, r2, [sp]
  106668. 802c236: b1d0 cbz r0, 802c26e <__d2b+0x7e>
  106669. 802c238: f1c0 0320 rsb r3, r0, #32
  106670. 802c23c: fa02 f303 lsl.w r3, r2, r3
  106671. 802c240: 430b orrs r3, r1
  106672. 802c242: 40c2 lsrs r2, r0
  106673. 802c244: 6163 str r3, [r4, #20]
  106674. 802c246: 9201 str r2, [sp, #4]
  106675. 802c248: 9b01 ldr r3, [sp, #4]
  106676. 802c24a: 61a3 str r3, [r4, #24]
  106677. 802c24c: 2b00 cmp r3, #0
  106678. 802c24e: bf0c ite eq
  106679. 802c250: 2201 moveq r2, #1
  106680. 802c252: 2202 movne r2, #2
  106681. 802c254: 6122 str r2, [r4, #16]
  106682. 802c256: b1a5 cbz r5, 802c282 <__d2b+0x92>
  106683. 802c258: f2a5 4533 subw r5, r5, #1075 @ 0x433
  106684. 802c25c: 4405 add r5, r0
  106685. 802c25e: 603d str r5, [r7, #0]
  106686. 802c260: f1c0 0035 rsb r0, r0, #53 @ 0x35
  106687. 802c264: 6030 str r0, [r6, #0]
  106688. 802c266: 4620 mov r0, r4
  106689. 802c268: b003 add sp, #12
  106690. 802c26a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  106691. 802c26e: 6161 str r1, [r4, #20]
  106692. 802c270: e7ea b.n 802c248 <__d2b+0x58>
  106693. 802c272: a801 add r0, sp, #4
  106694. 802c274: f7ff fce9 bl 802bc4a <__lo0bits>
  106695. 802c278: 9b01 ldr r3, [sp, #4]
  106696. 802c27a: 6163 str r3, [r4, #20]
  106697. 802c27c: 3020 adds r0, #32
  106698. 802c27e: 2201 movs r2, #1
  106699. 802c280: e7e8 b.n 802c254 <__d2b+0x64>
  106700. 802c282: eb04 0382 add.w r3, r4, r2, lsl #2
  106701. 802c286: f2a0 4032 subw r0, r0, #1074 @ 0x432
  106702. 802c28a: 6038 str r0, [r7, #0]
  106703. 802c28c: 6918 ldr r0, [r3, #16]
  106704. 802c28e: f7ff fcbd bl 802bc0c <__hi0bits>
  106705. 802c292: ebc0 1042 rsb r0, r0, r2, lsl #5
  106706. 802c296: e7e5 b.n 802c264 <__d2b+0x74>
  106707. 802c298: 080317ae .word 0x080317ae
  106708. 802c29c: 0803181f .word 0x0803181f
  106709. 0802c2a0 <__ratio>:
  106710. 802c2a0: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  106711. 802c2a4: 4688 mov r8, r1
  106712. 802c2a6: 4669 mov r1, sp
  106713. 802c2a8: 4681 mov r9, r0
  106714. 802c2aa: f7ff ff57 bl 802c15c <__b2d>
  106715. 802c2ae: a901 add r1, sp, #4
  106716. 802c2b0: 4640 mov r0, r8
  106717. 802c2b2: ec55 4b10 vmov r4, r5, d0
  106718. 802c2b6: f7ff ff51 bl 802c15c <__b2d>
  106719. 802c2ba: f8d8 3010 ldr.w r3, [r8, #16]
  106720. 802c2be: f8d9 2010 ldr.w r2, [r9, #16]
  106721. 802c2c2: 1ad2 subs r2, r2, r3
  106722. 802c2c4: e9dd 3100 ldrd r3, r1, [sp]
  106723. 802c2c8: 1a5b subs r3, r3, r1
  106724. 802c2ca: eb03 1342 add.w r3, r3, r2, lsl #5
  106725. 802c2ce: ec57 6b10 vmov r6, r7, d0
  106726. 802c2d2: 2b00 cmp r3, #0
  106727. 802c2d4: bfd6 itet le
  106728. 802c2d6: ebc3 3303 rsble r3, r3, r3, lsl #12
  106729. 802c2da: 462a movgt r2, r5
  106730. 802c2dc: 463a movle r2, r7
  106731. 802c2de: 46ab mov fp, r5
  106732. 802c2e0: 46a2 mov sl, r4
  106733. 802c2e2: bfce itee gt
  106734. 802c2e4: eb02 5b03 addgt.w fp, r2, r3, lsl #20
  106735. 802c2e8: eb02 5303 addle.w r3, r2, r3, lsl #20
  106736. 802c2ec: ee00 3a90 vmovle s1, r3
  106737. 802c2f0: ec4b ab17 vmov d7, sl, fp
  106738. 802c2f4: ee87 0b00 vdiv.f64 d0, d7, d0
  106739. 802c2f8: b003 add sp, #12
  106740. 802c2fa: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  106741. 0802c2fe <__copybits>:
  106742. 802c2fe: 3901 subs r1, #1
  106743. 802c300: b570 push {r4, r5, r6, lr}
  106744. 802c302: 1149 asrs r1, r1, #5
  106745. 802c304: 6914 ldr r4, [r2, #16]
  106746. 802c306: 3101 adds r1, #1
  106747. 802c308: f102 0314 add.w r3, r2, #20
  106748. 802c30c: eb00 0181 add.w r1, r0, r1, lsl #2
  106749. 802c310: eb03 0484 add.w r4, r3, r4, lsl #2
  106750. 802c314: 1f05 subs r5, r0, #4
  106751. 802c316: 42a3 cmp r3, r4
  106752. 802c318: d30c bcc.n 802c334 <__copybits+0x36>
  106753. 802c31a: 1aa3 subs r3, r4, r2
  106754. 802c31c: 3b11 subs r3, #17
  106755. 802c31e: f023 0303 bic.w r3, r3, #3
  106756. 802c322: 3211 adds r2, #17
  106757. 802c324: 42a2 cmp r2, r4
  106758. 802c326: bf88 it hi
  106759. 802c328: 2300 movhi r3, #0
  106760. 802c32a: 4418 add r0, r3
  106761. 802c32c: 2300 movs r3, #0
  106762. 802c32e: 4288 cmp r0, r1
  106763. 802c330: d305 bcc.n 802c33e <__copybits+0x40>
  106764. 802c332: bd70 pop {r4, r5, r6, pc}
  106765. 802c334: f853 6b04 ldr.w r6, [r3], #4
  106766. 802c338: f845 6f04 str.w r6, [r5, #4]!
  106767. 802c33c: e7eb b.n 802c316 <__copybits+0x18>
  106768. 802c33e: f840 3b04 str.w r3, [r0], #4
  106769. 802c342: e7f4 b.n 802c32e <__copybits+0x30>
  106770. 0802c344 <__any_on>:
  106771. 802c344: f100 0214 add.w r2, r0, #20
  106772. 802c348: 6900 ldr r0, [r0, #16]
  106773. 802c34a: 114b asrs r3, r1, #5
  106774. 802c34c: 4298 cmp r0, r3
  106775. 802c34e: b510 push {r4, lr}
  106776. 802c350: db11 blt.n 802c376 <__any_on+0x32>
  106777. 802c352: dd0a ble.n 802c36a <__any_on+0x26>
  106778. 802c354: f011 011f ands.w r1, r1, #31
  106779. 802c358: d007 beq.n 802c36a <__any_on+0x26>
  106780. 802c35a: f852 4023 ldr.w r4, [r2, r3, lsl #2]
  106781. 802c35e: fa24 f001 lsr.w r0, r4, r1
  106782. 802c362: fa00 f101 lsl.w r1, r0, r1
  106783. 802c366: 428c cmp r4, r1
  106784. 802c368: d10b bne.n 802c382 <__any_on+0x3e>
  106785. 802c36a: eb02 0383 add.w r3, r2, r3, lsl #2
  106786. 802c36e: 4293 cmp r3, r2
  106787. 802c370: d803 bhi.n 802c37a <__any_on+0x36>
  106788. 802c372: 2000 movs r0, #0
  106789. 802c374: bd10 pop {r4, pc}
  106790. 802c376: 4603 mov r3, r0
  106791. 802c378: e7f7 b.n 802c36a <__any_on+0x26>
  106792. 802c37a: f853 1d04 ldr.w r1, [r3, #-4]!
  106793. 802c37e: 2900 cmp r1, #0
  106794. 802c380: d0f5 beq.n 802c36e <__any_on+0x2a>
  106795. 802c382: 2001 movs r0, #1
  106796. 802c384: e7f6 b.n 802c374 <__any_on+0x30>
  106797. 0802c386 <_malloc_usable_size_r>:
  106798. 802c386: f851 3c04 ldr.w r3, [r1, #-4]
  106799. 802c38a: 1f18 subs r0, r3, #4
  106800. 802c38c: 2b00 cmp r3, #0
  106801. 802c38e: bfbc itt lt
  106802. 802c390: 580b ldrlt r3, [r1, r0]
  106803. 802c392: 18c0 addlt r0, r0, r3
  106804. 802c394: 4770 bx lr
  106805. 0802c396 <__ascii_wctomb>:
  106806. 802c396: 4603 mov r3, r0
  106807. 802c398: 4608 mov r0, r1
  106808. 802c39a: b141 cbz r1, 802c3ae <__ascii_wctomb+0x18>
  106809. 802c39c: 2aff cmp r2, #255 @ 0xff
  106810. 802c39e: d904 bls.n 802c3aa <__ascii_wctomb+0x14>
  106811. 802c3a0: 228a movs r2, #138 @ 0x8a
  106812. 802c3a2: 601a str r2, [r3, #0]
  106813. 802c3a4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  106814. 802c3a8: 4770 bx lr
  106815. 802c3aa: 700a strb r2, [r1, #0]
  106816. 802c3ac: 2001 movs r0, #1
  106817. 802c3ae: 4770 bx lr
  106818. 0802c3b0 <__ssputs_r>:
  106819. 802c3b0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  106820. 802c3b4: 688e ldr r6, [r1, #8]
  106821. 802c3b6: 461f mov r7, r3
  106822. 802c3b8: 42be cmp r6, r7
  106823. 802c3ba: 680b ldr r3, [r1, #0]
  106824. 802c3bc: 4682 mov sl, r0
  106825. 802c3be: 460c mov r4, r1
  106826. 802c3c0: 4690 mov r8, r2
  106827. 802c3c2: d82d bhi.n 802c420 <__ssputs_r+0x70>
  106828. 802c3c4: f9b1 200c ldrsh.w r2, [r1, #12]
  106829. 802c3c8: f412 6f90 tst.w r2, #1152 @ 0x480
  106830. 802c3cc: d026 beq.n 802c41c <__ssputs_r+0x6c>
  106831. 802c3ce: 6965 ldr r5, [r4, #20]
  106832. 802c3d0: 6909 ldr r1, [r1, #16]
  106833. 802c3d2: eb05 0545 add.w r5, r5, r5, lsl #1
  106834. 802c3d6: eba3 0901 sub.w r9, r3, r1
  106835. 802c3da: eb05 75d5 add.w r5, r5, r5, lsr #31
  106836. 802c3de: 1c7b adds r3, r7, #1
  106837. 802c3e0: 444b add r3, r9
  106838. 802c3e2: 106d asrs r5, r5, #1
  106839. 802c3e4: 429d cmp r5, r3
  106840. 802c3e6: bf38 it cc
  106841. 802c3e8: 461d movcc r5, r3
  106842. 802c3ea: 0553 lsls r3, r2, #21
  106843. 802c3ec: d527 bpl.n 802c43e <__ssputs_r+0x8e>
  106844. 802c3ee: 4629 mov r1, r5
  106845. 802c3f0: f7fc fb2e bl 8028a50 <_malloc_r>
  106846. 802c3f4: 4606 mov r6, r0
  106847. 802c3f6: b360 cbz r0, 802c452 <__ssputs_r+0xa2>
  106848. 802c3f8: 6921 ldr r1, [r4, #16]
  106849. 802c3fa: 464a mov r2, r9
  106850. 802c3fc: f7fe f967 bl 802a6ce <memcpy>
  106851. 802c400: 89a3 ldrh r3, [r4, #12]
  106852. 802c402: f423 6390 bic.w r3, r3, #1152 @ 0x480
  106853. 802c406: f043 0380 orr.w r3, r3, #128 @ 0x80
  106854. 802c40a: 81a3 strh r3, [r4, #12]
  106855. 802c40c: 6126 str r6, [r4, #16]
  106856. 802c40e: 6165 str r5, [r4, #20]
  106857. 802c410: 444e add r6, r9
  106858. 802c412: eba5 0509 sub.w r5, r5, r9
  106859. 802c416: 6026 str r6, [r4, #0]
  106860. 802c418: 60a5 str r5, [r4, #8]
  106861. 802c41a: 463e mov r6, r7
  106862. 802c41c: 42be cmp r6, r7
  106863. 802c41e: d900 bls.n 802c422 <__ssputs_r+0x72>
  106864. 802c420: 463e mov r6, r7
  106865. 802c422: 6820 ldr r0, [r4, #0]
  106866. 802c424: 4632 mov r2, r6
  106867. 802c426: 4641 mov r1, r8
  106868. 802c428: f7fe f840 bl 802a4ac <memmove>
  106869. 802c42c: 68a3 ldr r3, [r4, #8]
  106870. 802c42e: 1b9b subs r3, r3, r6
  106871. 802c430: 60a3 str r3, [r4, #8]
  106872. 802c432: 6823 ldr r3, [r4, #0]
  106873. 802c434: 4433 add r3, r6
  106874. 802c436: 6023 str r3, [r4, #0]
  106875. 802c438: 2000 movs r0, #0
  106876. 802c43a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  106877. 802c43e: 462a mov r2, r5
  106878. 802c440: f7fc fbd8 bl 8028bf4 <_realloc_r>
  106879. 802c444: 4606 mov r6, r0
  106880. 802c446: 2800 cmp r0, #0
  106881. 802c448: d1e0 bne.n 802c40c <__ssputs_r+0x5c>
  106882. 802c44a: 6921 ldr r1, [r4, #16]
  106883. 802c44c: 4650 mov r0, sl
  106884. 802c44e: f7fe ff55 bl 802b2fc <_free_r>
  106885. 802c452: 230c movs r3, #12
  106886. 802c454: f8ca 3000 str.w r3, [sl]
  106887. 802c458: 89a3 ldrh r3, [r4, #12]
  106888. 802c45a: f043 0340 orr.w r3, r3, #64 @ 0x40
  106889. 802c45e: 81a3 strh r3, [r4, #12]
  106890. 802c460: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  106891. 802c464: e7e9 b.n 802c43a <__ssputs_r+0x8a>
  106892. ...
  106893. 0802c468 <_svfiprintf_r>:
  106894. 802c468: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  106895. 802c46c: 4698 mov r8, r3
  106896. 802c46e: 898b ldrh r3, [r1, #12]
  106897. 802c470: 061b lsls r3, r3, #24
  106898. 802c472: b09d sub sp, #116 @ 0x74
  106899. 802c474: 4607 mov r7, r0
  106900. 802c476: 460d mov r5, r1
  106901. 802c478: 4614 mov r4, r2
  106902. 802c47a: d510 bpl.n 802c49e <_svfiprintf_r+0x36>
  106903. 802c47c: 690b ldr r3, [r1, #16]
  106904. 802c47e: b973 cbnz r3, 802c49e <_svfiprintf_r+0x36>
  106905. 802c480: 2140 movs r1, #64 @ 0x40
  106906. 802c482: f7fc fae5 bl 8028a50 <_malloc_r>
  106907. 802c486: 6028 str r0, [r5, #0]
  106908. 802c488: 6128 str r0, [r5, #16]
  106909. 802c48a: b930 cbnz r0, 802c49a <_svfiprintf_r+0x32>
  106910. 802c48c: 230c movs r3, #12
  106911. 802c48e: 603b str r3, [r7, #0]
  106912. 802c490: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  106913. 802c494: b01d add sp, #116 @ 0x74
  106914. 802c496: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  106915. 802c49a: 2340 movs r3, #64 @ 0x40
  106916. 802c49c: 616b str r3, [r5, #20]
  106917. 802c49e: 2300 movs r3, #0
  106918. 802c4a0: 9309 str r3, [sp, #36] @ 0x24
  106919. 802c4a2: 2320 movs r3, #32
  106920. 802c4a4: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  106921. 802c4a8: f8cd 800c str.w r8, [sp, #12]
  106922. 802c4ac: 2330 movs r3, #48 @ 0x30
  106923. 802c4ae: f8df 819c ldr.w r8, [pc, #412] @ 802c64c <_svfiprintf_r+0x1e4>
  106924. 802c4b2: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  106925. 802c4b6: f04f 0901 mov.w r9, #1
  106926. 802c4ba: 4623 mov r3, r4
  106927. 802c4bc: 469a mov sl, r3
  106928. 802c4be: f813 2b01 ldrb.w r2, [r3], #1
  106929. 802c4c2: b10a cbz r2, 802c4c8 <_svfiprintf_r+0x60>
  106930. 802c4c4: 2a25 cmp r2, #37 @ 0x25
  106931. 802c4c6: d1f9 bne.n 802c4bc <_svfiprintf_r+0x54>
  106932. 802c4c8: ebba 0b04 subs.w fp, sl, r4
  106933. 802c4cc: d00b beq.n 802c4e6 <_svfiprintf_r+0x7e>
  106934. 802c4ce: 465b mov r3, fp
  106935. 802c4d0: 4622 mov r2, r4
  106936. 802c4d2: 4629 mov r1, r5
  106937. 802c4d4: 4638 mov r0, r7
  106938. 802c4d6: f7ff ff6b bl 802c3b0 <__ssputs_r>
  106939. 802c4da: 3001 adds r0, #1
  106940. 802c4dc: f000 80a7 beq.w 802c62e <_svfiprintf_r+0x1c6>
  106941. 802c4e0: 9a09 ldr r2, [sp, #36] @ 0x24
  106942. 802c4e2: 445a add r2, fp
  106943. 802c4e4: 9209 str r2, [sp, #36] @ 0x24
  106944. 802c4e6: f89a 3000 ldrb.w r3, [sl]
  106945. 802c4ea: 2b00 cmp r3, #0
  106946. 802c4ec: f000 809f beq.w 802c62e <_svfiprintf_r+0x1c6>
  106947. 802c4f0: 2300 movs r3, #0
  106948. 802c4f2: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  106949. 802c4f6: e9cd 2305 strd r2, r3, [sp, #20]
  106950. 802c4fa: f10a 0a01 add.w sl, sl, #1
  106951. 802c4fe: 9304 str r3, [sp, #16]
  106952. 802c500: 9307 str r3, [sp, #28]
  106953. 802c502: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  106954. 802c506: 931a str r3, [sp, #104] @ 0x68
  106955. 802c508: 4654 mov r4, sl
  106956. 802c50a: 2205 movs r2, #5
  106957. 802c50c: f814 1b01 ldrb.w r1, [r4], #1
  106958. 802c510: 484e ldr r0, [pc, #312] @ (802c64c <_svfiprintf_r+0x1e4>)
  106959. 802c512: f7d3 fef5 bl 8000300 <memchr>
  106960. 802c516: 9a04 ldr r2, [sp, #16]
  106961. 802c518: b9d8 cbnz r0, 802c552 <_svfiprintf_r+0xea>
  106962. 802c51a: 06d0 lsls r0, r2, #27
  106963. 802c51c: bf44 itt mi
  106964. 802c51e: 2320 movmi r3, #32
  106965. 802c520: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  106966. 802c524: 0711 lsls r1, r2, #28
  106967. 802c526: bf44 itt mi
  106968. 802c528: 232b movmi r3, #43 @ 0x2b
  106969. 802c52a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  106970. 802c52e: f89a 3000 ldrb.w r3, [sl]
  106971. 802c532: 2b2a cmp r3, #42 @ 0x2a
  106972. 802c534: d015 beq.n 802c562 <_svfiprintf_r+0xfa>
  106973. 802c536: 9a07 ldr r2, [sp, #28]
  106974. 802c538: 4654 mov r4, sl
  106975. 802c53a: 2000 movs r0, #0
  106976. 802c53c: f04f 0c0a mov.w ip, #10
  106977. 802c540: 4621 mov r1, r4
  106978. 802c542: f811 3b01 ldrb.w r3, [r1], #1
  106979. 802c546: 3b30 subs r3, #48 @ 0x30
  106980. 802c548: 2b09 cmp r3, #9
  106981. 802c54a: d94b bls.n 802c5e4 <_svfiprintf_r+0x17c>
  106982. 802c54c: b1b0 cbz r0, 802c57c <_svfiprintf_r+0x114>
  106983. 802c54e: 9207 str r2, [sp, #28]
  106984. 802c550: e014 b.n 802c57c <_svfiprintf_r+0x114>
  106985. 802c552: eba0 0308 sub.w r3, r0, r8
  106986. 802c556: fa09 f303 lsl.w r3, r9, r3
  106987. 802c55a: 4313 orrs r3, r2
  106988. 802c55c: 9304 str r3, [sp, #16]
  106989. 802c55e: 46a2 mov sl, r4
  106990. 802c560: e7d2 b.n 802c508 <_svfiprintf_r+0xa0>
  106991. 802c562: 9b03 ldr r3, [sp, #12]
  106992. 802c564: 1d19 adds r1, r3, #4
  106993. 802c566: 681b ldr r3, [r3, #0]
  106994. 802c568: 9103 str r1, [sp, #12]
  106995. 802c56a: 2b00 cmp r3, #0
  106996. 802c56c: bfbb ittet lt
  106997. 802c56e: 425b neglt r3, r3
  106998. 802c570: f042 0202 orrlt.w r2, r2, #2
  106999. 802c574: 9307 strge r3, [sp, #28]
  107000. 802c576: 9307 strlt r3, [sp, #28]
  107001. 802c578: bfb8 it lt
  107002. 802c57a: 9204 strlt r2, [sp, #16]
  107003. 802c57c: 7823 ldrb r3, [r4, #0]
  107004. 802c57e: 2b2e cmp r3, #46 @ 0x2e
  107005. 802c580: d10a bne.n 802c598 <_svfiprintf_r+0x130>
  107006. 802c582: 7863 ldrb r3, [r4, #1]
  107007. 802c584: 2b2a cmp r3, #42 @ 0x2a
  107008. 802c586: d132 bne.n 802c5ee <_svfiprintf_r+0x186>
  107009. 802c588: 9b03 ldr r3, [sp, #12]
  107010. 802c58a: 1d1a adds r2, r3, #4
  107011. 802c58c: 681b ldr r3, [r3, #0]
  107012. 802c58e: 9203 str r2, [sp, #12]
  107013. 802c590: ea43 73e3 orr.w r3, r3, r3, asr #31
  107014. 802c594: 3402 adds r4, #2
  107015. 802c596: 9305 str r3, [sp, #20]
  107016. 802c598: f8df a0c0 ldr.w sl, [pc, #192] @ 802c65c <_svfiprintf_r+0x1f4>
  107017. 802c59c: 7821 ldrb r1, [r4, #0]
  107018. 802c59e: 2203 movs r2, #3
  107019. 802c5a0: 4650 mov r0, sl
  107020. 802c5a2: f7d3 fead bl 8000300 <memchr>
  107021. 802c5a6: b138 cbz r0, 802c5b8 <_svfiprintf_r+0x150>
  107022. 802c5a8: 9b04 ldr r3, [sp, #16]
  107023. 802c5aa: eba0 000a sub.w r0, r0, sl
  107024. 802c5ae: 2240 movs r2, #64 @ 0x40
  107025. 802c5b0: 4082 lsls r2, r0
  107026. 802c5b2: 4313 orrs r3, r2
  107027. 802c5b4: 3401 adds r4, #1
  107028. 802c5b6: 9304 str r3, [sp, #16]
  107029. 802c5b8: f814 1b01 ldrb.w r1, [r4], #1
  107030. 802c5bc: 4824 ldr r0, [pc, #144] @ (802c650 <_svfiprintf_r+0x1e8>)
  107031. 802c5be: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  107032. 802c5c2: 2206 movs r2, #6
  107033. 802c5c4: f7d3 fe9c bl 8000300 <memchr>
  107034. 802c5c8: 2800 cmp r0, #0
  107035. 802c5ca: d036 beq.n 802c63a <_svfiprintf_r+0x1d2>
  107036. 802c5cc: 4b21 ldr r3, [pc, #132] @ (802c654 <_svfiprintf_r+0x1ec>)
  107037. 802c5ce: bb1b cbnz r3, 802c618 <_svfiprintf_r+0x1b0>
  107038. 802c5d0: 9b03 ldr r3, [sp, #12]
  107039. 802c5d2: 3307 adds r3, #7
  107040. 802c5d4: f023 0307 bic.w r3, r3, #7
  107041. 802c5d8: 3308 adds r3, #8
  107042. 802c5da: 9303 str r3, [sp, #12]
  107043. 802c5dc: 9b09 ldr r3, [sp, #36] @ 0x24
  107044. 802c5de: 4433 add r3, r6
  107045. 802c5e0: 9309 str r3, [sp, #36] @ 0x24
  107046. 802c5e2: e76a b.n 802c4ba <_svfiprintf_r+0x52>
  107047. 802c5e4: fb0c 3202 mla r2, ip, r2, r3
  107048. 802c5e8: 460c mov r4, r1
  107049. 802c5ea: 2001 movs r0, #1
  107050. 802c5ec: e7a8 b.n 802c540 <_svfiprintf_r+0xd8>
  107051. 802c5ee: 2300 movs r3, #0
  107052. 802c5f0: 3401 adds r4, #1
  107053. 802c5f2: 9305 str r3, [sp, #20]
  107054. 802c5f4: 4619 mov r1, r3
  107055. 802c5f6: f04f 0c0a mov.w ip, #10
  107056. 802c5fa: 4620 mov r0, r4
  107057. 802c5fc: f810 2b01 ldrb.w r2, [r0], #1
  107058. 802c600: 3a30 subs r2, #48 @ 0x30
  107059. 802c602: 2a09 cmp r2, #9
  107060. 802c604: d903 bls.n 802c60e <_svfiprintf_r+0x1a6>
  107061. 802c606: 2b00 cmp r3, #0
  107062. 802c608: d0c6 beq.n 802c598 <_svfiprintf_r+0x130>
  107063. 802c60a: 9105 str r1, [sp, #20]
  107064. 802c60c: e7c4 b.n 802c598 <_svfiprintf_r+0x130>
  107065. 802c60e: fb0c 2101 mla r1, ip, r1, r2
  107066. 802c612: 4604 mov r4, r0
  107067. 802c614: 2301 movs r3, #1
  107068. 802c616: e7f0 b.n 802c5fa <_svfiprintf_r+0x192>
  107069. 802c618: ab03 add r3, sp, #12
  107070. 802c61a: 9300 str r3, [sp, #0]
  107071. 802c61c: 462a mov r2, r5
  107072. 802c61e: 4b0e ldr r3, [pc, #56] @ (802c658 <_svfiprintf_r+0x1f0>)
  107073. 802c620: a904 add r1, sp, #16
  107074. 802c622: 4638 mov r0, r7
  107075. 802c624: f7fd f960 bl 80298e8 <_printf_float>
  107076. 802c628: 1c42 adds r2, r0, #1
  107077. 802c62a: 4606 mov r6, r0
  107078. 802c62c: d1d6 bne.n 802c5dc <_svfiprintf_r+0x174>
  107079. 802c62e: 89ab ldrh r3, [r5, #12]
  107080. 802c630: 065b lsls r3, r3, #25
  107081. 802c632: f53f af2d bmi.w 802c490 <_svfiprintf_r+0x28>
  107082. 802c636: 9809 ldr r0, [sp, #36] @ 0x24
  107083. 802c638: e72c b.n 802c494 <_svfiprintf_r+0x2c>
  107084. 802c63a: ab03 add r3, sp, #12
  107085. 802c63c: 9300 str r3, [sp, #0]
  107086. 802c63e: 462a mov r2, r5
  107087. 802c640: 4b05 ldr r3, [pc, #20] @ (802c658 <_svfiprintf_r+0x1f0>)
  107088. 802c642: a904 add r1, sp, #16
  107089. 802c644: 4638 mov r0, r7
  107090. 802c646: f7fd fbd7 bl 8029df8 <_printf_i>
  107091. 802c64a: e7ed b.n 802c628 <_svfiprintf_r+0x1c0>
  107092. 802c64c: 08031978 .word 0x08031978
  107093. 802c650: 08031982 .word 0x08031982
  107094. 802c654: 080298e9 .word 0x080298e9
  107095. 802c658: 0802c3b1 .word 0x0802c3b1
  107096. 802c65c: 0803197e .word 0x0803197e
  107097. 0802c660 <__sfputc_r>:
  107098. 802c660: 6893 ldr r3, [r2, #8]
  107099. 802c662: 3b01 subs r3, #1
  107100. 802c664: 2b00 cmp r3, #0
  107101. 802c666: b410 push {r4}
  107102. 802c668: 6093 str r3, [r2, #8]
  107103. 802c66a: da08 bge.n 802c67e <__sfputc_r+0x1e>
  107104. 802c66c: 6994 ldr r4, [r2, #24]
  107105. 802c66e: 42a3 cmp r3, r4
  107106. 802c670: db01 blt.n 802c676 <__sfputc_r+0x16>
  107107. 802c672: 290a cmp r1, #10
  107108. 802c674: d103 bne.n 802c67e <__sfputc_r+0x1e>
  107109. 802c676: f85d 4b04 ldr.w r4, [sp], #4
  107110. 802c67a: f7fd be72 b.w 802a362 <__swbuf_r>
  107111. 802c67e: 6813 ldr r3, [r2, #0]
  107112. 802c680: 1c58 adds r0, r3, #1
  107113. 802c682: 6010 str r0, [r2, #0]
  107114. 802c684: 7019 strb r1, [r3, #0]
  107115. 802c686: 4608 mov r0, r1
  107116. 802c688: f85d 4b04 ldr.w r4, [sp], #4
  107117. 802c68c: 4770 bx lr
  107118. 0802c68e <__sfputs_r>:
  107119. 802c68e: b5f8 push {r3, r4, r5, r6, r7, lr}
  107120. 802c690: 4606 mov r6, r0
  107121. 802c692: 460f mov r7, r1
  107122. 802c694: 4614 mov r4, r2
  107123. 802c696: 18d5 adds r5, r2, r3
  107124. 802c698: 42ac cmp r4, r5
  107125. 802c69a: d101 bne.n 802c6a0 <__sfputs_r+0x12>
  107126. 802c69c: 2000 movs r0, #0
  107127. 802c69e: e007 b.n 802c6b0 <__sfputs_r+0x22>
  107128. 802c6a0: f814 1b01 ldrb.w r1, [r4], #1
  107129. 802c6a4: 463a mov r2, r7
  107130. 802c6a6: 4630 mov r0, r6
  107131. 802c6a8: f7ff ffda bl 802c660 <__sfputc_r>
  107132. 802c6ac: 1c43 adds r3, r0, #1
  107133. 802c6ae: d1f3 bne.n 802c698 <__sfputs_r+0xa>
  107134. 802c6b0: bdf8 pop {r3, r4, r5, r6, r7, pc}
  107135. ...
  107136. 0802c6b4 <_vfiprintf_r>:
  107137. 802c6b4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  107138. 802c6b8: 460d mov r5, r1
  107139. 802c6ba: b09d sub sp, #116 @ 0x74
  107140. 802c6bc: 4614 mov r4, r2
  107141. 802c6be: 4698 mov r8, r3
  107142. 802c6c0: 4606 mov r6, r0
  107143. 802c6c2: b118 cbz r0, 802c6cc <_vfiprintf_r+0x18>
  107144. 802c6c4: 6a03 ldr r3, [r0, #32]
  107145. 802c6c6: b90b cbnz r3, 802c6cc <_vfiprintf_r+0x18>
  107146. 802c6c8: f7fd fd42 bl 802a150 <__sinit>
  107147. 802c6cc: 6e6b ldr r3, [r5, #100] @ 0x64
  107148. 802c6ce: 07d9 lsls r1, r3, #31
  107149. 802c6d0: d405 bmi.n 802c6de <_vfiprintf_r+0x2a>
  107150. 802c6d2: 89ab ldrh r3, [r5, #12]
  107151. 802c6d4: 059a lsls r2, r3, #22
  107152. 802c6d6: d402 bmi.n 802c6de <_vfiprintf_r+0x2a>
  107153. 802c6d8: 6da8 ldr r0, [r5, #88] @ 0x58
  107154. 802c6da: f7fd fff6 bl 802a6ca <__retarget_lock_acquire_recursive>
  107155. 802c6de: 89ab ldrh r3, [r5, #12]
  107156. 802c6e0: 071b lsls r3, r3, #28
  107157. 802c6e2: d501 bpl.n 802c6e8 <_vfiprintf_r+0x34>
  107158. 802c6e4: 692b ldr r3, [r5, #16]
  107159. 802c6e6: b99b cbnz r3, 802c710 <_vfiprintf_r+0x5c>
  107160. 802c6e8: 4629 mov r1, r5
  107161. 802c6ea: 4630 mov r0, r6
  107162. 802c6ec: f7fd fe78 bl 802a3e0 <__swsetup_r>
  107163. 802c6f0: b170 cbz r0, 802c710 <_vfiprintf_r+0x5c>
  107164. 802c6f2: 6e6b ldr r3, [r5, #100] @ 0x64
  107165. 802c6f4: 07dc lsls r4, r3, #31
  107166. 802c6f6: d504 bpl.n 802c702 <_vfiprintf_r+0x4e>
  107167. 802c6f8: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107168. 802c6fc: b01d add sp, #116 @ 0x74
  107169. 802c6fe: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  107170. 802c702: 89ab ldrh r3, [r5, #12]
  107171. 802c704: 0598 lsls r0, r3, #22
  107172. 802c706: d4f7 bmi.n 802c6f8 <_vfiprintf_r+0x44>
  107173. 802c708: 6da8 ldr r0, [r5, #88] @ 0x58
  107174. 802c70a: f7fd ffdf bl 802a6cc <__retarget_lock_release_recursive>
  107175. 802c70e: e7f3 b.n 802c6f8 <_vfiprintf_r+0x44>
  107176. 802c710: 2300 movs r3, #0
  107177. 802c712: 9309 str r3, [sp, #36] @ 0x24
  107178. 802c714: 2320 movs r3, #32
  107179. 802c716: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  107180. 802c71a: f8cd 800c str.w r8, [sp, #12]
  107181. 802c71e: 2330 movs r3, #48 @ 0x30
  107182. 802c720: f8df 81ac ldr.w r8, [pc, #428] @ 802c8d0 <_vfiprintf_r+0x21c>
  107183. 802c724: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  107184. 802c728: f04f 0901 mov.w r9, #1
  107185. 802c72c: 4623 mov r3, r4
  107186. 802c72e: 469a mov sl, r3
  107187. 802c730: f813 2b01 ldrb.w r2, [r3], #1
  107188. 802c734: b10a cbz r2, 802c73a <_vfiprintf_r+0x86>
  107189. 802c736: 2a25 cmp r2, #37 @ 0x25
  107190. 802c738: d1f9 bne.n 802c72e <_vfiprintf_r+0x7a>
  107191. 802c73a: ebba 0b04 subs.w fp, sl, r4
  107192. 802c73e: d00b beq.n 802c758 <_vfiprintf_r+0xa4>
  107193. 802c740: 465b mov r3, fp
  107194. 802c742: 4622 mov r2, r4
  107195. 802c744: 4629 mov r1, r5
  107196. 802c746: 4630 mov r0, r6
  107197. 802c748: f7ff ffa1 bl 802c68e <__sfputs_r>
  107198. 802c74c: 3001 adds r0, #1
  107199. 802c74e: f000 80a7 beq.w 802c8a0 <_vfiprintf_r+0x1ec>
  107200. 802c752: 9a09 ldr r2, [sp, #36] @ 0x24
  107201. 802c754: 445a add r2, fp
  107202. 802c756: 9209 str r2, [sp, #36] @ 0x24
  107203. 802c758: f89a 3000 ldrb.w r3, [sl]
  107204. 802c75c: 2b00 cmp r3, #0
  107205. 802c75e: f000 809f beq.w 802c8a0 <_vfiprintf_r+0x1ec>
  107206. 802c762: 2300 movs r3, #0
  107207. 802c764: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  107208. 802c768: e9cd 2305 strd r2, r3, [sp, #20]
  107209. 802c76c: f10a 0a01 add.w sl, sl, #1
  107210. 802c770: 9304 str r3, [sp, #16]
  107211. 802c772: 9307 str r3, [sp, #28]
  107212. 802c774: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  107213. 802c778: 931a str r3, [sp, #104] @ 0x68
  107214. 802c77a: 4654 mov r4, sl
  107215. 802c77c: 2205 movs r2, #5
  107216. 802c77e: f814 1b01 ldrb.w r1, [r4], #1
  107217. 802c782: 4853 ldr r0, [pc, #332] @ (802c8d0 <_vfiprintf_r+0x21c>)
  107218. 802c784: f7d3 fdbc bl 8000300 <memchr>
  107219. 802c788: 9a04 ldr r2, [sp, #16]
  107220. 802c78a: b9d8 cbnz r0, 802c7c4 <_vfiprintf_r+0x110>
  107221. 802c78c: 06d1 lsls r1, r2, #27
  107222. 802c78e: bf44 itt mi
  107223. 802c790: 2320 movmi r3, #32
  107224. 802c792: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  107225. 802c796: 0713 lsls r3, r2, #28
  107226. 802c798: bf44 itt mi
  107227. 802c79a: 232b movmi r3, #43 @ 0x2b
  107228. 802c79c: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  107229. 802c7a0: f89a 3000 ldrb.w r3, [sl]
  107230. 802c7a4: 2b2a cmp r3, #42 @ 0x2a
  107231. 802c7a6: d015 beq.n 802c7d4 <_vfiprintf_r+0x120>
  107232. 802c7a8: 9a07 ldr r2, [sp, #28]
  107233. 802c7aa: 4654 mov r4, sl
  107234. 802c7ac: 2000 movs r0, #0
  107235. 802c7ae: f04f 0c0a mov.w ip, #10
  107236. 802c7b2: 4621 mov r1, r4
  107237. 802c7b4: f811 3b01 ldrb.w r3, [r1], #1
  107238. 802c7b8: 3b30 subs r3, #48 @ 0x30
  107239. 802c7ba: 2b09 cmp r3, #9
  107240. 802c7bc: d94b bls.n 802c856 <_vfiprintf_r+0x1a2>
  107241. 802c7be: b1b0 cbz r0, 802c7ee <_vfiprintf_r+0x13a>
  107242. 802c7c0: 9207 str r2, [sp, #28]
  107243. 802c7c2: e014 b.n 802c7ee <_vfiprintf_r+0x13a>
  107244. 802c7c4: eba0 0308 sub.w r3, r0, r8
  107245. 802c7c8: fa09 f303 lsl.w r3, r9, r3
  107246. 802c7cc: 4313 orrs r3, r2
  107247. 802c7ce: 9304 str r3, [sp, #16]
  107248. 802c7d0: 46a2 mov sl, r4
  107249. 802c7d2: e7d2 b.n 802c77a <_vfiprintf_r+0xc6>
  107250. 802c7d4: 9b03 ldr r3, [sp, #12]
  107251. 802c7d6: 1d19 adds r1, r3, #4
  107252. 802c7d8: 681b ldr r3, [r3, #0]
  107253. 802c7da: 9103 str r1, [sp, #12]
  107254. 802c7dc: 2b00 cmp r3, #0
  107255. 802c7de: bfbb ittet lt
  107256. 802c7e0: 425b neglt r3, r3
  107257. 802c7e2: f042 0202 orrlt.w r2, r2, #2
  107258. 802c7e6: 9307 strge r3, [sp, #28]
  107259. 802c7e8: 9307 strlt r3, [sp, #28]
  107260. 802c7ea: bfb8 it lt
  107261. 802c7ec: 9204 strlt r2, [sp, #16]
  107262. 802c7ee: 7823 ldrb r3, [r4, #0]
  107263. 802c7f0: 2b2e cmp r3, #46 @ 0x2e
  107264. 802c7f2: d10a bne.n 802c80a <_vfiprintf_r+0x156>
  107265. 802c7f4: 7863 ldrb r3, [r4, #1]
  107266. 802c7f6: 2b2a cmp r3, #42 @ 0x2a
  107267. 802c7f8: d132 bne.n 802c860 <_vfiprintf_r+0x1ac>
  107268. 802c7fa: 9b03 ldr r3, [sp, #12]
  107269. 802c7fc: 1d1a adds r2, r3, #4
  107270. 802c7fe: 681b ldr r3, [r3, #0]
  107271. 802c800: 9203 str r2, [sp, #12]
  107272. 802c802: ea43 73e3 orr.w r3, r3, r3, asr #31
  107273. 802c806: 3402 adds r4, #2
  107274. 802c808: 9305 str r3, [sp, #20]
  107275. 802c80a: f8df a0d4 ldr.w sl, [pc, #212] @ 802c8e0 <_vfiprintf_r+0x22c>
  107276. 802c80e: 7821 ldrb r1, [r4, #0]
  107277. 802c810: 2203 movs r2, #3
  107278. 802c812: 4650 mov r0, sl
  107279. 802c814: f7d3 fd74 bl 8000300 <memchr>
  107280. 802c818: b138 cbz r0, 802c82a <_vfiprintf_r+0x176>
  107281. 802c81a: 9b04 ldr r3, [sp, #16]
  107282. 802c81c: eba0 000a sub.w r0, r0, sl
  107283. 802c820: 2240 movs r2, #64 @ 0x40
  107284. 802c822: 4082 lsls r2, r0
  107285. 802c824: 4313 orrs r3, r2
  107286. 802c826: 3401 adds r4, #1
  107287. 802c828: 9304 str r3, [sp, #16]
  107288. 802c82a: f814 1b01 ldrb.w r1, [r4], #1
  107289. 802c82e: 4829 ldr r0, [pc, #164] @ (802c8d4 <_vfiprintf_r+0x220>)
  107290. 802c830: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  107291. 802c834: 2206 movs r2, #6
  107292. 802c836: f7d3 fd63 bl 8000300 <memchr>
  107293. 802c83a: 2800 cmp r0, #0
  107294. 802c83c: d03f beq.n 802c8be <_vfiprintf_r+0x20a>
  107295. 802c83e: 4b26 ldr r3, [pc, #152] @ (802c8d8 <_vfiprintf_r+0x224>)
  107296. 802c840: bb1b cbnz r3, 802c88a <_vfiprintf_r+0x1d6>
  107297. 802c842: 9b03 ldr r3, [sp, #12]
  107298. 802c844: 3307 adds r3, #7
  107299. 802c846: f023 0307 bic.w r3, r3, #7
  107300. 802c84a: 3308 adds r3, #8
  107301. 802c84c: 9303 str r3, [sp, #12]
  107302. 802c84e: 9b09 ldr r3, [sp, #36] @ 0x24
  107303. 802c850: 443b add r3, r7
  107304. 802c852: 9309 str r3, [sp, #36] @ 0x24
  107305. 802c854: e76a b.n 802c72c <_vfiprintf_r+0x78>
  107306. 802c856: fb0c 3202 mla r2, ip, r2, r3
  107307. 802c85a: 460c mov r4, r1
  107308. 802c85c: 2001 movs r0, #1
  107309. 802c85e: e7a8 b.n 802c7b2 <_vfiprintf_r+0xfe>
  107310. 802c860: 2300 movs r3, #0
  107311. 802c862: 3401 adds r4, #1
  107312. 802c864: 9305 str r3, [sp, #20]
  107313. 802c866: 4619 mov r1, r3
  107314. 802c868: f04f 0c0a mov.w ip, #10
  107315. 802c86c: 4620 mov r0, r4
  107316. 802c86e: f810 2b01 ldrb.w r2, [r0], #1
  107317. 802c872: 3a30 subs r2, #48 @ 0x30
  107318. 802c874: 2a09 cmp r2, #9
  107319. 802c876: d903 bls.n 802c880 <_vfiprintf_r+0x1cc>
  107320. 802c878: 2b00 cmp r3, #0
  107321. 802c87a: d0c6 beq.n 802c80a <_vfiprintf_r+0x156>
  107322. 802c87c: 9105 str r1, [sp, #20]
  107323. 802c87e: e7c4 b.n 802c80a <_vfiprintf_r+0x156>
  107324. 802c880: fb0c 2101 mla r1, ip, r1, r2
  107325. 802c884: 4604 mov r4, r0
  107326. 802c886: 2301 movs r3, #1
  107327. 802c888: e7f0 b.n 802c86c <_vfiprintf_r+0x1b8>
  107328. 802c88a: ab03 add r3, sp, #12
  107329. 802c88c: 9300 str r3, [sp, #0]
  107330. 802c88e: 462a mov r2, r5
  107331. 802c890: 4b12 ldr r3, [pc, #72] @ (802c8dc <_vfiprintf_r+0x228>)
  107332. 802c892: a904 add r1, sp, #16
  107333. 802c894: 4630 mov r0, r6
  107334. 802c896: f7fd f827 bl 80298e8 <_printf_float>
  107335. 802c89a: 4607 mov r7, r0
  107336. 802c89c: 1c78 adds r0, r7, #1
  107337. 802c89e: d1d6 bne.n 802c84e <_vfiprintf_r+0x19a>
  107338. 802c8a0: 6e6b ldr r3, [r5, #100] @ 0x64
  107339. 802c8a2: 07d9 lsls r1, r3, #31
  107340. 802c8a4: d405 bmi.n 802c8b2 <_vfiprintf_r+0x1fe>
  107341. 802c8a6: 89ab ldrh r3, [r5, #12]
  107342. 802c8a8: 059a lsls r2, r3, #22
  107343. 802c8aa: d402 bmi.n 802c8b2 <_vfiprintf_r+0x1fe>
  107344. 802c8ac: 6da8 ldr r0, [r5, #88] @ 0x58
  107345. 802c8ae: f7fd ff0d bl 802a6cc <__retarget_lock_release_recursive>
  107346. 802c8b2: 89ab ldrh r3, [r5, #12]
  107347. 802c8b4: 065b lsls r3, r3, #25
  107348. 802c8b6: f53f af1f bmi.w 802c6f8 <_vfiprintf_r+0x44>
  107349. 802c8ba: 9809 ldr r0, [sp, #36] @ 0x24
  107350. 802c8bc: e71e b.n 802c6fc <_vfiprintf_r+0x48>
  107351. 802c8be: ab03 add r3, sp, #12
  107352. 802c8c0: 9300 str r3, [sp, #0]
  107353. 802c8c2: 462a mov r2, r5
  107354. 802c8c4: 4b05 ldr r3, [pc, #20] @ (802c8dc <_vfiprintf_r+0x228>)
  107355. 802c8c6: a904 add r1, sp, #16
  107356. 802c8c8: 4630 mov r0, r6
  107357. 802c8ca: f7fd fa95 bl 8029df8 <_printf_i>
  107358. 802c8ce: e7e4 b.n 802c89a <_vfiprintf_r+0x1e6>
  107359. 802c8d0: 08031978 .word 0x08031978
  107360. 802c8d4: 08031982 .word 0x08031982
  107361. 802c8d8: 080298e9 .word 0x080298e9
  107362. 802c8dc: 0802c68f .word 0x0802c68f
  107363. 802c8e0: 0803197e .word 0x0803197e
  107364. 0802c8e4 <__sflush_r>:
  107365. 802c8e4: f9b1 200c ldrsh.w r2, [r1, #12]
  107366. 802c8e8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  107367. 802c8ec: 0716 lsls r6, r2, #28
  107368. 802c8ee: 4605 mov r5, r0
  107369. 802c8f0: 460c mov r4, r1
  107370. 802c8f2: d454 bmi.n 802c99e <__sflush_r+0xba>
  107371. 802c8f4: 684b ldr r3, [r1, #4]
  107372. 802c8f6: 2b00 cmp r3, #0
  107373. 802c8f8: dc02 bgt.n 802c900 <__sflush_r+0x1c>
  107374. 802c8fa: 6c0b ldr r3, [r1, #64] @ 0x40
  107375. 802c8fc: 2b00 cmp r3, #0
  107376. 802c8fe: dd48 ble.n 802c992 <__sflush_r+0xae>
  107377. 802c900: 6ae6 ldr r6, [r4, #44] @ 0x2c
  107378. 802c902: 2e00 cmp r6, #0
  107379. 802c904: d045 beq.n 802c992 <__sflush_r+0xae>
  107380. 802c906: 2300 movs r3, #0
  107381. 802c908: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  107382. 802c90c: 682f ldr r7, [r5, #0]
  107383. 802c90e: 6a21 ldr r1, [r4, #32]
  107384. 802c910: 602b str r3, [r5, #0]
  107385. 802c912: d030 beq.n 802c976 <__sflush_r+0x92>
  107386. 802c914: 6d62 ldr r2, [r4, #84] @ 0x54
  107387. 802c916: 89a3 ldrh r3, [r4, #12]
  107388. 802c918: 0759 lsls r1, r3, #29
  107389. 802c91a: d505 bpl.n 802c928 <__sflush_r+0x44>
  107390. 802c91c: 6863 ldr r3, [r4, #4]
  107391. 802c91e: 1ad2 subs r2, r2, r3
  107392. 802c920: 6b63 ldr r3, [r4, #52] @ 0x34
  107393. 802c922: b10b cbz r3, 802c928 <__sflush_r+0x44>
  107394. 802c924: 6c23 ldr r3, [r4, #64] @ 0x40
  107395. 802c926: 1ad2 subs r2, r2, r3
  107396. 802c928: 2300 movs r3, #0
  107397. 802c92a: 6ae6 ldr r6, [r4, #44] @ 0x2c
  107398. 802c92c: 6a21 ldr r1, [r4, #32]
  107399. 802c92e: 4628 mov r0, r5
  107400. 802c930: 47b0 blx r6
  107401. 802c932: 1c43 adds r3, r0, #1
  107402. 802c934: 89a3 ldrh r3, [r4, #12]
  107403. 802c936: d106 bne.n 802c946 <__sflush_r+0x62>
  107404. 802c938: 6829 ldr r1, [r5, #0]
  107405. 802c93a: 291d cmp r1, #29
  107406. 802c93c: d82b bhi.n 802c996 <__sflush_r+0xb2>
  107407. 802c93e: 4a2a ldr r2, [pc, #168] @ (802c9e8 <__sflush_r+0x104>)
  107408. 802c940: 410a asrs r2, r1
  107409. 802c942: 07d6 lsls r6, r2, #31
  107410. 802c944: d427 bmi.n 802c996 <__sflush_r+0xb2>
  107411. 802c946: 2200 movs r2, #0
  107412. 802c948: 6062 str r2, [r4, #4]
  107413. 802c94a: 04d9 lsls r1, r3, #19
  107414. 802c94c: 6922 ldr r2, [r4, #16]
  107415. 802c94e: 6022 str r2, [r4, #0]
  107416. 802c950: d504 bpl.n 802c95c <__sflush_r+0x78>
  107417. 802c952: 1c42 adds r2, r0, #1
  107418. 802c954: d101 bne.n 802c95a <__sflush_r+0x76>
  107419. 802c956: 682b ldr r3, [r5, #0]
  107420. 802c958: b903 cbnz r3, 802c95c <__sflush_r+0x78>
  107421. 802c95a: 6560 str r0, [r4, #84] @ 0x54
  107422. 802c95c: 6b61 ldr r1, [r4, #52] @ 0x34
  107423. 802c95e: 602f str r7, [r5, #0]
  107424. 802c960: b1b9 cbz r1, 802c992 <__sflush_r+0xae>
  107425. 802c962: f104 0344 add.w r3, r4, #68 @ 0x44
  107426. 802c966: 4299 cmp r1, r3
  107427. 802c968: d002 beq.n 802c970 <__sflush_r+0x8c>
  107428. 802c96a: 4628 mov r0, r5
  107429. 802c96c: f7fe fcc6 bl 802b2fc <_free_r>
  107430. 802c970: 2300 movs r3, #0
  107431. 802c972: 6363 str r3, [r4, #52] @ 0x34
  107432. 802c974: e00d b.n 802c992 <__sflush_r+0xae>
  107433. 802c976: 2301 movs r3, #1
  107434. 802c978: 4628 mov r0, r5
  107435. 802c97a: 47b0 blx r6
  107436. 802c97c: 4602 mov r2, r0
  107437. 802c97e: 1c50 adds r0, r2, #1
  107438. 802c980: d1c9 bne.n 802c916 <__sflush_r+0x32>
  107439. 802c982: 682b ldr r3, [r5, #0]
  107440. 802c984: 2b00 cmp r3, #0
  107441. 802c986: d0c6 beq.n 802c916 <__sflush_r+0x32>
  107442. 802c988: 2b1d cmp r3, #29
  107443. 802c98a: d001 beq.n 802c990 <__sflush_r+0xac>
  107444. 802c98c: 2b16 cmp r3, #22
  107445. 802c98e: d11e bne.n 802c9ce <__sflush_r+0xea>
  107446. 802c990: 602f str r7, [r5, #0]
  107447. 802c992: 2000 movs r0, #0
  107448. 802c994: e022 b.n 802c9dc <__sflush_r+0xf8>
  107449. 802c996: f043 0340 orr.w r3, r3, #64 @ 0x40
  107450. 802c99a: b21b sxth r3, r3
  107451. 802c99c: e01b b.n 802c9d6 <__sflush_r+0xf2>
  107452. 802c99e: 690f ldr r7, [r1, #16]
  107453. 802c9a0: 2f00 cmp r7, #0
  107454. 802c9a2: d0f6 beq.n 802c992 <__sflush_r+0xae>
  107455. 802c9a4: 0793 lsls r3, r2, #30
  107456. 802c9a6: 680e ldr r6, [r1, #0]
  107457. 802c9a8: bf08 it eq
  107458. 802c9aa: 694b ldreq r3, [r1, #20]
  107459. 802c9ac: 600f str r7, [r1, #0]
  107460. 802c9ae: bf18 it ne
  107461. 802c9b0: 2300 movne r3, #0
  107462. 802c9b2: eba6 0807 sub.w r8, r6, r7
  107463. 802c9b6: 608b str r3, [r1, #8]
  107464. 802c9b8: f1b8 0f00 cmp.w r8, #0
  107465. 802c9bc: dde9 ble.n 802c992 <__sflush_r+0xae>
  107466. 802c9be: 6a21 ldr r1, [r4, #32]
  107467. 802c9c0: 6aa6 ldr r6, [r4, #40] @ 0x28
  107468. 802c9c2: 4643 mov r3, r8
  107469. 802c9c4: 463a mov r2, r7
  107470. 802c9c6: 4628 mov r0, r5
  107471. 802c9c8: 47b0 blx r6
  107472. 802c9ca: 2800 cmp r0, #0
  107473. 802c9cc: dc08 bgt.n 802c9e0 <__sflush_r+0xfc>
  107474. 802c9ce: f9b4 300c ldrsh.w r3, [r4, #12]
  107475. 802c9d2: f043 0340 orr.w r3, r3, #64 @ 0x40
  107476. 802c9d6: 81a3 strh r3, [r4, #12]
  107477. 802c9d8: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107478. 802c9dc: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  107479. 802c9e0: 4407 add r7, r0
  107480. 802c9e2: eba8 0800 sub.w r8, r8, r0
  107481. 802c9e6: e7e7 b.n 802c9b8 <__sflush_r+0xd4>
  107482. 802c9e8: dfbffffe .word 0xdfbffffe
  107483. 0802c9ec <_fflush_r>:
  107484. 802c9ec: b538 push {r3, r4, r5, lr}
  107485. 802c9ee: 690b ldr r3, [r1, #16]
  107486. 802c9f0: 4605 mov r5, r0
  107487. 802c9f2: 460c mov r4, r1
  107488. 802c9f4: b913 cbnz r3, 802c9fc <_fflush_r+0x10>
  107489. 802c9f6: 2500 movs r5, #0
  107490. 802c9f8: 4628 mov r0, r5
  107491. 802c9fa: bd38 pop {r3, r4, r5, pc}
  107492. 802c9fc: b118 cbz r0, 802ca06 <_fflush_r+0x1a>
  107493. 802c9fe: 6a03 ldr r3, [r0, #32]
  107494. 802ca00: b90b cbnz r3, 802ca06 <_fflush_r+0x1a>
  107495. 802ca02: f7fd fba5 bl 802a150 <__sinit>
  107496. 802ca06: f9b4 300c ldrsh.w r3, [r4, #12]
  107497. 802ca0a: 2b00 cmp r3, #0
  107498. 802ca0c: d0f3 beq.n 802c9f6 <_fflush_r+0xa>
  107499. 802ca0e: 6e62 ldr r2, [r4, #100] @ 0x64
  107500. 802ca10: 07d0 lsls r0, r2, #31
  107501. 802ca12: d404 bmi.n 802ca1e <_fflush_r+0x32>
  107502. 802ca14: 0599 lsls r1, r3, #22
  107503. 802ca16: d402 bmi.n 802ca1e <_fflush_r+0x32>
  107504. 802ca18: 6da0 ldr r0, [r4, #88] @ 0x58
  107505. 802ca1a: f7fd fe56 bl 802a6ca <__retarget_lock_acquire_recursive>
  107506. 802ca1e: 4628 mov r0, r5
  107507. 802ca20: 4621 mov r1, r4
  107508. 802ca22: f7ff ff5f bl 802c8e4 <__sflush_r>
  107509. 802ca26: 6e63 ldr r3, [r4, #100] @ 0x64
  107510. 802ca28: 07da lsls r2, r3, #31
  107511. 802ca2a: 4605 mov r5, r0
  107512. 802ca2c: d4e4 bmi.n 802c9f8 <_fflush_r+0xc>
  107513. 802ca2e: 89a3 ldrh r3, [r4, #12]
  107514. 802ca30: 059b lsls r3, r3, #22
  107515. 802ca32: d4e1 bmi.n 802c9f8 <_fflush_r+0xc>
  107516. 802ca34: 6da0 ldr r0, [r4, #88] @ 0x58
  107517. 802ca36: f7fd fe49 bl 802a6cc <__retarget_lock_release_recursive>
  107518. 802ca3a: e7dd b.n 802c9f8 <_fflush_r+0xc>
  107519. 0802ca3c <fiprintf>:
  107520. 802ca3c: b40e push {r1, r2, r3}
  107521. 802ca3e: b503 push {r0, r1, lr}
  107522. 802ca40: 4601 mov r1, r0
  107523. 802ca42: ab03 add r3, sp, #12
  107524. 802ca44: 4805 ldr r0, [pc, #20] @ (802ca5c <fiprintf+0x20>)
  107525. 802ca46: f853 2b04 ldr.w r2, [r3], #4
  107526. 802ca4a: 6800 ldr r0, [r0, #0]
  107527. 802ca4c: 9301 str r3, [sp, #4]
  107528. 802ca4e: f7ff fe31 bl 802c6b4 <_vfiprintf_r>
  107529. 802ca52: b002 add sp, #8
  107530. 802ca54: f85d eb04 ldr.w lr, [sp], #4
  107531. 802ca58: b003 add sp, #12
  107532. 802ca5a: 4770 bx lr
  107533. 802ca5c: 240001d4 .word 0x240001d4
  107534. 0802ca60 <__swhatbuf_r>:
  107535. 802ca60: b570 push {r4, r5, r6, lr}
  107536. 802ca62: 460c mov r4, r1
  107537. 802ca64: f9b1 100e ldrsh.w r1, [r1, #14]
  107538. 802ca68: 2900 cmp r1, #0
  107539. 802ca6a: b096 sub sp, #88 @ 0x58
  107540. 802ca6c: 4615 mov r5, r2
  107541. 802ca6e: 461e mov r6, r3
  107542. 802ca70: da0d bge.n 802ca8e <__swhatbuf_r+0x2e>
  107543. 802ca72: 89a3 ldrh r3, [r4, #12]
  107544. 802ca74: f013 0f80 tst.w r3, #128 @ 0x80
  107545. 802ca78: f04f 0100 mov.w r1, #0
  107546. 802ca7c: bf14 ite ne
  107547. 802ca7e: 2340 movne r3, #64 @ 0x40
  107548. 802ca80: f44f 6380 moveq.w r3, #1024 @ 0x400
  107549. 802ca84: 2000 movs r0, #0
  107550. 802ca86: 6031 str r1, [r6, #0]
  107551. 802ca88: 602b str r3, [r5, #0]
  107552. 802ca8a: b016 add sp, #88 @ 0x58
  107553. 802ca8c: bd70 pop {r4, r5, r6, pc}
  107554. 802ca8e: 466a mov r2, sp
  107555. 802ca90: f000 f848 bl 802cb24 <_fstat_r>
  107556. 802ca94: 2800 cmp r0, #0
  107557. 802ca96: dbec blt.n 802ca72 <__swhatbuf_r+0x12>
  107558. 802ca98: 9901 ldr r1, [sp, #4]
  107559. 802ca9a: f401 4170 and.w r1, r1, #61440 @ 0xf000
  107560. 802ca9e: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  107561. 802caa2: 4259 negs r1, r3
  107562. 802caa4: 4159 adcs r1, r3
  107563. 802caa6: f44f 6380 mov.w r3, #1024 @ 0x400
  107564. 802caaa: e7eb b.n 802ca84 <__swhatbuf_r+0x24>
  107565. 0802caac <__smakebuf_r>:
  107566. 802caac: 898b ldrh r3, [r1, #12]
  107567. 802caae: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  107568. 802cab0: 079d lsls r5, r3, #30
  107569. 802cab2: 4606 mov r6, r0
  107570. 802cab4: 460c mov r4, r1
  107571. 802cab6: d507 bpl.n 802cac8 <__smakebuf_r+0x1c>
  107572. 802cab8: f104 0347 add.w r3, r4, #71 @ 0x47
  107573. 802cabc: 6023 str r3, [r4, #0]
  107574. 802cabe: 6123 str r3, [r4, #16]
  107575. 802cac0: 2301 movs r3, #1
  107576. 802cac2: 6163 str r3, [r4, #20]
  107577. 802cac4: b003 add sp, #12
  107578. 802cac6: bdf0 pop {r4, r5, r6, r7, pc}
  107579. 802cac8: ab01 add r3, sp, #4
  107580. 802caca: 466a mov r2, sp
  107581. 802cacc: f7ff ffc8 bl 802ca60 <__swhatbuf_r>
  107582. 802cad0: 9f00 ldr r7, [sp, #0]
  107583. 802cad2: 4605 mov r5, r0
  107584. 802cad4: 4639 mov r1, r7
  107585. 802cad6: 4630 mov r0, r6
  107586. 802cad8: f7fb ffba bl 8028a50 <_malloc_r>
  107587. 802cadc: b948 cbnz r0, 802caf2 <__smakebuf_r+0x46>
  107588. 802cade: f9b4 300c ldrsh.w r3, [r4, #12]
  107589. 802cae2: 059a lsls r2, r3, #22
  107590. 802cae4: d4ee bmi.n 802cac4 <__smakebuf_r+0x18>
  107591. 802cae6: f023 0303 bic.w r3, r3, #3
  107592. 802caea: f043 0302 orr.w r3, r3, #2
  107593. 802caee: 81a3 strh r3, [r4, #12]
  107594. 802caf0: e7e2 b.n 802cab8 <__smakebuf_r+0xc>
  107595. 802caf2: 89a3 ldrh r3, [r4, #12]
  107596. 802caf4: 6020 str r0, [r4, #0]
  107597. 802caf6: f043 0380 orr.w r3, r3, #128 @ 0x80
  107598. 802cafa: 81a3 strh r3, [r4, #12]
  107599. 802cafc: 9b01 ldr r3, [sp, #4]
  107600. 802cafe: e9c4 0704 strd r0, r7, [r4, #16]
  107601. 802cb02: b15b cbz r3, 802cb1c <__smakebuf_r+0x70>
  107602. 802cb04: f9b4 100e ldrsh.w r1, [r4, #14]
  107603. 802cb08: 4630 mov r0, r6
  107604. 802cb0a: f000 f81d bl 802cb48 <_isatty_r>
  107605. 802cb0e: b128 cbz r0, 802cb1c <__smakebuf_r+0x70>
  107606. 802cb10: 89a3 ldrh r3, [r4, #12]
  107607. 802cb12: f023 0303 bic.w r3, r3, #3
  107608. 802cb16: f043 0301 orr.w r3, r3, #1
  107609. 802cb1a: 81a3 strh r3, [r4, #12]
  107610. 802cb1c: 89a3 ldrh r3, [r4, #12]
  107611. 802cb1e: 431d orrs r5, r3
  107612. 802cb20: 81a5 strh r5, [r4, #12]
  107613. 802cb22: e7cf b.n 802cac4 <__smakebuf_r+0x18>
  107614. 0802cb24 <_fstat_r>:
  107615. 802cb24: b538 push {r3, r4, r5, lr}
  107616. 802cb26: 4d07 ldr r5, [pc, #28] @ (802cb44 <_fstat_r+0x20>)
  107617. 802cb28: 2300 movs r3, #0
  107618. 802cb2a: 4604 mov r4, r0
  107619. 802cb2c: 4608 mov r0, r1
  107620. 802cb2e: 4611 mov r1, r2
  107621. 802cb30: 602b str r3, [r5, #0]
  107622. 802cb32: f7d7 f92f bl 8003d94 <_fstat>
  107623. 802cb36: 1c43 adds r3, r0, #1
  107624. 802cb38: d102 bne.n 802cb40 <_fstat_r+0x1c>
  107625. 802cb3a: 682b ldr r3, [r5, #0]
  107626. 802cb3c: b103 cbz r3, 802cb40 <_fstat_r+0x1c>
  107627. 802cb3e: 6023 str r3, [r4, #0]
  107628. 802cb40: bd38 pop {r3, r4, r5, pc}
  107629. 802cb42: bf00 nop
  107630. 802cb44: 2402b250 .word 0x2402b250
  107631. 0802cb48 <_isatty_r>:
  107632. 802cb48: b538 push {r3, r4, r5, lr}
  107633. 802cb4a: 4d06 ldr r5, [pc, #24] @ (802cb64 <_isatty_r+0x1c>)
  107634. 802cb4c: 2300 movs r3, #0
  107635. 802cb4e: 4604 mov r4, r0
  107636. 802cb50: 4608 mov r0, r1
  107637. 802cb52: 602b str r3, [r5, #0]
  107638. 802cb54: f7d7 f92e bl 8003db4 <_isatty>
  107639. 802cb58: 1c43 adds r3, r0, #1
  107640. 802cb5a: d102 bne.n 802cb62 <_isatty_r+0x1a>
  107641. 802cb5c: 682b ldr r3, [r5, #0]
  107642. 802cb5e: b103 cbz r3, 802cb62 <_isatty_r+0x1a>
  107643. 802cb60: 6023 str r3, [r4, #0]
  107644. 802cb62: bd38 pop {r3, r4, r5, pc}
  107645. 802cb64: 2402b250 .word 0x2402b250
  107646. 0802cb68 <abort>:
  107647. 802cb68: b508 push {r3, lr}
  107648. 802cb6a: 2006 movs r0, #6
  107649. 802cb6c: f000 f840 bl 802cbf0 <raise>
  107650. 802cb70: 2001 movs r0, #1
  107651. 802cb72: f7d7 f8bf bl 8003cf4 <_exit>
  107652. 0802cb76 <_calloc_r>:
  107653. 802cb76: b570 push {r4, r5, r6, lr}
  107654. 802cb78: fba1 5402 umull r5, r4, r1, r2
  107655. 802cb7c: b93c cbnz r4, 802cb8e <_calloc_r+0x18>
  107656. 802cb7e: 4629 mov r1, r5
  107657. 802cb80: f7fb ff66 bl 8028a50 <_malloc_r>
  107658. 802cb84: 4606 mov r6, r0
  107659. 802cb86: b928 cbnz r0, 802cb94 <_calloc_r+0x1e>
  107660. 802cb88: 2600 movs r6, #0
  107661. 802cb8a: 4630 mov r0, r6
  107662. 802cb8c: bd70 pop {r4, r5, r6, pc}
  107663. 802cb8e: 220c movs r2, #12
  107664. 802cb90: 6002 str r2, [r0, #0]
  107665. 802cb92: e7f9 b.n 802cb88 <_calloc_r+0x12>
  107666. 802cb94: 462a mov r2, r5
  107667. 802cb96: 4621 mov r1, r4
  107668. 802cb98: f7fd fca2 bl 802a4e0 <memset>
  107669. 802cb9c: e7f5 b.n 802cb8a <_calloc_r+0x14>
  107670. 0802cb9e <_raise_r>:
  107671. 802cb9e: 291f cmp r1, #31
  107672. 802cba0: b538 push {r3, r4, r5, lr}
  107673. 802cba2: 4605 mov r5, r0
  107674. 802cba4: 460c mov r4, r1
  107675. 802cba6: d904 bls.n 802cbb2 <_raise_r+0x14>
  107676. 802cba8: 2316 movs r3, #22
  107677. 802cbaa: 6003 str r3, [r0, #0]
  107678. 802cbac: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  107679. 802cbb0: bd38 pop {r3, r4, r5, pc}
  107680. 802cbb2: 6bc2 ldr r2, [r0, #60] @ 0x3c
  107681. 802cbb4: b112 cbz r2, 802cbbc <_raise_r+0x1e>
  107682. 802cbb6: f852 3021 ldr.w r3, [r2, r1, lsl #2]
  107683. 802cbba: b94b cbnz r3, 802cbd0 <_raise_r+0x32>
  107684. 802cbbc: 4628 mov r0, r5
  107685. 802cbbe: f000 f831 bl 802cc24 <_getpid_r>
  107686. 802cbc2: 4622 mov r2, r4
  107687. 802cbc4: 4601 mov r1, r0
  107688. 802cbc6: 4628 mov r0, r5
  107689. 802cbc8: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  107690. 802cbcc: f000 b818 b.w 802cc00 <_kill_r>
  107691. 802cbd0: 2b01 cmp r3, #1
  107692. 802cbd2: d00a beq.n 802cbea <_raise_r+0x4c>
  107693. 802cbd4: 1c59 adds r1, r3, #1
  107694. 802cbd6: d103 bne.n 802cbe0 <_raise_r+0x42>
  107695. 802cbd8: 2316 movs r3, #22
  107696. 802cbda: 6003 str r3, [r0, #0]
  107697. 802cbdc: 2001 movs r0, #1
  107698. 802cbde: e7e7 b.n 802cbb0 <_raise_r+0x12>
  107699. 802cbe0: 2100 movs r1, #0
  107700. 802cbe2: f842 1024 str.w r1, [r2, r4, lsl #2]
  107701. 802cbe6: 4620 mov r0, r4
  107702. 802cbe8: 4798 blx r3
  107703. 802cbea: 2000 movs r0, #0
  107704. 802cbec: e7e0 b.n 802cbb0 <_raise_r+0x12>
  107705. ...
  107706. 0802cbf0 <raise>:
  107707. 802cbf0: 4b02 ldr r3, [pc, #8] @ (802cbfc <raise+0xc>)
  107708. 802cbf2: 4601 mov r1, r0
  107709. 802cbf4: 6818 ldr r0, [r3, #0]
  107710. 802cbf6: f7ff bfd2 b.w 802cb9e <_raise_r>
  107711. 802cbfa: bf00 nop
  107712. 802cbfc: 240001d4 .word 0x240001d4
  107713. 0802cc00 <_kill_r>:
  107714. 802cc00: b538 push {r3, r4, r5, lr}
  107715. 802cc02: 4d07 ldr r5, [pc, #28] @ (802cc20 <_kill_r+0x20>)
  107716. 802cc04: 2300 movs r3, #0
  107717. 802cc06: 4604 mov r4, r0
  107718. 802cc08: 4608 mov r0, r1
  107719. 802cc0a: 4611 mov r1, r2
  107720. 802cc0c: 602b str r3, [r5, #0]
  107721. 802cc0e: f7d7 f85f bl 8003cd0 <_kill>
  107722. 802cc12: 1c43 adds r3, r0, #1
  107723. 802cc14: d102 bne.n 802cc1c <_kill_r+0x1c>
  107724. 802cc16: 682b ldr r3, [r5, #0]
  107725. 802cc18: b103 cbz r3, 802cc1c <_kill_r+0x1c>
  107726. 802cc1a: 6023 str r3, [r4, #0]
  107727. 802cc1c: bd38 pop {r3, r4, r5, pc}
  107728. 802cc1e: bf00 nop
  107729. 802cc20: 2402b250 .word 0x2402b250
  107730. 0802cc24 <_getpid_r>:
  107731. 802cc24: f7d7 b84c b.w 8003cc0 <_getpid>
  107732. 0802cc28 <_init>:
  107733. 802cc28: b5f8 push {r3, r4, r5, r6, r7, lr}
  107734. 802cc2a: bf00 nop
  107735. 802cc2c: bcf8 pop {r3, r4, r5, r6, r7}
  107736. 802cc2e: bc08 pop {r3}
  107737. 802cc30: 469e mov lr, r3
  107738. 802cc32: 4770 bx lr
  107739. 0802cc34 <_fini>:
  107740. 802cc34: b5f8 push {r3, r4, r5, r6, r7, lr}
  107741. 802cc36: bf00 nop
  107742. 802cc38: bcf8 pop {r3, r4, r5, r6, r7}
  107743. 802cc3a: bc08 pop {r3}
  107744. 802cc3c: 469e mov lr, r3
  107745. 802cc3e: 4770 bx lr